@maggioli-design-system/mds-accordion-timer-item 3.2.0 → 3.3.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 (55) hide show
  1. package/dist/cjs/{index-6fcb2864.js → index-2bd6b4fb.js} +166 -32
  2. package/dist/cjs/loader.cjs.js +2 -11
  3. package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +1 -1
  4. package/dist/cjs/mds-accordion-timer-item.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +3 -3
  6. package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +12 -5
  7. package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.e2e.js +10 -0
  8. package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +3 -3
  9. package/dist/collection/dictionary/icon.js +2 -2
  10. package/dist/components/index.d.ts +5 -3
  11. package/dist/components/index.js +1 -2
  12. package/dist/components/mds-accordion-timer-item.js +1 -1
  13. package/dist/documentation.d.ts +361 -88
  14. package/dist/documentation.json +93 -7
  15. package/dist/esm/{index-5d57a2db.js → index-a4aa99a4.js} +166 -32
  16. package/dist/esm/loader.js +3 -12
  17. package/dist/esm/mds-accordion-timer-item.entry.js +1 -1
  18. package/dist/esm/mds-accordion-timer-item.js +3 -3
  19. package/dist/esm-es5/index-a4aa99a4.js +2 -0
  20. package/dist/esm-es5/loader.js +1 -1
  21. package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
  22. package/dist/esm-es5/mds-accordion-timer-item.js +1 -1
  23. package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -1
  24. package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -6
  25. package/dist/mds-accordion-timer-item/p-8e2cd0f7.system.js +2 -0
  26. package/dist/mds-accordion-timer-item/p-a47cd642.js +2 -0
  27. package/dist/mds-accordion-timer-item/{p-ebd2fb5b.entry.js → p-b907655e.entry.js} +1 -1
  28. package/dist/mds-accordion-timer-item/{p-88f9bd3a.system.entry.js → p-e42fe386.system.entry.js} +1 -1
  29. package/dist/mds-accordion-timer-item/{p-8f6dc424.system.js → p-e5216d89.system.js} +1 -1
  30. package/dist/stats.json +57 -41
  31. package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +3 -0
  32. package/dist/types/components.d.ts +2 -0
  33. package/dist/types/stencil-public-runtime.d.ts +32 -17
  34. package/documentation.json +423 -7
  35. package/loader/index.d.ts +2 -2
  36. package/package.json +5 -5
  37. package/readme.md +7 -0
  38. package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx +4 -0
  39. package/src/components/mds-accordion-timer-item/readme.md +7 -0
  40. package/src/components.d.ts +2 -0
  41. package/src/fixtures/icons.json +20 -0
  42. package/src/fixtures/iconsauce.json +19 -0
  43. package/www/build/mds-accordion-timer-item.esm.js +1 -1
  44. package/www/build/mds-accordion-timer-item.js +2 -6
  45. package/www/build/p-8e2cd0f7.system.js +2 -0
  46. package/www/build/p-a47cd642.js +2 -0
  47. package/www/build/{p-ebd2fb5b.entry.js → p-b907655e.entry.js} +1 -1
  48. package/www/build/{p-88f9bd3a.system.entry.js → p-e42fe386.system.entry.js} +1 -1
  49. package/www/build/{p-8f6dc424.system.js → p-e5216d89.system.js} +1 -1
  50. package/dist/esm/polyfills/css-shim.js +0 -1
  51. package/dist/esm-es5/index-5d57a2db.js +0 -2
  52. package/dist/mds-accordion-timer-item/p-0df2a96d.system.js +0 -2
  53. package/dist/mds-accordion-timer-item/p-96e23db0.js +0 -2
  54. package/www/build/p-0df2a96d.system.js +0 -2
  55. package/www/build/p-96e23db0.js +0 -2
@@ -58,6 +58,13 @@ const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
58
58
  */
59
59
  const EMPTY_OBJ = {};
60
60
  const isDef = (v) => v != null;
61
+ /**
62
+ * Check whether a value is a 'complex type', defined here as an object or a
63
+ * function.
64
+ *
65
+ * @param o the value to check
66
+ * @returns whether it's a complex type or not
67
+ */
61
68
  const isComplexType = (o) => {
62
69
  // https://jsperf.com/typeof-fn-object/5
63
70
  o = typeof o;
@@ -114,6 +121,7 @@ const h = (nodeName, vnodeData, ...children) => {
114
121
  };
115
122
  walk(children);
116
123
  if (vnodeData) {
124
+ // normalize class / className attributes
117
125
  {
118
126
  const classData = vnodeData.className || vnodeData.class;
119
127
  if (classData) {
@@ -252,9 +260,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
252
260
  }
253
261
  styles.set(scopeId, style);
254
262
  };
255
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
263
+ const addStyle = (styleContainerNode, cmpMeta, mode) => {
256
264
  var _a;
257
- let scopeId = getScopeId(cmpMeta);
265
+ const scopeId = getScopeId(cmpMeta);
258
266
  const style = styles.get(scopeId);
259
267
  // if an element is NOT connected then getRootNode() will return the wrong root node
260
268
  // so the fallback is to always use the document for the root node in those cases
@@ -269,10 +277,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
269
277
  }
270
278
  if (!appliedStyles.has(scopeId)) {
271
279
  {
272
- {
273
- styleElm = doc.createElement('style');
274
- styleElm.innerHTML = style;
275
- }
280
+ styleElm = doc.createElement('style');
281
+ styleElm.innerHTML = style;
276
282
  // Apply CSP nonce to the style tag if it exists
277
283
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
278
284
  if (nonce != null) {
@@ -319,6 +325,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
319
325
  *
320
326
  * Modified for Stencil's compiler and vdom
321
327
  */
328
+ /**
329
+ * When running a VDom render set properties present on a VDom node onto the
330
+ * corresponding HTML element.
331
+ *
332
+ * Note that this function has special functionality for the `class`,
333
+ * `style`, `key`, and `ref` attributes, as well as event handlers (like
334
+ * `onClick`, etc). All others are just passed through as-is.
335
+ *
336
+ * @param elm the HTMLElement onto which attributes should be set
337
+ * @param memberName the name of the attribute to set
338
+ * @param oldValue the old value for the attribute
339
+ * @param newValue the new value for the attribute
340
+ * @param isSvg whether we're in an svg context or not
341
+ * @param flags bitflags for Vdom variables
342
+ */
322
343
  const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
323
344
  if (oldValue !== newValue) {
324
345
  let isProp = isMemberInElement(elm, memberName);
@@ -517,15 +538,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
517
538
  * @param vnodes a list of virtual DOM nodes to remove
518
539
  * @param startIdx the index at which to start removing nodes (inclusive)
519
540
  * @param endIdx the index at which to stop removing nodes (inclusive)
520
- * @param vnode a VNode
521
- * @param elm an element
522
541
  */
523
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
524
- for (; startIdx <= endIdx; ++startIdx) {
525
- if ((vnode = vnodes[startIdx])) {
526
- elm = vnode.$elm$;
527
- // remove the vnode's element from the dom
528
- elm.remove();
542
+ const removeVnodes = (vnodes, startIdx, endIdx) => {
543
+ for (let index = startIdx; index <= endIdx; ++index) {
544
+ const vnode = vnodes[index];
545
+ if (vnode) {
546
+ const elm = vnode.$elm$;
547
+ if (elm) {
548
+ // remove the vnode's element from the dom
549
+ elm.remove();
550
+ }
529
551
  }
530
552
  }
531
553
  };
@@ -787,17 +809,44 @@ const patch = (oldVNode, newVNode) => {
787
809
  * @param hostRef data needed to root and render the virtual DOM tree, such as
788
810
  * the DOM node into which it should be rendered.
789
811
  * @param renderFnResults the virtual DOM nodes to be rendered
812
+ * @param isInitialLoad whether or not this is the first call after page load
790
813
  */
791
- const renderVdom = (hostRef, renderFnResults) => {
814
+ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
792
815
  const hostElm = hostRef.$hostElement$;
793
816
  const cmpMeta = hostRef.$cmpMeta$;
794
817
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
818
+ // if `renderFnResults` is a Host node then we can use it directly. If not,
819
+ // we need to call `h` again to wrap the children of our component in a
820
+ // 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
821
+ // implicitly that the top-level vdom node is 1) an only child and 2)
822
+ // contains attrs that need to be set on the host element.
795
823
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
796
824
  hostTagName = hostElm.tagName;
797
825
  if (cmpMeta.$attrsToReflect$) {
798
826
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
799
827
  cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
800
828
  }
829
+ // On the first render and *only* on the first render we want to check for
830
+ // any attributes set on the host element which are also set on the vdom
831
+ // node. If we find them, we override the value on the VDom node attrs with
832
+ // the value from the host element, which allows developers building apps
833
+ // with Stencil components to override e.g. the `role` attribute on a
834
+ // component even if it's already set on the `Host`.
835
+ if (isInitialLoad && rootVnode.$attrs$) {
836
+ for (const key of Object.keys(rootVnode.$attrs$)) {
837
+ // We have a special implementation in `setAccessor` for `style` and
838
+ // `class` which reconciles values coming from the VDom with values
839
+ // already present on the DOM element, so we don't want to override those
840
+ // attributes on the VDom tree with values from the host element if they
841
+ // are present.
842
+ //
843
+ // Likewise, `ref` and `key` are special internal values for the Stencil
844
+ // runtime and we don't want to override those either.
845
+ if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
846
+ rootVnode.$attrs$[key] = hostElm[key];
847
+ }
848
+ }
849
+ }
801
850
  rootVnode.$tag$ = null;
802
851
  rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
803
852
  hostRef.$vnode$ = rootVnode;
@@ -828,15 +877,76 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
828
877
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
829
878
  return writeTask(dispatch) ;
830
879
  };
880
+ /**
881
+ * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
882
+ * component lifecycle methods like `componentWillLoad` as well as
883
+ * {@link updateComponent}, which will kick off the virtual DOM re-render.
884
+ *
885
+ * @param hostRef a reference to a host DOM node
886
+ * @param isInitialLoad whether we're on the initial load or not
887
+ * @returns an empty Promise which is used to enqueue a series of operations for
888
+ * the component
889
+ */
831
890
  const dispatchHooks = (hostRef, isInitialLoad) => {
832
891
  const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
833
892
  const instance = hostRef.$lazyInstance$ ;
834
- let promise;
893
+ // We're going to use this variable together with `enqueue` to implement a
894
+ // little promise-based queue. We start out with it `undefined`. When we add
895
+ // the first function to the queue we'll set this variable to be that
896
+ // function's return value. When we attempt to add subsequent values to the
897
+ // queue we'll check that value and, if it was a `Promise`, we'll then chain
898
+ // the new function off of that `Promise` using `.then()`. This will give our
899
+ // queue two nice properties:
900
+ //
901
+ // 1. If all functions added to the queue are synchronous they'll be called
902
+ // synchronously right away.
903
+ // 2. If all functions added to the queue are asynchronous they'll all be
904
+ // called in order after `dispatchHooks` exits.
905
+ let maybePromise;
835
906
  endSchedule();
836
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
907
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
837
908
  };
909
+ /**
910
+ * This function uses a Promise to implement a simple first-in, first-out queue
911
+ * of functions to be called.
912
+ *
913
+ * The queue is ordered on the basis of the first argument. If it's
914
+ * `undefined`, then nothing is on the queue yet, so the provided function can
915
+ * be called synchronously (although note that this function may return a
916
+ * `Promise`). The idea is that then the return value of that enqueueing
917
+ * operation is kept around, so that if it was a `Promise` then subsequent
918
+ * functions can be enqueued by calling this function again with that `Promise`
919
+ * as the first argument.
920
+ *
921
+ * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
922
+ * @param fn a function to enqueue
923
+ * @returns either a `Promise` or the return value of the provided function
924
+ */
925
+ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
926
+ /**
927
+ * Check that a value is a `Promise`. To check, we first see if the value is an
928
+ * instance of the `Promise` global. In a few circumstances, in particular if
929
+ * the global has been overwritten, this is could be misleading, so we also do
930
+ * a little 'duck typing' check to see if the `.then` property of the value is
931
+ * defined and a function.
932
+ *
933
+ * @param maybePromise it might be a promise!
934
+ * @returns whether it is or not
935
+ */
936
+ const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
937
+ (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
938
+ /**
939
+ * Update a component given reference to its host elements and so on.
940
+ *
941
+ * @param hostRef an object containing references to the element's host node,
942
+ * VDom nodes, and other metadata
943
+ * @param instance a reference to the underlying host element where it will be
944
+ * rendered
945
+ * @param isInitialLoad whether or not this function is being called as part of
946
+ * the first render cycle
947
+ */
838
948
  const updateComponent = async (hostRef, instance, isInitialLoad) => {
839
- // updateComponent
949
+ var _a;
840
950
  const elm = hostRef.$hostElement$;
841
951
  const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
842
952
  const rc = elm['s-rc'];
@@ -846,7 +956,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
846
956
  }
847
957
  const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
848
958
  {
849
- callRender(hostRef, instance);
959
+ callRender(hostRef, instance, elm, isInitialLoad);
850
960
  }
851
961
  if (rc) {
852
962
  // ok, so turns out there are some child host elements
@@ -858,7 +968,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
858
968
  endRender();
859
969
  endUpdate();
860
970
  {
861
- const childrenPromises = elm['s-p'];
971
+ const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
862
972
  const postUpdate = () => postUpdateComponent(hostRef);
863
973
  if (childrenPromises.length === 0) {
864
974
  postUpdate();
@@ -870,7 +980,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
870
980
  }
871
981
  }
872
982
  };
873
- const callRender = (hostRef, instance, elm) => {
983
+ /**
984
+ * Handle making the call to the VDom renderer with the proper context given
985
+ * various build variables
986
+ *
987
+ * @param hostRef an object containing references to the element's host node,
988
+ * VDom nodes, and other metadata
989
+ * @param instance a reference to the underlying host element where it will be
990
+ * rendered
991
+ * @param elm the Host element for the component
992
+ * @param isInitialLoad whether or not this function is being called as part of
993
+ * @returns an empty promise
994
+ */
995
+ const callRender = (hostRef, instance, elm, isInitialLoad) => {
874
996
  try {
875
997
  instance = instance.render() ;
876
998
  {
@@ -885,7 +1007,7 @@ const callRender = (hostRef, instance, elm) => {
885
1007
  // or we need to update the css class/attrs on the host element
886
1008
  // DOM WRITE!
887
1009
  {
888
- renderVdom(hostRef, instance);
1010
+ renderVdom(hostRef, instance, isInitialLoad);
889
1011
  }
890
1012
  }
891
1013
  }
@@ -941,9 +1063,6 @@ const appDidLoad = (who) => {
941
1063
  }
942
1064
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
943
1065
  };
944
- const then = (promise, thenFn) => {
945
- return promise && promise.then ? promise.then(thenFn) : thenFn();
946
- };
947
1066
  const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
948
1067
  ;
949
1068
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
@@ -1030,12 +1149,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1030
1149
  // customElements.define('my-component', MyComponent);
1031
1150
  // </script>
1032
1151
  // ```
1033
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1152
+ // In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
1034
1153
  // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1035
1154
  // to the value that was set inline i.e. "some-value" from above example. When
1036
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1155
+ // the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
1037
1156
  //
1038
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1157
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
1039
1158
  // by connectedCallback as this attributeChangedCallback will not fire.
1040
1159
  //
1041
1160
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
@@ -1077,9 +1196,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1077
1196
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1078
1197
  // initializeComponent
1079
1198
  if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1199
+ // Let the runtime know that the component has been initialized
1200
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1080
1201
  {
1081
- // we haven't initialized this element yet
1082
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1083
1202
  // lazy loaded components
1084
1203
  // request the component's implementation to be
1085
1204
  // wired up with the host element
@@ -1143,6 +1262,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1143
1262
  schedule();
1144
1263
  }
1145
1264
  };
1265
+ const fireConnectedCallback = (instance) => {
1266
+ };
1146
1267
  const connectedCallback = (elm) => {
1147
1268
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1148
1269
  const hostRef = getHostRef(elm);
@@ -1181,12 +1302,25 @@ const connectedCallback = (elm) => {
1181
1302
  initializeComponent(elm, hostRef, cmpMeta);
1182
1303
  }
1183
1304
  }
1305
+ else {
1306
+ // fire off connectedCallback() on component instance
1307
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1308
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1309
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1310
+ }
1311
+ }
1184
1312
  endConnected();
1185
1313
  }
1186
1314
  };
1187
- const disconnectedCallback = (elm) => {
1315
+ const disconnectInstance = (instance) => {
1316
+ };
1317
+ const disconnectedCallback = async (elm) => {
1188
1318
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1189
- getHostRef(elm);
1319
+ const hostRef = getHostRef(elm);
1320
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1321
+ else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1322
+ hostRef.$onReadyPromise$.then(() => disconnectInstance());
1323
+ }
1190
1324
  }
1191
1325
  };
1192
1326
  const bootstrapLazy = (lazyBundles, options = {}) => {
@@ -2,20 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6fcb2864.js');
6
-
7
- /*
8
- Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
9
- */
10
- const patchEsm = () => {
11
- return index.promiseResolve();
12
- };
5
+ const index = require('./index-2bd6b4fb.js');
13
6
 
14
7
  const defineCustomElements = (win, options) => {
15
- if (typeof window === 'undefined') return Promise.resolve();
16
- return patchEsm().then(() => {
8
+ if (typeof window === 'undefined') return undefined;
17
9
  return index.bootstrapLazy([["mds-accordion-timer-item.cjs",[[1,"mds-accordion-timer-item",{"typography":[1],"selected":[516],"description":[1],"progress":[2],"uuid":[2]}]]]], options);
18
- });
19
10
  };
20
11
 
21
12
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6fcb2864.js');
5
+ const index = require('./index-2bd6b4fb.js');
6
6
 
7
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);position:relative;display:grid;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)))}.row{display:-ms-flexbox;display:flex;gap:1rem}.accordion{display:grid}.progress-bar{-ms-flex-negative:0;flex-shrink:0;--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)}.action{cursor:pointer;border-radius:0.75rem;border-style:none;background-color:transparent;padding:0px;text-align:left}:host([selected]) .action{cursor:auto}.contents{display:grid;min-height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);grid-template-rows:0fr;-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
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6fcb2864.js');
5
+ const index = require('./index-2bd6b4fb.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.2.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));
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "entries": [
3
- "./components/mds-accordion-timer-item/mds-accordion-timer-item.js"
3
+ "components/mds-accordion-timer-item/mds-accordion-timer-item.js"
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "2.22.3",
8
- "typescriptVersion": "4.9.4"
7
+ "version": "4.2.1",
8
+ "typescriptVersion": "5.1.6"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []
@@ -1,4 +1,7 @@
1
- import { Host, h } from '@stencil/core';
1
+ import { Host, h } from "@stencil/core";
2
+ /**
3
+ * @slot default - Add contents like `text string`, `HTML elements` or `components` to this slot.
4
+ */
2
5
  export class MdsAccordionTimerItem {
3
6
  constructor() {
4
7
  /**
@@ -55,7 +58,8 @@ export class MdsAccordionTimerItem {
55
58
  "references": {
56
59
  "TypographyTitleType": {
57
60
  "location": "import",
58
- "path": "@type/typography"
61
+ "path": "@type/typography",
62
+ "id": "src/type/typography.ts::TypographyTitleType"
59
63
  }
60
64
  }
61
65
  },
@@ -159,7 +163,8 @@ export class MdsAccordionTimerItem {
159
163
  "references": {
160
164
  "MdsAccordionTimerItemEventDetail": {
161
165
  "location": "import",
162
- "path": "./meta/event-detail"
166
+ "path": "./meta/event-detail",
167
+ "id": "src/components/mds-accordion-timer-item/meta/event-detail.ts::MdsAccordionTimerItemEventDetail"
163
168
  }
164
169
  }
165
170
  }
@@ -179,7 +184,8 @@ export class MdsAccordionTimerItem {
179
184
  "references": {
180
185
  "MdsAccordionTimerItemEventDetail": {
181
186
  "location": "import",
182
- "path": "./meta/event-detail"
187
+ "path": "./meta/event-detail",
188
+ "id": "src/components/mds-accordion-timer-item/meta/event-detail.ts::MdsAccordionTimerItemEventDetail"
183
189
  }
184
190
  }
185
191
  }
@@ -199,7 +205,8 @@ export class MdsAccordionTimerItem {
199
205
  "references": {
200
206
  "MdsAccordionTimerItemEventDetail": {
201
207
  "location": "import",
202
- "path": "./meta/event-detail"
208
+ "path": "./meta/event-detail",
209
+ "id": "src/components/mds-accordion-timer-item/meta/event-detail.ts::MdsAccordionTimerItemEventDetail"
203
210
  }
204
211
  }
205
212
  }
@@ -0,0 +1,10 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('mds-accordion-timer-item', () => {
3
+ it('renders', async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent('<mds-accordion-timer-item></mds-accordion-timer-item>');
6
+ const element = await page.find('mds-accordion-timer-item');
7
+ expect(element).toHaveAttribute('hydrated');
8
+ expect(true).toBe(true);
9
+ });
10
+ });
@@ -1,6 +1,6 @@
1
- import { typographyReadDictionary } from '@dictionary/typography';
2
- import { h } from '@stencil/core';
3
- import { lokiDisabled } from '@test/loki-disabled';
1
+ import { typographyReadDictionary } from "../../../dictionary/typography";
2
+ import { h } from "@stencil/core";
3
+ import { lokiDisabled } from "@test/loki-disabled";
4
4
  export default {
5
5
  title: 'UI / Accordion Timer / Accordion Timer Item',
6
6
  argTypes: {
@@ -1,5 +1,5 @@
1
- import jsonIconsDictionary from '../fixtures/icons.json';
2
- import jsonMggIconsDictionary from '../fixtures/iconsauce.json';
1
+ import jsonIconsDictionary from "../fixtures/icons.json";
2
+ import jsonMggIconsDictionary from "../fixtures/iconsauce.json";
3
3
  const iconsDictionary = jsonIconsDictionary;
4
4
  const mggIconsDictionary = jsonMggIconsDictionary;
5
5
  export { iconsDictionary, mggIconsDictionary, };
@@ -1,5 +1,8 @@
1
- /* MdsAccordionTimerItem custom elements */
2
- export { MdsAccordionTimerItem as MdsAccordionTimerItem } from '../types/components/mds-accordion-timer-item/mds-accordion-timer-item';
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
3
6
 
4
7
  /**
5
8
  * Used to manually set the base path where assets can be found.
@@ -28,4 +31,3 @@ export interface SetPlatformOptions {
28
31
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
29
32
  }
30
33
  export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
31
- export * from '../types/components';
@@ -1,2 +1 @@
1
- export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
- export { MdsAccordionTimerItem, defineCustomElement as defineCustomElementMdsAccordionTimerItem } from './mds-accordion-timer-item.js';
1
+ export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
 
3
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);position:relative;display:grid;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)))}.row{display:-ms-flexbox;display:flex;gap:1rem}.accordion{display:grid}.progress-bar{-ms-flex-negative:0;flex-shrink:0;--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)}.action{cursor:pointer;border-radius:0.75rem;border-style:none;background-color:transparent;padding:0px;text-align:left}:host([selected]) .action{cursor:auto}.contents{display:grid;min-height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);grid-template-rows:0fr;-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
- const MdsAccordionTimerItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
5
+ const MdsAccordionTimerItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionTimerItem extends HTMLElement {
6
6
  constructor() {
7
7
  super();
8
8
  this.__registerHost();