@maggioli-design-system/mds-accordion-timer 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +16 -12
- package/dist/collection/common/aria.js +17 -1
- package/dist/collection/common/device.js +6 -0
- package/dist/collection/common/keyboard-manager.js +2 -2
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +16 -12
- package/dist/collection/dictionary/file-extensions.js +114 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/components/mds-accordion-timer.js +16 -12
- package/dist/documentation.json +1 -1
- package/dist/esm/mds-accordion-timer.entry.js +16 -12
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -1
- package/dist/mds-accordion-timer/p-25856ee2.system.js +1 -1
- package/dist/mds-accordion-timer/p-4eb3ec08.system.entry.js +1 -0
- package/dist/mds-accordion-timer/p-86e0d6b4.entry.js +1 -0
- package/dist/stats.json +18 -16
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/type/text.d.ts +2 -0
- package/documentation.json +9 -4
- package/package.json +2 -2
- package/src/common/aria.ts +22 -2
- package/src/common/device.ts +9 -0
- package/src/common/keyboard-manager.ts +2 -2
- package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +15 -11
- package/src/dictionary/file-extensions.ts +115 -56
- package/src/dictionary/text.ts +64 -0
- package/src/fixtures/icons.json +8 -0
- package/src/fixtures/iconsauce.json +5 -0
- package/src/meta/file-format/locale.el.json +39 -0
- package/src/meta/file-format/locale.en.json +39 -0
- package/src/meta/file-format/locale.es.json +39 -0
- package/src/meta/file-format/locale.it.json +39 -0
- package/src/type/text.ts +59 -0
- package/www/build/mds-accordion-timer.esm.js +1 -1
- package/www/build/p-25856ee2.system.js +1 -1
- package/www/build/p-4eb3ec08.system.entry.js +1 -0
- package/www/build/p-86e0d6b4.entry.js +1 -0
- package/dist/mds-accordion-timer/p-4dac14fb.entry.js +0 -1
- package/dist/mds-accordion-timer/p-7ae27bb3.system.entry.js +0 -1
- package/www/build/p-4dac14fb.entry.js +0 -1
- package/www/build/p-7ae27bb3.system.entry.js +0 -1
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"mgg/adv-denied",
|
|
24
24
|
"mgg/ai-brain-outline",
|
|
25
25
|
"mgg/ai-brain",
|
|
26
|
+
"mgg/ai-human",
|
|
26
27
|
"mgg/ai-message",
|
|
27
28
|
"mgg/ai-outline",
|
|
28
29
|
"mgg/ai-status-completed",
|
|
@@ -99,6 +100,8 @@
|
|
|
99
100
|
"mgg/factory",
|
|
100
101
|
"mgg/farmer",
|
|
101
102
|
"mgg/field",
|
|
103
|
+
"mgg/file-certificate",
|
|
104
|
+
"mgg/file-clock",
|
|
102
105
|
"mgg/file-download",
|
|
103
106
|
"mgg/file-folder-tree-open",
|
|
104
107
|
"mgg/file-folder-tree",
|
|
@@ -120,6 +123,7 @@
|
|
|
120
123
|
"mgg/finance-euro-cashback",
|
|
121
124
|
"mgg/fit-horizontal",
|
|
122
125
|
"mgg/fit-vertical",
|
|
126
|
+
"mgg/fontawesome-torii-gate",
|
|
123
127
|
"mgg/forwarded-with-a-single-sending",
|
|
124
128
|
"mgg/fullscreen-on-alt",
|
|
125
129
|
"mgg/google-book-closed-outline",
|
|
@@ -129,6 +133,7 @@
|
|
|
129
133
|
"mgg/google-book-opening-outline",
|
|
130
134
|
"mgg/google-book-opening",
|
|
131
135
|
"mgg/google-check-small",
|
|
136
|
+
"mgg/google-drag-pan",
|
|
132
137
|
"mgg/google-experiment",
|
|
133
138
|
"mgg/google-face-retouching-off",
|
|
134
139
|
"mgg/google-hub",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"appleDiskImage": "Εικόνα δίσκου Apple",
|
|
3
|
+
"compressedArchive": "Συμπιεσμένο αρχείο",
|
|
4
|
+
"uncompressedArchive": "Μη συμπιεσμένο αρχείο",
|
|
5
|
+
"compressedAudio": "Συμπιεσμένος ήχος",
|
|
6
|
+
"uncompressedAudio": "Μη συμπιεσμένος ήχος",
|
|
7
|
+
"dart": "Αρχείο Dart",
|
|
8
|
+
"documentAdobe": "Έγγραφο Adobe",
|
|
9
|
+
"compressedDocumentMS": "Συμπιεσμένο έγγραφο Microsoft Word",
|
|
10
|
+
"documentMS": "Έγγραφο Microsoft Word",
|
|
11
|
+
"documentRTF": "Έγγραφο μορφής εμπλουτισμένου κειμένου",
|
|
12
|
+
"documentTXT": "Απλό έγγραφο κειμένου",
|
|
13
|
+
"email": "Ηλεκτρονικό ταχυδρομείο",
|
|
14
|
+
"fileDB": "Αρχείο βάσης δεδομένων",
|
|
15
|
+
"documentLO": "Έγγραφο LibreOffice",
|
|
16
|
+
"fileEXE": "Εκτελέσιμο αρχείο Windows",
|
|
17
|
+
"videoHD": "Βίντεο υψηλής ανάλυσης",
|
|
18
|
+
"videoSD": "Βίντεο χαμηλής ανάλυσης",
|
|
19
|
+
"spreadsheetLO": "Υπολογιστικό φύλλο LibreOffice",
|
|
20
|
+
"spreadsheetMS": "Υπολογιστικό φύλλο Microsoft Office",
|
|
21
|
+
"unknown": "Άγνωστη μορφή αρχείου",
|
|
22
|
+
"imageHEIC": "Μορφή αρχείου εικόνας υψηλής αποδοτικότητας",
|
|
23
|
+
"filePHP": "Αρχείο Hypertext Preprocessor",
|
|
24
|
+
"imagePNG": "Εικόνα Portable Network Graphics",
|
|
25
|
+
"imageWEBP": "Εικόνα Google Web Picture",
|
|
26
|
+
"compressedImage": "Συμπιεσμένη εικόνα",
|
|
27
|
+
"fileJSON": "Αρχείο JavaScript Object Notation",
|
|
28
|
+
"fileJS": "Αρχείο JavaScript",
|
|
29
|
+
"documentWeb": "Ιστοσελίδα",
|
|
30
|
+
"imageSVG": "Διανυσματική εικόνα Scalable Vector Graphics",
|
|
31
|
+
"slideLO": "Διαφάνεια παρουσίασης LibreOffice",
|
|
32
|
+
"slidePowerPoint": "Διαφάνεια παρουσίασης PowerPoint",
|
|
33
|
+
"fileSASS": "Αρχείο Syntactically Awesome StyleSheets",
|
|
34
|
+
"imageTIFF": "Εικόνα Tag Image File Format",
|
|
35
|
+
"fileTSX": "Αρχείο TypeScript Extended Syntax",
|
|
36
|
+
"fileTS": "Αρχείο TypeScript",
|
|
37
|
+
"fileAI": "Διανυσματικό αρχείο Adobe Illustrator",
|
|
38
|
+
"fileEPS": "Διανυσματικό αρχείο Corel Draw"
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"appleDiskImage": "Apple Disk Image",
|
|
3
|
+
"compressedArchive": "Compressed Archive",
|
|
4
|
+
"uncompressedArchive": "Uncompressed Archive",
|
|
5
|
+
"compressedAudio": "Compressed Audio",
|
|
6
|
+
"uncompressedAudio": "Uncompressed Audio",
|
|
7
|
+
"dart": "Dart File",
|
|
8
|
+
"documentAdobe": "Adobe Document",
|
|
9
|
+
"compressedDocumentMS": "Compressed Microsoft Word Document",
|
|
10
|
+
"documentMS": "Microsoft Word Document",
|
|
11
|
+
"documentRTF": "Rich Text Format Document",
|
|
12
|
+
"documentTXT": "Plain Text Document",
|
|
13
|
+
"email": "E-mail",
|
|
14
|
+
"fileDB": "Database File",
|
|
15
|
+
"documentLO": "LibreOffice Document",
|
|
16
|
+
"fileEXE": "Windows Executable File",
|
|
17
|
+
"videoHD": "High Definition Video",
|
|
18
|
+
"videoSD": "Standard Definition Video",
|
|
19
|
+
"spreadsheetLO": "LibreOffice Spreadsheet",
|
|
20
|
+
"spreadsheetMS": "Microsoft Office Spreadsheet",
|
|
21
|
+
"unknown": "Unknown File Format",
|
|
22
|
+
"imageHEIC": "High Efficiency Image File Format",
|
|
23
|
+
"filePHP": "Hypertext Preprocessor File",
|
|
24
|
+
"imagePNG": "Portable Network Graphics Image",
|
|
25
|
+
"imageWEBP": "Google Web Picture Image",
|
|
26
|
+
"compressedImage": "Compressed Image",
|
|
27
|
+
"fileJSON": "JavaScript Object Notation File",
|
|
28
|
+
"fileJS": "JavaScript File",
|
|
29
|
+
"documentWeb": "Web Page",
|
|
30
|
+
"imageSVG": "Scalable Vector Graphics Image",
|
|
31
|
+
"slideLO": "LibreOffice Presentation Slide",
|
|
32
|
+
"slidePowerPoint": "PowerPoint Presentation Slide",
|
|
33
|
+
"fileSASS": "Syntactically Awesome StyleSheets File",
|
|
34
|
+
"imageTIFF": "Tag Image File Format Image",
|
|
35
|
+
"fileTSX": "TypeScript Extended Syntax File",
|
|
36
|
+
"fileTS": "TypeScript File",
|
|
37
|
+
"fileAI": "Adobe Illustrator Vector File",
|
|
38
|
+
"fileEPS": "Corel Draw Vector File"
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"appleDiskImage": "Imagen de disco Apple",
|
|
3
|
+
"compressedArchive": "Archivo comprimido",
|
|
4
|
+
"uncompressedArchive": "Archivo no comprimido",
|
|
5
|
+
"compressedAudio": "Audio comprimido",
|
|
6
|
+
"uncompressedAudio": "Audio no comprimido",
|
|
7
|
+
"dart": "Archivo Dart",
|
|
8
|
+
"documentAdobe": "Documento Adobe",
|
|
9
|
+
"compressedDocumentMS": "Documento comprimido de Microsoft Word",
|
|
10
|
+
"documentMS": "Documento de Microsoft Word",
|
|
11
|
+
"documentRTF": "Documento de formato de texto enriquecido",
|
|
12
|
+
"documentTXT": "Documento de texto sin formato",
|
|
13
|
+
"email": "Correo electrónico",
|
|
14
|
+
"fileDB": "Archivo de base de datos",
|
|
15
|
+
"documentLO": "Documento de LibreOffice",
|
|
16
|
+
"fileEXE": "Archivo ejecutable de Windows",
|
|
17
|
+
"videoHD": "Video de alta definición",
|
|
18
|
+
"videoSD": "Video de definición estándar",
|
|
19
|
+
"spreadsheetLO": "Hoja de cálculo de LibreOffice",
|
|
20
|
+
"spreadsheetMS": "Hoja de cálculo de Microsoft Office",
|
|
21
|
+
"unknown": "Formato de archivo desconocido",
|
|
22
|
+
"imageHEIC": "Formato de archivo de imagen de alta eficiencia",
|
|
23
|
+
"filePHP": "Archivo de preprocesador de hipertexto",
|
|
24
|
+
"imagePNG": "Imagen Portable Network Graphics",
|
|
25
|
+
"imageWEBP": "Imagen Google Web Picture",
|
|
26
|
+
"compressedImage": "Imagen comprimida",
|
|
27
|
+
"fileJSON": "Archivo de notación de objetos de JavaScript",
|
|
28
|
+
"fileJS": "Archivo JavaScript",
|
|
29
|
+
"documentWeb": "Página web",
|
|
30
|
+
"imageSVG": "Imagen de gráficos vectoriales escalables",
|
|
31
|
+
"slideLO": "Diapositiva de presentación de LibreOffice",
|
|
32
|
+
"slidePowerPoint": "Diapositiva de presentación de PowerPoint",
|
|
33
|
+
"fileSASS": "Archivo de Syntactically Awesome StyleSheets",
|
|
34
|
+
"imageTIFF": "Imagen de formato de archivo de imagen etiquetado",
|
|
35
|
+
"fileTSX": "Archivo de sintaxis extendida de TypeScript",
|
|
36
|
+
"fileTS": "Archivo TypeScript",
|
|
37
|
+
"fileAI": "Archivo vectorial de Adobe Illustrator",
|
|
38
|
+
"fileEPS": "Archivo vectorial de Corel Draw"
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"appleDiskImage": "Immagine Disco Apple",
|
|
3
|
+
"compressedArchive": "Archivio compresso",
|
|
4
|
+
"uncompressedArchive": "Archivio non compresso",
|
|
5
|
+
"compressedAudio": "Audio compresso",
|
|
6
|
+
"uncompressedAudio": "Audio non compresso",
|
|
7
|
+
"dart": "File Dart",
|
|
8
|
+
"documentAdobe": "Documento Adobe",
|
|
9
|
+
"compressedDocumentMS": "Documento di testo Microsoft Word Compresso",
|
|
10
|
+
"documentMS": "Documento di testo Microsoft Word",
|
|
11
|
+
"documentRTF": "Documento di testo Rich Text Format",
|
|
12
|
+
"documentTXT": "Documento di testo senza formattazione",
|
|
13
|
+
"email": "E-mail",
|
|
14
|
+
"fileDB": "File di database",
|
|
15
|
+
"documentLO": "Documento di testo LibreOffice",
|
|
16
|
+
"fileEXE": "File eseguibile Windows",
|
|
17
|
+
"videoHD": "Filmato HD ad alta risoluzione",
|
|
18
|
+
"videoSD": "Filmato SD a bassa risoluzione",
|
|
19
|
+
"spreadsheetLO": "Foglio di calcolo LibreOffice",
|
|
20
|
+
"spreadsheetMS": "Foglio di calcolo Office",
|
|
21
|
+
"unknown": "Formato file sconosciuto",
|
|
22
|
+
"imageHEIC": "High Efficiency Image File Format",
|
|
23
|
+
"filePHP": "File Hypertext Preprocessor",
|
|
24
|
+
"imagePNG": "Immagine Portable Network Graphics",
|
|
25
|
+
"imageWEBP": "Immagine Google Web Picture",
|
|
26
|
+
"compressedImage": "Immagine compressa",
|
|
27
|
+
"fileJSON": "File JavaScript Object Notation",
|
|
28
|
+
"fileJS": "File JavaScript",
|
|
29
|
+
"documentWeb": "Pagina web",
|
|
30
|
+
"imageSVG": "Immagine vettoriale Scalable Vector Graphics",
|
|
31
|
+
"slideLO": "Slide di presentazione LibreOffice",
|
|
32
|
+
"slidePowerPoint": "Slide di presentazione PowerPoint",
|
|
33
|
+
"fileSASS": "File Syntactically Awesome StyleSheets",
|
|
34
|
+
"imageTIFF": "Immagine Tag Image File Format",
|
|
35
|
+
"fileTSX": "File TypeScript Extended Syntax",
|
|
36
|
+
"fileTS": "File TypeScript",
|
|
37
|
+
"fileAI": "File vettoriale Adobe Illustrator",
|
|
38
|
+
"fileEPS": "File vettoriale Corel Draw"
|
|
39
|
+
}
|
package/src/type/text.ts
CHANGED
|
@@ -1,3 +1,62 @@
|
|
|
1
|
+
export type TypographyTagType =
|
|
2
|
+
| 'abbr'
|
|
3
|
+
| 'address'
|
|
4
|
+
| 'article'
|
|
5
|
+
| 'b'
|
|
6
|
+
| 'bdo'
|
|
7
|
+
| 'blockquote'
|
|
8
|
+
| 'cite'
|
|
9
|
+
| 'code'
|
|
10
|
+
| 'dd'
|
|
11
|
+
| 'del'
|
|
12
|
+
| 'details'
|
|
13
|
+
| 'dfn'
|
|
14
|
+
| 'div'
|
|
15
|
+
| 'dl'
|
|
16
|
+
| 'dt'
|
|
17
|
+
| 'em'
|
|
18
|
+
| 'figcaption'
|
|
19
|
+
| 'h1'
|
|
20
|
+
| 'h2'
|
|
21
|
+
| 'h3'
|
|
22
|
+
| 'h4'
|
|
23
|
+
| 'h5'
|
|
24
|
+
| 'h6'
|
|
25
|
+
| 'i'
|
|
26
|
+
| 'ins'
|
|
27
|
+
| 'kbd'
|
|
28
|
+
| 'label'
|
|
29
|
+
| 'legend'
|
|
30
|
+
| 'li'
|
|
31
|
+
| 'mark'
|
|
32
|
+
| 'ol'
|
|
33
|
+
| 'p'
|
|
34
|
+
| 'pre'
|
|
35
|
+
| 'q'
|
|
36
|
+
| 'rb'
|
|
37
|
+
| 'rt'
|
|
38
|
+
| 'ruby'
|
|
39
|
+
| 's'
|
|
40
|
+
| 'samp'
|
|
41
|
+
| 'small'
|
|
42
|
+
| 'span'
|
|
43
|
+
| 'strong'
|
|
44
|
+
| 'sub'
|
|
45
|
+
| 'summary'
|
|
46
|
+
| 'sup'
|
|
47
|
+
| 'time'
|
|
48
|
+
| 'u'
|
|
49
|
+
| 'ul'
|
|
50
|
+
| 'var'
|
|
51
|
+
|
|
52
|
+
export type TypographyHeadingTagType =
|
|
53
|
+
| 'h1'
|
|
54
|
+
| 'h2'
|
|
55
|
+
| 'h3'
|
|
56
|
+
| 'h4'
|
|
57
|
+
| 'h5'
|
|
58
|
+
| 'h6'
|
|
59
|
+
|
|
1
60
|
export type TypographyTruncateType =
|
|
2
61
|
| 'all'
|
|
3
62
|
| 'none'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-8dd37a13.js";export{s as setNonce}from"./p-8dd37a13.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((async e=>(await t(),o([["p-
|
|
1
|
+
import{p as e,b as o}from"./p-8dd37a13.js";export{s as setNonce}from"./p-8dd37a13.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((async e=>(await t(),o([["p-86e0d6b4",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function o(e){try{s(r.next(e))}catch(e){c(e)}}function u(e){try{s(r["throw"](e))}catch(e){c(e)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(r=1,i&&(c=u[0]&2?i["return"]:u[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,u[1])).done)return c;if(i=0,c)u=[u[0]&2,c.value];switch(u[0]){case 0:case 1:c=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1];c=u;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(u);break}if(c[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-62c48ff3.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,r,i;return{setters:[function(t){n=t.p;r=t.b;e("setNonce",t.s)},function(e){i=e.g}],execute:function(){var e=this;var c=function(){var e=t.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return n(r)};c().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,i()];case 1:e.sent();return[2,r([["p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function o(e){try{s(r.next(e))}catch(e){c(e)}}function u(e){try{s(r["throw"](e))}catch(e){c(e)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(r=1,i&&(c=u[0]&2?i["return"]:u[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,u[1])).done)return c;if(i=0,c)u=[u[0]&2,c.value];switch(u[0]){case 0:case 1:c=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!c||u[1]>c[0]&&u[1]<c[3])){n.label=u[1];break}if(u[0]===6&&n.label<c[1]){n.label=c[1];c=u;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(u);break}if(c[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{r=c=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-62c48ff3.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,r,i;return{setters:[function(t){n=t.p;r=t.b;e("setNonce",t.s)},function(e){i=e.g}],execute:function(){var e=this;var c=function(){var e=t.meta.url;var r={};if(e!==""){r.resourcesUrl=new URL(".",e).href}return n(r)};c().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,i()];case 1:e.sent();return[2,r([["p-4eb3ec08.system",[[1,"mds-accordion-timer",{duration:[514],paused:[516],time:[32]},[[0,"mdsAccordionTimerItemClickSelect","onClickSelect"],[0,"mdsAccordionTimerItemSelect","onSelect"],[0,"mdsAccordionTimerItemMouseEnterSelect","onMouseEnterSelect"],[0,"mdsAccordionTimerItemMouseLeaveSelect","onMouseLeaveSelect"]],{paused:["handlePaused"]}]]]],t)]}}))}))}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-62c48ff3.system.js"],(function(t){"use strict";var n,i,e,r,o;return{setters:[function(t){n=t.r;i=t.c;e=t.h;r=t.H;o=t.g}],execute:function(){var s="@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item\n * @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item\n * @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item\n */\n\n:host {\n\n --mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));\n --mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));\n --mds-accordion-timer-progress-bar-thickness: 0.25rem;\n --mds-accordion-timer-duration: 500ms;\n\n /* comment */\n display: block;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n }\n}\n";var c=s;var a=t("mds_accordion_timer",function(){function t(t){var e=this;n(this,t);this.changeEvent=i(this,"mdsAccordionTimerChange",7);this.currentDuration=0;this.clearIntervals=function(){if(typeof window!=="undefined"){window.clearInterval(e.timeChecker)}e.timeChecker=0};this.remainingTime=function(){var t=e.selectedItemRemainingTime-((new Date).getTime()-e.timeStarted);return t>=0?t:0};this.progress=function(){return Math.abs(e.remainingTime()/e.currentDuration-1)};this.addTimeListener=function(){if(typeof window!=="undefined"){e.timeChecker=window.setInterval((function(){var t=e.progress();if(e.selectedItem!==undefined){e.selectedItem.progress=t}if(t===1){e.selectedItem.progress=0;e.startNext()}}),100)}};this.beginningTime=function(){e.timeStarted=(new Date).getTime();return e.timeStarted};this.setSelectedItem=function(t){e.children.forEach((function(n,i){if(i===t){n.selected=true;n.duration?e.currentDuration=n.duration:e.currentDuration=e.duration;e.selectedItem=n;e.changeEvent.emit({index:i})}else{n.selected=false}}))};this.startNext=function(){var t=e.selectedItem.uuid+1>e.children.length-1?0:e.selectedItem.uuid+1;e.setSelectedItem(t);e.startTimer()};this.startTimer=function(){e.clearIntervals();e.time=e.beginningTime();e.selectedItemRemainingTime=e.currentDuration;e.addTimeListener()};this.playTimer=function(){e.beginningTime();e.addTimeListener()};this.pauseTimer=function(){e.clearIntervals();e.selectedItemRemainingTime=e.remainingTime()};this.stopTimer=function(){e.clearIntervals()};this.time=0;this.duration=1e4;this.paused=undefined}t.prototype.componentDidLoad=function(){var t=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(n,i){n.uuid=i;if(n.selected){n.duration?t.currentDuration=n.duration:t.currentDuration=t.duration;t.selectedItem=n}}));if(this.selectedItem!==undefined){this.startTimer()}if(this.paused){this.pauseTimer()}};t.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};t.prototype.onClickSelect=function(t){this.clearIntervals();if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer();this.pauseTimer()};t.prototype.onSelect=function(t){this.clearIntervals();this.paused=false;if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer()};t.prototype.onMouseEnterSelect=function(){if(this.paused){return}this.pauseTimer()};t.prototype.onMouseLeaveSelect=function(){if(this.paused){return}if(this.timeChecker===0){this.playTimer()}};t.prototype.handlePaused=function(t){if(t){this.pauseTimer();return}this.playTimer()};t.prototype.render=function(){return e(r,{key:"9816683b4c8bacb97302685b1f1b45ff8ab1a209"},e("slot",{key:"b411a4cdbb6f133f871979df4eccd70433567b56"}))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{paused:["handlePaused"]}},enumerable:false,configurable:true});return t}());a.style=c}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as e,g as o}from"./p-8dd37a13.js";const n=class{constructor(s){t(this,s),this.changeEvent=i(this,"mdsAccordionTimerChange",7),this.currentDuration=0,this.clearIntervals=()=>{"undefined"!=typeof window&&window.clearInterval(this.timeChecker),this.timeChecker=0},this.remainingTime=()=>{const t=this.selectedItemRemainingTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.progress=()=>Math.abs(this.remainingTime()/this.currentDuration-1),this.addTimeListener=()=>{"undefined"!=typeof window&&(this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.selectedItem&&(this.selectedItem.progress=t),1===t&&(this.selectedItem.progress=0,this.startNext())}),100))},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.setSelectedItem=t=>{this.children.forEach(((i,s)=>{s===t?(i.selected=!0,this.currentDuration=i.duration?i.duration:this.duration,this.selectedItem=i,this.changeEvent.emit({index:s})):i.selected=!1}))},this.startNext=()=>{this.setSelectedItem(this.selectedItem.uuid+1>this.children.length-1?0:this.selectedItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.selectedItemRemainingTime=this.currentDuration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.selectedItemRemainingTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals()},this.time=0,this.duration=1e4,this.paused=void 0}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,i)=>{t.uuid=i,t.selected&&(this.currentDuration=t.duration?t.duration:this.duration,this.selectedItem=t)})),void 0!==this.selectedItem&&this.startTimer(),this.paused&&this.pauseTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickSelect(t){this.clearIntervals(),this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer(),this.pauseTimer()}onSelect(t){this.clearIntervals(),this.paused=!1,this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer()}onMouseEnterSelect(){this.paused||this.pauseTimer()}onMouseLeaveSelect(){this.paused||0===this.timeChecker&&this.playTimer()}handlePaused(t){t?this.pauseTimer():this.playTimer()}render(){return s(e,{key:"9816683b4c8bacb97302685b1f1b45ff8ab1a209"},s("slot",{key:"b411a4cdbb6f133f871979df4eccd70433567b56"}))}get element(){return o(this)}static get watchers(){return{paused:["handlePaused"]}}};n.style="@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item\n * @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item\n * @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item\n */\n\n:host {\n\n --mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));\n --mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));\n --mds-accordion-timer-progress-bar-thickness: 0.25rem;\n --mds-accordion-timer-duration: 500ms;\n\n /* comment */\n display: block;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n }\n}\n";export{n as mds_accordion_timer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as o}from"./p-8dd37a13.js";const r=class{constructor(s){t(this,s),this.changeEvent=i(this,"mdsAccordionTimerChange",7),this.currentDuration=0,this.clearIntervals=()=>{window.clearInterval(this.timeChecker),this.timeChecker=0},this.remainingTime=()=>{const t=this.selectedItemRemainingTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.progress=()=>Math.abs(this.remainingTime()/this.currentDuration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.selectedItem&&(this.selectedItem.progress=t),1===t&&(this.selectedItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.setSelectedItem=t=>{this.children.forEach(((i,s)=>{s===t?(i.selected=!0,this.currentDuration=i.duration?i.duration:this.duration,this.selectedItem=i,this.changeEvent.emit({index:s})):i.selected=!1}))},this.startNext=()=>{this.setSelectedItem(this.selectedItem.uuid+1>this.children.length-1?0:this.selectedItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.selectedItemRemainingTime=this.currentDuration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.selectedItemRemainingTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals()},this.time=0,this.duration=1e4,this.paused=void 0}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,i)=>{t.uuid=i,t.selected&&(this.currentDuration=t.duration?t.duration:this.duration,this.selectedItem=t)})),void 0!==this.selectedItem&&this.startTimer(),this.paused&&this.pauseTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickSelect(t){this.clearIntervals(),this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer(),this.pauseTimer()}onSelect(t){this.clearIntervals(),this.paused=!1,this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer()}onMouseEnterSelect(){this.paused||this.pauseTimer()}onMouseLeaveSelect(){this.paused||0===this.timeChecker&&this.playTimer()}handlePaused(t){t?this.pauseTimer():this.playTimer()}render(){return s(e,{key:"4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65"},s("slot",{key:"737db21aa1b2b8cbbcf760b715feea1eef8ad5ed"}))}get element(){return o(this)}static get watchers(){return{paused:["handlePaused"]}}};r.style="@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item\n * @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item\n * @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item\n */\n\n:host {\n\n --mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));\n --mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));\n --mds-accordion-timer-progress-bar-thickness: 0.25rem;\n --mds-accordion-timer-duration: 500ms;\n\n /* comment */\n display: block;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n }\n}\n";export{r as mds_accordion_timer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-62c48ff3.system.js"],(function(t){"use strict";var n,i,e,r,o;return{setters:[function(t){n=t.r;i=t.c;e=t.h;r=t.H;o=t.g}],execute:function(){var s="@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item\n * @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item\n * @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item\n */\n\n:host {\n\n --mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));\n --mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));\n --mds-accordion-timer-progress-bar-thickness: 0.25rem;\n --mds-accordion-timer-duration: 500ms;\n\n /* comment */\n display: block;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n }\n}\n";var c=s;var a=t("mds_accordion_timer",function(){function t(t){var e=this;n(this,t);this.changeEvent=i(this,"mdsAccordionTimerChange",7);this.currentDuration=0;this.clearIntervals=function(){window.clearInterval(e.timeChecker);e.timeChecker=0};this.remainingTime=function(){var t=e.selectedItemRemainingTime-((new Date).getTime()-e.timeStarted);return t>=0?t:0};this.progress=function(){return Math.abs(e.remainingTime()/e.currentDuration-1)};this.addTimeListener=function(){e.timeChecker=window.setInterval((function(){var t=e.progress();if(e.selectedItem!==undefined){e.selectedItem.progress=t}if(t===1){e.selectedItem.progress=0;e.startNext()}}),100)};this.beginningTime=function(){e.timeStarted=(new Date).getTime();return e.timeStarted};this.setSelectedItem=function(t){e.children.forEach((function(n,i){if(i===t){n.selected=true;n.duration?e.currentDuration=n.duration:e.currentDuration=e.duration;e.selectedItem=n;e.changeEvent.emit({index:i})}else{n.selected=false}}))};this.startNext=function(){var t=e.selectedItem.uuid+1>e.children.length-1?0:e.selectedItem.uuid+1;e.setSelectedItem(t);e.startTimer()};this.startTimer=function(){e.clearIntervals();e.time=e.beginningTime();e.selectedItemRemainingTime=e.currentDuration;e.addTimeListener()};this.playTimer=function(){e.beginningTime();e.addTimeListener()};this.pauseTimer=function(){e.clearIntervals();e.selectedItemRemainingTime=e.remainingTime()};this.stopTimer=function(){e.clearIntervals()};this.time=0;this.duration=1e4;this.paused=undefined}t.prototype.componentDidLoad=function(){var t=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(n,i){n.uuid=i;if(n.selected){n.duration?t.currentDuration=n.duration:t.currentDuration=t.duration;t.selectedItem=n}}));if(this.selectedItem!==undefined){this.startTimer()}if(this.paused){this.pauseTimer()}};t.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};t.prototype.onClickSelect=function(t){this.clearIntervals();if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer();this.pauseTimer()};t.prototype.onSelect=function(t){this.clearIntervals();this.paused=false;if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer()};t.prototype.onMouseEnterSelect=function(){if(this.paused){return}this.pauseTimer()};t.prototype.onMouseLeaveSelect=function(){if(this.paused){return}if(this.timeChecker===0){this.playTimer()}};t.prototype.handlePaused=function(t){if(t){this.pauseTimer();return}this.playTimer()};t.prototype.render=function(){return e(r,{key:"4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65"},e("slot",{key:"737db21aa1b2b8cbbcf760b715feea1eef8ad5ed"}))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{paused:["handlePaused"]}},enumerable:false,configurable:true});return t}());a.style=c}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,g as o}from"./p-8dd37a13.js";const r=class{constructor(s){t(this,s),this.changeEvent=i(this,"mdsAccordionTimerChange",7),this.currentDuration=0,this.clearIntervals=()=>{window.clearInterval(this.timeChecker),this.timeChecker=0},this.remainingTime=()=>{const t=this.selectedItemRemainingTime-((new Date).getTime()-this.timeStarted);return t>=0?t:0},this.progress=()=>Math.abs(this.remainingTime()/this.currentDuration-1),this.addTimeListener=()=>{this.timeChecker=window.setInterval((()=>{const t=this.progress();void 0!==this.selectedItem&&(this.selectedItem.progress=t),1===t&&(this.selectedItem.progress=0,this.startNext())}),100)},this.beginningTime=()=>(this.timeStarted=(new Date).getTime(),this.timeStarted),this.setSelectedItem=t=>{this.children.forEach(((i,s)=>{s===t?(i.selected=!0,this.currentDuration=i.duration?i.duration:this.duration,this.selectedItem=i,this.changeEvent.emit({index:s})):i.selected=!1}))},this.startNext=()=>{this.setSelectedItem(this.selectedItem.uuid+1>this.children.length-1?0:this.selectedItem.uuid+1),this.startTimer()},this.startTimer=()=>{this.clearIntervals(),this.time=this.beginningTime(),this.selectedItemRemainingTime=this.currentDuration,this.addTimeListener()},this.playTimer=()=>{this.beginningTime(),this.addTimeListener()},this.pauseTimer=()=>{this.clearIntervals(),this.selectedItemRemainingTime=this.remainingTime()},this.stopTimer=()=>{this.clearIntervals()},this.time=0,this.duration=1e4,this.paused=void 0}componentDidLoad(){this.children=this.element.querySelectorAll("mds-accordion-timer-item"),this.children.forEach(((t,i)=>{t.uuid=i,t.selected&&(this.currentDuration=t.duration?t.duration:this.duration,this.selectedItem=t)})),void 0!==this.selectedItem&&this.startTimer(),this.paused&&this.pauseTimer()}disconnectedCallback(){this.stopTimer(),this.clearIntervals()}onClickSelect(t){this.clearIntervals(),this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer(),this.pauseTimer()}onSelect(t){this.clearIntervals(),this.paused=!1,this.selectedItem&&(this.selectedItem.progress=0),this.setSelectedItem(t.detail.uuid),this.startTimer()}onMouseEnterSelect(){this.paused||this.pauseTimer()}onMouseLeaveSelect(){this.paused||0===this.timeChecker&&this.playTimer()}handlePaused(t){t?this.pauseTimer():this.playTimer()}render(){return s(e,{key:"4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65"},s("slot",{key:"737db21aa1b2b8cbbcf760b715feea1eef8ad5ed"}))}get element(){return o(this)}static get watchers(){return{paused:["handlePaused"]}}};r.style="@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item\n * @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item\n * @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item\n */\n\n:host {\n\n --mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));\n --mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));\n --mds-accordion-timer-progress-bar-thickness: 0.25rem;\n --mds-accordion-timer-duration: 500ms;\n\n /* comment */\n display: block;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n }\n}\n";export{r as mds_accordion_timer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-62c48ff3.system.js"],(function(t){"use strict";var n,i,e,r,o;return{setters:[function(t){n=t.r;i=t.c;e=t.h;r=t.H;o=t.g}],execute:function(){var s="@tailwind utilities;\n\n/**\n * @prop --mds-accordion-timer-progress-bar-color: Sets the color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-progress-bar-background: Sets the background-color of the progress bar when the mds-accordion-timer-item is selected\n * @prop --mds-accordion-timer-color: Sets the text color of the component mds-accordion-timer-item\n * @prop --mds-accordion-timer-progress-bar-thickness: Sets thickness of the progress bar of the mds-accordion-timer-item\n * @prop --mds-accordion-timer-duration: Sets the transition duration of open/close animation of the mds-accordion-timer-item\n */\n\n:host {\n\n --mds-accordion-timer-progress-bar-color: rgb(var(--tone-neutral-03));\n --mds-accordion-timer-progress-bar-background: rgb(var(--tone-neutral-08));\n --mds-accordion-timer-progress-bar-thickness: 0.25rem;\n --mds-accordion-timer-duration: 500ms;\n\n /* comment */\n display: block;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n\n --mds-accordion-timer-item-duration: var(--mds-accordion-timer-duration, 0s);\n\n }\n }\n}\n";var c=s;var a=t("mds_accordion_timer",function(){function t(t){var e=this;n(this,t);this.changeEvent=i(this,"mdsAccordionTimerChange",7);this.currentDuration=0;this.clearIntervals=function(){window.clearInterval(e.timeChecker);e.timeChecker=0};this.remainingTime=function(){var t=e.selectedItemRemainingTime-((new Date).getTime()-e.timeStarted);return t>=0?t:0};this.progress=function(){return Math.abs(e.remainingTime()/e.currentDuration-1)};this.addTimeListener=function(){e.timeChecker=window.setInterval((function(){var t=e.progress();if(e.selectedItem!==undefined){e.selectedItem.progress=t}if(t===1){e.selectedItem.progress=0;e.startNext()}}),100)};this.beginningTime=function(){e.timeStarted=(new Date).getTime();return e.timeStarted};this.setSelectedItem=function(t){e.children.forEach((function(n,i){if(i===t){n.selected=true;n.duration?e.currentDuration=n.duration:e.currentDuration=e.duration;e.selectedItem=n;e.changeEvent.emit({index:i})}else{n.selected=false}}))};this.startNext=function(){var t=e.selectedItem.uuid+1>e.children.length-1?0:e.selectedItem.uuid+1;e.setSelectedItem(t);e.startTimer()};this.startTimer=function(){e.clearIntervals();e.time=e.beginningTime();e.selectedItemRemainingTime=e.currentDuration;e.addTimeListener()};this.playTimer=function(){e.beginningTime();e.addTimeListener()};this.pauseTimer=function(){e.clearIntervals();e.selectedItemRemainingTime=e.remainingTime()};this.stopTimer=function(){e.clearIntervals()};this.time=0;this.duration=1e4;this.paused=undefined}t.prototype.componentDidLoad=function(){var t=this;this.children=this.element.querySelectorAll("mds-accordion-timer-item");this.children.forEach((function(n,i){n.uuid=i;if(n.selected){n.duration?t.currentDuration=n.duration:t.currentDuration=t.duration;t.selectedItem=n}}));if(this.selectedItem!==undefined){this.startTimer()}if(this.paused){this.pauseTimer()}};t.prototype.disconnectedCallback=function(){this.stopTimer();this.clearIntervals()};t.prototype.onClickSelect=function(t){this.clearIntervals();if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer();this.pauseTimer()};t.prototype.onSelect=function(t){this.clearIntervals();this.paused=false;if(this.selectedItem){this.selectedItem.progress=0}this.setSelectedItem(t.detail.uuid);this.startTimer()};t.prototype.onMouseEnterSelect=function(){if(this.paused){return}this.pauseTimer()};t.prototype.onMouseLeaveSelect=function(){if(this.paused){return}if(this.timeChecker===0){this.playTimer()}};t.prototype.handlePaused=function(t){if(t){this.pauseTimer();return}this.playTimer()};t.prototype.render=function(){return e(r,{key:"4b2e910a4c4099ecaaf7355c05c4d69a4e2e9d65"},e("slot",{key:"737db21aa1b2b8cbbcf760b715feea1eef8ad5ed"}))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{paused:["handlePaused"]}},enumerable:false,configurable:true});return t}());a.style=c}}}));
|