@maggioli-design-system/mds-progress 2.8.0 → 2.8.2

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.
Files changed (67) hide show
  1. package/dist/cjs/{index-4c39a7df.js → index-53e759e9.js} +60 -23
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-progress.cjs.entry.js +36 -36
  4. package/dist/cjs/mds-progress.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/aria.js +18 -18
  7. package/dist/collection/common/keyboard-manager.js +38 -38
  8. package/dist/collection/common/unit.js +7 -7
  9. package/dist/collection/components/mds-progress/mds-progress.css +5 -0
  10. package/dist/collection/components/mds-progress/mds-progress.js +142 -142
  11. package/dist/collection/components/mds-progress/meta/dictionary.js +2 -2
  12. package/dist/collection/components/mds-progress/test/mds-progress.e2e.js +7 -7
  13. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +20 -20
  14. package/dist/collection/dictionary/autocomplete.js +56 -56
  15. package/dist/collection/dictionary/button.js +19 -19
  16. package/dist/collection/dictionary/color.js +14 -14
  17. package/dist/collection/dictionary/floating-ui.js +14 -14
  18. package/dist/collection/dictionary/input.js +31 -15
  19. package/dist/collection/dictionary/loading.js +2 -2
  20. package/dist/collection/dictionary/typography.js +46 -46
  21. package/dist/collection/dictionary/variant.js +54 -54
  22. package/dist/collection/fixtures/cities.js +107 -107
  23. package/dist/components/mds-progress.d.ts +2 -2
  24. package/dist/components/mds-progress.js +58 -58
  25. package/dist/documentation.json +2 -2
  26. package/dist/esm/{index-84dce283.js → index-d7c3a08c.js} +60 -23
  27. package/dist/esm/loader.js +2 -2
  28. package/dist/esm/mds-progress.entry.js +36 -36
  29. package/dist/esm/mds-progress.js +3 -3
  30. package/dist/esm-es5/index-d7c3a08c.js +1 -0
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/dist/esm-es5/mds-progress.entry.js +1 -1
  33. package/dist/esm-es5/mds-progress.js +1 -1
  34. package/dist/mds-progress/mds-progress.esm.js +1 -1
  35. package/dist/mds-progress/mds-progress.js +15 -15
  36. package/dist/mds-progress/p-3fd7c0e1.system.js +2 -0
  37. package/dist/mds-progress/{p-8adca417.system.js → p-72564754.system.js} +1 -1
  38. package/{www/build/p-1ab5e470.entry.js → dist/mds-progress/p-ba0c7117.entry.js} +1 -1
  39. package/dist/mds-progress/p-e157ffcb.js +2 -0
  40. package/dist/mds-progress/p-efdf2de7.system.entry.js +1 -0
  41. package/dist/stats.json +30 -30
  42. package/dist/types/common/keyboard-manager.d.ts +9 -9
  43. package/dist/types/components/mds-progress/mds-progress.d.ts +24 -24
  44. package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +37 -37
  45. package/dist/types/dictionary/input.d.ts +2 -1
  46. package/dist/types/interface/input-value.d.ts +1 -1
  47. package/dist/types/stencil-public-runtime.d.ts +8 -0
  48. package/documentation.json +14 -4
  49. package/package.json +3 -3
  50. package/src/components/mds-progress/mds-progress.css +1 -1
  51. package/src/dictionary/input.ts +18 -0
  52. package/src/fixtures/icons.json +3 -0
  53. package/src/fixtures/iconsauce.json +3 -0
  54. package/www/build/mds-progress.esm.js +1 -1
  55. package/www/build/mds-progress.js +15 -15
  56. package/www/build/p-3fd7c0e1.system.js +2 -0
  57. package/www/build/{p-8adca417.system.js → p-72564754.system.js} +1 -1
  58. package/{dist/mds-progress/p-1ab5e470.entry.js → www/build/p-ba0c7117.entry.js} +1 -1
  59. package/www/build/p-e157ffcb.js +2 -0
  60. package/www/build/p-efdf2de7.system.entry.js +1 -0
  61. package/dist/esm-es5/index-84dce283.js +0 -1
  62. package/dist/mds-progress/p-576b3fa7.js +0 -2
  63. package/dist/mds-progress/p-a257dbdb.system.js +0 -2
  64. package/dist/mds-progress/p-aeb5044e.system.entry.js +0 -1
  65. package/www/build/p-576b3fa7.js +0 -2
  66. package/www/build/p-a257dbdb.system.js +0 -2
  67. package/www/build/p-aeb5044e.system.entry.js +0 -1
@@ -27,6 +27,13 @@ const uniqueTime = (key, measureText) => {
27
27
  }
28
28
  };
29
29
  const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
30
+ /**
31
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
32
+ *
33
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
34
+ * support as of Stencil v4.
35
+ */
36
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
30
37
  /**
31
38
  * Default style mode id
32
39
  */
@@ -246,6 +253,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
246
253
  }
247
254
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
248
255
  }
256
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
257
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
258
+ styleElm.innerHTML += SLOT_FB_CSS;
259
+ }
249
260
  if (appliedStyles) {
250
261
  appliedStyles.add(scopeId);
251
262
  }
@@ -355,7 +366,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
355
366
  elm[memberName] = newValue;
356
367
  }
357
368
  }
358
- catch (e) { }
369
+ catch (e) {
370
+ /**
371
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
372
+ */
373
+ }
359
374
  }
360
375
  if (newValue == null || newValue === false) {
361
376
  if (newValue !== false || elm.getAttribute(memberName) === '') {
@@ -374,6 +389,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
374
389
  }
375
390
  };
376
391
  const parseClassListRegex = /\s/;
392
+ /**
393
+ * Parsed a string of classnames into an array
394
+ * @param value className string, e.g. "foo bar baz"
395
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
396
+ */
377
397
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
378
398
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
379
399
  // if the element passed in is a shadow root, which is a document fragment
@@ -1083,13 +1103,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1083
1103
  */
1084
1104
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1085
1105
  var _a;
1106
+ const prototype = Cstr.prototype;
1086
1107
  if (cmpMeta.$members$) {
1087
1108
  if (Cstr.watchers) {
1088
1109
  cmpMeta.$watchers$ = Cstr.watchers;
1089
1110
  }
1090
1111
  // It's better to have a const than two Object.entries()
1091
1112
  const members = Object.entries(cmpMeta.$members$);
1092
- const prototype = Cstr.prototype;
1093
1113
  members.map(([memberName, [memberFlags]]) => {
1094
1114
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1095
1115
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1112,6 +1132,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1112
1132
  const attrNameToPropName = new Map();
1113
1133
  prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1114
1134
  plt.jmp(() => {
1135
+ var _a;
1115
1136
  const propName = attrNameToPropName.get(attrName);
1116
1137
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1117
1138
  // in the case where an attribute was set inline.
@@ -1167,11 +1188,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1167
1188
  // 1. The instance is ready
1168
1189
  // 2. The watchers are ready
1169
1190
  // 3. The value has changed
1170
- if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1191
+ if (flags &&
1192
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1171
1193
  flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1172
1194
  newValue !== oldValue) {
1173
1195
  const instance = hostRef.$lazyInstance$ ;
1174
- const entry = cmpMeta.$watchers$[attrName];
1196
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1175
1197
  entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1176
1198
  if (instance[callbackName] != null) {
1177
1199
  instance[callbackName].call(instance, newValue, oldValue, attrName);
@@ -1193,10 +1215,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1193
1215
  ...members
1194
1216
  .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
1195
1217
  .map(([propName, m]) => {
1218
+ var _a;
1196
1219
  const attrName = m[1] || propName;
1197
1220
  attrNameToPropName.set(attrName, propName);
1198
1221
  if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1199
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1222
+ (_a = cmpMeta.$attrsToReflect$) === null || _a === void 0 ? void 0 : _a.push([propName, attrName]);
1200
1223
  }
1201
1224
  return attrName;
1202
1225
  }),
@@ -1363,12 +1386,13 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1363
1386
  const customElements = win.customElements;
1364
1387
  const head = doc.head;
1365
1388
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1366
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1389
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1367
1390
  const deferredConnectedCallbacks = [];
1368
1391
  let appLoadFallback;
1369
1392
  let isBootstrapping = true;
1370
1393
  Object.assign(plt, options);
1371
1394
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1395
+ let hasSlotRelocation = false;
1372
1396
  lazyBundles.map((lazyBundle) => {
1373
1397
  lazyBundle[1].map((compactMeta) => {
1374
1398
  var _a;
@@ -1378,6 +1402,11 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1378
1402
  $members$: compactMeta[2],
1379
1403
  $listeners$: compactMeta[3],
1380
1404
  };
1405
+ // Check if we are using slots outside the shadow DOM in this component.
1406
+ // We'll use this information later to add styles for `slot-fb` elements
1407
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1408
+ hasSlotRelocation = true;
1409
+ }
1381
1410
  {
1382
1411
  cmpMeta.$members$ = compactMeta[2];
1383
1412
  }
@@ -1434,15 +1463,23 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1434
1463
  }
1435
1464
  });
1436
1465
  });
1466
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1467
+ if (hasSlotRelocation) {
1468
+ dataStyles.innerHTML += SLOT_FB_CSS;
1469
+ }
1470
+ // Add hydration styles
1437
1471
  {
1438
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1439
- visibilityStyle.setAttribute('data-styles', '');
1472
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1473
+ }
1474
+ // If we have styles, add them to the DOM
1475
+ if (dataStyles.innerHTML.length) {
1476
+ dataStyles.setAttribute('data-styles', '');
1477
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1440
1478
  // Apply CSP nonce to the style tag if it exists
1441
1479
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1442
1480
  if (nonce != null) {
1443
- visibilityStyle.setAttribute('nonce', nonce);
1481
+ dataStyles.setAttribute('nonce', nonce);
1444
1482
  }
1445
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1446
1483
  }
1447
1484
  // Process deferred connectedCallbacks now all components have been registered
1448
1485
  isBootstrapping = false;
@@ -1520,19 +1557,19 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1520
1557
  return module[exportName];
1521
1558
  }
1522
1559
 
1523
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1524
- const processMod = importedModule => {
1525
- cmpModules.set(bundleId, importedModule);
1526
- return importedModule[exportName];
1527
- }
1528
- switch(bundleId) {
1529
-
1530
- case 'mds-progress':
1531
- return import(
1532
- /* webpackMode: "lazy" */
1533
- './mds-progress.entry.js').then(processMod, consoleError);
1560
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1561
+ const processMod = importedModule => {
1562
+ cmpModules.set(bundleId, importedModule);
1563
+ return importedModule[exportName];
1564
+ }
1565
+ switch(bundleId) {
1566
+
1567
+ case 'mds-progress':
1568
+ return import(
1569
+ /* webpackMode: "lazy" */
1570
+ './mds-progress.entry.js').then(processMod, consoleError);
1571
+ }
1534
1572
  }
1535
- }
1536
1573
  return import(
1537
1574
  /* @vite-ignore */
1538
1575
  /* webpackInclude: /\.entry\.js$/ */
@@ -1607,7 +1644,7 @@ const flush = () => {
1607
1644
  }
1608
1645
  }
1609
1646
  };
1610
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1647
+ const nextTick = (cb) => promiseResolve().then(cb);
1611
1648
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1612
1649
 
1613
1650
  export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-84dce283.js';
2
- export { s as setNonce } from './index-84dce283.js';
1
+ import { b as bootstrapLazy } from './index-d7c3a08c.js';
2
+ export { s as setNonce } from './index-d7c3a08c.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
@@ -1,43 +1,43 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-84dce283.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-d7c3a08c.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}.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))}";
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}.text{font-size:1rem}.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
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.stepsList = new Array();
9
- this.currentStep = undefined;
10
- this.progress = 0;
11
- this.direction = 'horizontal';
12
- this.variant = 'primary';
13
- this.steps = 'Inizio,Un quarto,Metà,Tre quarti,Fine';
14
- }
15
- componentWillLoad() {
16
- this.stepsList = this.steps.split(',');
17
- this.setProgress(this.progress);
18
- }
19
- setProgress(progress) {
20
- if (this.steps) {
21
- this.currentStep = this.stepsList[Math.round(progress * (this.stepsList.length - 1))];
22
- this.element.setAttribute('aria-valuetext', this.currentStep);
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.stepsList = new Array();
9
+ this.currentStep = undefined;
10
+ this.progress = 0;
11
+ this.direction = 'horizontal';
12
+ this.variant = 'primary';
13
+ this.steps = 'Inizio,Un quarto,Metà,Tre quarti,Fine';
23
14
  }
24
- }
25
- progressChanged(progress) {
26
- this.setProgress(progress);
27
- }
28
- stepsChanged(steps) {
29
- this.stepsList = steps.split(',');
30
- }
31
- render() {
32
- 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'
33
- ? { flexGrow: `${this.progress}` }
34
- : { flexGrow: `${this.progress}`, width: '100%' } })));
35
- }
36
- get element() { return getElement(this); }
37
- static get watchers() { return {
38
- "progress": ["progressChanged"],
39
- "steps": ["stepsChanged"]
40
- }; }
15
+ componentWillLoad() {
16
+ this.stepsList = this.steps.split(',');
17
+ this.setProgress(this.progress);
18
+ }
19
+ setProgress(progress) {
20
+ if (this.steps) {
21
+ this.currentStep = this.stepsList[Math.round(progress * (this.stepsList.length - 1))];
22
+ this.element.setAttribute('aria-valuetext', this.currentStep);
23
+ }
24
+ }
25
+ progressChanged(progress) {
26
+ this.setProgress(progress);
27
+ }
28
+ stepsChanged(steps) {
29
+ this.stepsList = steps.split(',');
30
+ }
31
+ render() {
32
+ 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'
33
+ ? { flexGrow: `${this.progress}` }
34
+ : { flexGrow: `${this.progress}`, width: '100%' } })));
35
+ }
36
+ get element() { return getElement(this); }
37
+ static get watchers() { return {
38
+ "progress": ["progressChanged"],
39
+ "steps": ["stepsChanged"]
40
+ }; }
41
41
  };
42
42
  MdsProgress.style = mdsProgressCss;
43
43
 
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-84dce283.js';
2
- export { s as setNonce } from './index-84dce283.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-d7c3a08c.js';
2
+ export { s as setNonce } from './index-d7c3a08c.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.7.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.8.0 | 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)}}}}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){var i=0;var a=0;var o=r.length-1;var u=r[0];var s=r[o];var f=t.length-1;var l=t[0];var c=t[f];var v;while(i<=o&&a<=f){if(u==null){u=r[++i]}else if(s==null){s=r[--o]}else if(l==null){l=t[++a]}else if(c==null){c=t[--f]}else if(isSameVnode(u,l)){patch(u,l);u=r[++i];l=t[++a]}else if(isSameVnode(s,c)){patch(s,c);s=r[--o];c=t[--f]}else if(isSameVnode(u,c)){patch(u,c);e.insertBefore(u.v,s.v.nextSibling);u=r[++i];c=t[--f]}else if(isSameVnode(s,l)){patch(s,l);e.insertBefore(s.v,u.v);s=r[--o];l=t[++a]}else{{v=createElm(r&&r[a],n,a);l=t[++a]}if(v){{u.v.parentNode.insertBefore(v,u.v)}}}}if(i>o){addVnodes(e,t[f+1]==null?null:t[f+1].v,n,t,a,f)}else if(a>f){removeVnodes(r,i,o)}};var isSameVnode=function(e,r){if(e.l===r.l){return true}return false};var patch=function(e,r){var n=r.v=e.v;var t=e.o;var i=r.o;{{{updateElement(e,r,isSvgMode)}}if(t!==null&&i!==null){updateChildren(n,t,r,i)}else if(i!==null){addVnodes(n,null,r,i,0,i.length-1)}else if(t!==null){removeVnodes(t,0,t.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)};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","");u.insertBefore(f,s?s.nextSibling:u.firstChild);var p=(n=plt.p)!==null&&n!==void 0?n:queryNonceMetaTagContent(doc);if(p!=null){f.setAttribute("nonce",p)}}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};
@@ -1 +1 @@
1
- import{b as bootstrapLazy}from"./index-84dce283.js";export{s as setNonce}from"./index-84dce283.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
+ import{b as bootstrapLazy}from"./index-d7c3a08c.js";export{s as setNonce}from"./index-d7c3a08c.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-84dce283.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
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-d7c3a08c.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}.text{font-size:1rem}.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-84dce283.js";export{s as setNonce}from"./index-84dce283.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
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-d7c3a08c.js";export{s as setNonce}from"./index-d7c3a08c.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-576b3fa7.js";export{s as setNonce}from"./p-576b3fa7.js";(()=>{const s=import.meta.url,r={};return""!==s&&(r.resourcesUrl=new URL(".",s).href),e(r)})().then((s=>r([["p-1ab5e470",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],s)));
1
+ import{p as e,b as r}from"./p-e157ffcb.js";export{s as setNonce}from"./p-e157ffcb.js";(()=>{const s=import.meta.url,r={};return""!==s&&(r.resourcesUrl=new URL(".",s).href),e(r)})().then((s=>r([["p-ba0c7117",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],s)));
@@ -6,7 +6,7 @@
6
6
  // Safari 10 support type="module" but still download and executes the nomodule script
7
7
  if (!currentScript || !currentScript.hasAttribute('nomodule') || !('onbeforeload' in currentScript)) {
8
8
 
9
- /**
9
+ /**
10
10
  * core-js 3.6.5
11
11
  * https://github.com/zloirock/core-js
12
12
  * License: http://rock.mit-license.org
@@ -106,22 +106,22 @@ DOMTokenList
106
106
  */
107
107
  !function(){var e="undefined"!=typeof self,n=e?self:global;var t;if("undefined"!=typeof document){var e=document.querySelector("base[href]");e&&(t=e.href)}if(!t&&"undefined"!=typeof location){var e=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==e&&(t=t.slice(0,e+1))}var r=/\\/g,o="undefined"!=typeof Symbol,i=o&&Symbol.toStringTag,c=o?Symbol():"@";function u(){this[c]={}}var s=u.prototype;var l;s.import=function(e,n){var t=this;return Promise.resolve(t.resolve(e,n)).then(function(e){var n=function e(n,t,r){var o=n[c][t];if(o)return o;var u=[],s=Object.create(null);i&&Object.defineProperty(s,i,{value:"Module"});var l=Promise.resolve().then(function(){return n.instantiate(t,r)}).then(function(e){if(!e)throw Error("Module "+t+" did not instantiate");var r=e[1](function(e,n){o.h=!0;var t=!1;if("object"!=typeof e)e in s&&s[e]===n||(s[e]=n,t=!0);else for(var n in e){var r=e[n];n in s&&s[n]===r||(s[n]=r,t=!0)}if(t)for(var e=0;e<u.length;e++)u[e](s);return n},2===e[1].length?{import:function(e){return n.import(e,t)},meta:n.createContext(t)}:void 0);return o.e=r.execute||function(){},[e[0],r.setters||[]]});var f=l.then(function(r){return Promise.all(r[0].map(function(o,i){var c=r[1][i];return Promise.resolve(n.resolve(o,t)).then(function(r){var o=e(n,r,t);return Promise.resolve(o.I).then(function(){return c&&(o.i.push(c),!o.h&&o.I||c(o.n)),o})})})).then(function(e){o.d=e})});return f.catch(function(e){o.e=null,o.er=e}),o=n[c][t]={id:t,i:u,n:s,I:l,L:f,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(t,e);return n.C||function(e,n){return n.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then(function(){return Promise.all(t.d.map(function(t){return e(n,t,r)}))})}(e,n,{}).then(function(){return function e(n,t,r){if(r[t.id])return;if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}var o;return t.d.forEach(function(t){{var i=e(n,t,r);i&&(o=o||[]).push(i)}}),o?Promise.all(o).then(i):i();function i(){try{var e=t.e.call(f);if(e)return e=e.then(function(){t.C=t.n,t.E=null}),t.E=t.E||e;t.C=t.n}catch(e){throw t.er=e,e}finally{t.L=t.I=void 0,t.e=null}}}(e,n,{})}).then(function(){return n.n})}(t,n)})},s.createContext=function(e){return{url:e}},s.register=function(e,n){l=[e,n]},s.getRegister=function(){var e=l;return l=void 0,e};var f=Object.freeze(Object.create(null));n.System=n.System||new u;var d=s.register;s.register=function(e,n){d.call(this,e,n)},s.instantiate=function(e,n){var t=this;return".json"===e.substr(-5)?fetch(e).then(function(e){return e.text()}).then(function(e){return[[],function(n){return{execute:function(){n("default",JSON.parse(e))}}}]}):new Promise(function(r,o){var i;function c(n){n.filename===e&&(i=n.error)}window.addEventListener("error",c);var u=document.createElement("script");u.charset="utf-8",u.async=!0,u.addEventListener("error",function(){window.removeEventListener("error",c),o(Error("Error loading "+e+(n?" from "+n:"")))}),u.addEventListener("load",function(){window.removeEventListener("error",c),document.head.removeChild(u),i?o(i):r(t.getRegister())}),u.src=e,document.head.appendChild(u)})},e&&"function"==typeof importScripts&&(s.instantiate=function(e){var n=this;return new Promise(function(t,r){try{importScripts(e)}catch(e){r(e)}t(n.getRegister())})}),s.resolve=function(e,n){var o=function(e,n){if(-1!==e.indexOf("\\")&&(e=e.replace(r,"/")),"/"===e[0]&&"/"===e[1])return n.slice(0,n.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var t=n.slice(0,n.indexOf(":")+1);var r;if(r="/"===n[t.length+1]?"file:"!==t?(r=n.slice(t.length+2)).slice(r.indexOf("/")+1):n.slice(8):n.slice(t.length+("/"===n[t.length])),"/"===e[0])return n.slice(0,n.length-r.length-1)+e;var o=r.slice(0,r.lastIndexOf("/")+1)+e,i=[];var c=-1;for(var e=0;e<o.length;e++)-1!==c?"/"===o[e]&&(i.push(o.slice(c,e+1)),c=-1):"."===o[e]?"."!==o[e+1]||"/"!==o[e+2]&&e+2!==o.length?"/"===o[e+1]||e+1===o.length?e+=1:c=e:(i.pop(),e+=2):c=e;return-1!==c&&i.push(o.slice(c)),n.slice(0,n.length-r.length)+i.join("")}}(e,n||t);if(!o){if(-1!==e.indexOf(":"))return Promise.resolve(e);throw Error('Cannot resolve "'+e+(n?'" from '+n:'"'))}return Promise.resolve(o)}}();
108
108
 
109
- // Figure out currentScript (for IE11, since it does not support currentScript)
110
- var regex = /\/mds-progress(\.esm)?\.js($|\?|#)/;
111
- var scriptElm = currentScript || Array.from(document.querySelectorAll('script')).find(function(s) {
112
- return regex.test(s.src) || s.getAttribute('data-stencil-namespace') === "mds-progress";
113
- });
109
+ // Figure out currentScript (for IE11, since it does not support currentScript)
110
+ var regex = /\/mds-progress(\.esm)?\.js($|\?|#)/;
111
+ var scriptElm = currentScript || Array.from(document.querySelectorAll('script')).find(function(s) {
112
+ return regex.test(s.src) || s.getAttribute('data-stencil-namespace') === "mds-progress";
113
+ });
114
114
 
115
- var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
- var start = function() {
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-8adca417.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
- System.import(url.href);
120
- };
115
+ var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
+ var start = function() {
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-72564754.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
+ System.import(url.href);
120
+ };
121
121
 
122
- start();
122
+ start();
123
123
 
124
- // Note: using .call(window) here because the self-executing function needs
125
- // to be scoped to the window object for the ES6Promise polyfill to work
124
+ // Note: using .call(window) here because the self-executing function needs
125
+ // to be scoped to the window object for the ES6Promise polyfill to work
126
126
  }
127
127
  }).call(window);
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var r=function(n,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))r[e]=n[e]};return r(n,e)};return function(n,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,n,e,t){function i(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,a){function u(r){try{o(t.next(r))}catch(r){a(r)}}function f(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?e(r.value):i(r.value).then(u,f)}o((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(r){return function(n){return o([r,n])}}function o(f){if(t)throw new TypeError("Generator is already executing.");while(u&&(u=0,f[0]&&(e=0)),e)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:e.label++;return{value:f[1],done:false};case 5:e.label++;i=f[1];f=[0];continue;case 7:f=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){e=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){e.label=f[1];break}if(f[0]===6&&e.label<a[1]){e.label=a[1];a=f;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(f);break}if(a[2])e.ops.pop();e.trys.pop();continue}f=n.call(r,e)}catch(r){f=[6,r];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,a;t<i;t++){if(a||!(t in n)){if(!a)a=Array.prototype.slice.call(n,0,t);a[t]=n[t]}}return r.concat(a||Array.prototype.slice.call(n))};System.register([],(function(r,n){"use strict";return{execute:function(){var e=this;var t="mds-progress";var i;var a;var u=false;var f=false;var o=function(r,n){if(n===void 0){n=""}{return function(){return}}};var v=function(r,n){{return function(){return}}};var l="{visibility:hidden}[hydrated]{visibility:inherit}";var c="slot-fb{display:contents}slot-fb[hidden]{display:none}";var s={};var d=function(r){return r!=null};var h=function(r){r=typeof r;return r==="object"||r==="function"};function y(r){var n,e,t;return(t=(e=(n=r.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&t!==void 0?t:undefined}var p=r("h",(function(r,n){var e=[];for(var t=2;t<arguments.length;t++){e[t-2]=arguments[t]}var i=null;var a=false;var u=false;var f=[];var o=function(n){for(var e=0;e<n.length;e++){i=n[e];if(Array.isArray(i)){o(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof r!=="function"&&!h(i)){i=String(i)}if(a&&u){f[f.length-1].t+=i}else{f.push(a?w(null,i):i)}u=a}}};o(e);if(n){{var v=n.className||n.class;if(v){n.class=typeof v!=="object"?v:Object.keys(v).filter((function(r){return v[r]})).join(" ")}}}var l=w(r,null);l.i=n;if(f.length>0){l.u=f}return l}));var w=function(r,n){var e={o:0,v:r,t:n,l:null,u:null};{e.i=null}return e};var _=r("H",{});var b=function(r){return r&&r.v===_};var m=function(r,n){if(r!=null&&!h(r)){if(n&2){return parseFloat(r)}if(n&1){return String(r)}return r}return r};var $=r("g",(function(r){return fr(r).$hostElement$}));var g=function(r,n,e){var t=wr.ce(n,e);r.dispatchEvent(t);return t};var S=new WeakMap;var j=function(r,n,e){var t=hr.get(r);if(br&&e){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}hr.set(r,t)};var A=function(r,n,e){var t;var i=O(n);var a=hr.get(i);r=r.nodeType===11?r:pr;if(a){if(typeof a==="string"){r=r.head||r;var u=S.get(r);var f=void 0;if(!u){S.set(r,u=new Set)}if(!u.has(i)){{f=pr.createElement("style");f.innerHTML=a;var o=(t=wr.h)!==null&&t!==void 0?t:y(pr);if(o!=null){f.setAttribute("nonce",o)}r.insertBefore(f,r.querySelector("link"))}if(n.o&4){f.innerHTML+=c}if(u){u.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var k=function(r){var n=r.p;var e=r.$hostElement$;var t=n.o;var i=o("attachStyles",n._);var a=A(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(t&10){e["s-sc"]=a;e.classList.add(a+"-h")}i()};var O=function(r,n){return"sc-"+r._};var M=function(r,n,e,t,i,a){if(e!==t){var u=lr(r,n);n.toLowerCase();if(n==="class"){var f=r.classList;var o=C(e);var v=C(t);f.remove.apply(f,o.filter((function(r){return r&&!v.includes(r)})));f.add.apply(f,v.filter((function(r){return r&&!o.includes(r)})))}else if(n==="style"){{for(var l in e){if(!t||t[l]==null){if(l.includes("-")){r.style.removeProperty(l)}else{r.style[l]=""}}}}for(var l in t){if(!e||t[l]!==e[l]){if(l.includes("-")){r.style.setProperty(l,t[l])}else{r.style[l]=t[l]}}}}else{var c=h(t);if((u||c&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var s=t==null?"":t;if(n==="list"){u=false}else if(e==null||r[n]!=s){r[n]=s}}else{r[n]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(n)===""){{r.removeAttribute(n)}}}else if((!u||a&4||i)&&!c){t=t===true?"":t;{r.setAttribute(n,t)}}}}};var x=/\s/;var C=function(r){return!r?[]:r.split(x)};var P=function(r,n,e,t){var i=n.l.nodeType===11&&n.l.host?n.l.host:n.l;var a=r&&r.i||s;var u=n.i||s;{for(t in a){if(!(t in u)){M(i,t,a[t],undefined,e,n.o)}}}for(t in u){M(i,t,a[t],u[t],e,n.o)}};var E=function(r,n,e,t){var a=n.u[e];var f=0;var o;var v;{o=a.l=pr.createElement(a.v);{P(null,a,u)}if(d(i)&&o["s-si"]!==i){o.classList.add(o["s-si"]=i)}if(a.u){for(f=0;f<a.u.length;++f){v=E(r,a,f);if(v){o.appendChild(v)}}}}return o};var T=function(r,n,e,t,i,u){var f=r;var o;if(f.shadowRoot&&f.tagName===a){f=f.shadowRoot}for(;i<=u;++i){if(t[i]){o=E(null,e,i);if(o){t[i].l=o;f.insertBefore(o,n)}}}};var U=function(r,n,e){for(var t=n;t<=e;++t){var i=r[t];if(i){var a=i.l;if(a){a.remove()}}}};var L=function(r,n,e,t){var i=0;var a=0;var u=n.length-1;var f=n[0];var o=n[u];var v=t.length-1;var l=t[0];var c=t[v];var s;while(i<=u&&a<=v){if(f==null){f=n[++i]}else if(o==null){o=n[--u]}else if(l==null){l=t[++a]}else if(c==null){c=t[--v]}else if(N(f,l)){W(f,l);f=n[++i];l=t[++a]}else if(N(o,c)){W(o,c);o=n[--u];c=t[--v]}else if(N(f,c)){W(f,c);r.insertBefore(f.l,o.l.nextSibling);f=n[++i];c=t[--v]}else if(N(o,l)){W(o,l);r.insertBefore(o.l,f.l);o=n[--u];l=t[++a]}else{{s=E(n&&n[a],e,a);l=t[++a]}if(s){{f.l.parentNode.insertBefore(s,f.l)}}}}if(i>u){T(r,t[v+1]==null?null:t[v+1].l,e,t,a,v)}else if(a>v){U(n,i,u)}};var N=function(r,n){if(r.v===n.v){return true}return false};var W=function(r,n){var e=n.l=r.l;var t=r.u;var i=n.u;{{{P(r,n,u)}}if(t!==null&&i!==null){L(e,t,n,i)}else if(i!==null){T(e,null,n,i,0,i.length-1)}else if(t!==null){U(t,0,t.length-1)}}};var F=function(r,n,e){if(e===void 0){e=false}var t=r.$hostElement$;var u=r.p;var f=r.m||w(null,null);var o=b(n)?n:p(null,null,n);a=t.tagName;if(u.$){o.i=o.i||{};u.$.map((function(r){var n=r[0],e=r[1];return o.i[e]=t[n]}))}if(e&&o.i){for(var v=0,l=Object.keys(o.i);v<l.length;v++){var c=l[v];if(t.hasAttribute(c)&&!["key","ref","style","class"].includes(c)){o.i[c]=t[c]}}}o.v=null;o.o|=4;r.m=o;o.l=f.l=t.shadowRoot||t;{i=t["s-sc"]}W(f,o)};var H=function(r,n){if(n&&!r.S&&n["s-p"]){n["s-p"].push(new Promise((function(n){return r.S=n})))}};var q=function(r,n){{r.o|=16}if(r.o&4){r.o|=512;return}H(r,r.j);var e=function(){return G(r,n)};return kr(e)};var G=function(r,n){var e=o("scheduleUpdate",r.p._);var t=r.A;var i;if(n){{i=J(t,"componentWillLoad")}}e();return I(i,(function(){return V(r,t,n)}))};var I=function(r,n){return R(r)?r.then(n):n()};var R=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var V=function(r,n,t){return __awaiter(e,void 0,void 0,(function(){var e,i,a,u,f,v,l;return __generator(this,(function(c){i=r.$hostElement$;a=o("update",r.p._);u=i["s-rc"];if(t){k(r)}f=o("render",r.p._);{z(r,n,i,t)}if(u){u.map((function(r){return r()}));i["s-rc"]=undefined}f();a();{v=(e=i["s-p"])!==null&&e!==void 0?e:[];l=function(){return B(r)};if(v.length===0){l()}else{Promise.all(v).then(l);r.o|=4;v.length=0}}return[2]}))}))};var z=function(r,n,e,t){try{n=n.render();{r.o&=~16}{r.o|=2}{{{F(r,n,t)}}}}catch(n){cr(n,r.$hostElement$)}return null};var B=function(r){var n=r.p._;var e=r.$hostElement$;var t=o("postUpdate",n);var i=r.j;if(!(r.o&64)){r.o|=64;{K(e)}t();{r.k(e);if(!i){D()}}}else{t()}{if(r.S){r.S();r.S=undefined}if(r.o&512){Ar((function(){return q(r,false)}))}r.o&=~(4|512)}};var D=function(r){{K(pr.documentElement)}Ar((function(){return g(yr,"appload",{detail:{namespace:t}})}))};var J=function(r,n,e){if(r&&r[n]){try{return r[n](e)}catch(r){cr(r)}}return undefined};var K=function(r){return r.setAttribute("hydrated","")};var Q=function(r,n){return fr(r).O.get(n)};var X=function(r,n,e,t){var i=fr(r);var a=i.$hostElement$;var u=i.O.get(n);var f=i.o;var o=i.A;e=m(e,t.M[n][0]);var v=Number.isNaN(u)&&Number.isNaN(e);var l=e!==u&&!v;if((!(f&8)||u===undefined)&&l){i.O.set(n,e);if(o){if(t.C&&f&128){var c=t.C[n];if(c){c.map((function(r){try{o[r](e,u,n)}catch(r){cr(r,a)}}))}}if((f&(2|16))===2){q(i,false)}}}};var Y=function(r,n,e){var t;var i=r.prototype;if(n.M){if(r.watchers){n.C=r.watchers}var a=Object.entries(n.M);a.map((function(r){var t=r[0],a=r[1][0];if(a&31||e&2&&a&32){Object.defineProperty(i,t,{get:function(){return Q(this,t)},set:function(r){X(this,t,r,n)},configurable:true,enumerable:true})}}));if(e&1){var u=new Map;i.attributeChangedCallback=function(r,e,t){var a=this;wr.jmp((function(){var f;var o=u.get(r);if(a.hasOwnProperty(o)){t=a[o];delete a[o]}else if(i.hasOwnProperty(o)&&typeof a[o]==="number"&&a[o]==t){return}else if(o==null){var v=fr(a);var l=v===null||v===void 0?void 0:v.o;if(l&&!(l&8)&&l&128&&t!==e){var c=v.A;var s=(f=n.C)===null||f===void 0?void 0:f[r];s===null||s===void 0?void 0:s.forEach((function(n){if(c[n]!=null){c[n].call(c,t,e,r)}}))}return}a[o]=t===null&&typeof a[o]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=n.C)!==null&&t!==void 0?t:{}),true),a.filter((function(r){var n=r[0],e=r[1];return e[0]&15})).map((function(r){var e=r[0],t=r[1];var i;var a=t[1]||e;u.set(a,e);if(t[0]&512){(i=n.$)===null||i===void 0?void 0:i.push([e,a])}return a})),true)))}}return r};var Z=function(r,n,t,i){return __awaiter(e,void 0,void 0,(function(){var r,e,i,a,u,f,l,c;return __generator(this,(function(s){switch(s.label){case 0:if(!((n.o&32)===0))return[3,3];n.o|=32;r=dr(t);if(!r.then)return[3,2];e=v();return[4,r];case 1:r=s.sent();e();s.label=2;case 2:if(!r.isProxied){{t.C=r.watchers}Y(r,t,2);r.isProxied=true}i=o("createInstance",t._);{n.o|=8}try{new r(n)}catch(r){cr(r)}{n.o&=~8}{n.o|=128}i();if(r.style){a=r.style;u=O(t);if(!hr.has(u)){f=o("registerStyles",t._);j(u,a,!!(t.o&1));f()}}s.label=3;case 3:l=n.j;c=function(){return q(n,true)};if(l&&l["s-rc"]){l["s-rc"].push(c)}else{c()}return[2]}}))}))};var rr=function(r){};var nr=function(r){if((wr.o&1)===0){var n=fr(r);var e=n.p;var t=o("connectedCallback",e._);if(!(n.o&1)){n.o|=1;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){H(n,n.j=i);break}}}if(e.M){Object.entries(e.M).map((function(n){var e=n[0],t=n[1][0];if(t&31&&r.hasOwnProperty(e)){var i=r[e];delete r[e];r[e]=i}}))}{Z(r,n,e)}}else{if(n===null||n===void 0?void 0:n.A);else if(n===null||n===void 0?void 0:n.P){n.P.then((function(){return rr()}))}}t()}};var er=function(r){};var tr=function(r){return __awaiter(e,void 0,void 0,(function(){var n;return __generator(this,(function(e){if((wr.o&1)===0){n=fr(r);if(n===null||n===void 0?void 0:n.A);else if(n===null||n===void 0?void 0:n.P){n.P.then((function(){return er()}))}}return[2]}))}))};var ir=r("b",(function(r,n){if(n===void 0){n={}}var e;var t=o();var i=[];var a=n.exclude||[];var u=yr.customElements;var f=pr.head;var v=f.querySelector("meta[charset]");var s=pr.createElement("style");var d=[];var h;var p=true;Object.assign(wr,n);wr.T=new URL(n.resourcesUrl||"./",pr.baseURI).href;var w=false;r.map((function(r){r[1].map((function(n){var e;var t={o:n[0],_:n[1],M:n[2],U:n[3]};if(t.o&4){w=true}{t.M=n[2]}{t.$=[]}{t.C=(e=n[4])!==null&&e!==void 0?e:{}}var f=t._;var o=function(r){__extends(n,r);function n(n){var e=r.call(this,n)||this;n=e;vr(n,t);if(t.o&1){{{n.attachShadow({mode:"open"})}}}return e}n.prototype.connectedCallback=function(){var r=this;if(h){clearTimeout(h);h=null}if(p){d.push(this)}else{wr.jmp((function(){return nr(r)}))}};n.prototype.disconnectedCallback=function(){var r=this;wr.jmp((function(){return tr(r)}))};n.prototype.componentOnReady=function(){return fr(this).P};return n}(HTMLElement);t.L=r[0];if(!a.includes(f)&&!u.get(f)){i.push(f);u.define(f,Y(o,t,1))}}))}));if(w){s.innerHTML+=c}{s.innerHTML+=i+l}if(s.innerHTML.length){s.setAttribute("data-styles","");f.insertBefore(s,v?v.nextSibling:f.firstChild);var _=(e=wr.h)!==null&&e!==void 0?e:y(pr);if(_!=null){s.setAttribute("nonce",_)}}p=false;if(d.length){d.map((function(r){return r.connectedCallback()}))}else{{wr.jmp((function(){return h=setTimeout(D,30)}))}}t()}));var ar=r("s",(function(r){return wr.h=r}));var ur=new WeakMap;var fr=function(r){return ur.get(r)};var or=r("r",(function(r,n){return ur.set(n.A=r,n)}));var vr=function(r,n){var e={o:0,$hostElement$:r,p:n,O:new Map};{e.P=new Promise((function(r){return e.k=r}));r["s-p"]=[];r["s-rc"]=[]}return ur.set(r,e)};var lr=function(r,n){return n in r};var cr=function(r,n){return(0,console.error)(r,n)};var sr=new Map;var dr=function(r,e,t){var i=r._.replace(/-/g,"_");var a=r.L;var u=sr.get(a);if(u){return u[i]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import("./".concat(a,".entry.js").concat("")).then((function(r){{sr.set(a,r)}return r[i]}),cr)};var hr=new Map;var yr=typeof window!=="undefined"?window:{};var pr=yr.document||{head:{}};var wr={o:0,T:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,n,e,t){return r.addEventListener(n,e,t)},rel:function(r,n,e,t){return r.removeEventListener(n,e,t)},ce:function(r,n){return new CustomEvent(r,n)}};var _r=r("p",(function(r){return Promise.resolve(r)}));var br=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var mr=[];var $r=[];var gr=function(r,n){return function(e){r.push(e);if(!f){f=true;if(n&&wr.o&4){Ar(jr)}else{wr.raf(jr)}}}};var Sr=function(r){for(var n=0;n<r.length;n++){try{r[n](performance.now())}catch(r){cr(r)}}r.length=0};var jr=function(){Sr(mr);{Sr($r);if(f=mr.length>0){wr.raf(jr)}}};var Ar=function(r){return _r().then(r)};var kr=gr($r,true)}}}));
@@ -1 +1 @@
1
- System.register(["./p-a257dbdb.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-aeb5044e.system",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],e)}))}}}));
1
+ System.register(["./p-3fd7c0e1.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-efdf2de7.system",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],e)}))}}}));
@@ -1 +1 @@
1
- import{r,h as o,H as s,g as t}from"./p-576b3fa7.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
+ import{r,h as o,H as s,g as t}from"./p-e157ffcb.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}.text{font-size:1rem}.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}
@@ -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)},$=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(s=o.h=G.createElement(o.u),v(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=$(t,o,c),i&&s.appendChild(i);return s},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)=>{const e=t.h=n.h,l=n.o,o=t.o;v(n,t,!1),null!==l&&null!==o?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:w(r,f)?(S(r,f),r=t[++s],f=l[++i]):w(u,d)?(S(u,d),u=t[--c],d=l[--a]):w(r,d)?(S(r,d),n.insertBefore(r.h,u.h.nextSibling),r=t[++s],d=l[--a]):w(u,f)?(S(u,f),n.insertBefore(u.h,r.h),u=t[--c],f=l[++i]):(o=$(t&&t[i],e,i),f=l[++i],o&&r.h.parentNode.insertBefore(o,r.h));s>c?m(n,null==l[a+1]?null:l[a+1].h,e,l,i,a):i>a&&b(t,s,c)})(e,l,t,o):null!==o?m(e,null,t,o,0,o.length-1):null!==l&&b(l,0,l.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)})(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",""),r.insertBefore(a,u?u.nextSibling:r.firstChild);const n=null!==(e=I.j)&&void 0!==e?e:i(G);null!=n&&a.setAttribute("nonce",n)}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-3fd7c0e1.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}.text{font-size:1rem}.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}}}));