@tradeshift/elements.button-group
Advanced tools
Comparing version 0.5.0 to 0.5.2
@@ -1,90 +0,1 @@ | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tradeshift/elements')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@tradeshift/elements'], factory) : | ||
(global = global || self, factory((global.ts = global.ts || {}, global.ts.elements = global.ts.elements || {}, global.ts.elements['button-group'] = global.ts.elements['button-group'] || {}), global.ts.elements)); | ||
}(this, function (exports, elements) { 'use strict'; | ||
function _defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
} | ||
function _inheritsLoose(subClass, superClass) { | ||
subClass.prototype = Object.create(superClass.prototype); | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
} | ||
function _taggedTemplateLiteralLoose(strings, raw) { | ||
if (!raw) { | ||
raw = strings.slice(0); | ||
} | ||
strings.raw = raw; | ||
return strings; | ||
} | ||
var css = "/* General........................................................ */\n:host,\n:host > section {\n\tdisplay: block;\n\twidth: 100%;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJ1dHRvbi1ncm91cC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0VBQW9FO0FBQ3BFOztDQUVDLGNBQWM7Q0FDZCxXQUFXO0FBQ1oiLCJmaWxlIjoiYnV0dG9uLWdyb3VwLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIEdlbmVyYWwuLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLi4uLiAqL1xuOmhvc3QsXG46aG9zdCA+IHNlY3Rpb24ge1xuXHRkaXNwbGF5OiBibG9jaztcblx0d2lkdGg6IDEwMCU7XG59XG4iXX0= */"; | ||
function _templateObject() { | ||
var data = _taggedTemplateLiteralLoose(["\n\t\t\t<section>\n\t\t\t\t<slot @slotchange=\"", "\"></slot>\n\t\t\t</section>\n\t\t"]); | ||
_templateObject = function _templateObject() { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
var TSButtonGroup = | ||
/*#__PURE__*/ | ||
function (_TSElement) { | ||
_inheritsLoose(TSButtonGroup, _TSElement); | ||
function TSButtonGroup() { | ||
return _TSElement.apply(this, arguments) || this; | ||
} | ||
var _proto = TSButtonGroup.prototype; | ||
_proto.render = function render() { | ||
return elements.html(_templateObject(), this.handleSlotChange); | ||
}; | ||
_proto.firstUpdated = function firstUpdated() { | ||
this.handleSlotChange(); | ||
}; | ||
_proto.handleSlotChange = function handleSlotChange() { | ||
Array.from(this.querySelectorAll('ts-button')).forEach(function (button) { | ||
button.grouped = true; | ||
}); | ||
}; | ||
_createClass(TSButtonGroup, null, [{ | ||
key: "styles", | ||
get: function get() { | ||
return [elements.TSElement.styles, elements.unsafeCSS(css)]; | ||
} | ||
}]); | ||
return TSButtonGroup; | ||
}(elements.TSElement); | ||
elements.customElementDefineHelper('ts-button-group', TSButtonGroup); | ||
exports.TSButtonGroup = TSButtonGroup; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); | ||
//# sourceMappingURL=button-group.umd.js.map | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@tradeshift/elements")):"function"==typeof define&&define.amd?define(["exports","@tradeshift/elements"],e):e(((t=t||self).ts=t.ts||{},t.ts.elements=t.ts.elements||{},t.ts.elements["button-group"]=t.ts.elements["button-group"]||{}),t.ts.elements)}(this,function(t,e){"use strict";function n(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function o(){var t,e,n=(t=['\n\t\t\t<section>\n\t\t\t\t<slot @slotchange="','"></slot>\n\t\t\t</section>\n\t\t'],e||(e=t.slice(0)),t.raw=e,t);return o=function(){return n},n}var r=function(t){var r,s;function u(){return t.apply(this,arguments)||this}s=t,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s;var l,i,f,c=u.prototype;return c.render=function(){return e.html(o(),this.handleSlotChange)},c.firstUpdated=function(){this.handleSlotChange()},c.handleSlotChange=function(){Array.from(this.querySelectorAll("ts-button")).forEach(function(t){t.grouped=!0})},l=u,f=[{key:"styles",get:function(){return[e.TSElement.styles,e.unsafeCSS(":host,:host>section{display:block;width:100%}")]}}],(i=null)&&n(l.prototype,i),f&&n(l,f),u}(e.TSElement);e.customElementDefineHelper("ts-button-group",r),t.TSButtonGroup=r,Object.defineProperty(t,"__esModule",{value:!0})}); |
{ | ||
"name": "@tradeshift/elements.button-group", | ||
"version": "0.5.0", | ||
"version": "0.5.2", | ||
"src": "src/button-group.js", | ||
"main": "lib/button-group.umd.js", | ||
"browser": "lib/button-group.umd.js", | ||
"module": "lib/button-group.esm.js", | ||
"files": [ | ||
@@ -11,6 +12,5 @@ "lib/*" | ||
"dependencies": { | ||
"@tradeshift/elements": "^0.5.0", | ||
"@tradeshift/elements.button": "^0.5.0" | ||
"@tradeshift/elements": "^0.5.2" | ||
}, | ||
"gitHead": "f44043114952b9e1acea6811caff85d6c6970dc8" | ||
"gitHead": "f9ad23777c014a17b135524dcd23652745337064" | ||
} |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
6
16490
11
3
- Removed@tradeshift/elements.button@^0.5.0
- Removed@tradeshift/elements.button@0.5.3(transitive)
- Removed@tradeshift/elements.icon@0.5.3(transitive)
Updated@tradeshift/elements@^0.5.2