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

clay-label

Package Overview
Dependencies
Maintainers
10
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-label - npm Package Compare versions

Comparing version 2.13.0 to 2.14.0

106

lib/ClayLabel.soy.js

@@ -44,14 +44,35 @@ 'use strict';

var $templateAlias1 = _metalSoy2.default.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias2 = _metalSoy2.default.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias2 = _metalSoy2.default.getTemplate('ClayLink.incrementaldom', 'render');
var $templateAlias1 = _metalSoy2.default.getTemplate('ClayLink.incrementaldom', 'render');
/**
* @param {$render.Params} opt_data
* @param {{
* _handleCloseButtonClick: (*|null|undefined),
* closeable: (boolean|null|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* size: (!goog.soy.data.SanitizedContent|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|boolean|null|string|undefined),
* tabIndex: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* title: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined)
* }} opt_data
* @param {Object<string, *>=} opt_ijData
* @param {Object<string, *>=} opt_ijData_deprecated
* @return {void}
* @suppress {checkTypes|uselessCode}
* @suppress {checkTypes}
*/
var $render = function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -79,4 +100,4 @@ opt_data = opt_data || {};

var tabIndex = soy.asserts.assertType(opt_data.tabIndex == null || goog.isString(opt_data.tabIndex) || opt_data.tabIndex instanceof goog.soy.data.SanitizedContent, 'tabIndex', opt_data.tabIndex, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy51 = function attributes__soy51() {
var $tmp;
var attributes__soy14 = function attributes__soy14() {
var $tmp = null;
if (style != null && style != true && style != false) {

@@ -98,7 +119,7 @@ $tmp = ' label-' + style;

incrementalDom.elementOpenStart('span');
attributes__soy51();
attributes__soy14();
incrementalDom.elementOpenEnd();
$content({ _handleCloseButtonClick: _handleCloseButtonClick, closeable: closeable, href: href, label: label, spritemap: spritemap, tabIndex: tabIndex }, opt_ijData);
$content(opt_data, null, opt_ijData);
incrementalDom.elementClose('span');
};
}
exports.render = $render;

@@ -117,2 +138,12 @@ /**

* tabIndex: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* title: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined)
* }}

@@ -126,9 +157,29 @@ */

/**
* @param {$content.Params} opt_data
* @param {{
* _handleCloseButtonClick: (*|null|undefined),
* closeable: (boolean|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* tabIndex: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* title: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {Object<string, *>=} opt_ijData
* @param {Object<string, *>=} opt_ijData_deprecated
* @return {void}
* @suppress {checkTypes|uselessCode}
* @suppress {checkTypes}
*/
var $content = function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -148,3 +199,3 @@ opt_data = opt_data || {};

var tabIndex = soy.asserts.assertType(opt_data.tabIndex == null || goog.isString(opt_data.tabIndex) || opt_data.tabIndex instanceof goog.soy.data.SanitizedContent, 'tabIndex', opt_data.tabIndex, '!goog.soy.data.SanitizedContent|null|string|undefined');
var labelContent__soy84 = function labelContent__soy84() {
var labelContent__soy71 = function labelContent__soy71() {
incrementalDom.elementOpenStart('span');

@@ -154,3 +205,3 @@ incrementalDom.attr('class', 'label-item label-item-expand');

if (href) {
$templateAlias2({ href: href, label: label }, opt_ijData);
$templateAlias1(opt_data, null, opt_ijData);
} else {

@@ -162,16 +213,16 @@ soyIdom.print(label);

if (closeable && spritemap) {
var msg_1_202442244688100878__soy633 = '';
var msg_698__soy699 = '';
/** @desc The word 'Close' used as a verb */
var MSG_EXTERNAL_202442244688100878 = goog.getMsg('close');
msg_1_202442244688100878__soy633 += MSG_EXTERNAL_202442244688100878;
labelContent__soy84();
msg_698__soy699 += MSG_EXTERNAL_202442244688100878;
labelContent__soy71();
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'label-item label-item-after');
incrementalDom.elementOpenEnd();
$templateAlias1({ ariaLabel: '' + msg_1_202442244688100878__soy633, elementClasses: 'close', events: { click: _handleCloseButtonClick }, icon: 'times', iconAlignment: 'right', ref: 'closeButton', spritemap: spritemap, style: false, tabIndex: tabIndex ? '-1' : null, type: 'button' }, opt_ijData);
$templateAlias2({ ariaLabel: '' + msg_698__soy699, elementClasses: 'close', events: { click: _handleCloseButtonClick }, icon: 'times', iconAlignment: 'right', ref: 'closeButton', spritemap: spritemap, style: false, tabIndex: tabIndex ? '-1' : null, type: 'button' }, null, opt_ijData);
incrementalDom.elementClose('span');
} else {
labelContent__soy84();
labelContent__soy71();
}
};
}
exports.content = $content;

@@ -186,2 +237,15 @@ /**

* tabIndex: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* title: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }}

@@ -188,0 +252,0 @@ */

18

package.json
{
"name": "clay-label",
"version": "2.13.0",
"version": "2.14.0",
"description": "Metal Clay Label component",

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

"dependencies": {
"clay-button": "^2.13.0",
"clay-component": "^2.13.0",
"clay-link": "^2.13.0",
"clay-button": "^2.14.0",
"clay-component": "^2.14.0",
"clay-link": "^2.14.0",
"metal": "^2.16.0",

@@ -46,8 +46,8 @@ "metal-soy": "^2.16.0",

"babel-preset-env": "^1.6.0",
"browserslist-config-clay": "^2.13.0",
"clay-css": "^2.13.0",
"browserslist-config-clay": "^2.14.0",
"clay-css": "^2.14.0",
"metal-dom": "^2.13.2",
"metal-tools-soy": "^6.0.0",
"metal-tools-soy": "^4.3.2",
"webpack": "^3.0.0",
"webpack-config-clay": "^2.13.0"
"webpack-config-clay": "^2.14.0"
},

@@ -57,3 +57,3 @@ "browserslist": [

],
"gitHead": "fef2c15a6c6a85daa328f93e4cb25d9ee4bb86dc"
"gitHead": "cc93f63941787d174b5871282dc36ccf15ee85f5"
}

@@ -24,15 +24,36 @@ /* jshint ignore:start */

var $templateAlias1 = Soy.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias2 = Soy.getTemplate('ClayButton.incrementaldom', 'render');
var $templateAlias2 = Soy.getTemplate('ClayLink.incrementaldom', 'render');
var $templateAlias1 = Soy.getTemplate('ClayLink.incrementaldom', 'render');
/**
* @param {$render.Params} opt_data
* @param {{
* _handleCloseButtonClick: (*|null|undefined),
* closeable: (boolean|null|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* size: (!goog.soy.data.SanitizedContent|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* style: (!goog.soy.data.SanitizedContent|boolean|null|string|undefined),
* tabIndex: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* title: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined)
* }} opt_data
* @param {Object<string, *>=} opt_ijData
* @param {Object<string, *>=} opt_ijData_deprecated
* @return {void}
* @suppress {checkTypes|uselessCode}
* @suppress {checkTypes}
*/
var $render = function(opt_data, opt_ijData, opt_ijData_deprecated) {
function $render(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -60,4 +81,4 @@ opt_data = opt_data || {};

var tabIndex = soy.asserts.assertType(opt_data.tabIndex == null || (goog.isString(opt_data.tabIndex) || opt_data.tabIndex instanceof goog.soy.data.SanitizedContent), 'tabIndex', opt_data.tabIndex, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy51 = function() {
var $tmp;
var attributes__soy14 = function() {
var $tmp = null;
if ((style != null) && style != true && style != false) {

@@ -79,7 +100,7 @@ $tmp = ' label-' + style;

incrementalDom.elementOpenStart('span');
attributes__soy51();
attributes__soy14();
incrementalDom.elementOpenEnd();
$content({_handleCloseButtonClick: _handleCloseButtonClick, closeable: closeable, href: href, label: label, spritemap: spritemap, tabIndex: tabIndex}, opt_ijData);
$content(opt_data, null, opt_ijData);
incrementalDom.elementClose('span');
};
}
exports.render = $render;

@@ -98,2 +119,12 @@ /**

* tabIndex: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* title: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined)
* }}

@@ -108,9 +139,29 @@ */

/**
* @param {$content.Params} opt_data
* @param {{
* _handleCloseButtonClick: (*|null|undefined),
* closeable: (boolean|null|undefined),
* href: (!goog.soy.data.SanitizedContent|null|string|undefined),
* label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
* spritemap: (!goog.soy.data.SanitizedContent|null|string|undefined),
* tabIndex: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* title: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }} opt_data
* @param {Object<string, *>=} opt_ijData
* @param {Object<string, *>=} opt_ijData_deprecated
* @return {void}
* @suppress {checkTypes|uselessCode}
* @suppress {checkTypes}
*/
var $content = function(opt_data, opt_ijData, opt_ijData_deprecated) {
function $content(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -130,28 +181,28 @@ opt_data = opt_data || {};

var tabIndex = soy.asserts.assertType(opt_data.tabIndex == null || (goog.isString(opt_data.tabIndex) || opt_data.tabIndex instanceof goog.soy.data.SanitizedContent), 'tabIndex', opt_data.tabIndex, '!goog.soy.data.SanitizedContent|null|string|undefined');
var labelContent__soy84 = function() {
var labelContent__soy71 = function() {
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'label-item label-item-expand');
incrementalDom.elementOpenEnd();
if (href) {
$templateAlias2({href: href, label: label}, opt_ijData);
} else {
soyIdom.print(label);
}
if (href) {
$templateAlias1(opt_data, null, opt_ijData);
} else {
soyIdom.print(label);
}
incrementalDom.elementClose('span');
};
if (closeable && spritemap) {
var msg_1_202442244688100878__soy633 = '';
var msg_698__soy699 = '';
/** @desc The word 'Close' used as a verb */
var MSG_EXTERNAL_202442244688100878 = goog.getMsg('close');
msg_1_202442244688100878__soy633 += MSG_EXTERNAL_202442244688100878;
labelContent__soy84();
msg_698__soy699 += MSG_EXTERNAL_202442244688100878;
labelContent__soy71();
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'label-item label-item-after');
incrementalDom.elementOpenEnd();
$templateAlias1({ariaLabel: '' + msg_1_202442244688100878__soy633, elementClasses: 'close', events: {click: _handleCloseButtonClick}, icon: 'times', iconAlignment: 'right', ref: 'closeButton', spritemap: spritemap, style: false, tabIndex: tabIndex ? '-1' : null, type: 'button'}, opt_ijData);
$templateAlias2({ariaLabel: '' + msg_698__soy699, elementClasses: 'close', events: {click: _handleCloseButtonClick}, icon: 'times', iconAlignment: 'right', ref: 'closeButton', spritemap: spritemap, style: false, tabIndex: tabIndex ? '-1' : null, type: 'button'}, null, opt_ijData);
incrementalDom.elementClose('span');
} else {
labelContent__soy84();
labelContent__soy71();
}
};
}
exports.content = $content;

@@ -166,2 +217,15 @@ /**

* tabIndex: (!goog.soy.data.SanitizedContent|null|string|undefined),
* buttonStyle: (!goog.soy.data.SanitizedContent|null|string|undefined),
* icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageSrc: (!goog.soy.data.SanitizedContent|null|string|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* title: (!goog.soy.data.SanitizedContent|null|string|undefined),
* imageAlt: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaLabel: (!goog.soy.data.SanitizedContent|null|string|undefined),
* target: (!goog.soy.data.SanitizedContent|null|string|undefined),
* iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
* download: (!goog.soy.data.SanitizedContent|null|string|undefined),
* ariaExpanded: (boolean|null|undefined),
* style: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }}

@@ -168,0 +232,0 @@ */

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