@maggioli-design-system/mds-accordion-timer-item 3.1.1 → 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.
- package/dist/cjs/{index-6fcb2864.js → index-2bd6b4fb.js} +166 -32
- package/dist/cjs/loader.cjs.js +2 -11
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion-timer-item.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/common/unit.js +10 -0
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +21 -16
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +13 -6
- package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.e2e.js +10 -0
- package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +3 -3
- package/dist/collection/dictionary/button.js +5 -1
- package/dist/collection/dictionary/icon.js +2 -2
- package/dist/collection/dictionary/variant.js +9 -1
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.js +1 -2
- package/dist/components/mds-accordion-timer-item.js +3 -3
- package/dist/documentation.d.ts +361 -88
- package/dist/documentation.json +98 -7
- package/dist/esm/{index-5d57a2db.js → index-a4aa99a4.js} +166 -32
- package/dist/esm/loader.js +3 -12
- package/dist/esm/mds-accordion-timer-item.entry.js +3 -3
- package/dist/esm/mds-accordion-timer-item.js +3 -3
- package/dist/esm-es5/index-a4aa99a4.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -6
- package/dist/mds-accordion-timer-item/p-8e2cd0f7.system.js +2 -0
- package/dist/mds-accordion-timer-item/p-a47cd642.js +2 -0
- package/dist/mds-accordion-timer-item/p-b907655e.entry.js +1 -0
- package/dist/mds-accordion-timer-item/p-e42fe386.system.entry.js +1 -0
- package/dist/mds-accordion-timer-item/{p-8f6dc424.system.js → p-e5216d89.system.js} +1 -1
- package/dist/stats.json +69 -46
- package/dist/types/common/unit.d.ts +2 -0
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +3 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +32 -17
- package/dist/types/type/button.d.ts +1 -0
- package/dist/types/type/variant.d.ts +1 -0
- package/documentation.json +428 -7
- package/loader/index.d.ts +2 -2
- package/package.json +5 -5
- package/readme.md +8 -0
- package/src/common/unit.ts +14 -0
- package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.css +23 -14
- package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx +12 -6
- package/src/components/mds-accordion-timer-item/readme.md +8 -0
- package/src/components.d.ts +2 -0
- package/src/dictionary/button.ts +7 -1
- package/src/dictionary/variant.ts +10 -0
- package/src/fixtures/icons.json +39 -0
- package/src/fixtures/iconsauce.json +38 -0
- package/src/type/button.ts +4 -0
- package/src/type/variant.ts +9 -0
- package/www/build/mds-accordion-timer-item.esm.js +1 -1
- package/www/build/mds-accordion-timer-item.js +2 -6
- package/www/build/p-8e2cd0f7.system.js +2 -0
- package/www/build/p-a47cd642.js +2 -0
- package/www/build/p-b907655e.entry.js +1 -0
- package/www/build/p-e42fe386.system.entry.js +1 -0
- package/www/build/{p-8f6dc424.system.js → p-e5216d89.system.js} +1 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm-es5/index-5d57a2db.js +0 -2
- package/dist/mds-accordion-timer-item/p-0028ae1e.entry.js +0 -1
- package/dist/mds-accordion-timer-item/p-0df2a96d.system.js +0 -2
- package/dist/mds-accordion-timer-item/p-73c9c07c.system.entry.js +0 -1
- package/dist/mds-accordion-timer-item/p-96e23db0.js +0 -2
- package/src/components/mds-accordion-timer-item/test/mds-accordion-timer-item.spec.tsx +0 -19
- package/www/build/p-0028ae1e.entry.js +0 -1
- package/www/build/p-0df2a96d.system.js +0 -2
- package/www/build/p-73c9c07c.system.entry.js +0 -1
- 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
|
|
263
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
256
264
|
var _a;
|
|
257
|
-
|
|
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
|
-
|
|
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
|
|
524
|
-
for (
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
elm
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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/
|
|
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
|
|
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 = {}) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,20 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
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
|
|
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,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2bd6b4fb.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:rgb(var(--tone-neutral-03));--mds-accordion-timer-item-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-item-progress-bar-thickness:0.25rem;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;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-
|
|
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
|
|
|
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("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 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)))))));
|
|
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-
|
|
5
|
+
const index = require('./index-2bd6b4fb.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser
|
|
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
|
-
"
|
|
3
|
+
"components/mds-accordion-timer-item/mds-accordion-timer-item.js"
|
|
4
4
|
],
|
|
5
5
|
"compiler": {
|
|
6
6
|
"name": "@stencil/core",
|
|
7
|
-
"version": "2.
|
|
8
|
-
"typescriptVersion": "
|
|
7
|
+
"version": "4.2.1",
|
|
8
|
+
"typescriptVersion": "5.1.6"
|
|
9
9
|
},
|
|
10
10
|
"collections": [],
|
|
11
11
|
"bundles": []
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const cssDurationToMilliseconds = (duration, defaultValue = 1000) => {
|
|
2
|
+
if (duration.includes('s')) {
|
|
3
|
+
return Number(duration.replace('s', '')) * 1000;
|
|
4
|
+
}
|
|
5
|
+
if (duration.includes('ms')) {
|
|
6
|
+
return Number(duration.replace('s', ''));
|
|
7
|
+
}
|
|
8
|
+
return defaultValue;
|
|
9
|
+
};
|
|
10
|
+
export { cssDurationToMilliseconds, };
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
.focus-on,
|
|
18
18
|
.focusable-light:focus-visible,
|
|
19
19
|
.focusable:focus-visible {
|
|
20
|
+
|
|
20
21
|
--magma-outline-blur-offset: var(--magma-outline-focus-offset);
|
|
21
22
|
--magma-outline-blur: var(--magma-outline-focus);
|
|
22
23
|
}
|
|
@@ -46,17 +47,19 @@
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
+
*/
|
|
54
56
|
|
|
55
57
|
:host {
|
|
56
58
|
|
|
57
|
-
--mds-accordion-timer-item-progress-bar-color: rgb(var(--tone-neutral-03));
|
|
58
|
-
--mds-accordion-timer-item-progress-bar-background: rgb(var(--tone-neutral-08));
|
|
59
|
-
--mds-accordion-timer-item-progress-bar-thickness: 0.25rem;
|
|
59
|
+
--mds-accordion-timer-item-progress-bar-color: var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));
|
|
60
|
+
--mds-accordion-timer-item-progress-bar-background: var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));
|
|
61
|
+
--mds-accordion-timer-item-progress-bar-thickness: var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);
|
|
62
|
+
--mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 500ms);
|
|
60
63
|
position: relative;
|
|
61
64
|
display: grid;
|
|
62
65
|
padding-top: 1rem;
|
|
@@ -114,7 +117,7 @@
|
|
|
114
117
|
|
|
115
118
|
display: grid;
|
|
116
119
|
|
|
117
|
-
height: 0px;
|
|
120
|
+
min-height: 0px;
|
|
118
121
|
|
|
119
122
|
gap: 1rem;
|
|
120
123
|
|
|
@@ -124,20 +127,22 @@
|
|
|
124
127
|
|
|
125
128
|
opacity: 0;
|
|
126
129
|
|
|
127
|
-
transition-
|
|
128
|
-
|
|
129
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
130
|
+
transition-timing-function: cubic-bezier(1, 0, 0, 1);
|
|
130
131
|
|
|
131
|
-
|
|
132
|
+
grid-template-rows: 0fr;
|
|
133
|
+
transition-duration: var(--mds-accordion-timer-item-duration);
|
|
134
|
+
transition-property: grid-template-rows opacity padding;
|
|
135
|
+
}
|
|
132
136
|
|
|
133
|
-
|
|
137
|
+
.contents-expander {
|
|
138
|
+
min-height: 0;
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
:host( [selected] ) .contents{
|
|
137
142
|
|
|
138
|
-
height: auto;
|
|
139
|
-
|
|
140
143
|
padding-top: 1rem;
|
|
141
144
|
|
|
142
145
|
opacity: 1;
|
|
146
|
+
|
|
147
|
+
grid-template-rows: 1fr;
|
|
143
148
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Host, h } from
|
|
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
|
/**
|
|
@@ -30,7 +33,7 @@ export class MdsAccordionTimerItem {
|
|
|
30
33
|
}
|
|
31
34
|
render() {
|
|
32
35
|
var _a;
|
|
33
|
-
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("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 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)))))));
|
|
34
37
|
}
|
|
35
38
|
static get is() { return "mds-accordion-timer-item"; }
|
|
36
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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
|
}
|
package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.e2e.js
ADDED
|
@@ -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
|
+
});
|
package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { typographyReadDictionary } from
|
|
2
|
-
import { h } from
|
|
3
|
-
import { lokiDisabled } from
|
|
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: {
|
|
@@ -13,6 +13,10 @@ const buttonToneVariantDictionary = [
|
|
|
13
13
|
'ghost',
|
|
14
14
|
'quiet',
|
|
15
15
|
];
|
|
16
|
+
const buttonTargetDictionary = [
|
|
17
|
+
'blank',
|
|
18
|
+
'self',
|
|
19
|
+
];
|
|
16
20
|
const buttonSizeDictionary = [
|
|
17
21
|
'sm',
|
|
18
22
|
'md',
|
|
@@ -23,4 +27,4 @@ const buttonIconPositionDictionary = [
|
|
|
23
27
|
'left',
|
|
24
28
|
'right',
|
|
25
29
|
];
|
|
26
|
-
export { buttonSizeDictionary, buttonToneVariantDictionary, buttonVariantDictionary,
|
|
30
|
+
export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonVariantDictionary, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import jsonIconsDictionary from
|
|
2
|
-
import jsonMggIconsDictionary from
|
|
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, };
|
|
@@ -53,6 +53,14 @@ const toneVariantDictionary = [
|
|
|
53
53
|
'ghost',
|
|
54
54
|
'quiet',
|
|
55
55
|
];
|
|
56
|
+
const toneActionVariantDictionary = [
|
|
57
|
+
'primary',
|
|
58
|
+
'secondary',
|
|
59
|
+
'tertiary',
|
|
60
|
+
'strong',
|
|
61
|
+
'weak',
|
|
62
|
+
'quiet',
|
|
63
|
+
];
|
|
56
64
|
const toneSimpleVariantDictionary = [
|
|
57
65
|
'strong',
|
|
58
66
|
'weak',
|
|
@@ -62,4 +70,4 @@ const toneMinimalVariantDictionary = [
|
|
|
62
70
|
'strong',
|
|
63
71
|
'weak',
|
|
64
72
|
];
|
|
65
|
-
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|
|
73
|
+
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|