@maggioli-design-system/mds-accordion-timer 3.10.4 → 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/{index-dba9169e.js → index-0853bd56.js} +14 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +18 -14
- package/dist/cjs/mds-accordion-timer.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- 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/common/locale.js +17 -5
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +0 -219
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.js +16 -12
- package/dist/collection/dictionary/button.js +1 -0
- package/dist/collection/dictionary/file-extensions.js +114 -56
- package/dist/collection/dictionary/text.js +60 -1
- package/dist/collection/dictionary/variant.js +10 -1
- package/dist/collection/type/variant-file-format.js +0 -34
- package/dist/components/mds-accordion-timer.js +17 -13
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-20fd282d.js → index-af411208.js} +14 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-accordion-timer.entry.js +18 -14
- package/dist/esm/mds-accordion-timer.js +3 -3
- package/dist/esm-es5/index-af411208.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +1 -1
- package/dist/esm-es5/mds-accordion-timer.js +1 -1
- package/dist/mds-accordion-timer/mds-accordion-timer.esm.js +1 -1
- package/dist/mds-accordion-timer/mds-accordion-timer.js +1 -1
- package/dist/mds-accordion-timer/{p-dd7ad5d9.system.js → p-25856ee2.system.js} +1 -1
- package/dist/mds-accordion-timer/p-4eb3ec08.system.entry.js +1 -0
- package/dist/mds-accordion-timer/p-62c48ff3.system.js +2 -0
- package/dist/mds-accordion-timer/p-86e0d6b4.entry.js +1 -0
- package/dist/mds-accordion-timer/p-8dd37a13.js +2 -0
- package/dist/stats.json +35 -35
- package/dist/types/common/aria.d.ts +3 -1
- package/dist/types/common/date.d.ts +1 -1
- package/dist/types/common/device.d.ts +2 -0
- package/dist/types/common/file.d.ts +3 -4
- package/dist/types/common/locale.d.ts +3 -1
- package/dist/types/dictionary/file-extensions.d.ts +2 -1
- package/dist/types/dictionary/text.d.ts +3 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/type/autocomplete.d.ts +1 -1
- package/dist/types/type/button.d.ts +1 -1
- package/dist/types/type/header-bar.d.ts +2 -0
- package/dist/types/type/input.d.ts +3 -0
- package/dist/types/type/text.d.ts +2 -0
- package/dist/types/type/variant-file-format.d.ts +4 -4
- package/dist/types/type/variant.d.ts +2 -1
- package/documentation.json +39 -34
- package/package.json +5 -5
- package/readme.md +12 -1
- package/src/common/aria.ts +22 -2
- package/src/common/device.ts +9 -0
- package/src/common/file.ts +2 -3
- package/src/common/keyboard-manager.ts +2 -2
- package/src/common/locale.ts +20 -6
- package/src/common/unit.ts +1 -1
- package/src/components/mds-accordion-timer/.gitlab-ci.yml +5 -10
- package/src/components/mds-accordion-timer/mds-accordion-timer.tsx +15 -11
- package/src/dictionary/button.ts +1 -0
- package/src/dictionary/file-extensions.ts +118 -57
- package/src/dictionary/text.ts +64 -0
- package/src/dictionary/variant.ts +11 -0
- package/src/fixtures/icons.json +15 -2
- package/src/fixtures/iconsauce.json +7 -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/tailwind/components.css +1 -1
- package/src/type/autocomplete.ts +0 -1
- package/src/type/button.ts +1 -0
- package/src/type/header-bar.ts +11 -0
- package/src/type/input.ts +4 -0
- package/src/type/text.ts +59 -0
- package/src/type/variant-file-format.ts +20 -37
- package/src/type/variant.ts +9 -1
- package/www/build/mds-accordion-timer.esm.js +1 -1
- package/www/build/mds-accordion-timer.js +1 -1
- package/www/build/{p-dd7ad5d9.system.js → p-25856ee2.system.js} +1 -1
- package/www/build/p-4eb3ec08.system.entry.js +1 -0
- package/www/build/p-62c48ff3.system.js +2 -0
- package/www/build/p-86e0d6b4.entry.js +1 -0
- package/www/build/p-8dd37a13.js +2 -0
- package/dist/collection/type/language.js +0 -1
- package/dist/esm-es5/index-20fd282d.js +0 -1
- package/dist/mds-accordion-timer/p-6d230e24.js +0 -2
- package/dist/mds-accordion-timer/p-9d12b7bb.entry.js +0 -1
- package/dist/mds-accordion-timer/p-b63ea901.system.entry.js +0 -1
- package/dist/mds-accordion-timer/p-fe7bbbcf.system.js +0 -2
- package/dist/types/interface/input-value.d.ts +0 -4
- package/dist/types/type/language.d.ts +0 -2
- package/src/interface/input-value.ts +0 -5
- package/src/type/language.ts +0 -8
- package/www/build/p-6d230e24.js +0 -2
- package/www/build/p-9d12b7bb.entry.js +0 -1
- package/www/build/p-b63ea901.system.entry.js +0 -1
- package/www/build/p-fe7bbbcf.system.js +0 -2
- /package/dist/collection/{interface/input-value.js → type/header-bar.js} +0 -0
|
@@ -1,61 +1,119 @@
|
|
|
1
1
|
const fileExtensionsDictionary = {
|
|
2
|
-
'7z': { format: 'archive', description: '
|
|
3
|
-
ace: { format: 'archive', description: '
|
|
4
|
-
ai: { format: 'vector', description: '
|
|
5
|
-
dart: { format: 'code', description: '
|
|
6
|
-
db: { format: 'data', description: '
|
|
7
|
-
default: { format: 'attachment', description: '
|
|
8
|
-
dmg: { format: 'executable', description: '
|
|
9
|
-
doc: { format: 'text', description: '
|
|
10
|
-
docm: { format: 'text', description: '
|
|
11
|
-
docx: { format: 'text', description: '
|
|
12
|
-
eml: { format: 'email', description: '
|
|
13
|
-
eps: { format: 'vector', description: '
|
|
14
|
-
exe: { format: 'executable', description: '
|
|
15
|
-
flac: { format: 'audio', description: '
|
|
16
|
-
gif: { format: 'image', description: '
|
|
17
|
-
htm: { format: 'markup', description: '
|
|
18
|
-
heic: { format: 'image', description: '
|
|
19
|
-
html: { format: 'markup', description: '
|
|
20
|
-
jpe: { format: 'image', description: '
|
|
21
|
-
jpeg: { format: 'image', description: '
|
|
22
|
-
jpg: { format: 'image', description: '
|
|
23
|
-
js: { format: 'code', description: '
|
|
24
|
-
json: { format: 'data', description: '
|
|
25
|
-
jsx: { format: 'code', description: '
|
|
26
|
-
m2v: { format: 'video', description: '
|
|
27
|
-
mp2: { format: 'audio', description: '
|
|
28
|
-
mp3: { format: 'audio', description: '
|
|
29
|
-
mp4: { format: 'video', description: '
|
|
30
|
-
mp4v: { format: 'video', description: '
|
|
31
|
-
mpeg: { format: 'video', description: '
|
|
32
|
-
mpg4: { format: 'video', description: '
|
|
33
|
-
mpg: { format: 'video', description: '
|
|
34
|
-
mpga: { format: 'audio', description: '
|
|
35
|
-
odp: { format: 'slide', description: '
|
|
36
|
-
ods: { format: 'spreadsheet', description: '
|
|
37
|
-
odt: { format: 'text', description: '
|
|
38
|
-
pdf: { format: 'document', description: '
|
|
39
|
-
php: { format: 'code', description: '
|
|
40
|
-
png: { format: 'image', description: '
|
|
41
|
-
ppt: { format: 'slide', description: '
|
|
42
|
-
rar: { format: 'archive', description: '
|
|
43
|
-
rtf: { format: 'text', description: '
|
|
44
|
-
sass: { format: 'code', description: '
|
|
45
|
-
shtml: { format: 'markup', description: '
|
|
46
|
-
svg: { format: 'vector', description: '
|
|
47
|
-
tar: { format: 'archive', description: '
|
|
48
|
-
tiff: { format: 'image', description: '
|
|
49
|
-
ts: { format: 'code', description: '
|
|
50
|
-
tsx: { format: 'code', description: '
|
|
51
|
-
txt: { format: 'text', description: '
|
|
52
|
-
wav: { format: 'audio', description: '
|
|
53
|
-
webp: { format: 'image', description: '
|
|
54
|
-
xar: { format: 'archive', description: '
|
|
55
|
-
xls: { format: 'spreadsheet', description: '
|
|
56
|
-
xlsx: { format: 'spreadsheet', description: '
|
|
57
|
-
zip: { format: 'archive', description: '
|
|
2
|
+
'7z': { format: 'archive', description: 'compressedArchive' },
|
|
3
|
+
ace: { format: 'archive', description: 'compressedArchive' },
|
|
4
|
+
ai: { format: 'vector', description: 'fileAI' },
|
|
5
|
+
dart: { format: 'code', description: 'dart' },
|
|
6
|
+
db: { format: 'data', description: 'fileDB' },
|
|
7
|
+
default: { format: 'attachment', description: 'unknown' },
|
|
8
|
+
dmg: { format: 'executable', description: 'appleDiskImage' },
|
|
9
|
+
doc: { format: 'text', description: 'documentMS' },
|
|
10
|
+
docm: { format: 'text', description: 'documentMS' },
|
|
11
|
+
docx: { format: 'text', description: 'compressedDocumentMS' },
|
|
12
|
+
eml: { format: 'email', description: 'email' },
|
|
13
|
+
eps: { format: 'vector', description: 'fileEPS' },
|
|
14
|
+
exe: { format: 'executable', description: 'fileEXE' },
|
|
15
|
+
flac: { format: 'audio', description: 'uncompressedAudio' },
|
|
16
|
+
gif: { format: 'image', description: 'compressedImage', preview: true },
|
|
17
|
+
htm: { format: 'markup', description: 'documentWeb' },
|
|
18
|
+
heic: { format: 'image', description: 'imageHEFF' },
|
|
19
|
+
html: { format: 'markup', description: 'documentWeb' },
|
|
20
|
+
jpe: { format: 'image', description: 'compressedImage', preview: true },
|
|
21
|
+
jpeg: { format: 'image', description: 'compressedImage', preview: true },
|
|
22
|
+
jpg: { format: 'image', description: 'compressedImage', preview: true },
|
|
23
|
+
js: { format: 'code', description: 'fileJS' },
|
|
24
|
+
json: { format: 'data', description: 'fileJSON' },
|
|
25
|
+
jsx: { format: 'code', description: 'fileJS' },
|
|
26
|
+
m2v: { format: 'video', description: 'videoSD' },
|
|
27
|
+
mp2: { format: 'audio', description: 'compressedAudio' },
|
|
28
|
+
mp3: { format: 'audio', description: 'compressedAudio' },
|
|
29
|
+
mp4: { format: 'video', description: 'videoHD' },
|
|
30
|
+
mp4v: { format: 'video', description: 'videoHD' },
|
|
31
|
+
mpeg: { format: 'video', description: 'videoSD' },
|
|
32
|
+
mpg4: { format: 'video', description: 'videoSD' },
|
|
33
|
+
mpg: { format: 'video', description: 'videoSD' },
|
|
34
|
+
mpga: { format: 'audio', description: 'compressedAudio' },
|
|
35
|
+
odp: { format: 'slide', description: 'slideLO' },
|
|
36
|
+
ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
|
|
37
|
+
odt: { format: 'text', description: 'documentLO' },
|
|
38
|
+
pdf: { format: 'document', description: 'documentAdobe' },
|
|
39
|
+
php: { format: 'code', description: 'filePHP' },
|
|
40
|
+
png: { format: 'image', description: 'imagePNG', preview: true },
|
|
41
|
+
ppt: { format: 'slide', description: 'slidePowerPoint' },
|
|
42
|
+
rar: { format: 'archive', description: 'compressedArchive' },
|
|
43
|
+
rtf: { format: 'text', description: 'documentRTF' },
|
|
44
|
+
sass: { format: 'code', description: 'fileSASS' },
|
|
45
|
+
shtml: { format: 'markup', description: 'documentWeb' },
|
|
46
|
+
svg: { format: 'vector', description: 'imageSVG', preview: true },
|
|
47
|
+
tar: { format: 'archive', description: 'uncompressedArchive' },
|
|
48
|
+
tiff: { format: 'image', description: 'imageTIFF' },
|
|
49
|
+
ts: { format: 'code', description: 'fileTS' },
|
|
50
|
+
tsx: { format: 'code', description: 'fileTSX' },
|
|
51
|
+
txt: { format: 'text', description: 'documentTXT' },
|
|
52
|
+
wav: { format: 'audio', description: 'uncompressedAudio' },
|
|
53
|
+
webp: { format: 'image', description: 'imageWEBP', preview: true },
|
|
54
|
+
xar: { format: 'archive', description: 'compressedArchive' },
|
|
55
|
+
xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
|
|
56
|
+
xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
|
|
57
|
+
zip: { format: 'archive', description: 'compressedArchive' },
|
|
58
58
|
};
|
|
59
|
+
// const fileExtensionsDictionary: FileExtenstion = {
|
|
60
|
+
// '7z': { format: 'archive', description: 'Archivio compresso' },
|
|
61
|
+
// ace: { format: 'archive', description: 'Archivio compresso' },
|
|
62
|
+
// ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
|
|
63
|
+
// dart: { format: 'code', description: 'Dart' },
|
|
64
|
+
// db: { format: 'data', description: 'File di database' },
|
|
65
|
+
// default: { format: 'attachment', description: 'Formato sconosciuto' },
|
|
66
|
+
// dmg: { format: 'executable', description: 'Apple Disk Image' },
|
|
67
|
+
// doc: { format: 'text', description: 'Documento Microsoft Word' },
|
|
68
|
+
// docm: { format: 'text', description: 'Documento Microsoft Word' },
|
|
69
|
+
// docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
|
|
70
|
+
// eml: { format: 'email', description: 'E-mail di posta elettronica' },
|
|
71
|
+
// eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
|
|
72
|
+
// exe: { format: 'executable', description: 'File eseguibile Windows' },
|
|
73
|
+
// flac: { format: 'audio', description: 'Audio non compresso' },
|
|
74
|
+
// gif: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
75
|
+
// htm: { format: 'markup', description: 'Pagina web' },
|
|
76
|
+
// heic: { format: 'image', description: 'High Efficiency Image File Format' },
|
|
77
|
+
// html: { format: 'markup', description: 'Pagina web' },
|
|
78
|
+
// jpe: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
79
|
+
// jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
80
|
+
// jpg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
81
|
+
// js: { format: 'code', description: 'JavaScript' },
|
|
82
|
+
// json: { format: 'data', description: 'JavaScript Object Notation' },
|
|
83
|
+
// jsx: { format: 'code', description: 'JavaScript' },
|
|
84
|
+
// m2v: { format: 'video', description: 'Filmato SD' },
|
|
85
|
+
// mp2: { format: 'audio', description: 'Audio compresso' },
|
|
86
|
+
// mp3: { format: 'audio', description: 'Audio compresso' },
|
|
87
|
+
// mp4: { format: 'video', description: 'Filmato HD' },
|
|
88
|
+
// mp4v: { format: 'video', description: 'Filmato HD' },
|
|
89
|
+
// mpeg: { format: 'video', description: 'Filmato SD' },
|
|
90
|
+
// mpg4: { format: 'video', description: 'Filmato SD' },
|
|
91
|
+
// mpg: { format: 'video', description: 'Filmato SD' },
|
|
92
|
+
// mpga: { format: 'audio', description: 'Audio compresso' },
|
|
93
|
+
// odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
|
|
94
|
+
// ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
|
|
95
|
+
// odt: { format: 'text', description: 'File di testo LibreOffice' },
|
|
96
|
+
// pdf: { format: 'document', description: 'Documento Adobe' },
|
|
97
|
+
// php: { format: 'code', description: 'Hypertext Preprocessor' },
|
|
98
|
+
// png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
|
|
99
|
+
// ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
|
|
100
|
+
// rar: { format: 'archive', description: 'Archivio compresso' },
|
|
101
|
+
// rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
|
|
102
|
+
// sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
|
|
103
|
+
// shtml: { format: 'markup', description: 'Pagina web' },
|
|
104
|
+
// svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
|
|
105
|
+
// tar: { format: 'archive', description: 'Archivio non compresso' },
|
|
106
|
+
// tiff: { format: 'image', description: 'Tag Image File Format' },
|
|
107
|
+
// ts: { format: 'code', description: 'TypeScript' },
|
|
108
|
+
// tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
|
|
109
|
+
// txt: { format: 'text', description: 'Documento di testo non formattato' },
|
|
110
|
+
// wav: { format: 'audio', description: 'Audio non compresso' },
|
|
111
|
+
// webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
|
|
112
|
+
// xar: { format: 'archive', description: 'Archivio compresso' },
|
|
113
|
+
// xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
114
|
+
// xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
115
|
+
// zip: { format: 'archive', description: 'Archivio compresso' },
|
|
116
|
+
// }
|
|
59
117
|
const genericMimeToExt = new Map([
|
|
60
118
|
['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
|
|
61
119
|
['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
|
|
@@ -1,6 +1,65 @@
|
|
|
1
|
+
const typographyTagDictionary = [
|
|
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
|
+
const typographyHeadingTagDictionary = [
|
|
53
|
+
'h1',
|
|
54
|
+
'h2',
|
|
55
|
+
'h3',
|
|
56
|
+
'h4',
|
|
57
|
+
'h5',
|
|
58
|
+
'h6',
|
|
59
|
+
];
|
|
1
60
|
const truncateDictionary = [
|
|
2
61
|
'all',
|
|
3
62
|
'none',
|
|
4
63
|
'word',
|
|
5
64
|
];
|
|
6
|
-
export { truncateDictionary, };
|
|
65
|
+
export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };
|
|
@@ -70,6 +70,15 @@ const toneVariantDictionary = [
|
|
|
70
70
|
'ghost',
|
|
71
71
|
'quiet',
|
|
72
72
|
];
|
|
73
|
+
const themeVariantChipDictionary = [
|
|
74
|
+
'primary',
|
|
75
|
+
'secondary',
|
|
76
|
+
'dark',
|
|
77
|
+
'error',
|
|
78
|
+
'info',
|
|
79
|
+
'success',
|
|
80
|
+
'warning',
|
|
81
|
+
];
|
|
73
82
|
const toneActionVariantDictionary = [
|
|
74
83
|
'primary',
|
|
75
84
|
'secondary',
|
|
@@ -92,4 +101,4 @@ const toneMinimalVariantDictionary = [
|
|
|
92
101
|
'strong',
|
|
93
102
|
'weak',
|
|
94
103
|
];
|
|
95
|
-
export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
|
|
104
|
+
export { themeFullVariantAvatarDictionary, themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, themeVariantChipDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneSmartVariantDictionary, toneVariantDictionary, };
|
|
@@ -15,105 +15,71 @@ import mdiVectorCurve from "@icon/mdi/vector-curve.svg";
|
|
|
15
15
|
import baselineVideocam from "@icon/mi/baseline/videocam.svg";
|
|
16
16
|
const fileFormatsVariant = {
|
|
17
17
|
archive: {
|
|
18
|
-
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
|
19
18
|
icon: baselineFolderZip,
|
|
20
|
-
iconBackground: 'bg-label-amaranth-10',
|
|
21
19
|
variant: 'amaranth',
|
|
22
20
|
},
|
|
23
21
|
attachment: {
|
|
24
|
-
color: 'fill-tone-neutral-04 text-tone-neutral-04',
|
|
25
22
|
icon: baselineAttachFile,
|
|
26
|
-
iconBackground: 'bg-tone-neutral-10',
|
|
27
23
|
variant: 'dark',
|
|
28
24
|
},
|
|
29
25
|
audio: {
|
|
30
|
-
color: 'fill-label-violet-04 text-label-violet-04',
|
|
31
26
|
icon: baselineAudiotrack,
|
|
32
|
-
iconBackground: 'bg-label-violet-10',
|
|
33
27
|
variant: 'violet',
|
|
34
28
|
},
|
|
35
29
|
code: {
|
|
36
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
37
30
|
icon: baselineTerminal,
|
|
38
|
-
iconBackground: 'bg-label-yellow-10',
|
|
39
31
|
variant: 'yellow',
|
|
40
32
|
},
|
|
41
33
|
data: {
|
|
42
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
43
34
|
icon: mdiHardDisk,
|
|
44
|
-
iconBackground: 'bg-label-yellow-10',
|
|
45
35
|
variant: 'yellow',
|
|
46
36
|
},
|
|
47
37
|
document: {
|
|
48
|
-
color: 'fill-label-orange-04 text-label-orange-04',
|
|
49
38
|
icon: baselineInsertDriveFile,
|
|
50
|
-
iconBackground: 'bg-label-orange-10',
|
|
51
39
|
variant: 'orange',
|
|
52
40
|
},
|
|
53
41
|
email: {
|
|
54
|
-
color: 'fill-label-blue-04 text-label-blue-04',
|
|
55
42
|
icon: baselineEmail,
|
|
56
|
-
iconBackground: 'bg-label-blue-10',
|
|
57
43
|
variant: 'blue',
|
|
58
44
|
},
|
|
59
45
|
executable: {
|
|
60
|
-
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
|
61
46
|
icon: baselineWysiwyg,
|
|
62
|
-
iconBackground: 'bg-label-amaranth-10',
|
|
63
47
|
variant: 'amaranth',
|
|
64
48
|
},
|
|
65
49
|
image: {
|
|
66
|
-
color: 'fill-label-green-04 text-label-green-04',
|
|
67
50
|
icon: baselinePanorama,
|
|
68
|
-
iconBackground: 'bg-label-green-10',
|
|
69
51
|
variant: 'green',
|
|
70
52
|
},
|
|
71
53
|
imageRaster: {
|
|
72
|
-
color: 'fill-label-green-04 text-label-green-04',
|
|
73
54
|
icon: baselinePanorama,
|
|
74
|
-
iconBackground: 'bg-label-green-10',
|
|
75
55
|
variant: 'green',
|
|
76
56
|
},
|
|
77
57
|
markup: {
|
|
78
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
79
58
|
icon: baselineWeb,
|
|
80
|
-
iconBackground: 'bg-label-yellow-10',
|
|
81
59
|
variant: 'yellow',
|
|
82
60
|
},
|
|
83
61
|
slide: {
|
|
84
|
-
color: 'fill-label-orchid-04 text-label-orchid-04',
|
|
85
62
|
icon: baselineTV,
|
|
86
|
-
iconBackground: 'bg-label-orchid-10',
|
|
87
63
|
variant: 'orchid',
|
|
88
64
|
},
|
|
89
65
|
spreadsheet: {
|
|
90
|
-
color: 'fill-label-lime-04 text-label-lime-04',
|
|
91
66
|
icon: baselineBorderAll,
|
|
92
|
-
iconBackground: 'bg-label-lime-10',
|
|
93
67
|
variant: 'lime',
|
|
94
68
|
},
|
|
95
69
|
text: {
|
|
96
|
-
color: 'fill-label-blue-04 text-label-blue-04',
|
|
97
70
|
icon: baselineDescription,
|
|
98
|
-
iconBackground: 'bg-label-blue-10',
|
|
99
71
|
variant: 'blue',
|
|
100
72
|
},
|
|
101
73
|
vectorImage: {
|
|
102
|
-
color: 'fill-label-aqua-04 text-label-aqua-04',
|
|
103
74
|
icon: mdiVectorCurve,
|
|
104
|
-
iconBackground: 'bg-label-aqua-10',
|
|
105
75
|
variant: 'aqua',
|
|
106
76
|
},
|
|
107
77
|
vector: {
|
|
108
|
-
color: 'fill-label-aqua-04 text-label-aqua-04',
|
|
109
78
|
icon: mdiVectorCurve,
|
|
110
|
-
iconBackground: 'bg-label-aqua-10',
|
|
111
79
|
variant: 'aqua',
|
|
112
80
|
},
|
|
113
81
|
video: {
|
|
114
|
-
color: 'fill-label-violet-04 text-label-violet-04',
|
|
115
82
|
icon: baselineVideocam,
|
|
116
|
-
iconBackground: 'bg-label-violet-10',
|
|
117
83
|
variant: 'violet',
|
|
118
84
|
},
|
|
119
85
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const mdsAccordionTimerCss = "@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
|
|
3
|
+
const mdsAccordionTimerCss = "@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";
|
|
4
4
|
const MdsAccordionTimerStyle0 = mdsAccordionTimerCss;
|
|
5
5
|
|
|
6
6
|
const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionTimer extends HTMLElement {
|
|
@@ -11,7 +11,9 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionT
|
|
|
11
11
|
this.changeEvent = createEvent(this, "mdsAccordionTimerChange", 7);
|
|
12
12
|
this.currentDuration = 0;
|
|
13
13
|
this.clearIntervals = () => {
|
|
14
|
-
window
|
|
14
|
+
if (typeof window !== 'undefined') {
|
|
15
|
+
window.clearInterval(this.timeChecker);
|
|
16
|
+
}
|
|
15
17
|
this.timeChecker = 0;
|
|
16
18
|
};
|
|
17
19
|
this.remainingTime = () => {
|
|
@@ -22,16 +24,18 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionT
|
|
|
22
24
|
return Math.abs(this.remainingTime() / this.currentDuration - 1);
|
|
23
25
|
};
|
|
24
26
|
this.addTimeListener = () => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
this.selectedItem
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
if (typeof window !== 'undefined') {
|
|
28
|
+
this.timeChecker = window.setInterval(() => {
|
|
29
|
+
const progress = this.progress();
|
|
30
|
+
if (this.selectedItem !== undefined) {
|
|
31
|
+
this.selectedItem.progress = progress;
|
|
32
|
+
}
|
|
33
|
+
if (progress === 1) {
|
|
34
|
+
this.selectedItem.progress = 0;
|
|
35
|
+
this.startNext();
|
|
36
|
+
}
|
|
37
|
+
}, 100);
|
|
38
|
+
}
|
|
35
39
|
};
|
|
36
40
|
this.beginningTime = () => {
|
|
37
41
|
this.timeStarted = (new Date()).getTime();
|
|
@@ -136,7 +140,7 @@ const MdsAccordionTimer$1 = /*@__PURE__*/ proxyCustomElement(class MdsAccordionT
|
|
|
136
140
|
this.playTimer();
|
|
137
141
|
}
|
|
138
142
|
render() {
|
|
139
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: '9816683b4c8bacb97302685b1f1b45ff8ab1a209' }, h("slot", { key: 'b411a4cdbb6f133f871979df4eccd70433567b56' })));
|
|
140
144
|
}
|
|
141
145
|
get element() { return this; }
|
|
142
146
|
static get watchers() { return {
|
package/dist/documentation.json
CHANGED
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'mds-accordion-timer';
|
|
|
2
2
|
const BUILD = /* mds-accordion-timer */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: false, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: false, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -353,10 +353,21 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
353
353
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
354
354
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
355
355
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
356
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling :
|
|
356
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
357
357
|
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
358
358
|
} else if ("host" in styleContainerNode) {
|
|
359
|
-
|
|
359
|
+
if (supportsConstructableStylesheets) {
|
|
360
|
+
const stylesheet = new CSSStyleSheet();
|
|
361
|
+
stylesheet.replaceSync(style);
|
|
362
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
363
|
+
} else {
|
|
364
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
365
|
+
if (existingStyleContainer) {
|
|
366
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
367
|
+
} else {
|
|
368
|
+
styleContainerNode.prepend(styleElm);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
360
371
|
} else {
|
|
361
372
|
styleContainerNode.append(styleElm);
|
|
362
373
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-af411208.js';
|
|
2
|
+
export { s as setNonce } from './index-af411208.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-af411208.js';
|
|
2
2
|
|
|
3
|
-
const mdsAccordionTimerCss = "@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
|
|
3
|
+
const mdsAccordionTimerCss = "@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";
|
|
4
4
|
const MdsAccordionTimerStyle0 = mdsAccordionTimerCss;
|
|
5
5
|
|
|
6
6
|
const MdsAccordionTimer = class {
|
|
@@ -9,7 +9,9 @@ const MdsAccordionTimer = class {
|
|
|
9
9
|
this.changeEvent = createEvent(this, "mdsAccordionTimerChange", 7);
|
|
10
10
|
this.currentDuration = 0;
|
|
11
11
|
this.clearIntervals = () => {
|
|
12
|
-
window
|
|
12
|
+
if (typeof window !== 'undefined') {
|
|
13
|
+
window.clearInterval(this.timeChecker);
|
|
14
|
+
}
|
|
13
15
|
this.timeChecker = 0;
|
|
14
16
|
};
|
|
15
17
|
this.remainingTime = () => {
|
|
@@ -20,16 +22,18 @@ const MdsAccordionTimer = class {
|
|
|
20
22
|
return Math.abs(this.remainingTime() / this.currentDuration - 1);
|
|
21
23
|
};
|
|
22
24
|
this.addTimeListener = () => {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
this.selectedItem
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
if (typeof window !== 'undefined') {
|
|
26
|
+
this.timeChecker = window.setInterval(() => {
|
|
27
|
+
const progress = this.progress();
|
|
28
|
+
if (this.selectedItem !== undefined) {
|
|
29
|
+
this.selectedItem.progress = progress;
|
|
30
|
+
}
|
|
31
|
+
if (progress === 1) {
|
|
32
|
+
this.selectedItem.progress = 0;
|
|
33
|
+
this.startNext();
|
|
34
|
+
}
|
|
35
|
+
}, 100);
|
|
36
|
+
}
|
|
33
37
|
};
|
|
34
38
|
this.beginningTime = () => {
|
|
35
39
|
this.timeStarted = (new Date()).getTime();
|
|
@@ -134,7 +138,7 @@ const MdsAccordionTimer = class {
|
|
|
134
138
|
this.playTimer();
|
|
135
139
|
}
|
|
136
140
|
render() {
|
|
137
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '9816683b4c8bacb97302685b1f1b45ff8ab1a209' }, h("slot", { key: 'b411a4cdbb6f133f871979df4eccd70433567b56' })));
|
|
138
142
|
}
|
|
139
143
|
get element() { return getElement(this); }
|
|
140
144
|
static get watchers() { return {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-af411208.js';
|
|
2
|
+
export { s as setNonce } from './index-af411208.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.22.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|