@maggioli-design-system/mds-progress 2.8.2 → 2.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-53e759e9.js → index-ef941864.js} +22 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-progress.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +0 -5
- package/dist/components/mds-progress.js +1 -1
- package/dist/documentation.d.ts +1 -21
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-d7c3a08c.js → index-370f577b.js} +22 -14
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-progress.entry.js +2 -2
- package/dist/esm/mds-progress.js +3 -3
- package/dist/esm-es5/index-370f577b.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-progress.js +1 -1
- package/dist/mds-progress/mds-progress.esm.js +1 -1
- package/dist/mds-progress/mds-progress.js +1 -1
- package/dist/mds-progress/{p-ba0c7117.entry.js → p-3e473a5b.entry.js} +1 -1
- package/dist/mds-progress/{p-72564754.system.js → p-690d2715.system.js} +1 -1
- package/dist/mds-progress/p-87430859.js +2 -0
- package/dist/mds-progress/p-9135177f.system.entry.js +1 -0
- package/dist/mds-progress/p-bf3c5077.system.js +2 -0
- package/dist/stats.json +36 -33
- package/documentation.json +2 -2
- package/package.json +3 -3
- package/www/build/mds-progress.esm.js +1 -1
- package/www/build/mds-progress.js +1 -1
- package/www/build/{p-ba0c7117.entry.js → p-3e473a5b.entry.js} +1 -1
- package/www/build/{p-72564754.system.js → p-690d2715.system.js} +1 -1
- package/www/build/p-87430859.js +2 -0
- package/www/build/p-9135177f.system.entry.js +1 -0
- package/www/build/p-bf3c5077.system.js +2 -0
- package/dist/esm-es5/index-d7c3a08c.js +0 -1
- package/dist/mds-progress/p-3fd7c0e1.system.js +0 -2
- package/dist/mds-progress/p-e157ffcb.js +0 -2
- package/dist/mds-progress/p-efdf2de7.system.entry.js +0 -1
- package/www/build/p-3fd7c0e1.system.js +0 -2
- package/www/build/p-e157ffcb.js +0 -2
- package/www/build/p-efdf2de7.system.entry.js +0 -1
|
@@ -479,6 +479,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
+
// This needs to always happen so we can hide nodes that are projected
|
|
483
|
+
// to another component but don't end up in a slot
|
|
484
|
+
elm['s-hn'] = hostTagName;
|
|
482
485
|
return elm;
|
|
483
486
|
};
|
|
484
487
|
/**
|
|
@@ -602,8 +605,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
602
605
|
* @param oldCh the old children of the parent node
|
|
603
606
|
* @param newVNode the new VNode which will replace the parent
|
|
604
607
|
* @param newCh the new children of the parent node
|
|
608
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
605
609
|
*/
|
|
606
|
-
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
610
|
+
const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
|
|
607
611
|
let oldStartIdx = 0;
|
|
608
612
|
let newStartIdx = 0;
|
|
609
613
|
let oldEndIdx = oldCh.length - 1;
|
|
@@ -627,25 +631,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
627
631
|
else if (newEndVnode == null) {
|
|
628
632
|
newEndVnode = newCh[--newEndIdx];
|
|
629
633
|
}
|
|
630
|
-
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
634
|
+
else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
631
635
|
// if the start nodes are the same then we should patch the new VNode
|
|
632
636
|
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
633
637
|
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
634
638
|
// since things are matched up in order.
|
|
635
|
-
patch(oldStartVnode, newStartVnode);
|
|
639
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
636
640
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
637
641
|
newStartVnode = newCh[++newStartIdx];
|
|
638
642
|
}
|
|
639
|
-
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
643
|
+
else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
640
644
|
// likewise, if the end nodes are the same we patch new onto old and
|
|
641
645
|
// decrement our end indices, and also likewise in this case we don't
|
|
642
646
|
// need to move any DOM Nodes.
|
|
643
|
-
patch(oldEndVnode, newEndVnode);
|
|
647
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
644
648
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
645
649
|
newEndVnode = newCh[--newEndIdx];
|
|
646
650
|
}
|
|
647
|
-
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
648
|
-
patch(oldStartVnode, newEndVnode);
|
|
651
|
+
else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
652
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
649
653
|
// We need to move the element for `oldStartVnode` into a position which
|
|
650
654
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
651
655
|
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
@@ -667,8 +671,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
667
671
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
668
672
|
newEndVnode = newCh[--newEndIdx];
|
|
669
673
|
}
|
|
670
|
-
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
671
|
-
patch(oldEndVnode, newStartVnode);
|
|
674
|
+
else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
675
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
672
676
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
673
677
|
// the same node, so since we're here we know that they are not. Thus we
|
|
674
678
|
// can move the element for `oldEndVnode` _before_ the element for
|
|
@@ -722,9 +726,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
722
726
|
*
|
|
723
727
|
* @param leftVNode the first VNode to check
|
|
724
728
|
* @param rightVNode the second VNode to check
|
|
729
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
725
730
|
* @returns whether they're equal or not
|
|
726
731
|
*/
|
|
727
|
-
const isSameVnode = (leftVNode, rightVNode) => {
|
|
732
|
+
const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
728
733
|
// compare if two vnode to see if they're "technically" the same
|
|
729
734
|
// need to have the same element tag, and same key to be the same
|
|
730
735
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
@@ -739,8 +744,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
739
744
|
*
|
|
740
745
|
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
741
746
|
* @param newVNode a new VNode representing an updated version of the old one
|
|
747
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
742
748
|
*/
|
|
743
|
-
const patch = (oldVNode, newVNode) => {
|
|
749
|
+
const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
744
750
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
745
751
|
const oldChildren = oldVNode.$children$;
|
|
746
752
|
const newChildren = newVNode.$children$;
|
|
@@ -756,7 +762,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
756
762
|
if (oldChildren !== null && newChildren !== null) {
|
|
757
763
|
// looks like there's child vnodes for both the old and new vnodes
|
|
758
764
|
// so we need to call `updateChildren` to reconcile them
|
|
759
|
-
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
765
|
+
updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
|
|
760
766
|
}
|
|
761
767
|
else if (newChildren !== null) {
|
|
762
768
|
// add the new vnode children
|
|
@@ -825,7 +831,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
825
831
|
scopeId = hostElm['s-sc'];
|
|
826
832
|
}
|
|
827
833
|
// synchronous patch
|
|
828
|
-
patch(oldVNode, rootVnode);
|
|
834
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
829
835
|
};
|
|
830
836
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
831
837
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
@@ -1496,12 +1502,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1496
1502
|
// If we have styles, add them to the DOM
|
|
1497
1503
|
if (dataStyles.innerHTML.length) {
|
|
1498
1504
|
dataStyles.setAttribute('data-styles', '');
|
|
1499
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1500
1505
|
// Apply CSP nonce to the style tag if it exists
|
|
1501
1506
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1502
1507
|
if (nonce != null) {
|
|
1503
1508
|
dataStyles.setAttribute('nonce', nonce);
|
|
1504
1509
|
}
|
|
1510
|
+
// Insert the styles into the document head
|
|
1511
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1512
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1505
1513
|
}
|
|
1506
1514
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1507
1515
|
isBootstrapping = false;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ef941864.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ef941864.js');
|
|
6
6
|
|
|
7
|
-
const mdsProgressCss = "@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.
|
|
7
|
+
const mdsProgressCss = "@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.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([variant=\"dark\"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant=\"light\"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant=\"primary\"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}";
|
|
8
8
|
|
|
9
9
|
const MdsProgress = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ef941864.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.
|
|
8
|
+
Stencil Client Patch Browser v4.9.1 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-progress.cjs.js', document.baseURI).href));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const mdsProgressCss = "@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.
|
|
3
|
+
const mdsProgressCss = "@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.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([variant=\"dark\"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant=\"light\"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant=\"primary\"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}";
|
|
4
4
|
|
|
5
5
|
const MdsProgress$1 = /*@__PURE__*/ proxyCustomElement(class MdsProgress extends HTMLElement {
|
|
6
6
|
constructor() {
|
package/dist/documentation.d.ts
CHANGED
|
@@ -60,30 +60,10 @@ interface ComponentCompilerEventComplexType {
|
|
|
60
60
|
}
|
|
61
61
|
interface ComponentCompilerMethodComplexType {
|
|
62
62
|
signature: string;
|
|
63
|
-
parameters:
|
|
63
|
+
parameters: JsonDocMethodParameter[];
|
|
64
64
|
references: ComponentCompilerTypeReferences;
|
|
65
65
|
return: string;
|
|
66
66
|
}
|
|
67
|
-
interface CompilerJsDoc {
|
|
68
|
-
/**
|
|
69
|
-
* The text associated with the JSDoc
|
|
70
|
-
*/
|
|
71
|
-
text: string;
|
|
72
|
-
/**
|
|
73
|
-
* Tags included in the JSDoc
|
|
74
|
-
*/
|
|
75
|
-
tags: CompilerJsDocTagInfo[];
|
|
76
|
-
}
|
|
77
|
-
interface CompilerJsDocTagInfo {
|
|
78
|
-
/**
|
|
79
|
-
* The name of the tag - e.g. `@deprecated`
|
|
80
|
-
*/
|
|
81
|
-
name: string;
|
|
82
|
-
/**
|
|
83
|
-
* Additional text that is associated with the tag - e.g. `@deprecated use v2 of this API`
|
|
84
|
-
*/
|
|
85
|
-
text?: string;
|
|
86
|
-
}
|
|
87
67
|
/**
|
|
88
68
|
* The Type Library holds information about the types which are used in a
|
|
89
69
|
* Stencil project. During compilation, Stencil gathers information about the
|
package/dist/documentation.json
CHANGED
|
@@ -457,6 +457,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
+
// This needs to always happen so we can hide nodes that are projected
|
|
461
|
+
// to another component but don't end up in a slot
|
|
462
|
+
elm['s-hn'] = hostTagName;
|
|
460
463
|
return elm;
|
|
461
464
|
};
|
|
462
465
|
/**
|
|
@@ -580,8 +583,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
580
583
|
* @param oldCh the old children of the parent node
|
|
581
584
|
* @param newVNode the new VNode which will replace the parent
|
|
582
585
|
* @param newCh the new children of the parent node
|
|
586
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
583
587
|
*/
|
|
584
|
-
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
588
|
+
const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
|
|
585
589
|
let oldStartIdx = 0;
|
|
586
590
|
let newStartIdx = 0;
|
|
587
591
|
let oldEndIdx = oldCh.length - 1;
|
|
@@ -605,25 +609,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
605
609
|
else if (newEndVnode == null) {
|
|
606
610
|
newEndVnode = newCh[--newEndIdx];
|
|
607
611
|
}
|
|
608
|
-
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
612
|
+
else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
609
613
|
// if the start nodes are the same then we should patch the new VNode
|
|
610
614
|
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
611
615
|
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
612
616
|
// since things are matched up in order.
|
|
613
|
-
patch(oldStartVnode, newStartVnode);
|
|
617
|
+
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
614
618
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
615
619
|
newStartVnode = newCh[++newStartIdx];
|
|
616
620
|
}
|
|
617
|
-
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
621
|
+
else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
618
622
|
// likewise, if the end nodes are the same we patch new onto old and
|
|
619
623
|
// decrement our end indices, and also likewise in this case we don't
|
|
620
624
|
// need to move any DOM Nodes.
|
|
621
|
-
patch(oldEndVnode, newEndVnode);
|
|
625
|
+
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
622
626
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
623
627
|
newEndVnode = newCh[--newEndIdx];
|
|
624
628
|
}
|
|
625
|
-
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
626
|
-
patch(oldStartVnode, newEndVnode);
|
|
629
|
+
else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
630
|
+
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
627
631
|
// We need to move the element for `oldStartVnode` into a position which
|
|
628
632
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
629
633
|
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
@@ -645,8 +649,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
645
649
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
646
650
|
newEndVnode = newCh[--newEndIdx];
|
|
647
651
|
}
|
|
648
|
-
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
649
|
-
patch(oldEndVnode, newStartVnode);
|
|
652
|
+
else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
653
|
+
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
650
654
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
651
655
|
// the same node, so since we're here we know that they are not. Thus we
|
|
652
656
|
// can move the element for `oldEndVnode` _before_ the element for
|
|
@@ -700,9 +704,10 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
700
704
|
*
|
|
701
705
|
* @param leftVNode the first VNode to check
|
|
702
706
|
* @param rightVNode the second VNode to check
|
|
707
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
703
708
|
* @returns whether they're equal or not
|
|
704
709
|
*/
|
|
705
|
-
const isSameVnode = (leftVNode, rightVNode) => {
|
|
710
|
+
const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
706
711
|
// compare if two vnode to see if they're "technically" the same
|
|
707
712
|
// need to have the same element tag, and same key to be the same
|
|
708
713
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
@@ -717,8 +722,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
717
722
|
*
|
|
718
723
|
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
719
724
|
* @param newVNode a new VNode representing an updated version of the old one
|
|
725
|
+
* @param isInitialRender whether or not this is the first render of the vdom
|
|
720
726
|
*/
|
|
721
|
-
const patch = (oldVNode, newVNode) => {
|
|
727
|
+
const patch = (oldVNode, newVNode, isInitialRender = false) => {
|
|
722
728
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
723
729
|
const oldChildren = oldVNode.$children$;
|
|
724
730
|
const newChildren = newVNode.$children$;
|
|
@@ -734,7 +740,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
734
740
|
if (oldChildren !== null && newChildren !== null) {
|
|
735
741
|
// looks like there's child vnodes for both the old and new vnodes
|
|
736
742
|
// so we need to call `updateChildren` to reconcile them
|
|
737
|
-
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
743
|
+
updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
|
|
738
744
|
}
|
|
739
745
|
else if (newChildren !== null) {
|
|
740
746
|
// add the new vnode children
|
|
@@ -803,7 +809,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
803
809
|
scopeId = hostElm['s-sc'];
|
|
804
810
|
}
|
|
805
811
|
// synchronous patch
|
|
806
|
-
patch(oldVNode, rootVnode);
|
|
812
|
+
patch(oldVNode, rootVnode, isInitialLoad);
|
|
807
813
|
};
|
|
808
814
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
809
815
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
@@ -1474,12 +1480,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1474
1480
|
// If we have styles, add them to the DOM
|
|
1475
1481
|
if (dataStyles.innerHTML.length) {
|
|
1476
1482
|
dataStyles.setAttribute('data-styles', '');
|
|
1477
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1478
1483
|
// Apply CSP nonce to the style tag if it exists
|
|
1479
1484
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1480
1485
|
if (nonce != null) {
|
|
1481
1486
|
dataStyles.setAttribute('nonce', nonce);
|
|
1482
1487
|
}
|
|
1488
|
+
// Insert the styles into the document head
|
|
1489
|
+
// NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
|
|
1490
|
+
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1483
1491
|
}
|
|
1484
1492
|
// Process deferred connectedCallbacks now all components have been registered
|
|
1485
1493
|
isBootstrapping = false;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-370f577b.js';
|
|
2
|
+
export { s as setNonce } from './index-370f577b.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-370f577b.js';
|
|
2
2
|
|
|
3
|
-
const mdsProgressCss = "@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.
|
|
3
|
+
const mdsProgressCss = "@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.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([variant=\"dark\"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant=\"light\"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant=\"primary\"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}";
|
|
4
4
|
|
|
5
5
|
const MdsProgress = class {
|
|
6
6
|
constructor(hostRef) {
|
package/dist/esm/mds-progress.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-370f577b.js';
|
|
2
|
+
export { s as setNonce } from './index-370f577b.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.9.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]};return e(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,r,n,t){function i(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{s(t.next(e))}catch(e){a(e)}}function u(e){try{s(t["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(r){return s([e,r])}}function s(u){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=r.call(e,n)}catch(e){u=[6,e];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var t=0,i=r.length,a;t<i;t++){if(a||!(t in r)){if(!a)a=Array.prototype.slice.call(r,0,t);a[t]=r[t]}}return e.concat(a||Array.prototype.slice.call(r))};var NAMESPACE="mds-progress";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,n,t;return(t=(n=(r=e.head)===null||r===void 0?void 0:r.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&t!==void 0?t:undefined}var h=function(e,r){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=false;var o=false;var u=[];var s=function(r){for(var n=0;n<r.length;n++){i=r[n];if(Array.isArray(i)){s(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(a&&o){u[u.length-1].t+=i}else{u.push(a?newVNode(null,i):i)}o=a}}};s(n);if(r){{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var l=newVNode(e,null);l.i=r;if(u.length>0){l.o=u}return l};var newVNode=function(e,r){var n={u:0,l:e,t:r,v:null,o:null};{n.i=null}return n};var Host={};var isHost=function(e){return e&&e.l===Host};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var emitEvent=function(e,r,n){var t=plt.ce(r,n);e.dispatchEvent(t);return t};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,n){var t=styles.get(e);if(supportsConstructableStylesheets&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=r}else{t.replaceSync(r)}}else{t=r}styles.set(e,t)};var addStyle=function(e,r,n){var t;var i=getScopeId(r);var a=styles.get(i);e=e.nodeType===11?e:doc;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var u=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){{u=doc.createElement("style");u.innerHTML=a;var s=(t=plt.p)!==null&&t!==void 0?t:queryNonceMetaTagContent(doc);if(s!=null){u.setAttribute("nonce",s)}e.insertBefore(u,e.querySelector("link"))}if(r.u&4){u.innerHTML+=SLOT_FB_CSS}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var attachStyles=function(e){var r=e.m;var n=e.$hostElement$;var t=r.u;var i=createTime("attachStyles",r.h);var a=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),r);if(t&10){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var getScopeId=function(e,r){return"sc-"+e.h};var setAccessor=function(e,r,n,t,i,a){if(n!==t){var o=isMemberInElement(e,r);r.toLowerCase();if(r==="class"){var u=e.classList;var s=parseClassList(n);var f=parseClassList(t);u.remove.apply(u,s.filter((function(e){return e&&!f.includes(e)})));u.add.apply(u,f.filter((function(e){return e&&!s.includes(e)})))}else if(r==="style"){{for(var l in n){if(!t||t[l]==null){if(l.includes("-")){e.style.removeProperty(l)}else{e.style[l]=""}}}}for(var l in t){if(!n||t[l]!==n[l]){if(l.includes("-")){e.style.setProperty(l,t[l])}else{e.style[l]=t[l]}}}}else{var c=isComplexType(t);if((o||c&&t!==null)&&!i){try{if(!e.tagName.includes("-")){var v=t==null?"":t;if(r==="list"){o=false}else if(n==null||e[r]!=v){e[r]=v}}else{e[r]=t}}catch(e){}}if(t==null||t===false){if(t!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!o||a&4||i)&&!c){t=t===true?"":t;{e.setAttribute(r,t)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,r,n,t){var i=r.v.nodeType===11&&r.v.host?r.v.host:r.v;var a=e&&e.i||EMPTY_OBJ;var o=r.i||EMPTY_OBJ;{for(t in a){if(!(t in o)){setAccessor(i,t,a[t],undefined,n,r.u)}}}for(t in o){setAccessor(i,t,a[t],o[t],n,r.u)}};var createElm=function(e,r,n,t){var i=r.o[n];var a=0;var o;var u;{o=i.v=doc.createElement(i.l);{updateElement(null,i,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(i.o){for(a=0;a<i.o.length;++a){u=createElm(e,i,a);if(u){o.appendChild(u)}}}}o["s-hn"]=hostTagName;return o};var addVnodes=function(e,r,n,t,i,a){var o=e;var u;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;i<=a;++i){if(t[i]){u=createElm(null,n,i);if(u){t[i].v=u;o.insertBefore(u,r)}}}};var removeVnodes=function(e,r,n){for(var t=r;t<=n;++t){var i=e[t];if(i){var a=i.v;if(a){a.remove()}}}};var updateChildren=function(e,r,n,t,i){if(i===void 0){i=false}var a=0;var o=0;var u=r.length-1;var s=r[0];var f=r[u];var l=t.length-1;var c=t[0];var v=t[l];var d;while(a<=u&&o<=l){if(s==null){s=r[++a]}else if(f==null){f=r[--u]}else if(c==null){c=t[++o]}else if(v==null){v=t[--l]}else if(isSameVnode(s,c,i)){patch(s,c,i);s=r[++a];c=t[++o]}else if(isSameVnode(f,v,i)){patch(f,v,i);f=r[--u];v=t[--l]}else if(isSameVnode(s,v,i)){patch(s,v,i);e.insertBefore(s.v,f.v.nextSibling);s=r[++a];v=t[--l]}else if(isSameVnode(f,c,i)){patch(f,c,i);e.insertBefore(f.v,s.v);f=r[--u];c=t[++o]}else{{d=createElm(r&&r[o],n,o);c=t[++o]}if(d){{s.v.parentNode.insertBefore(d,s.v)}}}}if(a>u){addVnodes(e,t[l+1]==null?null:t[l+1].v,n,t,o,l)}else if(o>l){removeVnodes(r,a,u)}};var isSameVnode=function(e,r,n){if(n===void 0){n=false}if(e.l===r.l){return true}return false};var patch=function(e,r,n){if(n===void 0){n=false}var t=r.v=e.v;var i=e.o;var a=r.o;{{{updateElement(e,r,isSvgMode)}}if(i!==null&&a!==null){updateChildren(t,i,r,a,n)}else if(a!==null){addVnodes(t,null,r,a,0,a.length-1)}else if(i!==null){removeVnodes(i,0,i.length-1)}}};var renderVdom=function(e,r,n){if(n===void 0){n=false}var t=e.$hostElement$;var i=e.m;var a=e.S||newVNode(null,null);var o=isHost(r)?r:h(null,null,r);hostTagName=t.tagName;if(i.C){o.i=o.i||{};i.C.map((function(e){var r=e[0],n=e[1];return o.i[n]=t[r]}))}if(n&&o.i){for(var u=0,s=Object.keys(o.i);u<s.length;u++){var f=s[u];if(t.hasAttribute(f)&&!["key","ref","style","class"].includes(f)){o.i[f]=t[f]}}}o.l=null;o.u|=4;e.S=o;o.v=a.v=t.shadowRoot||t;{scopeId=t["s-sc"]}patch(a,o,n)};var attachToAncestor=function(e,r){if(r&&!e.T&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.T=r})))}};var scheduleUpdate=function(e,r){{e.u|=16}if(e.u&4){e.u|=512;return}attachToAncestor(e,e._);var n=function(){return dispatchHooks(e,r)};return writeTask(n)};var dispatchHooks=function(e,r){var n=createTime("scheduleUpdate",e.m.h);var t=e.$;var i;if(r){{i=safeCall(t,"componentWillLoad")}}n();return enqueue(i,(function(){return updateComponent(e,t,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,n){return __awaiter(void 0,void 0,void 0,(function(){var t,i,a,o,u,s,f;return __generator(this,(function(l){i=e.$hostElement$;a=createTime("update",e.m.h);o=i["s-rc"];if(n){attachStyles(e)}u=createTime("render",e.m.h);{callRender(e,r,i,n)}if(o){o.map((function(e){return e()}));i["s-rc"]=undefined}u();a();{s=(t=i["s-p"])!==null&&t!==void 0?t:[];f=function(){return postUpdateComponent(e)};if(s.length===0){f()}else{Promise.all(s).then(f);e.u|=4;s.length=0}}return[2]}))}))};var callRender=function(e,r,n,t){try{r=r.render();{e.u&=~16}{e.u|=2}{{{renderVdom(e,r,t)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.m.h;var n=e.$hostElement$;var t=createTime("postUpdate",r);var i=e._;if(!(e.u&64)){e.u|=64;{addHydratedFlag(n)}t();{e.M(n);if(!i){appDidLoad()}}}else{t()}{if(e.T){e.T();e.T=undefined}if(e.u&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.u&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,n){if(e&&e[r]){try{return e[r](n)}catch(e){consoleError(e)}}return undefined};var addHydratedFlag=function(e){return e.setAttribute("hydrated","")};var getValue=function(e,r){return getHostRef(e).k.get(r)};var setValue=function(e,r,n,t){var i=getHostRef(e);var a=i.$hostElement$;var o=i.k.get(r);var u=i.u;var s=i.$;n=parsePropertyValue(n,t.A[r][0]);var f=Number.isNaN(o)&&Number.isNaN(n);var l=n!==o&&!f;if((!(u&8)||o===undefined)&&l){i.k.set(r,n);if(s){if(t.R&&u&128){var c=t.R[r];if(c){c.map((function(e){try{s[e](n,o,r)}catch(e){consoleError(e,a)}}))}}if((u&(2|16))===2){scheduleUpdate(i,false)}}}};var proxyComponent=function(e,r,n){var t;var i=e.prototype;if(r.A){if(e.watchers){r.R=e.watchers}var a=Object.entries(r.A);a.map((function(e){var t=e[0],a=e[1][0];if(a&31||n&2&&a&32){Object.defineProperty(i,t,{get:function(){return getValue(this,t)},set:function(e){setValue(this,t,e,r)},configurable:true,enumerable:true})}}));if(n&1){var o=new Map;i.attributeChangedCallback=function(e,n,t){var a=this;plt.jmp((function(){var u;var s=o.get(e);if(a.hasOwnProperty(s)){t=a[s];delete a[s]}else if(i.hasOwnProperty(s)&&typeof a[s]==="number"&&a[s]==t){return}else if(s==null){var f=getHostRef(a);var l=f===null||f===void 0?void 0:f.u;if(l&&!(l&8)&&l&128&&t!==n){var c=f.$;var v=(u=r.R)===null||u===void 0?void 0:u[e];v===null||v===void 0?void 0:v.forEach((function(r){if(c[r]!=null){c[r].call(c,t,n,e)}}))}return}a[s]=t===null&&typeof a[s]==="boolean"?false:t}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=r.R)!==null&&t!==void 0?t:{}),true),a.filter((function(e){var r=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],t=e[1];var i;var a=t[1]||n;o.set(a,n);if(t[0]&512){(i=r.C)===null||i===void 0?void 0:i.push([n,a])}return a})),true)))}}return e};var initializeComponent=function(e,r,n,t){return __awaiter(void 0,void 0,void 0,(function(){var e,t,i,a,o,u,s,f;return __generator(this,(function(l){switch(l.label){case 0:if(!((r.u&32)===0))return[3,3];r.u|=32;e=loadModule(n);if(!e.then)return[3,2];t=uniqueTime();return[4,e];case 1:e=l.sent();t();l.label=2;case 2:if(!e.isProxied){{n.R=e.watchers}proxyComponent(e,n,2);e.isProxied=true}i=createTime("createInstance",n.h);{r.u|=8}try{new e(r)}catch(e){consoleError(e)}{r.u&=~8}{r.u|=128}i();if(e.style){a=e.style;o=getScopeId(n);if(!styles.has(o)){u=createTime("registerStyles",n.h);registerStyle(o,a,!!(n.u&1));u()}}l.label=3;case 3:s=r._;f=function(){return scheduleUpdate(r,true)};if(s&&s["s-rc"]){s["s-rc"].push(f)}else{f()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.u&1)===0){var r=getHostRef(e);var n=r.m;var t=createTime("connectedCallback",n.h);if(!(r.u&1)){r.u|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(r,r._=i);break}}}if(n.A){Object.entries(n.A).map((function(r){var n=r[0],t=r[1][0];if(t&31&&e.hasOwnProperty(n)){var i=e[n];delete e[n];e[n]=i}}))}{initializeComponent(e,r,n)}}else{if(r===null||r===void 0?void 0:r.$);else if(r===null||r===void 0?void 0:r.H){r.H.then((function(){return fireConnectedCallback()}))}}t()}};var disconnectInstance=function(e){};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(n){if((plt.u&1)===0){r=getHostRef(e);if(r===null||r===void 0?void 0:r.$);else if(r===null||r===void 0?void 0:r.H){r.H.then((function(){return disconnectInstance()}))}}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var n;var t=createTime();var i=[];var a=r.exclude||[];var o=win.customElements;var u=doc.head;var s=u.querySelector("meta[charset]");var f=doc.createElement("style");var l=[];var c;var v=true;Object.assign(plt,r);plt.V=new URL(r.resourcesUrl||"./",doc.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var n;var t={u:r[0],h:r[1],A:r[2],q:r[3]};if(t.u&4){d=true}{t.A=r[2]}{t.C=[]}{t.R=(n=r[4])!==null&&n!==void 0?n:{}}var u=t.h;var s=function(e){__extends(r,e);function r(r){var n=e.call(this,r)||this;r=n;registerHost(r,t);if(t.u&1){{{r.attachShadow({mode:"open"})}}}return n}r.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){l.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};r.prototype.componentOnReady=function(){return getHostRef(this).H};return r}(HTMLElement);t.P=e[0];if(!a.includes(u)&&!o.get(u)){i.push(u);o.define(u,proxyComponent(s,t,1))}}))}));if(d){f.innerHTML+=SLOT_FB_CSS}{f.innerHTML+=i+HYDRATED_CSS}if(f.innerHTML.length){f.setAttribute("data-styles","");var p=(n=plt.p)!==null&&n!==void 0?n:queryNonceMetaTagContent(doc);if(p!=null){f.setAttribute("nonce",p)}u.insertBefore(f,s?s.nextSibling:u.firstChild)}v=false;if(l.length){l.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}t()};var setNonce=function(e){return plt.p=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,r){return hostRefs.set(r.$=e,r)};var registerHost=function(e,r){var n={u:0,$hostElement$:e,m:r,k:new Map};{n.H=new Promise((function(e){return n.M=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,n)};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,n){var t=e.h.replace(/-/g,"_");var i=e.P;var a=cmpModules.get(i);if(a){return a[t]}if(!n||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(i,e);return e[t]};switch(i){case"mds-progress":return import("./mds-progress.entry.js").then(o,consoleError)}}return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[t]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={u:0,V:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,n,t){return e.addEventListener(r,n,t)},rel:function(e,r,n,t){return e.removeEventListener(r,n,t)},ce:function(e,r){return new CustomEvent(e,r)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(n){e.push(n);if(!queuePending){queuePending=true;if(r&&plt.u&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as bootstrapLazy}from"./index-
|
|
1
|
+
import{b as bootstrapLazy}from"./index-370f577b.js";export{s as setNonce}from"./index-370f577b.js";var defineCustomElements=function(e,s){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-progress",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],s)};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-370f577b.js";var mdsProgressCss='@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction="vertical"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.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([variant="dark"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant="light"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant="error"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant="warning"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant="success"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant="info"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant="primary"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}';var MdsProgress=function(){function r(r){registerInstance(this,r);this.stepsList=new Array;this.currentStep=undefined;this.progress=0;this.direction="horizontal";this.variant="primary";this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}r.prototype.componentWillLoad=function(){this.stepsList=this.steps.split(",");this.setProgress(this.progress)};r.prototype.setProgress=function(r){if(this.steps){this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))];this.element.setAttribute("aria-valuetext",this.currentStep)}};r.prototype.progressChanged=function(r){this.setProgress(r)};r.prototype.stepsChanged=function(r){this.stepsList=r.split(",")};r.prototype.render=function(){return h(Host,{"aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":Math.round(this.progress*100),role:"progressbar"},h("div",{class:"progress",style:this.direction==="horizontal"?{flexGrow:"".concat(this.progress)}:{flexGrow:"".concat(this.progress),width:"100%"}}))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{progress:["progressChanged"],steps:["stepsChanged"]}},enumerable:false,configurable:true});return r}();MdsProgress.style=mdsProgressCss;export{MdsProgress as mds_progress};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-370f577b.js";export{s as setNonce}from"./index-370f577b.js";var patchBrowser=function(){var r=import.meta.url;var s={};if(r!==""){s.resourcesUrl=new URL(".",r).href}return promiseResolve(s)};patchBrowser().then((function(r){return bootstrapLazy([["mds-progress",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],r)}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as r}from"./p-
|
|
1
|
+
import{p as e,b as r}from"./p-87430859.js";export{s as setNonce}from"./p-87430859.js";(()=>{const s=import.meta.url,r={};return""!==s&&(r.resourcesUrl=new URL(".",s).href),e(r)})().then((s=>r([["p-3e473a5b",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],s)));
|
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-690d2715.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as o,H as s,g as t}from"./p-
|
|
1
|
+
import{r,h as o,H as s,g as t}from"./p-87430859.js";const i=class{constructor(o){r(this,o),this.stepsList=new Array,this.currentStep=void 0,this.progress=0,this.direction="horizontal",this.variant="primary",this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}componentWillLoad(){this.stepsList=this.steps.split(","),this.setProgress(this.progress)}setProgress(r){this.steps&&(this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))],this.element.setAttribute("aria-valuetext",this.currentStep))}progressChanged(r){this.setProgress(r)}stepsChanged(r){this.stepsList=r.split(",")}render(){return o(s,{"aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":Math.round(100*this.progress),role:"progressbar"},o("div",{class:"progress",style:"horizontal"===this.direction?{flexGrow:`${this.progress}`}:{flexGrow:`${this.progress}`,width:"100%"}}))}get element(){return t(this)}static get watchers(){return{progress:["progressChanged"],steps:["stepsChanged"]}}};i.style='@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction="vertical"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.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([variant="dark"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant="light"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant="error"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant="warning"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant="success"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant="info"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant="primary"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}';export{i as mds_progress}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-bf3c5077.system.js"],(function(e,s){"use strict";var r,t;return{setters:[function(s){r=s.p;t=s.b;e("setNonce",s.s)}],execute:function(){var e=function(){var e=s.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return r(t)};e().then((function(e){return t([["p-9135177f.system",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],e)}))}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,t,e=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o={},s=n=>"object"==(n=typeof n)||"function"===n;function i(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const c=(n,t,...e)=>{let l=null,o=!1,i=!1;const c=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!s(l))&&(l+=""),o&&i?c[c.length-1].t+=l:c.push(o?r(null,l):l),i=o)};if(u(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=r(n,null);return a.l=t,c.length>0&&(a.o=c),a},r=(n,t)=>({i:0,u:n,t,h:null,o:null,l:null}),u={},a=n=>H(n).$hostElement$,f=new WeakMap,d=n=>"sc-"+n.p,y=(n,t,e,l,o,i)=>{if(e!==l){let c=q(n,t);if(t.toLowerCase(),"class"===t){const t=n.classList,o=p(e),s=p(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if("style"===t){for(const t in e)l&&null!=l[t]||(t.includes("-")?n.style.removeProperty(t):n.style[t]="");for(const t in l)e&&l[t]===e[t]||(t.includes("-")?n.style.setProperty(t,l[t]):n.style[t]=l[t])}else{const r=s(l);if((c||r&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||o)&&!r&&n.setAttribute(t,l=!0===l?"":l)}}},h=/\s/,p=n=>n?n.split(h):[],v=(n,t,e,l)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,i=n&&n.l||o,c=t.l||o;for(l in i)l in c||y(s,l,i[l],void 0,e,t.i);for(l in c)y(s,l,i[l],c[l],e,t.i)},$=(e,l,o)=>{const s=l.o[o];let i,c,r=0;if(i=s.h=G.createElement(s.u),v(null,s,!1),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.o)for(r=0;r<s.o.length;++r)c=$(e,s,r),c&&i.appendChild(c);return i["s-hn"]=t,i},m=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=$(null,l,s),c&&(o[s].h=c,r.insertBefore(c,e)))},b=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.h;n&&n.remove()}}},w=(n,t)=>n.u===t.u,S=(n,t,e=!1)=>{const l=t.h=n.h,o=n.o,s=t.o;v(n,t,!1),null!==o&&null!==s?((n,t,e,l,o=!1)=>{let s,i=0,c=0,r=t.length-1,u=t[0],a=t[r],f=l.length-1,d=l[0],y=l[f];for(;i<=r&&c<=f;)null==u?u=t[++i]:null==a?a=t[--r]:null==d?d=l[++c]:null==y?y=l[--f]:w(u,d)?(S(u,d,o),u=t[++i],d=l[++c]):w(a,y)?(S(a,y,o),a=t[--r],y=l[--f]):w(u,y)?(S(u,y,o),n.insertBefore(u.h,a.h.nextSibling),u=t[++i],y=l[--f]):w(a,d)?(S(a,d,o),n.insertBefore(a.h,u.h),a=t[--r],d=l[++c]):(s=$(t&&t[c],e,c),d=l[++c],s&&u.h.parentNode.insertBefore(s,u.h));i>r?m(n,null==l[f+1]?null:l[f+1].h,e,l,c,f):c>f&&b(t,i,r)})(l,o,t,s,e):null!==s?m(l,null,t,s,0,s.length-1):null!==o&&b(o,0,o.length-1)},g=(n,t)=>{t&&!n.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.v=t)))},j=(n,t)=>{if(n.i|=16,!(4&n.i))return g(n,n.$),en((()=>M(n,t)));n.i|=512},M=(n,t)=>{const e=n.m;let l;return t&&(l=E(e,"componentWillLoad")),O(l,(()=>C(n,e,t)))},O=(n,t)=>k(n)?n.then(t):t(),k=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,C=async(n,t,e)=>{var o;const s=n.$hostElement$,c=s["s-rc"];e&&(n=>{const t=n.S,e=n.$hostElement$,o=t.i,s=((n,t)=>{var e;const o=d(t),s=B.get(o);if(n=11===n.nodeType?n:G,s)if("string"==typeof s){let c,r=f.get(n=n.head||n);if(r||f.set(n,r=new Set),!r.has(o)){{c=G.createElement("style"),c.innerHTML=s;const t=null!==(e=I.j)&&void 0!==e?e:i(G);null!=t&&c.setAttribute("nonce",t),n.insertBefore(c,n.querySelector("link"))}4&t.i&&(c.innerHTML+=l),r&&r.add(o)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return o})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&o&&(e["s-sc"]=s,e.classList.add(s+"-h"))})(n);P(n,t,s,e),c&&(c.map((n=>n())),s["s-rc"]=void 0);{const t=null!==(o=s["s-p"])&&void 0!==o?o:[],e=()=>x(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},P=(e,l,o,s)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.$hostElement$,i=e.S,a=e.M||r(null,null),f=(n=>n&&n.u===u)(l)?l:c(null,null,l);if(t=s.tagName,i.O&&(f.l=f.l||{},i.O.map((([n,t])=>f.l[t]=s[n]))),o&&f.l)for(const n of Object.keys(f.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(f.l[n]=s[n]);f.u=null,f.i|=4,e.M=f,f.h=a.h=s.shadowRoot||s,n=s["s-sc"],S(a,f,o)})(e,l,s)}catch(n){V(n,e.$hostElement$)}return null},x=n=>{const t=n.$hostElement$,e=n.$;64&n.i||(n.i|=64,L(t),n.k(t),e||A()),n.v&&(n.v(),n.v=void 0),512&n.i&&tn((()=>j(n,!1))),n.i&=-517},A=()=>{L(G.documentElement),tn((()=>(n=>{const t=I.ce("appload",{detail:{namespace:"mds-progress"}});return n.dispatchEvent(t),t})(D)))},E=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){V(n)}},L=n=>n.setAttribute("hydrated",""),N=(n,t,e)=>{var l;const o=n.prototype;if(t.C){n.watchers&&(t.P=n.watchers);const i=Object.entries(t.C);if(i.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,n,{get(){return((n,t)=>H(this).A.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=H(n),i=o.$hostElement$,c=o.A.get(t),r=o.i,u=o.m;if(e=((n,t)=>null==n||s(n)?n:2&t?parseFloat(n):1&t?n+"":n)(e,l.C[t][0]),(!(8&r)||void 0===c)&&e!==c&&(!Number.isNaN(c)||!Number.isNaN(e))&&(o.A.set(t,e),u)){if(l.P&&128&r){const n=l.P[t];n&&n.map((n=>{try{u[n](e,c,t)}catch(n){V(n,i)}}))}2==(18&r)&&j(o,!1)}})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;o.attributeChangedCallback=function(n,l,s){I.jmp((()=>{var i;const c=e.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const e=H(this),o=null==e?void 0:e.i;if(o&&!(8&o)&&128&o&&s!==l){const o=e.m,c=null===(i=t.P)||void 0===i?void 0:i[n];null==c||c.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.P)&&void 0!==l?l:{}),...i.filter((([n,t])=>15&t[0])).map((([n,l])=>{var o;const s=l[1]||n;return e.set(s,n),512&l[0]&&(null===(o=t.O)||void 0===o||o.push([n,s])),s}))]))}}return n},T=(n,t={})=>{var e;const o=[],s=t.exclude||[],c=D.customElements,r=G.head,u=r.querySelector("meta[charset]"),a=G.createElement("style"),f=[];let y,h=!0;Object.assign(I,t),I.L=new URL(t.resourcesUrl||"./",G.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((t=>{var e;const l={i:t[0],p:t[1],C:t[2],N:t[3]};4&l.i&&(p=!0),l.C=t[2],l.O=[],l.P=null!==(e=t[4])&&void 0!==e?e:{};const i=l.p,r=class extends HTMLElement{constructor(n){super(n),U(n=this,l),1&l.i&&n.attachShadow({mode:"open"})}connectedCallback(){y&&(clearTimeout(y),y=null),h?f.push(this):I.jmp((()=>(n=>{if(0==(1&I.i)){const t=H(n),e=t.S,l=()=>{};if(1&t.i)(null==t?void 0:t.m)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){g(t,t.$=e);break}}e.C&&Object.entries(e.C).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e)=>{let l;if(0==(32&t.i)){t.i|=32;{if(l=z(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(e.P=l.watchers,N(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){V(n)}t.i&=-9,t.i|=128,n()}if(l.style){let n=l.style;const t=d(e);if(!B.has(t)){const l=()=>{};((n,t,e)=>{let l=B.get(n);K&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,B.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.$,s=()=>j(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){I.jmp((()=>(async()=>{if(0==(1&I.i)){const n=H(this);(null==n?void 0:n.m)||(null==n?void 0:n.T)&&n.T.then((()=>{}))}})()))}componentOnReady(){return H(this).T}};l.W=n[0],s.includes(i)||c.get(i)||(o.push(i),c.define(i,N(r,l,1)))}))})),p&&(a.innerHTML+=l),a.innerHTML+=o+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(e=I.j)&&void 0!==e?e:i(G);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}h=!1,f.length?f.map((n=>n.connectedCallback())):I.jmp((()=>y=setTimeout(A,30)))},W=n=>I.j=n,F=new WeakMap,H=n=>F.get(n),R=(n,t)=>F.set(t.m=n,t),U=(n,t)=>{const e={i:0,$hostElement$:n,S:t,A:new Map};return e.T=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],F.set(n,e)},q=(n,t)=>t in n,V=(n,t)=>(0,console.error)(n,t),_=new Map,z=n=>{const t=n.p.replace(/-/g,"_"),e=n.W,l=_.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(_.set(e,n),n[t])),V)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},B=new Map,D="undefined"!=typeof window?window:{},G=D.document||{head:{}},I={i:0,L:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},J=n=>Promise.resolve(n),K=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),Q=[],X=[],Y=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&I.i?tn(nn):I.raf(nn))},Z=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){V(n)}n.length=0},nn=()=>{Z(Q),Z(X),(e=Q.length>0)&&I.raf(nn)},tn=n=>J().then(n),en=Y(X,!0);export{u as H,T as b,a as g,c as h,J as p,R as r,W as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-bf3c5077.system.js"],(function(r){"use strict";var o,s,t,i;return{setters:[function(r){o=r.r;s=r.h;t=r.H;i=r.g}],execute:function(){var e='@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction="vertical"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.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([variant="dark"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant="light"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant="error"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant="warning"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant="success"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant="info"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant="primary"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}';var a=r("mds_progress",function(){function r(r){o(this,r);this.stepsList=new Array;this.currentStep=undefined;this.progress=0;this.direction="horizontal";this.variant="primary";this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}r.prototype.componentWillLoad=function(){this.stepsList=this.steps.split(",");this.setProgress(this.progress)};r.prototype.setProgress=function(r){if(this.steps){this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))];this.element.setAttribute("aria-valuetext",this.currentStep)}};r.prototype.progressChanged=function(r){this.setProgress(r)};r.prototype.stepsChanged=function(r){this.stepsList=r.split(",")};r.prototype.render=function(){return s(t,{"aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":Math.round(this.progress*100),role:"progressbar"},s("div",{class:"progress",style:this.direction==="horizontal"?{flexGrow:"".concat(this.progress)}:{flexGrow:"".concat(this.progress),width:"100%"}}))};Object.defineProperty(r.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{progress:["progressChanged"],steps:["stepsChanged"]}},enumerable:false,configurable:true});return r}());a.style=e}}}));
|