@maggioli-design-system/mds-accordion-timer-item 3.3.0 → 3.3.2
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-2bd6b4fb.js → index-e23d5ad6.js} +104 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-accordion-timer-item.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/aria.js +9 -1
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +21 -32
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-a4aa99a4.js → index-6704f580.js} +104 -20
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-accordion-timer-item.entry.js +2 -2
- package/dist/esm/mds-accordion-timer-item.js +3 -3
- package/dist/esm-es5/index-6704f580.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer-item.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -1
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +1 -1
- package/dist/mds-accordion-timer-item/p-6f6de960.system.js +2 -0
- package/dist/mds-accordion-timer-item/p-ae55d615.js +2 -0
- package/dist/mds-accordion-timer-item/{p-b907655e.entry.js → p-bfd4e138.entry.js} +1 -1
- package/dist/mds-accordion-timer-item/p-d6674445.system.entry.js +1 -0
- package/dist/mds-accordion-timer-item/p-ef685e4f.system.js +1 -0
- package/dist/stats.json +32 -30
- package/dist/types/common/aria.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +19 -0
- package/documentation.json +15 -5
- package/package.json +5 -5
- package/readme.md +3 -1
- package/src/common/aria.ts +12 -0
- package/src/common/keyboard-manager.ts +2 -2
- package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.css +22 -21
- package/src/components/mds-accordion-timer-item/readme.md +1 -1
- package/src/fixtures/icons.json +2 -0
- package/www/build/mds-accordion-timer-item.esm.js +1 -1
- package/www/build/mds-accordion-timer-item.js +1 -1
- package/www/build/p-6f6de960.system.js +2 -0
- package/www/build/p-ae55d615.js +2 -0
- package/www/build/{p-b907655e.entry.js → p-bfd4e138.entry.js} +1 -1
- package/www/build/p-d6674445.system.entry.js +1 -0
- package/www/build/p-ef685e4f.system.js +1 -0
- package/dist/esm-es5/index-a4aa99a4.js +0 -2
- package/dist/mds-accordion-timer-item/p-8e2cd0f7.system.js +0 -2
- package/dist/mds-accordion-timer-item/p-a47cd642.js +0 -2
- package/dist/mds-accordion-timer-item/p-e42fe386.system.entry.js +0 -1
- package/dist/mds-accordion-timer-item/p-e5216d89.system.js +0 -1
- package/www/build/p-8e2cd0f7.system.js +0 -2
- package/www/build/p-a47cd642.js +0 -2
- package/www/build/p-e42fe386.system.entry.js +0 -1
- package/www/build/p-e5216d89.system.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-6704f580.js';
|
|
2
|
+
export { s as setNonce } from './index-6704f580.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
5
|
+
Stencil Client Patch Browser v4.5.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1 @@
|
|
|
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 i(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{s(t.next(e))}catch(e){a(e)}}function u(e){try{s(t["throw"](e))}catch(e){a(e)}}function s(e){e.done?r(e.value):i(e.value).then(o,u)}s((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,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 s([e,n])}}function s(u){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(r=0)),r)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1];a=u;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(u);break}if(a[2])r.ops.pop();r.trys.pop();continue}u=n.call(e,r)}catch(e){u=[6,e];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,r){if(r||arguments.length===2)for(var t=0,i=n.length,a;t<i;t++){if(a||!(t in n)){if(!a)a=Array.prototype.slice.call(n,0,t);a[t]=n[t]}}return e.concat(a||Array.prototype.slice.call(n))};var NAMESPACE="mds-accordion-timer-item";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var createTime=function(e,n){if(n===void 0){n=""}{return function(){return}}};var uniqueTime=function(e,n){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var n,r,t;return(t=(r=(n=e.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&t!==void 0?t:undefined}var h=function(e,n){var r=[];for(var t=2;t<arguments.length;t++){r[t-2]=arguments[t]}var i=null;var a=false;var o=false;var u=[];var s=function(n){for(var r=0;r<n.length;r++){i=n[r];if(Array.isArray(i)){s(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(a&&o){u[u.length-1].t+=i}else{u.push(a?newVNode(null,i):i)}o=a}}};s(r);if(n){{var f=n.className||n.class;if(f){n.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var l=newVNode(e,null);l.i=n;if(u.length>0){l.o=u}return l};var newVNode=function(e,n){var r={u:0,l:e,t:n,v:null,o:null};{r.i=null}return r};var Host={};var isHost=function(e){return e&&e.l===Host};var parsePropertyValue=function(e,n){if(e!=null&&!isComplexType(e)){if(n&4){return e==="false"?false:e===""||!!e}if(n&2){return parseFloat(e)}if(n&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,n,r){var t=getElement(e);return{emit:function(e){return emitEvent(t,n,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,n,r){var t=plt.ce(n,r);e.dispatchEvent(t);return t};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,n,r){var t=styles.get(e);if(supportsConstructableStylesheets&&r){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}styles.set(e,t)};var addStyle=function(e,n,r){var t;var i=getScopeId(n);var a=styles.get(i);e=e.nodeType===11?e:doc;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var u=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){{u=doc.createElement("style");u.innerHTML=a;var s=(t=plt.p)!==null&&t!==void 0?t:queryNonceMetaTagContent(doc);if(s!=null){u.setAttribute("nonce",s)}e.insertBefore(u,e.querySelector("link"))}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var attachStyles=function(e){var n=e.m;var r=e.$hostElement$;var t=n.u;var i=createTime("attachStyles",n.h);var a=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),n);if(t&10){r["s-sc"]=a;r.classList.add(a+"-h")}i()};var getScopeId=function(e,n){return"sc-"+e.h};var setAccessor=function(e,n,r,t,i,a){if(r!==t){var o=isMemberInElement(e,n);var u=n.toLowerCase();if(n==="class"){var s=e.classList;var f=parseClassList(r);var l=parseClassList(t);s.remove.apply(s,f.filter((function(e){return e&&!l.includes(e)})));s.add.apply(s,l.filter((function(e){return e&&!f.includes(e)})))}else if(!o&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(isMemberInElement(win,u)){n=u.slice(2)}else{n=u[2]+n.slice(3)}if(r){plt.rel(e,n,r,false)}if(t){plt.ael(e,n,t,false)}}else{var c=isComplexType(t);if((o||c&&t!==null)&&!i){try{if(!e.tagName.includes("-")){var v=t==null?"":t;if(n==="list"){o=false}else if(r==null||e[n]!=v){e[n]=v}}else{e[n]=t}}catch(e){}}if(t==null||t===false){if(t!==false||e.getAttribute(n)===""){{e.removeAttribute(n)}}}else if((!o||a&4||i)&&!c){t=t===true?"":t;{e.setAttribute(n,t)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,n,r,t){var i=n.v.nodeType===11&&n.v.host?n.v.host:n.v;var a=e&&e.i||EMPTY_OBJ;var o=n.i||EMPTY_OBJ;{for(t in a){if(!(t in o)){setAccessor(i,t,a[t],undefined,r,n.u)}}}for(t in o){setAccessor(i,t,a[t],o[t],r,n.u)}};var createElm=function(e,n,r,t){var i=n.o[r];var a=0;var o;var u;if(i.t!==null){o=i.v=doc.createTextNode(i.t)}else{o=i.v=doc.createElement(i.l);{updateElement(null,i,isSvgMode)}if(isDef(scopeId)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(i.o){for(a=0;a<i.o.length;++a){u=createElm(e,i,a);if(u){o.appendChild(u)}}}}return o};var addVnodes=function(e,n,r,t,i,a){var o=e;var u;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;i<=a;++i){if(t[i]){u=createElm(null,r,i);if(u){t[i].v=u;o.insertBefore(u,n)}}}};var removeVnodes=function(e,n,r){for(var t=n;t<=r;++t){var i=e[t];if(i){var a=i.v;if(a){a.remove()}}}};var updateChildren=function(e,n,r,t){var i=0;var a=0;var o=n.length-1;var u=n[0];var s=n[o];var f=t.length-1;var l=t[0];var c=t[f];var v;while(i<=o&&a<=f){if(u==null){u=n[++i]}else if(s==null){s=n[--o]}else if(l==null){l=t[++a]}else if(c==null){c=t[--f]}else if(isSameVnode(u,l)){patch(u,l);u=n[++i];l=t[++a]}else if(isSameVnode(s,c)){patch(s,c);s=n[--o];c=t[--f]}else if(isSameVnode(u,c)){patch(u,c);e.insertBefore(u.v,s.v.nextSibling);u=n[++i];c=t[--f]}else if(isSameVnode(s,l)){patch(s,l);e.insertBefore(s.v,u.v);s=n[--o];l=t[++a]}else{{v=createElm(n&&n[a],r,a);l=t[++a]}if(v){{u.v.parentNode.insertBefore(v,u.v)}}}}if(i>o){addVnodes(e,t[f+1]==null?null:t[f+1].v,r,t,a,f)}else if(a>f){removeVnodes(n,i,o)}};var isSameVnode=function(e,n){if(e.l===n.l){return true}return false};var patch=function(e,n){var r=n.v=e.v;var t=e.o;var i=n.o;var a=n.l;var o=n.t;if(o===null){{if(a==="slot");else{updateElement(e,n,isSvgMode)}}if(t!==null&&i!==null){updateChildren(r,t,n,i)}else if(i!==null){if(e.t!==null){r.textContent=""}addVnodes(r,null,n,i,0,i.length-1)}else if(t!==null){removeVnodes(t,0,t.length-1)}}else if(e.t!==o){r.data=o}};var renderVdom=function(e,n,r){if(r===void 0){r=false}var t=e.$hostElement$;var i=e.m;var a=e.S||newVNode(null,null);var o=isHost(n)?n:h(null,null,n);hostTagName=t.tagName;if(i.C){o.i=o.i||{};i.C.map((function(e){var n=e[0],r=e[1];return o.i[r]=t[n]}))}if(r&&o.i){for(var u=0,s=Object.keys(o.i);u<s.length;u++){var f=s[u];if(t.hasAttribute(f)&&!["key","ref","style","class"].includes(f)){o.i[f]=t[f]}}}o.l=null;o.u|=4;e.S=o;o.v=a.v=t.shadowRoot||t;{scopeId=t["s-sc"]}patch(a,o)};var attachToAncestor=function(e,n){if(n&&!e.T&&n["s-p"]){n["s-p"].push(new Promise((function(n){return e.T=n})))}};var scheduleUpdate=function(e,n){{e.u|=16}if(e.u&4){e.u|=512;return}attachToAncestor(e,e._);var r=function(){return dispatchHooks(e,n)};return writeTask(r)};var dispatchHooks=function(e,n){var r=createTime("scheduleUpdate",e.m.h);var t=e.$;var i;r();return enqueue(i,(function(){return updateComponent(e,t,n)}))};var enqueue=function(e,n){return isPromisey(e)?e.then(n):n()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,n,r){return __awaiter(void 0,void 0,void 0,(function(){var t,i,a,o,u,s,f;return __generator(this,(function(l){i=e.$hostElement$;a=createTime("update",e.m.h);o=i["s-rc"];if(r){attachStyles(e)}u=createTime("render",e.m.h);{callRender(e,n,i,r)}if(o){o.map((function(e){return e()}));i["s-rc"]=undefined}u();a();{s=(t=i["s-p"])!==null&&t!==void 0?t:[];f=function(){return postUpdateComponent(e)};if(s.length===0){f()}else{Promise.all(s).then(f);e.u|=4;s.length=0}}return[2]}))}))};var callRender=function(e,n,r,t){try{n=n.render();{e.u&=~16}{e.u|=2}{{{renderVdom(e,n,t)}}}}catch(n){consoleError(n,e.$hostElement$)}return null};var postUpdateComponent=function(e){var n=e.m.h;var r=e.$hostElement$;var t=createTime("postUpdate",n);var i=e._;if(!(e.u&64)){e.u|=64;{addHydratedFlag(r)}t();{e.M(r);if(!i){appDidLoad()}}}else{t()}{if(e.T){e.T();e.T=undefined}if(e.u&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.u&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var addHydratedFlag=function(e){return e.setAttribute("hydrated","")};var getValue=function(e,n){return getHostRef(e).k.get(n)};var setValue=function(e,n,r,t){var i=getHostRef(e);var a=i.k.get(n);var o=i.u;var u=i.$;r=parsePropertyValue(r,t.A[n][0]);var s=Number.isNaN(a)&&Number.isNaN(r);var f=r!==a&&!s;if((!(o&8)||a===undefined)&&f){i.k.set(n,r);if(u){if((o&(2|16))===2){scheduleUpdate(i,false)}}}};var proxyComponent=function(e,n,r){var t;if(n.A){var i=Object.entries(n.A);var a=e.prototype;i.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 getValue(this,t)},set:function(e){setValue(this,t,e,n)},configurable:true,enumerable:true})}}));if(r&1){var o=new Map;a.attributeChangedCallback=function(e,r,t){var i=this;plt.jmp((function(){var u=o.get(e);if(i.hasOwnProperty(u)){t=i[u];delete i[u]}else if(a.hasOwnProperty(u)&&typeof i[u]==="number"&&i[u]==t){return}else if(u==null){var s=getHostRef(i);var f=s===null||s===void 0?void 0:s.u;if(!(f&8)&&f&128&&t!==r){var l=s.$;var c=n.R[e];c===null||c===void 0?void 0:c.forEach((function(n){if(l[n]!=null){l[n].call(l,t,r,e)}}))}return}i[u]=t===null&&typeof i[u]==="boolean"?false:t}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=n.R)!==null&&t!==void 0?t:{}),true),i.filter((function(e){var n=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],t=e[1];var i=t[1]||r;o.set(i,r);if(t[0]&512){n.C.push([r,i])}return i})),true)))}}return e};var initializeComponent=function(e,n,r,t){return __awaiter(void 0,void 0,void 0,(function(){var e,t,i,a,o,u,s,f;return __generator(this,(function(l){switch(l.label){case 0:if(!((n.u&32)===0))return[3,3];n.u|=32;e=loadModule(r);if(!e.then)return[3,2];t=uniqueTime();return[4,e];case 1:e=l.sent();t();l.label=2;case 2:if(!e.isProxied){proxyComponent(e,r,2);e.isProxied=true}i=createTime("createInstance",r.h);{n.u|=8}try{new e(n)}catch(e){consoleError(e)}{n.u&=~8}i();if(e.style){a=e.style;o=getScopeId(r);if(!styles.has(o)){u=createTime("registerStyles",r.h);registerStyle(o,a,!!(r.u&1));u()}}l.label=3;case 3:s=n._;f=function(){return scheduleUpdate(n,true)};if(s&&s["s-rc"]){s["s-rc"].push(f)}else{f()}return[2]}}))}))};var fireConnectedCallback=function(e){};var connectedCallback=function(e){if((plt.u&1)===0){var n=getHostRef(e);var r=n.m;var t=createTime("connectedCallback",r.h);if(!(n.u&1)){n.u|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(n,n._=i);break}}}if(r.A){Object.entries(r.A).map((function(n){var r=n[0],t=n[1][0];if(t&31&&e.hasOwnProperty(r)){var i=e[r];delete e[r];e[r]=i}}))}{initializeComponent(e,n,r)}}else{if(n===null||n===void 0?void 0:n.$);else if(n===null||n===void 0?void 0:n.H){n.H.then((function(){return fireConnectedCallback()}))}}t()}};var disconnectInstance=function(e){};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var n;return __generator(this,(function(r){if((plt.u&1)===0){n=getHostRef(e);if(n===null||n===void 0?void 0:n.$);else if(n===null||n===void 0?void 0:n.H){n.H.then((function(){return disconnectInstance()}))}}return[2]}))}))};var bootstrapLazy=function(e,n){if(n===void 0){n={}}var r;var t=createTime();var i=[];var a=n.exclude||[];var o=win.customElements;var u=doc.head;var s=u.querySelector("meta[charset]");var f=doc.createElement("style");var l=[];var c;var v=true;Object.assign(plt,n);plt.V=new URL(n.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(n){var r={u:n[0],h:n[1],A:n[2],q:n[3]};{r.A=n[2]}{r.C=[]}var t=r.h;var u=function(e){__extends(n,e);function n(n){var t=e.call(this,n)||this;n=t;registerHost(n,r);if(r.u&1){{{n.attachShadow({mode:"open"})}}}return t}n.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){l.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};n.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};n.prototype.componentOnReady=function(){return getHostRef(this).H};return n}(HTMLElement);r.P=e[0];if(!a.includes(t)&&!o.get(t)){i.push(t);o.define(t,proxyComponent(u,r,1))}}))}));{f.innerHTML=i+HYDRATED_CSS;f.setAttribute("data-styles","");var d=(r=plt.p)!==null&&r!==void 0?r:queryNonceMetaTagContent(doc);if(d!=null){f.setAttribute("nonce",d)}u.insertBefore(f,s?s.nextSibling:u.firstChild)}v=false;if(l.length){l.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}t()};var setNonce=function(e){return plt.p=e};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,n){return hostRefs.set(n.$=e,n)};var registerHost=function(e,n){var r={u:0,$hostElement$:e,m:n,k:new Map};{r.H=new Promise((function(e){return r.M=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,r)};var isMemberInElement=function(e,n){return n in e};var consoleError=function(e,n){return(0,console.error)(e,n)};var cmpModules=new Map;var loadModule=function(e,n,r){var t=e.h.replace(/-/g,"_");var i=e.P;var a=cmpModules.get(i);if(a){return a[t]}if(!r||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(i,e);return e[t]};switch(i){case"mds-accordion-timer-item":return import("./mds-accordion-timer-item.entry.js").then(o,consoleError)}}return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[t]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={u:0,V:"",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 promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,n){return function(r){e.push(r);if(!queuePending){queuePending=true;if(n&&plt.u&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var n=0;n<e.length;n++){try{e[n](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,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as bootstrapLazy}from"./index-
|
|
1
|
+
import{b as bootstrapLazy}from"./index-6704f580.js";export{s as setNonce}from"./index-6704f580.js";var defineCustomElements=function(e,t){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-accordion-timer-item",[[1,"mds-accordion-timer-item",{typography:[1],selected:[516],description:[1],progress:[2],uuid:[2]}]]]],t)};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-6704f580.js";var mdsAccordionTimerItemCss="@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";var MdsAccordionTimerItem=function(){function o(o){var r=this;registerInstance(this,o);this.clickSelectEvent=createEvent(this,"mdsAccordionTimerItemClickSelect",7);this.selectedMouseEnterEvent=createEvent(this,"mdsAccordionTimerItemMouseEnterSelect",7);this.selectedMouseLeaveEvent=createEvent(this,"mdsAccordionTimerItemMouseLeaveSelect",7);this.toggle=function(){r.selected=!r.selected;r.progress=0;if(r.selected){r.clickSelectEvent.emit({selected:r.selected,uuid:r.uuid})}};this.mouseEnter=function(){if(r.selected){r.selectedMouseEnterEvent.emit({selected:r.selected,uuid:r.uuid})}};this.mouseLeave=function(){if(r.selected){r.selectedMouseLeaveEvent.emit({selected:r.selected,uuid:r.uuid})}};this.typography="h5";this.selected=false;this.description=undefined;this.progress=0;this.uuid=0}o.prototype.render=function(){var o;return h(Host,{onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave},h("div",{class:"row"},h("mds-progress",{class:"progress-bar",progress:Number((o=this.progress)===null||o===void 0?void 0:o.toFixed(2)),direction:"vertical"}),h("div",{class:"accordion"},h("button",{"aria-controls":"contents","aria-expanded":this.selected?"true":"false",class:"action focusable",id:"action",onClick:this.toggle,role:"button",tabindex:"0"},h("mds-text",{typography:this.typography},this.description)),h("div",{class:"contents",id:"contents"},h("div",{class:"contents-expander"},h("slot",null))))))};return o}();MdsAccordionTimerItem.style=mdsAccordionTimerItemCss;export{MdsAccordionTimerItem as mds_accordion_timer_item};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-6704f580.js";export{s as setNonce}from"./index-6704f580.js";var patchBrowser=function(){var r=import.meta.url;var e={};if(r!==""){e.resourcesUrl=new URL(".",r).href}return promiseResolve(e)};patchBrowser().then((function(r){return bootstrapLazy([["mds-accordion-timer-item",[[1,"mds-accordion-timer-item",{typography:[1],selected:[516],description:[1],progress:[2],uuid:[2]}]]]],r)}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as r}from"./p-
|
|
1
|
+
import{p as e,b as r}from"./p-ae55d615.js";export{s as setNonce}from"./p-ae55d615.js";(()=>{const r=import.meta.url,s={};return""!==r&&(s.resourcesUrl=new URL(".",r).href),e(s)})().then((e=>r([["p-bfd4e138",[[1,"mds-accordion-timer-item",{typography:[1],selected:[516],description:[1],progress:[2],uuid:[2]}]]]],e)));
|
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-ef685e4f.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(n,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))r[e]=n[e]};return r(n,e)};return function(n,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,n,e,t){function i(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,a){function u(r){try{o(t.next(r))}catch(r){a(r)}}function f(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?e(r.value):i(r.value).then(u,f)}o((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(r){return function(n){return o([r,n])}}function o(f){if(t)throw new TypeError("Generator is already executing.");while(u&&(u=0,f[0]&&(e=0)),e)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:e.label++;return{value:f[1],done:false};case 5:e.label++;i=f[1];f=[0];continue;case 7:f=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){e=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){e.label=f[1];break}if(f[0]===6&&e.label<a[1]){e.label=a[1];a=f;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(f);break}if(a[2])e.ops.pop();e.trys.pop();continue}f=n.call(r,e)}catch(r){f=[6,r];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,a;t<i;t++){if(a||!(t in n)){if(!a)a=Array.prototype.slice.call(n,0,t);a[t]=n[t]}}return r.concat(a||Array.prototype.slice.call(n))};System.register([],(function(r,n){"use strict";return{execute:function(){var e=this;var t="mds-accordion-timer-item";var i;var a;var u=false;var f=false;var o=function(r,n){if(n===void 0){n=""}{return function(){return}}};var v=function(r,n){{return function(){return}}};var l="{visibility:hidden}[hydrated]{visibility:inherit}";var c={};var s=function(r){return r!=null};var d=function(r){r=typeof r;return r==="object"||r==="function"};function h(r){var n,e,t;return(t=(e=(n=r.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&t!==void 0?t:undefined}var y=r("h",(function(r,n){var e=[];for(var t=2;t<arguments.length;t++){e[t-2]=arguments[t]}var i=null;var a=false;var u=false;var f=[];var o=function(n){for(var e=0;e<n.length;e++){i=n[e];if(Array.isArray(i)){o(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof r!=="function"&&!d(i)){i=String(i)}if(a&&u){f[f.length-1].t+=i}else{f.push(a?p(null,i):i)}u=a}}};o(e);if(n){{var v=n.className||n.class;if(v){n.class=typeof v!=="object"?v:Object.keys(v).filter((function(r){return v[r]})).join(" ")}}}var l=p(r,null);l.i=n;if(f.length>0){l.u=f}return l}));var p=function(r,n){var e={o:0,v:r,t:n,l:null,u:null};{e.i=null}return e};var w=r("H",{});var m=function(r){return r&&r.v===w};var b=function(r,n){if(r!=null&&!d(r)){if(n&4){return r==="false"?false:r===""||!!r}if(n&2){return parseFloat(r)}if(n&1){return String(r)}return r}return r};var _=function(r){return ur(r).$hostElement$};var $=r("c",(function(r,n,e){var t=_(r);return{emit:function(r){return S(t,n,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:r})}}}));var S=function(r,n,e){var t=pr.ce(n,e);r.dispatchEvent(t);return t};var g=new WeakMap;var j=function(r,n,e){var t=dr.get(r);if(mr&&e){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}dr.set(r,t)};var A=function(r,n,e){var t;var i=O(n);var a=dr.get(i);r=r.nodeType===11?r:yr;if(a){if(typeof a==="string"){r=r.head||r;var u=g.get(r);var f=void 0;if(!u){g.set(r,u=new Set)}if(!u.has(i)){{f=yr.createElement("style");f.innerHTML=a;var o=(t=pr.h)!==null&&t!==void 0?t:h(yr);if(o!=null){f.setAttribute("nonce",o)}r.insertBefore(f,r.querySelector("link"))}if(u){u.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var k=function(r){var n=r.p;var e=r.$hostElement$;var t=n.o;var i=o("attachStyles",n.m);var a=A(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(t&10){e["s-sc"]=a;e.classList.add(a+"-h")}i()};var O=function(r,n){return"sc-"+r.m};var M=function(r,n,e,t,i,a){if(e!==t){var u=vr(r,n);var f=n.toLowerCase();if(n==="class"){var o=r.classList;var v=C(e);var l=C(t);o.remove.apply(o,v.filter((function(r){return r&&!l.includes(r)})));o.add.apply(o,l.filter((function(r){return r&&!v.includes(r)})))}else if(!u&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(vr(hr,f)){n=f.slice(2)}else{n=f[2]+n.slice(3)}if(e){pr.rel(r,n,e,false)}if(t){pr.ael(r,n,t,false)}}else{var c=d(t);if((u||c&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var s=t==null?"":t;if(n==="list"){u=false}else if(e==null||r[n]!=s){r[n]=s}}else{r[n]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(n)===""){{r.removeAttribute(n)}}}else if((!u||a&4||i)&&!c){t=t===true?"":t;{r.setAttribute(n,t)}}}}};var x=/\s/;var C=function(r){return!r?[]:r.split(x)};var P=function(r,n,e,t){var i=n.l.nodeType===11&&n.l.host?n.l.host:n.l;var a=r&&r.i||c;var u=n.i||c;{for(t in a){if(!(t in u)){M(i,t,a[t],undefined,e,n.o)}}}for(t in u){M(i,t,a[t],u[t],e,n.o)}};var E=function(r,n,e,t){var a=n.u[e];var f=0;var o;var v;if(a.t!==null){o=a.l=yr.createTextNode(a.t)}else{o=a.l=yr.createElement(a.v);{P(null,a,u)}if(s(i)&&o["s-si"]!==i){o.classList.add(o["s-si"]=i)}if(a.u){for(f=0;f<a.u.length;++f){v=E(r,a,f);if(v){o.appendChild(v)}}}}return o};var T=function(r,n,e,t,i,u){var f=r;var o;if(f.shadowRoot&&f.tagName===a){f=f.shadowRoot}for(;i<=u;++i){if(t[i]){o=E(null,e,i);if(o){t[i].l=o;f.insertBefore(o,n)}}}};var U=function(r,n,e){for(var t=n;t<=e;++t){var i=r[t];if(i){var a=i.l;if(a){a.remove()}}}};var N=function(r,n,e,t){var i=0;var a=0;var u=n.length-1;var f=n[0];var o=n[u];var v=t.length-1;var l=t[0];var c=t[v];var s;while(i<=u&&a<=v){if(f==null){f=n[++i]}else if(o==null){o=n[--u]}else if(l==null){l=t[++a]}else if(c==null){c=t[--v]}else if(F(f,l)){H(f,l);f=n[++i];l=t[++a]}else if(F(o,c)){H(o,c);o=n[--u];c=t[--v]}else if(F(f,c)){H(f,c);r.insertBefore(f.l,o.l.nextSibling);f=n[++i];c=t[--v]}else if(F(o,l)){H(o,l);r.insertBefore(o.l,f.l);o=n[--u];l=t[++a]}else{{s=E(n&&n[a],e,a);l=t[++a]}if(s){{f.l.parentNode.insertBefore(s,f.l)}}}}if(i>u){T(r,t[v+1]==null?null:t[v+1].l,e,t,a,v)}else if(a>v){U(n,i,u)}};var F=function(r,n){if(r.v===n.v){return true}return false};var H=function(r,n){var e=n.l=r.l;var t=r.u;var i=n.u;var a=n.v;var f=n.t;if(f===null){{if(a==="slot");else{P(r,n,u)}}if(t!==null&&i!==null){N(e,t,n,i)}else if(i!==null){if(r.t!==null){e.textContent=""}T(e,null,n,i,0,i.length-1)}else if(t!==null){U(t,0,t.length-1)}}else if(r.t!==f){e.data=f}};var L=function(r,n,e){if(e===void 0){e=false}var t=r.$hostElement$;var u=r.p;var f=r._||p(null,null);var o=m(n)?n:y(null,null,n);a=t.tagName;if(u.$){o.i=o.i||{};u.$.map((function(r){var n=r[0],e=r[1];return o.i[e]=t[n]}))}if(e&&o.i){for(var v=0,l=Object.keys(o.i);v<l.length;v++){var c=l[v];if(t.hasAttribute(c)&&!["key","ref","style","class"].includes(c)){o.i[c]=t[c]}}}o.v=null;o.o|=4;r._=o;o.l=f.l=t.shadowRoot||t;{i=t["s-sc"]}H(f,o)};var W=function(r,n){if(n&&!r.S&&n["s-p"]){n["s-p"].push(new Promise((function(n){return r.S=n})))}};var q=function(r,n){{r.o|=16}if(r.o&4){r.o|=512;return}W(r,r.j);var e=function(){return G(r,n)};return Ar(e)};var G=function(r,n){var e=o("scheduleUpdate",r.p.m);var t=r.A;var i;e();return I(i,(function(){return V(r,t,n)}))};var I=function(r,n){return R(r)?r.then(n):n()};var R=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var V=function(r,n,t){return __awaiter(e,void 0,void 0,(function(){var e,i,a,u,f,v,l;return __generator(this,(function(c){i=r.$hostElement$;a=o("update",r.p.m);u=i["s-rc"];if(t){k(r)}f=o("render",r.p.m);{z(r,n,i,t)}if(u){u.map((function(r){return r()}));i["s-rc"]=undefined}f();a();{v=(e=i["s-p"])!==null&&e!==void 0?e:[];l=function(){return B(r)};if(v.length===0){l()}else{Promise.all(v).then(l);r.o|=4;v.length=0}}return[2]}))}))};var z=function(r,n,e,t){try{n=n.render();{r.o&=~16}{r.o|=2}{{{L(r,n,t)}}}}catch(n){lr(n,r.$hostElement$)}return null};var B=function(r){var n=r.p.m;var e=r.$hostElement$;var t=o("postUpdate",n);var i=r.j;if(!(r.o&64)){r.o|=64;{J(e)}t();{r.k(e);if(!i){D()}}}else{t()}{if(r.S){r.S();r.S=undefined}if(r.o&512){jr((function(){return q(r,false)}))}r.o&=~(4|512)}};var D=function(r){{J(yr.documentElement)}jr((function(){return S(hr,"appload",{detail:{namespace:t}})}))};var J=function(r){return r.setAttribute("hydrated","")};var K=function(r,n){return ur(r).O.get(n)};var Q=function(r,n,e,t){var i=ur(r);var a=i.O.get(n);var u=i.o;var f=i.A;e=b(e,t.M[n][0]);var o=Number.isNaN(a)&&Number.isNaN(e);var v=e!==a&&!o;if((!(u&8)||a===undefined)&&v){i.O.set(n,e);if(f){if((u&(2|16))===2){q(i,false)}}}};var X=function(r,n,e){var t;if(n.M){var i=Object.entries(n.M);var a=r.prototype;i.map((function(r){var t=r[0],i=r[1][0];if(i&31||e&2&&i&32){Object.defineProperty(a,t,{get:function(){return K(this,t)},set:function(r){Q(this,t,r,n)},configurable:true,enumerable:true})}}));if(e&1){var u=new Map;a.attributeChangedCallback=function(r,e,t){var i=this;pr.jmp((function(){var f=u.get(r);if(i.hasOwnProperty(f)){t=i[f];delete i[f]}else if(a.hasOwnProperty(f)&&typeof i[f]==="number"&&i[f]==t){return}else if(f==null){var o=ur(i);var v=o===null||o===void 0?void 0:o.o;if(!(v&8)&&v&128&&t!==e){var l=o.A;var c=n.C[r];c===null||c===void 0?void 0:c.forEach((function(n){if(l[n]!=null){l[n].call(l,t,e,r)}}))}return}i[f]=t===null&&typeof i[f]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=n.C)!==null&&t!==void 0?t:{}),true),i.filter((function(r){var n=r[0],e=r[1];return e[0]&15})).map((function(r){var e=r[0],t=r[1];var i=t[1]||e;u.set(i,e);if(t[0]&512){n.$.push([e,i])}return i})),true)))}}return r};var Y=function(r,n,t,i){return __awaiter(e,void 0,void 0,(function(){var r,e,i,a,u,f,l,c;return __generator(this,(function(s){switch(s.label){case 0:if(!((n.o&32)===0))return[3,3];n.o|=32;r=sr(t);if(!r.then)return[3,2];e=v();return[4,r];case 1:r=s.sent();e();s.label=2;case 2:if(!r.isProxied){X(r,t,2);r.isProxied=true}i=o("createInstance",t.m);{n.o|=8}try{new r(n)}catch(r){lr(r)}{n.o&=~8}i();if(r.style){a=r.style;u=O(t);if(!dr.has(u)){f=o("registerStyles",t.m);j(u,a,!!(t.o&1));f()}}s.label=3;case 3:l=n.j;c=function(){return q(n,true)};if(l&&l["s-rc"]){l["s-rc"].push(c)}else{c()}return[2]}}))}))};var Z=function(r){};var rr=function(r){if((pr.o&1)===0){var n=ur(r);var e=n.p;var t=o("connectedCallback",e.m);if(!(n.o&1)){n.o|=1;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){W(n,n.j=i);break}}}if(e.M){Object.entries(e.M).map((function(n){var e=n[0],t=n[1][0];if(t&31&&r.hasOwnProperty(e)){var i=r[e];delete r[e];r[e]=i}}))}{Y(r,n,e)}}else{if(n===null||n===void 0?void 0:n.A);else if(n===null||n===void 0?void 0:n.P){n.P.then((function(){return Z()}))}}t()}};var nr=function(r){};var er=function(r){return __awaiter(e,void 0,void 0,(function(){var n;return __generator(this,(function(e){if((pr.o&1)===0){n=ur(r);if(n===null||n===void 0?void 0:n.A);else if(n===null||n===void 0?void 0:n.P){n.P.then((function(){return nr()}))}}return[2]}))}))};var tr=r("b",(function(r,n){if(n===void 0){n={}}var e;var t=o();var i=[];var a=n.exclude||[];var u=hr.customElements;var f=yr.head;var v=f.querySelector("meta[charset]");var c=yr.createElement("style");var s=[];var d;var y=true;Object.assign(pr,n);pr.T=new URL(n.resourcesUrl||"./",yr.baseURI).href;r.map((function(r){r[1].map((function(n){var e={o:n[0],m:n[1],M:n[2],U:n[3]};{e.M=n[2]}{e.$=[]}var t=e.m;var f=function(r){__extends(n,r);function n(n){var t=r.call(this,n)||this;n=t;or(n,e);if(e.o&1){{{n.attachShadow({mode:"open"})}}}return t}n.prototype.connectedCallback=function(){var r=this;if(d){clearTimeout(d);d=null}if(y){s.push(this)}else{pr.jmp((function(){return rr(r)}))}};n.prototype.disconnectedCallback=function(){var r=this;pr.jmp((function(){return er(r)}))};n.prototype.componentOnReady=function(){return ur(this).P};return n}(HTMLElement);e.N=r[0];if(!a.includes(t)&&!u.get(t)){i.push(t);u.define(t,X(f,e,1))}}))}));{c.innerHTML=i+l;c.setAttribute("data-styles","");var p=(e=pr.h)!==null&&e!==void 0?e:h(yr);if(p!=null){c.setAttribute("nonce",p)}f.insertBefore(c,v?v.nextSibling:f.firstChild)}y=false;if(s.length){s.map((function(r){return r.connectedCallback()}))}else{{pr.jmp((function(){return d=setTimeout(D,30)}))}}t()}));var ir=r("s",(function(r){return pr.h=r}));var ar=new WeakMap;var ur=function(r){return ar.get(r)};var fr=r("r",(function(r,n){return ar.set(n.A=r,n)}));var or=function(r,n){var e={o:0,$hostElement$:r,p:n,O:new Map};{e.P=new Promise((function(r){return e.k=r}));r["s-p"]=[];r["s-rc"]=[]}return ar.set(r,e)};var vr=function(r,n){return n in r};var lr=function(r,n){return(0,console.error)(r,n)};var cr=new Map;var sr=function(r,e,t){var i=r.m.replace(/-/g,"_");var a=r.N;var u=cr.get(a);if(u){return u[i]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import("./".concat(a,".entry.js").concat("")).then((function(r){{cr.set(a,r)}return r[i]}),lr)};var dr=new Map;var hr=typeof window!=="undefined"?window:{};var yr=hr.document||{head:{}};var pr={o:0,T:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,n,e,t){return r.addEventListener(n,e,t)},rel:function(r,n,e,t){return r.removeEventListener(n,e,t)},ce:function(r,n){return new CustomEvent(r,n)}};var wr=r("p",(function(r){return Promise.resolve(r)}));var mr=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var br=[];var _r=[];var $r=function(r,n){return function(e){r.push(e);if(!f){f=true;if(n&&pr.o&4){jr(gr)}else{pr.raf(gr)}}}};var Sr=function(r){for(var n=0;n<r.length;n++){try{r[n](performance.now())}catch(r){lr(r)}}r.length=0};var gr=function(){Sr(br);{Sr(_r);if(f=br.length>0){pr.raf(gr)}}};var jr=function(r){return wr().then(r)};var Ar=$r(_r,true)}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,e,t=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,e,...t)=>{let l=null,s=!1,i=!1;const r=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!o(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?c(null,l):l),i=s)};if(u(t),e){const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}const a=c(n,null);return a.l=e,r.length>0&&(a.o=r),a},c=(n,e)=>({i:0,u:n,t:e,m:null,o:null,l:null}),r={},u=(n,e,t)=>{const l=(n=>L(n).$hostElement$)(n);return{emit:n=>a(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},a=(n,e,t)=>{const l=G.ce(e,t);return n.dispatchEvent(l),l},f=new WeakMap,d=n=>"sc-"+n.$,m=(n,e,t,l,s,i)=>{if(t!==l){let c=W(n,e),r=e.toLowerCase();if("class"===e){const e=n.classList,o=$(t),s=$(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if(c||"o"!==e[0]||"n"!==e[1]){const r=o(l);if((c||r&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?c=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(e)||n.removeAttribute(e):(!c||4&i||s)&&!r&&n.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):W(B,r)?r.slice(2):r[2]+e.slice(3),t&&G.rel(n,e,t,!1),l&&G.ael(n,e,l,!1)}},y=/\s/,$=n=>n?n.split(y):[],h=(n,e,t,o)=>{const s=11===e.m.nodeType&&e.m.host?e.m.host:e.m,i=n&&n.l||l,c=e.l||l;for(o in i)o in c||m(s,o,i[o],void 0,t,e.i);for(o in c)m(s,o,i[o],c[o],t,e.i)},p=(e,t,l)=>{const o=t.o[l];let s,i,c=0;if(null!==o.t)s=o.m=D.createTextNode(o.t);else if(s=o.m=D.createElement(o.u),h(null,o,!1),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),o.o)for(c=0;c<o.o.length;++c)i=p(e,o,c),i&&s.appendChild(i);return s},v=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=p(null,l,s),c&&(o[s].m=c,r.insertBefore(c,t)))},b=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.m;n&&n.remove()}}},w=(n,e)=>n.u===e.u,S=(n,e)=>{const t=e.m=n.m,l=n.o,o=e.o,s=e.t;null===s?("slot"===e.u||h(n,e,!1),null!==l&&null!==o?((n,e,t,l)=>{let o,s=0,i=0,c=e.length-1,r=e[0],u=e[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=e[++s]:null==u?u=e[--c]:null==f?f=l[++i]:null==d?d=l[--a]:w(r,f)?(S(r,f),r=e[++s],f=l[++i]):w(u,d)?(S(u,d),u=e[--c],d=l[--a]):w(r,d)?(S(r,d),n.insertBefore(r.m,u.m.nextSibling),r=e[++s],d=l[--a]):w(u,f)?(S(u,f),n.insertBefore(u.m,r.m),u=e[--c],f=l[++i]):(o=p(e&&e[i],t,i),f=l[++i],o&&r.m.parentNode.insertBefore(o,r.m));s>c?v(n,null==l[a+1]?null:l[a+1].m,t,l,i,a):i>a&&b(e,s,c)})(t,l,e,o):null!==o?(null!==n.t&&(t.textContent=""),v(t,null,e,o,0,o.length-1)):null!==l&&b(l,0,l.length-1)):n.t!==s&&(t.data=s)},g=(n,e)=>{e&&!n.h&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.h=e)))},j=(n,e)=>{if(n.i|=16,!(4&n.i))return g(n,n.p),en((()=>M(n,e)));n.i|=512},M=(n,e)=>{const t=n.v;return O(void 0,(()=>C(n,t,e)))},O=(n,e)=>k(n)?n.then(e):e(),k=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,C=async(n,e,t)=>{var l;const o=n.$hostElement$,i=o["s-rc"];t&&(n=>{const e=n.S,t=n.$hostElement$,l=e.i,o=((n,e)=>{var t;const l=d(e),o=z.get(l);if(n=11===n.nodeType?n:D,o)if("string"==typeof o){let e,i=f.get(n=n.head||n);if(i||f.set(n,i=new Set),!i.has(l)){{e=D.createElement("style"),e.innerHTML=o;const l=null!==(t=G.j)&&void 0!==t?t:s(D);null!=l&&e.setAttribute("nonce",l),n.insertBefore(e,n.querySelector("link"))}i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(n);P(n,e,o,t),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const e=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>x(n);0===e.length?t():(Promise.all(e).then(t),n.i|=4,e.length=0)}},P=(t,l,o,s)=>{try{l=l.render(),t.i&=-17,t.i|=2,((t,l,o=!1)=>{const s=t.$hostElement$,u=t.S,a=t.M||c(null,null),f=(n=>n&&n.u===r)(l)?l:i(null,null,l);if(e=s.tagName,u.O&&(f.l=f.l||{},u.O.map((([n,e])=>f.l[e]=s[n]))),o&&f.l)for(const n of Object.keys(f.l))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(f.l[n]=s[n]);f.u=null,f.i|=4,t.M=f,f.m=a.m=s.shadowRoot||s,n=s["s-sc"],S(a,f)})(t,l,s)}catch(n){q(n,t.$hostElement$)}return null},x=n=>{const e=n.$hostElement$,t=n.p;64&n.i||(n.i|=64,E(e),n.k(e),t||A()),n.h&&(n.h(),n.h=void 0),512&n.i&&nn((()=>j(n,!1))),n.i&=-517},A=()=>{E(D.documentElement),nn((()=>a(B,"appload",{detail:{namespace:"mds-accordion-timer-item"}})))},E=n=>n.setAttribute("hydrated",""),N=(n,e,t)=>{var l;if(e.C){const s=Object.entries(e.C),i=n.prototype;if(s.map((([n,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(i,n,{get(){return((n,e)=>L(this).P.get(e))(0,n)},set(t){((n,e,t,l)=>{const s=L(n),i=s.P.get(e),c=s.i,r=s.v;t=((n,e)=>null==n||o(n)?n:4&e?"false"!==n&&(""===n||!!n):2&e?parseFloat(n):1&e?n+"":n)(t,l.C[e][0]),8&c&&void 0!==i||t===i||Number.isNaN(i)&&Number.isNaN(t)||(s.P.set(e,t),r&&2==(18&c)&&j(s,!1))})(this,n,t,e)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;i.attributeChangedCallback=function(n,l,o){G.jmp((()=>{const s=t.get(n);if(this.hasOwnProperty(s))o=this[s],delete this[s];else{if(i.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==o)return;if(null==s){const t=L(this),s=null==t?void 0:t.i;if(!(8&s)&&128&s&&o!==l){const s=t.v,i=e.A[n];null==i||i.forEach((e=>{null!=s[e]&&s[e].call(s,o,l,n)}))}return}}this[s]=(null!==o||"boolean"!=typeof this[s])&&o}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=e.A)&&void 0!==l?l:{}),...s.filter((([n,e])=>15&e[0])).map((([n,l])=>{const o=l[1]||n;return t.set(o,n),512&l[0]&&e.O.push([n,o]),o}))]))}}return n},T=(n,e={})=>{var t;const l=[],o=e.exclude||[],i=B.customElements,c=D.head,r=c.querySelector("meta[charset]"),u=D.createElement("style"),a=[];let f,m=!0;Object.assign(G,e),G.N=new URL(e.resourcesUrl||"./",D.baseURI).href,n.map((n=>{n[1].map((e=>{const t={i:e[0],$:e[1],C:e[2],T:e[3]};t.C=e[2],t.O=[];const s=t.$,c=class extends HTMLElement{constructor(n){super(n),U(n=this,t),1&t.i&&n.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),m?a.push(this):G.jmp((()=>(n=>{if(0==(1&G.i)){const e=L(n),t=e.S,l=()=>{};if(1&e.i)(null==e?void 0:e.v)||(null==e?void 0:e.F)&&e.F.then((()=>{}));else{e.i|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){g(e,e.p=t);break}}t.C&&Object.entries(t.C).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.i)){e.i|=32;{if(l=_(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(N(l,t,2),l.isProxied=!0);const n=()=>{};e.i|=8;try{new l(e)}catch(n){q(n)}e.i&=-9,n()}if(l.style){let n=l.style;const e=d(t);if(!z.has(e)){const l=()=>{};((n,e,t)=>{let l=z.get(n);J&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,z.set(n,l)})(e,n,!!(1&t.i)),l()}}}const o=e.p,s=()=>j(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(async()=>{if(0==(1&G.i)){const n=L(this);(null==n?void 0:n.v)||(null==n?void 0:n.F)&&n.F.then((()=>{}))}})()))}componentOnReady(){return L(this).F}};t.H=n[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,N(c,t,1)))}))}));{u.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(t=G.j)&&void 0!==t?t:s(D);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}m=!1,a.length?a.map((n=>n.connectedCallback())):G.jmp((()=>f=setTimeout(A,30)))},F=n=>G.j=n,H=new WeakMap,L=n=>H.get(n),R=(n,e)=>H.set(e.v=n,e),U=(n,e)=>{const t={i:0,$hostElement$:n,S:e,P:new Map};return t.F=new Promise((n=>t.k=n)),n["s-p"]=[],n["s-rc"]=[],H.set(n,t)},W=(n,e)=>e in n,q=(n,e)=>(0,console.error)(n,e),V=new Map,_=n=>{const e=n.$.replace(/-/g,"_"),t=n.H,l=V.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(V.set(t,n),n[e])),q)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},D=B.document||{head:{}},G={i:0,N:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},I=n=>Promise.resolve(n),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),K=[],Q=[],X=(n,e)=>l=>{n.push(l),t||(t=!0,e&&4&G.i?nn(Z):G.raf(Z))},Y=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){q(n)}n.length=0},Z=()=>{Y(K),Y(Q),(t=K.length>0)&&G.raf(Z)},nn=n=>I().then(n),en=X(Q,!0);export{r as H,T as b,u as c,i as h,I as p,R as r,F as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as i,h as r,H as t}from"./p-
|
|
1
|
+
import{r as o,c as i,h as r,H as t}from"./p-ae55d615.js";const s=class{constructor(r){o(this,r),this.clickSelectEvent=i(this,"mdsAccordionTimerItemClickSelect",7),this.selectedMouseEnterEvent=i(this,"mdsAccordionTimerItemMouseEnterSelect",7),this.selectedMouseLeaveEvent=i(this,"mdsAccordionTimerItemMouseLeaveSelect",7),this.toggle=()=>{this.selected=!this.selected,this.progress=0,this.selected&&this.clickSelectEvent.emit({selected:this.selected,uuid:this.uuid})},this.mouseEnter=()=>{this.selected&&this.selectedMouseEnterEvent.emit({selected:this.selected,uuid:this.uuid})},this.mouseLeave=()=>{this.selected&&this.selectedMouseLeaveEvent.emit({selected:this.selected,uuid:this.uuid})},this.typography="h5",this.selected=!1,this.description=void 0,this.progress=0,this.uuid=0}render(){var o;return r(t,{onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave},r("div",{class:"row"},r("mds-progress",{class:"progress-bar",progress:Number(null===(o=this.progress)||void 0===o?void 0:o.toFixed(2)),direction:"vertical"}),r("div",{class:"accordion"},r("button",{"aria-controls":"contents","aria-expanded":this.selected?"true":"false",class:"action focusable",id:"action",onClick:this.toggle,role:"button",tabindex:"0"},r("mds-text",{typography:this.typography},this.description)),r("div",{class:"contents",id:"contents"},r("div",{class:"contents-expander"},r("slot",null))))))}};s.style="@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";export{s as mds_accordion_timer_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-6f6de960.system.js"],(function(o){"use strict";var r,i,t,e;return{setters:[function(o){r=o.r;i=o.c;t=o.h;e=o.H}],execute:function(){var n="@tailwind components; .focus-off,.focusable,.focusable-light,.focusable-light-off{-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform}.focus-on,.focusable-light:focus-visible,.focusable:focus-visible{--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}.fixed{position:fixed}.absolute{position:absolute}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-accordion-timer-item-progress-bar-color:var(--mds-accordion-timer-progress-bar-color, rgb(var(--tone-neutral-03)));--mds-accordion-timer-item-progress-bar-background:var(--mds-accordion-timer-progress-bar-background, rgb(var(--tone-neutral-08)));--mds-accordion-timer-item-progress-bar-thickness:var(--mds-accordion-timer-progress-bar-thickness, 0.25rem);--mds-accordion-timer-item-duration:var(--mds-accordion-timer-duration, 500ms);padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--mds-accordion-timer-item-color, rgb(var(--tone-neutral-02)));display:grid;position:relative}.row{gap:1rem;display:-ms-flexbox;display:flex}.accordion{display:grid}.progress-bar{--mds-progress-color:var(--mds-accordion-timer-item-progress-bar-color);--mds-progress-background:var(--mds-accordion-timer-item-progress-bar-background);--mds-progress-thickness:var(--mds-accordion-timer-item-progress-bar-thickness);-ms-flex-negative:0;flex-shrink:0}.action{border-radius:0.75rem;background-color:transparent;border:0;cursor:pointer;padding:0;text-align:left}:host([selected]) .action{cursor:auto}.contents{gap:1rem;-webkit-transition-timing-function:cubic-bezier(1, 0, 0, 1);transition-timing-function:cubic-bezier(1, 0, 0, 1);display:grid;grid-template-rows:0fr;min-height:0;opacity:0;overflow:hidden;padding-top:0;-webkit-transition-duration:var(--mds-accordion-timer-item-duration);transition-duration:var(--mds-accordion-timer-item-duration);-webkit-transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding;transition-property:grid-template-rows opacity padding, -ms-grid-rows opacity padding}.contents-expander{min-height:0}:host([selected]) .contents{padding-top:1rem;opacity:1;grid-template-rows:1fr}";var s=o("mds_accordion_timer_item",function(){function o(o){var t=this;r(this,o);this.clickSelectEvent=i(this,"mdsAccordionTimerItemClickSelect",7);this.selectedMouseEnterEvent=i(this,"mdsAccordionTimerItemMouseEnterSelect",7);this.selectedMouseLeaveEvent=i(this,"mdsAccordionTimerItemMouseLeaveSelect",7);this.toggle=function(){t.selected=!t.selected;t.progress=0;if(t.selected){t.clickSelectEvent.emit({selected:t.selected,uuid:t.uuid})}};this.mouseEnter=function(){if(t.selected){t.selectedMouseEnterEvent.emit({selected:t.selected,uuid:t.uuid})}};this.mouseLeave=function(){if(t.selected){t.selectedMouseLeaveEvent.emit({selected:t.selected,uuid:t.uuid})}};this.typography="h5";this.selected=false;this.description=undefined;this.progress=0;this.uuid=0}o.prototype.render=function(){var o;return t(e,{onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave},t("div",{class:"row"},t("mds-progress",{class:"progress-bar",progress:Number((o=this.progress)===null||o===void 0?void 0:o.toFixed(2)),direction:"vertical"}),t("div",{class:"accordion"},t("button",{"aria-controls":"contents","aria-expanded":this.selected?"true":"false",class:"action focusable",id:"action",onClick:this.toggle,role:"button",tabindex:"0"},t("mds-text",{typography:this.typography},this.description)),t("div",{class:"contents",id:"contents"},t("div",{class:"contents-expander"},t("slot",null))))))};return o}());s.style=n}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-6f6de960.system.js"],(function(e,t){"use strict";var r,n;return{setters:[function(t){r=t.p;n=t.b;e("setNonce",t.s)}],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-d6674445.system",[[1,"mds-accordion-timer-item",{typography:[1],selected:[516],description:[1],progress:[2],uuid:[2]}]]]],e)}))}}}));
|
package/dist/stats.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-
|
|
2
|
+
"timestamp": "2023-10-19T09:48:37",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
|
-
"version": "18.
|
|
5
|
+
"version": "18.16.1"
|
|
6
6
|
},
|
|
7
7
|
"app": {
|
|
8
8
|
"namespace": "MdsAccordionTimerItem",
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"name": "dist-lazy",
|
|
59
59
|
"files": 35,
|
|
60
60
|
"generatedFiles": [
|
|
61
|
-
"./dist/cjs/index-
|
|
61
|
+
"./dist/cjs/index-e23d5ad6.js",
|
|
62
62
|
"./dist/cjs/index.cjs.js",
|
|
63
63
|
"./dist/cjs/loader.cjs.js",
|
|
64
64
|
"./dist/cjs/mds-accordion-timer-item.cjs.entry.js",
|
|
65
65
|
"./dist/cjs/mds-accordion-timer-item.cjs.js",
|
|
66
|
-
"./dist/esm-es5/index-
|
|
66
|
+
"./dist/esm-es5/index-6704f580.js",
|
|
67
67
|
"./dist/esm-es5/index.js",
|
|
68
68
|
"./dist/esm-es5/loader.js",
|
|
69
69
|
"./dist/esm-es5/mds-accordion-timer-item.entry.js",
|
|
70
70
|
"./dist/esm-es5/mds-accordion-timer-item.js",
|
|
71
|
-
"./dist/esm/index-
|
|
71
|
+
"./dist/esm/index-6704f580.js",
|
|
72
72
|
"./dist/esm/index.js",
|
|
73
73
|
"./dist/esm/loader.js",
|
|
74
74
|
"./dist/esm/mds-accordion-timer-item.entry.js",
|
|
@@ -79,20 +79,20 @@
|
|
|
79
79
|
"./dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js",
|
|
80
80
|
"./dist/mds-accordion-timer-item/mds-accordion-timer-item.js",
|
|
81
81
|
"./dist/mds-accordion-timer-item/p-50ea2036.system.js",
|
|
82
|
-
"./dist/mds-accordion-timer-item/p-
|
|
83
|
-
"./dist/mds-accordion-timer-item/p-
|
|
84
|
-
"./dist/mds-accordion-timer-item/p-
|
|
85
|
-
"./dist/mds-accordion-timer-item/p-
|
|
86
|
-
"./dist/mds-accordion-timer-item/p-
|
|
82
|
+
"./dist/mds-accordion-timer-item/p-6f6de960.system.js",
|
|
83
|
+
"./dist/mds-accordion-timer-item/p-ae55d615.js",
|
|
84
|
+
"./dist/mds-accordion-timer-item/p-bfd4e138.entry.js",
|
|
85
|
+
"./dist/mds-accordion-timer-item/p-d6674445.system.entry.js",
|
|
86
|
+
"./dist/mds-accordion-timer-item/p-ef685e4f.system.js",
|
|
87
87
|
"./www/build/index.esm.js",
|
|
88
88
|
"./www/build/mds-accordion-timer-item.esm.js",
|
|
89
89
|
"./www/build/mds-accordion-timer-item.js",
|
|
90
90
|
"./www/build/p-50ea2036.system.js",
|
|
91
|
-
"./www/build/p-
|
|
92
|
-
"./www/build/p-
|
|
93
|
-
"./www/build/p-
|
|
94
|
-
"./www/build/p-
|
|
95
|
-
"./www/build/p-
|
|
91
|
+
"./www/build/p-6f6de960.system.js",
|
|
92
|
+
"./www/build/p-ae55d615.js",
|
|
93
|
+
"./www/build/p-bfd4e138.entry.js",
|
|
94
|
+
"./www/build/p-d6674445.system.entry.js",
|
|
95
|
+
"./www/build/p-ef685e4f.system.js"
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
98
|
{
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
"components": [
|
|
126
126
|
"mds-accordion-timer-item"
|
|
127
127
|
],
|
|
128
|
-
"bundleId": "p-
|
|
129
|
-
"fileName": "p-
|
|
128
|
+
"bundleId": "p-bfd4e138",
|
|
129
|
+
"fileName": "p-bfd4e138.entry.js",
|
|
130
130
|
"imports": [
|
|
131
|
-
"p-
|
|
131
|
+
"p-ae55d615.js"
|
|
132
132
|
],
|
|
133
|
-
"originalByteSize":
|
|
133
|
+
"originalByteSize": 6311
|
|
134
134
|
}
|
|
135
135
|
],
|
|
136
136
|
"esm": [
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
"bundleId": "mds-accordion-timer-item",
|
|
143
143
|
"fileName": "mds-accordion-timer-item.entry.js",
|
|
144
144
|
"imports": [
|
|
145
|
-
"index-
|
|
145
|
+
"index-6704f580.js"
|
|
146
146
|
],
|
|
147
|
-
"originalByteSize":
|
|
147
|
+
"originalByteSize": 6315
|
|
148
148
|
}
|
|
149
149
|
],
|
|
150
150
|
"es5": [
|
|
@@ -156,9 +156,9 @@
|
|
|
156
156
|
"bundleId": "mds-accordion-timer-item",
|
|
157
157
|
"fileName": "mds-accordion-timer-item.entry.js",
|
|
158
158
|
"imports": [
|
|
159
|
-
"index-
|
|
159
|
+
"index-6704f580.js"
|
|
160
160
|
],
|
|
161
|
-
"originalByteSize":
|
|
161
|
+
"originalByteSize": 6315
|
|
162
162
|
}
|
|
163
163
|
],
|
|
164
164
|
"system": [
|
|
@@ -167,12 +167,12 @@
|
|
|
167
167
|
"components": [
|
|
168
168
|
"mds-accordion-timer-item"
|
|
169
169
|
],
|
|
170
|
-
"bundleId": "p-
|
|
171
|
-
"fileName": "p-
|
|
170
|
+
"bundleId": "p-d6674445.system",
|
|
171
|
+
"fileName": "p-d6674445.system.entry.js",
|
|
172
172
|
"imports": [
|
|
173
|
-
"p-
|
|
173
|
+
"p-6f6de960.system.js"
|
|
174
174
|
],
|
|
175
|
-
"originalByteSize":
|
|
175
|
+
"originalByteSize": 6767
|
|
176
176
|
}
|
|
177
177
|
],
|
|
178
178
|
"commonjs": [
|
|
@@ -184,9 +184,9 @@
|
|
|
184
184
|
"bundleId": "mds-accordion-timer-item.cjs",
|
|
185
185
|
"fileName": "mds-accordion-timer-item.cjs.entry.js",
|
|
186
186
|
"imports": [
|
|
187
|
-
"index-
|
|
187
|
+
"index-e23d5ad6.js"
|
|
188
188
|
],
|
|
189
|
-
"originalByteSize":
|
|
189
|
+
"originalByteSize": 6427
|
|
190
190
|
}
|
|
191
191
|
]
|
|
192
192
|
},
|
|
@@ -406,6 +406,8 @@
|
|
|
406
406
|
{
|
|
407
407
|
"cmps": [
|
|
408
408
|
{
|
|
409
|
+
"attachInternalsMemberName": null,
|
|
410
|
+
"formAssociated": false,
|
|
409
411
|
"tagName": "mds-accordion-timer-item",
|
|
410
412
|
"excludeFromCollection": false,
|
|
411
413
|
"isCollectionDependency": false,
|
|
@@ -736,7 +738,7 @@
|
|
|
736
738
|
],
|
|
737
739
|
"componentGraph": {
|
|
738
740
|
"sc-mds-accordion-timer-item": [
|
|
739
|
-
"p-
|
|
741
|
+
"p-ae55d615.js"
|
|
740
742
|
]
|
|
741
743
|
},
|
|
742
744
|
"sourceGraph": {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const unslugName: (name: string) => string;
|
|
2
2
|
declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string;
|
|
3
3
|
declare const hashValue: (value: string) => string;
|
|
4
|
-
|
|
4
|
+
declare const hashRandomValue: (value?: string) => string;
|
|
5
|
+
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
|
|
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
|
|
|
3
3
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
4
|
}
|
|
5
5
|
export interface ComponentOptions {
|
|
6
|
+
/**
|
|
7
|
+
* When set to `true` this component will be form-associated. See
|
|
8
|
+
* https://stenciljs.com/docs/next/form-associated documentation on how to
|
|
9
|
+
* build form-associated Stencil components that integrate into forms like
|
|
10
|
+
* native browser elements such as `<input>` and `<textarea>`.
|
|
11
|
+
*
|
|
12
|
+
* The {@link AttachInternals} decorator allows for access to the
|
|
13
|
+
* `ElementInternals` object to modify the associated form.
|
|
14
|
+
*/
|
|
15
|
+
formAssociated?: boolean;
|
|
6
16
|
/**
|
|
7
17
|
* Tag name of the web component. Ideally, the tag name must be globally unique,
|
|
8
18
|
* so it's recommended to choose an unique prefix for all your components within the same collection.
|
|
@@ -107,6 +117,9 @@ export interface EventOptions {
|
|
|
107
117
|
*/
|
|
108
118
|
composed?: boolean;
|
|
109
119
|
}
|
|
120
|
+
export interface AttachInternalsDecorator {
|
|
121
|
+
(): PropertyDecorator;
|
|
122
|
+
}
|
|
110
123
|
export interface ListenDecorator {
|
|
111
124
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
112
125
|
}
|
|
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
|
|
|
175
188
|
* https://stenciljs.com/docs/events
|
|
176
189
|
*/
|
|
177
190
|
export declare const Event: EventDecorator;
|
|
191
|
+
/**
|
|
192
|
+
* If the `formAssociated` option is set in options passed to the
|
|
193
|
+
* `@Component()` decorator then this decorator may be used to get access to the
|
|
194
|
+
* `ElementInternals` instance associated with the component.
|
|
195
|
+
*/
|
|
196
|
+
export declare const AttachInternals: AttachInternalsDecorator;
|
|
178
197
|
/**
|
|
179
198
|
* The `Listen()` decorator is for listening DOM events, including the ones
|
|
180
199
|
* dispatched from `@Events()`.
|
package/documentation.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-
|
|
2
|
+
"timestamp": "2023-10-19T09:23:19",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
6
|
-
"typescriptVersion": "5.
|
|
5
|
+
"version": "4.5.0",
|
|
6
|
+
"typescriptVersion": "5.2.2"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
9
9
|
{
|
|
10
10
|
"filePath": "src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx",
|
|
11
11
|
"encapsulation": "shadow",
|
|
12
12
|
"tag": "mds-accordion-timer-item",
|
|
13
|
-
"readme": "# mds-accordion-timer-item\n\n\n",
|
|
14
|
-
"docs": "",
|
|
13
|
+
"readme": "# mds-accordion-timer-item\n\n\n\nThis is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), 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.\n",
|
|
14
|
+
"docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), 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.",
|
|
15
15
|
"docsTags": [
|
|
16
16
|
{
|
|
17
17
|
"name": "slot",
|
|
@@ -438,6 +438,11 @@
|
|
|
438
438
|
"docstring": "",
|
|
439
439
|
"path": "src/components/mds-form/meta/types.ts"
|
|
440
440
|
},
|
|
441
|
+
"src/components/mds-header-bar/meta/types.ts::MenuType": {
|
|
442
|
+
"declaration": "export type MenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
|
|
443
|
+
"docstring": "",
|
|
444
|
+
"path": "src/components/mds-header-bar/meta/types.ts"
|
|
445
|
+
},
|
|
441
446
|
"src/components/mds-header/meta/event-detail.ts::MdsHeaderEventDetail": {
|
|
442
447
|
"declaration": "export interface MdsHeaderEventDetail {\n bar: HTMLMdsHeaderBarElement\n}",
|
|
443
448
|
"docstring": "",
|
|
@@ -543,6 +548,11 @@
|
|
|
543
548
|
"docstring": "",
|
|
544
549
|
"path": "src/components/mds-paginator/meta/event-detail.ts"
|
|
545
550
|
},
|
|
551
|
+
"src/components/mds-price-table-features-cell/meta/types.ts::PriceTableFeaturesCellType": {
|
|
552
|
+
"declaration": "export type PriceTableFeaturesCellType =\n | 'custom'\n | 'label'\n | 'supported'\n | 'text'\n | 'unsupported'",
|
|
553
|
+
"docstring": "",
|
|
554
|
+
"path": "src/components/mds-price-table-features-cell/meta/types.ts"
|
|
555
|
+
},
|
|
546
556
|
"src/components/mds-progress/meta/types.ts::DirectionType": {
|
|
547
557
|
"declaration": "export type DirectionType =\n | 'horizontal'\n | 'vertical'",
|
|
548
558
|
"docstring": "",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-accordion-timer-item",
|
|
3
|
-
"version": "3.3.
|
|
4
|
-
"description": "mds-accordion-timer-item is a web-component from
|
|
3
|
+
"version": "3.3.2",
|
|
4
|
+
"description": "mds-accordion-timer-item is a web-component from Magma Design System, 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
6
|
"module": "dist/index.js",
|
|
7
7
|
"es2015": "dist/esm/index.mjs",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"test": "stencil test --spec --e2e"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@maggioli-design-system/mds-progress": "^2.6.
|
|
28
|
-
"@maggioli-design-system/mds-text": "^3.4.
|
|
27
|
+
"@maggioli-design-system/mds-progress": "^2.6.2",
|
|
28
|
+
"@maggioli-design-system/mds-text": "^3.4.3",
|
|
29
29
|
"@maggioli-design-system/styles": "^11.7.0",
|
|
30
|
-
"@stencil/core": "^4.
|
|
30
|
+
"@stencil/core": "^4.3.0"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"author": {
|
package/readme.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), 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.
|
|
6
|
+
|
|
5
7
|
<!-- Auto Generated Below -->
|
|
6
8
|
|
|
7
9
|
|
|
@@ -60,4 +62,4 @@ graph TD;
|
|
|
60
62
|
|
|
61
63
|
----------------------------------------------
|
|
62
64
|
|
|
63
|
-
Built with love @
|
|
65
|
+
Built with love @ [Gruppo Maggioli](https://www.maggioli.com) from [R&D Department](https://www.maggioli.com/it-it/chi-siamo/ricerca-sviluppo)
|
package/src/common/aria.ts
CHANGED
|
@@ -6,6 +6,8 @@ const hash = (s: string): string => {
|
|
|
6
6
|
return h.toString()
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
const randomInt = (max: number): number => Math.floor(Math.random() * max)
|
|
10
|
+
|
|
9
11
|
const unslugName = (name: string): string => {
|
|
10
12
|
return name.split('/')?.slice(-1).pop()?.replace(/-/g, ' ') ?? name
|
|
11
13
|
}
|
|
@@ -20,8 +22,18 @@ const setAttributeIfEmpty = (element: HTMLElement, attribute: string, value: str
|
|
|
20
22
|
|
|
21
23
|
const hashValue = (value: string): string => `${value}-${hash(value)}`
|
|
22
24
|
|
|
25
|
+
const hashRandomValue = (value?: string): string => {
|
|
26
|
+
const randomValue = randomInt(1000000)
|
|
27
|
+
if (value) {
|
|
28
|
+
return `${value}-${hash(randomValue.toString())}`
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return hash(randomValue.toString())
|
|
32
|
+
}
|
|
33
|
+
|
|
23
34
|
export {
|
|
24
35
|
unslugName,
|
|
25
36
|
setAttributeIfEmpty,
|
|
37
|
+
hashRandomValue,
|
|
26
38
|
hashValue,
|
|
27
39
|
}
|
|
@@ -32,14 +32,14 @@ export class KeyboardManager {
|
|
|
32
32
|
|
|
33
33
|
attachEscapeBehavior = (callBack: () => void): void => {
|
|
34
34
|
this.escapeCallback = callBack
|
|
35
|
-
if (
|
|
35
|
+
if (window !== undefined) {
|
|
36
36
|
window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
detachEscapeBehavior = (): void => {
|
|
41
41
|
this.escapeCallback = () => {return}
|
|
42
|
-
if (
|
|
42
|
+
if (window !== undefined) {
|
|
43
43
|
window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
|
|
44
44
|
}
|
|
45
45
|
}
|