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

clay-dropdown

Package Overview
Dependencies
Maintainers
13
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-dropdown - npm Package Compare versions

Comparing version 2.19.0 to 2.20.0

lib/ClayDropdownLabel.soy.js

6

lib/ClayActionsDropdown.soy.js

@@ -118,7 +118,7 @@ 'use strict';

} else {
var msg_2445__soy2446 = '';
var msg_2452__soy2453 = '';
/** @desc */
var MSG_EXTERNAL_6305962755687847469 = goog.getMsg('actions');
msg_2445__soy2446 += MSG_EXTERNAL_6305962755687847469;
param54 += msg_2445__soy2446;
msg_2452__soy2453 += MSG_EXTERNAL_6305962755687847469;
param54 += msg_2452__soy2453;
}

@@ -125,0 +125,0 @@ $templateAlias2({ button: button, caption: caption, disabled: disabled, elementClasses: dropdownElementClasses__soy21, events: { buttonClicked: _handleButtonClick, itemClicked: _handleItemClick, toggle: toggle }, expanded: expanded, helpText: helpText, id: id, items: items, itemsIconAlignment: itemsIconAlignment, label: trigger__soy30, preferredAlign: preferredAlign, ref: 'dropdown', spritemap: spritemap, triggerAriaLabel: triggerAriaLabel, triggerClasses: triggerClasses, triggerTitle: param54 }, null, opt_ijData);

@@ -120,6 +120,6 @@ 'use strict';

var viewMoreURL = soy.asserts.assertType(opt_data.viewMoreURL == null || goog.isString(opt_data.viewMoreURL) || opt_data.viewMoreURL instanceof goog.soy.data.SanitizedContent, 'viewMoreURL', opt_data.viewMoreURL, '!goog.soy.data.SanitizedContent|null|string|undefined');
var msg_2448__soy2449 = '';
var msg_2455__soy2456 = '';
/** @desc */
var MSG_EXTERNAL_7011425206383801543 = goog.getMsg('more');
msg_2448__soy2449 += MSG_EXTERNAL_7011425206383801543;
msg_2455__soy2456 += MSG_EXTERNAL_7011425206383801543;
var secondaryItemsFirstGroup__soy93 = secondaryItems != null ? secondaryItems[0] != null ? secondaryItems[0] : null : null;

@@ -142,3 +142,3 @@ var secondaryItemsSecondGroup__soy95 = secondaryItems != null ? secondaryItems[1] != null ? secondaryItems[1] : null : null;

var textMore__soy125 = '';
textMore__soy125 += msg_2448__soy2449;
textMore__soy125 += msg_2455__soy2456;
var showMoreButton__soy133 = showingItems__soy115 < totalItems__soy105 ? viewMoreURL != null ? { buttonStyle: 'secondary', href: viewMoreURL, label: textMore__soy125 } : { label: textMore__soy125, style: 'secondary' } : null;

@@ -174,7 +174,7 @@ var trigger__soy135 = function trigger__soy135() {

} else {
var msg_2451__soy2452 = '';
var msg_2458__soy2459 = '';
/** @desc */
var MSG_EXTERNAL_7387635272539030076 = goog.getMsg('new');
msg_2451__soy2452 += MSG_EXTERNAL_7387635272539030076;
param176 += msg_2451__soy2452;
msg_2458__soy2459 += MSG_EXTERNAL_7387635272539030076;
param176 += msg_2458__soy2459;
}

@@ -181,0 +181,0 @@ $templateAlias2({ button: showMoreButton__soy133, caption: param144, disabled: disabled, elementClasses: elementClasses, events: { buttonClicked: _handleButtonClick, itemClicked: _handleItemClick, toggle: toggle }, expanded: expanded, helpText: showMoreButton__soy133 ? helpText : null, id: id, items: items__soy123, itemsIconAlignment: itemsIconAlignment, label: trigger__soy135, preferredAlign: preferredAlign, ref: 'dropdown', spritemap: spritemap, style: 'primary', triggerAriaLabel: triggerAriaLabel, triggerClasses: triggerClasses, triggerTitle: param176 }, null, opt_ijData);

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

require('./ClayDropdownLabel.soy.js');
require('clay-button');

@@ -12,0 +14,0 @@

{
"name": "clay-dropdown",
"version": "2.19.0",
"version": "2.20.0",
"description": "Clay Dropdown Component",

@@ -31,9 +31,9 @@ "license": "BSD-3-Clause",

"dependencies": {
"clay-button": "^2.19.0",
"clay-checkbox": "^2.19.0",
"clay-component": "^2.19.0",
"clay-icon": "^2.19.0",
"clay-link": "^2.19.0",
"clay-portal": "^2.19.0",
"clay-radio": "^2.19.0",
"clay-button": "^2.20.0",
"clay-checkbox": "^2.20.0",
"clay-component": "^2.20.0",
"clay-icon": "^2.20.0",
"clay-link": "^2.20.0",
"clay-portal": "^2.20.0",
"clay-radio": "^2.20.0",
"metal": "^2.16.0",

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

"browserslist-config-clay": "^2.16.2",
"clay-css": "^2.19.0",
"clay-css": "^2.20.0",
"metal-dom": "^2.13.2",

@@ -65,3 +65,3 @@ "metal-tools-soy": "^4.3.2",

],
"gitHead": "34c20ebcde1007b883b05e11e32d1a339a34c906"
"gitHead": "134db4165376117adce8718a4aad6b37645cb1dd"
}

@@ -99,7 +99,7 @@ /* jshint ignore:start */

} else {
var msg_2445__soy2446 = '';
var msg_2452__soy2453 = '';
/** @desc */
var MSG_EXTERNAL_6305962755687847469 = goog.getMsg('actions');
msg_2445__soy2446 += MSG_EXTERNAL_6305962755687847469;
param54 += msg_2445__soy2446;
msg_2452__soy2453 += MSG_EXTERNAL_6305962755687847469;
param54 += msg_2452__soy2453;
}

@@ -106,0 +106,0 @@ $templateAlias2({button: button, caption: caption, disabled: disabled, elementClasses: dropdownElementClasses__soy21, events: {buttonClicked: _handleButtonClick, itemClicked: _handleItemClick, toggle: toggle}, expanded: expanded, helpText: helpText, id: id, items: items, itemsIconAlignment: itemsIconAlignment, label: trigger__soy30, preferredAlign: preferredAlign, ref: 'dropdown', spritemap: spritemap, triggerAriaLabel: triggerAriaLabel, triggerClasses: triggerClasses, triggerTitle: param54}, null, opt_ijData);

@@ -101,6 +101,6 @@ /* jshint ignore:start */

var viewMoreURL = soy.asserts.assertType(opt_data.viewMoreURL == null || (goog.isString(opt_data.viewMoreURL) || opt_data.viewMoreURL instanceof goog.soy.data.SanitizedContent), 'viewMoreURL', opt_data.viewMoreURL, '!goog.soy.data.SanitizedContent|null|string|undefined');
var msg_2448__soy2449 = '';
var msg_2455__soy2456 = '';
/** @desc */
var MSG_EXTERNAL_7011425206383801543 = goog.getMsg('more');
msg_2448__soy2449 += MSG_EXTERNAL_7011425206383801543;
msg_2455__soy2456 += MSG_EXTERNAL_7011425206383801543;
var secondaryItemsFirstGroup__soy93 = (secondaryItems != null) ? ((secondaryItems[0] != null) ? secondaryItems[0] : null) : null;

@@ -123,3 +123,3 @@ var secondaryItemsSecondGroup__soy95 = (secondaryItems != null) ? ((secondaryItems[1] != null) ? secondaryItems[1] : null) : null;

var textMore__soy125 = '';
textMore__soy125 += msg_2448__soy2449;
textMore__soy125 += msg_2455__soy2456;
var showMoreButton__soy133 = showingItems__soy115 < totalItems__soy105 ? ((viewMoreURL != null) ? {buttonStyle: 'secondary', href: viewMoreURL, label: textMore__soy125} : {label: textMore__soy125, style: 'secondary'}) : null;

@@ -153,7 +153,7 @@ var trigger__soy135 = function() {

} else {
var msg_2451__soy2452 = '';
var msg_2458__soy2459 = '';
/** @desc */
var MSG_EXTERNAL_7387635272539030076 = goog.getMsg('new');
msg_2451__soy2452 += MSG_EXTERNAL_7387635272539030076;
param176 += msg_2451__soy2452;
msg_2458__soy2459 += MSG_EXTERNAL_7387635272539030076;
param176 += msg_2458__soy2459;
}

@@ -160,0 +160,0 @@ $templateAlias2({button: showMoreButton__soy133, caption: param144, disabled: disabled, elementClasses: elementClasses, events: {buttonClicked: _handleButtonClick, itemClicked: _handleItemClick, toggle: toggle}, expanded: expanded, helpText: showMoreButton__soy133 ? helpText : null, id: id, items: items__soy123, itemsIconAlignment: itemsIconAlignment, label: trigger__soy135, preferredAlign: preferredAlign, ref: 'dropdown', spritemap: spritemap, style: 'primary', triggerAriaLabel: triggerAriaLabel, triggerClasses: triggerClasses, triggerTitle: param176}, null, opt_ijData);

@@ -0,1 +1,2 @@

import './ClayDropdownLabel.soy.js';
import 'clay-button';

@@ -2,0 +3,0 @@ import 'clay-checkbox';

@@ -27,13 +27,15 @@ /* jshint ignore:start */

var $templateAlias3 = Soy.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias4 = Soy.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias4 = Soy.getTemplate('ClayCheckbox.incrementaldom', 'render');
var $templateAlias5 = Soy.getTemplate('ClayCheckbox.incrementaldom', 'render');
var $templateAlias5 = Soy.getTemplate('ClayDropdownBase.incrementaldom', 'items');
var $templateAlias6 = Soy.getTemplate('ClayDropdownBase.incrementaldom', 'items');
var $templateAlias2 = Soy.getTemplate('ClayDropdownLabel.incrementaldom', 'render');
var $templateAlias1 = Soy.getTemplate('ClayIcon.incrementaldom', 'render');
var $templateAlias2 = Soy.getTemplate('ClayLink.incrementaldom', 'render');
var $templateAlias3 = Soy.getTemplate('ClayLink.incrementaldom', 'render');
var $templateAlias6 = Soy.getTemplate('ClayRadio.incrementaldom', 'render');
var $templateAlias7 = Soy.getTemplate('ClayRadio.incrementaldom', 'render');

@@ -250,3 +252,3 @@

}
soyIdom.print(label);
$templateAlias2(opt_data, null, opt_ijData);
if (icons && icons.right && spritemap) {

@@ -273,8 +275,8 @@ incrementalDom.elementOpenStart('span');

}
$templateAlias2({elementClasses: elementClasses__soy890, href: '' + $tmp$$1, label: labelContent__soy901, target: target, title: title}, null, opt_ijData);
$templateAlias3({elementClasses: elementClasses__soy890, href: '' + $tmp$$1, label: labelContent__soy901, target: target, title: title}, null, opt_ijData);
} else {
$templateAlias3({ariaLabel: label, disabled: disabled, elementClasses: elementClasses__soy890, label: labelContent__soy901, size: 'sm', spritemap: spritemap, style: 'link'}, null, opt_ijData);
$templateAlias4({ariaLabel: label, disabled: disabled, elementClasses: elementClasses__soy890, label: labelContent__soy901, size: 'sm', spritemap: spritemap, style: 'link'}, null, opt_ijData);
}
};
var itemAttributes__soy992 = function() {
var itemAttributes__soy993 = function() {
if (!disabled) {

@@ -287,3 +289,3 @@ incrementalDom.attr('data-onclick', _handleItemClick);

incrementalDom.elementOpenStart('li');
itemAttributes__soy992();
itemAttributes__soy993();
incrementalDom.elementOpenEnd();

@@ -351,3 +353,3 @@ itemContent__soy888();

*/
function __deltemplate_s1007_27296c4e(opt_data, opt_ijData, opt_ijData_deprecated) {
function __deltemplate_s1008_27296c4e(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -392,6 +394,6 @@ /** @type {!goog.soy.data.SanitizedContent|string} */

var type = soy.asserts.assertType(opt_data.type == null || (goog.isString(opt_data.type) || opt_data.type instanceof goog.soy.data.SanitizedContent), 'type', opt_data.type, '!goog.soy.data.SanitizedContent|null|string|undefined');
var checkbox__soy1028 = function() {
$templateAlias4({checked: checked, disabled: disabled, inline: true, label: label, name: inputName, value: inputValue}, null, opt_ijData);
var checkbox__soy1029 = function() {
$templateAlias5({checked: checked, disabled: disabled, inline: true, label: label, name: inputName, value: inputValue}, null, opt_ijData);
};
var itemAttributes__soy1039 = function() {
var itemAttributes__soy1040 = function() {
incrementalDom.attr('class', 'dropdown-item' + (active || checked ? ' active' : ''));

@@ -405,8 +407,8 @@ if (!disabled) {

incrementalDom.elementOpenStart('li');
itemAttributes__soy1039();
itemAttributes__soy1040();
incrementalDom.elementOpenEnd();
checkbox__soy1028();
checkbox__soy1029();
incrementalDom.elementClose('li');
}
exports.__deltemplate_s1007_27296c4e = __deltemplate_s1007_27296c4e;
exports.__deltemplate_s1008_27296c4e = __deltemplate_s1008_27296c4e;
/**

@@ -435,7 +437,7 @@ * @typedef {{

*/
__deltemplate_s1007_27296c4e.Params;
__deltemplate_s1008_27296c4e.Params;
if (goog.DEBUG) {
__deltemplate_s1007_27296c4e.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1007_27296c4e';
__deltemplate_s1008_27296c4e.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1008_27296c4e';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'checkbox', 0, __deltemplate_s1007_27296c4e);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'checkbox', 0, __deltemplate_s1008_27296c4e);

@@ -471,3 +473,3 @@

*/
function __deltemplate_s1058_4a8d8c89(opt_data, opt_ijData, opt_ijData_deprecated) {
function __deltemplate_s1059_4a8d8c89(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -521,6 +523,6 @@ /** @type {!goog.soy.data.SanitizedContent|string} */

if (items) {
$templateAlias5(opt_data, null, opt_ijData);
$templateAlias6(opt_data, null, opt_ijData);
}
}
exports.__deltemplate_s1058_4a8d8c89 = __deltemplate_s1058_4a8d8c89;
exports.__deltemplate_s1059_4a8d8c89 = __deltemplate_s1059_4a8d8c89;
/**

@@ -550,7 +552,7 @@ * @typedef {{

*/
__deltemplate_s1058_4a8d8c89.Params;
__deltemplate_s1059_4a8d8c89.Params;
if (goog.DEBUG) {
__deltemplate_s1058_4a8d8c89.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1058_4a8d8c89';
__deltemplate_s1059_4a8d8c89.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1059_4a8d8c89';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'group', 0, __deltemplate_s1058_4a8d8c89);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'group', 0, __deltemplate_s1059_4a8d8c89);

@@ -585,3 +587,3 @@

*/
function __deltemplate_s1097_e71956db(opt_data, opt_ijData, opt_ijData_deprecated) {
function __deltemplate_s1098_e71956db(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -626,6 +628,6 @@ /** @type {!goog.soy.data.SanitizedContent|string} */

var type = soy.asserts.assertType(opt_data.type == null || (goog.isString(opt_data.type) || opt_data.type instanceof goog.soy.data.SanitizedContent), 'type', opt_data.type, '!goog.soy.data.SanitizedContent|null|string|undefined');
var radio__soy1118 = function() {
$templateAlias6({checked: checked, disabled: disabled, inline: true, label: label, name: inputName, value: inputValue}, null, opt_ijData);
var radio__soy1119 = function() {
$templateAlias7({checked: checked, disabled: disabled, inline: true, label: label, name: inputName, value: inputValue}, null, opt_ijData);
};
var itemAttributes__soy1129 = function() {
var itemAttributes__soy1130 = function() {
incrementalDom.attr('class', 'dropdown-item' + (active || checked ? ' active' : ''));

@@ -639,8 +641,8 @@ if (!disabled) {

incrementalDom.elementOpenStart('li');
itemAttributes__soy1129();
itemAttributes__soy1130();
incrementalDom.elementOpenEnd();
radio__soy1118();
radio__soy1119();
incrementalDom.elementClose('li');
}
exports.__deltemplate_s1097_e71956db = __deltemplate_s1097_e71956db;
exports.__deltemplate_s1098_e71956db = __deltemplate_s1098_e71956db;
/**

@@ -669,7 +671,7 @@ * @typedef {{

*/
__deltemplate_s1097_e71956db.Params;
__deltemplate_s1098_e71956db.Params;
if (goog.DEBUG) {
__deltemplate_s1097_e71956db.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1097_e71956db';
__deltemplate_s1098_e71956db.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1098_e71956db';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'radio', 0, __deltemplate_s1097_e71956db);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'radio', 0, __deltemplate_s1098_e71956db);

@@ -704,3 +706,3 @@

*/
function __deltemplate_s1148_efbc8015(opt_data, opt_ijData, opt_ijData_deprecated) {
function __deltemplate_s1149_efbc8015(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -761,3 +763,3 @@ /** @type {!goog.soy.data.SanitizedContent|string} */

incrementalDom.elementOpenEnd();
$templateAlias5({_handleItemClick: _handleItemClick, _handleItemKeyDown: _handleItemKeyDown, contentRenderer: 'radio', items: items, itemsIconAlignment: itemsIconAlignment, maxItems: maxItems, spritemap: spritemap}, null, opt_ijData);
$templateAlias6({_handleItemClick: _handleItemClick, _handleItemKeyDown: _handleItemKeyDown, contentRenderer: 'radio', items: items, itemsIconAlignment: itemsIconAlignment, maxItems: maxItems, spritemap: spritemap}, null, opt_ijData);
incrementalDom.elementClose('ul');

@@ -767,3 +769,3 @@ }

}
exports.__deltemplate_s1148_efbc8015 = __deltemplate_s1148_efbc8015;
exports.__deltemplate_s1149_efbc8015 = __deltemplate_s1149_efbc8015;
/**

@@ -792,7 +794,7 @@ * @typedef {{

*/
__deltemplate_s1148_efbc8015.Params;
__deltemplate_s1149_efbc8015.Params;
if (goog.DEBUG) {
__deltemplate_s1148_efbc8015.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1148_efbc8015';
__deltemplate_s1149_efbc8015.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1149_efbc8015';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'radiogroup', 0, __deltemplate_s1148_efbc8015);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'radiogroup', 0, __deltemplate_s1149_efbc8015);

@@ -827,3 +829,3 @@

*/
function __deltemplate_s1190_03a3ad8c(opt_data, opt_ijData, opt_ijData_deprecated) {
function __deltemplate_s1191_03a3ad8c(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -875,3 +877,3 @@ /** @type {!goog.soy.data.SanitizedContent|string} */

}
exports.__deltemplate_s1190_03a3ad8c = __deltemplate_s1190_03a3ad8c;
exports.__deltemplate_s1191_03a3ad8c = __deltemplate_s1191_03a3ad8c;
/**

@@ -900,7 +902,7 @@ * @typedef {{

*/
__deltemplate_s1190_03a3ad8c.Params;
__deltemplate_s1191_03a3ad8c.Params;
if (goog.DEBUG) {
__deltemplate_s1190_03a3ad8c.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1190_03a3ad8c';
__deltemplate_s1191_03a3ad8c.soyTemplateName = 'ClayDropdownItem.__deltemplate_s1191_03a3ad8c';
}
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'separator', 0, __deltemplate_s1190_03a3ad8c);
soy.$$registerDelegateFn(soy.$$getDelTemplateId('ClayDropdownItem.Item.idom'), 'separator', 0, __deltemplate_s1191_03a3ad8c);

@@ -907,0 +909,0 @@ exports.render.params = ["_handleItemClick","_handleItemKeyDown","active","checked","contentRenderer","disabled","href","icon","icons","inputName","inputValue","items","itemsIconAlignment","label","maxItems","separator","spritemap","target","title","type"];

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 too big to display

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