@maggioli-design-system/mds-accordion-timer-item 3.10.2 → 4.0.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 (90) hide show
  1. package/dist/cjs/{index-e153727a.js → index-2df02342.js} +42 -5
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +13 -3
  4. package/dist/cjs/mds-accordion-timer-item.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/common/locale.js +17 -5
  7. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +12 -199
  8. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +34 -1
  9. package/dist/collection/dictionary/button.js +1 -0
  10. package/dist/collection/dictionary/variant.js +10 -1
  11. package/dist/collection/type/variant-file-format.js +0 -34
  12. package/dist/components/mds-accordion-timer-item.js +14 -2
  13. package/dist/documentation.json +23 -3
  14. package/dist/esm/{index-b53929ab.js → index-6fd47b7f.js} +42 -5
  15. package/dist/esm/loader.js +3 -3
  16. package/dist/esm/mds-accordion-timer-item.entry.js +13 -3
  17. package/dist/esm/mds-accordion-timer-item.js +4 -4
  18. package/dist/esm-es5/index-6fd47b7f.js +1 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  21. package/dist/esm-es5/mds-accordion-timer-item.js +1 -1
  22. package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -1
  23. package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
  24. package/dist/mds-accordion-timer-item/p-6869ca6c.js +2 -0
  25. package/dist/mds-accordion-timer-item/p-adf2d0be.system.js +2 -0
  26. package/dist/mds-accordion-timer-item/p-aee471c0.entry.js +1 -0
  27. package/dist/mds-accordion-timer-item/p-bb605e2f.system.entry.js +1 -0
  28. package/dist/mds-accordion-timer-item/p-cc3b4ba1.system.js +1 -0
  29. package/dist/stats.json +88 -39
  30. package/dist/types/common/date.d.ts +1 -1
  31. package/dist/types/common/file.d.ts +3 -4
  32. package/dist/types/common/locale.d.ts +3 -1
  33. package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +6 -1
  34. package/dist/types/components.d.ts +7 -2
  35. package/dist/types/dictionary/file-extensions.d.ts +2 -1
  36. package/dist/types/dictionary/variant.d.ts +2 -1
  37. package/dist/types/stencil-public-runtime.d.ts +6 -0
  38. package/dist/types/type/autocomplete.d.ts +1 -1
  39. package/dist/types/type/button.d.ts +1 -1
  40. package/dist/types/type/header-bar.d.ts +2 -0
  41. package/dist/types/type/input.d.ts +3 -0
  42. package/dist/types/type/variant-file-format.d.ts +4 -4
  43. package/dist/types/type/variant.d.ts +2 -1
  44. package/documentation.json +51 -31
  45. package/package.json +6 -6
  46. package/readme.md +2 -1
  47. package/src/common/file.ts +2 -3
  48. package/src/common/locale.ts +20 -6
  49. package/src/common/unit.ts +1 -1
  50. package/src/components/mds-accordion-timer-item/.gitlab-ci.yml +5 -10
  51. package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.css +4 -3
  52. package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx +15 -2
  53. package/src/components/mds-accordion-timer-item/readme.md +1 -0
  54. package/src/components.d.ts +7 -2
  55. package/src/dictionary/button.ts +1 -0
  56. package/src/dictionary/file-extensions.ts +3 -1
  57. package/src/dictionary/variant.ts +11 -0
  58. package/src/fixtures/icons.json +7 -2
  59. package/src/fixtures/iconsauce.json +2 -0
  60. package/src/tailwind/components.css +1 -1
  61. package/src/type/autocomplete.ts +0 -1
  62. package/src/type/button.ts +1 -0
  63. package/src/type/header-bar.ts +11 -0
  64. package/src/type/input.ts +4 -0
  65. package/src/type/variant-file-format.ts +20 -37
  66. package/src/type/variant.ts +9 -1
  67. package/www/build/mds-accordion-timer-item.esm.js +1 -1
  68. package/www/build/mds-accordion-timer-item.js +1 -1
  69. package/www/build/p-6869ca6c.js +2 -0
  70. package/www/build/p-adf2d0be.system.js +2 -0
  71. package/www/build/p-aee471c0.entry.js +1 -0
  72. package/www/build/p-bb605e2f.system.entry.js +1 -0
  73. package/www/build/p-cc3b4ba1.system.js +1 -0
  74. package/dist/collection/type/language.js +0 -1
  75. package/dist/esm-es5/index-b53929ab.js +0 -1
  76. package/dist/mds-accordion-timer-item/p-0ebb48b0.system.js +0 -1
  77. package/dist/mds-accordion-timer-item/p-0fba0302.js +0 -2
  78. package/dist/mds-accordion-timer-item/p-883cd929.entry.js +0 -1
  79. package/dist/mds-accordion-timer-item/p-9974040b.system.js +0 -2
  80. package/dist/mds-accordion-timer-item/p-f2a0f7e2.system.entry.js +0 -1
  81. package/dist/types/interface/input-value.d.ts +0 -4
  82. package/dist/types/type/language.d.ts +0 -2
  83. package/src/interface/input-value.ts +0 -5
  84. package/src/type/language.ts +0 -8
  85. package/www/build/p-0ebb48b0.system.js +0 -1
  86. package/www/build/p-0fba0302.js +0 -2
  87. package/www/build/p-883cd929.entry.js +0 -1
  88. package/www/build/p-9974040b.system.js +0 -2
  89. package/www/build/p-f2a0f7e2.system.entry.js +0 -1
  90. /package/dist/collection/{interface/input-value.js → type/header-bar.js} +0 -0
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-accordion-timer-item';
24
- const BUILD = /* mds-accordion-timer-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* mds-accordion-timer-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.21.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -368,10 +368,21 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
368
368
  if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
369
369
  if (styleContainerNode.nodeName === "HEAD") {
370
370
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
371
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : document.querySelector("style");
371
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
372
372
  styleContainerNode.insertBefore(styleElm, referenceNode2);
373
373
  } else if ("host" in styleContainerNode) {
374
- styleContainerNode.prepend(styleElm);
374
+ if (supportsConstructableStylesheets) {
375
+ const stylesheet = new CSSStyleSheet();
376
+ stylesheet.replaceSync(style);
377
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
378
+ } else {
379
+ const existingStyleContainer = styleContainerNode.querySelector("style");
380
+ if (existingStyleContainer) {
381
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
382
+ } else {
383
+ styleContainerNode.prepend(styleElm);
384
+ }
385
+ }
375
386
  } else {
376
387
  styleContainerNode.append(styleElm);
377
388
  }
@@ -860,6 +871,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
860
871
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
861
872
  );
862
873
  }
874
+ const elm = hostRef.$hostElement$ ;
863
875
  const oldVal = hostRef.$instanceValues$.get(propName);
864
876
  const flags = hostRef.$flags$;
865
877
  const instance = hostRef.$lazyInstance$ ;
@@ -869,6 +881,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
869
881
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
870
882
  hostRef.$instanceValues$.set(propName, newVal);
871
883
  if (instance) {
884
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
885
+ const watchMethods = cmpMeta.$watchers$[propName];
886
+ if (watchMethods) {
887
+ watchMethods.map((watchMethodName) => {
888
+ try {
889
+ instance[watchMethodName](newVal, oldVal, propName);
890
+ } catch (e) {
891
+ consoleError(e, elm);
892
+ }
893
+ });
894
+ }
895
+ }
872
896
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
873
897
  scheduleUpdate(hostRef, false);
874
898
  }
@@ -880,7 +904,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
880
904
  var proxyComponent = (Cstr, cmpMeta, flags) => {
881
905
  var _a, _b;
882
906
  const prototype = Cstr.prototype;
883
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
907
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
908
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
909
+ cmpMeta.$watchers$ = Cstr.watchers;
910
+ }
884
911
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
885
912
  members.map(([memberName, [memberFlags]]) => {
886
913
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -963,6 +990,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
963
990
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
964
991
  }
965
992
  if (!Cstr.isProxied) {
993
+ {
994
+ cmpMeta.$watchers$ = Cstr.watchers;
995
+ }
966
996
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
967
997
  Cstr.isProxied = true;
968
998
  }
@@ -978,6 +1008,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
978
1008
  {
979
1009
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
980
1010
  }
1011
+ {
1012
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1013
+ }
981
1014
  endNewInstance();
982
1015
  } else {
983
1016
  Cstr = elm.constructor;
@@ -1074,6 +1107,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1074
1107
  let hasSlotRelocation = false;
1075
1108
  lazyBundles.map((lazyBundle) => {
1076
1109
  lazyBundle[1].map((compactMeta) => {
1110
+ var _a2;
1077
1111
  const cmpMeta = {
1078
1112
  $flags$: compactMeta[0],
1079
1113
  $tagName$: compactMeta[1],
@@ -1089,6 +1123,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1089
1123
  {
1090
1124
  cmpMeta.$attrsToReflect$ = [];
1091
1125
  }
1126
+ {
1127
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1128
+ }
1092
1129
  const tagName = cmpMeta.$tagName$;
1093
1130
  const HostElement = class extends HTMLElement {
1094
1131
  // StencilLazyHost
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e153727a.js');
5
+ const index = require('./index-2df02342.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["mds-accordion-timer-item.cjs",[[1,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"duration":[514],"progress":[2],"uuid":[2]}]]]], options);
11
+ return index.bootstrapLazy([["mds-accordion-timer-item.cjs",[[1,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"duration":[514],"progress":[2],"uuid":[2]},null,{"selected":["handleSelected"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2,17 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e153727a.js');
5
+ const index = require('./index-2df02342.js');
6
6
 
7
7
  const miBaselineKeyboardArrowDown = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z"/></svg>`;
8
8
 
9
- const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\n\n.focus-bounce {\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n }\n\n.focus-bounce--focused,\n .focus-bounce:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n.svg {\n display: -ms-flexbox;\n display: flex;\n}\n\n.svg svg {\n aspect-ratio: 1/1;\n height: 100%;\n width: 100%;\n}\n@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-item-progress-bar-color: Sets the color of the progress bar when the item is selected\n * @prop --mds-accordion-timer-item-progress-bar-background: Sets the background-color of the progress bar when the item is selected\n * @prop --mds-accordion-timer-item-color: Sets the text color of the component\n * @prop --mds-accordion-timer-item-progress-bar-thickness: Sets thickness of the progress bar\n * @prop --mds-accordion-timer-item-duration: Sets the transition duration of open/close animation\n */\n\n:host {\n\n --mds-accordion-timer-item-progress-bar-color: var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));\n --mds-accordion-timer-item-progress-bar-background: var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));\n --mds-accordion-timer-item-progress-bar-thickness: var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 500ms);\n padding-top: 1rem;\n padding-bottom: 1rem;\n -webkit-transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;\n transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 150ms;\n transition-duration: 150ms;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n color: var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));\n display: grid;\n position: relative;\n -webkit-transition-duration: var(--mds-accordion-timer-item-duration);\n transition-duration: var(--mds-accordion-timer-item-duration);\n}\n\n.row {\n gap: 1rem;\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n.accordion {\n display: grid;\n}\n\n.progress-bar {\n\n --mds-progress-color: var(--mds-accordion-timer-item-progress-bar-color);\n --mds-progress-background: var(--mds-accordion-timer-item-progress-bar-background);\n --mds-progress-thickness: var(--mds-accordion-timer-item-progress-bar-thickness);\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n}\n\n.action {\n gap: 1rem;\n border-radius: 0.75rem;\n\n background-color: transparent;\n border: 0;\n color: inherit;\n cursor: pointer;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 0;\n text-align: left;\n}\n\n.content {\n gap: 1rem;\n -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);\n transition-timing-function: cubic-bezier(1, 0, 0, 1);\n\n display: grid;\n grid-template-rows: 0fr;\n min-height: 0;\n opacity: 0;\n overflow: hidden;\n padding-top: 0;\n -webkit-transition-duration: var(--mds-accordion-timer-item-duration);\n transition-duration: var(--mds-accordion-timer-item-duration);\n -webkit-transition-property: grid-template-rows opacity padding;\n transition-property: grid-template-rows opacity padding;\n transition-property: grid-template-rows opacity padding, -ms-grid-rows opacity padding;\n}\n\n.content-expander {\n min-height: 0;\n}\n\n.icon {\n -webkit-transition-property: -webkit-transform;\n transition-property: -webkit-transform;\n transition-property: transform;\n transition-property: transform, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n fill: currentcolor;\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n:host( [selected]:not([selected=\"false\"]) ) .action {\n cursor: auto;\n}\n\n:host( [selected]:not([selected=\"false\"]) ) .icon {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n\n:host( [selected]:not([selected=\"false\"]) ) .content {\n padding-top: 1rem;\n opacity: 1;\n\n grid-template-rows: 1fr;\n}\n\n.static {\n position: static;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.border {\n border-width: 1px;\n}\n\n.bg-label-amaranth-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-aqua-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-blue-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-green-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-lime-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-orange-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-orchid-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-violet-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));\n}\n\n.bg-label-yellow-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));\n}\n\n.bg-tone-neutral-10 {\n --tw-bg-opacity: 1;\n background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));\n}\n\n.fill-label-amaranth-04 {\n fill: rgb(var(--label-amaranth-04));\n}\n\n.fill-label-aqua-04 {\n fill: rgb(var(--label-aqua-04));\n}\n\n.fill-label-blue-04 {\n fill: rgb(var(--label-blue-04));\n}\n\n.fill-label-green-04 {\n fill: rgb(var(--label-green-04));\n}\n\n.fill-label-lime-04 {\n fill: rgb(var(--label-lime-04));\n}\n\n.fill-label-orange-04 {\n fill: rgb(var(--label-orange-04));\n}\n\n.fill-label-orchid-04 {\n fill: rgb(var(--label-orchid-04));\n}\n\n.fill-label-violet-04 {\n fill: rgb(var(--label-violet-04));\n}\n\n.fill-label-yellow-04 {\n fill: rgb(var(--label-yellow-04));\n}\n\n.fill-tone-neutral-04 {\n fill: rgb(var(--tone-neutral-04));\n}\n\n.text-label-amaranth-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));\n}\n\n.text-label-aqua-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));\n}\n\n.text-label-blue-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-blue-04) / var(--tw-text-opacity));\n}\n\n.text-label-green-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-green-04) / var(--tw-text-opacity));\n}\n\n.text-label-lime-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-lime-04) / var(--tw-text-opacity));\n}\n\n.text-label-orange-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-orange-04) / var(--tw-text-opacity));\n}\n\n.text-label-orchid-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));\n}\n\n.text-label-violet-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-violet-04) / var(--tw-text-opacity));\n}\n\n.text-label-yellow-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));\n}\n\n.text-tone-neutral-04 {\n --tw-text-opacity: 1;\n color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: 0s;\n }\n }\n}\n";
9
+ const mdsAccordionTimerItemCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-item-progress-bar-color: Sets the color of the progress bar when the item is selected\n * @prop --mds-accordion-timer-item-progress-bar-background: Sets the background-color of the progress bar when the item is selected\n * @prop --mds-accordion-timer-item-color: Sets the text color of the component\n * @prop --mds-accordion-timer-item-progress-bar-thickness: Sets thickness of the progress bar\n * @prop --mds-accordion-timer-item-duration: Sets the transition duration of open/close animation\n */\n\n:host {\n\n --mds-accordion-timer-item-progress-bar-color: var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));\n --mds-accordion-timer-item-progress-bar-background: var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));\n --mds-accordion-timer-item-progress-bar-thickness: var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 500ms);\n padding-top: 1rem;\n padding-bottom: 1rem;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n color: var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));\n display: grid;\n position: relative;\n -webkit-transition-duration: var(--mds-accordion-timer-item-duration);\n transition-duration: var(--mds-accordion-timer-item-duration);\n -webkit-transition-property: color;\n transition-property: color;\n}\n\n.row {\n gap: 1rem;\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n.accordion {\n display: grid;\n}\n\n.progress-bar {\n\n --mds-progress-color: var(--mds-accordion-timer-item-progress-bar-color);\n --mds-progress-background: var(--mds-accordion-timer-item-progress-bar-background);\n --mds-progress-thickness: var(--mds-accordion-timer-item-progress-bar-thickness);\n\n -ms-flex-negative: 0;\n\n flex-shrink: 0;\n}\n\n.action {\n gap: 1rem;\n border-radius: 0.75rem;\n\n background-color: transparent;\n border: 0;\n color: inherit;\n cursor: pointer;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 0;\n text-align: left;\n}\n\n.content {\n gap: 1rem;\n -webkit-transition-timing-function: cubic-bezier(1, 0, 0, 1);\n transition-timing-function: cubic-bezier(1, 0, 0, 1);\n\n display: grid;\n grid-template-rows: 0fr;\n min-height: 0;\n opacity: 0;\n overflow: hidden;\n padding-top: 0;\n -webkit-transition-duration: var(--mds-accordion-timer-item-duration);\n transition-duration: var(--mds-accordion-timer-item-duration);\n -webkit-transition-property: grid-template-rows opacity padding;\n transition-property: grid-template-rows opacity padding;\n transition-property: grid-template-rows opacity padding, -ms-grid-rows opacity padding;\n}\n\n.content-expander {\n min-height: 0;\n}\n\n.icon {\n display: -ms-flexbox;\n display: flex;\n}\n\n.icon svg {\n aspect-ratio: 1/1;\n height: 100%;\n width: 100%;\n}\n\n.icon {\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n fill: currentcolor;\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n -webkit-transition-property: -webkit-transform;\n transition-property: -webkit-transform;\n transition-property: transform;\n transition-property: transform, -webkit-transform;\n}\n\n:host( [selected]:not([selected=\"false\"]) ) .action {\n cursor: auto;\n}\n\n:host( [selected]:not([selected=\"false\"]) ) .icon {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n\n:host( [selected]:not([selected=\"false\"]) ) .content {\n padding-top: 1rem;\n opacity: 1;\n\n grid-template-rows: 1fr;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: 0s;\n }\n }\n}\n";
10
10
  const MdsAccordionTimerItemStyle0 = mdsAccordionTimerItemCss;
11
11
 
12
12
  const MdsAccordionTimerItem = class {
13
13
  constructor(hostRef) {
14
14
  index.registerInstance(this, hostRef);
15
15
  this.clickSelectEvent = index.createEvent(this, "mdsAccordionTimerItemClickSelect", 7);
16
+ this.selectEvent = index.createEvent(this, "mdsAccordionTimerItemSelect", 7);
16
17
  this.selectedMouseEnterEvent = index.createEvent(this, "mdsAccordionTimerItemMouseEnterSelect", 7);
17
18
  this.selectedMouseLeaveEvent = index.createEvent(this, "mdsAccordionTimerItemMouseLeaveSelect", 7);
18
19
  /**
@@ -43,10 +44,19 @@ const MdsAccordionTimerItem = class {
43
44
  this.progress = 0;
44
45
  this.uuid = 0;
45
46
  }
47
+ handleSelected(newValue) {
48
+ this.progress = 0;
49
+ if (newValue) {
50
+ this.selectEvent.emit({ selected: this.selected, uuid: this.uuid });
51
+ }
52
+ }
46
53
  render() {
47
54
  var _a;
48
- return (index.h(index.Host, { key: '3d16a68df5dd7ffbef52eeeb32d4d2ea6c6bda5e', onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, index.h("div", { key: '9666c1af6081ba157218583b0c5cd3c819fa9c0a', class: "row" }, index.h("mds-progress", { key: '8a2b2cd58d22206a02ba36c951238ba31eb1dca5', class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical", part: "progress" }), index.h("div", { key: 'dd629e5e7f5194412afd0dfc7d3ca7f7ac04a1b5', class: "accordion" }, index.h("button", { key: '608a961e3b15dc480a45f1c22ec3c83d83aa590b', "aria-controls": "content", "aria-expanded": this.selected ? 'true' : 'false', class: "action focus-bounce", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, index.h("mds-text", { key: 'cc91fbab8fa96df59a39680edaf2c5742c5565ea', typography: this.typography, part: "label" }, this.description), index.h("mds-text", { key: '36b97232d257a40ae7f50039009766ccb4b34a81', "aria-hidden": "true", class: "icon-button", typography: this.typography, part: "icon" }, index.h("i", { key: 'b55e4706a60870e6b3d03b5f2d90c04d3e4580e1', class: "svg icon", innerHTML: miBaselineKeyboardArrowDown }))), index.h("div", { key: '4735a20ffc00844e027df1468fd0476b911b7e60', class: "content", id: "content" }, index.h("div", { key: 'e6a1e64638bf9420ce8c0d59857e660ab9240f39', class: "content-expander", part: "content", role: "region" }, index.h("slot", { key: 'fea26587f0c4589f8b207dda75e616e806f9299f' })))))));
55
+ return (index.h(index.Host, { key: 'f363f2d7c13c1d90e95dd8c5a14c5fa8c63980bc', onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, index.h("div", { key: '606bb44e9fa98419f8fd9f9420dd62e3064fcc5a', class: "row" }, index.h("mds-progress", { key: '3e363d027812a2eb9cff973d3ea81f326314035d', class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical", part: "progress" }), index.h("div", { key: '4ae292499722ce850948fa3949f40e172fd92a14', class: "accordion" }, index.h("button", { key: '4a1ab0cf5bd58fc2c70a17e9ba6d99c09d2009f1', "aria-controls": "content", "aria-expanded": this.selected ? 'true' : 'false', class: "action focus-bounce", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, index.h("mds-text", { key: 'bf254974e6152d598d0226ccca0a428287a9d5ab', typography: this.typography, part: "label" }, this.description), index.h("mds-text", { key: 'd37052b637bcba6a12ced512aa7b88f17563abe2', "aria-hidden": "true", class: "icon-button", typography: this.typography, part: "icon" }, index.h("i", { key: '25586b3ab2f8e58a5af331f89ae536b2368b9ce4', class: "icon", innerHTML: miBaselineKeyboardArrowDown }))), index.h("div", { key: '5bd724442b895e7e11955efd03aaa976222f2f41', class: "content", id: "content" }, index.h("div", { key: '2bd7ec9dec71e2d53db9feb14bcace4431eade59', class: "content-expander", part: "content", role: "region" }, index.h("slot", { key: '8ce73094b72304c98807f4c1c1f9109652925444' })))))));
49
56
  }
57
+ static get watchers() { return {
58
+ "selected": ["handleSelected"]
59
+ }; }
50
60
  };
51
61
  MdsAccordionTimerItem.style = MdsAccordionTimerItemStyle0;
52
62
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e153727a.js');
5
+ const index = require('./index-2df02342.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.21.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.22.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  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));
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["mds-accordion-timer-item.cjs",[[1,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"duration":[514],"progress":[2],"uuid":[2]}]]]], options);
22
+ return index.bootstrapLazy([["mds-accordion-timer-item.cjs",[[1,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"duration":[514],"progress":[2],"uuid":[2]},null,{"selected":["handleSelected"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.21.0",
8
- "typescriptVersion": "5.5.3"
7
+ "version": "4.22.2",
8
+ "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -1,12 +1,13 @@
1
- import Handlebars from "handlebars";
1
+ import { render } from "mustache";
2
2
  export class Locale {
3
3
  constructor(configData) {
4
4
  this.rollbackLanguage = 'en';
5
5
  this.set = (configData) => {
6
6
  this.config = configData;
7
7
  };
8
- this.lang = (element) => {
9
- this.closestElement = element.closest('[lang]');
8
+ this.lang = (el) => {
9
+ this.element = el;
10
+ this.closestElement = this.element.closest('[lang]');
10
11
  if (this.closestElement) {
11
12
  if (this.closestElement.lang) {
12
13
  this.language = this.closestElement.lang;
@@ -16,6 +17,18 @@ export class Locale {
16
17
  this.language = this.rollbackLanguage;
17
18
  return this.language;
18
19
  };
20
+ this.update = (doc) => {
21
+ const context = doc !== null && doc !== void 0 ? doc : this.element.shadowRoot;
22
+ context && context.querySelectorAll('*').forEach(el => {
23
+ if (el.tagName.toLowerCase().startsWith('mds-')) {
24
+ // eslint-disable-next-line no-restricted-syntax
25
+ if (el && 'updateLang' in el) {
26
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
+ el.updateLang();
28
+ }
29
+ }
30
+ });
31
+ };
19
32
  this.pluralize = (tag, context) => {
20
33
  const languagePhrase = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag];
21
34
  const phrases = [];
@@ -38,8 +51,7 @@ export class Locale {
38
51
  }
39
52
  }
40
53
  }
41
- const template = Handlebars.compile(translatePhrase);
42
- return template(context);
54
+ return render(translatePhrase, context);
43
55
  };
44
56
  this.get = (tag, context) => {
45
57
  if (context) {
@@ -11,38 +11,6 @@
11
11
  @tailwind components;
12
12
  @tailwind utilities;
13
13
 
14
- .focus-bounce {
15
- animation-duration: var(--magma-outline-animation-duration, 1s);
16
- animation-fill-mode: forwards;
17
- animation-iteration-count: infinite;
18
- animation-name: focus-bounce;
19
- animation-play-state: paused;
20
- animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
21
- outline: var(--magma-outline-blur);
22
- transition-duration: 200ms;
23
- transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
24
- transition-timing-function: ease-in-out;
25
- }
26
-
27
- .focus-bounce--focused,
28
- .focus-bounce:focus-visible {
29
-
30
- --magma-outline-blur: var(--magma-outline-focus);
31
-
32
- animation-play-state: running;
33
- }
34
-
35
- .svg {
36
- display: flex;
37
- }
38
-
39
- .svg svg {
40
- aspect-ratio: 1/1;
41
- height: 100%;
42
- width: 100%;
43
- }
44
- @tailwind utilities;
45
-
46
14
  /**
47
15
  * @prop --mds-accordion-timer-item-progress-bar-color: Sets the color of the progress bar when the item is selected
48
16
  * @prop --mds-accordion-timer-item-progress-bar-background: Sets the background-color of the progress bar when the item is selected
@@ -59,15 +27,13 @@
59
27
  --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 500ms);
60
28
  padding-top: 1rem;
61
29
  padding-bottom: 1rem;
62
- transition-property: background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;
63
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
64
- transition-duration: 150ms;
65
30
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
66
31
 
67
32
  color: var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));
68
33
  display: grid;
69
34
  position: relative;
70
35
  transition-duration: var(--mds-accordion-timer-item-duration);
36
+ transition-property: color;
71
37
  }
72
38
 
73
39
  .row {
@@ -122,13 +88,22 @@
122
88
  }
123
89
 
124
90
  .icon {
125
- transition-property: transform;
126
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
91
+ display: flex;
92
+ }
93
+
94
+ .icon svg {
95
+ aspect-ratio: 1/1;
96
+ height: 100%;
97
+ width: 100%;
98
+ }
99
+
100
+ .icon {
127
101
  transition-duration: 500ms;
128
102
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
129
103
 
130
104
  fill: currentcolor;
131
105
  transform: rotate(180deg);
106
+ transition-property: transform;
132
107
  }
133
108
 
134
109
  :host( [selected]:not([selected="false"]) ) .action {
@@ -146,168 +121,6 @@
146
121
  grid-template-rows: 1fr;
147
122
  }
148
123
 
149
- .static {
150
- position: static;
151
- }
152
-
153
- .fixed {
154
- position: fixed;
155
- }
156
-
157
- .absolute {
158
- position: absolute;
159
- }
160
-
161
- .border {
162
- border-width: 1px;
163
- }
164
-
165
- .bg-label-amaranth-10 {
166
- --tw-bg-opacity: 1;
167
- background-color: rgb(var(--label-amaranth-10) / var(--tw-bg-opacity));
168
- }
169
-
170
- .bg-label-aqua-10 {
171
- --tw-bg-opacity: 1;
172
- background-color: rgb(var(--label-aqua-10) / var(--tw-bg-opacity));
173
- }
174
-
175
- .bg-label-blue-10 {
176
- --tw-bg-opacity: 1;
177
- background-color: rgb(var(--label-blue-10) / var(--tw-bg-opacity));
178
- }
179
-
180
- .bg-label-green-10 {
181
- --tw-bg-opacity: 1;
182
- background-color: rgb(var(--label-green-10) / var(--tw-bg-opacity));
183
- }
184
-
185
- .bg-label-lime-10 {
186
- --tw-bg-opacity: 1;
187
- background-color: rgb(var(--label-lime-10) / var(--tw-bg-opacity));
188
- }
189
-
190
- .bg-label-orange-10 {
191
- --tw-bg-opacity: 1;
192
- background-color: rgb(var(--label-orange-10) / var(--tw-bg-opacity));
193
- }
194
-
195
- .bg-label-orchid-10 {
196
- --tw-bg-opacity: 1;
197
- background-color: rgb(var(--label-orchid-10) / var(--tw-bg-opacity));
198
- }
199
-
200
- .bg-label-violet-10 {
201
- --tw-bg-opacity: 1;
202
- background-color: rgb(var(--label-violet-10) / var(--tw-bg-opacity));
203
- }
204
-
205
- .bg-label-yellow-10 {
206
- --tw-bg-opacity: 1;
207
- background-color: rgb(var(--label-yellow-10) / var(--tw-bg-opacity));
208
- }
209
-
210
- .bg-tone-neutral-10 {
211
- --tw-bg-opacity: 1;
212
- background-color: rgb(var(--tone-neutral-10) / var(--tw-bg-opacity));
213
- }
214
-
215
- .fill-label-amaranth-04 {
216
- fill: rgb(var(--label-amaranth-04));
217
- }
218
-
219
- .fill-label-aqua-04 {
220
- fill: rgb(var(--label-aqua-04));
221
- }
222
-
223
- .fill-label-blue-04 {
224
- fill: rgb(var(--label-blue-04));
225
- }
226
-
227
- .fill-label-green-04 {
228
- fill: rgb(var(--label-green-04));
229
- }
230
-
231
- .fill-label-lime-04 {
232
- fill: rgb(var(--label-lime-04));
233
- }
234
-
235
- .fill-label-orange-04 {
236
- fill: rgb(var(--label-orange-04));
237
- }
238
-
239
- .fill-label-orchid-04 {
240
- fill: rgb(var(--label-orchid-04));
241
- }
242
-
243
- .fill-label-violet-04 {
244
- fill: rgb(var(--label-violet-04));
245
- }
246
-
247
- .fill-label-yellow-04 {
248
- fill: rgb(var(--label-yellow-04));
249
- }
250
-
251
- .fill-tone-neutral-04 {
252
- fill: rgb(var(--tone-neutral-04));
253
- }
254
-
255
- .text-label-amaranth-04 {
256
- --tw-text-opacity: 1;
257
- color: rgb(var(--label-amaranth-04) / var(--tw-text-opacity));
258
- }
259
-
260
- .text-label-aqua-04 {
261
- --tw-text-opacity: 1;
262
- color: rgb(var(--label-aqua-04) / var(--tw-text-opacity));
263
- }
264
-
265
- .text-label-blue-04 {
266
- --tw-text-opacity: 1;
267
- color: rgb(var(--label-blue-04) / var(--tw-text-opacity));
268
- }
269
-
270
- .text-label-green-04 {
271
- --tw-text-opacity: 1;
272
- color: rgb(var(--label-green-04) / var(--tw-text-opacity));
273
- }
274
-
275
- .text-label-lime-04 {
276
- --tw-text-opacity: 1;
277
- color: rgb(var(--label-lime-04) / var(--tw-text-opacity));
278
- }
279
-
280
- .text-label-orange-04 {
281
- --tw-text-opacity: 1;
282
- color: rgb(var(--label-orange-04) / var(--tw-text-opacity));
283
- }
284
-
285
- .text-label-orchid-04 {
286
- --tw-text-opacity: 1;
287
- color: rgb(var(--label-orchid-04) / var(--tw-text-opacity));
288
- }
289
-
290
- .text-label-violet-04 {
291
- --tw-text-opacity: 1;
292
- color: rgb(var(--label-violet-04) / var(--tw-text-opacity));
293
- }
294
-
295
- .text-label-yellow-04 {
296
- --tw-text-opacity: 1;
297
- color: rgb(var(--label-yellow-04) / var(--tw-text-opacity));
298
- }
299
-
300
- .text-tone-neutral-04 {
301
- --tw-text-opacity: 1;
302
- color: rgb(var(--tone-neutral-04) / var(--tw-text-opacity));
303
- }
304
-
305
- .shadow {
306
- --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
307
- --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
308
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
309
- }
310
-
311
124
  @container style(--magma-pref-animation: reduce) {
312
125
  :host {
313
126
 
@@ -37,9 +37,15 @@ export class MdsAccordionTimerItem {
37
37
  this.progress = 0;
38
38
  this.uuid = 0;
39
39
  }
40
+ handleSelected(newValue) {
41
+ this.progress = 0;
42
+ if (newValue) {
43
+ this.selectEvent.emit({ selected: this.selected, uuid: this.uuid });
44
+ }
45
+ }
40
46
  render() {
41
47
  var _a;
42
- return (h(Host, { key: '3d16a68df5dd7ffbef52eeeb32d4d2ea6c6bda5e', onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { key: '9666c1af6081ba157218583b0c5cd3c819fa9c0a', class: "row" }, h("mds-progress", { key: '8a2b2cd58d22206a02ba36c951238ba31eb1dca5', class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical", part: "progress" }), h("div", { key: 'dd629e5e7f5194412afd0dfc7d3ca7f7ac04a1b5', class: "accordion" }, h("button", { key: '608a961e3b15dc480a45f1c22ec3c83d83aa590b', "aria-controls": "content", "aria-expanded": this.selected ? 'true' : 'false', class: "action focus-bounce", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { key: 'cc91fbab8fa96df59a39680edaf2c5742c5565ea', typography: this.typography, part: "label" }, this.description), h("mds-text", { key: '36b97232d257a40ae7f50039009766ccb4b34a81', "aria-hidden": "true", class: "icon-button", typography: this.typography, part: "icon" }, h("i", { key: 'b55e4706a60870e6b3d03b5f2d90c04d3e4580e1', class: "svg icon", innerHTML: miBaselineKeyboardArrowDown }))), h("div", { key: '4735a20ffc00844e027df1468fd0476b911b7e60', class: "content", id: "content" }, h("div", { key: 'e6a1e64638bf9420ce8c0d59857e660ab9240f39', class: "content-expander", part: "content", role: "region" }, h("slot", { key: 'fea26587f0c4589f8b207dda75e616e806f9299f' })))))));
48
+ return (h(Host, { key: 'f363f2d7c13c1d90e95dd8c5a14c5fa8c63980bc', onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { key: '606bb44e9fa98419f8fd9f9420dd62e3064fcc5a', class: "row" }, h("mds-progress", { key: '3e363d027812a2eb9cff973d3ea81f326314035d', class: "progress-bar", progress: Number((_a = this.progress) === null || _a === void 0 ? void 0 : _a.toFixed(2)), direction: "vertical", part: "progress" }), h("div", { key: '4ae292499722ce850948fa3949f40e172fd92a14', class: "accordion" }, h("button", { key: '4a1ab0cf5bd58fc2c70a17e9ba6d99c09d2009f1', "aria-controls": "content", "aria-expanded": this.selected ? 'true' : 'false', class: "action focus-bounce", id: "action", onClick: this.toggle, role: "button", tabindex: "0" }, h("mds-text", { key: 'bf254974e6152d598d0226ccca0a428287a9d5ab', typography: this.typography, part: "label" }, this.description), h("mds-text", { key: 'd37052b637bcba6a12ced512aa7b88f17563abe2', "aria-hidden": "true", class: "icon-button", typography: this.typography, part: "icon" }, h("i", { key: '25586b3ab2f8e58a5af331f89ae536b2368b9ce4', class: "icon", innerHTML: miBaselineKeyboardArrowDown }))), h("div", { key: '5bd724442b895e7e11955efd03aaa976222f2f41', class: "content", id: "content" }, h("div", { key: '2bd7ec9dec71e2d53db9feb14bcace4431eade59', class: "content-expander", part: "content", role: "region" }, h("slot", { key: '8ce73094b72304c98807f4c1c1f9109652925444' })))))));
43
49
  }
44
50
  static get is() { return "mds-accordion-timer-item"; }
45
51
  static get encapsulation() { return "shadow"; }
@@ -191,6 +197,27 @@ export class MdsAccordionTimerItem {
191
197
  }
192
198
  }
193
199
  }
200
+ }, {
201
+ "method": "selectEvent",
202
+ "name": "mdsAccordionTimerItemSelect",
203
+ "bubbles": true,
204
+ "cancelable": true,
205
+ "composed": true,
206
+ "docs": {
207
+ "tags": [],
208
+ "text": "Emits when the accordion is changed from code"
209
+ },
210
+ "complexType": {
211
+ "original": "MdsAccordionTimerItemEventDetail",
212
+ "resolved": "MdsAccordionTimerItemEventDetail",
213
+ "references": {
214
+ "MdsAccordionTimerItemEventDetail": {
215
+ "location": "import",
216
+ "path": "./meta/event-detail",
217
+ "id": "src/components/mds-accordion-timer-item/meta/event-detail.ts::MdsAccordionTimerItemEventDetail"
218
+ }
219
+ }
220
+ }
194
221
  }, {
195
222
  "method": "selectedMouseEnterEvent",
196
223
  "name": "mdsAccordionTimerItemMouseEnterSelect",
@@ -235,4 +262,10 @@ export class MdsAccordionTimerItem {
235
262
  }
236
263
  }];
237
264
  }
265
+ static get watchers() {
266
+ return [{
267
+ "propName": "selected",
268
+ "methodName": "handleSelected"
269
+ }];
270
+ }
238
271
  }
@@ -4,6 +4,7 @@ const buttonVariantDictionary = [
4
4
  'info',
5
5
  'light',
6
6
  'primary',
7
+ 'secondary',
7
8
  'success',
8
9
  'warning',
9
10
  ];
@@ -70,6 +70,15 @@ const toneVariantDictionary = [
70
70
  'ghost',
71
71
  'quiet',
72
72
  ];
73
+ const themeVariantChipDictionary = [
74
+ 'primary',
75
+ 'secondary',
76
+ 'dark',
77
+ 'error',
78
+ 'info',
79
+ 'success',
80
+ 'warning',
81
+ ];
73
82
  const toneActionVariantDictionary = [
74
83
  'primary',
75
84
  'secondary',
@@ -92,4 +101,4 @@ const toneMinimalVariantDictionary = [
92
101
  'strong',
93
102
  'weak',
94
103
  ];
95
- export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
104
+ export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, themeVariantChipDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };