@maggioli-design-system/mds-input-range 2.2.0 → 2.3.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-27635fed.js → index-9509a00b.js} +148 -105
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-input-range.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-range.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/browser.js +7 -0
- package/dist/collection/components/mds-input-range/mds-input-range.css +23 -49
- package/dist/components/mds-input-range.js +1 -1
- package/dist/documentation.json +2 -2
- package/dist/esm/{index-c0c11860.js → index-476f378c.js} +148 -105
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-input-range.entry.js +2 -2
- package/dist/esm/mds-input-range.js +3 -3
- package/dist/esm-es5/index-476f378c.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.js +1 -1
- package/dist/mds-input-range/mds-input-range.esm.js +1 -1
- package/dist/mds-input-range/mds-input-range.js +1 -1
- package/dist/mds-input-range/p-87f42ab7.js +2 -0
- package/dist/mds-input-range/p-c22c5274.system.entry.js +1 -0
- package/dist/mds-input-range/p-d47766b6.system.js +1 -0
- package/dist/mds-input-range/p-e79d51c6.system.js +2 -0
- package/dist/mds-input-range/p-e838760a.entry.js +1 -0
- package/dist/stats.json +34 -33
- package/dist/types/common/browser.d.ts +2 -0
- package/dist/types/common/locale.d.ts +1 -1
- package/documentation.json +2 -2
- package/package.json +4 -4
- package/src/common/browser.ts +10 -0
- package/src/common/locale.ts +2 -2
- package/src/components/mds-input-range/css/mds-input-range-pref-animation.css +13 -20
- package/src/components/mds-input-range/css/mds-input-range-pref-contrast.css +5 -13
- package/src/components/mds-input-range/css/mds-input-range-pref-theme.css +7 -16
- package/src/components/mds-input-range/mds-input-range.css +0 -4
- package/src/fixtures/icons.json +2 -0
- package/src/fixtures/iconsauce.json +1 -0
- package/src/tailwind/components.css +2 -48
- package/src/tailwind/index.css +4 -0
- package/www/build/mds-input-range.esm.js +1 -1
- package/www/build/mds-input-range.js +1 -1
- package/www/build/p-87f42ab7.js +2 -0
- package/www/build/p-c22c5274.system.entry.js +1 -0
- package/www/build/p-d47766b6.system.js +1 -0
- package/www/build/p-e79d51c6.system.js +2 -0
- package/www/build/p-e838760a.entry.js +1 -0
- package/dist/esm-es5/index-c0c11860.js +0 -1
- package/dist/mds-input-range/p-71d27af5.system.js +0 -2
- package/dist/mds-input-range/p-7a612415.system.js +0 -1
- package/dist/mds-input-range/p-88970243.system.entry.js +0 -1
- package/dist/mds-input-range/p-ba639fb6.entry.js +0 -1
- package/dist/mds-input-range/p-dd7b28fc.js +0 -2
- package/www/build/p-71d27af5.system.js +0 -2
- package/www/build/p-7a612415.system.js +0 -1
- package/www/build/p-88970243.system.entry.js +0 -1
- package/www/build/p-ba639fb6.entry.js +0 -1
- package/www/build/p-dd7b28fc.js +0 -2
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,n,t,r){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function u(e){try{s(r["throw"](e))}catch(e){a(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,u)}s((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,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(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(r=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:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=n.call(e,t)}catch(e){u=[6,e];i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,n,t,r){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{s(r.next(e))}catch(e){a(e)}}function u(e){try{s(r["throw"](e))}catch(e){a(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,u)}s((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,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(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(r=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:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=n.call(e,t)}catch(e){u=[6,e];i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-476f378c.js";export{s as setNonce}from"./index-476f378c.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var defineCustomElements=function(e,n){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["mds-input-range",[[65,"mds-input-range",{max:[2],min:[2],step:[2],disabled:[1540],value:[1538],progress:[32]},null,{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}]]]],n)]}}))}))};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-c0c11860.js";var mdsInputRangeCss='@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n\n@keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n\n@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-input-range-thumb-size: Sets the thumb width and height of the component\n * @prop --mds-input-range-thumb-background:\n * @prop --mds-input-range-track-background:\n * @prop --mds-input-range-track-size:\n * @prop --mds-input-range-track-progress-background:\n */\n\n:host {\n\n --mds-input-range-thumb-size: 1rem;\n --mds-input-range-thumb-background: rgb(var(--variant-primary-04));\n --mds-input-range-thumb-shadow: 0 0 0 2px rgb(var(--tone-neutral));\n --mds-input-range-track-background: rgb(var(--tone-neutral-08));\n --mds-input-range-track-size: 0.5rem;\n --mds-input-range-track-progress-background: rgb(var(--variant-primary-03));\n --mds-input-range-thumb-background-disabled: rgb(var(--tone-neutral-06));\n --mds-input-range-track-background-disabled: rgb(var(--tone-neutral-08));\n --mds-input-range-track-progress-background-disabled: rgb(var(--tone-neutral-06));\n gap: 0.25rem;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n display: grid;\n -webkit-transition-property: color;\n transition-property: color;\n}\n\n.header {\n gap: 0.5rem;\n\n display: -ms-flexbox;\n\n display: flex;\n}\n\n.label {\n min-width: 0rem;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.value {\n margin-left: auto;\n}\n\n.range {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-input-range-thumb-size);\n position: relative;\n}\n\n.track {\n width: 100%;\n\n --margin: calc(var(--mds-input-range-track-size) / 2);\n\n -webkit-box-sizing: border-box;\n\n box-sizing: border-box;\n padding: 0 var(--margin);\n position: absolute;\n}\n\n.field {\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n }\n\n.field:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n.field {\n z-index: 20;\n height: 1rem;\n\n -webkit-appearance: none;\n\n -moz-appearance: none;\n\n appearance: none;\n background-color: transparent;\n border-radius: 1000px;\n -ms-flex-positive: 1;\n flex-grow: 1;\n margin: 0;\n}\n\n.field:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n.field::-webkit-slider-thumb {\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n -webkit-appearance: none;\n\n appearance: none;\n background-color: var(--mds-input-range-thumb-background);\n border: 0;\n border-radius: var(--mds-input-range-thumb-size);\n -webkit-box-shadow: var(--mds-input-range-thumb-shadow);\n box-shadow: var(--mds-input-range-thumb-shadow);\n cursor: -webkit-grab;\n cursor: grab;\n height: var(--mds-input-range-thumb-size);\n line-height: 0;\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n -webkit-transition-property: background-color, box-shadow;\n -webkit-transition-property: background-color, -webkit-box-shadow;\n transition-property: background-color, -webkit-box-shadow;\n transition-property: background-color, box-shadow;\n transition-property: background-color, box-shadow, -webkit-box-shadow;\n width: var(--mds-input-range-thumb-size);\n}\n\n.field::-webkit-slider-runnable-track {\n -webkit-appearance: none;\n appearance: none;\n border: 0;\n height: 0;\n width: 100%;\n}\n\n.track-progress {\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n background-color: var(--mds-input-range-track-progress-background);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-input-range-track-size);\n -webkit-transition-property: background-color;\n transition-property: background-color;\n}\n\n.track-total {\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n background-color: var(--mds-input-range-track-background);\n border-radius: var(--mds-input-range-track-size);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-input-range-track-size);\n overflow: hidden;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n.contrast-area {\n margin-left: 0.25rem;\n margin-right: 0.25rem;\n\n border-radius: var(--mds-input-range-track-size);\n}\n\n:host([disabled]:not([disabled="false"])) {\n --mds-input-range-thumb-background: var(--mds-input-range-thumb-background-disabled);\n --mds-input-range-track-background: var(--mds-input-range-track-background-disabled);\n --mds-input-range-track-progress-background: var(--mds-input-range-track-progress-background-disabled);\n}\n\n:host([disabled]:not([disabled="false"])) .field::-webkit-slider-thumb {\n cursor: not-allowed;\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .field::-webkit-slider-thumb,\n .field::-webkit-slider-runnable-track,\n .track-progress,\n .track-total {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .field::-webkit-slider-thumb,\n .field::-webkit-slider-runnable-track,\n .track-progress,\n .track-total {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-input-range-thumb-background: rgb(var(--variant-primary-04));\n --mds-input-range-track-background: rgb(var(--tone-neutral-07));\n --mds-input-range-track-progress-background: rgb(var(--variant-primary-05));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-input-range-thumb-background: rgb(var(--variant-primary-04));\n --mds-input-range-track-background: rgb(var(--tone-neutral-07));\n --mds-input-range-track-progress-background: rgb(var(--variant-primary-05));\n }\n }\n}\n\n@container style(--magma-pref-contrast: more) {\n :host {\n color: rgb(var(--tone-neutral-01));\n }\n}\n\n@container style(--magma-pref-contrast: system) {\n\n @media (prefers-contrast: more) {\n :host {\n color: rgb(var(--tone-neutral-01));\n }\n }\n}\n\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n';var MdsInputRangeStyle0=mdsInputRangeCss;var MdsInputRange=function(){function n(n){var t=this;registerInstance(this,n);this.changeEvent=createEvent(this,"mdsInputRangeChange",7);if(n.$hostElement$["s-ei"]){this.internals=n.$hostElement$["s-ei"]}else{this.internals=n.$hostElement$.attachInternals();n.$hostElement$["s-ei"]=this.internals}this.max=100;this.min=0;this.step=1;this.onInput=function(){t.value=parseInt(t.inputElement.value)}}n.prototype.calculateProgress=function(){var n=parseInt(this.inputElement.value);if(n>this.max)n=this.max;else if(n<this.min)n=this.min;if((n-this.min)%this.step!==0)n=Math.round(n/this.step)*this.step-this.min;this.value=n;this.internals.setFormValue(this.value.toString());var t=this.max-this.min;var a=this.value-this.min;this.progress=a*100/t};n.prototype.disabledChanged=function(n){if(n){this.internals.setFormValue(null)}};n.prototype.valueChanged=function(){this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};n.prototype.minChanged=function(){this.calculateProgress()};n.prototype.maxChanged=function(){this.calculateProgress()};n.prototype.stepChanged=function(){if(this.step<1)throw Error("step cant be negative or zero");this.calculateProgress()};n.prototype.formResetCallback=function(){this.internals.setFormValue("")};n.prototype.componentDidLoad=function(){var n,t;this.label=(n=this.element.textContent)!==null&&n!==void 0?n:"";this.inputElement=(t=this.element.shadowRoot)===null||t===void 0?void 0:t.querySelector(".field");this.value=parseInt(this.inputElement.value);this.calculateProgress()};n.prototype.render=function(){return h(Host,{key:"e1cf60063d451ad99e6e4943412119634a261dc6"},h("header",{key:"786ee56712c0d48fce3b0107bf44e1a4e39a5cb2",class:"header",part:"header"},h("mds-text",{key:"b51d53ca91e1a39431b851dcefdbda983ae59a60",class:"label",typography:"label"},h("slot",{key:"1e8a604c35454992794958088051f5074504a3cf"})),h("mds-text",{key:"64cdd428f13f52a6964ab55527707a74ef98d560",class:"value",typography:"label"},this.value)),h("div",{key:"00f8ad9cd7bdaff91a766d7c8e50a5ad65b4983a",class:"range"},h("div",{key:"64e70fc8df3951015535b0e0bee0177089c9c399",class:"track"},h("div",{key:"255824ff26075a8da7e176f03e8a2e99d8e754e5",class:"contrast-area"}),h("div",{key:"a5d3f15b29af3c95dcdaffe05ba3d9481bfafce2",class:"track-total"},h("div",{key:"f50dff46578030bc9ecd83d56dec99b4a099f0b5",class:"track-progress",style:{width:"".concat(this.progress,"%")}}))),h("input",{key:"34ba926affc23fb845c421c7813ec05f7ce03f5f",class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value})))};Object.defineProperty(n,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(n.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}},enumerable:false,configurable:true});return n}();MdsInputRange.style=MdsInputRangeStyle0;export{MdsInputRange as mds_input_range};
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-476f378c.js";var mdsInputRangeCss='@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-input-range-thumb-size:1rem;--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-thumb-shadow:0 0 0 2px rgb(var(--tone-neutral));--mds-input-range-track-background:rgb(var(--tone-neutral-08));--mds-input-range-track-size:0.5rem;--mds-input-range-track-progress-background:rgb(var(--variant-primary-03));--mds-input-range-thumb-background-disabled:rgb(var(--tone-neutral-06));--mds-input-range-track-background-disabled:rgb(var(--tone-neutral-08));--mds-input-range-track-progress-background-disabled:rgb(var(--tone-neutral-06));gap:0.25rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);display:grid;-webkit-transition-property:color;transition-property:color}.header{gap:0.5rem;display:-ms-flexbox;display:flex}.label{min-width:0rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:var(--mds-input-range-thumb-size);position:relative}.track{width:100%;--margin:calc(var(--mds-input-range-track-size) / 2);-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 var(--margin);position:absolute}.field{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-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;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field{z-index:20;height:1rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-radius:1000px;-ms-flex-positive:1;flex-grow:1;margin:0}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field::-webkit-slider-thumb{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-appearance:none;appearance:none;background-color:var(--mds-input-range-thumb-background);border:0;border-radius:var(--mds-input-range-thumb-size);-webkit-box-shadow:var(--mds-input-range-thumb-shadow);box-shadow:var(--mds-input-range-thumb-shadow);cursor:-webkit-grab;cursor:grab;height:var(--mds-input-range-thumb-size);line-height:0;-webkit-transform:translate(0, -50%);transform:translate(0, -50%);-webkit-transition-property:background-color, box-shadow;-webkit-transition-property:background-color, -webkit-box-shadow;transition-property:background-color, -webkit-box-shadow;transition-property:background-color, box-shadow;transition-property:background-color, box-shadow, -webkit-box-shadow;width:var(--mds-input-range-thumb-size)}.field::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none;border:0;height:0;width:100%}.track-progress{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-progress-background);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);-webkit-transition-property:background-color;transition-property:background-color}.track-total{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-background);border-radius:var(--mds-input-range-track-size);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);overflow:hidden;-webkit-transition-property:background-color;transition-property:background-color;width:100%}.contrast-area{margin-left:0.25rem;margin-right:0.25rem;border-radius:var(--mds-input-range-track-size)}:host([disabled]:not([disabled="false"])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled="false"])) .field::-webkit-slider-thumb{cursor:not-allowed}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .field::-webkit-slider-thumb,:host-context(.pref-animation-reduce) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-reduce) .track-progress,:host-context(.pref-animation-reduce) .track-total{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .field::-webkit-slider-thumb,:host-context(.pref-animation-system) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-system) .track-progress,:host-context(.pref-animation-system) .track-total{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}}:host-context(.pref-contrast-more){color:rgb(var(--tone-neutral-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){color:rgb(var(--tone-neutral-01))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var MdsInputRangeStyle0=mdsInputRangeCss;var MdsInputRange=function(){function t(t){var e=this;registerInstance(this,t);this.changeEvent=createEvent(this,"mdsInputRangeChange",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.max=100;this.min=0;this.step=1;this.onInput=function(){e.value=parseInt(e.inputElement.value)}}t.prototype.calculateProgress=function(){var t=parseInt(this.inputElement.value);if(t>this.max)t=this.max;else if(t<this.min)t=this.min;if((t-this.min)%this.step!==0)t=Math.round(t/this.step)*this.step-this.min;this.value=t;this.internals.setFormValue(this.value.toString());var e=this.max-this.min;var a=this.value-this.min;this.progress=a*100/e};t.prototype.disabledChanged=function(t){if(t){this.internals.setFormValue(null)}};t.prototype.valueChanged=function(){this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};t.prototype.minChanged=function(){this.calculateProgress()};t.prototype.maxChanged=function(){this.calculateProgress()};t.prototype.stepChanged=function(){if(this.step<1)throw Error("step cant be negative or zero");this.calculateProgress()};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.componentDidLoad=function(){var t,e;this.label=(t=this.element.textContent)!==null&&t!==void 0?t:"";this.inputElement=(e=this.element.shadowRoot)===null||e===void 0?void 0:e.querySelector(".field");this.value=parseInt(this.inputElement.value);this.calculateProgress()};t.prototype.render=function(){return h(Host,{key:"e1cf60063d451ad99e6e4943412119634a261dc6"},h("header",{key:"786ee56712c0d48fce3b0107bf44e1a4e39a5cb2",class:"header",part:"header"},h("mds-text",{key:"b51d53ca91e1a39431b851dcefdbda983ae59a60",class:"label",typography:"label"},h("slot",{key:"1e8a604c35454992794958088051f5074504a3cf"})),h("mds-text",{key:"64cdd428f13f52a6964ab55527707a74ef98d560",class:"value",typography:"label"},this.value)),h("div",{key:"00f8ad9cd7bdaff91a766d7c8e50a5ad65b4983a",class:"range"},h("div",{key:"64e70fc8df3951015535b0e0bee0177089c9c399",class:"track"},h("div",{key:"255824ff26075a8da7e176f03e8a2e99d8e754e5",class:"contrast-area"}),h("div",{key:"a5d3f15b29af3c95dcdaffe05ba3d9481bfafce2",class:"track-total"},h("div",{key:"f50dff46578030bc9ecd83d56dec99b4a099f0b5",class:"track-progress",style:{width:"".concat(this.progress,"%")}}))),h("input",{key:"34ba926affc23fb845c421c7813ec05f7ce03f5f",class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value})))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}},enumerable:false,configurable:true});return t}();MdsInputRange.style=MdsInputRangeStyle0;export{MdsInputRange as mds_input_range};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,n,t,r){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,n,t,r){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?t(e.value):i(e.value).then(o,s)}u((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(n){return u([e,n])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(t=0)),t)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;i=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=n.call(e,t)}catch(e){s=[6,e];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-476f378c.js";export{s as setNonce}from"./index-476f378c.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var patchBrowser=function(){var e=import.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return promiseResolve(n)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,globalScripts()];case 1:n.sent();return[2,bootstrapLazy([["mds-input-range",[[65,"mds-input-range",{max:[2],min:[2],step:[2],disabled:[1540],value:[1538],progress:[32]},null,{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}]]]],e)]}}))}))}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as a,b as e}from"./p-
|
|
1
|
+
import{p as a,b as e}from"./p-87f42ab7.js";export{s as setNonce}from"./p-87f42ab7.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),a(s)})().then((async a=>(await n(),e([["p-e838760a",[[65,"mds-input-range",{max:[2],min:[2],step:[2],disabled:[1540],value:[1538],progress:[32]},null,{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}]]]],a))));
|
|
@@ -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-d47766b6.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 e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],a="undefined"!=typeof window?window:{},u={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,h=[],m=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&u.o?w(v):u.raf(v))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},v=()=>{b(h),b(m),(p=h.length>0)&&u.raf(v)},w=e=>f().then(e),$=y(m,!0),S=e=>"object"==(e=typeof e)||"function"===e;function g(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>E,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,E=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?R(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=R(e,null);return a.u=t,r.length>0&&(a.p=r),a.h=l,a},R=(e,t)=>({o:0,m:e,i:t,v:null,p:null,u:null,h:null}),x={},D=(e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):e,A=e=>t(e).$hostElement$,U=(e,t,n)=>{const o=A(e);return{emit:e=>W(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},W=(e,t,n)=>{const o=u.ce(t,n);return e.dispatchEvent(o),o},N=new WeakMap,H=e=>"sc-"+e.$,L=(e,t,n,l,s,i)=>{if(n===l)return;let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=F(n);let s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const o=S(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&1===e.nodeType&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(z);t=t.replace(V,""),n&&u.rel(e,t,n,o),l&&u.ael(e,t,l,o)}},T=/\s/,F=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(T):[]),z="Capture",V=RegExp(z+"$"),q=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of G(Object.keys(l)))e in s||L(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(s)))L(o,e,l[e],s[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,Y=(e,t,n)=>{const o=t.p[n];let l,s,i=0;if(null!==o.i)l=o.v=a.document.createTextNode(o.i);else{if(!a.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=a.document.createElement(o.m),q(null,o,I),o.p)for(i=0;i<o.p.length;++i)s=Y(e,o,i),s&&l.appendChild(s)}return l["s-hn"]=C,l},_=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=Y(null,n,l),i&&(o[l].v=i,Q(r,i,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.h&&t.h&&(e.h=t.h),!0):e.h===t.h),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.p,s=t.p,i=t.i;null===i?(q(e,t,I),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,a=0,u=0,f=t.length-1,d=t[0],p=t[f],h=o.length-1,m=o[0],y=o[h];for(;r<=f&&c<=h;)if(null==d)d=t[++r];else if(null==p)p=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--h];else if(J(d,m,l))K(d,m,l),d=t[++r],m=o[++c];else if(J(p,y,l))K(p,y,l),p=t[--f],y=o[--h];else if(J(d,y,l))K(d,y,l),Q(e,d.v,p.v.nextSibling),d=t[++r],y=o[--h];else if(J(p,m,l))K(p,m,l),Q(e,p.v,d.v),p=t[--f],m=o[++c];else{for(a=-1,u=r;u<=f;++u)if(t[u]&&null!==t[u].h&&t[u].h===m.h){a=u;break}a>=0?(i=t[a],i.m!==m.m?s=Y(t&&t[c],n,a):(K(i,m,l),t[a]=void 0,s=i.v),m=o[++c]):(s=Y(t&&t[c],n,c),m=o[++c]),s&&Q(d.v.parentNode,s,d.v)}r>f?_(e,null==o[h+1]?null:o[h+1].v,n,o,c,h):c>h&&B(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),_(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1)):e.i!==i&&(o.data=i)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Z=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),$((()=>ee(e,t)));e.o|=512},ee=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=re(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),l=te(l,(()=>re(o,"componentWillRender",void 0,n))),te(l,(()=>oe(e,o,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=H(t),l=i.get(o);if(!a.document)return o;if(e=11===e.nodeType?e:a.document,l)if("string"==typeof l){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.document.createElement("style"),s.innerHTML=l;const i=null!=(n=u.O)?n:g(a.document);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);le(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.C||R(null,null),i=(e=>e&&e.m===x)(t)?t:P(null,null,t);if(C=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([e,t])=>i.u[t]=o[e]))),n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,K(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,o=e.j;re(n,"componentDidRender",void 0,t),64&e.o?re(n,"componentDidUpdate",void 0,t):(e.o|=64,ce(t),re(n,"componentDidLoad",void 0,t),e.P(t),o||ie()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>Z(e,!1))),e.o&=-517},ie=()=>{w((()=>W(a,"appload",{detail:{namespace:"mds-input-range"}})))},re=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ce=e=>e.setAttribute("hydrated",""),ae=(e,n,o,s)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${s.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.R.get(n),a=i.o,u=i.t;if(o=D(o,s.D[n][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.R.set(n,o),u)){if(s.A&&128&a){const e=s.A[n];e&&e.map((e=>{try{u[e](o,c,n)}catch(e){l(e,r)}}))}if(2==(18&a)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(o,c,n))return;Z(i,!1)}}},ue=(e,n,o)=>{var l,s;const i=e.prototype;if(64&n.o&&1&o&&c.forEach((e=>{Object.defineProperty(i,e,{value(...n){const o=t(this),l=o.t;if(l){const t=l[e];"function"==typeof t&&t.call(l,...n)}else o.U.then((t=>{const o=t[e];"function"==typeof o&&o.call(t,...n)}))}})})),n.D||n.A||e.watchers){e.watchers&&!n.A&&(n.A=e.watchers);const r=Object.entries(null!=(l=n.D)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(n.D[e][0]|=2048),r&&(n.D[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&n.D[e][0]))return((e,n)=>t(this).R.get(n))(0,e);const o=t(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=t(this);if(r){const t=32&l?this[e]:i.$hostElement$[e];return void 0===t&&i.R.get(e)?s=i.R.get(e):!i.R.get(e)&&t&&i.R.set(e,t),r.call(this,D(s,l)),void ae(this,e,s=32&l?this[e]:i.$hostElement$[e],n)}{if(!(1&o&&4096&n.D[e][0]))return ae(this,e,s,n),void(1&o&&!i.t&&i.U.then((()=>{4096&n.D[e][0]&&i.t[e]!==i.R.get(e)&&(i.t[e]=s)})));const t=()=>{const t=i.t[e];!i.R.get(e)&&t&&i.R.set(e,t),i.t[e]=D(s,l),ae(this,e,i.t[e],n)};i.t?t():i.U.then((()=>t()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){u.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=t(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const t=o.t,i=null==(r=n.A)?void 0:r[e];null==i||i.forEach((n=>{null!=t[n]&&t[n].call(t,s,l,e)}))}return}}const a=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||a.get&&!a.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.A)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{var l;const s=t[1]||e;return o.set(s,e),512&t[0]&&(null==(l=n.M)||l.push([e,s])),s}))]))}}return e},fe=(e,t)=>{re(e,"connectedCallback",void 0,t)},de=(e,t)=>{re(e,"disconnectedCallback",void 0,t||e)},pe=(e,n={})=>{var o;if(!a.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],f=n.exclude||[],p=a.customElements,h=a.document.head,m=h.querySelector("meta[charset]"),y=a.document.createElement("style"),b=[];let v,w=!0;Object.assign(u,n),u.l=new URL(n.resourcesUrl||"./",a.document.baseURI).href;let $=!1;if(e.map((e=>{e[1].map((n=>{var o;const r={o:n[0],$:n[1],D:n[2],W:n[3]};4&r.o&&($=!0),r.D=n[2],r.M=[],r.A=null!=(o=n[4])?o:{};const a=r.$,h=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,k:t,R:new Map};n.U=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),w?b.push(this):u.jmp((()=>(e=>{if(!(1&u.o)){const n=t(e),o=n.k,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?fe(n.t,e):(null==n?void 0:n.U)&&n.U.then((()=>fe(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){X(n,n.j=t);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.N){const i=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.N;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((e=>(s.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};o=await i,e()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${t.H}" was not found`);o.isProxied||(n.A=o.watchers,ue(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,t.o|=128,r(),fe(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=H(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>Z(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this)))}disconnectedCallback(){u.jmp((()=>(async e=>{if(!(1&u.o)){const n=t(e);(null==n?void 0:n.t)?de(n.t,e):(null==n?void 0:n.U)&&n.U.then((()=>de(n.t,e)))}N.has(e)&&N.delete(e),e.shadowRoot&&N.has(e.shadowRoot)&&N.delete(e.shadowRoot)})(this))),u.raf((()=>{var e;const n=t(this),o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==n?void 0:n.C)?void 0:e.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return t(this).U}};64&r.o&&(h.formAssociated=!0),r.N=e[0],f.includes(a)||p.get(a)||(c.push(a),p.define(a,ue(h,r,1)))}))})),c.length>0&&($&&(y.textContent+=r),y.textContent+=c.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const e=null!=(o=u.O)?o:g(a.document);null!=e&&y.setAttribute("nonce",e),h.insertBefore(y,m?m.nextSibling:h.firstChild)}w=!1,b.length?b.map((e=>e.connectedCallback())):u.jmp((()=>v=setTimeout(ie,30)))},he=e=>u.O=e;export{x as H,pe as b,U as c,A as g,P as h,f as p,n as r,he as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-e79d51c6.system.js"],(function(t){"use strict";var e,a,r,d,i;return{setters:[function(t){e=t.r;a=t.c;r=t.h;d=t.H;i=t.g}],execute:function(){var n='@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-input-range-thumb-size:1rem;--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-thumb-shadow:0 0 0 2px rgb(var(--tone-neutral));--mds-input-range-track-background:rgb(var(--tone-neutral-08));--mds-input-range-track-size:0.5rem;--mds-input-range-track-progress-background:rgb(var(--variant-primary-03));--mds-input-range-thumb-background-disabled:rgb(var(--tone-neutral-06));--mds-input-range-track-background-disabled:rgb(var(--tone-neutral-08));--mds-input-range-track-progress-background-disabled:rgb(var(--tone-neutral-06));gap:0.25rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);display:grid;-webkit-transition-property:color;transition-property:color}.header{gap:0.5rem;display:-ms-flexbox;display:flex}.label{min-width:0rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:var(--mds-input-range-thumb-size);position:relative}.track{width:100%;--margin:calc(var(--mds-input-range-track-size) / 2);-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 var(--margin);position:absolute}.field{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-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;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field{z-index:20;height:1rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-radius:1000px;-ms-flex-positive:1;flex-grow:1;margin:0}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field::-webkit-slider-thumb{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-appearance:none;appearance:none;background-color:var(--mds-input-range-thumb-background);border:0;border-radius:var(--mds-input-range-thumb-size);-webkit-box-shadow:var(--mds-input-range-thumb-shadow);box-shadow:var(--mds-input-range-thumb-shadow);cursor:-webkit-grab;cursor:grab;height:var(--mds-input-range-thumb-size);line-height:0;-webkit-transform:translate(0, -50%);transform:translate(0, -50%);-webkit-transition-property:background-color, box-shadow;-webkit-transition-property:background-color, -webkit-box-shadow;transition-property:background-color, -webkit-box-shadow;transition-property:background-color, box-shadow;transition-property:background-color, box-shadow, -webkit-box-shadow;width:var(--mds-input-range-thumb-size)}.field::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none;border:0;height:0;width:100%}.track-progress{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-progress-background);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);-webkit-transition-property:background-color;transition-property:background-color}.track-total{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-background);border-radius:var(--mds-input-range-track-size);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);overflow:hidden;-webkit-transition-property:background-color;transition-property:background-color;width:100%}.contrast-area{margin-left:0.25rem;margin-right:0.25rem;border-radius:var(--mds-input-range-track-size)}:host([disabled]:not([disabled="false"])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled="false"])) .field::-webkit-slider-thumb{cursor:not-allowed}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .field::-webkit-slider-thumb,:host-context(.pref-animation-reduce) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-reduce) .track-progress,:host-context(.pref-animation-reduce) .track-total{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .field::-webkit-slider-thumb,:host-context(.pref-animation-system) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-system) .track-progress,:host-context(.pref-animation-system) .track-total{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}}:host-context(.pref-contrast-more){color:rgb(var(--tone-neutral-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){color:rgb(var(--tone-neutral-01))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var o=n;var s=t("mds_input_range",function(){function t(t){var r=this;e(this,t);this.changeEvent=a(this,"mdsInputRangeChange",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.max=100;this.min=0;this.step=1;this.onInput=function(){r.value=parseInt(r.inputElement.value)}}t.prototype.calculateProgress=function(){var t=parseInt(this.inputElement.value);if(t>this.max)t=this.max;else if(t<this.min)t=this.min;if((t-this.min)%this.step!==0)t=Math.round(t/this.step)*this.step-this.min;this.value=t;this.internals.setFormValue(this.value.toString());var e=this.max-this.min;var a=this.value-this.min;this.progress=a*100/e};t.prototype.disabledChanged=function(t){if(t){this.internals.setFormValue(null)}};t.prototype.valueChanged=function(){this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};t.prototype.minChanged=function(){this.calculateProgress()};t.prototype.maxChanged=function(){this.calculateProgress()};t.prototype.stepChanged=function(){if(this.step<1)throw Error("step cant be negative or zero");this.calculateProgress()};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.componentDidLoad=function(){var t,e;this.label=(t=this.element.textContent)!==null&&t!==void 0?t:"";this.inputElement=(e=this.element.shadowRoot)===null||e===void 0?void 0:e.querySelector(".field");this.value=parseInt(this.inputElement.value);this.calculateProgress()};t.prototype.render=function(){return r(d,{key:"e1cf60063d451ad99e6e4943412119634a261dc6"},r("header",{key:"786ee56712c0d48fce3b0107bf44e1a4e39a5cb2",class:"header",part:"header"},r("mds-text",{key:"b51d53ca91e1a39431b851dcefdbda983ae59a60",class:"label",typography:"label"},r("slot",{key:"1e8a604c35454992794958088051f5074504a3cf"})),r("mds-text",{key:"64cdd428f13f52a6964ab55527707a74ef98d560",class:"value",typography:"label"},this.value)),r("div",{key:"00f8ad9cd7bdaff91a766d7c8e50a5ad65b4983a",class:"range"},r("div",{key:"64e70fc8df3951015535b0e0bee0177089c9c399",class:"track"},r("div",{key:"255824ff26075a8da7e176f03e8a2e99d8e754e5",class:"contrast-area"}),r("div",{key:"a5d3f15b29af3c95dcdaffe05ba3d9481bfafce2",class:"track-total"},r("div",{key:"f50dff46578030bc9ecd83d56dec99b4a099f0b5",class:"track-progress",style:{width:"".concat(this.progress,"%")}}))),r("input",{key:"34ba926affc23fb845c421c7813ec05f7ce03f5f",class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value})))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}},enumerable:false,configurable:true});return t}());s.style=o}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(n,e,t,r){function i(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,u){function a(n){try{o(r.next(n))}catch(n){u(n)}}function c(n){try{o(r["throw"](n))}catch(n){u(n)}}function o(n){n.done?t(n.value):i(n.value).then(a,c)}o((r=r.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var t={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(n){return function(e){return o([n,e])}}function o(c){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,c[0]&&(t=0)),t)try{if(r=1,i&&(u=c[0]&2?i["return"]:c[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,c[1])).done)return u;if(i=0,u)c=[c[0]&2,u.value];switch(c[0]){case 0:case 1:u=c;break;case 4:t.label++;return{value:c[1],done:false};case 5:t.label++;i=c[1];c=[0];continue;case 7:c=t.ops.pop();t.trys.pop();continue;default:if(!(u=t.trys,u=u.length>0&&u[u.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!u||c[1]>u[0]&&c[1]<u[3])){t.label=c[1];break}if(c[0]===6&&t.label<u[1]){t.label=u[1];u=c;break}if(u&&t.label<u[2]){t.label=u[2];t.ops.push(c);break}if(u[2])t.ops.pop();t.trys.pop();continue}c=e.call(n,t)}catch(n){c=[6,n];i=0}finally{r=u=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-e79d51c6.system.js","./p-56ba5cbf.system.js"],(function(n,e){"use strict";var t,r,i;return{setters:[function(e){t=e.p;r=e.b;n("setNonce",e.s)},function(n){i=n.g}],execute:function(){var n=this;var u=function(){var n=e.meta.url;var r={};if(n!==""){r.resourcesUrl=new URL(".",n).href}return t(r)};u().then((function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,i()];case 1:n.sent();return[2,r([["p-c22c5274.system",[[65,"mds-input-range",{max:[2],min:[2],step:[2],disabled:[1540],value:[1538],progress:[32]},null,{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}]]]],e)]}}))}))}))}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]};return e(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,r,n,t){function i(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(t.next(e))}catch(e){a(e)}}function f(e){try{u(t["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,f)}u((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(e){return function(r){return u([e,r])}}function u(f){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,f[0]&&(n=0)),n)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:n.label++;return{value:f[1],done:false};case 5:n.label++;i=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1];a=f;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(f);break}if(a[2])n.ops.pop();n.trys.pop();continue}f=r.call(e,n)}catch(e){f=[6,e];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(e,r,n){if(n||arguments.length===2)for(var t=0,i=r.length,a;t<i;t++){if(a||!(t in r)){if(!a)a=Array.prototype.slice.call(r,0,t);a[t]=r[t]}}return e.concat(a||Array.prototype.slice.call(r))};System.register([],(function(e,r){"use strict";return{execute:function(){var n=this;var t="mds-input-range";var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:true,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:false,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:false,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:false,watchCallback:true};var a=Object.defineProperty;var o=function(e,r){for(var n in r)a(e,n,{get:r[n],enumerable:true})};var f=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var u=e("r",(function(e,r){e.__stencil__getHostRef=function(){return r};r.t=e}));var l=function(e,r){var n={i:0,$hostElement$:e,o:r,u:new Map};{n.l=new Promise((function(e){return n.v=e}));e["s-p"]=[];e["s-rc"]=[]}var t=n;e.__stencil__getHostRef=function(){return t};return t};var s=function(e,r){return r in e};var c=function(e,r){return(0,console.error)(e,r)};var v=new Map;var d=function(e,n,t){var i=e.h.replace(/-/g,"_");var a=e.p;if(!a){return void 0}var o=v.get(a);if(o){return o[i]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return r.import("./".concat(a,".entry.js").concat("")).then((function(e){{v.set(a,e)}return e[i]}),(function(e){c(e,n.$hostElement$)}))};var h=new Map;var p="sty-id";var m="{visibility:hidden}[hydrated]{visibility:inherit}";var y="slot-fb{display:contents}slot-fb[hidden]{display:none}";var b=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var w=typeof window!=="undefined"?window:{};var S={i:0,m:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,n,t){return e.addEventListener(r,n,t)},rel:function(e,r,n,t){return e.removeEventListener(r,n,t)},ce:function(e,r){return new CustomEvent(e,r)}};var g=e("p",(function(e){return Promise.resolve(e)}));var _=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var $=false;var k=[];var j=[];var C=function(e,r){return function(n){e.push(n);if(!$){$=true;if(r&&S.i&4){x(O)}else{S.raf(O)}}}};var A=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){c(e)}}e.length=0};var O=function(){A(k);{A(j);if($=k.length>0){S.raf(O)}}};var x=function(e){return g().then(e)};var E=C(j,true);var T=function(e){e=typeof e;return e==="object"||e==="function"};function D(e){var r,n,t;return(t=(n=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var M={};o(M,{err:function(){return P},map:function(){return R},ok:function(){return L},unwrap:function(){return F},unwrapErr:function(){return N}});var L=function(e){return{isOk:true,isErr:false,value:e}};var P=function(e){return{isOk:false,isErr:true,value:e}};function R(e,r){if(e.isOk){var n=r(e.value);if(n instanceof Promise){return n.then((function(e){return L(e)}))}else{return L(n)}}if(e.isErr){var t=e.value;return P(t)}throw"should never get here"}var F=function(e){if(e.isOk){return e.value}else{throw e.value}};var N=function(e){if(e.isErr){return e.value}else{throw e.value}};var U=function(e,r){if(r===void 0){r=""}{return function(){return}}};var W=function(e,r){{return function(){return}}};var z=e("h",(function(e,r){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var o=false;var f=false;var u=[];var l=function(r){for(var n=0;n<r.length;n++){i=r[n];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(o=typeof e!=="function"&&!T(i)){i=String(i)}if(o&&f){u[u.length-1].S+=i}else{u.push(o?H(null,i):i)}f=o}}};l(n);if(r){if(r.key){a=r.key}{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 c=H(e,null);c._=r;if(u.length>0){c.$=u}{c.k=a}return c}));var H=function(e,r){var n={i:0,j:e,S:r,C:null,$:null};{n._=null}{n.k=null}return n};var B=e("H",{});var G=function(e){return e&&e.j===B};var I=function(e,r){if(e!=null&&!T(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}return e}return e};var Q=e("g",(function(e){return f(e).$hostElement$}));var V=e("c",(function(e,r,n){var t=Q(e);return{emit:function(e){return q(t,r,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var q=function(e,r,n){var t=S.ce(r,n);e.dispatchEvent(t);return t};var K=new WeakMap;var X=function(e,r,n){var t=h.get(e);if(_&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=r}else{t.replaceSync(r)}}else{t=r}h.set(e,t)};var Y=function(e,r,n){var t;var i=Z(r);var a=h.get(i);if(!w.document){return i}e=e.nodeType===11?e:w.document;if(a){if(typeof a==="string"){e=e.head||e;var o=K.get(e);var f=void 0;if(!o){K.set(e,o=new Set)}if(!o.has(i)){{f=document.querySelector("[".concat(p,'="').concat(i,'"]'))||w.document.createElement("style");f.innerHTML=a;var u=(t=S.A)!=null?t:D(w.document);if(u!=null){f.setAttribute("nonce",u)}if(!(r.i&1)){if(e.nodeName==="HEAD"){var l=e.querySelectorAll("link[rel=preconnect]");var s=l.length>0?l[l.length-1].nextSibling:e.querySelector("style");e.insertBefore(f,(s==null?void 0:s.parentNode)===e?s:null)}else if("host"in e){if(_){var c=new CSSStyleSheet;c.replaceSync(a);e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}else{var v=e.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{e.prepend(f)}}}else{e.append(f)}}if(r.i&1){e.insertBefore(f,null)}}if(r.i&4){f.innerHTML+=y}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var J=function(e){var r=e.o;var n=e.$hostElement$;var t=r.i;var i=U("attachStyles",r.h);var a=Y(n.shadowRoot?n.shadowRoot:n.getRootNode(),r);if(t&10&&t&2||t&128){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var Z=function(e,r){return"sc-"+e.h};var ee=function(e,r,n,t,i,a,o){if(n===t){return}var f=s(e,r);var u=r.toLowerCase();if(r==="class"){var l=e.classList;var c=ne(n);var v=ne(t);{l.remove.apply(l,c.filter((function(e){return e&&!v.includes(e)})));l.add.apply(l,v.filter((function(e){return e&&!c.includes(e)})))}}else if(r==="style"){{for(var d in n){if(!t||t[d]==null){if(d.includes("-")){e.style.removeProperty(d)}else{e.style[d]=""}}}}for(var d in t){if(!n||t[d]!==n[d]){if(d.includes("-")){e.style.setProperty(d,t[d])}else{e.style[d]=t[d]}}}}else if(r==="key");else if(!f&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(s(w,u)){r=u.slice(2)}else{r=u[2]+r.slice(3)}if(n||t){var h=r.endsWith(te);r=r.replace(ie,"");if(n){S.rel(e,r,n,h)}if(t){S.ael(e,r,t,h)}}}else{var p=T(t);if((f||p&&t!==null)&&!i){try{if(!e.tagName.includes("-")){var m=t==null?"":t;if(r==="list"){f=false}else if(n==null||e[r]!=m){if(typeof e.__lookupSetter__(r)==="function"){e[r]=m}else{e.setAttribute(r,m)}}}else if(e[r]!==t){e[r]=t}}catch(e){}}if(t==null||t===false){if(t!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!f||a&4||i)&&!p&&e.nodeType===1){t=t===true?"":t;{e.setAttribute(r,t)}}}};var re=/\s/;var ne=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(re)};var te="Capture";var ie=new RegExp(te+"$");var ae=function(e,r,n,t){var i=r.C.nodeType===11&&r.C.host?r.C.host:r.C;var a=e&&e._||{};var o=r._||{};{for(var f=0,u=oe(Object.keys(a));f<u.length;f++){var l=u[f];if(!(l in o)){ee(i,l,a[l],void 0,n,r.i)}}}for(var s=0,c=oe(Object.keys(o));s<c.length;s++){var l=c[s];ee(i,l,a[l],o[l],n,r.i)}};function oe(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var fe;var ue=false;var le=false;var se=function(e,r,n){var t=r.$[n];var a=0;var o;var f;if(t.S!==null){o=t.C=w.document.createTextNode(t.S)}else{if(!w.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}o=t.C=w.document.createElement(!ue&&i.slotRelocation&&t.i&2?"slot-fb":t.j);{ae(null,t,le)}if(t.$){for(a=0;a<t.$.length;++a){f=se(e,t,a);if(f){o.appendChild(f)}}}}o["s-hn"]=fe;return o};var ce=function(e,r,n,t,i,a){var o=e;var f;if(o.shadowRoot&&o.tagName===fe){o=o.shadowRoot}for(;i<=a;++i){if(t[i]){f=se(null,n,i);if(f){t[i].C=f;me(o,f,r)}}}};var ve=function(e,r,n){for(var t=r;t<=n;++t){var i=e[t];if(i){var a=i.C;if(a){a.remove()}}}};var de=function(e,r,n,t,i){if(i===void 0){i=false}var a=0;var o=0;var f=0;var u=0;var l=r.length-1;var s=r[0];var c=r[l];var v=t.length-1;var d=t[0];var h=t[v];var p;var m;while(a<=l&&o<=v){if(s==null){s=r[++a]}else if(c==null){c=r[--l]}else if(d==null){d=t[++o]}else if(h==null){h=t[--v]}else if(he(s,d,i)){pe(s,d,i);s=r[++a];d=t[++o]}else if(he(c,h,i)){pe(c,h,i);c=r[--l];h=t[--v]}else if(he(s,h,i)){pe(s,h,i);me(e,s.C,c.C.nextSibling);s=r[++a];h=t[--v]}else if(he(c,d,i)){pe(c,d,i);me(e,c.C,s.C);c=r[--l];d=t[++o]}else{f=-1;{for(u=a;u<=l;++u){if(r[u]&&r[u].k!==null&&r[u].k===d.k){f=u;break}}}if(f>=0){m=r[f];if(m.j!==d.j){p=se(r&&r[o],n,f)}else{pe(m,d,i);r[f]=void 0;p=m.C}d=t[++o]}else{p=se(r&&r[o],n,o);d=t[++o]}if(p){{me(s.C.parentNode,p,s.C)}}}}if(a>l){ce(e,t[v+1]==null?null:t[v+1].C,n,t,o,v)}else if(o>v){ve(r,a,l)}};var he=function(e,r,n){if(n===void 0){n=false}if(e.j===r.j){if(!n){return e.k===r.k}if(n&&!e.k&&r.k){e.k=r.k}return true}return false};var pe=function(e,r,n){if(n===void 0){n=false}var t=r.C=e.C;var a=e.$;var o=r.$;var f=r.S;if(f===null){{ae(e,r,le)}if(a!==null&&o!==null){de(t,a,r,o,n)}else if(o!==null){if(e.S!==null){t.textContent=""}ce(t,null,r,o,0,o.length-1)}else if(!n&&i.updatable&&a!==null){ve(a,0,a.length-1)}}else if(e.S!==f){t.data=f}};var me=function(e,r,n){{return e==null?void 0:e.insertBefore(r,n)}};var ye=function(e,r,n){if(n===void 0){n=false}var t=e.$hostElement$;var i=e.o;var a=e.O||H(null,null);var o=G(r)?r:z(null,null,r);fe=t.tagName;if(i.T){o._=o._||{};i.T.map((function(e){var r=e[0],n=e[1];return o._[n]=t[r]}))}if(n&&o._){for(var f=0,u=Object.keys(o._);f<u.length;f++){var l=u[f];if(t.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){o._[l]=t[l]}}}o.j=null;o.i|=4;e.O=o;o.C=a.C=t.shadowRoot||t;ue=!!(i.i&1)&&!(i.i&128);pe(a,o,n)};var be=function(e,r){if(r&&!e.D&&r["s-p"]){var n=r["s-p"].push(new Promise((function(t){return e.D=function(){r["s-p"].splice(n-1,1);t()}})))}};var we=function(e,r){{e.i|=16}if(e.i&4){e.i|=512;return}be(e,e.M);var n=function(){return Se(e,r)};return E(n)};var Se=function(e,r){var n=e.$hostElement$;var t=U("scheduleUpdate",e.o.h);var i=e.t;if(!i){throw new Error("Can't render component <".concat(n.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(r){a=Ae(i,"componentWillLoad",void 0,n)}else{a=Ae(i,"componentWillUpdate",void 0,n)}a=ge(a,(function(){return Ae(i,"componentWillRender",void 0,n)}));t();return ge(a,(function(){return $e(e,i,r)}))};var ge=function(e,r){return _e(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var _e=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var $e=function(e,r,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,o,f,u,l;return __generator(this,(function(s){i=e.$hostElement$;a=U("update",e.o.h);o=i["s-rc"];if(t){J(e)}f=U("render",e.o.h);{ke(e,r,i,t)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}f();a();{u=(n=i["s-p"])!=null?n:[];l=function(){return je(e)};if(u.length===0){l()}else{Promise.all(u).then(l);e.i|=4;u.length=0}}return[2]}))}))};var ke=function(e,r,n,t){try{r=r.render();{e.i&=~16}{e.i|=2}{{{ye(e,r,t)}}}}catch(r){c(r,e.$hostElement$)}return null};var je=function(e){var r=e.o.h;var n=e.$hostElement$;var t=U("postUpdate",r);var i=e.t;var a=e.M;Ae(i,"componentDidRender",void 0,n);if(!(e.i&64)){e.i|=64;{Oe(n)}Ae(i,"componentDidLoad",void 0,n);t();{e.v(n);if(!a){Ce()}}}else{Ae(i,"componentDidUpdate",void 0,n);t()}{if(e.D){e.D();e.D=void 0}if(e.i&512){x((function(){return we(e,false)}))}e.i&=~(4|512)}};var Ce=function(e){x((function(){return q(w,"appload",{detail:{namespace:t}})}))};var Ae=function(e,r,n,t){if(e&&e[r]){try{return e[r](n)}catch(e){c(e,t)}}return void 0};var Oe=function(e){var r;return e.setAttribute((r=i.hydratedSelectorName)!=null?r:"hydrated","")};var xe=function(e,r){return f(e).u.get(r)};var Ee=function(e,r,n,t){var i=f(e);if(!i){throw new Error("Couldn't find host element for \"".concat(t.h,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var o=i.u.get(r);var u=i.i;var l=i.t;n=I(n,t.L[r][0]);var s=Number.isNaN(o)&&Number.isNaN(n);var v=n!==o&&!s;if((!(u&8)||o===void 0)&&v){i.u.set(r,n);if(l){if(t.P&&u&128){var d=t.P[r];if(d){d.map((function(e){try{l[e](n,o,r)}catch(e){c(e,a)}}))}}if((u&(2|16))===2){if(l.componentShouldUpdate){if(l.componentShouldUpdate(n,o,r)===false){return}}we(i,false)}}}};var Te=function(e,r,n){var t,a;var o=e.prototype;if(r.i&64&&n&1){b.forEach((function(e){Object.defineProperty(o,e,{value:function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var t=f(this);var i=t.t;if(!i){t.l.then((function(n){var t=n[e];typeof t==="function"&&t.call.apply(t,__spreadArray([n],r,false))}))}else{var a=i[e];typeof a==="function"&&a.call.apply(a,__spreadArray([i],r,false))}}})}))}if(r.L||(r.P||e.watchers)){if(e.watchers&&!r.P){r.P=e.watchers}var u=Object.entries((t=r.L)!=null?t:{});u.map((function(e){var t=e[0],i=e[1][0];if(i&31||n&2&&i&32){var a=Object.getOwnPropertyDescriptor(o,t)||{},u=a.get,l=a.set;if(u)r.L[t][0]|=2048;if(l)r.L[t][0]|=4096;if(n&1||!u){Object.defineProperty(o,t,{get:function(){{if((r.L[t][0]&2048)===0){return xe(this,t)}var e=f(this);var n=e?e.t:o;if(!n)return;return n[t]}},configurable:true,enumerable:true})}Object.defineProperty(o,t,{set:function(e){var a=this;var o=f(this);if(l){var u=i&32?this[t]:o.$hostElement$[t];if(typeof u==="undefined"&&o.u.get(t)){e=o.u.get(t)}else if(!o.u.get(t)&&u){o.u.set(t,u)}l.apply(this,[I(e,i)]);e=i&32?this[t]:o.$hostElement$[t];Ee(this,t,e,r);return}{if((n&1)===0||(r.L[t][0]&4096)===0){Ee(this,t,e,r);if(n&1&&!o.t){o.l.then((function(){if(r.L[t][0]&4096&&o.t[t]!==o.u.get(t)){o.t[t]=e}}))}return}var s=function(){var n=o.t[t];if(!o.u.get(t)&&n){o.u.set(t,n)}o.t[t]=I(e,i);Ee(a,t,o.t[t],r)};if(o.t){s()}else{o.l.then((function(){return s()}))}}}})}}));if(n&1){var l=new Map;o.attributeChangedCallback=function(e,n,t){var a=this;S.jmp((function(){var u;var s=l.get(e);if(a.hasOwnProperty(s)&&i.lazyLoad){t=a[s];delete a[s]}else if(o.hasOwnProperty(s)&&typeof a[s]==="number"&&a[s]==t){return}else if(s==null){var c=f(a);var v=c==null?void 0:c.i;if(v&&!(v&8)&&v&128&&t!==n){var d=c.t;var h=(u=r.P)==null?void 0:u[e];h==null?void 0:h.forEach((function(r){if(d[r]!=null){d[r].call(d,t,n,e)}}))}return}var p=Object.getOwnPropertyDescriptor(o,s);t=t===null&&typeof a[s]==="boolean"?false:t;if(t!==a[s]&&(!p.get||!!p.set)){a[s]=t}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=r.P)!=null?a:{}),true),u.filter((function(e){var r=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],t=e[1];var i;var a=t[1]||n;l.set(a,n);if(t[0]&512){(i=r.T)==null?void 0:i.push([n,a])}return a})),true)))}}return e};var De=function(e,r,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,o,f,u,l,s,v,p,m;return __generator(this,(function(y){switch(y.label){case 0:if(!((r.i&32)===0))return[3,6];r.i|=32;i=t.p;if(!i)return[3,4];a=d(t,r);if(!(a&&"then"in a))return[3,2];o=W();return[4,a];case 1:n=y.sent();o();return[3,3];case 2:n=a;y.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.h,"#").concat(r.R,'" was not found'))}if(!n.isProxied){{t.P=n.watchers}Te(n,t,2);n.isProxied=true}f=U("createInstance",t.h);{r.i|=8}try{new n(r)}catch(r){c(r,e)}{r.i&=~8}{r.i|=128}f();Me(r.t,e);return[3,5];case 4:n=e.constructor;u=e.localName;customElements.whenDefined(u).then((function(){return r.i|=128}));y.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}s=Z(t);if(!h.has(s)){v=U("registerStyles",t.h);X(s,l,!!(t.i&1));v()}}y.label=6;case 6:p=r.M;m=function(){return we(r,true)};if(p&&p["s-rc"]){p["s-rc"].push(m)}else{m()}return[2]}}))}))};var Me=function(e,r){{Ae(e,"connectedCallback",void 0,r)}};var Le=function(e){if((S.i&1)===0){var r=f(e);var n=r.o;var t=U("connectedCallback",n.h);if(!(r.i&1)){r.i|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){be(r,r.M=i);break}}}if(n.L){Object.entries(n.L).map((function(r){var n=r[0],t=r[1][0];if(t&31&&e.hasOwnProperty(n)){var i=e[n];delete e[n];e[n]=i}}))}{De(e,r,n)}}else{if(r==null?void 0:r.t){Me(r.t,e)}else if(r==null?void 0:r.l){r.l.then((function(){return Me(r.t,e)}))}}t()}};var Pe=function(e,r){{Ae(e,"disconnectedCallback",void 0,r||e)}};var Re=function(e){return __awaiter(n,void 0,void 0,(function(){var r;return __generator(this,(function(n){if((S.i&1)===0){r=f(e);if(r==null?void 0:r.t){Pe(r.t,e)}else if(r==null?void 0:r.l){r.l.then((function(){return Pe(r.t,e)}))}}if(K.has(e)){K.delete(e)}if(e.shadowRoot&&K.has(e.shadowRoot)){K.delete(e.shadowRoot)}return[2]}))}))};var Fe=e("b",(function(e,r){if(r===void 0){r={}}var n;if(!w.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var t=U();var i=[];var a=r.exclude||[];var o=w.customElements;var u=w.document.head;var s=u.querySelector("meta[charset]");var c=w.document.createElement("style");var v=[];var d;var h=true;Object.assign(S,r);S.m=new URL(r.resourcesUrl||"./",w.document.baseURI).href;var p=false;e.map((function(e){e[1].map((function(r){var n;var t={i:r[0],h:r[1],L:r[2],F:r[3]};if(t.i&4){p=true}{t.L=r[2]}{t.T=[]}{t.P=(n=r[4])!=null?n:{}}var u=t.h;var s=function(e){__extends(r,e);function r(r){var n=e.call(this,r)||this;n.hasRegisteredEventListeners=false;r=n;l(r,t);if(t.i&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open"})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.h,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}r.prototype.connectedCallback=function(){var e=this;f(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{S.jmp((function(){return Le(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;S.jmp((function(){return Re(e)}));S.raf((function(){var r;var n=f(e);var t=v.findIndex((function(r){return r===e}));if(t>-1){v.splice(t,1)}if(((r=n==null?void 0:n.O)==null?void 0:r.C)instanceof Node&&!n.O.C.isConnected){delete n.O.C}}))};r.prototype.componentOnReady=function(){return f(this).l};return r}(HTMLElement);if(t.i&64){s.formAssociated=true}t.p=e[0];if(!a.includes(u)&&!o.get(u)){i.push(u);o.define(u,Te(s,t,1))}}))}));if(i.length>0){if(p){c.textContent+=y}{c.textContent+=i.sort()+m}if(c.innerHTML.length){c.setAttribute("data-styles","");var b=(n=S.A)!=null?n:D(w.document);if(b!=null){c.setAttribute("nonce",b)}u.insertBefore(c,s?s.nextSibling:u.firstChild)}}h=false;if(v.length){v.map((function(e){return e.connectedCallback()}))}else{{S.jmp((function(){return d=setTimeout(Ce,30)}))}}t()}));var Ne=e("s",(function(e){return S.A=e}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as a,h as e,H as r,g as d}from"./p-87f42ab7.js";const i=class{constructor(e){t(this,e),this.changeEvent=a(this,"mdsInputRangeChange",7),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.max=100,this.min=0,this.step=1,this.onInput=()=>{this.value=parseInt(this.inputElement.value)}}calculateProgress(){let t=parseInt(this.inputElement.value);t>this.max?t=this.max:t<this.min&&(t=this.min),(t-this.min)%this.step!=0&&(t=Math.round(t/this.step)*this.step-this.min),this.value=t,this.internals.setFormValue(this.value.toString()),this.progress=100*(this.value-this.min)/(this.max-this.min)}disabledChanged(t){t&&this.internals.setFormValue(null)}valueChanged(){this.inputElement.value=this.value.toString(),this.calculateProgress(),this.changeEvent.emit(this.value)}minChanged(){this.calculateProgress()}maxChanged(){this.calculateProgress()}stepChanged(){if(this.step<1)throw Error("step cant be negative or zero");this.calculateProgress()}formResetCallback(){this.internals.setFormValue("")}componentDidLoad(){var t,a;this.label=null!==(t=this.element.textContent)&&void 0!==t?t:"",this.inputElement=null===(a=this.element.shadowRoot)||void 0===a?void 0:a.querySelector(".field"),this.value=parseInt(this.inputElement.value),this.calculateProgress()}render(){return e(r,{key:"e1cf60063d451ad99e6e4943412119634a261dc6"},e("header",{key:"786ee56712c0d48fce3b0107bf44e1a4e39a5cb2",class:"header",part:"header"},e("mds-text",{key:"b51d53ca91e1a39431b851dcefdbda983ae59a60",class:"label",typography:"label"},e("slot",{key:"1e8a604c35454992794958088051f5074504a3cf"})),e("mds-text",{key:"64cdd428f13f52a6964ab55527707a74ef98d560",class:"value",typography:"label"},this.value)),e("div",{key:"00f8ad9cd7bdaff91a766d7c8e50a5ad65b4983a",class:"range"},e("div",{key:"64e70fc8df3951015535b0e0bee0177089c9c399",class:"track"},e("div",{key:"255824ff26075a8da7e176f03e8a2e99d8e754e5",class:"contrast-area"}),e("div",{key:"a5d3f15b29af3c95dcdaffe05ba3d9481bfafce2",class:"track-total"},e("div",{key:"f50dff46578030bc9ecd83d56dec99b4a099f0b5",class:"track-progress",style:{width:`${this.progress}%`}}))),e("input",{key:"34ba926affc23fb845c421c7813ec05f7ce03f5f",class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value})))}static get formAssociated(){return!0}get element(){return d(this)}static get watchers(){return{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}}};i.style='@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-input-range-thumb-size:1rem;--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-thumb-shadow:0 0 0 2px rgb(var(--tone-neutral));--mds-input-range-track-background:rgb(var(--tone-neutral-08));--mds-input-range-track-size:0.5rem;--mds-input-range-track-progress-background:rgb(var(--variant-primary-03));--mds-input-range-thumb-background-disabled:rgb(var(--tone-neutral-06));--mds-input-range-track-background-disabled:rgb(var(--tone-neutral-08));--mds-input-range-track-progress-background-disabled:rgb(var(--tone-neutral-06));gap:0.25rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);display:grid;-webkit-transition-property:color;transition-property:color}.header{gap:0.5rem;display:-ms-flexbox;display:flex}.label{min-width:0rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:var(--mds-input-range-thumb-size);position:relative}.track{width:100%;--margin:calc(var(--mds-input-range-track-size) / 2);-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 var(--margin);position:absolute}.field{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-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;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field{z-index:20;height:1rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-radius:1000px;-ms-flex-positive:1;flex-grow:1;margin:0}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field::-webkit-slider-thumb{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-appearance:none;appearance:none;background-color:var(--mds-input-range-thumb-background);border:0;border-radius:var(--mds-input-range-thumb-size);-webkit-box-shadow:var(--mds-input-range-thumb-shadow);box-shadow:var(--mds-input-range-thumb-shadow);cursor:-webkit-grab;cursor:grab;height:var(--mds-input-range-thumb-size);line-height:0;-webkit-transform:translate(0, -50%);transform:translate(0, -50%);-webkit-transition-property:background-color, box-shadow;-webkit-transition-property:background-color, -webkit-box-shadow;transition-property:background-color, -webkit-box-shadow;transition-property:background-color, box-shadow;transition-property:background-color, box-shadow, -webkit-box-shadow;width:var(--mds-input-range-thumb-size)}.field::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none;border:0;height:0;width:100%}.track-progress{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-progress-background);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);-webkit-transition-property:background-color;transition-property:background-color}.track-total{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-background);border-radius:var(--mds-input-range-track-size);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);overflow:hidden;-webkit-transition-property:background-color;transition-property:background-color;width:100%}.contrast-area{margin-left:0.25rem;margin-right:0.25rem;border-radius:var(--mds-input-range-track-size)}:host([disabled]:not([disabled="false"])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled="false"])) .field::-webkit-slider-thumb{cursor:not-allowed}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .field::-webkit-slider-thumb,:host-context(.pref-animation-reduce) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-reduce) .track-progress,:host-context(.pref-animation-reduce) .track-total{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .field::-webkit-slider-thumb,:host-context(.pref-animation-system) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-system) .track-progress,:host-context(.pref-animation-system) .track-total{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}}:host-context(.pref-contrast-more){color:rgb(var(--tone-neutral-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){color:rgb(var(--tone-neutral-01))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';export{i as mds_input_range}
|
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-03-10T12:32:28",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "22.11.0"
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
"fsNamespace": "mds-input-range",
|
|
10
10
|
"components": 1,
|
|
11
11
|
"entries": 1,
|
|
12
|
-
"bundles":
|
|
12
|
+
"bundles": 102,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 54,
|
|
17
17
|
"generatedFiles": [
|
|
18
18
|
"./dist/collection/common/aria.js",
|
|
19
|
+
"./dist/collection/common/browser.js",
|
|
19
20
|
"./dist/collection/common/date.js",
|
|
20
21
|
"./dist/collection/common/device.js",
|
|
21
22
|
"./dist/collection/common/file.js",
|
|
@@ -85,19 +86,19 @@
|
|
|
85
86
|
"files": 42,
|
|
86
87
|
"generatedFiles": [
|
|
87
88
|
"./dist/cjs/app-globals-3a1e7e63.js",
|
|
88
|
-
"./dist/cjs/index-
|
|
89
|
+
"./dist/cjs/index-9509a00b.js",
|
|
89
90
|
"./dist/cjs/index.cjs.js",
|
|
90
91
|
"./dist/cjs/loader.cjs.js",
|
|
91
92
|
"./dist/cjs/mds-input-range.cjs.entry.js",
|
|
92
93
|
"./dist/cjs/mds-input-range.cjs.js",
|
|
93
94
|
"./dist/esm-es5/app-globals-0f993ce5.js",
|
|
94
|
-
"./dist/esm-es5/index-
|
|
95
|
+
"./dist/esm-es5/index-476f378c.js",
|
|
95
96
|
"./dist/esm-es5/index.js",
|
|
96
97
|
"./dist/esm-es5/loader.js",
|
|
97
98
|
"./dist/esm-es5/mds-input-range.entry.js",
|
|
98
99
|
"./dist/esm-es5/mds-input-range.js",
|
|
99
100
|
"./dist/esm/app-globals-0f993ce5.js",
|
|
100
|
-
"./dist/esm/index-
|
|
101
|
+
"./dist/esm/index-476f378c.js",
|
|
101
102
|
"./dist/esm/index.js",
|
|
102
103
|
"./dist/esm/loader.js",
|
|
103
104
|
"./dist/esm/mds-input-range.entry.js",
|
|
@@ -109,23 +110,23 @@
|
|
|
109
110
|
"./dist/mds-input-range/mds-input-range.js",
|
|
110
111
|
"./dist/mds-input-range/p-50ea2036.system.js",
|
|
111
112
|
"./dist/mds-input-range/p-56ba5cbf.system.js",
|
|
112
|
-
"./dist/mds-input-range/p-
|
|
113
|
-
"./dist/mds-input-range/p-
|
|
114
|
-
"./dist/mds-input-range/p-
|
|
115
|
-
"./dist/mds-input-range/p-ba639fb6.entry.js",
|
|
116
|
-
"./dist/mds-input-range/p-dd7b28fc.js",
|
|
113
|
+
"./dist/mds-input-range/p-87f42ab7.js",
|
|
114
|
+
"./dist/mds-input-range/p-c22c5274.system.entry.js",
|
|
115
|
+
"./dist/mds-input-range/p-d47766b6.system.js",
|
|
117
116
|
"./dist/mds-input-range/p-e1255160.js",
|
|
117
|
+
"./dist/mds-input-range/p-e79d51c6.system.js",
|
|
118
|
+
"./dist/mds-input-range/p-e838760a.entry.js",
|
|
118
119
|
"./www/build/index.esm.js",
|
|
119
120
|
"./www/build/mds-input-range.esm.js",
|
|
120
121
|
"./www/build/mds-input-range.js",
|
|
121
122
|
"./www/build/p-50ea2036.system.js",
|
|
122
123
|
"./www/build/p-56ba5cbf.system.js",
|
|
123
|
-
"./www/build/p-
|
|
124
|
-
"./www/build/p-
|
|
125
|
-
"./www/build/p-
|
|
126
|
-
"./www/build/p-
|
|
127
|
-
"./www/build/p-
|
|
128
|
-
"./www/build/p-
|
|
124
|
+
"./www/build/p-87f42ab7.js",
|
|
125
|
+
"./www/build/p-c22c5274.system.entry.js",
|
|
126
|
+
"./www/build/p-d47766b6.system.js",
|
|
127
|
+
"./www/build/p-e1255160.js",
|
|
128
|
+
"./www/build/p-e79d51c6.system.js",
|
|
129
|
+
"./www/build/p-e838760a.entry.js"
|
|
129
130
|
]
|
|
130
131
|
},
|
|
131
132
|
{
|
|
@@ -158,12 +159,12 @@
|
|
|
158
159
|
"components": [
|
|
159
160
|
"mds-input-range"
|
|
160
161
|
],
|
|
161
|
-
"bundleId": "p-
|
|
162
|
-
"fileName": "p-
|
|
162
|
+
"bundleId": "p-e838760a",
|
|
163
|
+
"fileName": "p-e838760a.entry.js",
|
|
163
164
|
"imports": [
|
|
164
|
-
"p-
|
|
165
|
+
"p-87f42ab7.js"
|
|
165
166
|
],
|
|
166
|
-
"originalByteSize":
|
|
167
|
+
"originalByteSize": 16757
|
|
167
168
|
}
|
|
168
169
|
],
|
|
169
170
|
"esm": [
|
|
@@ -175,9 +176,9 @@
|
|
|
175
176
|
"bundleId": "mds-input-range",
|
|
176
177
|
"fileName": "mds-input-range.entry.js",
|
|
177
178
|
"imports": [
|
|
178
|
-
"index-
|
|
179
|
+
"index-476f378c.js"
|
|
179
180
|
],
|
|
180
|
-
"originalByteSize":
|
|
181
|
+
"originalByteSize": 16761
|
|
181
182
|
}
|
|
182
183
|
],
|
|
183
184
|
"es5": [
|
|
@@ -189,9 +190,9 @@
|
|
|
189
190
|
"bundleId": "mds-input-range",
|
|
190
191
|
"fileName": "mds-input-range.entry.js",
|
|
191
192
|
"imports": [
|
|
192
|
-
"index-
|
|
193
|
+
"index-476f378c.js"
|
|
193
194
|
],
|
|
194
|
-
"originalByteSize":
|
|
195
|
+
"originalByteSize": 16761
|
|
195
196
|
}
|
|
196
197
|
],
|
|
197
198
|
"system": [
|
|
@@ -200,12 +201,12 @@
|
|
|
200
201
|
"components": [
|
|
201
202
|
"mds-input-range"
|
|
202
203
|
],
|
|
203
|
-
"bundleId": "p-
|
|
204
|
-
"fileName": "p-
|
|
204
|
+
"bundleId": "p-c22c5274.system",
|
|
205
|
+
"fileName": "p-c22c5274.system.entry.js",
|
|
205
206
|
"imports": [
|
|
206
|
-
"p-
|
|
207
|
+
"p-e79d51c6.system.js"
|
|
207
208
|
],
|
|
208
|
-
"originalByteSize":
|
|
209
|
+
"originalByteSize": 17581
|
|
209
210
|
}
|
|
210
211
|
],
|
|
211
212
|
"commonjs": [
|
|
@@ -217,9 +218,9 @@
|
|
|
217
218
|
"bundleId": "mds-input-range.cjs",
|
|
218
219
|
"fileName": "mds-input-range.cjs.entry.js",
|
|
219
220
|
"imports": [
|
|
220
|
-
"index-
|
|
221
|
+
"index-9509a00b.js"
|
|
221
222
|
],
|
|
222
|
-
"originalByteSize":
|
|
223
|
+
"originalByteSize": 16862
|
|
223
224
|
}
|
|
224
225
|
]
|
|
225
226
|
},
|
|
@@ -630,7 +631,6 @@
|
|
|
630
631
|
"hasComponentDidUpdateFn": false,
|
|
631
632
|
"hasComponentWillRenderFn": false,
|
|
632
633
|
"hasComponentDidRenderFn": false,
|
|
633
|
-
"hasComponentDidUnloadFn": false,
|
|
634
634
|
"hasConnectedCallbackFn": false,
|
|
635
635
|
"hasDisconnectedCallbackFn": false,
|
|
636
636
|
"hasElement": false,
|
|
@@ -709,11 +709,12 @@
|
|
|
709
709
|
],
|
|
710
710
|
"componentGraph": {
|
|
711
711
|
"sc-mds-input-range": [
|
|
712
|
-
"p-
|
|
712
|
+
"p-87f42ab7.js"
|
|
713
713
|
]
|
|
714
714
|
},
|
|
715
715
|
"sourceGraph": {
|
|
716
716
|
"./src/common/aria.ts": [],
|
|
717
|
+
"./src/common/browser.ts": [],
|
|
717
718
|
"./src/common/date.ts": [],
|
|
718
719
|
"./src/common/device.ts": [],
|
|
719
720
|
"./src/common/file.ts": [],
|
|
@@ -15,6 +15,6 @@ export declare class Locale {
|
|
|
15
15
|
lang: (el: HTMLElement) => string;
|
|
16
16
|
update: (doc?: Document | ShadowRoot) => void;
|
|
17
17
|
private pluralize;
|
|
18
|
-
get: (tag: string | string[], context?: Record<string, string | number>) => string;
|
|
18
|
+
get: (tag: string | string[], context?: Record<string, string | number | boolean>) => string;
|
|
19
19
|
}
|
|
20
20
|
export {};
|
package/documentation.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-input-range",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "mds-input-range 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 JavaScript framework you are using.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"test": "stencil test --spec --e2e"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@maggioli-design-system/styles": "15.
|
|
28
|
-
"@maggioli-design-system/mds-text": "4.
|
|
29
|
-
"@stencil/core": "4.
|
|
27
|
+
"@maggioli-design-system/styles": "15.9.0",
|
|
28
|
+
"@maggioli-design-system/mds-text": "4.7.1",
|
|
29
|
+
"@stencil/core": "4.27.2"
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"author": {
|
package/src/common/locale.ts
CHANGED
|
@@ -52,7 +52,7 @@ export class Locale {
|
|
|
52
52
|
})
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
private pluralize = (tag: string | string[], context: Record<string, string | number>): string => {
|
|
55
|
+
private pluralize = (tag: string | string[], context: Record<string, string | number | boolean>): string => {
|
|
56
56
|
|
|
57
57
|
const languagePhrase: string | string[] = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag]
|
|
58
58
|
const phrases: string[] = []
|
|
@@ -81,7 +81,7 @@ export class Locale {
|
|
|
81
81
|
return render(translatePhrase, context)
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
get = (tag: string | string[], context?: Record<string, string | number>): string => {
|
|
84
|
+
get = (tag: string | string[], context?: Record<string, string | number | boolean>): string => {
|
|
85
85
|
if (context) {
|
|
86
86
|
return this.pluralize(tag, context)
|
|
87
87
|
}
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
.track-progress,
|
|
8
|
-
.track-total {
|
|
9
|
-
transition-duration: 0s;
|
|
10
|
-
}
|
|
1
|
+
:host-context(.pref-animation-reduce),
|
|
2
|
+
:host-context(.pref-animation-reduce) .field::-webkit-slider-thumb,
|
|
3
|
+
:host-context(.pref-animation-reduce) .field::-webkit-slider-runnable-track,
|
|
4
|
+
:host-context(.pref-animation-reduce) .track-progress,
|
|
5
|
+
:host-context(.pref-animation-reduce) .track-total {
|
|
6
|
+
transition-duration: 0s;
|
|
11
7
|
}
|
|
12
8
|
|
|
13
|
-
@
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
.track-total {
|
|
21
|
-
transition-duration: 0s;
|
|
22
|
-
}
|
|
9
|
+
@media (prefers-reduced-motion) {
|
|
10
|
+
:host-context(.pref-animation-system),
|
|
11
|
+
:host-context(.pref-animation-system) .field::-webkit-slider-thumb,
|
|
12
|
+
:host-context(.pref-animation-system) .field::-webkit-slider-runnable-track,
|
|
13
|
+
:host-context(.pref-animation-system) .track-progress,
|
|
14
|
+
:host-context(.pref-animation-system) .track-total {
|
|
15
|
+
transition-duration: 0s;
|
|
23
16
|
}
|
|
24
17
|
}
|