@maggioli-design-system/mds-progress 2.5.0 → 2.6.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-1d846f7a.js → index-91e137c8.js} +216 -47
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/mds-progress.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/common/aria.js +9 -1
- package/dist/collection/common/unit.js +10 -0
- package/dist/collection/components/mds-progress/mds-progress.css +4 -10
- package/dist/collection/components/mds-progress/mds-progress.js +5 -3
- package/dist/collection/components/mds-progress/test/mds-progress.e2e.js +10 -0
- package/dist/collection/components/mds-progress/test/mds-progress.stories.js +3 -3
- package/dist/collection/dictionary/button.js +5 -1
- package/dist/collection/dictionary/icon.js +2 -2
- package/dist/collection/dictionary/variant.js +9 -1
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.js +1 -2
- package/dist/components/mds-progress.js +5 -2
- package/dist/documentation.d.ts +361 -88
- package/dist/documentation.json +49 -5
- package/dist/esm/{index-b254472d.js → index-fbed50ee.js} +216 -47
- package/dist/esm/loader.js +4 -13
- package/dist/esm/mds-progress.entry.js +2 -2
- package/dist/esm/mds-progress.js +4 -4
- package/dist/esm-es5/index-fbed50ee.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-progress.js +1 -1
- package/dist/mds-progress/mds-progress.esm.js +1 -1
- package/dist/mds-progress/mds-progress.js +2 -6
- package/dist/mds-progress/p-0f4e300d.entry.js +1 -0
- package/dist/mds-progress/p-83f968eb.js +2 -0
- package/dist/mds-progress/p-bce00c63.system.entry.js +1 -0
- package/dist/mds-progress/p-e8e08781.system.js +2 -0
- package/dist/mds-progress/p-fdd5b8c4.system.js +1 -0
- package/dist/stats.json +44 -40
- package/dist/types/common/aria.d.ts +2 -1
- package/dist/types/common/unit.d.ts +2 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +32 -17
- package/dist/types/type/button.d.ts +1 -0
- package/dist/types/type/variant.d.ts +1 -0
- package/documentation.json +391 -7
- package/loader/index.d.ts +2 -2
- package/package.json +4 -4
- package/readme.md +3 -1
- package/src/common/aria.ts +12 -0
- package/src/common/unit.ts +14 -0
- package/src/components/mds-progress/mds-progress.css +6 -11
- package/src/components/mds-progress/readme.md +1 -1
- package/src/components.d.ts +2 -0
- package/src/dictionary/button.ts +7 -1
- package/src/dictionary/variant.ts +10 -0
- package/src/fixtures/icons.json +41 -0
- package/src/fixtures/iconsauce.json +38 -0
- package/src/type/button.ts +4 -0
- package/src/type/variant.ts +9 -0
- package/www/build/mds-progress.esm.js +1 -1
- package/www/build/mds-progress.js +2 -6
- package/www/build/p-0f4e300d.entry.js +1 -0
- package/www/build/p-83f968eb.js +2 -0
- package/www/build/p-bce00c63.system.entry.js +1 -0
- package/www/build/p-e8e08781.system.js +2 -0
- package/www/build/p-fdd5b8c4.system.js +1 -0
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm-es5/index-b254472d.js +0 -2
- package/dist/mds-progress/p-86f204e8.system.js +0 -2
- package/dist/mds-progress/p-a3294ed0.system.js +0 -1
- package/dist/mds-progress/p-a8e1043f.entry.js +0 -1
- package/dist/mds-progress/p-d657b3ae.js +0 -2
- package/dist/mds-progress/p-de434aaf.system.entry.js +0 -1
- package/src/components/mds-progress/test/mds-progress.spec.tsx +0 -19
- package/www/build/p-86f204e8.system.js +0 -2
- package/www/build/p-a3294ed0.system.js +0 -1
- package/www/build/p-a8e1043f.entry.js +0 -1
- package/www/build/p-d657b3ae.js +0 -2
- package/www/build/p-de434aaf.system.entry.js +0 -1
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as bootstrapLazy}from"./index-fbed50ee.js";export{s as setNonce}from"./index-fbed50ee.js";var defineCustomElements=function(e,s){if(typeof window==="undefined")return undefined;return bootstrapLazy([["mds-progress",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],s)};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-fbed50ee.js";var mdsProgressCss='@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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:150ms;transition-duration:150ms;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction="vertical"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.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([variant="dark"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant="light"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant="error"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant="warning"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant="success"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant="info"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant="primary"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}';var MdsProgress=function(){function r(r){registerInstance(this,r);this.stepsList=new Array;this.currentStep=undefined;this.progress=0;this.direction="horizontal";this.variant="primary";this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}r.prototype.componentWillLoad=function(){this.stepsList=this.steps.split(",");this.setProgress(this.progress)};r.prototype.setProgress=function(r){if(this.steps){this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))];this.element.setAttribute("aria-valuetext",this.currentStep)}};r.prototype.progressChanged=function(r){this.setProgress(r)};r.prototype.stepsChanged=function(r){this.stepsList=r.split(",")};r.prototype.render=function(){return h(Host,{"aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":Math.round(this.progress*100),role:"progressbar"},h("div",{class:"progress",style:this.direction==="horizontal"?{flexGrow:"".concat(this.progress)}:{flexGrow:"".concat(this.progress),width:"100%"}}))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{progress:["progressChanged"],steps:["stepsChanged"]}},enumerable:false,configurable:true});return r}();MdsProgress.style=mdsProgressCss;export{MdsProgress as mds_progress};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-fbed50ee.js";export{s as setNonce}from"./index-fbed50ee.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-progress",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],e)}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as r}from"./p-83f968eb.js";export{s as setNonce}from"./p-83f968eb.js";(()=>{const s=import.meta.url,r={};return""!==s&&(r.resourcesUrl=new URL(".",s).href),e(r)})().then((s=>r([["p-0f4e300d",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],s)));
|
|
@@ -115,15 +115,11 @@ 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-fdd5b8c4.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
window.__cssshim.i().then(start);
|
|
124
|
-
} else {
|
|
125
|
-
start();
|
|
126
|
-
}
|
|
122
|
+
start();
|
|
127
123
|
|
|
128
124
|
// Note: using .call(window) here because the self-executing function needs
|
|
129
125
|
// to be scoped to the window object for the ES6Promise polyfill to work
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as o,H as s,g as t}from"./p-83f968eb.js";const i=class{constructor(o){r(this,o),this.stepsList=new Array,this.currentStep=void 0,this.progress=0,this.direction="horizontal",this.variant="primary",this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}componentWillLoad(){this.stepsList=this.steps.split(","),this.setProgress(this.progress)}setProgress(r){this.steps&&(this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))],this.element.setAttribute("aria-valuetext",this.currentStep))}progressChanged(r){this.setProgress(r)}stepsChanged(r){this.stepsList=r.split(",")}render(){return o(s,{"aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":Math.round(100*this.progress),role:"progressbar"},o("div",{class:"progress",style:"horizontal"===this.direction?{flexGrow:`${this.progress}`}:{flexGrow:`${this.progress}`,width:"100%"}}))}get element(){return t(this)}static get watchers(){return{progress:["progressChanged"],steps:["stepsChanged"]}}};i.style='@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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:150ms;transition-duration:150ms;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction="vertical"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.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([variant="dark"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant="light"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant="error"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant="warning"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant="success"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant="info"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant="primary"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}';export{i as mds_progress}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,t,e=!1;const l={},o=n=>"object"==(n=typeof n)||"function"===n;function s(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const i=(n,t,...e)=>{let l=null,s=!1,i=!1;const r=[],u=t=>{for(let e=0;e<t.length;e++)l=t[e],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(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=c(n,null);return a.l=t,r.length>0&&(a.o=r),a},c=(n,t)=>({i:0,u:n,t,h:null,o:null,l:null}),r={},u=n=>F(n).p,a=new WeakMap,f=n=>"sc-"+n.$,d=(n,t,e,l,s,i)=>{if(e!==l){let c=U(n,t);if(t.toLowerCase(),"class"===t){const t=n.classList,o=h(e),s=h(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else if("style"===t){for(const t in e)l&&null!=l[t]||(t.includes("-")?n.style.removeProperty(t):n.style[t]="");for(const t in l)e&&l[t]===e[t]||(t.includes("-")?n.style.setProperty(t,l[t]):n.style[t]=l[t])}else{const r=o(l);if((c||r&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}null==l||!1===l?!1===l&&""!==n.getAttribute(t)||n.removeAttribute(t):(!c||4&i||s)&&!r&&n.setAttribute(t,l=!0===l?"":l)}}},y=/\s/,h=n=>n?n.split(y):[],p=(n,t,e,o)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,i=n&&n.l||l,c=t.l||l;for(o in i)o in c||d(s,o,i[o],void 0,e,t.i);for(o in c)d(s,o,i[o],c[o],e,t.i)},$=(t,e,l)=>{const o=e.o[l];let s,i,c=0;if(s=o.h=D.createElement(o.u),p(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=$(t,o,c),i&&s.appendChild(i);return s},m=(n,e,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=$(null,l,s),c&&(o[s].h=c,r.insertBefore(c,e)))},v=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.h;n&&n.remove()}}},b=(n,t)=>n.u===t.u,w=(n,t)=>{const e=t.h=n.h,l=n.o,o=t.o;p(n,t,!1),null!==l&&null!==o?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:b(r,f)?(w(r,f),r=t[++s],f=l[++i]):b(u,d)?(w(u,d),u=t[--c],d=l[--a]):b(r,d)?(w(r,d),n.insertBefore(r.h,u.h.nextSibling),r=t[++s],d=l[--a]):b(u,f)?(w(u,f),n.insertBefore(u.h,r.h),u=t[--c],f=l[++i]):(o=$(t&&t[i],e,i),f=l[++i],o&&r.h.parentNode.insertBefore(o,r.h));s>c?m(n,null==l[a+1]?null:l[a+1].h,e,l,i,a):i>a&&v(t,s,c)})(e,l,t,o):null!==o?m(e,null,t,o,0,o.length-1):null!==l&&v(l,0,l.length-1)},S=(n,t)=>{t&&!n.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.m=t)))},g=(n,t)=>{if(n.i|=16,!(4&n.i))return S(n,n.v),tn((()=>j(n,t)));n.i|=512},j=(n,t)=>{const e=n.S;let l;return t&&(l=A(e,"componentWillLoad")),M(l,(()=>k(n,e,t)))},M=(n,t)=>O(n)?n.then(t):t(),O=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,k=async(n,t,e)=>{var l;const o=n.p,i=o["s-rc"];e&&(n=>{const t=n.g,e=n.p,l=t.i,o=((n,t)=>{var e;const l=f(t),o=z.get(l);if(n=11===n.nodeType?n:D,o)if("string"==typeof o){let t,i=a.get(n=n.head||n);if(i||a.set(n,i=new Set),!i.has(l)){{t=D.createElement("style"),t.innerHTML=o;const l=null!==(e=G.j)&&void 0!==e?e:s(D);null!=l&&t.setAttribute("nonce",l),n.insertBefore(t,n.querySelector("link"))}i&&i.add(l)}}else n.adoptedStyleSheets.includes(o)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,o]);return l})(e.shadowRoot?e.shadowRoot:e.getRootNode(),t);10&l&&(e["s-sc"]=o,e.classList.add(o+"-h"))})(n);C(n,t,o,e),i&&(i.map((n=>n())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],e=()=>P(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},C=(e,l,o,s)=>{try{l=l.render(),e.i&=-17,e.i|=2,((e,l,o=!1)=>{const s=e.p,u=e.g,a=e.M||c(null,null),f=(n=>n&&n.u===r)(l)?l:i(null,null,l);if(t=s.tagName,u.O&&(f.l=f.l||{},u.O.map((([n,t])=>f.l[t]=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,e.M=f,f.h=a.h=s.shadowRoot||s,n=s["s-sc"],w(a,f)})(e,l,s)}catch(n){q(n,e.p)}return null},P=n=>{const t=n.p,e=n.v;64&n.i||(n.i|=64,E(t),n.k(t),e||x()),n.m&&(n.m(),n.m=void 0),512&n.i&&nn((()=>g(n,!1))),n.i&=-517},x=()=>{E(D.documentElement),nn((()=>(n=>{const t=G.ce("appload",{detail:{namespace:"mds-progress"}});return n.dispatchEvent(t),t})(B)))},A=(n,t,e)=>{if(n&&n[t])try{return n[t](e)}catch(n){q(n)}},E=n=>n.setAttribute("hydrated",""),L=(n,t,e)=>{var l;if(t.C){n.watchers&&(t.P=n.watchers);const s=Object.entries(t.C),i=n.prototype;if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(i,n,{get(){return((n,t)=>F(this).A.get(t))(0,n)},set(e){((n,t,e,l)=>{const s=F(n),i=s.p,c=s.A.get(t),r=s.i,u=s.S;if(e=((n,t)=>null==n||o(n)?n:2&t?parseFloat(n):1&t?n+"":n)(e,l.C[t][0]),(!(8&r)||void 0===c)&&e!==c&&(!Number.isNaN(c)||!Number.isNaN(e))&&(s.A.set(t,e),u)){if(l.P&&128&r){const n=l.P[t];n&&n.map((n=>{try{u[n](e,c,t)}catch(n){q(n,i)}}))}2==(18&r)&&g(s,!1)}})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;i.attributeChangedCallback=function(n,l,o){G.jmp((()=>{const s=e.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 e=F(this),s=null==e?void 0:e.i;if(!(8&s)&&128&s&&o!==l){const s=e.S,i=t.P[n];null==i||i.forEach((t=>{null!=s[t]&&s[t].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=t.P)&&void 0!==l?l:{}),...s.filter((([n,t])=>15&t[0])).map((([n,l])=>{const o=l[1]||n;return e.set(o,n),512&l[0]&&t.O.push([n,o]),o}))]))}}return n},N=(n,t={})=>{var e;const l=[],o=t.exclude||[],i=B.customElements,c=D.head,r=c.querySelector("meta[charset]"),u=D.createElement("style"),a=[];let d,y=!0;Object.assign(G,t),G.L=new URL(t.resourcesUrl||"./",D.baseURI).href,n.map((n=>{n[1].map((t=>{var e;const s={i:t[0],$:t[1],C:t[2],N:t[3]};s.C=t[2],s.O=[],s.P=null!==(e=t[4])&&void 0!==e?e:{};const c=s.$,r=class extends HTMLElement{constructor(n){super(n),R(n=this,s),1&s.i&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?a.push(this):G.jmp((()=>(n=>{if(0==(1&G.i)){const t=F(n),e=t.g,l=()=>{};if(1&t.i)(null==t?void 0:t.S)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){S(t,t.v=e);break}}e.C&&Object.entries(e.C).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e,l,o)=>{if(0==(32&t.i)){t.i|=32;{if((o=_(e)).then){const n=()=>{};o=await o,n()}o.isProxied||(e.P=o.watchers,L(o,e,2),o.isProxied=!0);const n=()=>{};t.i|=8;try{new o(t)}catch(n){q(n)}t.i&=-9,t.i|=128,n()}if(o.style){let n=o.style;const t=f(e);if(!z.has(t)){const l=()=>{};((n,t,e)=>{let l=z.get(n);J&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,z.set(n,l)})(t,n,!!(1&e.i)),l()}}}const s=t.v,i=()=>g(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,e)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(async()=>{if(0==(1&G.i)){const n=F(this);(null==n?void 0:n.S)||(null==n?void 0:n.T)&&n.T.then((()=>{}))}})()))}componentOnReady(){return F(this).T}};s.W=n[0],o.includes(c)||i.get(c)||(l.push(c),i.define(c,L(r,s,1)))}))}));{u.innerHTML=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.setAttribute("data-styles","");const n=null!==(e=G.j)&&void 0!==e?e:s(D);null!=n&&u.setAttribute("nonce",n),c.insertBefore(u,r?r.nextSibling:c.firstChild)}y=!1,a.length?a.map((n=>n.connectedCallback())):G.jmp((()=>d=setTimeout(x,30)))},T=n=>G.j=n,W=new WeakMap,F=n=>W.get(n),H=(n,t)=>W.set(t.S=n,t),R=(n,t)=>{const e={i:0,p:n,g:t,A:new Map};return e.T=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],W.set(n,e)},U=(n,t)=>t in n,q=(n,t)=>(0,console.error)(n,t),V=new Map,_=n=>{const t=n.$.replace(/-/g,"_"),e=n.W,l=V.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(V.set(e,n),n[t])),q)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},D=B.document||{head:{}},G={i:0,L:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},I=n=>Promise.resolve(n),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),K=[],Q=[],X=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&G.i?nn(Z):G.raf(Z))},Y=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){q(n)}n.length=0},Z=()=>{Y(K),Y(Q),(e=K.length>0)&&G.raf(Z)},nn=n=>I().then(n),tn=X(Q,!0);export{r as H,N as b,u as g,i as h,I as p,H as r,T as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-e8e08781.system.js"],(function(r){"use strict";var o,s,t,e;return{setters:[function(r){o=r.r;s=r.h;t=r.H;e=r.g}],execute:function(){var i='@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-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:150ms;transition-duration:150ms;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction="vertical"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.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([variant="dark"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant="light"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant="error"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant="warning"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant="success"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant="info"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant="primary"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}';var n=r("mds_progress",function(){function r(r){o(this,r);this.stepsList=new Array;this.currentStep=undefined;this.progress=0;this.direction="horizontal";this.variant="primary";this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}r.prototype.componentWillLoad=function(){this.stepsList=this.steps.split(",");this.setProgress(this.progress)};r.prototype.setProgress=function(r){if(this.steps){this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))];this.element.setAttribute("aria-valuetext",this.currentStep)}};r.prototype.progressChanged=function(r){this.setProgress(r)};r.prototype.stepsChanged=function(r){this.stepsList=r.split(",")};r.prototype.render=function(){return s(t,{"aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":Math.round(this.progress*100),role:"progressbar"},s("div",{class:"progress",style:this.direction==="horizontal"?{flexGrow:"".concat(this.progress)}:{flexGrow:"".concat(this.progress),width:"100%"}}))};Object.defineProperty(r.prototype,"element",{get:function(){return e(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{progress:["progressChanged"],steps:["stepsChanged"]}},enumerable:false,configurable:true});return r}());n.style=i}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,r,t,n){function a(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?t(e.value):a(e.value).then(o,l)}u((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(r){return u([e,r])}}function u(l){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(t=0)),t)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;a=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1];i=l;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(l);break}if(i[2])t.ops.pop();t.trys.pop();continue}l=r.call(e,t)}catch(e){l=[6,e];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n<a;n++){if(i||!(n in r)){if(!i)i=Array.prototype.slice.call(r,0,n);i[n]=r[n]}}return e.concat(i||Array.prototype.slice.call(r))};System.register([],(function(e,r){"use strict";return{execute:function(){var t=this;var n="mds-progress";var a;var i;var o=false;var l=false;var u=function(e,r){if(r===void 0){r=""}{return function(){return}}};var s=function(e,r){{return function(){return}}};var f="{visibility:hidden}[hydrated]{visibility:inherit}";var c={};var $=function(e){return e!=null};var v=function(e){e=typeof e;return e==="object"||e==="function"};function d(e){var r,t,n;return(n=(t=(r=e.head)===null||r===void 0?void 0:r.querySelector('meta[name="csp-nonce"]'))===null||t===void 0?void 0:t.getAttribute("content"))!==null&&n!==void 0?n:undefined}var h=e("h",(function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var a=null;var i=false;var o=false;var l=[];var u=function(r){for(var t=0;t<r.length;t++){a=r[t];if(Array.isArray(a)){u(a)}else if(a!=null&&typeof a!=="boolean"){if(i=typeof e!=="function"&&!v(a)){a=String(a)}if(i&&o){l[l.length-1].$text$+=a}else{l.push(i?p(null,a):a)}o=i}}};u(t);if(r){{var s=r.className||r.class;if(s){r.class=typeof s!=="object"?s:Object.keys(s).filter((function(e){return s[e]})).join(" ")}}}var f=p(e,null);f.$attrs$=r;if(l.length>0){f.$children$=l}return f}));var p=function(e,r){var t={$flags$:0,$tag$:e,$text$:r,$elm$:null,$children$:null};{t.$attrs$=null}return t};var m=e("H",{});var y=function(e){return e&&e.$tag$===m};var g=function(e,r){if(e!=null&&!v(e)){if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var b=e("g",(function(e){return oe(e).$hostElement$}));var w=function(e,r,t){var n=pe.ce(r,t);e.dispatchEvent(n);return n};var _=new WeakMap;var S=function(e,r,t){var n=ve.get(e);if(ye&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}ve.set(e,n)};var R=function(e,r,t){var n;var a=A(r);var i=ve.get(a);e=e.nodeType===11?e:he;if(i){if(typeof i==="string"){e=e.head||e;var o=_.get(e);var l=void 0;if(!o){_.set(e,o=new Set)}if(!o.has(a)){{l=he.createElement("style");l.innerHTML=i;var u=(n=pe.$nonce$)!==null&&n!==void 0?n:d(he);if(u!=null){l.setAttribute("nonce",u)}e.insertBefore(l,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 N=function(e){var r=e.$cmpMeta$;var t=e.$hostElement$;var n=r.$flags$;var a=u("attachStyles",r.$tagName$);var i=R(t.shadowRoot?t.shadowRoot:t.getRootNode(),r);if(n&10){t["s-sc"]=i;t.classList.add(i+"-h")}a()};var A=function(e,r){return"sc-"+e.$tagName$};var P=function(e,r,t,n,a,i){if(t!==n){var o=se(e,r);r.toLowerCase();if(r==="class"){var l=e.classList;var u=j(t);var s=j(n);l.remove.apply(l,u.filter((function(e){return e&&!s.includes(e)})));l.add.apply(l,s.filter((function(e){return e&&!u.includes(e)})))}else if(r==="style"){{for(var f in t){if(!n||n[f]==null){if(f.includes("-")){e.style.removeProperty(f)}else{e.style[f]=""}}}}for(var f in n){if(!t||n[f]!==t[f]){if(f.includes("-")){e.style.setProperty(f,n[f])}else{e.style[f]=n[f]}}}}else{var c=v(n);if((o||c&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var $=n==null?"":n;if(r==="list"){o=false}else if(t==null||e[r]!=$){e[r]=$}}else{e[r]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!o||i&4||a)&&!c){n=n===true?"":n;{e.setAttribute(r,n)}}}}};var E=/\s/;var j=function(e){return!e?[]:e.split(E)};var C=function(e,r,t,n){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||c;var o=r.$attrs$||c;{for(n in i){if(!(n in o)){P(a,n,i[n],undefined,t,r.$flags$)}}}for(n in o){P(a,n,i[n],o[n],t,r.$flags$)}};var k=function(e,r,t,n){var i=r.$children$[t];var l=0;var u;var s;{u=i.$elm$=he.createElement(i.$tag$);{C(null,i,o)}if($(a)&&u["s-si"]!==a){u.classList.add(u["s-si"]=a)}if(i.$children$){for(l=0;l<i.$children$.length;++l){s=k(e,i,l);if(s){u.appendChild(s)}}}}return u};var x=function(e,r,t,n,a,o){var l=e;var u;if(l.shadowRoot&&l.tagName===i){l=l.shadowRoot}for(;a<=o;++a){if(n[a]){u=k(null,t,a);if(u){n[a].$elm$=u;l.insertBefore(u,r)}}}};var M=function(e,r,t){for(var n=r;n<=t;++n){var a=e[n];if(a){var i=a.$elm$;if(i){i.remove()}}}};var O=function(e,r,t,n){var a=0;var i=0;var o=r.length-1;var l=r[0];var u=r[o];var s=n.length-1;var f=n[0];var c=n[s];var $;while(a<=o&&i<=s){if(l==null){l=r[++a]}else if(u==null){u=r[--o]}else if(f==null){f=n[++i]}else if(c==null){c=n[--s]}else if(T(l,f)){L(l,f);l=r[++a];f=n[++i]}else if(T(u,c)){L(u,c);u=r[--o];c=n[--s]}else if(T(l,c)){L(l,c);e.insertBefore(l.$elm$,u.$elm$.nextSibling);l=r[++a];c=n[--s]}else if(T(u,f)){L(u,f);e.insertBefore(u.$elm$,l.$elm$);u=r[--o];f=n[++i]}else{{$=k(r&&r[i],t,i);f=n[++i]}if($){{l.$elm$.parentNode.insertBefore($,l.$elm$)}}}}if(a>o){x(e,n[s+1]==null?null:n[s+1].$elm$,t,n,i,s)}else if(i>s){M(r,a,o)}};var T=function(e,r){if(e.$tag$===r.$tag$){return true}return false};var L=function(e,r){var t=r.$elm$=e.$elm$;var n=e.$children$;var a=r.$children$;{{{C(e,r,o)}}if(n!==null&&a!==null){O(t,n,r,a)}else if(a!==null){x(t,null,r,a,0,a.length-1)}else if(n!==null){M(n,0,n.length-1)}}};var I=function(e,r,t){if(t===void 0){t=false}var n=e.$hostElement$;var o=e.$cmpMeta$;var l=e.$vnode$||p(null,null);var u=y(r)?r:h(null,null,r);i=n.tagName;if(o.$attrsToReflect$){u.$attrs$=u.$attrs$||{};o.$attrsToReflect$.map((function(e){var r=e[0],t=e[1];return u.$attrs$[t]=n[r]}))}if(t&&u.$attrs$){for(var s=0,f=Object.keys(u.$attrs$);s<f.length;s++){var c=f[s];if(n.hasAttribute(c)&&!["key","ref","style","class"].includes(c)){u.$attrs$[c]=n[c]}}}u.$tag$=null;u.$flags$|=4;e.$vnode$=u;u.$elm$=l.$elm$=n.shadowRoot||n;{a=n["s-sc"]}L(l,u)};var z=function(e,r){if(r&&!e.$onRenderResolve$&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.$onRenderResolve$=r})))}};var B=function(e,r){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}z(e,e.$ancestorComponent$);var t=function(){return U(e,r)};return Ne(t)};var U=function(e,r){var t=u("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(r){{a=D(n,"componentWillLoad")}}t();return q(a,(function(){return V(e,n,r)}))};var q=function(e,r){return H(e)?e.then(r):r()};var H=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var V=function(e,r,n){return __awaiter(t,void 0,void 0,(function(){var t,a,i,o,l,s,f;return __generator(this,(function(c){a=e.$hostElement$;i=u("update",e.$cmpMeta$.$tagName$);o=a["s-rc"];if(n){N(e)}l=u("render",e.$cmpMeta$.$tagName$);{W(e,r,a,n)}if(o){o.map((function(e){return e()}));a["s-rc"]=undefined}l();i();{s=(t=a["s-p"])!==null&&t!==void 0?t:[];f=function(){return F(e)};if(s.length===0){f()}else{Promise.all(s).then(f);e.$flags$|=4;s.length=0}}return[2]}))}))};var W=function(e,r,t,n){try{r=r.render();{e.$flags$&=~16}{e.$flags$|=2}{{{I(e,r,n)}}}}catch(r){fe(r,e.$hostElement$)}return null};var F=function(e){var r=e.$cmpMeta$.$tagName$;var t=e.$hostElement$;var n=u("postUpdate",r);var a=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{J(t)}n();{e.$onReadyResolve$(t);if(!a){G()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){Re((function(){return B(e,false)}))}e.$flags$&=~(4|512)}};var G=function(e){{J(he.documentElement)}Re((function(){return w(de,"appload",{detail:{namespace:n}})}))};var D=function(e,r,t){if(e&&e[r]){try{return e[r](t)}catch(e){fe(e)}}return undefined};var J=function(e){return e.setAttribute("hydrated","")};var K=function(e,r){return oe(e).$instanceValues$.get(r)};var Q=function(e,r,t,n){var a=oe(e);var i=a.$hostElement$;var o=a.$instanceValues$.get(r);var l=a.$flags$;var u=a.$lazyInstance$;t=g(t,n.$members$[r][0]);var s=Number.isNaN(o)&&Number.isNaN(t);var f=t!==o&&!s;if((!(l&8)||o===undefined)&&f){a.$instanceValues$.set(r,t);if(u){if(n.$watchers$&&l&128){var c=n.$watchers$[r];if(c){c.map((function(e){try{u[e](t,o,r)}catch(e){fe(e,i)}}))}}if((l&(2|16))===2){B(a,false)}}}};var X=function(e,r,t){var n;if(r.$members$){if(e.watchers){r.$watchers$=e.watchers}var a=Object.entries(r.$members$);var i=e.prototype;a.map((function(e){var n=e[0],a=e[1][0];if(a&31||t&2&&a&32){Object.defineProperty(i,n,{get:function(){return K(this,n)},set:function(e){Q(this,n,e,r)},configurable:true,enumerable:true})}}));if(t&1){var o=new Map;i.attributeChangedCallback=function(e,t,n){var a=this;pe.jmp((function(){var l=o.get(e);if(a.hasOwnProperty(l)){n=a[l];delete a[l]}else if(i.hasOwnProperty(l)&&typeof a[l]==="number"&&a[l]==n){return}else if(l==null){var u=oe(a);var s=u===null||u===void 0?void 0:u.$flags$;if(!(s&8)&&s&128&&n!==t){var f=u.$lazyInstance$;var c=r.$watchers$[e];c===null||c===void 0?void 0:c.forEach((function(r){if(f[r]!=null){f[r].call(f,n,t,e)}}))}return}a[l]=n===null&&typeof a[l]==="boolean"?false:n}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((n=r.$watchers$)!==null&&n!==void 0?n:{}),true),a.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var a=n[1]||t;o.set(a,t);if(n[0]&512){r.$attrsToReflect$.push([t,a])}return a})),true)))}}return e};var Y=function(e,r,n,a,i){return __awaiter(t,void 0,void 0,(function(){var e,t,a,o,l,f,c;return __generator(this,(function($){switch($.label){case 0:if(!((r.$flags$&32)===0))return[3,3];r.$flags$|=32;i=$e(n);if(!i.then)return[3,2];e=s();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){{n.$watchers$=i.watchers}X(i,n,2);i.isProxied=true}t=u("createInstance",n.$tagName$);{r.$flags$|=8}try{new i(r)}catch(e){fe(e)}{r.$flags$&=~8}{r.$flags$|=128}t();if(i.style){a=i.style;o=A(n);if(!ve.has(o)){l=u("registerStyles",n.$tagName$);S(o,a,!!(n.$flags$&1));l()}}$.label=3;case 3:f=r.$ancestorComponent$;c=function(){return B(r,true)};if(f&&f["s-rc"]){f["s-rc"].push(c)}else{c()}return[2]}}))}))};var Z=function(e){};var ee=function(e){if((pe.$flags$&1)===0){var r=oe(e);var t=r.$cmpMeta$;var n=u("connectedCallback",t.$tagName$);if(!(r.$flags$&1)){r.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){z(r,r.$ancestorComponent$=a);break}}}if(t.$members$){Object.entries(t.$members$).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var a=e[t];delete e[t];e[t]=a}}))}{Y(e,r,t)}}else{if(r===null||r===void 0?void 0:r.$lazyInstance$);else if(r===null||r===void 0?void 0:r.$onReadyPromise$){r.$onReadyPromise$.then((function(){return Z()}))}}n()}};var re=function(e){};var te=function(e){return __awaiter(t,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((pe.$flags$&1)===0){r=oe(e);if(r===null||r===void 0?void 0:r.$lazyInstance$);else if(r===null||r===void 0?void 0:r.$onReadyPromise$){r.$onReadyPromise$.then((function(){return re()}))}}return[2]}))}))};var ne=e("b",(function(e,r){if(r===void 0){r={}}var t;var n=u();var a=[];var i=r.exclude||[];var o=de.customElements;var l=he.head;var s=l.querySelector("meta[charset]");var c=he.createElement("style");var $=[];var v;var h=true;Object.assign(pe,r);pe.$resourcesUrl$=new URL(r.resourcesUrl||"./",he.baseURI).href;e.map((function(e){e[1].map((function(r){var t;var n={$flags$:r[0],$tagName$:r[1],$members$:r[2],$listeners$:r[3]};{n.$members$=r[2]}{n.$attrsToReflect$=[]}{n.$watchers$=(t=r[4])!==null&&t!==void 0?t:{}}var l=n.$tagName$;var u=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;r=t;ue(r,n);if(n.$flags$&1){{{r.attachShadow({mode:"open"})}}}return t}r.prototype.connectedCallback=function(){var e=this;if(v){clearTimeout(v);v=null}if(h){$.push(this)}else{pe.jmp((function(){return ee(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;pe.jmp((function(){return te(e)}))};r.prototype.componentOnReady=function(){return oe(this).$onReadyPromise$};return r}(HTMLElement);n.$lazyBundleId$=e[0];if(!i.includes(l)&&!o.get(l)){a.push(l);o.define(l,X(u,n,1))}}))}));{c.innerHTML=a+f;c.setAttribute("data-styles","");var p=(t=pe.$nonce$)!==null&&t!==void 0?t:d(he);if(p!=null){c.setAttribute("nonce",p)}l.insertBefore(c,s?s.nextSibling:l.firstChild)}h=false;if($.length){$.map((function(e){return e.connectedCallback()}))}else{{pe.jmp((function(){return v=setTimeout(G,30)}))}}n()}));var ae=e("s",(function(e){return pe.$nonce$=e}));var ie=new WeakMap;var oe=function(e){return ie.get(e)};var le=e("r",(function(e,r){return ie.set(r.$lazyInstance$=e,r)}));var ue=function(e,r){var t={$flags$:0,$hostElement$:e,$cmpMeta$:r,$instanceValues$:new Map};{t.$onReadyPromise$=new Promise((function(e){return t.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}return ie.set(e,t)};var se=function(e,r){return r in e};var fe=function(e,r){return(0,console.error)(e,r)};var ce=new Map;var $e=function(e,t,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var o=ce.get(i);if(o){return o[a]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return r.import("./".concat(i,".entry.js").concat("")).then((function(e){{ce.set(i,e)}return e[a]}),fe)};var ve=new Map;var de=typeof window!=="undefined"?window:{};var he=de.document||{head:{}};var pe={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var me=e("p",(function(e){return Promise.resolve(e)}));var ye=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var ge=[];var be=[];var we=function(e,r){return function(t){e.push(t);if(!l){l=true;if(r&&pe.$flags$&4){Re(Se)}else{pe.raf(Se)}}}};var _e=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){fe(e)}}e.length=0};var Se=function(){_e(ge);{_e(be);if(l=ge.length>0){pe.raf(Se)}}};var Re=function(e){return me().then(e)};var Ne=we(be,true)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-e8e08781.system.js"],(function(e,r){"use strict";var s,t;return{setters:[function(r){s=r.p;t=r.b;e("setNonce",r.s)}],execute:function(){var e=function(){var e=r.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return s(t)};e().then((function(e){return t([["p-bce00c63.system",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],e)}))}}}));
|
package/dist/stats.json
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-
|
|
2
|
+
"timestamp": "2023-09-27T11:27:42",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
|
-
"version": "18.
|
|
5
|
+
"version": "18.16.1"
|
|
6
6
|
},
|
|
7
7
|
"app": {
|
|
8
8
|
"namespace": "MdsProgress",
|
|
9
9
|
"fsNamespace": "mds-progress",
|
|
10
10
|
"components": 1,
|
|
11
11
|
"entries": 1,
|
|
12
|
-
"bundles":
|
|
12
|
+
"bundles": 69,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 28,
|
|
17
17
|
"generatedFiles": [
|
|
18
18
|
"./dist/collection/common/aria.js",
|
|
19
19
|
"./dist/collection/common/keyboard-manager.js",
|
|
20
|
+
"./dist/collection/common/unit.js",
|
|
20
21
|
"./dist/collection/components/mds-progress/mds-progress.js",
|
|
21
22
|
"./dist/collection/components/mds-progress/meta/dictionary.js",
|
|
22
23
|
"./dist/collection/components/mds-progress/meta/types.js",
|
|
24
|
+
"./dist/collection/components/mds-progress/test/mds-progress.e2e.js",
|
|
23
25
|
"./dist/collection/components/mds-progress/test/mds-progress.stories.js",
|
|
24
26
|
"./dist/collection/dictionary/autocomplete.js",
|
|
25
27
|
"./dist/collection/dictionary/button.js",
|
|
@@ -57,17 +59,17 @@
|
|
|
57
59
|
"name": "dist-lazy",
|
|
58
60
|
"files": 35,
|
|
59
61
|
"generatedFiles": [
|
|
60
|
-
"./dist/cjs/index-
|
|
62
|
+
"./dist/cjs/index-91e137c8.js",
|
|
61
63
|
"./dist/cjs/index.cjs.js",
|
|
62
64
|
"./dist/cjs/loader.cjs.js",
|
|
63
65
|
"./dist/cjs/mds-progress.cjs.entry.js",
|
|
64
66
|
"./dist/cjs/mds-progress.cjs.js",
|
|
65
|
-
"./dist/esm-es5/index-
|
|
67
|
+
"./dist/esm-es5/index-fbed50ee.js",
|
|
66
68
|
"./dist/esm-es5/index.js",
|
|
67
69
|
"./dist/esm-es5/loader.js",
|
|
68
70
|
"./dist/esm-es5/mds-progress.entry.js",
|
|
69
71
|
"./dist/esm-es5/mds-progress.js",
|
|
70
|
-
"./dist/esm/index-
|
|
72
|
+
"./dist/esm/index-fbed50ee.js",
|
|
71
73
|
"./dist/esm/index.js",
|
|
72
74
|
"./dist/esm/loader.js",
|
|
73
75
|
"./dist/esm/mds-progress.entry.js",
|
|
@@ -77,21 +79,21 @@
|
|
|
77
79
|
"./dist/mds-progress/index.esm.js",
|
|
78
80
|
"./dist/mds-progress/mds-progress.esm.js",
|
|
79
81
|
"./dist/mds-progress/mds-progress.js",
|
|
82
|
+
"./dist/mds-progress/p-0f4e300d.entry.js",
|
|
80
83
|
"./dist/mds-progress/p-50ea2036.system.js",
|
|
81
|
-
"./dist/mds-progress/p-
|
|
82
|
-
"./dist/mds-progress/p-
|
|
83
|
-
"./dist/mds-progress/p-
|
|
84
|
-
"./dist/mds-progress/p-
|
|
85
|
-
"./dist/mds-progress/p-de434aaf.system.entry.js",
|
|
84
|
+
"./dist/mds-progress/p-83f968eb.js",
|
|
85
|
+
"./dist/mds-progress/p-bce00c63.system.entry.js",
|
|
86
|
+
"./dist/mds-progress/p-e8e08781.system.js",
|
|
87
|
+
"./dist/mds-progress/p-fdd5b8c4.system.js",
|
|
86
88
|
"./www/build/index.esm.js",
|
|
87
89
|
"./www/build/mds-progress.esm.js",
|
|
88
90
|
"./www/build/mds-progress.js",
|
|
91
|
+
"./www/build/p-0f4e300d.entry.js",
|
|
89
92
|
"./www/build/p-50ea2036.system.js",
|
|
90
|
-
"./www/build/p-
|
|
91
|
-
"./www/build/p-
|
|
92
|
-
"./www/build/p-
|
|
93
|
-
"./www/build/p-
|
|
94
|
-
"./www/build/p-de434aaf.system.entry.js"
|
|
93
|
+
"./www/build/p-83f968eb.js",
|
|
94
|
+
"./www/build/p-bce00c63.system.entry.js",
|
|
95
|
+
"./www/build/p-e8e08781.system.js",
|
|
96
|
+
"./www/build/p-fdd5b8c4.system.js"
|
|
95
97
|
]
|
|
96
98
|
},
|
|
97
99
|
{
|
|
@@ -124,12 +126,12 @@
|
|
|
124
126
|
"components": [
|
|
125
127
|
"mds-progress"
|
|
126
128
|
],
|
|
127
|
-
"bundleId": "p-
|
|
128
|
-
"fileName": "p-
|
|
129
|
+
"bundleId": "p-0f4e300d",
|
|
130
|
+
"fileName": "p-0f4e300d.entry.js",
|
|
129
131
|
"imports": [
|
|
130
|
-
"p-
|
|
132
|
+
"p-83f968eb.js"
|
|
131
133
|
],
|
|
132
|
-
"originalByteSize":
|
|
134
|
+
"originalByteSize": 4569
|
|
133
135
|
}
|
|
134
136
|
],
|
|
135
137
|
"esm": [
|
|
@@ -141,9 +143,9 @@
|
|
|
141
143
|
"bundleId": "mds-progress",
|
|
142
144
|
"fileName": "mds-progress.entry.js",
|
|
143
145
|
"imports": [
|
|
144
|
-
"index-
|
|
146
|
+
"index-fbed50ee.js"
|
|
145
147
|
],
|
|
146
|
-
"originalByteSize":
|
|
148
|
+
"originalByteSize": 4573
|
|
147
149
|
}
|
|
148
150
|
],
|
|
149
151
|
"es5": [
|
|
@@ -155,9 +157,9 @@
|
|
|
155
157
|
"bundleId": "mds-progress",
|
|
156
158
|
"fileName": "mds-progress.entry.js",
|
|
157
159
|
"imports": [
|
|
158
|
-
"index-
|
|
160
|
+
"index-fbed50ee.js"
|
|
159
161
|
],
|
|
160
|
-
"originalByteSize":
|
|
162
|
+
"originalByteSize": 4573
|
|
161
163
|
}
|
|
162
164
|
],
|
|
163
165
|
"system": [
|
|
@@ -166,12 +168,12 @@
|
|
|
166
168
|
"components": [
|
|
167
169
|
"mds-progress"
|
|
168
170
|
],
|
|
169
|
-
"bundleId": "p-
|
|
170
|
-
"fileName": "p-
|
|
171
|
+
"bundleId": "p-bce00c63.system",
|
|
172
|
+
"fileName": "p-bce00c63.system.entry.js",
|
|
171
173
|
"imports": [
|
|
172
|
-
"p-
|
|
174
|
+
"p-e8e08781.system.js"
|
|
173
175
|
],
|
|
174
|
-
"originalByteSize":
|
|
176
|
+
"originalByteSize": 5028
|
|
175
177
|
}
|
|
176
178
|
],
|
|
177
179
|
"commonjs": [
|
|
@@ -183,9 +185,9 @@
|
|
|
183
185
|
"bundleId": "mds-progress.cjs",
|
|
184
186
|
"fileName": "mds-progress.cjs.entry.js",
|
|
185
187
|
"imports": [
|
|
186
|
-
"index-
|
|
188
|
+
"index-91e137c8.js"
|
|
187
189
|
],
|
|
188
|
-
"originalByteSize":
|
|
190
|
+
"originalByteSize": 4632
|
|
189
191
|
}
|
|
190
192
|
]
|
|
191
193
|
},
|
|
@@ -209,8 +211,6 @@
|
|
|
209
211
|
"excludeFromCollection": false,
|
|
210
212
|
"events": [],
|
|
211
213
|
"internal": false,
|
|
212
|
-
"legacyConnect": [],
|
|
213
|
-
"legacyContext": [],
|
|
214
214
|
"listeners": [],
|
|
215
215
|
"methods": [],
|
|
216
216
|
"potentialCmpRefs": [],
|
|
@@ -250,7 +250,8 @@
|
|
|
250
250
|
"references": {
|
|
251
251
|
"DirectionType": {
|
|
252
252
|
"location": "import",
|
|
253
|
-
"path": "./meta/types"
|
|
253
|
+
"path": "./meta/types",
|
|
254
|
+
"id": "src/components/mds-progress/meta/types.ts::DirectionType"
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
257
|
},
|
|
@@ -275,7 +276,8 @@
|
|
|
275
276
|
"references": {
|
|
276
277
|
"ThemeVariantType": {
|
|
277
278
|
"location": "import",
|
|
278
|
-
"path": "@type/variant"
|
|
279
|
+
"path": "@type/variant",
|
|
280
|
+
"id": "src/type/variant.ts::ThemeVariantType"
|
|
279
281
|
}
|
|
280
282
|
}
|
|
281
283
|
},
|
|
@@ -361,7 +363,8 @@
|
|
|
361
363
|
"references": {
|
|
362
364
|
"DirectionType": {
|
|
363
365
|
"location": "import",
|
|
364
|
-
"path": "./meta/types"
|
|
366
|
+
"path": "./meta/types",
|
|
367
|
+
"id": "src/components/mds-progress/meta/types.ts::DirectionType"
|
|
365
368
|
}
|
|
366
369
|
}
|
|
367
370
|
},
|
|
@@ -386,7 +389,8 @@
|
|
|
386
389
|
"references": {
|
|
387
390
|
"ThemeVariantType": {
|
|
388
391
|
"location": "import",
|
|
389
|
-
"path": "@type/variant"
|
|
392
|
+
"path": "@type/variant",
|
|
393
|
+
"id": "src/type/variant.ts::ThemeVariantType"
|
|
390
394
|
}
|
|
391
395
|
}
|
|
392
396
|
},
|
|
@@ -451,8 +455,6 @@
|
|
|
451
455
|
]
|
|
452
456
|
}
|
|
453
457
|
],
|
|
454
|
-
"legacyConnect": [],
|
|
455
|
-
"legacyContext": [],
|
|
456
458
|
"internal": false,
|
|
457
459
|
"assetsDirs": [],
|
|
458
460
|
"styleDocs": [
|
|
@@ -560,15 +562,17 @@
|
|
|
560
562
|
],
|
|
561
563
|
"componentGraph": {
|
|
562
564
|
"sc-mds-progress": [
|
|
563
|
-
"p-
|
|
565
|
+
"p-83f968eb.js"
|
|
564
566
|
]
|
|
565
567
|
},
|
|
566
568
|
"sourceGraph": {
|
|
567
569
|
"./src/common/aria.ts": [],
|
|
568
570
|
"./src/common/keyboard-manager.ts": [],
|
|
571
|
+
"./src/common/unit.ts": [],
|
|
569
572
|
"./src/components/mds-progress/mds-progress.tsx": [],
|
|
570
573
|
"./src/components/mds-progress/meta/dictionary.ts": [],
|
|
571
574
|
"./src/components/mds-progress/meta/types.ts": [],
|
|
575
|
+
"./src/components/mds-progress/test/mds-progress.e2e.ts": [],
|
|
572
576
|
"./src/components/mds-progress/test/mds-progress.stories.tsx": [
|
|
573
577
|
"./src/components/mds-progress/meta/dictionary"
|
|
574
578
|
],
|
|
@@ -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, };
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { DirectionType } from "./components/mds-progress/meta/types";
|
|
9
9
|
import { ThemeVariantType } from "@type/variant";
|
|
10
|
+
export { DirectionType } from "./components/mds-progress/meta/types";
|
|
11
|
+
export { ThemeVariantType } from "@type/variant";
|
|
10
12
|
export namespace Components {
|
|
11
13
|
interface MdsProgress {
|
|
12
14
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const buttonVariantDictionary: string[];
|
|
2
2
|
declare const buttonToneVariantDictionary: string[];
|
|
3
|
+
declare const buttonTargetDictionary: string[];
|
|
3
4
|
declare const buttonSizeDictionary: string[];
|
|
4
5
|
declare const buttonIconPositionDictionary: string[];
|
|
5
|
-
export { buttonSizeDictionary, buttonToneVariantDictionary, buttonVariantDictionary,
|
|
6
|
+
export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonVariantDictionary, };
|
|
@@ -4,6 +4,7 @@ declare const themeStatusVariantDictionary: string[];
|
|
|
4
4
|
declare const themeFullVariantDictionary: string[];
|
|
5
5
|
declare const themeLabelVariantDictionary: string[];
|
|
6
6
|
declare const toneVariantDictionary: string[];
|
|
7
|
+
declare const toneActionVariantDictionary: string[];
|
|
7
8
|
declare const toneSimpleVariantDictionary: string[];
|
|
8
9
|
declare const toneMinimalVariantDictionary: string[];
|
|
9
|
-
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|
|
10
|
+
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|
|
@@ -62,7 +62,7 @@ export interface PropOptions {
|
|
|
62
62
|
/**
|
|
63
63
|
* The name of the associated DOM attribute.
|
|
64
64
|
* Stencil uses different heuristics to determine the default name of the attribute,
|
|
65
|
-
* but using this property, you can override the default
|
|
65
|
+
* but using this property, you can override the default behavior.
|
|
66
66
|
*/
|
|
67
67
|
attribute?: string | null;
|
|
68
68
|
/**
|
|
@@ -128,7 +128,7 @@ export interface ListenOptions {
|
|
|
128
128
|
* By default, Stencil uses several heuristics to determine if
|
|
129
129
|
* it must attach a `passive` event listener or not.
|
|
130
130
|
*
|
|
131
|
-
* Using the `passive` option can be used to change the default
|
|
131
|
+
* Using the `passive` option can be used to change the default behavior.
|
|
132
132
|
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
|
|
133
133
|
*/
|
|
134
134
|
passive?: boolean;
|
|
@@ -432,7 +432,7 @@ export interface QueueApi {
|
|
|
432
432
|
/**
|
|
433
433
|
* Host
|
|
434
434
|
*/
|
|
435
|
-
interface HostAttributes {
|
|
435
|
+
export interface HostAttributes {
|
|
436
436
|
class?: string | {
|
|
437
437
|
[className: string]: boolean;
|
|
438
438
|
};
|
|
@@ -471,7 +471,7 @@ export interface FunctionalUtilities {
|
|
|
471
471
|
/**
|
|
472
472
|
* Utility for reading the children of a functional component at runtime.
|
|
473
473
|
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
-
* not
|
|
474
|
+
* not recommended to read the children directly, and is preferable to use
|
|
475
475
|
* this utility to, for instance, perform a side effect for each child.
|
|
476
476
|
*/
|
|
477
477
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
@@ -812,6 +812,7 @@ export declare namespace JSXBase {
|
|
|
812
812
|
datetime?: string;
|
|
813
813
|
}
|
|
814
814
|
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
815
|
+
onCancel?: (event: Event) => void;
|
|
815
816
|
onClose?: (event: Event) => void;
|
|
816
817
|
open?: boolean;
|
|
817
818
|
returnValue?: string;
|
|
@@ -871,6 +872,8 @@ export declare namespace JSXBase {
|
|
|
871
872
|
}
|
|
872
873
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
873
874
|
alt?: string;
|
|
875
|
+
crossOrigin?: string;
|
|
876
|
+
crossorigin?: string;
|
|
874
877
|
decoding?: 'async' | 'auto' | 'sync';
|
|
875
878
|
importance?: 'low' | 'auto' | 'high';
|
|
876
879
|
height?: number | string;
|
|
@@ -892,8 +895,8 @@ export declare namespace JSXBase {
|
|
|
892
895
|
accept?: string;
|
|
893
896
|
allowdirs?: boolean;
|
|
894
897
|
alt?: string;
|
|
895
|
-
autoCapitalize?:
|
|
896
|
-
autocapitalize?:
|
|
898
|
+
autoCapitalize?: string;
|
|
899
|
+
autocapitalize?: string;
|
|
897
900
|
autoComplete?: string;
|
|
898
901
|
autocomplete?: string;
|
|
899
902
|
autoFocus?: boolean;
|
|
@@ -929,6 +932,8 @@ export declare namespace JSXBase {
|
|
|
929
932
|
minlength?: number | string;
|
|
930
933
|
multiple?: boolean;
|
|
931
934
|
name?: string;
|
|
935
|
+
onSelect?: (event: Event) => void;
|
|
936
|
+
onselect?: (event: Event) => void;
|
|
932
937
|
pattern?: string;
|
|
933
938
|
placeholder?: string;
|
|
934
939
|
readOnly?: boolean;
|
|
@@ -1130,6 +1135,8 @@ export declare namespace JSXBase {
|
|
|
1130
1135
|
summary?: string;
|
|
1131
1136
|
}
|
|
1132
1137
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1138
|
+
autoComplete?: string;
|
|
1139
|
+
autocomplete?: string;
|
|
1133
1140
|
autoFocus?: boolean;
|
|
1134
1141
|
autofocus?: boolean | string;
|
|
1135
1142
|
cols?: number;
|
|
@@ -1140,6 +1147,8 @@ export declare namespace JSXBase {
|
|
|
1140
1147
|
minLength?: number;
|
|
1141
1148
|
minlength?: number | string;
|
|
1142
1149
|
name?: string;
|
|
1150
|
+
onSelect?: (event: Event) => void;
|
|
1151
|
+
onselect?: (event: Event) => void;
|
|
1143
1152
|
placeholder?: string;
|
|
1144
1153
|
readOnly?: boolean;
|
|
1145
1154
|
readonly?: boolean | string;
|
|
@@ -1217,8 +1226,8 @@ export declare namespace JSXBase {
|
|
|
1217
1226
|
resource?: string;
|
|
1218
1227
|
typeof?: string;
|
|
1219
1228
|
vocab?: string;
|
|
1220
|
-
autoCapitalize?:
|
|
1221
|
-
autocapitalize?:
|
|
1229
|
+
autoCapitalize?: string;
|
|
1230
|
+
autocapitalize?: string;
|
|
1222
1231
|
autoCorrect?: string;
|
|
1223
1232
|
autocorrect?: string;
|
|
1224
1233
|
autoSave?: string;
|
|
@@ -1286,7 +1295,7 @@ export declare namespace JSXBase {
|
|
|
1286
1295
|
clipPathUnits?: number | string;
|
|
1287
1296
|
'clip-rule'?: number | string;
|
|
1288
1297
|
'color-interpolation'?: number | string;
|
|
1289
|
-
'color-interpolation-filters'?: 'auto' | '
|
|
1298
|
+
'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
|
|
1290
1299
|
'color-profile'?: number | string;
|
|
1291
1300
|
'color-rendering'?: number | string;
|
|
1292
1301
|
contentScriptType?: number | string;
|
|
@@ -1509,12 +1518,12 @@ export declare namespace JSXBase {
|
|
|
1509
1518
|
onCutCapture?: (event: ClipboardEvent) => void;
|
|
1510
1519
|
onPaste?: (event: ClipboardEvent) => void;
|
|
1511
1520
|
onPasteCapture?: (event: ClipboardEvent) => void;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1521
|
+
onCompositionend?: (event: CompositionEvent) => void;
|
|
1522
|
+
onCompositionendCapture?: (event: CompositionEvent) => void;
|
|
1523
|
+
onCompositionstart?: (event: CompositionEvent) => void;
|
|
1524
|
+
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1525
|
+
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1526
|
+
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1518
1527
|
onFocus?: (event: FocusEvent) => void;
|
|
1519
1528
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1520
1529
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1525,8 +1534,8 @@ export declare namespace JSXBase {
|
|
|
1525
1534
|
onBlurCapture?: (event: FocusEvent) => void;
|
|
1526
1535
|
onChange?: (event: Event) => void;
|
|
1527
1536
|
onChangeCapture?: (event: Event) => void;
|
|
1528
|
-
onInput?: (event:
|
|
1529
|
-
onInputCapture?: (event:
|
|
1537
|
+
onInput?: (event: InputEvent) => void;
|
|
1538
|
+
onInputCapture?: (event: InputEvent) => void;
|
|
1530
1539
|
onReset?: (event: Event) => void;
|
|
1531
1540
|
onResetCapture?: (event: Event) => void;
|
|
1532
1541
|
onSubmit?: (event: Event) => void;
|
|
@@ -1616,8 +1625,14 @@ export declare namespace JSXBase {
|
|
|
1616
1625
|
onAnimationEndCapture?: (event: AnimationEvent) => void;
|
|
1617
1626
|
onAnimationIteration?: (event: AnimationEvent) => void;
|
|
1618
1627
|
onAnimationIterationCapture?: (event: AnimationEvent) => void;
|
|
1628
|
+
onTransitionCancel?: (event: TransitionEvent) => void;
|
|
1629
|
+
onTransitionCancelCapture?: (event: TransitionEvent) => void;
|
|
1619
1630
|
onTransitionEnd?: (event: TransitionEvent) => void;
|
|
1620
1631
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1632
|
+
onTransitionRun?: (event: TransitionEvent) => void;
|
|
1633
|
+
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1634
|
+
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1635
|
+
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1621
1636
|
}
|
|
1622
1637
|
}
|
|
1623
1638
|
export interface JSXAttributes<T = Element> {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type ButtonType = 'a' | 'button' | 'reset' | 'submit';
|
|
2
|
+
export type ButtonTargetType = 'self' | 'blank';
|
|
2
3
|
export type ButtonSizeType = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
4
|
export type ButtonIconPositionType = 'left' | 'right';
|
|
4
5
|
export type ButtonVariantType = 'primary' | 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning';
|
|
@@ -5,6 +5,7 @@ export type ThemeLuminanceVariantType = 'dark' | 'light';
|
|
|
5
5
|
export type LabelVariantType = 'amaranth' | 'aqua' | 'blue' | 'green' | 'lime' | 'orange' | 'orchid' | 'sky' | 'violet' | 'yellow';
|
|
6
6
|
export type ActionVariantType = 'primary' | 'dark' | 'light';
|
|
7
7
|
export type StateVariantType = 'disabled' | 'focused' | 'readonly';
|
|
8
|
+
export type ToneActionVariantType = 'primary' | 'secondary' | 'tertiary' | 'strong' | 'weak' | 'ghost' | 'quiet';
|
|
8
9
|
export type ToneVariantType = 'strong' | 'weak' | 'ghost' | 'quiet';
|
|
9
10
|
export type ToneSimpleVariantType = 'strong' | 'weak' | 'quiet';
|
|
10
11
|
export type ToneMinimalVariantType = 'strong' | 'weak';
|