@maggioli-design-system/mds-accordion-timer-item 1.0.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/index-2ee34dd7.js +1180 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +100 -0
- package/dist/cjs/mds-accordion-timer-item.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +109 -0
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +206 -0
- package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +49 -0
- package/dist/collection/dictionary/autocomplete.js +59 -0
- package/dist/collection/dictionary/button.js +26 -0
- package/dist/collection/dictionary/color.js +19 -0
- package/dist/collection/dictionary/icon.js +3 -0
- package/dist/collection/dictionary/input-text-type.js +13 -0
- package/dist/collection/dictionary/loading.js +5 -0
- package/dist/collection/dictionary/typography.js +37 -0
- package/dist/collection/dictionary/variant.js +64 -0
- package/dist/collection/fixtures/cities.js +110 -0
- package/dist/collection/interface/input-value.js +1 -0
- package/dist/collection/types/autocomplete.js +1 -0
- package/dist/collection/types/button.js +1 -0
- package/dist/collection/types/form-rel.js +1 -0
- package/dist/collection/types/input-text-type.js +1 -0
- package/dist/collection/types/input-value-type.js +1 -0
- package/dist/collection/types/loading.js +1 -0
- package/dist/collection/types/typography.js +1 -0
- package/dist/collection/types/variant.js +1 -0
- package/dist/custom-elements/index.d.ts +45 -0
- package/dist/custom-elements/index.js +112 -0
- package/dist/esm/index-4339770f.js +1153 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/mds-accordion-timer-item.entry.js +96 -0
- package/dist/esm/mds-accordion-timer-item.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/index-4339770f.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +1 -0
- package/dist/esm-es5/mds-accordion-timer-item.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/mds-accordion-timer-item/index.esm.js +0 -0
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.esm.js +1 -0
- package/dist/mds-accordion-timer-item/mds-accordion-timer-item.js +130 -0
- package/dist/mds-accordion-timer-item/p-08901cb1.entry.js +1 -0
- package/dist/mds-accordion-timer-item/p-50ea2036.system.js +1 -0
- package/dist/mds-accordion-timer-item/p-7e30d5f8.js +1 -0
- package/dist/mds-accordion-timer-item/p-9b9f6cb9.system.js +1 -0
- package/dist/mds-accordion-timer-item/p-c7b8cf9d.system.js +1 -0
- package/dist/mds-accordion-timer-item/p-d8623772.system.entry.js +1 -0
- package/dist/stats.json +705 -0
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +43 -0
- package/dist/types/components.d.ts +90 -0
- package/dist/types/dictionary/autocomplete.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +5 -0
- package/dist/types/dictionary/color.d.ts +3 -0
- package/dist/types/dictionary/icon.d.ts +2 -0
- package/dist/types/dictionary/input-text-type.d.ts +2 -0
- package/dist/types/dictionary/loading.d.ts +2 -0
- package/dist/types/dictionary/typography.d.ts +5 -0
- package/dist/types/dictionary/variant.d.ts +9 -0
- package/dist/types/fixtures/cities.d.ts +2 -0
- package/dist/types/interface/input-value.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1563 -0
- package/dist/types/types/autocomplete.d.ts +2 -0
- package/dist/types/types/button.d.ts +4 -0
- package/dist/types/types/form-rel.d.ts +1 -0
- package/dist/types/types/input-text-type.d.ts +1 -0
- package/dist/types/types/input-value-type.d.ts +1 -0
- package/dist/types/types/loading.d.ts +1 -0
- package/dist/types/types/typography.d.ts +4 -0
- package/dist/types/types/variant.d.ts +10 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +47 -0
- package/readme.md +54 -0
- package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.css +69 -0
- package/src/components/mds-accordion-timer-item/mds-accordion-timer-item.tsx +99 -0
- package/src/components/mds-accordion-timer-item/readme.md +39 -0
- package/src/components/mds-accordion-timer-item/test/mds-accordion-timer-item.e2e.ts +11 -0
- package/src/components/mds-accordion-timer-item/test/mds-accordion-timer-item.spec.tsx +18 -0
- package/src/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +49 -0
- package/src/components.d.ts +90 -0
- package/src/dictionary/autocomplete.ts +62 -0
- package/src/dictionary/button.ts +35 -0
- package/src/dictionary/color.ts +24 -0
- package/src/dictionary/icon.ts +5 -0
- package/src/dictionary/input-text-type.ts +17 -0
- package/src/dictionary/loading.ts +9 -0
- package/src/dictionary/typography.ts +46 -0
- package/src/dictionary/variant.ts +81 -0
- package/src/fixtures/cities.ts +116 -0
- package/src/interface/input-value.ts +5 -0
- package/src/types/autocomplete.ts +69 -0
- package/src/types/button.ts +24 -0
- package/src/types/form-rel.ts +11 -0
- package/src/types/input-text-type.ts +11 -0
- package/src/types/input-value-type.ts +5 -0
- package/src/types/loading.ts +3 -0
- package/src/types/typography.ts +35 -0
- package/src/types/variant.ts +72 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-accordion-timer-item.esm.js +1 -0
- package/www/build/mds-accordion-timer-item.js +130 -0
- package/www/build/p-08901cb1.entry.js +1 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-7e30d5f8.js +1 -0
- package/www/build/p-9b9f6cb9.system.js +1 -0
- package/www/build/p-c7b8cf9d.system.js +1 -0
- package/www/build/p-d8623772.system.entry.js +1 -0
- package/www/host.config.json +15 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const typographyDictionary = [
|
|
2
|
+
'action',
|
|
3
|
+
'caption',
|
|
4
|
+
'code',
|
|
5
|
+
'detail',
|
|
6
|
+
'h1',
|
|
7
|
+
'h2',
|
|
8
|
+
'h3',
|
|
9
|
+
'h4',
|
|
10
|
+
'h5',
|
|
11
|
+
'h6',
|
|
12
|
+
'hack',
|
|
13
|
+
'label',
|
|
14
|
+
'option',
|
|
15
|
+
'paragraph',
|
|
16
|
+
];
|
|
17
|
+
const typographyMonoDictionary = [
|
|
18
|
+
'code',
|
|
19
|
+
'hack',
|
|
20
|
+
];
|
|
21
|
+
const typographyPrimaryDictionary = [
|
|
22
|
+
'action',
|
|
23
|
+
'h1',
|
|
24
|
+
'h2',
|
|
25
|
+
'h3',
|
|
26
|
+
'h4',
|
|
27
|
+
'h5',
|
|
28
|
+
'h6',
|
|
29
|
+
];
|
|
30
|
+
const typographySecondaryDictionary = [
|
|
31
|
+
'caption',
|
|
32
|
+
'detail',
|
|
33
|
+
'label',
|
|
34
|
+
'option',
|
|
35
|
+
'paragraph',
|
|
36
|
+
];
|
|
37
|
+
export { typographyDictionary, typographyMonoDictionary, typographyPrimaryDictionary, typographySecondaryDictionary, };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const themeVariantDictionary = [
|
|
2
|
+
'dark',
|
|
3
|
+
'error',
|
|
4
|
+
'info',
|
|
5
|
+
'light',
|
|
6
|
+
'success',
|
|
7
|
+
'warning',
|
|
8
|
+
];
|
|
9
|
+
const themeLuminanceVariantDictionary = [
|
|
10
|
+
'dark',
|
|
11
|
+
'light',
|
|
12
|
+
];
|
|
13
|
+
const themeStatusVariantDictionary = [
|
|
14
|
+
'error',
|
|
15
|
+
'info',
|
|
16
|
+
'success',
|
|
17
|
+
'warning',
|
|
18
|
+
];
|
|
19
|
+
const themeFullVariantDictionary = [
|
|
20
|
+
'amaranth',
|
|
21
|
+
'aqua',
|
|
22
|
+
'blue',
|
|
23
|
+
'dark',
|
|
24
|
+
'error',
|
|
25
|
+
'green',
|
|
26
|
+
'info',
|
|
27
|
+
'light',
|
|
28
|
+
'lime',
|
|
29
|
+
'orange',
|
|
30
|
+
'orchid',
|
|
31
|
+
'sky',
|
|
32
|
+
'success',
|
|
33
|
+
'violet',
|
|
34
|
+
'warning',
|
|
35
|
+
'yellow',
|
|
36
|
+
];
|
|
37
|
+
const themeLabelVariantDictionary = [
|
|
38
|
+
'amaranth',
|
|
39
|
+
'aqua',
|
|
40
|
+
'blue',
|
|
41
|
+
'green',
|
|
42
|
+
'lime',
|
|
43
|
+
'orange',
|
|
44
|
+
'orchid',
|
|
45
|
+
'sky',
|
|
46
|
+
'violet',
|
|
47
|
+
'yellow',
|
|
48
|
+
];
|
|
49
|
+
const toneVariantDictionary = [
|
|
50
|
+
'strong',
|
|
51
|
+
'weak',
|
|
52
|
+
'ghost',
|
|
53
|
+
'quiet',
|
|
54
|
+
];
|
|
55
|
+
const toneSimpleVariantDictionary = [
|
|
56
|
+
'strong',
|
|
57
|
+
'weak',
|
|
58
|
+
'quiet',
|
|
59
|
+
];
|
|
60
|
+
const toneMinimalVariantDictionary = [
|
|
61
|
+
'strong',
|
|
62
|
+
'weak',
|
|
63
|
+
];
|
|
64
|
+
export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const citiesDictionary = [
|
|
2
|
+
'Agrigento',
|
|
3
|
+
'Alessandria',
|
|
4
|
+
'Ancona',
|
|
5
|
+
'Aosta',
|
|
6
|
+
'Arezzo',
|
|
7
|
+
'Ascoli Piceno',
|
|
8
|
+
'Asti',
|
|
9
|
+
'Avellino',
|
|
10
|
+
'Bari',
|
|
11
|
+
'Barletta-Andria-Trani',
|
|
12
|
+
'Belluno',
|
|
13
|
+
'Benevento',
|
|
14
|
+
'Bergamo',
|
|
15
|
+
'Biella',
|
|
16
|
+
'Bologna',
|
|
17
|
+
'Bolzano',
|
|
18
|
+
'Brescia',
|
|
19
|
+
'Brindisi',
|
|
20
|
+
'Cagliari',
|
|
21
|
+
'Caltanissetta',
|
|
22
|
+
'Campobasso',
|
|
23
|
+
'Caserta',
|
|
24
|
+
'Catania',
|
|
25
|
+
'Catanzaro',
|
|
26
|
+
'Chieti',
|
|
27
|
+
'Como',
|
|
28
|
+
'Cosenza',
|
|
29
|
+
'Cremona',
|
|
30
|
+
'Crotone',
|
|
31
|
+
'Cuneo',
|
|
32
|
+
'Enna',
|
|
33
|
+
'Fermo',
|
|
34
|
+
'Ferrara',
|
|
35
|
+
'Firenze',
|
|
36
|
+
'Foggia',
|
|
37
|
+
'Forlì-Cesena',
|
|
38
|
+
'Frosinone',
|
|
39
|
+
'Genova',
|
|
40
|
+
'Gorizia',
|
|
41
|
+
'Grosseto',
|
|
42
|
+
'Imperia',
|
|
43
|
+
'Isernia',
|
|
44
|
+
'La Spezia',
|
|
45
|
+
'L\'Aquila',
|
|
46
|
+
'Latina',
|
|
47
|
+
'Lecce',
|
|
48
|
+
'Lecco',
|
|
49
|
+
'Livorno',
|
|
50
|
+
'Lodi',
|
|
51
|
+
'Lucca',
|
|
52
|
+
'Macerata',
|
|
53
|
+
'Mantova',
|
|
54
|
+
'Massa-Carrara',
|
|
55
|
+
'Matera',
|
|
56
|
+
'Messina',
|
|
57
|
+
'Milano',
|
|
58
|
+
'Modena',
|
|
59
|
+
'Monza e della Brianza',
|
|
60
|
+
'Napoli',
|
|
61
|
+
'Novara',
|
|
62
|
+
'Nuoro',
|
|
63
|
+
'Oristano',
|
|
64
|
+
'Padova',
|
|
65
|
+
'Palermo',
|
|
66
|
+
'Parma',
|
|
67
|
+
'Pavia',
|
|
68
|
+
'Perugia',
|
|
69
|
+
'Pesaro e Urbino',
|
|
70
|
+
'Pescara',
|
|
71
|
+
'Piacenza',
|
|
72
|
+
'Pisa',
|
|
73
|
+
'Pistoia',
|
|
74
|
+
'Pordenone',
|
|
75
|
+
'Potenza',
|
|
76
|
+
'Prato',
|
|
77
|
+
'Ragusa',
|
|
78
|
+
'Ravenna',
|
|
79
|
+
'Reggio Calabria',
|
|
80
|
+
'Reggio Emilia',
|
|
81
|
+
'Rieti',
|
|
82
|
+
'Rimini',
|
|
83
|
+
'Roma',
|
|
84
|
+
'Rovigo',
|
|
85
|
+
'Salerno',
|
|
86
|
+
'Sassari',
|
|
87
|
+
'Savona',
|
|
88
|
+
'Siena',
|
|
89
|
+
'Siracusa',
|
|
90
|
+
'Sondrio',
|
|
91
|
+
'Sud Sardegna',
|
|
92
|
+
'Taranto',
|
|
93
|
+
'Teramo',
|
|
94
|
+
'Terni',
|
|
95
|
+
'Torino',
|
|
96
|
+
'Trapani',
|
|
97
|
+
'Trento',
|
|
98
|
+
'Treviso',
|
|
99
|
+
'Trieste',
|
|
100
|
+
'Udine',
|
|
101
|
+
'Varese',
|
|
102
|
+
'Venezia',
|
|
103
|
+
'Verbano-Cusio-Ossola',
|
|
104
|
+
'Vercelli',
|
|
105
|
+
'Verona',
|
|
106
|
+
'Vibo Valentia',
|
|
107
|
+
'Vicenza',
|
|
108
|
+
'Viterbo',
|
|
109
|
+
];
|
|
110
|
+
export { citiesDictionary, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* MdsAccordionTimerItem custom elements bundle */
|
|
2
|
+
|
|
3
|
+
import type { Components, JSX } from "../types/components";
|
|
4
|
+
|
|
5
|
+
interface MdsAccordionTimerItem extends Components.MdsAccordionTimerItem, HTMLElement {}
|
|
6
|
+
export const MdsAccordionTimerItem: {
|
|
7
|
+
prototype: MdsAccordionTimerItem;
|
|
8
|
+
new (): MdsAccordionTimerItem;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Utility to define all custom elements within this package using the tag name provided in the component's source.
|
|
13
|
+
* When defining each custom element, it will also check it's safe to define by:
|
|
14
|
+
*
|
|
15
|
+
* 1. Ensuring the "customElements" registry is available in the global context (window).
|
|
16
|
+
* 2. The component tag name is not already defined.
|
|
17
|
+
*
|
|
18
|
+
* Use the standard [customElements.define()](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)
|
|
19
|
+
* method instead to define custom elements individually, or to provide a different tag name.
|
|
20
|
+
*/
|
|
21
|
+
export declare const defineCustomElements: (opts?: any) => void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Used to manually set the base path where assets can be found.
|
|
25
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
26
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
27
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
28
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
29
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
30
|
+
* bunding, and where your assets can be loaded from. Additionally custom bundling
|
|
31
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
32
|
+
*/
|
|
33
|
+
export declare const setAssetPath: (path: string) => void;
|
|
34
|
+
|
|
35
|
+
export interface SetPlatformOptions {
|
|
36
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
37
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
38
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
39
|
+
ce?: (eventName: string, opts?: any) => CustomEvent;
|
|
40
|
+
}
|
|
41
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
42
|
+
|
|
43
|
+
export type { Components, JSX };
|
|
44
|
+
|
|
45
|
+
export * from '../types/components';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
|
+
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
+
|
|
4
|
+
function toVal(mix) {
|
|
5
|
+
var k, y, str='';
|
|
6
|
+
|
|
7
|
+
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
8
|
+
str += mix;
|
|
9
|
+
} else if (typeof mix === 'object') {
|
|
10
|
+
if (Array.isArray(mix)) {
|
|
11
|
+
for (k=0; k < mix.length; k++) {
|
|
12
|
+
if (mix[k]) {
|
|
13
|
+
if (y = toVal(mix[k])) {
|
|
14
|
+
str && (str += ' ');
|
|
15
|
+
str += y;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
} else {
|
|
20
|
+
for (k in mix) {
|
|
21
|
+
if (mix[k]) {
|
|
22
|
+
str && (str += ' ');
|
|
23
|
+
str += k;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return str;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function clsx () {
|
|
33
|
+
var i=0, tmp, x, str='';
|
|
34
|
+
while (i < arguments.length) {
|
|
35
|
+
if (tmp = arguments[i++]) {
|
|
36
|
+
if (x = toVal(tmp)) {
|
|
37
|
+
str && (str += ' ');
|
|
38
|
+
str += x;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return str;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const mdsAccordionTimerItemCss = ".contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{position:relative;display:grid;padding-top:1rem;padding-bottom:1rem;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);color:var(--color, rgb(var(--adjust-tone-02)))}:host(:hover:not(.active)) .progress-bar{--background-active:rgb(var(--adjust-tone-07))}.row{display:-ms-flexbox;display:flex;gap:1rem}.accordion{display:grid}.progress-bar{-ms-flex-negative:0;flex-shrink:0;--thickness:0.25rem}.header{cursor:pointer}:host(.active) .header{cursor:auto}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}.contents--opened{height:auto;padding-top:1rem;opacity:1}";
|
|
46
|
+
|
|
47
|
+
let MdsAccordionTimerItem$1 = class extends HTMLElement {
|
|
48
|
+
constructor() {
|
|
49
|
+
super();
|
|
50
|
+
this.__registerHost();
|
|
51
|
+
this.__attachShadow();
|
|
52
|
+
this.clickActive = createEvent(this, "clickActive", 7);
|
|
53
|
+
this.mouseEnterActive = createEvent(this, "mouseEnterActive", 7);
|
|
54
|
+
this.mouseLeaveActive = createEvent(this, "mouseLeaveActive", 7);
|
|
55
|
+
/**
|
|
56
|
+
* Specifies the typography of the element
|
|
57
|
+
*/
|
|
58
|
+
this.typography = 'h5';
|
|
59
|
+
/**
|
|
60
|
+
* A value between 0 and 100 that rapresents the status progress
|
|
61
|
+
*/
|
|
62
|
+
this.progress = 0;
|
|
63
|
+
/**
|
|
64
|
+
* Used automatically by MdsAccordionTimer wrapper to handle it's siblings
|
|
65
|
+
*/
|
|
66
|
+
this.uuid = 0;
|
|
67
|
+
this.toggle = () => {
|
|
68
|
+
if (!this.isActive) {
|
|
69
|
+
this.isActive = true;
|
|
70
|
+
this.clickActive.emit(this.description);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
this.mouseEnter = () => {
|
|
74
|
+
if (this.isActive) {
|
|
75
|
+
this.mouseEnterActive.emit(this.description);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
this.mouseLeave = () => {
|
|
79
|
+
if (this.isActive) {
|
|
80
|
+
this.mouseLeaveActive.emit(this.description);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
componentWillLoad() {
|
|
85
|
+
this.isActive = this.active;
|
|
86
|
+
}
|
|
87
|
+
validateOpened(newValue) {
|
|
88
|
+
this.isActive = newValue;
|
|
89
|
+
}
|
|
90
|
+
render() {
|
|
91
|
+
return (h(Host, { class: clsx(this.isActive && 'active'), onMouseEnter: this.mouseEnter, onMouseLeave: this.mouseLeave }, h("div", { class: "row" }, h("mds-progress", { class: "progress-bar", progress: this.progress, direction: "vertical" }), h("div", { class: "accordion" }, h("div", { class: "header", onClick: this.toggle }, h("mds-text", { typography: this.typography }, this.description)), h("div", { class: clsx('contents', this.isActive && 'contents--opened') }, h("slot", null))))));
|
|
92
|
+
}
|
|
93
|
+
static get watchers() { return {
|
|
94
|
+
"active": ["validateOpened"]
|
|
95
|
+
}; }
|
|
96
|
+
static get style() { return mdsAccordionTimerItemCss; }
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const MdsAccordionTimerItem = /*@__PURE__*/proxyCustomElement(MdsAccordionTimerItem$1, [1,"mds-accordion-timer-item",{"typography":[1],"active":[516],"description":[1],"progress":[2],"uuid":[2],"isActive":[32]}]);
|
|
100
|
+
const defineCustomElements = (opts) => {
|
|
101
|
+
if (typeof customElements !== 'undefined') {
|
|
102
|
+
[
|
|
103
|
+
MdsAccordionTimerItem
|
|
104
|
+
].forEach(cmp => {
|
|
105
|
+
if (!customElements.get(cmp.is)) {
|
|
106
|
+
customElements.define(cmp.is, cmp, opts);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export { MdsAccordionTimerItem, defineCustomElements };
|