@maggioli-design-system/mds-stepper-bar
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -5,7 +5,7 @@ 'use strict'; | ||
const index = require('./index-ad600c59.js'); | ||
const index = require('./index-68a5a388.js'); | ||
const defineCustomElements = (win, options) => { | ||
if (typeof window === 'undefined') return undefined; | ||
return index.bootstrapLazy([["mds-stepper-bar.cjs",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]]]]]], options); | ||
return index.bootstrapLazy([["mds-stepper-bar.cjs",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{"itemsDone":["itemDone"]}]]]], options); | ||
}; | ||
@@ -12,0 +12,0 @@ |
@@ -5,5 +5,5 @@ 'use strict'; | ||
const index = require('./index-ad600c59.js'); | ||
const index = require('./index-68a5a388.js'); | ||
const mdsStepperBarCss = ".fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.contents{display:contents}.hidden{display:none}.min-h-80{min-height:20rem}.items-center{-ms-flex-align:center;align-items:center}.justify-center{-ms-flex-pack:center;justify-content:center}.rounded-lg{border-radius:0.5rem}.border{border-width:1px}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgba(var(--label-amaranth-10), var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgba(var(--label-blue-10), var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgba(var(--label-green-10), var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgba(var(--label-orange-10), var(--tw-bg-opacity))}.bg-label-sky-10{--tw-bg-opacity:1;background-color:rgba(var(--label-sky-10), var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgba(var(--label-violet-10), var(--tw-bg-opacity))}.text-label-amaranth-04{--tw-text-opacity:1;color:rgba(var(--label-amaranth-04), var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgba(var(--label-blue-04), var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgba(var(--label-green-04), var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgba(var(--label-orange-04), var(--tw-text-opacity))}.text-label-sky-04{--tw-text-opacity:1;color:rgba(var(--label-sky-04), var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgba(var(--label-violet-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{position:relative;display:grid;gap:1.5rem}.items{position:relative;z-index:10;display:-ms-flexbox;display:flex;width:100%;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x var(--tw-scroll-snap-strictness);-ms-scroll-snap-type:x var(--tw-scroll-snap-strictness);scroll-snap-type:x var(--tw-scroll-snap-strictness);gap:0px;overflow:auto;scroll-behavior:smooth}:host([linear=\"true\"]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=\"false\"]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}:host([hydrated]) .contents{opacity:1}"; | ||
const mdsStepperBarCss = ".fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.contents{display:contents}.hidden{display:none}.min-h-80{min-height:20rem}.items-center{-ms-flex-align:center;align-items:center}.justify-center{-ms-flex-pack:center;justify-content:center}.rounded-lg{border-radius:0.5rem}.border{border-width:1px}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgba(var(--label-amaranth-10), var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgba(var(--label-blue-10), var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgba(var(--label-green-10), var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgba(var(--label-orange-10), var(--tw-bg-opacity))}.bg-label-sky-10{--tw-bg-opacity:1;background-color:rgba(var(--label-sky-10), var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgba(var(--label-violet-10), var(--tw-bg-opacity))}.text-label-amaranth-04{--tw-text-opacity:1;color:rgba(var(--label-amaranth-04), var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgba(var(--label-blue-04), var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgba(var(--label-green-04), var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgba(var(--label-orange-04), var(--tw-text-opacity))}.text-label-sky-04{--tw-text-opacity:1;color:rgba(var(--label-sky-04), var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgba(var(--label-violet-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{gap:1.5rem;display:grid;position:relative}.items{z-index:10;width:100%;gap:0px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:auto;position:relative;scroll-behavior:smooth;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}:host([linear=\"true\"]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=\"false\"]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{width:100%;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hydrated]) .contents{opacity:1}"; | ||
@@ -10,0 +10,0 @@ const MdsStepperBar = class { |
@@ -5,6 +5,6 @@ 'use strict'; | ||
const index = require('./index-ad600c59.js'); | ||
const index = require('./index-68a5a388.js'); | ||
/* | ||
Stencil Client Patch Browser v4.2.1 | MIT Licensed | https://stenciljs.com | ||
Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
@@ -21,5 +21,5 @@ const patchBrowser = () => { | ||
patchBrowser().then(options => { | ||
return index.bootstrapLazy([["mds-stepper-bar.cjs",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]]]]]], options); | ||
return index.bootstrapLazy([["mds-stepper-bar.cjs",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{"itemsDone":["itemDone"]}]]]], options); | ||
}); | ||
exports.setNonce = index.setNonce; |
@@ -7,3 +7,3 @@ { | ||
"name": "@stencil/core", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"typescriptVersion": "5.1.6" | ||
@@ -10,0 +10,0 @@ }, |
@@ -8,2 +8,3 @@ const hash = (s) => { | ||
}; | ||
const randomInt = (max) => Math.floor(Math.random() * max); | ||
const unslugName = (name) => { | ||
@@ -22,2 +23,9 @@ var _a, _b, _c; | ||
const hashValue = (value) => `${value}-${hash(value)}`; | ||
export { unslugName, setAttributeIfEmpty, hashValue, }; | ||
const hashRandomValue = (value) => { | ||
const randomValue = randomInt(1000000); | ||
if (value) { | ||
return `${value}-${hash(randomValue.toString())}`; | ||
} | ||
return hash(randomValue.toString()); | ||
}; | ||
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, }; |
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client'; | ||
const mdsStepperBarCss = ".fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.contents{display:contents}.hidden{display:none}.min-h-80{min-height:20rem}.items-center{-ms-flex-align:center;align-items:center}.justify-center{-ms-flex-pack:center;justify-content:center}.rounded-lg{border-radius:0.5rem}.border{border-width:1px}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgba(var(--label-amaranth-10), var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgba(var(--label-blue-10), var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgba(var(--label-green-10), var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgba(var(--label-orange-10), var(--tw-bg-opacity))}.bg-label-sky-10{--tw-bg-opacity:1;background-color:rgba(var(--label-sky-10), var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgba(var(--label-violet-10), var(--tw-bg-opacity))}.text-label-amaranth-04{--tw-text-opacity:1;color:rgba(var(--label-amaranth-04), var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgba(var(--label-blue-04), var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgba(var(--label-green-04), var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgba(var(--label-orange-04), var(--tw-text-opacity))}.text-label-sky-04{--tw-text-opacity:1;color:rgba(var(--label-sky-04), var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgba(var(--label-violet-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{position:relative;display:grid;gap:1.5rem}.items{position:relative;z-index:10;display:-ms-flexbox;display:flex;width:100%;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x var(--tw-scroll-snap-strictness);-ms-scroll-snap-type:x var(--tw-scroll-snap-strictness);scroll-snap-type:x var(--tw-scroll-snap-strictness);gap:0px;overflow:auto;scroll-behavior:smooth}:host([linear=\"true\"]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=\"false\"]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}:host([hydrated]) .contents{opacity:1}"; | ||
const mdsStepperBarCss = ".fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.contents{display:contents}.hidden{display:none}.min-h-80{min-height:20rem}.items-center{-ms-flex-align:center;align-items:center}.justify-center{-ms-flex-pack:center;justify-content:center}.rounded-lg{border-radius:0.5rem}.border{border-width:1px}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgba(var(--label-amaranth-10), var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgba(var(--label-blue-10), var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgba(var(--label-green-10), var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgba(var(--label-orange-10), var(--tw-bg-opacity))}.bg-label-sky-10{--tw-bg-opacity:1;background-color:rgba(var(--label-sky-10), var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgba(var(--label-violet-10), var(--tw-bg-opacity))}.text-label-amaranth-04{--tw-text-opacity:1;color:rgba(var(--label-amaranth-04), var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgba(var(--label-blue-04), var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgba(var(--label-green-04), var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgba(var(--label-orange-04), var(--tw-text-opacity))}.text-label-sky-04{--tw-text-opacity:1;color:rgba(var(--label-sky-04), var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgba(var(--label-violet-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{gap:1.5rem;display:grid;position:relative}.items{z-index:10;width:100%;gap:0px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:auto;position:relative;scroll-behavior:smooth;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}:host([linear=\"true\"]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=\"false\"]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{width:100%;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hydrated]) .contents{opacity:1}"; | ||
@@ -102,3 +102,5 @@ const MdsStepperBar$1 = /*@__PURE__*/ proxyCustomElement(class MdsStepperBar extends HTMLElement { | ||
"currentItem": [32] | ||
}, [[0, "mdsStepperBarItemDone", "changeEventHandler"]]]); | ||
}, [[0, "mdsStepperBarItemDone", "changeEventHandler"]], { | ||
"itemsDone": ["itemDone"] | ||
}]); | ||
function defineCustomElement$1() { | ||
@@ -105,0 +107,0 @@ if (typeof customElements === "undefined") { |
{ | ||
"timestamp": "2023-09-18T09:20:25", | ||
"timestamp": "2023-09-27T11:28:43", | ||
"compiler": { | ||
"name": "@stencil/core", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"typescriptVersion": "5.1.6" | ||
@@ -7,0 +7,0 @@ }, |
@@ -1,1 +0,1 @@ | ||
import{b as bootstrapLazy}from"./index-d14f7465.js";export{s as setNonce}from"./index-d14f7465.js";var defineCustomElements=function(e,t){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-stepper-bar",[[1,"mds-stepper-bar",{itemsDone:[2,"items-done"],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]]]]]],t)};export{defineCustomElements}; | ||
import{b as bootstrapLazy}from"./index-1bcfc531.js";export{s as setNonce}from"./index-1bcfc531.js";var defineCustomElements=function(e,t){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-stepper-bar",[[1,"mds-stepper-bar",{itemsDone:[2,"items-done"],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{itemsDone:["itemDone"]}]]]],t)};export{defineCustomElements}; |
@@ -1,1 +0,1 @@ | ||
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-d14f7465.js";var mdsStepperBarCss='.fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.contents{display:contents}.hidden{display:none}.min-h-80{min-height:20rem}.items-center{-ms-flex-align:center;align-items:center}.justify-center{-ms-flex-pack:center;justify-content:center}.rounded-lg{border-radius:0.5rem}.border{border-width:1px}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgba(var(--label-amaranth-10), var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgba(var(--label-blue-10), var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgba(var(--label-green-10), var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgba(var(--label-orange-10), var(--tw-bg-opacity))}.bg-label-sky-10{--tw-bg-opacity:1;background-color:rgba(var(--label-sky-10), var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgba(var(--label-violet-10), var(--tw-bg-opacity))}.text-label-amaranth-04{--tw-text-opacity:1;color:rgba(var(--label-amaranth-04), var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgba(var(--label-blue-04), var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgba(var(--label-green-04), var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgba(var(--label-orange-04), var(--tw-text-opacity))}.text-label-sky-04{--tw-text-opacity:1;color:rgba(var(--label-sky-04), var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgba(var(--label-violet-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{position:relative;display:grid;gap:1.5rem}.items{position:relative;z-index:10;display:-ms-flexbox;display:flex;width:100%;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x var(--tw-scroll-snap-strictness);-ms-scroll-snap-type:x var(--tw-scroll-snap-strictness);scroll-snap-type:x var(--tw-scroll-snap-strictness);gap:0px;overflow:auto;scroll-behavior:smooth}:host([linear="true"]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear="false"]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}:host([hydrated]) .contents{opacity:1}';var MdsStepperBar=function(){function t(t){var e=this;registerInstance(this,t);this.changedEvent=createEvent(this,"mdsStepperBarChange",7);this.queryItems=function(){return e.element.querySelectorAll("mds-stepper-bar-item")};this.queryContentItems=function(){return e.element.querySelectorAll("[slot=content]")};this.minmax=function(t,e,r){return Math.min(Math.max(t,e),r)};this.setCurrent=function(t){e.items=e.queryItems();e.currentItem=t-1;var r=new Array;e.items.forEach((function(t,o){t.done=false;if(o<e.currentItem){t.done=true;if(t.value){r.push(t.value)}}t.current=false;if(o===e.currentItem){t.current=true;e.currentItem=o}}));e.changedEvent.emit({value:r.toString(),step:e.currentItem});e.scrollItems();e.setCurrentContent()};this.setCurrentContent=function(){e.contentItems.forEach((function(t,r){t.classList.add("hidden");if(r===e.currentItem){t.classList.remove("hidden")}}))};this.scrollItems=function(){var t;var r=(t=e.element.shadowRoot)===null||t===void 0?void 0:t.querySelector(".items");var o=e.queryItems();var a=e.minmax(e.currentItem,0,e.items.length-1);if(!r)throw Error("No mds-stepper-bar-items found");if(a<=0){r.scrollLeft=0;return}if(a>=o.length){var n=o[o.length-1];r.scrollLeft=n.offsetLeft-r.offsetLeft;return}var s=o[a];r.scrollLeft=s.offsetLeft-r.offsetLeft-r.offsetWidth/2+s.offsetWidth/2};this.currentItem=0;this.itemsDone=1}t.prototype.componentWillLoad=function(){this.items=this.queryItems();this.items.forEach((function(t,e){t.id="mds-stepper-bar-item-".concat(e)}))};t.prototype.componentDidLoad=function(){this.contentItems=this.queryContentItems();this.setCurrent(this.itemsDone)};t.prototype.itemDone=function(t){this.setCurrent(t)};t.prototype.changeEventHandler=function(t){var e=this;this.items=this.queryItems();this.items.forEach((function(r,o){r.done=false;if("mds-stepper-bar-item-".concat(o)===t.detail){r.current=true;e.currentItem=o}}))};t.prototype.render=function(){return h(Host,null,h("div",{class:"items"},h("slot",null)),h("div",{class:"contents",part:"contents"},h("slot",{name:"content"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{itemsDone:["itemDone"]}},enumerable:false,configurable:true});return t}();MdsStepperBar.style=mdsStepperBarCss;export{MdsStepperBar as mds_stepper_bar}; | ||
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1bcfc531.js";var mdsStepperBarCss='.fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.contents{display:contents}.hidden{display:none}.min-h-80{min-height:20rem}.items-center{-ms-flex-align:center;align-items:center}.justify-center{-ms-flex-pack:center;justify-content:center}.rounded-lg{border-radius:0.5rem}.border{border-width:1px}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgba(var(--label-amaranth-10), var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgba(var(--label-blue-10), var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgba(var(--label-green-10), var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgba(var(--label-orange-10), var(--tw-bg-opacity))}.bg-label-sky-10{--tw-bg-opacity:1;background-color:rgba(var(--label-sky-10), var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgba(var(--label-violet-10), var(--tw-bg-opacity))}.text-label-amaranth-04{--tw-text-opacity:1;color:rgba(var(--label-amaranth-04), var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgba(var(--label-blue-04), var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgba(var(--label-green-04), var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgba(var(--label-orange-04), var(--tw-text-opacity))}.text-label-sky-04{--tw-text-opacity:1;color:rgba(var(--label-sky-04), var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgba(var(--label-violet-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{gap:1.5rem;display:grid;position:relative}.items{z-index:10;width:100%;gap:0px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:auto;position:relative;scroll-behavior:smooth;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}:host([linear="true"]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear="false"]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{width:100%;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hydrated]) .contents{opacity:1}';var MdsStepperBar=function(){function t(t){var e=this;registerInstance(this,t);this.changedEvent=createEvent(this,"mdsStepperBarChange",7);this.queryItems=function(){return e.element.querySelectorAll("mds-stepper-bar-item")};this.queryContentItems=function(){return e.element.querySelectorAll("[slot=content]")};this.minmax=function(t,e,r){return Math.min(Math.max(t,e),r)};this.setCurrent=function(t){e.items=e.queryItems();e.currentItem=t-1;var r=new Array;e.items.forEach((function(t,o){t.done=false;if(o<e.currentItem){t.done=true;if(t.value){r.push(t.value)}}t.current=false;if(o===e.currentItem){t.current=true;e.currentItem=o}}));e.changedEvent.emit({value:r.toString(),step:e.currentItem});e.scrollItems();e.setCurrentContent()};this.setCurrentContent=function(){e.contentItems.forEach((function(t,r){t.classList.add("hidden");if(r===e.currentItem){t.classList.remove("hidden")}}))};this.scrollItems=function(){var t;var r=(t=e.element.shadowRoot)===null||t===void 0?void 0:t.querySelector(".items");var o=e.queryItems();var a=e.minmax(e.currentItem,0,e.items.length-1);if(!r)throw Error("No mds-stepper-bar-items found");if(a<=0){r.scrollLeft=0;return}if(a>=o.length){var n=o[o.length-1];r.scrollLeft=n.offsetLeft-r.offsetLeft;return}var i=o[a];r.scrollLeft=i.offsetLeft-r.offsetLeft-r.offsetWidth/2+i.offsetWidth/2};this.currentItem=0;this.itemsDone=1}t.prototype.componentWillLoad=function(){this.items=this.queryItems();this.items.forEach((function(t,e){t.id="mds-stepper-bar-item-".concat(e)}))};t.prototype.componentDidLoad=function(){this.contentItems=this.queryContentItems();this.setCurrent(this.itemsDone)};t.prototype.itemDone=function(t){this.setCurrent(t)};t.prototype.changeEventHandler=function(t){var e=this;this.items=this.queryItems();this.items.forEach((function(r,o){r.done=false;if("mds-stepper-bar-item-".concat(o)===t.detail){r.current=true;e.currentItem=o}}))};t.prototype.render=function(){return h(Host,null,h("div",{class:"items"},h("slot",null)),h("div",{class:"contents",part:"contents"},h("slot",{name:"content"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{itemsDone:["itemDone"]}},enumerable:false,configurable:true});return t}();MdsStepperBar.style=mdsStepperBarCss;export{MdsStepperBar as mds_stepper_bar}; |
@@ -1,1 +0,1 @@ | ||
import{p as promiseResolve,b as bootstrapLazy}from"./index-d14f7465.js";export{s as setNonce}from"./index-d14f7465.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};patchBrowser().then((function(e){return bootstrapLazy([["mds-stepper-bar",[[1,"mds-stepper-bar",{itemsDone:[2,"items-done"],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]]]]]],e)})); | ||
import{p as promiseResolve,b as bootstrapLazy}from"./index-1bcfc531.js";export{s as setNonce}from"./index-1bcfc531.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};patchBrowser().then((function(e){return bootstrapLazy([["mds-stepper-bar",[[1,"mds-stepper-bar",{itemsDone:[2,"items-done"],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{itemsDone:["itemDone"]}]]]],e)})); |
@@ -1,9 +0,9 @@ | ||
import { b as bootstrapLazy } from './index-d14f7465.js'; | ||
export { s as setNonce } from './index-d14f7465.js'; | ||
import { b as bootstrapLazy } from './index-1bcfc531.js'; | ||
export { s as setNonce } from './index-1bcfc531.js'; | ||
const defineCustomElements = (win, options) => { | ||
if (typeof window === 'undefined') return undefined; | ||
return bootstrapLazy([["mds-stepper-bar",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]]]]]], options); | ||
return bootstrapLazy([["mds-stepper-bar",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{"itemsDone":["itemDone"]}]]]], options); | ||
}; | ||
export { defineCustomElements }; |
@@ -1,4 +0,4 @@ | ||
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d14f7465.js'; | ||
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-1bcfc531.js'; | ||
const mdsStepperBarCss = ".fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.contents{display:contents}.hidden{display:none}.min-h-80{min-height:20rem}.items-center{-ms-flex-align:center;align-items:center}.justify-center{-ms-flex-pack:center;justify-content:center}.rounded-lg{border-radius:0.5rem}.border{border-width:1px}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgba(var(--label-amaranth-10), var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgba(var(--label-blue-10), var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgba(var(--label-green-10), var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgba(var(--label-orange-10), var(--tw-bg-opacity))}.bg-label-sky-10{--tw-bg-opacity:1;background-color:rgba(var(--label-sky-10), var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgba(var(--label-violet-10), var(--tw-bg-opacity))}.text-label-amaranth-04{--tw-text-opacity:1;color:rgba(var(--label-amaranth-04), var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgba(var(--label-blue-04), var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgba(var(--label-green-04), var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgba(var(--label-orange-04), var(--tw-text-opacity))}.text-label-sky-04{--tw-text-opacity:1;color:rgba(var(--label-sky-04), var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgba(var(--label-violet-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{position:relative;display:grid;gap:1.5rem}.items{position:relative;z-index:10;display:-ms-flexbox;display:flex;width:100%;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x var(--tw-scroll-snap-strictness);-ms-scroll-snap-type:x var(--tw-scroll-snap-strictness);scroll-snap-type:x var(--tw-scroll-snap-strictness);gap:0px;overflow:auto;scroll-behavior:smooth}:host([linear=\"true\"]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=\"false\"]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}:host([hydrated]) .contents{opacity:1}"; | ||
const mdsStepperBarCss = ".fixed{position:fixed}.absolute{position:absolute}.flex{display:-ms-flexbox;display:flex}.contents{display:contents}.hidden{display:none}.min-h-80{min-height:20rem}.items-center{-ms-flex-align:center;align-items:center}.justify-center{-ms-flex-pack:center;justify-content:center}.rounded-lg{border-radius:0.5rem}.border{border-width:1px}.bg-label-amaranth-10{--tw-bg-opacity:1;background-color:rgba(var(--label-amaranth-10), var(--tw-bg-opacity))}.bg-label-blue-10{--tw-bg-opacity:1;background-color:rgba(var(--label-blue-10), var(--tw-bg-opacity))}.bg-label-green-10{--tw-bg-opacity:1;background-color:rgba(var(--label-green-10), var(--tw-bg-opacity))}.bg-label-orange-10{--tw-bg-opacity:1;background-color:rgba(var(--label-orange-10), var(--tw-bg-opacity))}.bg-label-sky-10{--tw-bg-opacity:1;background-color:rgba(var(--label-sky-10), var(--tw-bg-opacity))}.bg-label-violet-10{--tw-bg-opacity:1;background-color:rgba(var(--label-violet-10), var(--tw-bg-opacity))}.text-label-amaranth-04{--tw-text-opacity:1;color:rgba(var(--label-amaranth-04), var(--tw-text-opacity))}.text-label-blue-04{--tw-text-opacity:1;color:rgba(var(--label-blue-04), var(--tw-text-opacity))}.text-label-green-04{--tw-text-opacity:1;color:rgba(var(--label-green-04), var(--tw-text-opacity))}.text-label-orange-04{--tw-text-opacity:1;color:rgba(var(--label-orange-04), var(--tw-text-opacity))}.text-label-sky-04{--tw-text-opacity:1;color:rgba(var(--label-sky-04), var(--tw-text-opacity))}.text-label-violet-04{--tw-text-opacity:1;color:rgba(var(--label-violet-04), var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{gap:1.5rem;display:grid;position:relative}.items{z-index:10;width:100%;gap:0px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;overflow:auto;position:relative;scroll-behavior:smooth;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}:host([linear=\"true\"]) ::slotted(mds-stepper-bar-item),:host([linear]) ::slotted(mds-stepper-bar-item){pointer-events:none}:host([linear=\"false\"]) ::slotted(mds-stepper-bar-item){pointer-events:auto}.contents{width:100%;opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hydrated]) .contents{opacity:1}"; | ||
@@ -5,0 +5,0 @@ const MdsStepperBar = class { |
@@ -1,6 +0,6 @@ | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-d14f7465.js'; | ||
export { s as setNonce } from './index-d14f7465.js'; | ||
import { p as promiseResolve, b as bootstrapLazy } from './index-1bcfc531.js'; | ||
export { s as setNonce } from './index-1bcfc531.js'; | ||
/* | ||
Stencil Client Patch Browser v4.2.1 | MIT Licensed | https://stenciljs.com | ||
Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com | ||
*/ | ||
@@ -17,3 +17,3 @@ const patchBrowser = () => { | ||
patchBrowser().then(options => { | ||
return bootstrapLazy([["mds-stepper-bar",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]]]]]], options); | ||
return bootstrapLazy([["mds-stepper-bar",[[1,"mds-stepper-bar",{"itemsDone":[2,"items-done"],"currentItem":[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{"itemsDone":["itemDone"]}]]]], options); | ||
}); |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as t}from"./p-69c2a494.js";export{s as setNonce}from"./p-69c2a494.js";(()=>{const t=import.meta.url,r={};return""!==t&&(r.resourcesUrl=new URL(".",t).href),e(r)})().then((e=>t([["p-ea098dde",[[1,"mds-stepper-bar",{itemsDone:[2,"items-done"],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]]]]]],e))); | ||
import{p as e,b as t}from"./p-410c0bc6.js";export{s as setNonce}from"./p-410c0bc6.js";(()=>{const t=import.meta.url,r={};return""!==t&&(r.resourcesUrl=new URL(".",t).href),e(r)})().then((e=>t([["p-90abb3b6",[[1,"mds-stepper-bar",{itemsDone:[2,"items-done"],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{itemsDone:["itemDone"]}]]]],e))); |
{ | ||
"timestamp": "2023-09-18T09:20:25", | ||
"timestamp": "2023-09-27T11:28:43", | ||
"compiler": { | ||
"name": "node", | ||
"version": "18.12.1" | ||
"version": "18.16.1" | ||
}, | ||
@@ -60,3 +60,3 @@ "app": { | ||
"generatedFiles": [ | ||
"./dist/cjs/index-ad600c59.js", | ||
"./dist/cjs/index-68a5a388.js", | ||
"./dist/cjs/index.cjs.js", | ||
@@ -66,3 +66,3 @@ "./dist/cjs/loader.cjs.js", | ||
"./dist/cjs/mds-stepper-bar.cjs.js", | ||
"./dist/esm-es5/index-d14f7465.js", | ||
"./dist/esm-es5/index-1bcfc531.js", | ||
"./dist/esm-es5/index.js", | ||
@@ -72,3 +72,3 @@ "./dist/esm-es5/loader.js", | ||
"./dist/esm-es5/mds-stepper-bar.js", | ||
"./dist/esm/index-d14f7465.js", | ||
"./dist/esm/index-1bcfc531.js", | ||
"./dist/esm/index.js", | ||
@@ -83,17 +83,17 @@ "./dist/esm/loader.js", | ||
"./dist/mds-stepper-bar/mds-stepper-bar.js", | ||
"./dist/mds-stepper-bar/p-0ec8bff1.system.js", | ||
"./dist/mds-stepper-bar/p-4a7d9dc2.system.js", | ||
"./dist/mds-stepper-bar/p-410c0bc6.js", | ||
"./dist/mds-stepper-bar/p-50ea2036.system.js", | ||
"./dist/mds-stepper-bar/p-69c2a494.js", | ||
"./dist/mds-stepper-bar/p-e59cbf0c.system.entry.js", | ||
"./dist/mds-stepper-bar/p-ea098dde.entry.js", | ||
"./dist/mds-stepper-bar/p-52001d19.system.entry.js", | ||
"./dist/mds-stepper-bar/p-90abb3b6.entry.js", | ||
"./dist/mds-stepper-bar/p-e0e258ff.system.js", | ||
"./dist/mds-stepper-bar/p-fcb39514.system.js", | ||
"./www/build/index.esm.js", | ||
"./www/build/mds-stepper-bar.esm.js", | ||
"./www/build/mds-stepper-bar.js", | ||
"./www/build/p-0ec8bff1.system.js", | ||
"./www/build/p-4a7d9dc2.system.js", | ||
"./www/build/p-410c0bc6.js", | ||
"./www/build/p-50ea2036.system.js", | ||
"./www/build/p-69c2a494.js", | ||
"./www/build/p-e59cbf0c.system.entry.js", | ||
"./www/build/p-ea098dde.entry.js" | ||
"./www/build/p-52001d19.system.entry.js", | ||
"./www/build/p-90abb3b6.entry.js", | ||
"./www/build/p-e0e258ff.system.js", | ||
"./www/build/p-fcb39514.system.js" | ||
] | ||
@@ -131,8 +131,8 @@ }, | ||
], | ||
"bundleId": "p-ea098dde", | ||
"fileName": "p-ea098dde.entry.js", | ||
"bundleId": "p-90abb3b6", | ||
"fileName": "p-90abb3b6.entry.js", | ||
"imports": [ | ||
"p-69c2a494.js" | ||
"p-410c0bc6.js" | ||
], | ||
"originalByteSize": 6420 | ||
"originalByteSize": 6351 | ||
} | ||
@@ -149,5 +149,5 @@ ], | ||
"imports": [ | ||
"index-d14f7465.js" | ||
"index-1bcfc531.js" | ||
], | ||
"originalByteSize": 6424 | ||
"originalByteSize": 6355 | ||
} | ||
@@ -164,5 +164,5 @@ ], | ||
"imports": [ | ||
"index-d14f7465.js" | ||
"index-1bcfc531.js" | ||
], | ||
"originalByteSize": 6424 | ||
"originalByteSize": 6355 | ||
} | ||
@@ -176,8 +176,8 @@ ], | ||
], | ||
"bundleId": "p-e59cbf0c.system", | ||
"fileName": "p-e59cbf0c.system.entry.js", | ||
"bundleId": "p-52001d19.system", | ||
"fileName": "p-52001d19.system.entry.js", | ||
"imports": [ | ||
"p-4a7d9dc2.system.js" | ||
"p-e0e258ff.system.js" | ||
], | ||
"originalByteSize": 7232 | ||
"originalByteSize": 7163 | ||
} | ||
@@ -194,5 +194,5 @@ ], | ||
"imports": [ | ||
"index-ad600c59.js" | ||
"index-68a5a388.js" | ||
], | ||
"originalByteSize": 6489 | ||
"originalByteSize": 6420 | ||
} | ||
@@ -478,3 +478,3 @@ ] | ||
"sc-mds-stepper-bar": [ | ||
"p-69c2a494.js" | ||
"p-410c0bc6.js" | ||
] | ||
@@ -481,0 +481,0 @@ }, |
declare const unslugName: (name: string) => string; | ||
declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string; | ||
declare const hashValue: (value: string) => string; | ||
export { unslugName, setAttributeIfEmpty, hashValue, }; | ||
declare const hashRandomValue: (value?: string) => string; | ||
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, }; |
{ | ||
"timestamp": "2023-09-18T08:43:05", | ||
"timestamp": "2023-09-27T10:36:27", | ||
"compiler": { | ||
"name": "@stencil/core", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"typescriptVersion": "5.1.6" | ||
@@ -13,4 +13,4 @@ }, | ||
"tag": "mds-stepper-bar", | ||
"readme": "# mds-stepper-bar\n\n\n", | ||
"docs": "", | ||
"readme": "# mds-stepper-bar\n\n\n\nThis is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.\n", | ||
"docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.", | ||
"docsTags": [ | ||
@@ -269,2 +269,7 @@ { | ||
}, | ||
"src/components/mds-header-bar/meta/types.ts::MenuType": { | ||
"declaration": "export type MenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'", | ||
"docstring": "", | ||
"path": "src/components/mds-header-bar/meta/types.ts" | ||
}, | ||
"src/components/mds-header/meta/event-detail.ts::MdsHeaderEventDetail": { | ||
@@ -375,2 +380,7 @@ "declaration": "export interface MdsHeaderEventDetail {\n bar: HTMLMdsHeaderBarElement\n}", | ||
}, | ||
"src/components/mds-price-table-features-cell/meta/types.ts::PriceTableFeaturesCellType": { | ||
"declaration": "export type PriceTableFeaturesCellType =\n | 'custom'\n | 'label'\n | 'supported'\n | 'text'\n | 'unsupported'", | ||
"docstring": "", | ||
"path": "src/components/mds-price-table-features-cell/meta/types.ts" | ||
}, | ||
"src/components/mds-progress/meta/types.ts::DirectionType": { | ||
@@ -377,0 +387,0 @@ "declaration": "export type DirectionType =\n | 'horizontal'\n | 'vertical'", |
{ | ||
"name": "@maggioli-design-system/mds-stepper-bar", | ||
"version": "5.1.0", | ||
"description": "mds-stepper-bar is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.", | ||
"version": "5.1.1", | ||
"description": "mds-stepper-bar is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.", | ||
"main": "dist/index.cjs.js", | ||
@@ -26,6 +26,6 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@maggioli-design-system/mds-progress": "^2.6.0", | ||
"@maggioli-design-system/mds-stepper-bar-item": "^5.1.0", | ||
"@maggioli-design-system/mds-progress": "^2.6.1", | ||
"@maggioli-design-system/mds-stepper-bar-item": "^5.1.1", | ||
"@maggioli-design-system/styles": "^11.7.0", | ||
"@stencil/core": "^4.2.1" | ||
"@stencil/core": "^4.3.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "license": "MIT", |
@@ -5,2 +5,4 @@ # mds-stepper-bar | ||
This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using. | ||
<!-- Auto Generated Below --> | ||
@@ -40,2 +42,2 @@ | ||
Built with love @ **Maggioli Informatica / R&D Department** | ||
Built with love @ [Gruppo Maggioli](https://www.maggioli.com) from [R&D Department](https://www.maggioli.com/it-it/chi-siamo/ricerca-sviluppo) |
@@ -9,2 +9,4 @@ const hash = (s: string): string => { | ||
const randomInt = (max: number): number => Math.floor(Math.random() * max) | ||
const unslugName = (name: string): string => { | ||
@@ -24,6 +26,16 @@ return name.split('/')?.slice(-1).pop()?.replace(/-/g, ' ') ?? name | ||
const hashRandomValue = (value?: string): string => { | ||
const randomValue = randomInt(1000000) | ||
if (value) { | ||
return `${value}-${hash(randomValue.toString())}` | ||
} | ||
return hash(randomValue.toString()) | ||
} | ||
export { | ||
unslugName, | ||
setAttributeIfEmpty, | ||
hashRandomValue, | ||
hashValue, | ||
} |
@@ -39,2 +39,2 @@ # mds-stepper-bar | ||
Built with love @ **Maggioli Informatica / R&D Department** | ||
Built with love @ [Gruppo Maggioli](https://www.maggioli.com) from [R&D Department](https://www.maggioli.com/it-it/chi-siamo/ricerca-sviluppo) |
@@ -250,2 +250,3 @@ [ | ||
"mi/baseline/groups", | ||
"mi/baseline/horizontal-rule", | ||
"mi/baseline/indeterminate-check-box", | ||
@@ -276,2 +277,3 @@ "mi/baseline/info", | ||
"mi/baseline/wysiwyg", | ||
"mi/outline/help-outline", | ||
"mi/round/arrow-circle-down", | ||
@@ -278,0 +280,0 @@ "mi/round/email", |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as t}from"./p-69c2a494.js";export{s as setNonce}from"./p-69c2a494.js";(()=>{const t=import.meta.url,r={};return""!==t&&(r.resourcesUrl=new URL(".",t).href),e(r)})().then((e=>t([["p-ea098dde",[[1,"mds-stepper-bar",{itemsDone:[2,"items-done"],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]]]]]],e))); | ||
import{p as e,b as t}from"./p-410c0bc6.js";export{s as setNonce}from"./p-410c0bc6.js";(()=>{const t=import.meta.url,r={};return""!==t&&(r.resourcesUrl=new URL(".",t).href),e(r)})().then((e=>t([["p-90abb3b6",[[1,"mds-stepper-bar",{itemsDone:[2,"items-done"],currentItem:[32]},[[0,"mdsStepperBarItemDone","changeEventHandler"]],{itemsDone:["itemDone"]}]]]],e))); |
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 too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
812692
11209
42