@maggioli-design-system/mds-accordion-timer 3.2.1 → 3.4.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-b99075ba.js → index-0863c401.js} +152 -35
- package/dist/cjs/loader.cjs.js +2 -11
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer.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/mds-accordion-timer.css +14 -0
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +4 -1
- package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.e2e.js +10 -0
- package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.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.js +2 -2
- package/dist/documentation.d.ts +361 -88
- package/dist/documentation.json +55 -8
- package/dist/esm/{index-bd689d6a.js → index-3fd8fd3d.js} +152 -35
- package/dist/esm/loader.js +3 -12
- package/dist/esm/mds-accordion-timer.entry.js +2 -2
- package/dist/esm/mds-accordion-timer.js +3 -3
- package/dist/esm-es5/index-3fd8fd3d.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.js +1 -1
- package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -1
- package/dist/mds-accordion-timer/mds-accordion-timer.js +2 -6
- package/dist/mds-accordion-timer/p-0cc9df19.system.js +2 -0
- package/dist/mds-accordion-timer/p-1bc788d2.system.js +1 -0
- package/dist/mds-accordion-timer/{p-1442acbc.entry.js → p-5046d553.entry.js} +1 -1
- package/dist/mds-accordion-timer/p-65172843.system.entry.js +1 -0
- package/dist/mds-accordion-timer/p-d1be03fa.js +2 -0
- package/dist/stats.json +75 -39
- package/dist/types/common/unit.d.ts +2 -0
- package/dist/types/components/mds-accordion-timer/mds-accordion-timer.d.ts +3 -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 +396 -8
- package/loader/index.d.ts +2 -2
- package/package.json +4 -4
- package/readme.md +18 -0
- package/src/common/unit.ts +14 -0
- package/src/components/mds-accordion-timer/mds-accordion-timer.css +14 -0
- package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +4 -0
- package/src/components/mds-accordion-timer/readme.md +18 -0
- package/src/components/mds-accordion-timer/test/mds-accordion-timer.stories.tsx +1 -1
- 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.esm.js +1 -1
- package/www/build/mds-accordion-timer.js +2 -6
- package/www/build/p-0cc9df19.system.js +2 -0
- package/www/build/p-1bc788d2.system.js +1 -0
- package/www/build/{p-1442acbc.entry.js → p-5046d553.entry.js} +1 -1
- package/www/build/p-65172843.system.entry.js +1 -0
- package/www/build/p-d1be03fa.js +2 -0
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm-es5/index-bd689d6a.js +0 -2
- package/dist/mds-accordion-timer/p-5029b85d.system.js +0 -2
- package/dist/mds-accordion-timer/p-53e5fa07.system.entry.js +0 -1
- package/dist/mds-accordion-timer/p-5e09eed0.system.js +0 -1
- package/dist/mds-accordion-timer/p-a7b74010.js +0 -2
- package/src/components/mds-accordion-timer/test/mds-accordion-timer.spec.tsx +0 -19
- package/www/build/p-5029b85d.system.js +0 -2
- package/www/build/p-53e5fa07.system.entry.js +0 -1
- package/www/build/p-5e09eed0.system.js +0 -1
- package/www/build/p-a7b74010.js +0 -2
|
@@ -49,6 +49,13 @@ const uniqueTime = (key, measureText) => {
|
|
|
49
49
|
};
|
|
50
50
|
const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
|
|
51
51
|
const isDef = (v) => v != null;
|
|
52
|
+
/**
|
|
53
|
+
* Check whether a value is a 'complex type', defined here as an object or a
|
|
54
|
+
* function.
|
|
55
|
+
*
|
|
56
|
+
* @param o the value to check
|
|
57
|
+
* @returns whether it's a complex type or not
|
|
58
|
+
*/
|
|
52
59
|
const isComplexType = (o) => {
|
|
53
60
|
// https://jsperf.com/typeof-fn-object/5
|
|
54
61
|
o = typeof o;
|
|
@@ -217,9 +224,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
217
224
|
}
|
|
218
225
|
styles.set(scopeId, style);
|
|
219
226
|
};
|
|
220
|
-
const addStyle = (styleContainerNode, cmpMeta, mode
|
|
227
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
221
228
|
var _a;
|
|
222
|
-
|
|
229
|
+
const scopeId = getScopeId(cmpMeta);
|
|
223
230
|
const style = styles.get(scopeId);
|
|
224
231
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
225
232
|
// so the fallback is to always use the document for the root node in those cases
|
|
@@ -234,10 +241,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
234
241
|
}
|
|
235
242
|
if (!appliedStyles.has(scopeId)) {
|
|
236
243
|
{
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
styleElm.innerHTML = style;
|
|
240
|
-
}
|
|
244
|
+
styleElm = doc.createElement('style');
|
|
245
|
+
styleElm.innerHTML = style;
|
|
241
246
|
// Apply CSP nonce to the style tag if it exists
|
|
242
247
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
243
248
|
if (nonce != null) {
|
|
@@ -355,15 +360,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
355
360
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
356
361
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
357
362
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
358
|
-
* @param vnode a VNode
|
|
359
|
-
* @param elm an element
|
|
360
363
|
*/
|
|
361
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
362
|
-
for (
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
elm
|
|
364
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
365
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
366
|
+
const vnode = vnodes[index];
|
|
367
|
+
if (vnode) {
|
|
368
|
+
const elm = vnode.$elm$;
|
|
369
|
+
if (elm) {
|
|
370
|
+
// remove the vnode's element from the dom
|
|
371
|
+
elm.remove();
|
|
372
|
+
}
|
|
367
373
|
}
|
|
368
374
|
}
|
|
369
375
|
};
|
|
@@ -603,12 +609,39 @@ const patch = (oldVNode, newVNode) => {
|
|
|
603
609
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
604
610
|
* the DOM node into which it should be rendered.
|
|
605
611
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
612
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
606
613
|
*/
|
|
607
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
614
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
608
615
|
const hostElm = hostRef.$hostElement$;
|
|
609
616
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
617
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
618
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
619
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
620
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
621
|
+
// contains attrs that need to be set on the host element.
|
|
610
622
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
611
623
|
hostTagName = hostElm.tagName;
|
|
624
|
+
// On the first render and *only* on the first render we want to check for
|
|
625
|
+
// any attributes set on the host element which are also set on the vdom
|
|
626
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
627
|
+
// the value from the host element, which allows developers building apps
|
|
628
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
629
|
+
// component even if it's already set on the `Host`.
|
|
630
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
631
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
632
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
633
|
+
// `class` which reconciles values coming from the VDom with values
|
|
634
|
+
// already present on the DOM element, so we don't want to override those
|
|
635
|
+
// attributes on the VDom tree with values from the host element if they
|
|
636
|
+
// are present.
|
|
637
|
+
//
|
|
638
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
639
|
+
// runtime and we don't want to override those either.
|
|
640
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
641
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
612
645
|
rootVnode.$tag$ = null;
|
|
613
646
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
614
647
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -639,24 +672,85 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
639
672
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
640
673
|
return writeTask(dispatch) ;
|
|
641
674
|
};
|
|
675
|
+
/**
|
|
676
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
677
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
678
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
679
|
+
*
|
|
680
|
+
* @param hostRef a reference to a host DOM node
|
|
681
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
682
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
683
|
+
* the component
|
|
684
|
+
*/
|
|
642
685
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
643
686
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
644
687
|
const instance = hostRef.$lazyInstance$ ;
|
|
645
|
-
|
|
688
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
689
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
690
|
+
// the first function to the queue we'll set this variable to be that
|
|
691
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
692
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
693
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
694
|
+
// queue two nice properties:
|
|
695
|
+
//
|
|
696
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
697
|
+
// synchronously right away.
|
|
698
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
699
|
+
// called in order after `dispatchHooks` exits.
|
|
700
|
+
let maybePromise;
|
|
646
701
|
if (isInitialLoad) {
|
|
647
702
|
{
|
|
648
703
|
hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
|
|
649
704
|
if (hostRef.$queuedListeners$) {
|
|
650
705
|
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
651
|
-
hostRef.$queuedListeners$ =
|
|
706
|
+
hostRef.$queuedListeners$ = undefined;
|
|
652
707
|
}
|
|
653
708
|
}
|
|
654
709
|
}
|
|
655
710
|
endSchedule();
|
|
656
|
-
return
|
|
711
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
657
712
|
};
|
|
713
|
+
/**
|
|
714
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
715
|
+
* of functions to be called.
|
|
716
|
+
*
|
|
717
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
718
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
719
|
+
* be called synchronously (although note that this function may return a
|
|
720
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
721
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
722
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
723
|
+
* as the first argument.
|
|
724
|
+
*
|
|
725
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
726
|
+
* @param fn a function to enqueue
|
|
727
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
728
|
+
*/
|
|
729
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
730
|
+
/**
|
|
731
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
|
732
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
|
733
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
|
734
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
|
735
|
+
* defined and a function.
|
|
736
|
+
*
|
|
737
|
+
* @param maybePromise it might be a promise!
|
|
738
|
+
* @returns whether it is or not
|
|
739
|
+
*/
|
|
740
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
741
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
742
|
+
/**
|
|
743
|
+
* Update a component given reference to its host elements and so on.
|
|
744
|
+
*
|
|
745
|
+
* @param hostRef an object containing references to the element's host node,
|
|
746
|
+
* VDom nodes, and other metadata
|
|
747
|
+
* @param instance a reference to the underlying host element where it will be
|
|
748
|
+
* rendered
|
|
749
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
750
|
+
* the first render cycle
|
|
751
|
+
*/
|
|
658
752
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
659
|
-
|
|
753
|
+
var _a;
|
|
660
754
|
const elm = hostRef.$hostElement$;
|
|
661
755
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
662
756
|
const rc = elm['s-rc'];
|
|
@@ -666,7 +760,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
666
760
|
}
|
|
667
761
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
668
762
|
{
|
|
669
|
-
callRender(hostRef, instance);
|
|
763
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
670
764
|
}
|
|
671
765
|
if (rc) {
|
|
672
766
|
// ok, so turns out there are some child host elements
|
|
@@ -678,7 +772,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
678
772
|
endRender();
|
|
679
773
|
endUpdate();
|
|
680
774
|
{
|
|
681
|
-
const childrenPromises = elm['s-p'];
|
|
775
|
+
const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
|
|
682
776
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
683
777
|
if (childrenPromises.length === 0) {
|
|
684
778
|
postUpdate();
|
|
@@ -690,7 +784,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
690
784
|
}
|
|
691
785
|
}
|
|
692
786
|
};
|
|
693
|
-
|
|
787
|
+
/**
|
|
788
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
789
|
+
* various build variables
|
|
790
|
+
*
|
|
791
|
+
* @param hostRef an object containing references to the element's host node,
|
|
792
|
+
* VDom nodes, and other metadata
|
|
793
|
+
* @param instance a reference to the underlying host element where it will be
|
|
794
|
+
* rendered
|
|
795
|
+
* @param elm the Host element for the component
|
|
796
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
797
|
+
* @returns an empty promise
|
|
798
|
+
*/
|
|
799
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
694
800
|
try {
|
|
695
801
|
instance = instance.render() ;
|
|
696
802
|
{
|
|
@@ -705,7 +811,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
705
811
|
// or we need to update the css class/attrs on the host element
|
|
706
812
|
// DOM WRITE!
|
|
707
813
|
{
|
|
708
|
-
renderVdom(hostRef, instance);
|
|
814
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
709
815
|
}
|
|
710
816
|
}
|
|
711
817
|
}
|
|
@@ -776,9 +882,6 @@ const safeCall = (instance, method, arg) => {
|
|
|
776
882
|
}
|
|
777
883
|
return undefined;
|
|
778
884
|
};
|
|
779
|
-
const then = (promise, thenFn) => {
|
|
780
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
781
|
-
};
|
|
782
885
|
const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
|
|
783
886
|
;
|
|
784
887
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -865,12 +968,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
865
968
|
// customElements.define('my-component', MyComponent);
|
|
866
969
|
// </script>
|
|
867
970
|
// ```
|
|
868
|
-
// In this case if we do not
|
|
971
|
+
// In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
|
|
869
972
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
870
973
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
871
|
-
// the connectedCallback attempts to
|
|
974
|
+
// the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
|
|
872
975
|
//
|
|
873
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/
|
|
976
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
|
|
874
977
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
875
978
|
//
|
|
876
979
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
@@ -909,9 +1012,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
909
1012
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
910
1013
|
// initializeComponent
|
|
911
1014
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1015
|
+
// Let the runtime know that the component has been initialized
|
|
1016
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
912
1017
|
{
|
|
913
|
-
// we haven't initialized this element yet
|
|
914
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
915
1018
|
// lazy loaded components
|
|
916
1019
|
// request the component's implementation to be
|
|
917
1020
|
// wired up with the host element
|
|
@@ -975,6 +1078,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
975
1078
|
schedule();
|
|
976
1079
|
}
|
|
977
1080
|
};
|
|
1081
|
+
const fireConnectedCallback = (instance) => {
|
|
1082
|
+
};
|
|
978
1083
|
const connectedCallback = (elm) => {
|
|
979
1084
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
980
1085
|
const hostRef = getHostRef(elm);
|
|
@@ -1018,22 +1123,34 @@ const connectedCallback = (elm) => {
|
|
|
1018
1123
|
// reattach any event listeners to the host
|
|
1019
1124
|
// since they would have been removed when disconnected
|
|
1020
1125
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1126
|
+
// fire off connectedCallback() on component instance
|
|
1127
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1128
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1129
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1130
|
+
}
|
|
1021
1131
|
}
|
|
1022
1132
|
endConnected();
|
|
1023
1133
|
}
|
|
1024
1134
|
};
|
|
1025
|
-
const
|
|
1135
|
+
const disconnectInstance = (instance) => {
|
|
1136
|
+
{
|
|
1137
|
+
safeCall(instance, 'disconnectedCallback');
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
const disconnectedCallback = async (elm) => {
|
|
1026
1141
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1027
1142
|
const hostRef = getHostRef(elm);
|
|
1028
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1029
1143
|
{
|
|
1030
1144
|
if (hostRef.$rmListeners$) {
|
|
1031
1145
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1032
1146
|
hostRef.$rmListeners$ = undefined;
|
|
1033
1147
|
}
|
|
1034
1148
|
}
|
|
1035
|
-
{
|
|
1036
|
-
|
|
1149
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
1150
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1151
|
+
}
|
|
1152
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1153
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1037
1154
|
}
|
|
1038
1155
|
}
|
|
1039
1156
|
};
|
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-0863c401.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.cjs",[[1,"mds-accordion-timer",{"duration":[2],"time":[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickActive"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]]]]]], 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-0863c401.js');
|
|
6
6
|
|
|
7
|
-
const mdsAccordionTimerCss = ":host{display:block}";
|
|
7
|
+
const mdsAccordionTimerCss = ":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";
|
|
8
8
|
|
|
9
9
|
const MdsAccordionTimer = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -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-0863c401.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.cjs.js', document.baseURI).href));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"
|
|
3
|
+
"components/mds-accordion-timer/mds-accordion-timer.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, };
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected
|
|
3
|
+
* @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected
|
|
4
|
+
* @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item
|
|
5
|
+
* @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item
|
|
6
|
+
* @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item
|
|
7
|
+
*/
|
|
8
|
+
|
|
1
9
|
:host {
|
|
10
|
+
|
|
11
|
+
--mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));
|
|
12
|
+
--mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));
|
|
13
|
+
--mds-accordion-timer-progress-bar-thickness: 0.25rem;
|
|
14
|
+
--mds-accordion-timer-duration: 500ms;
|
|
15
|
+
|
|
2
16
|
display: block;
|
|
3
17
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('mds-accordion-timer', () => {
|
|
3
|
+
it('renders', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent('<mds-accordion-timer></mds-accordion-timer>');
|
|
6
|
+
const element = await page.find('mds-accordion-timer');
|
|
7
|
+
expect(element).toHaveAttribute('hydrated');
|
|
8
|
+
expect(true).toBe(true);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { lokiDisabled } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { lokiDisabled } from "@test/loki-disabled";
|
|
3
3
|
export default {
|
|
4
4
|
title: 'UI / Accordion Timer',
|
|
5
5
|
argTypes: {
|
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
},
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
|
-
const Template = args => h("div", null, h("mds-accordion-timer", Object.assign({}, args), h("mds-accordion-timer-item", { description: "Blipbug" }, h("mds-text", null, "Blipbug presenta delle fattezze riconducibili agli insetti nello stadio pre-crisalide. Il suo corpo si sviluppa in lunghezza, ed \u00E8 formato principalmente da tre parti: la sua grande testa, il suo collo (molto simile ad un collare), e il corpo vero e proprio. La prima di queste \u00E8 suddivisa in una parte color crema e una parte color denim; dello stesso colore sono le appenidici a forma di \"V\" che si trovano sopra e ai lati della testa. I suoi occhi sono enormi e grigi, ed hanno delle sottilissime sopracciglia sopra di essi. Il suo \"collare\", anch'esso color denim, presenta delle \"setole\" giallo sabbia, con le quali percepisce i segnali esterni: stesso colore si presenta nel segmento centrale della sua parte inferiore, dove sono presenti un primo paio di zampe crema. Il segmento superiore del corpo \u00E8 bianco e ospita delle zampe anteriori color crema, ed infine, la parte finale, o la \"coda\", \u00E8 color denim e finisce con un'appendice a \"V\" un po' pi\u00FA grossa.")), h("mds-accordion-timer-item", { description: "Drednaw" }, h("mds-text", null, "Drednaw \u00E8 un Pok\u00E9mon quadrupede simile ad una tartaruga alligatore. Il corpo \u00E8 principalmente di colore turchese cos\u00EC come le zampe cilindriche e tozze, le quali terminano con tre unghie allungate e bianche. Sulle zampe anteriori, circa sulla loro met\u00E0, spuntanto delle protuberanze simili a scaglie di roccia color marroncino, ricorrenti anche nel resto del corpo: ad esempio, sul muso c'\u00E8 una protuberanza a zig-zag che ospita le sue narici; sulla coda sono alternate delle scaglie e attorno al guscio c'\u00E8 una cornice dello stesso colore; anche le placche superiori sembrano essere fatte di roccia, ma sono di un colore marrone scuro, invece che chiaro. Queste parti rocciose sembrano essere frastagliate, per niente levigate. Il suo volto presenta occhi bassi e imbronciati, con delle guance arancioni e sporgenti ed una bocca a zig-zag, la cui parte inferiore \u00E8 simile al beige, colore presente anche nelle placche del guscio inferiori, che stavolta fanno vedere la pelle a volte grinzosa del Pok\u00E9mon (in particolare attorno al collo e sulle zampe). Le sue scaglie di roccia sono spesso rivolte verso di dietro, dando l'idea di una roccia grezza e non liscia e lavorata.")), h("mds-accordion-timer-item", { description: "Orbeetle" }, h("mds-text", null, "Orbeetle presenta aspetti comuni ad una coccinella ormai matura. Il suo corpo si sviluppa attorno al guscio che \u00E8 di forma semisferica ed \u00E8 metallizzato in grigio (lo si pu\u00F2 vedere in particolare dalla parte inferiore di esso): la sua scocca \u00E8 rossa, con dei pois denim sopra di essa; \u00E8 bisezionata per permettere di aprirsi e attaccare con degli strani poteri. All'estremit\u00E0 del taglio intermedio \u00E8 incastonato il volto di Orbeetle, il quale presenta delle guance bianche con occhi imbronciati celesti, aventi sclere concentriche; sopra di essi ci sono due lunghe sopracciglia dorate a forma di \"V\" e ad incorniciare la faccia del Pok\u00E9mon \u00E8 una cornice grigia, che finisce, con delle striature, sul naso dello stesso. La bocca, assieme alle ginocchia e alla pancia, \u00E8 rossa. Il suo corpo \u00E8 piccolo ed \u00E8 costituito da una vita stretta con una bacino largo, da dove si sviluppano due cosce secche ed esili per poi finire con appuntiti gambali dorati; le sue braccia sono magre e biforcute, come se avessero artigli.")), h("mds-accordion-timer-item", { description: "Dottler" }, h("mds-text", null, "Dottler pu\u00F2 essere considerato la \"crisalide\" della linea evolutiva di Blipbug, vista la sua forma e il suo comportamento. Presenta un guscio di forma poligonale (molto simile a quella di un radar Doppler o di un radome) di color giallo sabbia, con dei pois blu scuro sugli spigoli; leggermente in basso \u00E8 presente la sua faccia di color arancione chiaro, sulla quale ci sono degli occhi celesti attorniati da un contorno arancione, da linee sottili e nere e da delle appendici blu simili a quelle dei Blipbug. Il Pok\u00E9mon non sembra essere dedito a muoversi se non fosse per le quattro zampette blu scuro su cui cammina.")), h("mds-accordion-timer-item", { description: "Centiskorch" }, h("mds-text", null, "Con l'evoluzione Sizzlipede diventa pi\u00F9 aggressivo, soprattutto grazie alla sua stazza pi\u00F9 grande e al suo enorme potenziale. Il corpo diventa pi\u00F9 lungo e si \"seziona\" in dodici parti, anche qui un'estremit\u00E0 \u00E8 la \"coda\" e l'altra \u00E8 la testa, queste due parti, assieme all'intera parte inferiore del corpo sono del rosso mattone presente nella sua pre-evo, mentre le \"parti\" comprese tra la coda e la testa restano marroni/bordeaux; questa volte, dello stesso colore della \"schiena\" sono le zampe, le quali son diventate pi\u00F9 minacciose e uncinate, questa volta sono dieci per ogni lato; marrone/bordeaux sono anche delle tenaglie. presenti in paia, sulla coda e sulla testa; su queste estremit\u00E0 son presenti quattro sbuffi o \"baffi\" di fuoco. Sulla testa \u00E8 presente un simbolo arancione chiaro a forma di punto esclamativo; stessa gamma cromatica \u00E8 presente nei segni circolari situati nella zona inferiore del corpo, i quali son formati, per\u00F2, anche da un anello e da un cerchio, pi\u00F9 interno, di colore giallo sabbia; non sono altro che i punti che Sizzlipede riscalda per attaccare e scottare le prede. I suoi occhi sono giallo elettrico con pupille triangolari color marrone e rovesciati."))));
|
|
12
|
+
const Template = args => h("div", null, h("mds-accordion-timer", Object.assign({}, args), h("mds-accordion-timer-item", { selected: true, description: "Blipbug" }, h("mds-text", null, "Blipbug presenta delle fattezze riconducibili agli insetti nello stadio pre-crisalide. Il suo corpo si sviluppa in lunghezza, ed \u00E8 formato principalmente da tre parti: la sua grande testa, il suo collo (molto simile ad un collare), e il corpo vero e proprio. La prima di queste \u00E8 suddivisa in una parte color crema e una parte color denim; dello stesso colore sono le appenidici a forma di \"V\" che si trovano sopra e ai lati della testa. I suoi occhi sono enormi e grigi, ed hanno delle sottilissime sopracciglia sopra di essi. Il suo \"collare\", anch'esso color denim, presenta delle \"setole\" giallo sabbia, con le quali percepisce i segnali esterni: stesso colore si presenta nel segmento centrale della sua parte inferiore, dove sono presenti un primo paio di zampe crema. Il segmento superiore del corpo \u00E8 bianco e ospita delle zampe anteriori color crema, ed infine, la parte finale, o la \"coda\", \u00E8 color denim e finisce con un'appendice a \"V\" un po' pi\u00FA grossa.")), h("mds-accordion-timer-item", { description: "Drednaw" }, h("mds-text", null, "Drednaw \u00E8 un Pok\u00E9mon quadrupede simile ad una tartaruga alligatore. Il corpo \u00E8 principalmente di colore turchese cos\u00EC come le zampe cilindriche e tozze, le quali terminano con tre unghie allungate e bianche. Sulle zampe anteriori, circa sulla loro met\u00E0, spuntanto delle protuberanze simili a scaglie di roccia color marroncino, ricorrenti anche nel resto del corpo: ad esempio, sul muso c'\u00E8 una protuberanza a zig-zag che ospita le sue narici; sulla coda sono alternate delle scaglie e attorno al guscio c'\u00E8 una cornice dello stesso colore; anche le placche superiori sembrano essere fatte di roccia, ma sono di un colore marrone scuro, invece che chiaro. Queste parti rocciose sembrano essere frastagliate, per niente levigate. Il suo volto presenta occhi bassi e imbronciati, con delle guance arancioni e sporgenti ed una bocca a zig-zag, la cui parte inferiore \u00E8 simile al beige, colore presente anche nelle placche del guscio inferiori, che stavolta fanno vedere la pelle a volte grinzosa del Pok\u00E9mon (in particolare attorno al collo e sulle zampe). Le sue scaglie di roccia sono spesso rivolte verso di dietro, dando l'idea di una roccia grezza e non liscia e lavorata.")), h("mds-accordion-timer-item", { description: "Orbeetle" }, h("mds-text", null, "Orbeetle presenta aspetti comuni ad una coccinella ormai matura. Il suo corpo si sviluppa attorno al guscio che \u00E8 di forma semisferica ed \u00E8 metallizzato in grigio (lo si pu\u00F2 vedere in particolare dalla parte inferiore di esso): la sua scocca \u00E8 rossa, con dei pois denim sopra di essa; \u00E8 bisezionata per permettere di aprirsi e attaccare con degli strani poteri. All'estremit\u00E0 del taglio intermedio \u00E8 incastonato il volto di Orbeetle, il quale presenta delle guance bianche con occhi imbronciati celesti, aventi sclere concentriche; sopra di essi ci sono due lunghe sopracciglia dorate a forma di \"V\" e ad incorniciare la faccia del Pok\u00E9mon \u00E8 una cornice grigia, che finisce, con delle striature, sul naso dello stesso. La bocca, assieme alle ginocchia e alla pancia, \u00E8 rossa. Il suo corpo \u00E8 piccolo ed \u00E8 costituito da una vita stretta con una bacino largo, da dove si sviluppano due cosce secche ed esili per poi finire con appuntiti gambali dorati; le sue braccia sono magre e biforcute, come se avessero artigli.")), h("mds-accordion-timer-item", { description: "Dottler" }, h("mds-text", null, "Dottler pu\u00F2 essere considerato la \"crisalide\" della linea evolutiva di Blipbug, vista la sua forma e il suo comportamento. Presenta un guscio di forma poligonale (molto simile a quella di un radar Doppler o di un radome) di color giallo sabbia, con dei pois blu scuro sugli spigoli; leggermente in basso \u00E8 presente la sua faccia di color arancione chiaro, sulla quale ci sono degli occhi celesti attorniati da un contorno arancione, da linee sottili e nere e da delle appendici blu simili a quelle dei Blipbug. Il Pok\u00E9mon non sembra essere dedito a muoversi se non fosse per le quattro zampette blu scuro su cui cammina.")), h("mds-accordion-timer-item", { description: "Centiskorch" }, h("mds-text", null, "Con l'evoluzione Sizzlipede diventa pi\u00F9 aggressivo, soprattutto grazie alla sua stazza pi\u00F9 grande e al suo enorme potenziale. Il corpo diventa pi\u00F9 lungo e si \"seziona\" in dodici parti, anche qui un'estremit\u00E0 \u00E8 la \"coda\" e l'altra \u00E8 la testa, queste due parti, assieme all'intera parte inferiore del corpo sono del rosso mattone presente nella sua pre-evo, mentre le \"parti\" comprese tra la coda e la testa restano marroni/bordeaux; questa volte, dello stesso colore della \"schiena\" sono le zampe, le quali son diventate pi\u00F9 minacciose e uncinate, questa volta sono dieci per ogni lato; marrone/bordeaux sono anche delle tenaglie. presenti in paia, sulla coda e sulla testa; su queste estremit\u00E0 son presenti quattro sbuffi o \"baffi\" di fuoco. Sulla testa \u00E8 presente un simbolo arancione chiaro a forma di punto esclamativo; stessa gamma cromatica \u00E8 presente nei segni circolari situati nella zona inferiore del corpo, i quali son formati, per\u00F2, anche da un anello e da un cerchio, pi\u00F9 interno, di colore giallo sabbia; non sono altro che i punti che Sizzlipede riscalda per attaccare e scottare le prede. I suoi occhi sono giallo elettrico con pupille triangolari color marrone e rovesciati."))));
|
|
13
13
|
export const Default = Template.bind({});
|
|
14
14
|
Default.story = lokiDisabled;
|
|
15
15
|
export const Duration = Template.bind({});
|
|
@@ -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, };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
-
export { MdsAccordionTimer, defineCustomElement as defineCustomElementMdsAccordionTimer } from './mds-accordion-timer.js';
|
|
1
|
+
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const mdsAccordionTimerCss = ":host{display:block}";
|
|
3
|
+
const mdsAccordionTimerCss = ":host{--mds-accordion-timer-progress-bar-color:rgb(var(--tone-neutral-03));--mds-accordion-timer-progress-bar-background:rgb(var(--tone-neutral-08));--mds-accordion-timer-progress-bar-thickness:0.25rem;--mds-accordion-timer-duration:500ms;display:block}";
|
|
4
4
|
|
|
5
|
-
const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
5
|
+
const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionTimer extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
this.__registerHost();
|