New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clay-radio

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-radio - npm Package Compare versions

Comparing version 2.13.0 to 2.14.0

58

lib/ClayRadio.soy.js

@@ -45,10 +45,22 @@ 'use strict';

/**
* @param {$render.Params} opt_data
* @param {{
* checked: (boolean|null|undefined),
* disabled: (boolean|null|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* inline: (boolean|null|undefined),
* label: (!goog.soy.data.SanitizedContent|null|string|undefined),
* labelContent: (function()|null|undefined),
* name: (!goog.soy.data.SanitizedContent|null|string|undefined),
* showLabel: (boolean|null|undefined),
* value: (!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 $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;
var $$temp;
opt_data = opt_data || {};

@@ -75,3 +87,3 @@ /** @type {boolean|null|undefined} */

var value = soy.asserts.assertType(opt_data.value == null || goog.isString(opt_data.value) || opt_data.value instanceof goog.soy.data.SanitizedContent, 'value', opt_data.value, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy31 = function attributes__soy31() {
var attributes__soy14 = function attributes__soy14() {
incrementalDom.attr('class', 'custom-control custom-radio' + (inline ? ' custom-control-inline' : '') + (elementClasses ? ' ' + elementClasses : ''));

@@ -83,7 +95,7 @@ if (id) {

incrementalDom.elementOpenStart('div');
attributes__soy31();
attributes__soy14();
incrementalDom.elementOpenEnd();
$input({ checked: checked, disabled: disabled, label: label, labelContent: labelContent, name: name, showLabel: showLabel != null ? showLabel : true, value: value }, opt_ijData);
$input({ checked: checked, disabled: disabled, label: label, labelContent: labelContent, name: name, showLabel: ($$temp = showLabel) == null ? true : $$temp, value: value }, null, opt_ijData);
incrementalDom.elementClose('div');
};
}
exports.render = $render;

@@ -101,3 +113,3 @@ /**

* showLabel: (boolean|null|undefined),
* value: (!goog.soy.data.SanitizedContent|null|string|undefined),
* value: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }}

@@ -111,9 +123,17 @@ */

/**
* @param {$input.Params} opt_data
* @param {{
* checked: (boolean|null|undefined),
* disabled: (boolean|null|undefined),
* label: (!goog.soy.data.SanitizedContent|null|string|undefined),
* labelContent: (function()|null|undefined),
* name: (!goog.soy.data.SanitizedContent|null|string|undefined),
* showLabel: (boolean|null|undefined),
* value: (!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 $input = function $input(opt_data, opt_ijData, opt_ijData_deprecated) {
function $input(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -136,3 +156,3 @@ opt_data = opt_data || {};

incrementalDom.elementOpen('label');
var inputAttributes__soy75 = function inputAttributes__soy75() {
var inputAttributes__soy54 = function inputAttributes__soy54() {
if (checked) {

@@ -156,3 +176,3 @@ incrementalDom.attr('checked', 'checked');

incrementalDom.elementOpenStart('input');
inputAttributes__soy75();
inputAttributes__soy54();
incrementalDom.elementOpenEnd();

@@ -164,7 +184,7 @@ incrementalDom.elementClose('input');

if (label) {
var spanLabelClasses__soy87 = '';
spanLabelClasses__soy87 += 'custom-control-label-text';
spanLabelClasses__soy87 += !showLabel ? ' sr-only' : '';
var spanLabelClasses__soy82 = '';
spanLabelClasses__soy82 += 'custom-control-label-text';
spanLabelClasses__soy82 += !showLabel ? ' sr-only' : '';
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', spanLabelClasses__soy87);
incrementalDom.attr('class', spanLabelClasses__soy82);
incrementalDom.elementOpenEnd();

@@ -179,3 +199,3 @@ soyIdom.print(label);

incrementalDom.elementClose('label');
};
}
exports.input = $input;

@@ -190,3 +210,3 @@ /**

* showLabel: (boolean|null|undefined),
* value: (!goog.soy.data.SanitizedContent|null|string|undefined),
* value: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }}

@@ -193,0 +213,0 @@ */

{
"name": "clay-radio",
"version": "2.13.0",
"version": "2.14.0",
"description": "Clay Radio Component",

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

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

@@ -44,8 +44,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"
},

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

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

@@ -26,10 +26,22 @@ /* jshint ignore:start */

/**
* @param {$render.Params} opt_data
* @param {{
* checked: (boolean|null|undefined),
* disabled: (boolean|null|undefined),
* elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
* id: (!goog.soy.data.SanitizedContent|null|string|undefined),
* inline: (boolean|null|undefined),
* label: (!goog.soy.data.SanitizedContent|null|string|undefined),
* labelContent: (function()|null|undefined),
* name: (!goog.soy.data.SanitizedContent|null|string|undefined),
* showLabel: (boolean|null|undefined),
* value: (!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 $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;
var $$temp;
opt_data = opt_data || {};

@@ -56,3 +68,3 @@ /** @type {boolean|null|undefined} */

var value = soy.asserts.assertType(opt_data.value == null || (goog.isString(opt_data.value) || opt_data.value instanceof goog.soy.data.SanitizedContent), 'value', opt_data.value, '!goog.soy.data.SanitizedContent|null|string|undefined');
var attributes__soy31 = function() {
var attributes__soy14 = function() {
incrementalDom.attr('class', 'custom-control custom-radio' + (inline ? ' custom-control-inline' : '') + (elementClasses ? ' ' + elementClasses : ''));

@@ -64,7 +76,7 @@ if (id) {

incrementalDom.elementOpenStart('div');
attributes__soy31();
attributes__soy14();
incrementalDom.elementOpenEnd();
$input({checked: checked, disabled: disabled, label: label, labelContent: labelContent, name: name, showLabel: showLabel != null ? showLabel : true, value: value}, opt_ijData);
$input({checked: checked, disabled: disabled, label: label, labelContent: labelContent, name: name, showLabel: ($$temp = showLabel) == null ? true : $$temp, value: value}, null, opt_ijData);
incrementalDom.elementClose('div');
};
}
exports.render = $render;

@@ -82,3 +94,3 @@ /**

* showLabel: (boolean|null|undefined),
* value: (!goog.soy.data.SanitizedContent|null|string|undefined),
* value: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }}

@@ -93,9 +105,17 @@ */

/**
* @param {$input.Params} opt_data
* @param {{
* checked: (boolean|null|undefined),
* disabled: (boolean|null|undefined),
* label: (!goog.soy.data.SanitizedContent|null|string|undefined),
* labelContent: (function()|null|undefined),
* name: (!goog.soy.data.SanitizedContent|null|string|undefined),
* showLabel: (boolean|null|undefined),
* value: (!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 $input = function(opt_data, opt_ijData, opt_ijData_deprecated) {
function $input(opt_data, opt_ijData, opt_ijData_deprecated) {
opt_ijData = opt_ijData_deprecated || opt_ijData;

@@ -118,43 +138,43 @@ opt_data = opt_data || {};

incrementalDom.elementOpen('label');
var inputAttributes__soy75 = function() {
if (checked) {
incrementalDom.attr('checked', 'checked');
}
if (disabled) {
incrementalDom.attr('disabled', 'disabled');
}
incrementalDom.attr('class', 'custom-control-input');
if (name) {
incrementalDom.attr('name', name);
}
if (value) {
incrementalDom.attr('value', value);
}
incrementalDom.attr('ref', 'input');
incrementalDom.attr('type', 'radio');
incrementalDom.attr('role', 'radio');
};
incrementalDom.elementOpenStart('input');
inputAttributes__soy75();
incrementalDom.elementOpenEnd();
incrementalDom.elementClose('input');
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', 'custom-control-label');
incrementalDom.elementOpenEnd();
if (label) {
var spanLabelClasses__soy87 = '';
spanLabelClasses__soy87 += 'custom-control-label-text';
spanLabelClasses__soy87 += !showLabel ? ' sr-only' : '';
var inputAttributes__soy54 = function() {
if (checked) {
incrementalDom.attr('checked', 'checked');
}
if (disabled) {
incrementalDom.attr('disabled', 'disabled');
}
incrementalDom.attr('class', 'custom-control-input');
if (name) {
incrementalDom.attr('name', name);
}
if (value) {
incrementalDom.attr('value', value);
}
incrementalDom.attr('ref', 'input');
incrementalDom.attr('type', 'radio');
incrementalDom.attr('role', 'radio');
};
incrementalDom.elementOpenStart('input');
inputAttributes__soy54();
incrementalDom.elementOpenEnd();
incrementalDom.elementClose('input');
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', spanLabelClasses__soy87);
incrementalDom.attr('class', 'custom-control-label');
incrementalDom.elementOpenEnd();
soyIdom.print(label);
if (label) {
var spanLabelClasses__soy82 = '';
spanLabelClasses__soy82 += 'custom-control-label-text';
spanLabelClasses__soy82 += !showLabel ? ' sr-only' : '';
incrementalDom.elementOpenStart('span');
incrementalDom.attr('class', spanLabelClasses__soy82);
incrementalDom.elementOpenEnd();
soyIdom.print(label);
incrementalDom.elementClose('span');
}
incrementalDom.elementClose('span');
}
incrementalDom.elementClose('span');
if (labelContent) {
labelContent();
}
if (labelContent) {
labelContent();
}
incrementalDom.elementClose('label');
};
}
exports.input = $input;

@@ -169,3 +189,3 @@ /**

* showLabel: (boolean|null|undefined),
* value: (!goog.soy.data.SanitizedContent|null|string|undefined),
* value: (!goog.soy.data.SanitizedContent|null|string|undefined)
* }}

@@ -172,0 +192,0 @@ */

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