Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clay-card

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-card - npm Package Compare versions

Comparing version 2.0.0-rc.1 to 2.0.0-rc.2

4

lib/ClayCardBase.js

@@ -65,3 +65,3 @@ 'use strict';

_createClass(ClayCardBase, [{
key: 'handleItemCheckboxClick_',
key: '_handleItemCheckboxClick',

@@ -73,3 +73,3 @@ /**

*/
value: function handleItemCheckboxClick_(event) {
value: function _handleItemCheckboxClick(event) {
this.emit('itemToggled', event);

@@ -76,0 +76,0 @@ }

@@ -69,2 +69,4 @@ 'use strict';

var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemCheckboxClick = opt_data._handleItemCheckboxClick;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -84,4 +86,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent, 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemCheckboxClick_ = opt_data.handleItemCheckboxClick_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -139,3 +139,3 @@ var href = soy.asserts.assertType(opt_data.href == null || goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent, 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

};
$templateAlias1({ ariaLabelledBy: groupName ? 'group-' + groupName : null, checked: selected, disabled: disabled, events: { change: handleItemCheckboxClick_ }, labelContent: param84, name: inputName, value: inputValue }, null, opt_ijData);
$templateAlias1({ ariaLabelledBy: groupName ? 'group-' + groupName : null, checked: selected, disabled: disabled, events: { change: _handleItemCheckboxClick }, labelContent: param84, name: inputName, value: inputValue }, null, opt_ijData);
incrementalDom.elementClose('div');

@@ -158,2 +158,3 @@ descriptiveArea__soy59();

* title: (!goog.soy.data.SanitizedContent|string),
* _handleItemCheckboxClick: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -166,3 +167,2 @@ * contentRenderer: (!goog.soy.data.SanitizedContent|null|string|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemCheckboxClick_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -325,4 +325,4 @@ * icon: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["title", "actionItems", "contentRenderer", "disabled", "elementClasses", "fileType", "fileTypeStyle", "groupName", "handleItemCheckboxClick_", "href", "icon", "id", "imageAlt", "imageSrc", "inputName", "inputValue", "labels", "labelStylesMap", "selectable", "selected", "spritemap", "subtitle"];
exports.render.types = { "title": "string", "actionItems": "list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>", "contentRenderer": "string", "disabled": "bool", "elementClasses": "string", "fileType": "string", "fileTypeStyle": "string", "groupName": "string", "handleItemCheckboxClick_": "any", "href": "string", "icon": "string", "id": "string", "imageAlt": "string", "imageSrc": "string", "inputName": "string", "inputValue": "string", "labels": "list<?>", "labelStylesMap": "?", "selectable": "bool", "selected": "bool", "spritemap": "string", "subtitle": "string" };
exports.render.params = ["title", "_handleItemCheckboxClick", "actionItems", "contentRenderer", "disabled", "elementClasses", "fileType", "fileTypeStyle", "groupName", "href", "icon", "id", "imageAlt", "imageSrc", "inputName", "inputValue", "labels", "labelStylesMap", "selectable", "selected", "spritemap", "subtitle"];
exports.render.types = { "title": "string", "_handleItemCheckboxClick": "any", "actionItems": "list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>", "contentRenderer": "string", "disabled": "bool", "elementClasses": "string", "fileType": "string", "fileTypeStyle": "string", "groupName": "string", "href": "string", "icon": "string", "id": "string", "imageAlt": "string", "imageSrc": "string", "inputName": "string", "inputValue": "string", "labels": "list<?>", "labelStylesMap": "?", "selectable": "bool", "selected": "bool", "spritemap": "string", "subtitle": "string" };
exports.templates = templates = exports;

@@ -329,0 +329,0 @@ return exports;

@@ -59,3 +59,3 @@ 'use strict';

_createClass(ClayFileCard, [{
key: 'handleItemToggled_',
key: '_handleItemToggled',

@@ -67,3 +67,3 @@ /**

*/
value: function handleItemToggled_(event) {
value: function _handleItemToggled(event) {
this.emit('itemToggled', event);

@@ -70,0 +70,0 @@ }

@@ -66,2 +66,4 @@ 'use strict';

var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemToggled = opt_data._handleItemToggled;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -79,4 +81,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent, 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemToggled_ = opt_data.handleItemToggled_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -105,3 +105,3 @@ var href = soy.asserts.assertType(opt_data.href == null || goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent, 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

classes__soy294 += elementClasses ? ' ' + elementClasses : '';
$templateAlias1({ actionItems: actionItems, contentRenderer: 'file', disabled: disabled, elementClasses: classes__soy294, events: { itemToggled: handleItemToggled_ }, fileType: fileType, fileTypeStyle: fileTypeStyle, groupName: groupName, href: href, icon: ($$temp = icon) == null ? 'documents-and-media' : $$temp, id: id, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: title }, null, opt_ijData);
$templateAlias1({ actionItems: actionItems, contentRenderer: 'file', disabled: disabled, elementClasses: classes__soy294, events: { itemToggled: _handleItemToggled }, fileType: fileType, fileTypeStyle: fileTypeStyle, groupName: groupName, href: href, icon: ($$temp = icon) == null ? 'documents-and-media' : $$temp, id: id, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: title }, null, opt_ijData);
};

@@ -113,2 +113,3 @@ exports.render = $render;

* title: (!goog.soy.data.SanitizedContent|string),
* _handleItemToggled: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -120,3 +121,2 @@ * disabled: (boolean|null|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemToggled_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -190,4 +190,4 @@ * icon: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["spritemap", "title", "actionItems", "disabled", "elementClasses", "fileType", "fileTypeStyle", "groupName", "handleItemToggled_", "href", "icon", "id", "inputName", "inputValue", "labels", "labelStylesMap", "selectable", "selected", "subtitle"];
exports.render.types = { "spritemap": "string", "title": "string", "actionItems": "list<[\n href: string,\n label: string,\n separator: bool\n ]>", "disabled": "bool", "elementClasses": "string", "fileType": "string", "fileTypeStyle": "string", "groupName": "string", "handleItemToggled_": "any", "href": "string", "icon": "string", "id": "string", "inputName": "string", "inputValue": "string", "labels": "list<?>", "labelStylesMap": "?", "selectable": "bool", "selected": "bool", "subtitle": "string" };
exports.render.params = ["spritemap", "title", "_handleItemToggled", "actionItems", "disabled", "elementClasses", "fileType", "fileTypeStyle", "groupName", "href", "icon", "id", "inputName", "inputValue", "labels", "labelStylesMap", "selectable", "selected", "subtitle"];
exports.render.types = { "spritemap": "string", "title": "string", "_handleItemToggled": "any", "actionItems": "list<[\n href: string,\n label: string,\n separator: bool\n ]>", "disabled": "bool", "elementClasses": "string", "fileType": "string", "fileTypeStyle": "string", "groupName": "string", "href": "string", "icon": "string", "id": "string", "inputName": "string", "inputValue": "string", "labels": "list<?>", "labelStylesMap": "?", "selectable": "bool", "selected": "bool", "subtitle": "string" };
exports.templates = templates = exports;

@@ -194,0 +194,0 @@ return exports;

@@ -63,3 +63,3 @@ 'use strict';

_createClass(ClayHorizontalCard, [{
key: 'handleItemCheckboxClick_',
key: '_handleItemCheckboxClick',

@@ -71,3 +71,3 @@ /**

*/
value: function handleItemCheckboxClick_(event) {
value: function _handleItemCheckboxClick(event) {
this.emit('itemToggled', event);

@@ -74,0 +74,0 @@ }

@@ -65,2 +65,4 @@ 'use strict';

var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemCheckboxClick = opt_data._handleItemCheckboxClick;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -74,4 +76,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent, 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemCheckboxClick_ = opt_data.handleItemCheckboxClick_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -111,3 +111,3 @@ var href = soy.asserts.assertType(opt_data.href == null || goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent, 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

};
$templateAlias1({ ariaLabelledBy: groupName ? 'group-' + groupName : null, checked: selected, disabled: disabled, events: { change: handleItemCheckboxClick_ }, labelContent: param412, name: inputName, value: inputValue }, null, opt_ijData);
$templateAlias1({ ariaLabelledBy: groupName ? 'group-' + groupName : null, checked: selected, disabled: disabled, events: { change: _handleItemCheckboxClick }, labelContent: param412, name: inputName, value: inputValue }, null, opt_ijData);
} else {

@@ -123,2 +123,3 @@ descriptiveArea__soy398();

* title: (!goog.soy.data.SanitizedContent|string),
* _handleItemCheckboxClick: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -128,3 +129,2 @@ * disabled: (boolean|null|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemCheckboxClick_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -213,4 +213,4 @@ * icon: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["spritemap", "title", "actionItems", "disabled", "elementClasses", "groupName", "handleItemCheckboxClick_", "href", "icon", "id", "inputName", "inputValue", "selectable", "selected"];
exports.render.types = { "spritemap": "string", "title": "string", "actionItems": "list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>", "disabled": "bool", "elementClasses": "string", "groupName": "string", "handleItemCheckboxClick_": "any", "href": "string", "icon": "string", "id": "string", "inputName": "string", "inputValue": "string", "selectable": "bool", "selected": "bool" };
exports.render.params = ["spritemap", "title", "_handleItemCheckboxClick", "actionItems", "disabled", "elementClasses", "groupName", "href", "icon", "id", "inputName", "inputValue", "selectable", "selected"];
exports.render.types = { "spritemap": "string", "title": "string", "_handleItemCheckboxClick": "any", "actionItems": "list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>", "disabled": "bool", "elementClasses": "string", "groupName": "string", "href": "string", "icon": "string", "id": "string", "inputName": "string", "inputValue": "string", "selectable": "bool", "selected": "bool" };
exports.descriptiveArea.params = ["spritemap", "title", "actionItems", "href", "icon"];

@@ -217,0 +217,0 @@ exports.descriptiveArea.types = { "spritemap": "string", "title": "string", "actionItems": "list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>", "href": "string", "icon": "string" };

@@ -59,3 +59,3 @@ 'use strict';

_createClass(ClayImageCard, [{
key: 'handleItemToggled_',
key: '_handleItemToggled',

@@ -67,3 +67,3 @@ /**

*/
value: function handleItemToggled_(event) {
value: function _handleItemToggled(event) {
this.emit('itemToggled', event);

@@ -70,0 +70,0 @@ }

@@ -63,2 +63,4 @@ 'use strict';

var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemToggled = opt_data._handleItemToggled;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -76,4 +78,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent, 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemToggled_ = opt_data.handleItemToggled_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -108,3 +108,3 @@ var href = soy.asserts.assertType(opt_data.href == null || goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent, 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

classes__soy558 += elementClasses ? ' ' + elementClasses : '';
$templateAlias1({ actionItems: actionItems, contentRenderer: 'image', disabled: disabled, elementClasses: classes__soy558, events: { itemToggled: handleItemToggled_ }, fileType: fileType, fileTypeStyle: fileTypeStyle, groupName: groupName, href: href, icon: icon, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: title }, null, opt_ijData);
$templateAlias1({ actionItems: actionItems, contentRenderer: 'image', disabled: disabled, elementClasses: classes__soy558, events: { itemToggled: _handleItemToggled }, fileType: fileType, fileTypeStyle: fileTypeStyle, groupName: groupName, href: href, icon: icon, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: title }, null, opt_ijData);
};

@@ -115,2 +115,3 @@ exports.render = $render;

* title: (!goog.soy.data.SanitizedContent|string),
* _handleItemToggled: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -122,3 +123,2 @@ * disabled: (boolean|null|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemToggled_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -208,4 +208,4 @@ * icon: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["title", "actionItems", "disabled", "elementClasses", "fileType", "fileTypeStyle", "groupName", "handleItemToggled_", "href", "icon", "id", "imageAlt", "imageSrc", "inputName", "inputValue", "labels", "labelStylesMap", "selectable", "selected", "spritemap", "subtitle"];
exports.render.types = { "title": "string", "actionItems": "list<[\n href: string,\n label: string,\n separator: bool\n ]>", "disabled": "bool", "elementClasses": "string", "fileType": "string", "fileTypeStyle": "string", "groupName": "string", "handleItemToggled_": "any", "href": "string", "icon": "string", "id": "string", "imageAlt": "string", "imageSrc": "string", "inputName": "string", "inputValue": "string", "labels": "list<?>", "labelStylesMap": "?", "selectable": "bool", "selected": "bool", "spritemap": "string", "subtitle": "string" };
exports.render.params = ["title", "_handleItemToggled", "actionItems", "disabled", "elementClasses", "fileType", "fileTypeStyle", "groupName", "href", "icon", "id", "imageAlt", "imageSrc", "inputName", "inputValue", "labels", "labelStylesMap", "selectable", "selected", "spritemap", "subtitle"];
exports.render.types = { "title": "string", "_handleItemToggled": "any", "actionItems": "list<[\n href: string,\n label: string,\n separator: bool\n ]>", "disabled": "bool", "elementClasses": "string", "fileType": "string", "fileTypeStyle": "string", "groupName": "string", "href": "string", "icon": "string", "id": "string", "imageAlt": "string", "imageSrc": "string", "inputName": "string", "inputValue": "string", "labels": "list<?>", "labelStylesMap": "?", "selectable": "bool", "selected": "bool", "spritemap": "string", "subtitle": "string" };
exports.templates = templates = exports;

@@ -212,0 +212,0 @@ return exports;

@@ -63,3 +63,3 @@ 'use strict';

_createClass(ClayUserCard, [{
key: 'handleItemToggled_',
key: '_handleItemToggled',

@@ -71,3 +71,3 @@ /**

*/
value: function handleItemToggled_(event) {
value: function _handleItemToggled(event) {
this.emit('itemToggled', event);

@@ -74,0 +74,0 @@ }

@@ -66,2 +66,4 @@ 'use strict';

var name = soy.asserts.assertType(goog.isString(opt_data.name) || opt_data.name instanceof goog.soy.data.SanitizedContent, 'name', opt_data.name, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemToggled = opt_data._handleItemToggled;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -75,4 +77,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent, 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemToggled_ = opt_data.handleItemToggled_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -105,3 +105,3 @@ var href = soy.asserts.assertType(opt_data.href == null || goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent, 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

classes__soy683 += elementClasses ? ' ' + elementClasses : '';
$templateAlias1({ actionItems: actionItems, contentRenderer: 'user', disabled: disabled, elementClasses: elementClasses, events: { itemToggled: handleItemToggled_ }, fileType: initials, fileTypeStyle: userColor, groupName: groupName, href: href, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: name }, null, opt_ijData);
$templateAlias1({ actionItems: actionItems, contentRenderer: 'user', disabled: disabled, elementClasses: elementClasses, events: { itemToggled: _handleItemToggled }, fileType: initials, fileTypeStyle: userColor, groupName: groupName, href: href, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: name }, null, opt_ijData);
};

@@ -112,2 +112,3 @@ exports.render = $render;

* name: (!goog.soy.data.SanitizedContent|string),
* _handleItemToggled: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -117,3 +118,2 @@ * disabled: (boolean|null|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemToggled_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -261,4 +261,4 @@ * id: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["name", "actionItems", "disabled", "elementClasses", "groupName", "handleItemToggled_", "href", "id", "imageAlt", "imageSrc", "initials", "inputName", "inputValue", "selectable", "selected", "spritemap", "subtitle", "userColor"];
exports.render.types = { "name": "string", "actionItems": "list<[\n href: string,\n label: string,\n separator: bool\n ]>", "disabled": "bool", "elementClasses": "string", "groupName": "string", "handleItemToggled_": "any", "href": "string", "id": "string", "imageAlt": "string", "imageSrc": "string", "initials": "string", "inputName": "string", "inputValue": "string", "selectable": "bool", "selected": "bool", "spritemap": "string", "subtitle": "string", "userColor": "string" };
exports.render.params = ["name", "_handleItemToggled", "actionItems", "disabled", "elementClasses", "groupName", "href", "id", "imageAlt", "imageSrc", "initials", "inputName", "inputValue", "selectable", "selected", "spritemap", "subtitle", "userColor"];
exports.render.types = { "name": "string", "_handleItemToggled": "any", "actionItems": "list<[\n href: string,\n label: string,\n separator: bool\n ]>", "disabled": "bool", "elementClasses": "string", "groupName": "string", "href": "string", "id": "string", "imageAlt": "string", "imageSrc": "string", "initials": "string", "inputName": "string", "inputValue": "string", "selectable": "bool", "selected": "bool", "spritemap": "string", "subtitle": "string", "userColor": "string" };
exports.templates = templates = exports;

@@ -265,0 +265,0 @@ return exports;

{
"name": "clay-card",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "Metal ClayCard component",

@@ -30,8 +30,8 @@ "license": "BSD",

"dependencies": {
"clay-checkbox": "^2.0.0-rc.1",
"clay-dropdown": "^2.0.0-rc.1",
"clay-icon": "^2.0.0-rc.1",
"clay-label": "^2.0.0-rc.1",
"clay-link": "^2.0.0-rc.1",
"clay-sticker": "^2.0.0-rc.1",
"clay-checkbox": "^2.0.0-rc.2",
"clay-dropdown": "^2.0.0-rc.2",
"clay-icon": "^2.0.0-rc.2",
"clay-label": "^2.0.0-rc.2",
"clay-link": "^2.0.0-rc.2",
"clay-sticker": "^2.0.0-rc.2",
"metal": "^2.16.0",

@@ -50,3 +50,3 @@ "metal-component": "^2.16.0",

"browserslist-config-clay-components": "^1.0.0-alpha.2",
"clay": "^2.0.0-rc.1",
"clay": "^2.0.0-rc.2",
"metal-dom": "^2.13.2",

@@ -53,0 +53,0 @@ "metal-tools-soy": "^6.0.0",

import ClayFileCard from '../ClayFileCard';
let component;
let consoleErrorReference;
let spritemap = 'icons.svg';

@@ -16,3 +17,14 @@ let actionItems = [

/**
* Stubs console.error
*/
function mockConsoleError() {
console.error = () => {};
}
describe('ClayFileCard', function() {
beforeEach(() => {
consoleErrorReference = console.error;
});
afterEach(() => {

@@ -22,2 +34,4 @@ if (component) {

}
console.error = consoleErrorReference;
});

@@ -400,2 +414,4 @@

it('should fail when no spritemap is passed', function() {
mockConsoleError();
expect(() => {

@@ -409,2 +425,4 @@ component = new ClayFileCard({

it('should fail when no title is passed', function() {
mockConsoleError();
expect(() => {

@@ -411,0 +429,0 @@ component = new ClayFileCard({

import ClayHorizontalCard from '../ClayHorizontalCard';
let component;
let consoleErrorReference;
let spritemap = 'icons.svg';

@@ -16,3 +17,14 @@ let actionItems = [

/**
* Stubs console.error
*/
function mockConsoleError() {
console.error = () => {};
}
describe('ClayHorizontalCard', function() {
beforeEach(() => {
consoleErrorReference = console.error;
});
afterEach(() => {

@@ -22,2 +34,4 @@ if (component) {

}
console.error = consoleErrorReference;
});

@@ -154,2 +168,4 @@

it('should fail when no spritemap is passed', function() {
mockConsoleError();
expect(() => {

@@ -163,2 +179,4 @@ component = new ClayHorizontalCard({

it('should fail when no title is passed', function() {
mockConsoleError();
expect(() => {

@@ -165,0 +183,0 @@ component = new ClayHorizontalCard({

import ClayImageCard from '../ClayImageCard';
let component;
let consoleErrorReference;
let spritemap = 'icons.svg';

@@ -16,3 +17,14 @@ let actionItems = [

/**
* Stubs console.error
*/
function mockConsoleError() {
console.error = () => {};
}
describe('ClayImageCard', function() {
beforeEach(() => {
consoleErrorReference = console.error;
});
afterEach(() => {

@@ -22,2 +34,4 @@ if (component) {

}
console.error = consoleErrorReference;
});

@@ -420,2 +434,4 @@

it('should fail when no title is passed', function() {
mockConsoleError();
expect(() => {

@@ -422,0 +438,0 @@ component = new ClayImageCard();

import ClayUserCard from '../ClayUserCard';
let component;
let consoleErrorReference;
let spritemap = 'icons.svg';

@@ -16,3 +17,14 @@ let actionItems = [

/**
* Stubs console.error
*/
function mockConsoleError() {
console.error = () => {};
}
describe('ClayUserCard', function() {
beforeEach(() => {
consoleErrorReference = console.error;
});
afterEach(() => {

@@ -22,2 +34,4 @@ if (component) {

}
console.error = consoleErrorReference;
});

@@ -272,2 +286,4 @@

it('should fail when no name is passed', function() {
mockConsoleError();
expect(() => {

@@ -274,0 +290,0 @@ component = new ClayUserCard();

@@ -24,3 +24,3 @@ import 'clay-checkbox';

*/
handleItemCheckboxClick_(event) {
_handleItemCheckboxClick(event) {
this.emit('itemToggled', event);

@@ -27,0 +27,0 @@ }

@@ -50,2 +50,4 @@ /* jshint ignore:start */

var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemCheckboxClick = opt_data._handleItemCheckboxClick;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -65,4 +67,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || (goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent), 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemCheckboxClick_ = opt_data.handleItemCheckboxClick_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -120,3 +120,3 @@ var href = soy.asserts.assertType(opt_data.href == null || (goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent), 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

};
$templateAlias1({ariaLabelledBy: groupName ? 'group-' + groupName : null, checked: selected, disabled: disabled, events: {change: handleItemCheckboxClick_}, labelContent: param84, name: inputName, value: inputValue}, null, opt_ijData);
$templateAlias1({ariaLabelledBy: groupName ? 'group-' + groupName : null, checked: selected, disabled: disabled, events: {change: _handleItemCheckboxClick}, labelContent: param84, name: inputName, value: inputValue}, null, opt_ijData);
incrementalDom.elementClose('div');

@@ -139,2 +139,3 @@ descriptiveArea__soy59();

* title: (!goog.soy.data.SanitizedContent|string),
* _handleItemCheckboxClick: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -147,3 +148,2 @@ * contentRenderer: (!goog.soy.data.SanitizedContent|null|string|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemCheckboxClick_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -308,4 +308,4 @@ * icon: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["title","actionItems","contentRenderer","disabled","elementClasses","fileType","fileTypeStyle","groupName","handleItemCheckboxClick_","href","icon","id","imageAlt","imageSrc","inputName","inputValue","labels","labelStylesMap","selectable","selected","spritemap","subtitle"];
exports.render.types = {"title":"string","actionItems":"list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>","contentRenderer":"string","disabled":"bool","elementClasses":"string","fileType":"string","fileTypeStyle":"string","groupName":"string","handleItemCheckboxClick_":"any","href":"string","icon":"string","id":"string","imageAlt":"string","imageSrc":"string","inputName":"string","inputValue":"string","labels":"list<?>","labelStylesMap":"?","selectable":"bool","selected":"bool","spritemap":"string","subtitle":"string"};
exports.render.params = ["title","_handleItemCheckboxClick","actionItems","contentRenderer","disabled","elementClasses","fileType","fileTypeStyle","groupName","href","icon","id","imageAlt","imageSrc","inputName","inputValue","labels","labelStylesMap","selectable","selected","spritemap","subtitle"];
exports.render.types = {"title":"string","_handleItemCheckboxClick":"any","actionItems":"list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>","contentRenderer":"string","disabled":"bool","elementClasses":"string","fileType":"string","fileTypeStyle":"string","groupName":"string","href":"string","icon":"string","id":"string","imageAlt":"string","imageSrc":"string","inputName":"string","inputValue":"string","labels":"list<?>","labelStylesMap":"?","selectable":"bool","selected":"bool","spritemap":"string","subtitle":"string"};
templates = exports;

@@ -312,0 +312,0 @@ return exports;

@@ -21,3 +21,3 @@ import 'clay-icon';

*/
handleItemToggled_(event) {
_handleItemToggled(event) {
this.emit('itemToggled', event);

@@ -24,0 +24,0 @@ }

@@ -47,2 +47,4 @@ /* jshint ignore:start */

var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemToggled = opt_data._handleItemToggled;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -60,4 +62,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || (goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent), 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemToggled_ = opt_data.handleItemToggled_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -86,3 +86,3 @@ var href = soy.asserts.assertType(opt_data.href == null || (goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent), 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

classes__soy294 += elementClasses ? ' ' + elementClasses : '';
$templateAlias1({actionItems: actionItems, contentRenderer: 'file', disabled: disabled, elementClasses: classes__soy294, events: {itemToggled: handleItemToggled_}, fileType: fileType, fileTypeStyle: fileTypeStyle, groupName: groupName, href: href, icon: ($$temp = icon) == null ? 'documents-and-media' : $$temp, id: id, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: title}, null, opt_ijData);
$templateAlias1({actionItems: actionItems, contentRenderer: 'file', disabled: disabled, elementClasses: classes__soy294, events: {itemToggled: _handleItemToggled}, fileType: fileType, fileTypeStyle: fileTypeStyle, groupName: groupName, href: href, icon: ($$temp = icon) == null ? 'documents-and-media' : $$temp, id: id, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: title}, null, opt_ijData);
};

@@ -94,2 +94,3 @@ exports.render = $render;

* title: (!goog.soy.data.SanitizedContent|string),
* _handleItemToggled: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -101,3 +102,2 @@ * disabled: (boolean|null|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemToggled_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -172,4 +172,4 @@ * icon: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["spritemap","title","actionItems","disabled","elementClasses","fileType","fileTypeStyle","groupName","handleItemToggled_","href","icon","id","inputName","inputValue","labels","labelStylesMap","selectable","selected","subtitle"];
exports.render.types = {"spritemap":"string","title":"string","actionItems":"list<[\n href: string,\n label: string,\n separator: bool\n ]>","disabled":"bool","elementClasses":"string","fileType":"string","fileTypeStyle":"string","groupName":"string","handleItemToggled_":"any","href":"string","icon":"string","id":"string","inputName":"string","inputValue":"string","labels":"list<?>","labelStylesMap":"?","selectable":"bool","selected":"bool","subtitle":"string"};
exports.render.params = ["spritemap","title","_handleItemToggled","actionItems","disabled","elementClasses","fileType","fileTypeStyle","groupName","href","icon","id","inputName","inputValue","labels","labelStylesMap","selectable","selected","subtitle"];
exports.render.types = {"spritemap":"string","title":"string","_handleItemToggled":"any","actionItems":"list<[\n href: string,\n label: string,\n separator: bool\n ]>","disabled":"bool","elementClasses":"string","fileType":"string","fileTypeStyle":"string","groupName":"string","href":"string","icon":"string","id":"string","inputName":"string","inputValue":"string","labels":"list<?>","labelStylesMap":"?","selectable":"bool","selected":"bool","subtitle":"string"};
templates = exports;

@@ -176,0 +176,0 @@ return exports;

@@ -23,3 +23,3 @@ import 'clay-checkbox';

*/
handleItemCheckboxClick_(event) {
_handleItemCheckboxClick(event) {
this.emit('itemToggled', event);

@@ -26,0 +26,0 @@ }

@@ -46,2 +46,4 @@ /* jshint ignore:start */

var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemCheckboxClick = opt_data._handleItemCheckboxClick;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -55,4 +57,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || (goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent), 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemCheckboxClick_ = opt_data.handleItemCheckboxClick_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -92,3 +92,3 @@ var href = soy.asserts.assertType(opt_data.href == null || (goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent), 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

};
$templateAlias1({ariaLabelledBy: groupName ? 'group-' + groupName : null, checked: selected, disabled: disabled, events: {change: handleItemCheckboxClick_}, labelContent: param412, name: inputName, value: inputValue}, null, opt_ijData);
$templateAlias1({ariaLabelledBy: groupName ? 'group-' + groupName : null, checked: selected, disabled: disabled, events: {change: _handleItemCheckboxClick}, labelContent: param412, name: inputName, value: inputValue}, null, opt_ijData);
} else {

@@ -104,2 +104,3 @@ descriptiveArea__soy398();

* title: (!goog.soy.data.SanitizedContent|string),
* _handleItemCheckboxClick: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -109,3 +110,2 @@ * disabled: (boolean|null|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemCheckboxClick_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -195,4 +195,4 @@ * icon: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["spritemap","title","actionItems","disabled","elementClasses","groupName","handleItemCheckboxClick_","href","icon","id","inputName","inputValue","selectable","selected"];
exports.render.types = {"spritemap":"string","title":"string","actionItems":"list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>","disabled":"bool","elementClasses":"string","groupName":"string","handleItemCheckboxClick_":"any","href":"string","icon":"string","id":"string","inputName":"string","inputValue":"string","selectable":"bool","selected":"bool"};
exports.render.params = ["spritemap","title","_handleItemCheckboxClick","actionItems","disabled","elementClasses","groupName","href","icon","id","inputName","inputValue","selectable","selected"];
exports.render.types = {"spritemap":"string","title":"string","_handleItemCheckboxClick":"any","actionItems":"list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>","disabled":"bool","elementClasses":"string","groupName":"string","href":"string","icon":"string","id":"string","inputName":"string","inputValue":"string","selectable":"bool","selected":"bool"};
exports.descriptiveArea.params = ["spritemap","title","actionItems","href","icon"];

@@ -199,0 +199,0 @@ exports.descriptiveArea.types = {"spritemap":"string","title":"string","actionItems":"list<[\n\t\thref: string,\n\t\tlabel: string,\n\t\tseparator: bool\n\t]>","href":"string","icon":"string"};

@@ -21,3 +21,3 @@ import 'clay-icon';

*/
handleItemToggled_(event) {
_handleItemToggled(event) {
this.emit('itemToggled', event);

@@ -24,0 +24,0 @@ }

@@ -44,2 +44,4 @@ /* jshint ignore:start */

var title = soy.asserts.assertType(goog.isString(opt_data.title) || opt_data.title instanceof goog.soy.data.SanitizedContent, 'title', opt_data.title, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemToggled = opt_data._handleItemToggled;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -57,4 +59,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || (goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent), 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemToggled_ = opt_data.handleItemToggled_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -89,3 +89,3 @@ var href = soy.asserts.assertType(opt_data.href == null || (goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent), 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

classes__soy558 += elementClasses ? ' ' + elementClasses : '';
$templateAlias1({actionItems: actionItems, contentRenderer: 'image', disabled: disabled, elementClasses: classes__soy558, events: {itemToggled: handleItemToggled_}, fileType: fileType, fileTypeStyle: fileTypeStyle, groupName: groupName, href: href, icon: icon, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: title}, null, opt_ijData);
$templateAlias1({actionItems: actionItems, contentRenderer: 'image', disabled: disabled, elementClasses: classes__soy558, events: {itemToggled: _handleItemToggled}, fileType: fileType, fileTypeStyle: fileTypeStyle, groupName: groupName, href: href, icon: icon, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, labels: labels, labelStylesMap: labelStylesMap, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: title}, null, opt_ijData);
};

@@ -96,2 +96,3 @@ exports.render = $render;

* title: (!goog.soy.data.SanitizedContent|string),
* _handleItemToggled: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -103,3 +104,2 @@ * disabled: (boolean|null|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemToggled_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -190,4 +190,4 @@ * icon: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["title","actionItems","disabled","elementClasses","fileType","fileTypeStyle","groupName","handleItemToggled_","href","icon","id","imageAlt","imageSrc","inputName","inputValue","labels","labelStylesMap","selectable","selected","spritemap","subtitle"];
exports.render.types = {"title":"string","actionItems":"list<[\n href: string,\n label: string,\n separator: bool\n ]>","disabled":"bool","elementClasses":"string","fileType":"string","fileTypeStyle":"string","groupName":"string","handleItemToggled_":"any","href":"string","icon":"string","id":"string","imageAlt":"string","imageSrc":"string","inputName":"string","inputValue":"string","labels":"list<?>","labelStylesMap":"?","selectable":"bool","selected":"bool","spritemap":"string","subtitle":"string"};
exports.render.params = ["title","_handleItemToggled","actionItems","disabled","elementClasses","fileType","fileTypeStyle","groupName","href","icon","id","imageAlt","imageSrc","inputName","inputValue","labels","labelStylesMap","selectable","selected","spritemap","subtitle"];
exports.render.types = {"title":"string","_handleItemToggled":"any","actionItems":"list<[\n href: string,\n label: string,\n separator: bool\n ]>","disabled":"bool","elementClasses":"string","fileType":"string","fileTypeStyle":"string","groupName":"string","href":"string","icon":"string","id":"string","imageAlt":"string","imageSrc":"string","inputName":"string","inputValue":"string","labels":"list<?>","labelStylesMap":"?","selectable":"bool","selected":"bool","spritemap":"string","subtitle":"string"};
templates = exports;

@@ -194,0 +194,0 @@ return exports;

@@ -23,3 +23,3 @@ import './ClayCardBase';

*/
handleItemToggled_(event) {
_handleItemToggled(event) {
this.emit('itemToggled', event);

@@ -26,0 +26,0 @@ }

@@ -47,2 +47,4 @@ /* jshint ignore:start */

var name = soy.asserts.assertType(goog.isString(opt_data.name) || opt_data.name instanceof goog.soy.data.SanitizedContent, 'name', opt_data.name, '!goog.soy.data.SanitizedContent|string');
/** @type {*|null|undefined} */
var _handleItemToggled = opt_data._handleItemToggled;
/** @type {!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined} */

@@ -56,4 +58,2 @@ var actionItems = soy.asserts.assertType(opt_data.actionItems == null || goog.isArray(opt_data.actionItems), 'actionItems', opt_data.actionItems, '!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined');

var groupName = soy.asserts.assertType(opt_data.groupName == null || (goog.isString(opt_data.groupName) || opt_data.groupName instanceof goog.soy.data.SanitizedContent), 'groupName', opt_data.groupName, '!goog.soy.data.SanitizedContent|null|string|undefined');
/** @type {*|null|undefined} */
var handleItemToggled_ = opt_data.handleItemToggled_;
/** @type {!goog.soy.data.SanitizedContent|null|string|undefined} */

@@ -86,3 +86,3 @@ var href = soy.asserts.assertType(opt_data.href == null || (goog.isString(opt_data.href) || opt_data.href instanceof goog.soy.data.SanitizedContent), 'href', opt_data.href, '!goog.soy.data.SanitizedContent|null|string|undefined');

classes__soy683 += elementClasses ? ' ' + elementClasses : '';
$templateAlias1({actionItems: actionItems, contentRenderer: 'user', disabled: disabled, elementClasses: elementClasses, events: {itemToggled: handleItemToggled_}, fileType: initials, fileTypeStyle: userColor, groupName: groupName, href: href, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: name}, null, opt_ijData);
$templateAlias1({actionItems: actionItems, contentRenderer: 'user', disabled: disabled, elementClasses: elementClasses, events: {itemToggled: _handleItemToggled}, fileType: initials, fileTypeStyle: userColor, groupName: groupName, href: href, id: id, imageAlt: imageAlt, imageSrc: imageSrc, inputName: inputName, inputValue: inputValue, ref: 'card', selectable: selectable, selected: selected, spritemap: spritemap, subtitle: subtitle, title: name}, null, opt_ijData);
};

@@ -93,2 +93,3 @@ exports.render = $render;

* name: (!goog.soy.data.SanitizedContent|string),
* _handleItemToggled: (*|null|undefined),
* actionItems: (!Array<{href: (!goog.soy.data.SanitizedContent|string), label: (!goog.soy.data.SanitizedContent|string), separator: boolean,}>|null|undefined),

@@ -98,3 +99,2 @@ * disabled: (boolean|null|undefined),

* groupName: (!goog.soy.data.SanitizedContent|null|string|undefined),
* handleItemToggled_: (*|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),

@@ -244,4 +244,4 @@ * id: (!goog.soy.data.SanitizedContent|null|string|undefined),

exports.render.params = ["name","actionItems","disabled","elementClasses","groupName","handleItemToggled_","href","id","imageAlt","imageSrc","initials","inputName","inputValue","selectable","selected","spritemap","subtitle","userColor"];
exports.render.types = {"name":"string","actionItems":"list<[\n href: string,\n label: string,\n separator: bool\n ]>","disabled":"bool","elementClasses":"string","groupName":"string","handleItemToggled_":"any","href":"string","id":"string","imageAlt":"string","imageSrc":"string","initials":"string","inputName":"string","inputValue":"string","selectable":"bool","selected":"bool","spritemap":"string","subtitle":"string","userColor":"string"};
exports.render.params = ["name","_handleItemToggled","actionItems","disabled","elementClasses","groupName","href","id","imageAlt","imageSrc","initials","inputName","inputValue","selectable","selected","spritemap","subtitle","userColor"];
exports.render.types = {"name":"string","_handleItemToggled":"any","actionItems":"list<[\n href: string,\n label: string,\n separator: bool\n ]>","disabled":"bool","elementClasses":"string","groupName":"string","href":"string","id":"string","imageAlt":"string","imageSrc":"string","initials":"string","inputName":"string","inputValue":"string","selectable":"bool","selected":"bool","spritemap":"string","subtitle":"string","userColor":"string"};
templates = exports;

@@ -248,0 +248,0 @@ return exports;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc