@maggioli-design-system/mds-progress 3.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/mds-progress.cjs.entry.js +1 -1
- package/dist/collection/common/floating-controller.js +3 -3
- package/dist/collection/common/slot.js +10 -1
- package/dist/collection/common/string.js +30 -0
- package/dist/collection/components/mds-progress/mds-progress.css +119 -0
- package/dist/collection/dictionary/keyboard.js +84 -0
- package/dist/collection/type/keyboard.js +1 -0
- package/dist/components/mds-progress.js +1 -1
- package/dist/documentation.json +1 -1
- package/dist/esm/mds-progress.entry.js +1 -1
- package/dist/esm-es5/mds-progress.entry.js +1 -1
- package/dist/mds-progress/mds-progress.esm.js +1 -1
- package/dist/mds-progress/p-2b265ffa.system.js +1 -1
- package/dist/mds-progress/p-321f64dc.system.entry.js +1 -0
- package/dist/mds-progress/p-a2e9544b.entry.js +1 -0
- package/dist/stats.json +22 -16
- package/dist/types/common/slot.d.ts +2 -1
- package/dist/types/common/string.d.ts +4 -0
- package/dist/types/dictionary/keyboard.d.ts +2 -0
- package/dist/types/type/keyboard.d.ts +12 -0
- package/documentation.json +21 -1
- package/package.json +2 -2
- package/src/common/floating-controller.ts +6 -6
- package/src/common/slot.ts +11 -0
- package/src/common/string.ts +42 -0
- package/src/components/mds-progress/mds-progress.css +1 -0
- package/src/dictionary/keyboard.ts +87 -0
- package/src/fixtures/icons.json +18 -1
- package/src/meta/keyboard/keys.json +83 -0
- package/src/tailwind/components.css +11 -0
- package/src/tailwind/fouc.css +118 -0
- package/src/type/keyboard.ts +93 -0
- package/www/build/mds-progress.esm.js +1 -1
- package/www/build/p-2b265ffa.system.js +1 -1
- package/www/build/p-321f64dc.system.entry.js +1 -0
- package/www/build/p-a2e9544b.entry.js +1 -0
- package/dist/mds-progress/p-088b5b20.system.entry.js +0 -1
- package/dist/mds-progress/p-d8baed2c.entry.js +0 -1
- package/www/build/p-088b5b20.system.entry.js +0 -1
- package/www/build/p-d8baed2c.entry.js +0 -1
|
@@ -21,7 +21,7 @@ const ifAttribute = (element, attribute, valueCheck = 'true') => {
|
|
|
21
21
|
return false;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n }\n}\n\n";
|
|
24
|
+
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\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";
|
|
25
25
|
const MdsProgressStyle0 = mdsProgressCss;
|
|
26
26
|
|
|
27
27
|
const MdsProgress = class {
|
|
@@ -143,12 +143,12 @@ export class FloatingController {
|
|
|
143
143
|
}
|
|
144
144
|
export class Backdrop {
|
|
145
145
|
constructor(backdropId) {
|
|
146
|
-
this.defaultBackdropId = '
|
|
146
|
+
this.defaultBackdropId = 'magma-backdrop';
|
|
147
147
|
this.backdropBackgroundVisible = 'rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))';
|
|
148
148
|
this.backdropBackgroundHidden = 'rgba(var(--magma-backdrop-color, 0 0 0) / 0)';
|
|
149
149
|
this.backdropId = backdropId !== null && backdropId !== void 0 ? backdropId : this.defaultBackdropId;
|
|
150
|
-
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index)`;
|
|
151
|
-
this.cssBackdropDuration = `var(--${this.backdropId}-duration)`;
|
|
150
|
+
this.cssBackdropZIndex = `var(--${this.backdropId}-z-index, 4000)`;
|
|
151
|
+
this.cssBackdropDuration = `var(--${this.backdropId}-animation-duration, 300ms)`;
|
|
152
152
|
}
|
|
153
153
|
attachBackdrop() {
|
|
154
154
|
if (!this.backdropEl) {
|
|
@@ -16,4 +16,13 @@ const hasSlottedNodes = (el, name) => {
|
|
|
16
16
|
}
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
const hasSlotted = (el, name) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
|
|
22
|
+
const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
|
|
23
|
+
if (slot) {
|
|
24
|
+
return slot.assignedNodes().length > 0 || slot.assignedElements().length > 0;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
};
|
|
28
|
+
export { hasSlottedElements, hasSlottedNodes, hasSlotted, };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const levenshteinDistance = (a, b) => {
|
|
2
|
+
const dp = Array.from({ length: a.length + 1 }, (_, i) =>
|
|
3
|
+
// eslint-disable-next-line no-nested-ternary
|
|
4
|
+
Array.from({ length: b.length + 1 }, (_, j) => (i === 0 ? j : j === 0 ? i : 0)));
|
|
5
|
+
for (let i = 1; i <= a.length; i++) {
|
|
6
|
+
for (let j = 1; j <= b.length; j++) {
|
|
7
|
+
if (a[i - 1] === b[j - 1]) {
|
|
8
|
+
dp[i][j] = dp[i - 1][j - 1];
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
dp[i][j] = 1 + Math.min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return dp[a.length][b.length];
|
|
16
|
+
};
|
|
17
|
+
const closest = (input, validCodes) => {
|
|
18
|
+
let [closest] = validCodes;
|
|
19
|
+
let minDistance = levenshteinDistance(input, closest);
|
|
20
|
+
for (const code of validCodes) {
|
|
21
|
+
const distance = levenshteinDistance(input, code);
|
|
22
|
+
if (distance < minDistance) {
|
|
23
|
+
minDistance = distance;
|
|
24
|
+
closest = code;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return closest;
|
|
28
|
+
};
|
|
29
|
+
const firstLetterUppercase = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
|
30
|
+
export { closest, firstLetterUppercase, levenshteinDistance, };
|
|
@@ -181,3 +181,122 @@
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
+
:host(:not(:is([hydrated], .hydrated))) {
|
|
185
|
+
animation-duration: 0s;
|
|
186
|
+
border-color: transparent;
|
|
187
|
+
box-shadow: 0 0 0 transparent;
|
|
188
|
+
opacity: 0;
|
|
189
|
+
outline-color: transparent;
|
|
190
|
+
transition-delay: 0s;
|
|
191
|
+
transition-duration: 0s;
|
|
192
|
+
visibility: hidden;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */
|
|
196
|
+
|
|
197
|
+
mds-accordion:not(:is([hydrated], .hydrated)),
|
|
198
|
+
mds-accordion-item:not(:is([hydrated], .hydrated)),
|
|
199
|
+
mds-accordion-timer:not(:is([hydrated], .hydrated)),
|
|
200
|
+
mds-accordion-timer-item:not(:is([hydrated], .hydrated)),
|
|
201
|
+
mds-author:not(:is([hydrated], .hydrated)),
|
|
202
|
+
mds-avatar:not(:is([hydrated], .hydrated)),
|
|
203
|
+
mds-badge:not(:is([hydrated], .hydrated)),
|
|
204
|
+
mds-banner:not(:is([hydrated], .hydrated)),
|
|
205
|
+
mds-benchmark-bar:not(:is([hydrated], .hydrated)),
|
|
206
|
+
mds-bibliography:not(:is([hydrated], .hydrated)),
|
|
207
|
+
mds-breadcrumb:not(:is([hydrated], .hydrated)),
|
|
208
|
+
mds-breadcrumb-item:not(:is([hydrated], .hydrated)),
|
|
209
|
+
mds-button:not(:is([hydrated], .hydrated)),
|
|
210
|
+
mds-card:not(:is([hydrated], .hydrated)),
|
|
211
|
+
mds-card-content:not(:is([hydrated], .hydrated)),
|
|
212
|
+
mds-card-footer:not(:is([hydrated], .hydrated)),
|
|
213
|
+
mds-card-header:not(:is([hydrated], .hydrated)),
|
|
214
|
+
mds-card-media:not(:is([hydrated], .hydrated)),
|
|
215
|
+
mds-chip:not(:is([hydrated], .hydrated)),
|
|
216
|
+
mds-details:not(:is([hydrated], .hydrated)),
|
|
217
|
+
mds-dropdown:not(:is([hydrated], .hydrated)),
|
|
218
|
+
mds-entity:not(:is([hydrated], .hydrated)),
|
|
219
|
+
mds-file:not(:is([hydrated], .hydrated)),
|
|
220
|
+
mds-file-preview:not(:is([hydrated], .hydrated)),
|
|
221
|
+
mds-filter:not(:is([hydrated], .hydrated)),
|
|
222
|
+
mds-filter-item:not(:is([hydrated], .hydrated)),
|
|
223
|
+
mds-header:not(:is([hydrated], .hydrated)),
|
|
224
|
+
mds-header-bar:not(:is([hydrated], .hydrated)),
|
|
225
|
+
mds-help:not(:is([hydrated], .hydrated)),
|
|
226
|
+
mds-horizontal-scroll:not(:is([hydrated], .hydrated)),
|
|
227
|
+
mds-hr:not(:is([hydrated], .hydrated)),
|
|
228
|
+
mds-icon:not(:is([hydrated], .hydrated)),
|
|
229
|
+
mds-img:not(:is([hydrated], .hydrated)),
|
|
230
|
+
mds-input:not(:is([hydrated], .hydrated)),
|
|
231
|
+
mds-input-field:not(:is([hydrated], .hydrated)),
|
|
232
|
+
mds-input-range:not(:is([hydrated], .hydrated)),
|
|
233
|
+
mds-input-select:not(:is([hydrated], .hydrated)),
|
|
234
|
+
mds-input-switch:not(:is([hydrated], .hydrated)),
|
|
235
|
+
mds-input-tip:not(:is([hydrated], .hydrated)),
|
|
236
|
+
mds-input-tip-item:not(:is([hydrated], .hydrated)),
|
|
237
|
+
mds-input-upload:not(:is([hydrated], .hydrated)),
|
|
238
|
+
mds-keyboard:not(:is([hydrated], .hydrated)),
|
|
239
|
+
mds-keyboard-key:not(:is([hydrated], .hydrated)),
|
|
240
|
+
mds-kpi:not(:is([hydrated], .hydrated)),
|
|
241
|
+
mds-kpi-item:not(:is([hydrated], .hydrated)),
|
|
242
|
+
mds-label:not(:is([hydrated], .hydrated)),
|
|
243
|
+
mds-list:not(:is([hydrated], .hydrated)),
|
|
244
|
+
mds-list-item:not(:is([hydrated], .hydrated)),
|
|
245
|
+
mds-modal:not(:is([hydrated], .hydrated)),
|
|
246
|
+
mds-note:not(:is([hydrated], .hydrated)),
|
|
247
|
+
mds-notification:not(:is([hydrated], .hydrated)),
|
|
248
|
+
mds-paginator:not(:is([hydrated], .hydrated)),
|
|
249
|
+
mds-paginator-item:not(:is([hydrated], .hydrated)),
|
|
250
|
+
mds-pref:not(:is([hydrated], .hydrated)),
|
|
251
|
+
mds-pref-animation:not(:is([hydrated], .hydrated)),
|
|
252
|
+
mds-pref-consumption:not(:is([hydrated], .hydrated)),
|
|
253
|
+
mds-pref-contrast:not(:is([hydrated], .hydrated)),
|
|
254
|
+
mds-pref-language:not(:is([hydrated], .hydrated)),
|
|
255
|
+
mds-pref-language-item:not(:is([hydrated], .hydrated)),
|
|
256
|
+
mds-pref-theme:not(:is([hydrated], .hydrated)),
|
|
257
|
+
mds-price-table:not(:is([hydrated], .hydrated)),
|
|
258
|
+
mds-price-table-features:not(:is([hydrated], .hydrated)),
|
|
259
|
+
mds-price-table-features-cell:not(:is([hydrated], .hydrated)),
|
|
260
|
+
mds-price-table-features-row:not(:is([hydrated], .hydrated)),
|
|
261
|
+
mds-price-table-header:not(:is([hydrated], .hydrated)),
|
|
262
|
+
mds-price-table-list:not(:is([hydrated], .hydrated)),
|
|
263
|
+
mds-price-table-list-item:not(:is([hydrated], .hydrated)),
|
|
264
|
+
mds-progress:not(:is([hydrated], .hydrated)),
|
|
265
|
+
mds-push-notification:not(:is([hydrated], .hydrated)),
|
|
266
|
+
mds-push-notifications:not(:is([hydrated], .hydrated)),
|
|
267
|
+
mds-quote:not(:is([hydrated], .hydrated)),
|
|
268
|
+
mds-separator:not(:is([hydrated], .hydrated)),
|
|
269
|
+
mds-spinner:not(:is([hydrated], .hydrated)),
|
|
270
|
+
mds-stepper-bar:not(:is([hydrated], .hydrated)),
|
|
271
|
+
mds-stepper-bar-item:not(:is([hydrated], .hydrated)),
|
|
272
|
+
mds-tab:not(:is([hydrated], .hydrated)),
|
|
273
|
+
mds-tab-bar:not(:is([hydrated], .hydrated)),
|
|
274
|
+
mds-tab-bar-item:not(:is([hydrated], .hydrated)),
|
|
275
|
+
mds-tab-item:not(:is([hydrated], .hydrated)),
|
|
276
|
+
mds-table:not(:is([hydrated], .hydrated)),
|
|
277
|
+
mds-table-body:not(:is([hydrated], .hydrated)),
|
|
278
|
+
mds-table-cell:not(:is([hydrated], .hydrated)),
|
|
279
|
+
mds-table-footer:not(:is([hydrated], .hydrated)),
|
|
280
|
+
mds-table-header:not(:is([hydrated], .hydrated)),
|
|
281
|
+
mds-table-header-cell:not(:is([hydrated], .hydrated)),
|
|
282
|
+
mds-table-row:not(:is([hydrated], .hydrated)),
|
|
283
|
+
mds-text:not(:is([hydrated], .hydrated)),
|
|
284
|
+
mds-toast:not(:is([hydrated], .hydrated)),
|
|
285
|
+
mds-tooltip:not(:is([hydrated], .hydrated)),
|
|
286
|
+
mds-tree:not(:is([hydrated], .hydrated)),
|
|
287
|
+
mds-tree-item:not(:is([hydrated], .hydrated)),
|
|
288
|
+
mds-url-view:not(:is([hydrated], .hydrated)),
|
|
289
|
+
mds-usage:not(:is([hydrated], .hydrated)),
|
|
290
|
+
mds-video-wall:not(:is([hydrated], .hydrated)),
|
|
291
|
+
mds-zero:not(:is([hydrated], .hydrated))
|
|
292
|
+
{
|
|
293
|
+
animation-duration: 0s;
|
|
294
|
+
border-color: transparent;
|
|
295
|
+
box-shadow: 0 0 0 transparent;
|
|
296
|
+
opacity: 0;
|
|
297
|
+
outline-color: transparent;
|
|
298
|
+
transition-delay: 0s;
|
|
299
|
+
transition-duration: 0s;
|
|
300
|
+
visibility: hidden;
|
|
301
|
+
}
|
|
302
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const keyboardKeyNameDictionary = [
|
|
2
|
+
'0',
|
|
3
|
+
'1',
|
|
4
|
+
'2',
|
|
5
|
+
'3',
|
|
6
|
+
'4',
|
|
7
|
+
'5',
|
|
8
|
+
'6',
|
|
9
|
+
'7',
|
|
10
|
+
'8',
|
|
11
|
+
'9',
|
|
12
|
+
'a',
|
|
13
|
+
'alt',
|
|
14
|
+
'altleft',
|
|
15
|
+
'altright',
|
|
16
|
+
'arrowdown',
|
|
17
|
+
'arrowleft',
|
|
18
|
+
'arrowright',
|
|
19
|
+
'arrowup',
|
|
20
|
+
'b',
|
|
21
|
+
'backspace',
|
|
22
|
+
'c',
|
|
23
|
+
'capslock',
|
|
24
|
+
'command',
|
|
25
|
+
'commandleft',
|
|
26
|
+
'commandright',
|
|
27
|
+
'control',
|
|
28
|
+
'controlleft',
|
|
29
|
+
'controlright',
|
|
30
|
+
'd',
|
|
31
|
+
'delete',
|
|
32
|
+
'e',
|
|
33
|
+
'end',
|
|
34
|
+
'enter',
|
|
35
|
+
'escape',
|
|
36
|
+
'f',
|
|
37
|
+
'f1',
|
|
38
|
+
'f10',
|
|
39
|
+
'f11',
|
|
40
|
+
'f12',
|
|
41
|
+
'f2',
|
|
42
|
+
'f3',
|
|
43
|
+
'f4',
|
|
44
|
+
'f5',
|
|
45
|
+
'f6',
|
|
46
|
+
'f7',
|
|
47
|
+
'f8',
|
|
48
|
+
'f9',
|
|
49
|
+
'g',
|
|
50
|
+
'h',
|
|
51
|
+
'home',
|
|
52
|
+
'i',
|
|
53
|
+
'j',
|
|
54
|
+
'k',
|
|
55
|
+
'l',
|
|
56
|
+
'm',
|
|
57
|
+
'n',
|
|
58
|
+
'o',
|
|
59
|
+
'option',
|
|
60
|
+
'optionleft',
|
|
61
|
+
'optionright',
|
|
62
|
+
'p',
|
|
63
|
+
'pagedown',
|
|
64
|
+
'pageup',
|
|
65
|
+
'q',
|
|
66
|
+
'r',
|
|
67
|
+
's',
|
|
68
|
+
'shift',
|
|
69
|
+
'shiftleft',
|
|
70
|
+
'shiftright',
|
|
71
|
+
'space',
|
|
72
|
+
't',
|
|
73
|
+
'tab',
|
|
74
|
+
'u',
|
|
75
|
+
'v',
|
|
76
|
+
'w',
|
|
77
|
+
'windows',
|
|
78
|
+
'windowsleft',
|
|
79
|
+
'windowsright',
|
|
80
|
+
'x',
|
|
81
|
+
'y',
|
|
82
|
+
'z',
|
|
83
|
+
];
|
|
84
|
+
export { keyboardKeyNameDictionary, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,7 +17,7 @@ const ifAttribute = (element, attribute, valueCheck = 'true') => {
|
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n }\n}\n\n";
|
|
20
|
+
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\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";
|
|
21
21
|
const MdsProgressStyle0 = mdsProgressCss;
|
|
22
22
|
|
|
23
23
|
const MdsProgress$1 = /*@__PURE__*/ proxyCustomElement(class MdsProgress extends HTMLElement {
|
package/dist/documentation.json
CHANGED
|
@@ -17,7 +17,7 @@ const ifAttribute = (element, attribute, valueCheck = 'true') => {
|
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n }\n}\n\n";
|
|
20
|
+
const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\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";
|
|
21
21
|
const MdsProgressStyle0 = mdsProgressCss;
|
|
22
22
|
|
|
23
23
|
const MdsProgress = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host,g as getElement}from"./index-a89959e6.js";var removeAttributesIf=function(r,n,s,t){if(s===void 0){s="true"}if(ifAttribute(r,n,s)){var o=Array.isArray(t)?t:[t];o.forEach((function(n){r.removeAttribute(n)}));return true}return false};var ifAttribute=function(r,n,s){if(s===void 0){s="true"}if(r.hasAttribute(n)&&r.getAttribute(n)===s){return true}return false};var mdsProgressCss='@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction="vertical"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant="dark"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant="light"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n }\n}\n\n';var MdsProgressStyle0=mdsProgressCss;var MdsProgress=function(){function r(r){registerInstance(this,r);this.stepsList=new Array;this.progress=0;this.direction="horizontal";this.variant="primary";this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}r.prototype.componentWillLoad=function(){this.stepsList=this.steps.split(",");this.setProgress(this.progress)};r.prototype.componentDidLoad=function(){removeAttributesIf(this.element,"aria-hidden","true",["aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","role"])};r.prototype.setProgress=function(r){if(this.steps){this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))];if(!ifAttribute(this.element,"aria-hidden")){this.element.setAttribute("aria-valuetext",this.currentStep)}}};r.prototype.progressChanged=function(r){this.setProgress(r)};r.prototype.stepsChanged=function(r){this.stepsList=r.split(",")};r.prototype.render=function(){return h(Host,{key:"1366494830062543321235236455acd23e937ed8","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":!ifAttribute(this.element,"aria-hidden")&&Math.round(this.progress*100),role:"progressbar"},h("div",{key:"71db06c95676326e8fcfdadb254de64f1d80521c",class:"contrast-area"}),h("div",{key:"1f4bc92b2c3201198b606463f26f47aa9f9ca13e",class:"progress",style:this.direction==="horizontal"?{flexGrow:"".concat(this.progress)}:{flexGrow:"".concat(this.progress),width:"100%"}}))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{progress:["progressChanged"],steps:["stepsChanged"]}},enumerable:false,configurable:true});return r}();MdsProgress.style=MdsProgressStyle0;export{MdsProgress as mds_progress};
|
|
1
|
+
import{r as registerInstance,h,H as Host,g as getElement}from"./index-a89959e6.js";var removeAttributesIf=function(r,t,n,s){if(n===void 0){n="true"}if(ifAttribute(r,t,n)){var d=Array.isArray(s)?s:[s];d.forEach((function(t){r.removeAttribute(t)}));return true}return false};var ifAttribute=function(r,t,n){if(n===void 0){n="true"}if(r.hasAttribute(t)&&r.getAttribute(t)===n){return true}return false};var mdsProgressCss='@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction="vertical"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant="dark"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant="light"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\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 MdsProgressStyle0=mdsProgressCss;var MdsProgress=function(){function r(r){registerInstance(this,r);this.stepsList=new Array;this.progress=0;this.direction="horizontal";this.variant="primary";this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}r.prototype.componentWillLoad=function(){this.stepsList=this.steps.split(",");this.setProgress(this.progress)};r.prototype.componentDidLoad=function(){removeAttributesIf(this.element,"aria-hidden","true",["aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","role"])};r.prototype.setProgress=function(r){if(this.steps){this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))];if(!ifAttribute(this.element,"aria-hidden")){this.element.setAttribute("aria-valuetext",this.currentStep)}}};r.prototype.progressChanged=function(r){this.setProgress(r)};r.prototype.stepsChanged=function(r){this.stepsList=r.split(",")};r.prototype.render=function(){return h(Host,{key:"1366494830062543321235236455acd23e937ed8","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":!ifAttribute(this.element,"aria-hidden")&&Math.round(this.progress*100),role:"progressbar"},h("div",{key:"71db06c95676326e8fcfdadb254de64f1d80521c",class:"contrast-area"}),h("div",{key:"1f4bc92b2c3201198b606463f26f47aa9f9ca13e",class:"progress",style:this.direction==="horizontal"?{flexGrow:"".concat(this.progress)}:{flexGrow:"".concat(this.progress),width:"100%"}}))};Object.defineProperty(r.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{progress:["progressChanged"],steps:["stepsChanged"]}},enumerable:false,configurable:true});return r}();MdsProgress.style=MdsProgressStyle0;export{MdsProgress as mds_progress};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,b as e}from"./p-8a9536f1.js";export{s as setNonce}from"./p-8a9536f1.js";import{g as p}from"./p-e1255160.js";(()=>{const s=import.meta.url,e={};return""!==s&&(e.resourcesUrl=new URL(".",s).href),r(e)})().then((async s=>(await p(),e([["p-
|
|
1
|
+
import{p as r,b as e}from"./p-8a9536f1.js";export{s as setNonce}from"./p-8a9536f1.js";import{g as p}from"./p-e1255160.js";(()=>{const s=import.meta.url,e={};return""!==s&&(e.resourcesUrl=new URL(".",s).href),r(e)})().then((async s=>(await p(),e([["p-a2e9544b",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],s))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,s){function u(t){try{c(r.next(t))}catch(t){s(t)}}function o(t){try{c(r["throw"](t))}catch(t){s(t)}}function c(t){t.done?e(t.value):i(t.value).then(u,o)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(n){return c([t,n])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(r=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=n.call(t,e)}catch(t){o=[6,t];i=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-64876922.system.js","./p-56ba5cbf.system.js"],(function(t,n){"use strict";var e,r,i;return{setters:[function(n){e=n.p;r=n.b;t("setNonce",n.s)},function(t){i=t.g}],execute:function(){var t=this;var s=function(){var t=n.meta.url;var r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return e(r)};s().then((function(n){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,i()];case 1:t.sent();return[2,r([["p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,n,e,r){function i(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,s){function u(t){try{c(r.next(t))}catch(t){s(t)}}function o(t){try{c(r["throw"](t))}catch(t){s(t)}}function c(t){t.done?e(t.value):i(t.value).then(u,o)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(n){return c([t,n])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(r=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=n.call(t,e)}catch(t){o=[6,t];i=0}finally{r=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-64876922.system.js","./p-56ba5cbf.system.js"],(function(t,n){"use strict";var e,r,i;return{setters:[function(n){e=n.p;r=n.b;t("setNonce",n.s)},function(t){i=t.g}],execute:function(){var t=this;var s=function(){var t=n.meta.url;var r={};if(t!==""){r.resourcesUrl=new URL(".",t).href}return e(r)};s().then((function(n){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,i()];case 1:t.sent();return[2,r([["p-321f64dc.system",[[1,"mds-progress",{progress:[2],direction:[513],variant:[513],steps:[1],currentStep:[32]},null,{progress:["progressChanged"],steps:["stepsChanged"]}]]]],n)]}}))}))}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-64876922.system.js"],(function(r){"use strict";var t,n,d,s;return{setters:[function(r){t=r.r;n=r.h;d=r.H;s=r.g}],execute:function(){var a=function(r,t,n,d){if(n===void 0){n="true"}if(e(r,t,n)){var s=Array.isArray(d)?d:[d];s.forEach((function(t){r.removeAttribute(t)}));return true}return false};var e=function(r,t,n){if(n===void 0){n="true"}if(r.hasAttribute(t)&&r.getAttribute(t)===n){return true}return false};var o='@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction="vertical"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant="dark"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant="light"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\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 i=o;var h=r("mds_progress",function(){function r(r){t(this,r);this.stepsList=new Array;this.progress=0;this.direction="horizontal";this.variant="primary";this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}r.prototype.componentWillLoad=function(){this.stepsList=this.steps.split(",");this.setProgress(this.progress)};r.prototype.componentDidLoad=function(){a(this.element,"aria-hidden","true",["aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","role"])};r.prototype.setProgress=function(r){if(this.steps){this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))];if(!e(this.element,"aria-hidden")){this.element.setAttribute("aria-valuetext",this.currentStep)}}};r.prototype.progressChanged=function(r){this.setProgress(r)};r.prototype.stepsChanged=function(r){this.stepsList=r.split(",")};r.prototype.render=function(){return n(d,{key:"1366494830062543321235236455acd23e937ed8","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":!e(this.element,"aria-hidden")&&Math.round(this.progress*100),role:"progressbar"},n("div",{key:"71db06c95676326e8fcfdadb254de64f1d80521c",class:"contrast-area"}),n("div",{key:"1f4bc92b2c3201198b606463f26f47aa9f9ca13e",class:"progress",style:this.direction==="horizontal"?{flexGrow:"".concat(this.progress)}:{flexGrow:"".concat(this.progress),width:"100%"}}))};Object.defineProperty(r.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{progress:["progressChanged"],steps:["stepsChanged"]}},enumerable:false,configurable:true});return r}());h.style=i}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as t,H as n,g as d}from"./p-8a9536f1.js";const s=(r,t,n="true")=>!(!r.hasAttribute(t)||r.getAttribute(t)!==n),a=class{constructor(t){r(this,t),this.stepsList=new Array,this.progress=0,this.direction="horizontal",this.variant="primary",this.steps="Inizio,Un quarto,Metà,Tre quarti,Fine"}componentWillLoad(){this.stepsList=this.steps.split(","),this.setProgress(this.progress)}componentDidLoad(){((r,t,n="true",d)=>{if(s(r,"aria-hidden",n))(Array.isArray(d)?d:[d]).forEach((t=>{r.removeAttribute(t)}))})(this.element,0,"true",["aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","role"])}setProgress(r){this.steps&&(this.currentStep=this.stepsList[Math.round(r*(this.stepsList.length-1))],s(this.element,"aria-hidden")||this.element.setAttribute("aria-valuetext",this.currentStep))}progressChanged(r){this.setProgress(r)}stepsChanged(r){this.stepsList=r.split(",")}render(){return t(n,{key:"1366494830062543321235236455acd23e937ed8","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":!s(this.element,"aria-hidden")&&Math.round(100*this.progress),role:"progressbar"},t("div",{key:"71db06c95676326e8fcfdadb254de64f1d80521c",class:"contrast-area"}),t("div",{key:"1f4bc92b2c3201198b606463f26f47aa9f9ca13e",class:"progress",style:"horizontal"===this.direction?{flexGrow:`${this.progress}`}:{flexGrow:`${this.progress}`,width:"100%"}}))}get element(){return d(this)}static get watchers(){return{progress:["progressChanged"],steps:["stepsChanged"]}}};a.style='@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\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-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction="vertical"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant="dark"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant="light"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant="primary"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant="error"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant="warning"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant="success"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant="info"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\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';export{a as mds_progress}
|