@maggioli-design-system/mds-accordion-timer 1.0.0 → 2.0.1
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-dc0bb58e.js → index-71ce67f9.js} +32 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion-timer.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +2 -2
- package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +25 -23
- package/dist/collection/dictionary/floating-ui.js +19 -0
- package/dist/collection/dictionary/icon.js +2 -2
- package/dist/collection/dictionary/typography.js +25 -3
- package/dist/collection/dictionary/variant.js +1 -0
- package/dist/collection/types/floating-ui.js +1 -0
- package/dist/{custom-elements → components}/index.d.ts +3 -26
- package/dist/components/index.js +2 -0
- package/dist/components/mds-accordion-timer.d.ts +11 -0
- package/dist/{custom-elements/index.js → components/mds-accordion-timer.js} +23 -18
- package/dist/esm/{index-468ab090.js → index-131803de.js} +32 -4
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-accordion-timer.entry.js +3 -3
- package/dist/esm/mds-accordion-timer.js +2 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm-es5/index-131803de.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 +1 -1
- package/dist/mds-accordion-timer/p-4f6d2878.entry.js +1 -0
- package/dist/mds-accordion-timer/{p-104355eb.system.entry.js → p-6384c515.system.entry.js} +1 -1
- package/dist/mds-accordion-timer/p-65dca5f5.system.js +2 -0
- package/dist/mds-accordion-timer/p-9bd89dcd.js +2 -0
- package/dist/mds-accordion-timer/{p-74539cca.system.js → p-b55643bd.system.js} +1 -1
- package/dist/stats.json +52 -42
- package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +15 -0
- package/dist/types/components.d.ts +5 -1
- package/dist/types/dictionary/floating-ui.d.ts +3 -0
- package/dist/types/dictionary/typography.d.ts +7 -3
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/types/floating-ui.d.ts +2 -0
- package/dist/types/types/typography.d.ts +7 -3
- package/dist/types/types/variant.d.ts +1 -1
- package/package.json +9 -7
- package/readme.md +1 -1
- package/src/components/mds-accordion-timer/.gitlab-ci.yml +25 -0
- package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +1 -1
- package/src/components/mds-accordion-timer/readme.md +1 -1
- package/src/components/mds-accordion-timer/test/mds-accordion-timer.e2e.ts +2 -1
- package/src/components/mds-accordion-timer/test/mds-accordion-timer.spec.tsx +8 -7
- package/src/components/mds-accordion-timer/test/mds-accordion-timer.stories.tsx +47 -0
- package/src/components.d.ts +5 -1
- package/src/dictionary/floating-ui.ts +25 -0
- package/src/dictionary/icon.ts +2 -2
- package/src/dictionary/typography.ts +34 -4
- package/src/dictionary/variant.ts +1 -0
- package/src/fixtures/icons.json +64 -0
- package/src/tailwind/components.css +14 -0
- package/src/types/floating-ui.ts +17 -0
- package/src/types/typography.ts +24 -2
- package/src/types/variant.ts +2 -1
- package/www/build/mds-accordion-timer.esm.js +1 -1
- package/www/build/mds-accordion-timer.js +1 -1
- package/www/build/p-4f6d2878.entry.js +1 -0
- package/www/build/{p-104355eb.system.entry.js → p-6384c515.system.entry.js} +1 -1
- package/www/build/p-65dca5f5.system.js +2 -0
- package/www/build/p-9bd89dcd.js +2 -0
- package/www/build/{p-74539cca.system.js → p-b55643bd.system.js} +1 -1
- package/dist/esm-es5/index-468ab090.js +0 -1
- package/dist/mds-accordion-timer/p-2c75936b.entry.js +0 -1
- package/dist/mds-accordion-timer/p-a652c8b3.system.js +0 -1
- package/dist/mds-accordion-timer/p-ac3fdd27.js +0 -1
- package/src/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +0 -32
- package/www/build/p-2c75936b.entry.js +0 -1
- package/www/build/p-a652c8b3.system.js +0 -1
- package/www/build/p-ac3fdd27.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function i(e){try{l(r["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):a(e.value).then(s,i)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];a=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};var NAMESPACE="mds-accordion-timer";var scopeId;var hostTagName;var queuePending=false;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructibleStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var addHostEventListeners=function(e,t,n,r){if(n){n.map((function(n){var r=n[0],a=n[1],o=n[2];var s=e;var i=hostListenerProxy(t,o);var l=hostListenerOpts(r);plt.ael(s,a,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(s,a,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}}catch(e){consoleError(e)}}};var hostListenerOpts=function(e){return(e&2)!==0};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,n){var r=styles.get(e);if(supportsConstructibleStylesheets&&n){r=r||new CSSStyleSheet;r.replace(t)}else{r=t}styles.set(e,r)};var addStyle=function(e,t,n,r){var a=getScopeId(t);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var s=rootAppliedStyles.get(e);var i=void 0;if(!s){rootAppliedStyles.set(e,s=new Set)}if(!s.has(a)){{{i=doc.createElement("style");i.innerHTML=o}e.insertBefore(i,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var o=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=o;n.classList.add(o+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var o=false;var s=false;var i=[];var l=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&s){i[i.length-1].$text$+=a}else{i.push(o?newVNode(null,a):a)}s=o}}};l(n);var u=newVNode(e,null);u.$attrs$=t;if(i.length>0){u.$children$=i}return u};var newVNode=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var createElm=function(e,t,n,r){var a=t.$children$[n];var o=0;var s;var i;{s=a.$elm$=doc.createElement(a.$tag$);if(isDef(scopeId)&&s["s-si"]!==scopeId){s.classList.add(s["s-si"]=scopeId)}if(a.$children$){for(o=0;o<a.$children$.length;++o){i=createElm(e,a,o);if(i){s.appendChild(i)}}}}return s};var addVnodes=function(e,t,n,r,a,o){var s=e;var i;if(s.shadowRoot&&s.tagName===hostTagName){s=s.shadowRoot}for(;a<=o;++a){if(r[a]){i=createElm(null,n,a);if(i){r[a].$elm$=i;s.insertBefore(i,t)}}}};var removeVnodes=function(e,t,n,r,a){for(;t<=n;++t){if(r=e[t]){a=r.$elm$;a.remove()}}};var updateChildren=function(e,t,n,r){var a=0;var o=0;var s=t.length-1;var i=t[0];var l=t[s];var u=r.length-1;var c=r[0];var f=r[u];var $;while(a<=s&&o<=u){if(i==null){i=t[++a]}else if(l==null){l=t[--s]}else if(c==null){c=r[++o]}else if(f==null){f=r[--u]}else if(isSameVnode(i,c)){patch(i,c);i=t[++a];c=r[++o]}else if(isSameVnode(l,f)){patch(l,f);l=t[--s];f=r[--u]}else if(isSameVnode(i,f)){patch(i,f);e.insertBefore(i.$elm$,l.$elm$.nextSibling);i=t[++a];f=r[--u]}else if(isSameVnode(l,c)){patch(l,c);e.insertBefore(l.$elm$,i.$elm$);l=t[--s];c=r[++o]}else{{$=createElm(t&&t[o],n,o);c=r[++o]}if($){{i.$elm$.parentNode.insertBefore($,i.$elm$)}}}}if(a>s){addVnodes(e,r[u+1]==null?null:r[u+1].$elm$,n,r,o,u)}else if(o>u){removeVnodes(t,a,s)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var patch=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;{if(r!==null&&a!==null){updateChildren(n,r,t,a)}else if(a!==null){addVnodes(n,null,t,a,0,a.length-1)}else if(r!==null){removeVnodes(r,0,r.length-1)}}};var renderVdom=function(e,t){var n=e.$hostElement$;var r=e.$vnode$||newVNode(null,null);var a=isHost(t)?t:h(null,null,t);hostTagName=n.tagName;a.$tag$=null;a.$flags$|=4;e.$vnode$=a;a.$elm$=r.$elm$=n.shadowRoot||n;{scopeId=n["s-sc"]}patch(r,a)};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,n){var r=getElement(e);return{emit:function(e){return emitEvent(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}};var emitEvent=function(e,t,n){var r=plt.ce(t,n);e.dispatchEvent(r);return r};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var n=function(){return dispatchHooks(e,t)};return writeTask(n)};var dispatchHooks=function(e,t){var n=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return safeCall(r,t,n)}));e.$queuedListeners$=null}}}n();return then(a,(function(){return updateComponent(e,r,t)}))};var updateComponent=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,a,o,s,i,l;return __generator(this,(function(u){r=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);o=r["s-rc"];if(n){attachStyles(e)}s=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(o){o.map((function(e){return e()}));r["s-rc"]=undefined}s();a();{i=r["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}return[2]}))}))};var callRender=function(e,t,n){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=createTime("postUpdate",t);var a=e.$lazyInstance$;var o=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(n)}{safeCall(a,"componentDidLoad")}r();{e.$onReadyResolve$(n);if(!o){appDidLoad()}}}else{r()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&2){return parseFloat(e)}return e}return e};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,n,r){var a=getHostRef(e);var o=a.$instanceValues$.get(t);var s=a.$flags$;var i=a.$lazyInstance$;n=parsePropertyValue(n,r.$members$[t][0]);var l=Number.isNaN(o)&&Number.isNaN(n);var u=n!==o&&!l;if((!(s&8)||o===undefined)&&u){a.$instanceValues$.set(t,n);if(i){if((s&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,n){if(t.$members$){var r=Object.entries(t.$members$);var a=e.prototype;r.map((function(e){var r=e[0],o=e[1][0];if(o&31||n&2&&o&32){Object.defineProperty(a,r,{get:function(){return getValue(this,r)},set:function(e){setValue(this,r,e,t)},configurable:true,enumerable:true})}}));if(n&1){var o=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;plt.jmp((function(){var t=o.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(a.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var t=e[0],n=e[1];var r=n[1]||t;o.set(r,t);return r}))}}return e};var initializeComponent=function(e,t,n,r,a){return __awaiter(void 0,void 0,void 0,(function(){var e,r,o,s,i,l,u;return __generator(this,(function(c){switch(c.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(n);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=c.sent();e();c.label=2;case 2:if(!a.isProxied){proxyComponent(a,n,2);a.isProxied=true}r=createTime("createInstance",n.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}r();fireConnectedCallback(t.$lazyInstance$);if(a.style){o=a.style;s=getScopeId(n);if(!styles.has(s)){i=createTime("registerStyles",n.$tagName$);registerStyle(s,o,!!(n.$flags$&1));i()}}c.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};var fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$cmpMeta$;var r=createTime("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{initializeComponent(e,t,n)}}else{addHostEventListeners(e,t,n.$listeners$);fireConnectedCallback(t.$lazyInstance$)}r()}};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}{safeCall(n,"disconnectedCallback")}}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var n=createTime();var r=[];var a=t.exclude||[];var o=win.customElements;var s=doc.head;var i=s.querySelector("meta[charset]");var l=doc.createElement("style");var u=[];var c;var f=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{n.$members$=t[2]}{n.$listeners$=t[3]}var s=n.$tagName$;var i=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;registerHost(t,n);if(n.$flags$&1){{{t.attachShadow({mode:"open"})}}}return r}t.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(f){u.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);n.$lazyBundleId$=e[0];if(!a.includes(s)&&!o.get(s)){r.push(s);o.define(s,proxyComponent(i,n,1))}}))}));{l.innerHTML=r+HYDRATED_CSS;l.setAttribute("data-styles","");s.insertBefore(l,i?i.nextSibling:s.firstChild)}f=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,n,t.$listeners$);return hostRefs.set(e,n)};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var o=cmpModules.get(a);if(o){return o[r]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[r]}),consoleError)};var styles=new Map;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(n){e.push(n);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-131803de.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],t)}))};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-131803de.js";var mdsAccordionTimerCss=":host{display:block}";var MdsAccordionTimer=function(){function e(e){var t=this;registerInstance(this,e);this.itemActivated=createEvent(this,"itemActivated",7);this.time=0;this.duration=1e4;this.clearIntervals=function(){window.clearInterval(t.timer);window.clearInterval(t.timeChecker);t.timer=null;t.timeChecker=null};this.progress=function(){return Math.abs(t.remainingTime()/t.duration-1)};this.addTimeListener=function(){t.timeChecker=window.setInterval((function(){var e=t.progress();if(t.activeItem!==undefined){t.activeItem.progress=e}if(e===1){t.activeItem.progress=0;t.startNext()}}),100)};this.beginningTime=function(){t.timeStarted=(new Date).getTime();return t.timeStarted};this.remainingTime=function(){var e=t.activeItemDurationTime-((new Date).getTime()-t.timeStarted);return e>=0?e:0};this.setActiveItem=function(e){t.children.forEach((function(i,n){if(n===e){i.active=true;t.activeItem=i;t.itemActivated.emit(e)}else{i.active=false}}))};this.startNext=function(){var e=t.activeItem.uuid+1>t.children.length-1?0:t.activeItem.uuid+1;t.setActiveItem(e);t.startTimer()};this.startTimer=function(){t.clearIntervals();t.time=t.beginningTime();t.activeItemDurationTime=t.duration;t.addTimeListener()};this.playTimer=function(){t.beginningTime();t.addTimeListener()};this.pauseTimer=function(){t.clearIntervals();t.activeItemDurationTime=t.remainingTime()};this.stopTimer=function(){t.clearIntervals();t.time=null}}e.prototype.componentDidLoad=function(){var e=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(t,i){t.uuid=i;if(t.active){e.activeItem=t}}))};e.prototype.connectedCallback=function(){this.startTimer()};e.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};e.prototype.onClickActive=function(e){if(e.detail===this.activeItem.description){return}var t;this.children.forEach((function(i){i.progress=0;if(i.description===e.detail){t=i.uuid}}));this.setActiveItem(t);this.startTimer();this.pauseTimer()};e.prototype.onMouseEnterActive=function(){this.pauseTimer()};e.prototype.onMouseLeaveActive=function(){if(this.timeChecker===null){this.playTimer()}};e.prototype.render=function(){return h(Host,null,h("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();MdsAccordionTimer.style=mdsAccordionTimerCss;export{MdsAccordionTimer as mds_accordion_timer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-131803de.js";var patchBrowser=function(){var e=import.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return promiseResolve(r)};patchBrowser().then((function(e){return bootstrapLazy([["mds-accordion-timer",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-
|
|
1
|
+
import{p as e,b as t}from"./p-9bd89dcd.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((e=>t([["p-4f6d2878",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)));
|
|
@@ -114,7 +114,7 @@ DOMTokenList
|
|
|
114
114
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
|
-
var url = new URL('./p-
|
|
117
|
+
var url = new URL('./p-b55643bd.system.js', new URL(resourcesUrl, window.location.origin));
|
|
118
118
|
System.import(url.href);
|
|
119
119
|
};
|
|
120
120
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as h,g as e}from"./p-9bd89dcd.js";const n=class{constructor(s){t(this,s),this.itemActivated=i(this,"itemActivated",7),this.time=0,this.duration=1e4,this.clearIntervals=()=>{window.clearInterval(this.timer),window.clearInterval(this.timeChecker),this.timer=null,this.timeChecker=null},this.progress=()=>Math.abs(this.remainingTime()/this.duration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.activeItem&&(this.activeItem.progress=t),1===t&&(this.activeItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.remainingTime=()=>{const t=this.activeItemDurationTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.setActiveItem=t=>{this.children.forEach(((i,s)=>{s===t?(i.active=!0,this.activeItem=i,this.itemActivated.emit(t)):i.active=!1}))},this.startNext=()=>{this.setActiveItem(this.activeItem.uuid+1>this.children.length-1?0:this.activeItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.activeItemDurationTime=this.duration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.activeItemDurationTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals(),this.time=null}}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,i)=>{t.uuid=i,t.active&&(this.activeItem=t)}))}connectedCallback(){this.startTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickActive(t){if(t.detail===this.activeItem.description)return;let i;this.children.forEach((s=>{s.progress=0,s.description===t.detail&&(i=s.uuid)})),this.setActiveItem(i),this.startTimer(),this.pauseTimer()}onMouseEnterActive(){this.pauseTimer()}onMouseLeaveActive(){null===this.timeChecker&&this.playTimer()}render(){return s(h,null,s("slot",null))}get element(){return e(this)}};n.style=":host{display:block}";export{n as mds_accordion_timer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-65dca5f5.system.js"],(function(t){"use strict";var e,i,n,r,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.H;c=t.g}],execute:function(){var a=":host{display:block}";var s=t("mds_accordion_timer",function(){function t(t){var n=this;e(this,t);this.itemActivated=i(this,"itemActivated",7);this.time=0;this.duration=1e4;this.clearIntervals=function(){window.clearInterval(n.timer);window.clearInterval(n.timeChecker);n.timer=null;n.timeChecker=null};this.progress=function(){return Math.abs(n.remainingTime()/n.duration-1)};this.addTimeListener=function(){n.timeChecker=window.setInterval((function(){var t=n.progress();if(n.activeItem!==undefined){n.activeItem.progress=t}if(t===1){n.activeItem.progress=0;n.startNext()}}),100)};this.beginningTime=function(){n.timeStarted=(new Date).getTime();return n.timeStarted};this.remainingTime=function(){var t=n.activeItemDurationTime-((new Date).getTime()-n.timeStarted);return t>=0?t:0};this.setActiveItem=function(t){n.children.forEach((function(e,i){if(i===t){e.active=true;n.activeItem=e;n.itemActivated.emit(t)}else{e.active=false}}))};this.startNext=function(){var t=n.activeItem.uuid+1>n.children.length-1?0:n.activeItem.uuid+1;n.setActiveItem(t);n.startTimer()};this.startTimer=function(){n.clearIntervals();n.time=n.beginningTime();n.activeItemDurationTime=n.duration;n.addTimeListener()};this.playTimer=function(){n.beginningTime();n.addTimeListener()};this.pauseTimer=function(){n.clearIntervals();n.activeItemDurationTime=n.remainingTime()};this.stopTimer=function(){n.clearIntervals();n.time=null}}t.prototype.componentDidLoad=function(){var t=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(e,i){e.uuid=i;if(e.active){t.activeItem=e}}))};t.prototype.connectedCallback=function(){this.startTimer()};t.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};t.prototype.onClickActive=function(t){if(t.detail===this.activeItem.description){return}var e;this.children.forEach((function(i){i.progress=0;if(i.description===t.detail){e=i.uuid}}));this.setActiveItem(e);this.startTimer();this.pauseTimer()};t.prototype.onMouseEnterActive=function(){this.pauseTimer()};t.prototype.onMouseLeaveActive=function(){if(this.timeChecker===null){this.playTimer()}};t.prototype.render=function(){return n(r,null,n("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return c(this)},enumerable:false,configurable:true});return t}());s.style=a}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(n,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r))e[r]=n[r]};return e(n,r)};return function(n,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,n,r,t){function a(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{l(t.next(e))}catch(e){i(e)}}function u(e){try{l(t["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,u)}l((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(n){return l([e,n])}}function l(o){if(t)throw new TypeError("Generator is already executing.");while(r)try{if(t=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e];a=0}finally{t=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,r){if(r||arguments.length===2)for(var t=0,a=n.length,i;t<a;t++){if(i||!(t in n)){if(!i)i=Array.prototype.slice.call(n,0,t);i[t]=n[t]}}return e.concat(i||Array.prototype.slice.call(n))};System.register([],(function(e,n){"use strict";return{execute:function(){var r=this;var t="mds-accordion-timer";var a;var i;var o=false;var u=typeof window!=="undefined"?window:{};var l=u.document||{head:{}};var s={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,n,r,t){return e.addEventListener(n,r,t)},rel:function(e,n,r,t){return e.removeEventListener(n,r,t)},ce:function(e,n){return new CustomEvent(e,n)}};var f=e("p",(function(e){return Promise.resolve(e)}));var c=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var $=function(e,n,r,t){if(r){r.map((function(r){var t=r[0],a=r[1],i=r[2];var o=e;var u=v(n,i);var l=d(t);s.ael(o,a,u,l);(n.$rmListeners$=n.$rmListeners$||[]).push((function(){return s.rel(o,a,u,l)}))}))}};var v=function(e,n){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[n](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([n,r])}}}catch(e){le(e)}}};var d=function(e){return(e&2)!==0};var p="{visibility:hidden}.hydrated{visibility:inherit}";var h=function(e,n){if(n===void 0){n=""}{return function(){return}}};var m=function(e,n){{return function(){return}}};var g=new WeakMap;var y=function(e,n,r){var t=ce.get(e);if(c&&r){t=t||new CSSStyleSheet;t.replace(n)}else{t=n}ce.set(e,t)};var b=function(e,n,r,t){var a=_(n);var i=ce.get(a);e=e.nodeType===11?e:l;if(i){if(typeof i==="string"){e=e.head||e;var o=g.get(e);var u=void 0;if(!o){g.set(e,o=new Set)}if(!o.has(a)){{{u=l.createElement("style");u.innerHTML=i}e.insertBefore(u,e.querySelector("link"))}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var w=function(e){var n=e.$cmpMeta$;var r=e.$hostElement$;var t=n.$flags$;var a=h("attachStyles",n.$tagName$);var i=b(r.shadowRoot?r.shadowRoot:r.getRootNode(),n);if(t&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var _=function(e,n){return"sc-"+e.$tagName$};var S=function(e){return e!=null};var R=function(e){e=typeof e;return e==="object"||e==="function"};var N=e("h",(function(e,n){var r=[];for(var t=2;t<arguments.length;t++){r[t-2]=arguments[t]}var a=null;var i=false;var o=false;var u=[];var l=function(n){for(var r=0;r<n.length;r++){a=n[r];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(i=typeof e!=="function"&&!R(a)){a=String(a)}if(i&&o){u[u.length-1].$text$+=a}else{u.push(i?L(null,a):a)}o=i}}};l(r);var s=L(e,null);s.$attrs$=n;if(u.length>0){s.$children$=u}return s}));var L=function(e,n){var r={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};return r};var C=e("H",{});var E=function(e){return e&&e.$tag$===C};var x=function(e,n,r,t){var i=n.$children$[r];var o=0;var u;var s;{u=i.$elm$=l.createElement(i.$tag$);if(S(a)&&u["s-si"]!==a){u.classList.add(u["s-si"]=a)}if(i.$children$){for(o=0;o<i.$children$.length;++o){s=x(e,i,o);if(s){u.appendChild(s)}}}}return u};var M=function(e,n,r,t,a,o){var u=e;var l;if(u.shadowRoot&&u.tagName===i){u=u.shadowRoot}for(;a<=o;++a){if(t[a]){l=x(null,r,a);if(l){t[a].$elm$=l;u.insertBefore(l,n)}}}};var k=function(e,n,r,t,a){for(;n<=r;++n){if(t=e[n]){a=t.$elm$;a.remove()}}};var P=function(e,n,r,t){var a=0;var i=0;var o=n.length-1;var u=n[0];var l=n[o];var s=t.length-1;var f=t[0];var c=t[s];var $;while(a<=o&&i<=s){if(u==null){u=n[++a]}else if(l==null){l=n[--o]}else if(f==null){f=t[++i]}else if(c==null){c=t[--s]}else if(j(u,f)){O(u,f);u=n[++a];f=t[++i]}else if(j(l,c)){O(l,c);l=n[--o];c=t[--s]}else if(j(u,c)){O(u,c);e.insertBefore(u.$elm$,l.$elm$.nextSibling);u=n[++a];c=t[--s]}else if(j(l,f)){O(l,f);e.insertBefore(l.$elm$,u.$elm$);l=n[--o];f=t[++i]}else{{$=x(n&&n[i],r,i);f=t[++i]}if($){{u.$elm$.parentNode.insertBefore($,u.$elm$)}}}}if(a>o){M(e,t[s+1]==null?null:t[s+1].$elm$,r,t,i,s)}else if(i>s){k(n,a,o)}};var j=function(e,n){if(e.$tag$===n.$tag$){return true}return false};var O=function(e,n){var r=n.$elm$=e.$elm$;var t=e.$children$;var a=n.$children$;{if(t!==null&&a!==null){P(r,t,n,a)}else if(a!==null){M(r,null,n,a,0,a.length-1)}else if(t!==null){k(t,0,t.length-1)}}};var A=function(e,n){var r=e.$hostElement$;var t=e.$vnode$||L(null,null);var o=E(n)?n:N(null,null,n);i=r.tagName;o.$tag$=null;o.$flags$|=4;e.$vnode$=o;o.$elm$=t.$elm$=r.shadowRoot||r;{a=r["s-sc"]}O(t,o)};var I=e("g",(function(e){return ie(e).$hostElement$}));var z=e("c",(function(e,n,r){var t=I(e);return{emit:function(e){return q(t,n,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}}));var q=function(e,n,r){var t=s.ce(n,r);e.dispatchEvent(t);return t};var B=function(e,n){if(n&&!e.$onRenderResolve$&&n["s-p"]){n["s-p"].push(new Promise((function(n){return e.$onRenderResolve$=n})))}};var T=function(e,n){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}B(e,e.$ancestorComponent$);var r=function(){return U(e,n)};return ge(r)};var U=function(e,n){var r=h("scheduleUpdate",e.$cmpMeta$.$tagName$);var t=e.$lazyInstance$;var a;if(n){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var n=e[0],r=e[1];return D(t,n,r)}));e.$queuedListeners$=null}}}r();return G(a,(function(){return H(e,t,n)}))};var H=function(e,n,t){return __awaiter(r,void 0,void 0,(function(){var r,a,i,o,u,l;return __generator(this,(function(s){r=e.$hostElement$;a=h("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(t){w(e)}o=h("render",e.$cmpMeta$.$tagName$);{V(e,n)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}o();a();{u=r["s-p"];l=function(){return F(e)};if(u.length===0){l()}else{Promise.all(u).then(l);e.$flags$|=4;u.length=0}}return[2]}))}))};var V=function(e,n,r){try{n=n.render();{e.$flags$&=~16}{e.$flags$|=2}{{{A(e,n)}}}}catch(n){le(n,e.$hostElement$)}return null};var F=function(e){var n=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var t=h("postUpdate",n);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{J(r)}{D(a,"componentDidLoad")}t();{e.$onReadyResolve$(r);if(!i){W()}}}else{t()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){me((function(){return T(e,false)}))}e.$flags$&=~(4|512)}};var W=function(e){{J(l.documentElement)}me((function(){return q(u,"appload",{detail:{namespace:t}})}))};var D=function(e,n,r){if(e&&e[n]){try{return e[n](r)}catch(e){le(e)}}return undefined};var G=function(e,n){return e&&e.then?e.then(n):n()};var J=function(e){return e.classList.add("hydrated")};var K=function(e,n){if(e!=null&&!R(e)){if(n&2){return parseFloat(e)}return e}return e};var Q=function(e,n){return ie(e).$instanceValues$.get(n)};var X=function(e,n,r,t){var a=ie(e);var i=a.$instanceValues$.get(n);var o=a.$flags$;var u=a.$lazyInstance$;r=K(r,t.$members$[n][0]);var l=Number.isNaN(i)&&Number.isNaN(r);var s=r!==i&&!l;if((!(o&8)||i===undefined)&&s){a.$instanceValues$.set(n,r);if(u){if((o&(2|16))===2){T(a,false)}}}};var Y=function(e,n,r){if(n.$members$){var t=Object.entries(n.$members$);var a=e.prototype;t.map((function(e){var t=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,t,{get:function(){return Q(this,t)},set:function(e){X(this,t,e,n)},configurable:true,enumerable:true})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,n,r){var t=this;s.jmp((function(){var n=i.get(e);if(t.hasOwnProperty(n)){r=t[n];delete t[n]}else if(a.hasOwnProperty(n)&&typeof t[n]==="number"&&t[n]==r){return}t[n]=r===null&&typeof t[n]==="boolean"?false:r}))};e.observedAttributes=t.filter((function(e){var n=e[0],r=e[1];return r[0]&15})).map((function(e){var n=e[0],r=e[1];var t=r[1]||n;i.set(t,n);return t}))}}return e};var Z=function(e,n,t,a,i){return __awaiter(r,void 0,void 0,(function(){var e,r,a,o,u,l,s;return __generator(this,(function(f){switch(f.label){case 0:if(!((n.$flags$&32)===0))return[3,3];n.$flags$|=32;i=fe(t);if(!i.then)return[3,2];e=m();return[4,i];case 1:i=f.sent();e();f.label=2;case 2:if(!i.isProxied){Y(i,t,2);i.isProxied=true}r=h("createInstance",t.$tagName$);{n.$flags$|=8}try{new i(n)}catch(e){le(e)}{n.$flags$&=~8}r();ee(n.$lazyInstance$);if(i.style){a=i.style;o=_(t);if(!ce.has(o)){u=h("registerStyles",t.$tagName$);y(o,a,!!(t.$flags$&1));u()}}f.label=3;case 3:l=n.$ancestorComponent$;s=function(){return T(n,true)};if(l&&l["s-rc"]){l["s-rc"].push(s)}else{s()}return[2]}}))}))};var ee=function(e){{D(e,"connectedCallback")}};var ne=function(e){if((s.$flags$&1)===0){var n=ie(e);var r=n.$cmpMeta$;var t=h("connectedCallback",r.$tagName$);if(!(n.$flags$&1)){n.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){B(n,n.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(n){var r=n[0],t=n[1][0];if(t&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{Z(e,n,r)}}else{$(e,n,r.$listeners$);ee(n.$lazyInstance$)}t()}};var re=function(e){if((s.$flags$&1)===0){var n=ie(e);var r=n.$lazyInstance$;{if(n.$rmListeners$){n.$rmListeners$.map((function(e){return e()}));n.$rmListeners$=undefined}}{D(r,"disconnectedCallback")}}};var te=e("b",(function(e,n){if(n===void 0){n={}}var r=h();var t=[];var a=n.exclude||[];var i=u.customElements;var o=l.head;var f=o.querySelector("meta[charset]");var c=l.createElement("style");var $=[];var v;var d=true;Object.assign(s,n);s.$resourcesUrl$=new URL(n.resourcesUrl||"./",l.baseURI).href;e.map((function(e){e[1].map((function(n){var r={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};{r.$members$=n[2]}{r.$listeners$=n[3]}var o=r.$tagName$;var u=function(e){__extends(n,e);function n(n){var t=e.call(this,n)||this;n=t;ue(n,r);if(r.$flags$&1){{{n.attachShadow({mode:"open"})}}}return t}n.prototype.connectedCallback=function(){var e=this;if(v){clearTimeout(v);v=null}if(d){$.push(this)}else{s.jmp((function(){return ne(e)}))}};n.prototype.disconnectedCallback=function(){var e=this;s.jmp((function(){return re(e)}))};n.prototype.componentOnReady=function(){return ie(this).$onReadyPromise$};return n}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(o)&&!i.get(o)){t.push(o);i.define(o,Y(u,r,1))}}))}));{c.innerHTML=t+p;c.setAttribute("data-styles","");o.insertBefore(c,f?f.nextSibling:o.firstChild)}d=false;if($.length){$.map((function(e){return e.connectedCallback()}))}else{{s.jmp((function(){return v=setTimeout(W,30)}))}}r()}));var ae=new WeakMap;var ie=function(e){return ae.get(e)};var oe=e("r",(function(e,n){return ae.set(n.$lazyInstance$=e,n)}));var ue=function(e,n){var r={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}$(e,r,n.$listeners$);return ae.set(e,r)};var le=function(e,n){return(0,console.error)(e,n)};var se=new Map;var fe=function(e,r,t){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var o=se.get(i);if(o){return o[a]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import("./".concat(i,".entry.js").concat("")).then((function(e){{se.set(i,e)}return e[a]}),le)};var ce=new Map;var $e=[];var ve=[];var de=function(e,n){return function(r){e.push(r);if(!o){o=true;if(n&&s.$flags$&4){me(he)}else{s.raf(he)}}}};var pe=function(e){for(var n=0;n<e.length;n++){try{e[n](performance.now())}catch(e){le(e)}}e.length=0};var he=function(){pe($e);{pe(ve);if(o=$e.length>0){s.raf(he)}}};var me=function(e){return f().then(e)};var ge=de(ve,true)}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},c=e=>Promise.resolve(e),r=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),i=(e,t,n)=>{n&&n.map((([n,l,s])=>{const c=e,r=a(t,s),i=u(n);o.ael(c,l,r,i),(t.o=t.o||[]).push((()=>o.rel(c,l,r,i)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){V(e)}},u=e=>0!=(2&e),f=new WeakMap,d=e=>"sc-"+e.h,h=e=>"object"==(e=typeof e)||"function"===e,m=(e,t,...n)=>{let l=null,s=!1,o=!1;const c=[],r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!h(l))&&(l+=""),s&&o?c[c.length-1].m+=l:c.push(s?$(null,l):l),o=s)};r(n);const i=$(e,null);return i.$=t,c.length>0&&(i.p=c),i},$=(e,t)=>({t:0,S:e,m:t,g:null,p:null}),p={},y=(t,n,l)=>{const o=n.p[l];let c,r,i=0;if(c=o.g=s.createElement(o.S),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),o.p)for(i=0;i<o.p.length;++i)r=y(t,o,i),r&&c.appendChild(r);return c},b=(e,n,l,s,o,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=c;++o)s[o]&&(r=y(null,l,o),r&&(s[o].g=r,i.insertBefore(r,n)))},w=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.g.remove()},S=(e,t)=>e.S===t.S,g=(e,t)=>{const n=t.g=e.g,l=e.p,s=t.p;null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,c=0,r=t.length-1,i=t[0],a=t[r],u=l.length-1,f=l[0],d=l[u];for(;o<=r&&c<=u;)null==i?i=t[++o]:null==a?a=t[--r]:null==f?f=l[++c]:null==d?d=l[--u]:S(i,f)?(g(i,f),i=t[++o],f=l[++c]):S(a,d)?(g(a,d),a=t[--r],d=l[--u]):S(i,d)?(g(i,d),e.insertBefore(i.g,a.g.nextSibling),i=t[++o],d=l[--u]):S(a,f)?(g(a,f),e.insertBefore(a.g,i.g),a=t[--r],f=l[++c]):(s=y(t&&t[c],n,c),f=l[++c],s&&i.g.parentNode.insertBefore(s,i.g));o>r?b(e,null==l[u+1]?null:l[u+1].g,n,l,c,u):c>u&&w(t,o,r)})(n,l,t,s):null!==s?b(n,null,t,s,0,s.length-1):null!==l&&w(l,0,l.length-1)},k=e=>W(e).k,v=(e,t,n)=>{const l=k(e);return{emit:e=>C(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},C=(e,t,n)=>{const l=o.ce(t,n);return e.dispatchEvent(l),l},M=(e,t)=>{t&&!e.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.v=t)))},j=(e,t)=>{if(e.t|=16,!(4&e.t))return M(e,e.C),Y((()=>O(e,t)));e.t|=512},O=(e,t)=>{const n=e.i;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>N(n,e,t))),e.u=null)),T(void 0,(()=>P(e,n,t)))},P=async(e,t,n)=>{const l=e.k,o=l["s-rc"];n&&(e=>{const t=e.M,n=e.k,l=t.t,o=((e,t)=>{let n=d(t);const l=B.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=f.get(e=e.head||e);o||f.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);x(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>E(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},x=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.k,o=n.j||$(null,null),c=(e=>e&&e.S===p)(l)?l:m(null,null,l);t=s.tagName,c.S=null,c.t|=4,n.j=c,c.g=o.g=s.shadowRoot||s,e=s["s-sc"],g(o,c)})(n,l)}catch(e){V(e,n.k)}return null},E=e=>{const t=e.k,n=e.i,l=e.C;64&e.t||(e.t|=64,A(t),N(n,"componentDidLoad"),e.O(t),l||L()),e.v&&(e.v(),e.v=void 0),512&e.t&&X((()=>j(e,!1))),e.t&=-517},L=()=>{A(s.documentElement),X((()=>C(l,"appload",{detail:{namespace:"mds-accordion-timer"}})))},N=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){V(e)}},T=(e,t)=>e&&e.then?e.then(t):t(),A=e=>e.classList.add("hydrated"),F=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>W(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=W(e),o=s.L.get(t),c=s.t,r=s.i;n=((e,t)=>null==e||h(e)?e:2&t?parseFloat(e):e)(n,l.P[t][0]),8&c&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(t,n),r&&2==(18&c)&&j(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){o.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},H=e=>{N(e,"connectedCallback")},R=(e,t={})=>{const n=[],c=t.exclude||[],a=l.customElements,u=s.head,f=u.querySelector("meta[charset]"),h=s.createElement("style"),m=[];let $,p=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],h:t[1],P:t[2],N:t[3]};l.P=t[2],l.N=t[3];const s=l.h,u=class extends HTMLElement{constructor(e){super(e),D(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){$&&(clearTimeout($),$=null),p?m.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=W(e),n=t.M,l=()=>{};if(1&t.t)i(e,t,n.N),H(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(t,t.C=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=z(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(F(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){V(e)}t.t&=-9,e(),H(t.i)}if(s.style){let e=s.style;const t=d(n);if(!B.has(t)){const l=()=>{};((e,t,n)=>{let l=B.get(e);r&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,B.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.C,c=()=>j(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>(()=>{if(0==(1&o.t)){const e=W(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),N(t,"disconnectedCallback")}})()))}componentOnReady(){return W(this).T}};l.A=e[0],c.includes(s)||a.get(s)||(n.push(s),a.define(s,F(u,l,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),u.insertBefore(h,f?f.nextSibling:u.firstChild),p=!1,m.length?m.map((e=>e.connectedCallback())):o.jmp((()=>$=setTimeout(L,30)))},U=new WeakMap,W=e=>U.get(e),q=(e,t)=>U.set(t.i=e,t),D=(e,t)=>{const n={t:0,k:e,M:t,L:new Map};return n.T=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],i(e,n,t.N),U.set(e,n)},V=(e,t)=>(0,console.error)(e,t),_=new Map,z=e=>{const t=e.h.replace(/-/g,"_"),n=e.A,l=_.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(_.set(n,e),e[t])),V)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},B=new Map,G=[],I=[],J=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?X(Q):o.raf(Q))},K=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){V(e)}e.length=0},Q=()=>{K(G),K(I),(n=G.length>0)&&o.raf(Q)},X=e=>c().then(e),Y=J(I,!0);export{p as H,R as b,v as c,k as g,m as h,c as p,q as r}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-
|
|
1
|
+
System.register(["./p-65dca5f5.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(e){r=e.p;n=e.b}],execute:function(){var e=function(){var e=t.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return r(n)};e().then((function(e){return n([["p-6384c515.system",[[1,"mds-accordion-timer",{duration:[2],time:[32]},[[0,"clickActive","onClickActive"],[0,"mouseEnterActive","onMouseEnterActive"],[0,"mouseLeaveActive","onMouseLeaveActive"]]]]]],e)}))}}}));
|
package/dist/stats.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "
|
|
2
|
+
"timestamp": "2022-06-27T08:50:50",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "18.3.0"
|
|
6
6
|
},
|
|
7
7
|
"app": {
|
|
8
8
|
"namespace": "MdsAccordionTimer",
|
|
9
9
|
"fsNamespace": "mds-accordion-timer",
|
|
10
10
|
"components": 1,
|
|
11
11
|
"entries": 1,
|
|
12
|
-
"bundles":
|
|
12
|
+
"bundles": 63,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 22,
|
|
17
17
|
"generatedFiles": [
|
|
18
18
|
"./dist/collection/components/mds-accordion-timer/mds-accordion-timer.js",
|
|
19
|
+
"./dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js",
|
|
19
20
|
"./dist/collection/dictionary/autocomplete.js",
|
|
20
21
|
"./dist/collection/dictionary/button.js",
|
|
21
22
|
"./dist/collection/dictionary/color.js",
|
|
23
|
+
"./dist/collection/dictionary/floating-ui.js",
|
|
22
24
|
"./dist/collection/dictionary/icon.js",
|
|
23
25
|
"./dist/collection/dictionary/input-text-type.js",
|
|
24
26
|
"./dist/collection/dictionary/loading.js",
|
|
@@ -28,6 +30,7 @@
|
|
|
28
30
|
"./dist/collection/interface/input-value.js",
|
|
29
31
|
"./dist/collection/types/autocomplete.js",
|
|
30
32
|
"./dist/collection/types/button.js",
|
|
33
|
+
"./dist/collection/types/floating-ui.js",
|
|
31
34
|
"./dist/collection/types/form-rel.js",
|
|
32
35
|
"./dist/collection/types/input-text-type.js",
|
|
33
36
|
"./dist/collection/types/input-value-type.js",
|
|
@@ -37,28 +40,30 @@
|
|
|
37
40
|
]
|
|
38
41
|
},
|
|
39
42
|
{
|
|
40
|
-
"name": "dist-custom-elements
|
|
41
|
-
"files":
|
|
43
|
+
"name": "dist-custom-elements",
|
|
44
|
+
"files": 4,
|
|
42
45
|
"generatedFiles": [
|
|
43
|
-
"./dist/
|
|
44
|
-
"./dist/
|
|
46
|
+
"./dist/components/index.d.ts",
|
|
47
|
+
"./dist/components/index.js",
|
|
48
|
+
"./dist/components/mds-accordion-timer.d.ts",
|
|
49
|
+
"./dist/components/mds-accordion-timer.js"
|
|
45
50
|
]
|
|
46
51
|
},
|
|
47
52
|
{
|
|
48
53
|
"name": "dist-lazy",
|
|
49
54
|
"files": 35,
|
|
50
55
|
"generatedFiles": [
|
|
51
|
-
"./dist/cjs/index-
|
|
56
|
+
"./dist/cjs/index-71ce67f9.js",
|
|
52
57
|
"./dist/cjs/index.cjs.js",
|
|
53
58
|
"./dist/cjs/loader.cjs.js",
|
|
54
59
|
"./dist/cjs/mds-accordion-timer.cjs.entry.js",
|
|
55
60
|
"./dist/cjs/mds-accordion-timer.cjs.js",
|
|
56
|
-
"./dist/esm-es5/index-
|
|
61
|
+
"./dist/esm-es5/index-131803de.js",
|
|
57
62
|
"./dist/esm-es5/index.js",
|
|
58
63
|
"./dist/esm-es5/loader.js",
|
|
59
64
|
"./dist/esm-es5/mds-accordion-timer.entry.js",
|
|
60
65
|
"./dist/esm-es5/mds-accordion-timer.js",
|
|
61
|
-
"./dist/esm/index-
|
|
66
|
+
"./dist/esm/index-131803de.js",
|
|
62
67
|
"./dist/esm/index.js",
|
|
63
68
|
"./dist/esm/loader.js",
|
|
64
69
|
"./dist/esm/mds-accordion-timer.entry.js",
|
|
@@ -68,21 +73,21 @@
|
|
|
68
73
|
"./dist/mds-accordion-timer/index.esm.js",
|
|
69
74
|
"./dist/mds-accordion-timer/mds-accordion-timer.esm.js",
|
|
70
75
|
"./dist/mds-accordion-timer/mds-accordion-timer.js",
|
|
71
|
-
"./dist/mds-accordion-timer/p-
|
|
72
|
-
"./dist/mds-accordion-timer/p-2c75936b.entry.js",
|
|
76
|
+
"./dist/mds-accordion-timer/p-4f6d2878.entry.js",
|
|
73
77
|
"./dist/mds-accordion-timer/p-50ea2036.system.js",
|
|
74
|
-
"./dist/mds-accordion-timer/p-
|
|
75
|
-
"./dist/mds-accordion-timer/p-
|
|
76
|
-
"./dist/mds-accordion-timer/p-
|
|
78
|
+
"./dist/mds-accordion-timer/p-6384c515.system.entry.js",
|
|
79
|
+
"./dist/mds-accordion-timer/p-65dca5f5.system.js",
|
|
80
|
+
"./dist/mds-accordion-timer/p-9bd89dcd.js",
|
|
81
|
+
"./dist/mds-accordion-timer/p-b55643bd.system.js",
|
|
77
82
|
"./www/build/index.esm.js",
|
|
78
83
|
"./www/build/mds-accordion-timer.esm.js",
|
|
79
84
|
"./www/build/mds-accordion-timer.js",
|
|
80
|
-
"./www/build/p-
|
|
81
|
-
"./www/build/p-2c75936b.entry.js",
|
|
85
|
+
"./www/build/p-4f6d2878.entry.js",
|
|
82
86
|
"./www/build/p-50ea2036.system.js",
|
|
83
|
-
"./www/build/p-
|
|
84
|
-
"./www/build/p-
|
|
85
|
-
"./www/build/p-
|
|
87
|
+
"./www/build/p-6384c515.system.entry.js",
|
|
88
|
+
"./www/build/p-65dca5f5.system.js",
|
|
89
|
+
"./www/build/p-9bd89dcd.js",
|
|
90
|
+
"./www/build/p-b55643bd.system.js"
|
|
86
91
|
]
|
|
87
92
|
},
|
|
88
93
|
{
|
|
@@ -115,12 +120,12 @@
|
|
|
115
120
|
"components": [
|
|
116
121
|
"mds-accordion-timer"
|
|
117
122
|
],
|
|
118
|
-
"bundleId": "p-
|
|
119
|
-
"fileName": "p-
|
|
123
|
+
"bundleId": "p-4f6d2878",
|
|
124
|
+
"fileName": "p-4f6d2878.entry.js",
|
|
120
125
|
"imports": [
|
|
121
|
-
"p-
|
|
126
|
+
"p-9bd89dcd.js"
|
|
122
127
|
],
|
|
123
|
-
"originalByteSize":
|
|
128
|
+
"originalByteSize": 3502
|
|
124
129
|
}
|
|
125
130
|
],
|
|
126
131
|
"esm": [
|
|
@@ -132,9 +137,9 @@
|
|
|
132
137
|
"bundleId": "mds-accordion-timer",
|
|
133
138
|
"fileName": "mds-accordion-timer.entry.js",
|
|
134
139
|
"imports": [
|
|
135
|
-
"index-
|
|
140
|
+
"index-131803de.js"
|
|
136
141
|
],
|
|
137
|
-
"originalByteSize":
|
|
142
|
+
"originalByteSize": 3506
|
|
138
143
|
}
|
|
139
144
|
],
|
|
140
145
|
"es5": [
|
|
@@ -146,9 +151,9 @@
|
|
|
146
151
|
"bundleId": "mds-accordion-timer",
|
|
147
152
|
"fileName": "mds-accordion-timer.entry.js",
|
|
148
153
|
"imports": [
|
|
149
|
-
"index-
|
|
154
|
+
"index-131803de.js"
|
|
150
155
|
],
|
|
151
|
-
"originalByteSize":
|
|
156
|
+
"originalByteSize": 3506
|
|
152
157
|
}
|
|
153
158
|
],
|
|
154
159
|
"system": [
|
|
@@ -157,12 +162,12 @@
|
|
|
157
162
|
"components": [
|
|
158
163
|
"mds-accordion-timer"
|
|
159
164
|
],
|
|
160
|
-
"bundleId": "p-
|
|
161
|
-
"fileName": "p-
|
|
165
|
+
"bundleId": "p-6384c515.system",
|
|
166
|
+
"fileName": "p-6384c515.system.entry.js",
|
|
162
167
|
"imports": [
|
|
163
|
-
"p-
|
|
168
|
+
"p-65dca5f5.system.js"
|
|
164
169
|
],
|
|
165
|
-
"originalByteSize":
|
|
170
|
+
"originalByteSize": 4466
|
|
166
171
|
}
|
|
167
172
|
],
|
|
168
173
|
"commonjs": [
|
|
@@ -174,9 +179,9 @@
|
|
|
174
179
|
"bundleId": "mds-accordion-timer.cjs",
|
|
175
180
|
"fileName": "mds-accordion-timer.cjs.entry.js",
|
|
176
181
|
"imports": [
|
|
177
|
-
"index-
|
|
182
|
+
"index-71ce67f9.js"
|
|
178
183
|
],
|
|
179
|
-
"originalByteSize":
|
|
184
|
+
"originalByteSize": 3553
|
|
180
185
|
}
|
|
181
186
|
]
|
|
182
187
|
},
|
|
@@ -251,7 +256,7 @@
|
|
|
251
256
|
"mutable": false,
|
|
252
257
|
"required": false,
|
|
253
258
|
"optional": true,
|
|
254
|
-
"defaultValue": "
|
|
259
|
+
"defaultValue": "10000",
|
|
255
260
|
"complexType": {
|
|
256
261
|
"original": "number",
|
|
257
262
|
"resolved": "number",
|
|
@@ -292,7 +297,7 @@
|
|
|
292
297
|
"mutable": false,
|
|
293
298
|
"required": false,
|
|
294
299
|
"optional": true,
|
|
295
|
-
"defaultValue": "
|
|
300
|
+
"defaultValue": "10000",
|
|
296
301
|
"complexType": {
|
|
297
302
|
"original": "number",
|
|
298
303
|
"resolved": "number",
|
|
@@ -360,7 +365,7 @@
|
|
|
360
365
|
"styleIdentifier": "mdsAccordionTimerStyle",
|
|
361
366
|
"externalStyles": [
|
|
362
367
|
{
|
|
363
|
-
"absolutePath": "/
|
|
368
|
+
"absolutePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-accordion-timer/src/components/mds-accordion-timer/mds-accordion-timer.css",
|
|
364
369
|
"relativePath": "mds-accordion-timer.css",
|
|
365
370
|
"originalComponentPath": "mds-accordion-timer.css"
|
|
366
371
|
}
|
|
@@ -376,8 +381,8 @@
|
|
|
376
381
|
"tags": [],
|
|
377
382
|
"text": ""
|
|
378
383
|
},
|
|
379
|
-
"jsFilePath": "/
|
|
380
|
-
"sourceFilePath": "/
|
|
384
|
+
"jsFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-accordion-timer/src/components/mds-accordion-timer/mds-accordion-timer.js",
|
|
385
|
+
"sourceFilePath": "/builds/maggiolispa/ricerca-sviluppo-new-media/design-system/projects/stencil/.build/mds-accordion-timer/src/components/mds-accordion-timer/mds-accordion-timer.tsx",
|
|
381
386
|
"sourceMapPath": null,
|
|
382
387
|
"hasAttributeChangedCallbackFn": false,
|
|
383
388
|
"hasComponentWillLoadFn": false,
|
|
@@ -443,15 +448,19 @@
|
|
|
443
448
|
],
|
|
444
449
|
"componentGraph": {
|
|
445
450
|
"sc-mds-accordion-timer": [
|
|
446
|
-
"p-
|
|
451
|
+
"p-9bd89dcd.js"
|
|
447
452
|
]
|
|
448
453
|
},
|
|
449
454
|
"sourceGraph": {
|
|
450
455
|
"./src/components/mds-accordion-timer/mds-accordion-timer.tsx": [],
|
|
456
|
+
"./src/components/mds-accordion-timer/test/mds-accordion-timer.stories.tsx": [],
|
|
451
457
|
"./src/dictionary/autocomplete.ts": [],
|
|
452
458
|
"./src/dictionary/button.ts": [],
|
|
453
459
|
"./src/dictionary/color.ts": [],
|
|
454
|
-
"./src/dictionary/
|
|
460
|
+
"./src/dictionary/floating-ui.ts": [],
|
|
461
|
+
"./src/dictionary/icon.ts": [
|
|
462
|
+
"./src/fixtures/icons.json"
|
|
463
|
+
],
|
|
455
464
|
"./src/dictionary/input-text-type.ts": [],
|
|
456
465
|
"./src/dictionary/loading.ts": [],
|
|
457
466
|
"./src/dictionary/typography.ts": [],
|
|
@@ -460,6 +469,7 @@
|
|
|
460
469
|
"./src/interface/input-value.ts": [],
|
|
461
470
|
"./src/types/autocomplete.ts": [],
|
|
462
471
|
"./src/types/button.ts": [],
|
|
472
|
+
"./src/types/floating-ui.ts": [],
|
|
463
473
|
"./src/types/form-rel.ts": [],
|
|
464
474
|
"./src/types/input-text-type.ts": [],
|
|
465
475
|
"./src/types/input-value-type.ts": [],
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
argTypes: {
|
|
4
|
+
duration: {
|
|
5
|
+
type: {
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const Default: any;
|
|
14
|
+
export declare const Duration: any;
|
|
15
|
+
export declare const LokiTest: any;
|
|
@@ -13,6 +13,10 @@ export namespace Components {
|
|
|
13
13
|
"duration"?: number;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
export interface MdsAccordionTimerCustomEvent<T> extends CustomEvent<T> {
|
|
17
|
+
detail: T;
|
|
18
|
+
target: HTMLMdsAccordionTimerElement;
|
|
19
|
+
}
|
|
16
20
|
declare global {
|
|
17
21
|
interface HTMLMdsAccordionTimerElement extends Components.MdsAccordionTimer, HTMLStencilElement {
|
|
18
22
|
}
|
|
@@ -33,7 +37,7 @@ declare namespace LocalJSX {
|
|
|
33
37
|
/**
|
|
34
38
|
* Emits when the accordion changes it's item
|
|
35
39
|
*/
|
|
36
|
-
"onItemActivated"?: (event:
|
|
40
|
+
"onItemActivated"?: (event: MdsAccordionTimerCustomEvent<number>) => void;
|
|
37
41
|
}
|
|
38
42
|
interface IntrinsicElements {
|
|
39
43
|
"mds-accordion-timer": MdsAccordionTimer;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
declare const typographyDictionary: string[];
|
|
2
|
+
declare const typographyVariationsDictionary: string[];
|
|
2
3
|
declare const typographyMonoDictionary: string[];
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
5
|
-
|
|
4
|
+
declare const typographyTitleDictionary: string[];
|
|
5
|
+
declare const typographyInfoDictionary: string[];
|
|
6
|
+
declare const typographyReadDictionary: string[];
|
|
7
|
+
declare const typographySmallerDictionary: string[];
|
|
8
|
+
declare const typographyTooltipDictionary: string[];
|
|
9
|
+
export { typographyDictionary, typographyVariationsDictionary, typographyMonoDictionary, typographyTitleDictionary, typographyInfoDictionary, typographyReadDictionary, typographySmallerDictionary, typographyTooltipDictionary, };
|
|
@@ -666,7 +666,7 @@ export declare namespace JSXBase {
|
|
|
666
666
|
use: JSXBase.SVGAttributes;
|
|
667
667
|
view: JSXBase.SVGAttributes;
|
|
668
668
|
}
|
|
669
|
-
interface SlotAttributes {
|
|
669
|
+
interface SlotAttributes extends JSXAttributes {
|
|
670
670
|
name?: string;
|
|
671
671
|
slot?: string;
|
|
672
672
|
onSlotchange?: (event: Event) => void;
|
|
@@ -1427,9 +1427,7 @@ export declare namespace JSXBase {
|
|
|
1427
1427
|
z?: number | string;
|
|
1428
1428
|
zoomAndPan?: string;
|
|
1429
1429
|
}
|
|
1430
|
-
interface DOMAttributes<T
|
|
1431
|
-
key?: string | number;
|
|
1432
|
-
ref?: (elm?: T) => void;
|
|
1430
|
+
interface DOMAttributes<T> extends JSXAttributes<T> {
|
|
1433
1431
|
slot?: string;
|
|
1434
1432
|
part?: string;
|
|
1435
1433
|
exportparts?: string;
|
|
@@ -1550,6 +1548,10 @@ export declare namespace JSXBase {
|
|
|
1550
1548
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1551
1549
|
}
|
|
1552
1550
|
}
|
|
1551
|
+
export interface JSXAttributes<T = Element> {
|
|
1552
|
+
key?: string | number;
|
|
1553
|
+
ref?: (elm?: T) => void;
|
|
1554
|
+
}
|
|
1553
1555
|
export interface CustomElementsDefineOptions {
|
|
1554
1556
|
exclude?: string[];
|
|
1555
1557
|
resourcesUrl?: string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
export declare type TypographyType = 'action' | 'caption' | 'code' | 'detail' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hack' | 'label' | 'option' | 'paragraph';
|
|
2
|
-
export declare type
|
|
3
|
-
export declare type
|
|
1
|
+
export declare type TypographyType = 'action' | 'caption' | 'code' | 'detail' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'hack' | 'label' | 'option' | 'paragraph' | 'tip';
|
|
2
|
+
export declare type TypographyVariants = 'title' | 'info' | 'read' | 'mono';
|
|
3
|
+
export declare type TypographyTitleType = 'action' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
|
+
export declare type TypographyInfoType = 'caption' | 'detail' | 'label' | 'option' | 'paragraph' | 'tip';
|
|
5
|
+
export declare type TypographyReadType = 'caption' | 'detail' | 'paragraph';
|
|
6
|
+
export declare type TypographySmallerType = 'tip' | 'option';
|
|
4
7
|
export declare type TypographyMonoType = 'code' | 'hack';
|
|
8
|
+
export declare type TypographyTooltipType = 'caption' | 'detail' | 'tip';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type ThemeStatusVariantType = 'error' | 'info' | 'success' | 'warning';
|
|
2
|
-
export declare type ThemeVariantType = 'dark' | '
|
|
2
|
+
export declare type ThemeVariantType = 'dark' | 'error' | 'info' | 'light' | 'primary' | 'success' | 'warning';
|
|
3
3
|
export declare type ThemeFullVariantType = 'amaranth' | 'aqua' | 'blue' | 'dark' | 'error' | 'green' | 'info' | 'light' | 'lime' | 'orange' | 'orchid' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
|
|
4
4
|
export declare type ThemeLuminanceVariantType = 'dark' | 'light';
|
|
5
5
|
export declare type LabelVariantType = 'amaranth' | 'aqua' | 'blue' | 'green' | 'lime' | 'orange' | 'orchid' | 'sky' | 'violet' | 'yellow';
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-accordion-timer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "mds-accordion-timer is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
|
-
"module": "dist/
|
|
6
|
+
"module": "dist/index.js",
|
|
7
7
|
"es2015": "dist/esm/index.mjs",
|
|
8
8
|
"es2017": "dist/esm/index.mjs",
|
|
9
|
-
|
|
10
|
-
"collection": "dist/collection/collection-manifest.json",
|
|
9
|
+
"types": "dist/types/components.d.ts", "collection": "dist/collection/collection-manifest.json",
|
|
11
10
|
"collection:main": "dist/collection/index.js",
|
|
12
11
|
"unpkg": "dist/mds-accordion-timer/mds-accordion-timer.esm.js",
|
|
13
12
|
"files": [
|
|
@@ -18,11 +17,14 @@
|
|
|
18
17
|
"www/"
|
|
19
18
|
],
|
|
20
19
|
"scripts": {
|
|
21
|
-
"build": "stencil build --docs-readme"
|
|
20
|
+
"build": "rm src/components.d.ts || true && stencil build --docs-readme",
|
|
21
|
+
"prepublishOnly": "npm run build",
|
|
22
|
+
"test": "stencil test --spec --e2e"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@maggioli-design-system/mds-accordion-timer-item": "^
|
|
25
|
-
"@
|
|
25
|
+
"@maggioli-design-system/mds-accordion-timer-item": "^2.0.1",
|
|
26
|
+
"@maggioli-design-system/styles": "^8.0.0",
|
|
27
|
+
"@stencil/core": "^2.17.0"
|
|
26
28
|
},
|
|
27
29
|
"license": "MIT",
|
|
28
30
|
"author": {
|
package/readme.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
| Property | Attribute | Description | Type | Default |
|
|
11
11
|
| ---------- | ---------- | ---------------------------------------------- | -------- | ------- |
|
|
12
|
-
| `duration` | `duration` | Sets the duration of the single accordion item | `number` | `
|
|
12
|
+
| `duration` | `duration` | Sets the duration of the single accordion item | `number` | `10000` |
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
## Events
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.base-accordion-timer:
|
|
2
|
+
variables:
|
|
3
|
+
COMPONENT: mds-accordion-timer
|
|
4
|
+
|
|
5
|
+
# ISOLATE
|
|
6
|
+
accordion-timer-isolate:
|
|
7
|
+
extends: [.base-isolate, .base-accordion-timer]
|
|
8
|
+
dependencies: [base-stencil-build]
|
|
9
|
+
|
|
10
|
+
# TEST
|
|
11
|
+
accordion-timer-publish-test:
|
|
12
|
+
extends: [.base-stencil-publish-test, .base-accordion-timer]
|
|
13
|
+
dependencies: [base-stencil-build, accordion-timer-isolate]
|
|
14
|
+
|
|
15
|
+
# PUBLISH
|
|
16
|
+
accordion-timer-publish:
|
|
17
|
+
extends: [.base-stencil-publish, .base-accordion-timer]
|
|
18
|
+
dependencies: [base-stencil-build, accordion-timer-isolate]
|
|
19
|
+
needs: [base-stencil-build, accordion-timer-isolate, accordion-timer-publish-test]
|
|
20
|
+
|
|
21
|
+
# INSTALL TEST
|
|
22
|
+
accordion-timer-install-test:
|
|
23
|
+
extends: [.base-stencil-install-test, .base-accordion-timer]
|
|
24
|
+
needs: [accordion-timer-publish]
|
|
25
|
+
|