@maggioli-design-system/mds-accordion-timer-item 3.3.1 → 3.5.0

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 (75) hide show
  1. package/dist/cjs/{index-7bc27f01.js → index-502e5cdb.js} +77 -12
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +3 -3
  4. package/dist/cjs/mds-accordion-timer-item.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/common/keyboard-manager.js +2 -2
  7. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +52 -56
  8. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
  9. package/dist/collection/dictionary/input.js +21 -0
  10. package/dist/collection/dictionary/typography.js +5 -1
  11. package/dist/components/mds-accordion-timer-item.js +2 -2
  12. package/dist/documentation.json +3 -3
  13. package/dist/esm/{index-316499e4.js → index-b42ce9a6.js} +77 -12
  14. package/dist/esm/loader.js +2 -2
  15. package/dist/esm/mds-accordion-timer-item.entry.js +3 -3
  16. package/dist/esm/mds-accordion-timer-item.js +3 -3
  17. package/dist/esm-es5/index-b42ce9a6.js +1 -0
  18. package/dist/esm-es5/loader.js +1 -1
  19. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  20. package/dist/esm-es5/mds-accordion-timer-item.js +1 -1
  21. package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -1
  22. package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
  23. package/dist/mds-accordion-timer-item/p-5e9bd30c.system.js +2 -0
  24. package/dist/mds-accordion-timer-item/p-72dfa3ca.system.js +1 -0
  25. package/dist/mds-accordion-timer-item/p-d212a845.entry.js +1 -0
  26. package/dist/mds-accordion-timer-item/p-e969bc33.js +2 -0
  27. package/dist/mds-accordion-timer-item/p-f866a0a2.system.entry.js +1 -0
  28. package/dist/stats.json +37 -37
  29. package/dist/types/components.d.ts +13 -0
  30. package/dist/types/dictionary/input.d.ts +4 -0
  31. package/dist/types/dictionary/typography.d.ts +2 -1
  32. package/dist/types/interface/input-value.d.ts +1 -1
  33. package/dist/types/stencil-public-runtime.d.ts +21 -0
  34. package/dist/types/type/input.d.ts +4 -0
  35. package/dist/types/type/typography.d.ts +1 -0
  36. package/documentation.json +27 -12
  37. package/package.json +5 -5
  38. package/src/common/keyboard-manager.ts +2 -2
  39. package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.css +8 -7
  40. package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx +1 -1
  41. package/src/components.d.ts +13 -0
  42. package/src/dictionary/input.ts +30 -0
  43. package/src/dictionary/typography.ts +7 -1
  44. package/src/fixtures/icons.json +18 -0
  45. package/src/fixtures/iconsauce.json +16 -0
  46. package/src/interface/input-value.ts +1 -1
  47. package/src/type/input.ts +25 -0
  48. package/src/type/typography.ts +4 -0
  49. package/www/build/mds-accordion-timer-item.esm.js +1 -1
  50. package/www/build/mds-accordion-timer-item.js +1 -1
  51. package/www/build/p-5e9bd30c.system.js +2 -0
  52. package/www/build/p-72dfa3ca.system.js +1 -0
  53. package/www/build/p-d212a845.entry.js +1 -0
  54. package/www/build/p-e969bc33.js +2 -0
  55. package/www/build/p-f866a0a2.system.entry.js +1 -0
  56. package/dist/collection/dictionary/input-text-type.js +0 -13
  57. package/dist/collection/type/input-value-type.js +0 -1
  58. package/dist/esm-es5/index-316499e4.js +0 -2
  59. package/dist/mds-accordion-timer-item/p-0c4f612b.system.entry.js +0 -1
  60. package/dist/mds-accordion-timer-item/p-1300d122.system.js +0 -1
  61. package/dist/mds-accordion-timer-item/p-399a7dcd.system.js +0 -2
  62. package/dist/mds-accordion-timer-item/p-39d31caa.js +0 -2
  63. package/dist/mds-accordion-timer-item/p-dc180f6c.entry.js +0 -1
  64. package/dist/types/dictionary/input-text-type.d.ts +0 -2
  65. package/dist/types/type/input-text-type.d.ts +0 -1
  66. package/dist/types/type/input-value-type.d.ts +0 -1
  67. package/src/dictionary/input-text-type.ts +0 -17
  68. package/src/type/input-text-type.ts +0 -11
  69. package/src/type/input-value-type.ts +0 -5
  70. package/www/build/p-0c4f612b.system.entry.js +0 -1
  71. package/www/build/p-1300d122.system.js +0 -1
  72. package/www/build/p-399a7dcd.system.js +0 -2
  73. package/www/build/p-39d31caa.js +0 -2
  74. package/www/build/p-dc180f6c.entry.js +0 -1
  75. /package/dist/collection/type/{input-text-type.js → input.js} +0 -0
@@ -383,11 +383,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
383
383
  // except for the first character, we keep the event name case
384
384
  memberName = ln[2] + memberName.slice(3);
385
385
  }
386
- if (oldValue) {
387
- plt.rel(elm, memberName, oldValue, false);
388
- }
389
- if (newValue) {
390
- plt.ael(elm, memberName, newValue, false);
386
+ if (oldValue || newValue) {
387
+ // Need to account for "capture" events.
388
+ // If the event name ends with "Capture", we'll update the name to remove
389
+ // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
390
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
391
+ // Make sure we only replace the last instance of "Capture"
392
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
393
+ if (oldValue) {
394
+ plt.rel(elm, memberName, oldValue, capture);
395
+ }
396
+ if (newValue) {
397
+ plt.ael(elm, memberName, newValue, capture);
398
+ }
391
399
  }
392
400
  }
393
401
  else {
@@ -429,6 +437,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
429
437
  };
430
438
  const parseClassListRegex = /\s/;
431
439
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
440
+ const CAPTURE_EVENT_SUFFIX = 'Capture';
441
+ const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
432
442
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
433
443
  // if the element passed in is a shadow root, which is a document fragment
434
444
  // then we want to be adding attrs/props to the shadow root's "host" element
@@ -994,6 +1004,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
994
1004
  */
995
1005
  const callRender = (hostRef, instance, elm, isInitialLoad) => {
996
1006
  try {
1007
+ /**
1008
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
1009
+ * method, so we can call the method immediately. If not, check before calling it.
1010
+ */
997
1011
  instance = instance.render() ;
998
1012
  {
999
1013
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1222,7 +1236,18 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1222
1236
  }
1223
1237
  return Cstr;
1224
1238
  };
1225
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1239
+ /**
1240
+ * Initialize a Stencil component given a reference to its host element, its
1241
+ * runtime bookkeeping data structure, runtime metadata about the component,
1242
+ * and (optionally) an HMR version ID.
1243
+ *
1244
+ * @param elm a host element
1245
+ * @param hostRef the element's runtime bookkeeping object
1246
+ * @param cmpMeta runtime metadata for the Stencil component
1247
+ * @param hmrVersionId an (optional) HMR version ID
1248
+ */
1249
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1250
+ let Cstr;
1226
1251
  // initializeComponent
1227
1252
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1228
1253
  // Let the runtime know that the component has been initialized
@@ -1457,22 +1482,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1457
1482
  * @returns void
1458
1483
  */
1459
1484
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
1485
+ /**
1486
+ * A WeakMap mapping runtime component references to their corresponding host reference
1487
+ * instances.
1488
+ */
1460
1489
  const hostRefs = /*@__PURE__*/ new WeakMap();
1490
+ /**
1491
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1492
+ *
1493
+ * @param ref the runtime ref of interest
1494
+ * @returns the Host reference (if found) or undefined
1495
+ */
1461
1496
  const getHostRef = (ref) => hostRefs.get(ref);
1497
+ /**
1498
+ * Register a lazy instance with the {@link hostRefs} object so it's
1499
+ * corresponding {@link d.HostRef} can be retrieved later.
1500
+ *
1501
+ * @param lazyInstance the lazy instance of interest
1502
+ * @param hostRef that instances `HostRef` object
1503
+ * @returns a reference to the host ref WeakMap
1504
+ */
1462
1505
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1463
- const registerHost = (elm, cmpMeta) => {
1506
+ /**
1507
+ * Register a host element for a Stencil component, setting up various metadata
1508
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
1509
+ * metadata.
1510
+ *
1511
+ * @param hostElement the host element to register
1512
+ * @param cmpMeta runtime metadata for that component
1513
+ * @returns a reference to the host ref WeakMap
1514
+ */
1515
+ const registerHost = (hostElement, cmpMeta) => {
1464
1516
  const hostRef = {
1465
1517
  $flags$: 0,
1466
- $hostElement$: elm,
1518
+ $hostElement$: hostElement,
1467
1519
  $cmpMeta$: cmpMeta,
1468
1520
  $instanceValues$: new Map(),
1469
1521
  };
1470
1522
  {
1471
1523
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1472
- elm['s-p'] = [];
1473
- elm['s-rc'] = [];
1524
+ hostElement['s-p'] = [];
1525
+ hostElement['s-rc'] = [];
1474
1526
  }
1475
- return hostRefs.set(elm, hostRef);
1527
+ return hostRefs.set(hostElement, hostRef);
1476
1528
  };
1477
1529
  const isMemberInElement = (elm, memberName) => memberName in elm;
1478
1530
  const consoleError = (e, el) => (0, console.error)(e, el);
@@ -1485,7 +1537,20 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1485
1537
  if (module) {
1486
1538
  return module[exportName];
1487
1539
  }
1488
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1540
+
1541
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1542
+ const processMod = importedModule => {
1543
+ cmpModules.set(bundleId, importedModule);
1544
+ return importedModule[exportName];
1545
+ }
1546
+ switch(bundleId) {
1547
+
1548
+ case 'mds-accordion-timer-item.cjs':
1549
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1550
+ /* webpackMode: "lazy" */
1551
+ './mds-accordion-timer-item.cjs.entry.js')); }).then(processMod, consoleError);
1552
+ }
1553
+ }
1489
1554
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1490
1555
  /* @vite-ignore */
1491
1556
  /* webpackInclude: /\.entry\.js$/ */
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7bc27f01.js');
5
+ const index = require('./index-502e5cdb.js');
6
6
 
7
7
  const defineCustomElements = (win, options) => {
8
8
  if (typeof window === 'undefined') return undefined;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7bc27f01.js');
5
+ const index = require('./index-502e5cdb.js');
6
6
 
7
- const mdsAccordionTimerItemCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.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{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-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:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
7
+ const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.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{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-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:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
8
8
 
9
9
  const MdsAccordionTimerItem = class {
10
10
  constructor(hostRef) {
@@ -41,7 +41,7 @@ const MdsAccordionTimerItem = class {
41
41
  }
42
42
  render() {
43
43
  var _a;
44
- return (index.h(index.Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, index.h("div", { class: "row" }, index.h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), index.h("div", { class: "accordion" }, index.h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focusable", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, index.h("mds-text", { typography: this.typography }, this.description)), index.h("div", { class: "contents", id: "contents" }, index.h("div", { class: "contents-expander" }, index.h("slot", null)))))));
44
+ return (index.h(index.Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, index.h("div", { class: "row" }, index.h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), index.h("div", { class: "accordion" }, index.h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focus-bounce", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, index.h("mds-text", { typography: this.typography }, this.description)), index.h("div", { class: "contents", id: "contents" }, index.h("div", { class: "contents-expander" }, index.h("slot", null)))))));
45
45
  }
46
46
  };
47
47
  MdsAccordionTimerItem.style = mdsAccordionTimerItemCss;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7bc27f01.js');
5
+ const index = require('./index-502e5cdb.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.7.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchBrowser = () => {
11
11
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-accordion-timer-item.cjs.js', document.baseURI).href));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.3.0",
8
- "typescriptVersion": "5.1.6"
7
+ "version": "4.7.1",
8
+ "typescriptVersion": "5.2.2"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -26,13 +26,13 @@ export class KeyboardManager {
26
26
  };
27
27
  this.attachEscapeBehavior = (callBack) => {
28
28
  this.escapeCallback = callBack;
29
- if (typeof window !== undefined) {
29
+ if (window !== undefined) {
30
30
  window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
31
31
  }
32
32
  };
33
33
  this.detachEscapeBehavior = () => {
34
34
  this.escapeCallback = () => { return; };
35
- if (typeof window !== undefined) {
35
+ if (window !== undefined) {
36
36
  window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
37
37
  }
38
38
  };
@@ -1,58 +1,60 @@
1
- @tailwind components;
2
-
3
- .focus-off,
4
- .focusable,
5
- .focusable-light,
6
- .focusable-light-off{
7
-
8
- transition-duration: 200ms;
9
-
10
- transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
1
+ @keyframes focus-bounce {
2
+ 0%, 75%, 100% {
3
+ outline-offset: var(--magma-outline-focus-offset);
4
+ }
11
5
 
6
+ 50% {
12
7
  outline-offset: var(--magma-outline-blur-offset);
8
+ }
9
+ }
10
+ /* included for focus effect */
11
+ @tailwind components;
12
+
13
+ .focus-bounce {
14
+ animation-duration: var(--magma-outline-animation-duration, 1s);
15
+ animation-fill-mode: forwards;
16
+ animation-iteration-count: infinite;
17
+ animation-name: focus-bounce;
18
+ animation-play-state: paused;
19
+ animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
13
20
  outline: var(--magma-outline-blur);
21
+ transition-duration: 200ms;
14
22
  transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
15
- }
23
+ transition-timing-function: ease-in-out;
24
+ }
16
25
 
17
- .focus-on,
18
- .focusable-light:focus-visible,
19
- .focusable:focus-visible {
26
+ .focus-bounce--focused,
27
+ .focus-bounce:focus-visible {
20
28
 
21
- --magma-outline-blur-offset: var(--magma-outline-focus-offset);
22
29
  --magma-outline-blur: var(--magma-outline-focus);
23
- }
24
- .fixed{
25
30
 
26
- position: fixed;
31
+ animation-play-state: running;
32
+ }
33
+ .fixed {
34
+ position: fixed;
27
35
  }
28
- .absolute{
29
-
30
- position: absolute;
36
+ .absolute {
37
+ position: absolute;
31
38
  }
32
- .contents{
33
-
34
- display: contents;
39
+ .contents {
40
+ display: contents;
35
41
  }
36
- .border{
37
-
38
- border-width: 1px;
42
+ .border {
43
+ border-width: 1px;
39
44
  }
40
- .shadow{
41
-
42
- --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
43
-
44
- --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
45
-
46
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
45
+ .shadow {
46
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
47
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
48
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
47
49
  }
48
50
 
49
51
  /**
50
- * @prop --mds-accordion-timer-item-progress-bar-color: Sets the color of the progress bar when the item is selected
51
- * @prop --mds-accordion-timer-item-progress-bar-background: Sets the background-color of the progress bar when the item is selected
52
- * @prop --mds-accordion-timer-item-color: Sets the text color of the component
53
- * @prop --mds-accordion-timer-item-progress-bar-thickness: Sets thickness of the progress bar
54
- * @prop --mds-accordion-timer-item-duration: Sets the transition duration of open/close animation
55
- */
52
+ * @prop --mds-accordion-timer-item-progress-bar-color: Sets the color of the progress bar when the item is selected
53
+ * @prop --mds-accordion-timer-item-progress-bar-background: Sets the background-color of the progress bar when the item is selected
54
+ * @prop --mds-accordion-timer-item-color: Sets the text color of the component
55
+ * @prop --mds-accordion-timer-item-progress-bar-thickness: Sets thickness of the progress bar
56
+ * @prop --mds-accordion-timer-item-duration: Sets the transition duration of open/close animation
57
+ */
56
58
 
57
59
  :host {
58
60
 
@@ -72,9 +74,8 @@
72
74
  position: relative;
73
75
  }
74
76
 
75
- .row{
76
-
77
- gap: 1rem;
77
+ .row {
78
+ gap: 1rem;
78
79
 
79
80
  display: flex;
80
81
  }
@@ -92,9 +93,8 @@
92
93
  flex-shrink: 0;
93
94
  }
94
95
 
95
- .action{
96
-
97
- border-radius: 0.75rem;
96
+ .action {
97
+ border-radius: 0.75rem;
98
98
 
99
99
  background-color: transparent;
100
100
  border: 0;
@@ -107,11 +107,9 @@
107
107
  cursor: auto;
108
108
  }
109
109
 
110
- .contents{
111
-
112
- gap: 1rem;
113
-
114
- transition-timing-function: cubic-bezier(1, 0, 0, 1);
110
+ .contents {
111
+ gap: 1rem;
112
+ transition-timing-function: cubic-bezier(1, 0, 0, 1);
115
113
 
116
114
  display: grid;
117
115
  grid-template-rows: 0fr;
@@ -127,11 +125,9 @@
127
125
  min-height: 0;
128
126
  }
129
127
 
130
- :host( [selected] ) .contents{
131
-
132
- padding-top: 1rem;
133
-
134
- opacity: 1;
128
+ :host( [selected] ) .contents {
129
+ padding-top: 1rem;
130
+ opacity: 1;
135
131
 
136
132
  grid-template-rows: 1fr;
137
133
  }
@@ -33,7 +33,7 @@ export class MdsAccordionTimerItem {
33
33
  }
34
34
  render() {
35
35
  var _a;
36
- return (h(Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { class: "row" }, h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), h("div", { class: "accordion" }, h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focusable", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { typography: this.typography }, this.description)), h("div", { class: "contents", id: "contents" }, h("div", { class: "contents-expander" }, h("slot", null)))))));
36
+ return (h(Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { class: "row" }, h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), h("div", { class: "accordion" }, h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focus-bounce", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { typography: this.typography }, this.description)), h("div", { class: "contents", id: "contents" }, h("div", { class: "contents-expander" }, h("slot", null)))))));
37
37
  }
38
38
  static get is() { return "mds-accordion-timer-item"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,21 @@
1
+ const inputTextTypeDictionary = [
2
+ 'date',
3
+ 'email',
4
+ 'number',
5
+ 'password',
6
+ 'search',
7
+ 'tel',
8
+ 'text',
9
+ 'textarea',
10
+ 'time',
11
+ 'url',
12
+ ];
13
+ const inputControlsLayoutDictionary = [
14
+ 'horizontal',
15
+ 'vertical',
16
+ ];
17
+ const inputControlsIconDictionary = [
18
+ 'arrow',
19
+ 'arithmetic',
20
+ ];
21
+ export { inputControlsIconDictionary, inputControlsLayoutDictionary, inputTextTypeDictionary, };
@@ -60,4 +60,8 @@ const typographyTooltipDictionary = [
60
60
  'detail',
61
61
  'tip',
62
62
  ];
63
- export { typographyDictionary, typographyInfoDictionary, typographyReadingVariationsDictionary, typographyMonoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
63
+ const typographyInputDictionary = [
64
+ 'snippet',
65
+ 'detail',
66
+ ];
67
+ export { typographyDictionary, typographyInfoDictionary, typographyInputDictionary, typographyMonoDictionary, typographyReadDictionary, typographyReadingVariationsDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const mdsAccordionTimerItemCss = "@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.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{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-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:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
3
+ const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset)}50%{outline-offset:var(--magma-outline-blur-offset)}}@tailwind components; .focus-bounce{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.focus-bounce--focused,.focus-bounce:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.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{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-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:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";
4
4
 
5
5
  const MdsAccordionTimerItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionTimerItem extends HTMLElement {
6
6
  constructor() {
@@ -39,7 +39,7 @@ const MdsAccordionTimerItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccord
39
39
  }
40
40
  render() {
41
41
  var _a;
42
- return (h(Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { class: "row" }, h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), h("div", { class: "accordion" }, h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focusable", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { typography: this.typography }, this.description)), h("div", { class: "contents", id: "contents" }, h("div", { class: "contents-expander" }, h("slot", null)))))));
42
+ return (h(Host, { onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { class: "row" }, h("mds-progress", { class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical" }), h("div", { class: "accordion" }, h("button", { "aria-controls": "contents", "aria-expanded": this.selected ? 'true' : 'false', class: "action focus-bounce", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { typography: this.typography }, this.description)), h("div", { class: "contents", id: "contents" }, h("div", { class: "contents-expander" }, h("slot", null)))))));
43
43
  }
44
44
  static get style() { return mdsAccordionTimerItemCss; }
45
45
  }, [1, "mds-accordion-timer-item", {
@@ -1,9 +1,9 @@
1
1
  {
2
- "timestamp": "2023-09-27T11:16:55",
2
+ "timestamp": "2023-11-08T15:30:14",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.3.0",
6
- "typescriptVersion": "5.1.6"
5
+ "version": "4.7.1",
6
+ "typescriptVersion": "5.2.2"
7
7
  },
8
8
  "components": [
9
9
  {
@@ -361,11 +361,19 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
361
361
  // except for the first character, we keep the event name case
362
362
  memberName = ln[2] + memberName.slice(3);
363
363
  }
364
- if (oldValue) {
365
- plt.rel(elm, memberName, oldValue, false);
366
- }
367
- if (newValue) {
368
- plt.ael(elm, memberName, newValue, false);
364
+ if (oldValue || newValue) {
365
+ // Need to account for "capture" events.
366
+ // If the event name ends with "Capture", we'll update the name to remove
367
+ // the "Capture" suffix and make sure the event listener is setup to handle the capture event.
368
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
369
+ // Make sure we only replace the last instance of "Capture"
370
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, '');
371
+ if (oldValue) {
372
+ plt.rel(elm, memberName, oldValue, capture);
373
+ }
374
+ if (newValue) {
375
+ plt.ael(elm, memberName, newValue, capture);
376
+ }
369
377
  }
370
378
  }
371
379
  else {
@@ -407,6 +415,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
407
415
  };
408
416
  const parseClassListRegex = /\s/;
409
417
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
418
+ const CAPTURE_EVENT_SUFFIX = 'Capture';
419
+ const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
410
420
  const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
411
421
  // if the element passed in is a shadow root, which is a document fragment
412
422
  // then we want to be adding attrs/props to the shadow root's "host" element
@@ -972,6 +982,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
972
982
  */
973
983
  const callRender = (hostRef, instance, elm, isInitialLoad) => {
974
984
  try {
985
+ /**
986
+ * minification optimization: `allRenderFn` is `true` if all components have a `render`
987
+ * method, so we can call the method immediately. If not, check before calling it.
988
+ */
975
989
  instance = instance.render() ;
976
990
  {
977
991
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
@@ -1200,7 +1214,18 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1200
1214
  }
1201
1215
  return Cstr;
1202
1216
  };
1203
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1217
+ /**
1218
+ * Initialize a Stencil component given a reference to its host element, its
1219
+ * runtime bookkeeping data structure, runtime metadata about the component,
1220
+ * and (optionally) an HMR version ID.
1221
+ *
1222
+ * @param elm a host element
1223
+ * @param hostRef the element's runtime bookkeeping object
1224
+ * @param cmpMeta runtime metadata for the Stencil component
1225
+ * @param hmrVersionId an (optional) HMR version ID
1226
+ */
1227
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1228
+ let Cstr;
1204
1229
  // initializeComponent
1205
1230
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1206
1231
  // Let the runtime know that the component has been initialized
@@ -1435,22 +1460,49 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1435
1460
  * @returns void
1436
1461
  */
1437
1462
  const setNonce = (nonce) => (plt.$nonce$ = nonce);
1463
+ /**
1464
+ * A WeakMap mapping runtime component references to their corresponding host reference
1465
+ * instances.
1466
+ */
1438
1467
  const hostRefs = /*@__PURE__*/ new WeakMap();
1468
+ /**
1469
+ * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1470
+ *
1471
+ * @param ref the runtime ref of interest
1472
+ * @returns the Host reference (if found) or undefined
1473
+ */
1439
1474
  const getHostRef = (ref) => hostRefs.get(ref);
1475
+ /**
1476
+ * Register a lazy instance with the {@link hostRefs} object so it's
1477
+ * corresponding {@link d.HostRef} can be retrieved later.
1478
+ *
1479
+ * @param lazyInstance the lazy instance of interest
1480
+ * @param hostRef that instances `HostRef` object
1481
+ * @returns a reference to the host ref WeakMap
1482
+ */
1440
1483
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1441
- const registerHost = (elm, cmpMeta) => {
1484
+ /**
1485
+ * Register a host element for a Stencil component, setting up various metadata
1486
+ * and callbacks based on {@link BUILD} flags as well as the component's runtime
1487
+ * metadata.
1488
+ *
1489
+ * @param hostElement the host element to register
1490
+ * @param cmpMeta runtime metadata for that component
1491
+ * @returns a reference to the host ref WeakMap
1492
+ */
1493
+ const registerHost = (hostElement, cmpMeta) => {
1442
1494
  const hostRef = {
1443
1495
  $flags$: 0,
1444
- $hostElement$: elm,
1496
+ $hostElement$: hostElement,
1445
1497
  $cmpMeta$: cmpMeta,
1446
1498
  $instanceValues$: new Map(),
1447
1499
  };
1448
1500
  {
1449
1501
  hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1450
- elm['s-p'] = [];
1451
- elm['s-rc'] = [];
1502
+ hostElement['s-p'] = [];
1503
+ hostElement['s-rc'] = [];
1452
1504
  }
1453
- return hostRefs.set(elm, hostRef);
1505
+ return hostRefs.set(hostElement, hostRef);
1454
1506
  };
1455
1507
  const isMemberInElement = (elm, memberName) => memberName in elm;
1456
1508
  const consoleError = (e, el) => (0, console.error)(e, el);
@@ -1463,7 +1515,20 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1463
1515
  if (module) {
1464
1516
  return module[exportName];
1465
1517
  }
1466
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1518
+
1519
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1520
+ const processMod = importedModule => {
1521
+ cmpModules.set(bundleId, importedModule);
1522
+ return importedModule[exportName];
1523
+ }
1524
+ switch(bundleId) {
1525
+
1526
+ case 'mds-accordion-timer-item':
1527
+ return import(
1528
+ /* webpackMode: "lazy" */
1529
+ './mds-accordion-timer-item.entry.js').then(processMod, consoleError);
1530
+ }
1531
+ }
1467
1532
  return import(
1468
1533
  /* @vite-ignore */
1469
1534
  /* webpackInclude: /\.entry\.js$/ */
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-316499e4.js';
2
- export { s as setNonce } from './index-316499e4.js';
1
+ import { b as bootstrapLazy } from './index-b42ce9a6.js';
2
+ export { s as setNonce } from './index-b42ce9a6.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;