@maggioli-design-system/mds-modal 4.7.2 → 4.8.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-95c329c0.js → index-b3e2062a.js} +22 -14
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-modal.cjs.entry.js +4 -4
- package/dist/cjs/mds-modal.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/file.js +48 -0
- package/dist/collection/common/icon.js +15 -0
- package/dist/collection/common/unit.js +15 -3
- package/dist/collection/common/yugop/core.js +16 -0
- package/dist/collection/common/yugop/index.js +3 -0
- package/dist/collection/common/yugop/random-text.js +59 -0
- package/dist/collection/common/yugop/utils/math.js +11 -0
- package/dist/collection/common/yugop/utils/noop.js +1 -0
- package/dist/collection/common/yugop/utils/prng.js +21 -0
- package/dist/collection/common/yugop/utils/string.js +2 -0
- package/dist/collection/components/mds-modal/mds-modal.css +151 -27
- package/dist/collection/components/mds-modal/mds-modal.js +1 -1
- package/dist/collection/components/mds-modal/test/mds-modal.e2e.js +1 -21
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +1 -1
- package/dist/collection/dictionary/file-extensions.js +64 -0
- package/dist/collection/dictionary/icon.js +6 -1
- package/dist/collection/dictionary/text.js +6 -0
- package/dist/collection/dictionary/variant.js +18 -1
- package/dist/collection/fixtures/filenames.js +57 -0
- package/dist/collection/type/file-types.js +1 -0
- package/dist/collection/type/text.js +1 -0
- package/dist/collection/type/variant-file-format.js +111 -0
- package/dist/components/mds-modal.js +3 -3
- package/dist/documentation.d.ts +1 -21
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-2bd481c0.js → index-fd30d325.js} +22 -14
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-modal.entry.js +4 -4
- package/dist/esm/mds-modal.js +3 -3
- package/dist/esm-es5/index-fd30d325.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-modal.entry.js +1 -1
- package/dist/esm-es5/mds-modal.js +1 -1
- package/dist/mds-modal/mds-modal.esm.js +1 -1
- package/dist/mds-modal/mds-modal.js +1 -1
- package/dist/mds-modal/p-14f0bf74.system.js +2 -0
- package/dist/mds-modal/p-444a6a47.system.entry.js +1 -0
- package/dist/mds-modal/{p-969424eb.system.js → p-5cf75b06.system.js} +1 -1
- package/dist/mds-modal/p-83ebb238.entry.js +1 -0
- package/dist/mds-modal/p-aff993b4.js +2 -0
- package/dist/stats.json +85 -40
- package/dist/types/common/file.d.ts +12 -0
- package/dist/types/common/icon.d.ts +5 -0
- package/dist/types/common/unit.d.ts +2 -1
- package/dist/types/common/yugop/core.d.ts +10 -0
- package/dist/types/common/yugop/index.d.ts +1 -0
- package/dist/types/common/yugop/random-text.d.ts +31 -0
- package/dist/types/common/yugop/utils/math.d.ts +3 -0
- package/dist/types/common/yugop/utils/noop.d.ts +1 -0
- package/dist/types/common/yugop/utils/prng.d.ts +8 -0
- package/dist/types/common/yugop/utils/string.d.ts +1 -0
- package/dist/types/dictionary/file-extensions.d.ts +11 -0
- package/dist/types/dictionary/icon.d.ts +2 -1
- package/dist/types/dictionary/text.d.ts +2 -0
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/fixtures/filenames.d.ts +2 -0
- package/dist/types/type/file-types.d.ts +1 -0
- package/dist/types/type/text.d.ts +1 -0
- package/dist/types/type/variant-file-format.d.ts +11 -0
- package/dist/types/type/variant.d.ts +1 -0
- package/documentation.json +58 -13
- package/package.json +5 -4
- package/readme.md +8 -0
- package/src/common/file.ts +63 -0
- package/src/common/icon.ts +25 -0
- package/src/common/unit.ts +21 -2
- package/src/common/yugop/core.ts +47 -0
- package/src/common/yugop/index.ts +4 -0
- package/src/common/yugop/random-text.ts +95 -0
- package/src/common/yugop/utils/math.ts +21 -0
- package/src/common/yugop/utils/noop.ts +1 -0
- package/src/common/yugop/utils/prng.ts +35 -0
- package/src/common/yugop/utils/string.ts +4 -0
- package/src/components/mds-modal/css/mds-modal-animate-left.css +4 -4
- package/src/components/mds-modal/css/mds-modal-animate-right.css +4 -4
- package/src/components/mds-modal/mds-modal.css +12 -7
- package/src/components/mds-modal/mds-modal.tsx +1 -1
- package/src/components/mds-modal/test/mds-modal.e2e.ts +1 -23
- package/src/components/mds-modal/test/mds-modal.stories.tsx +9 -9
- package/src/dictionary/file-extensions.ts +81 -0
- package/src/dictionary/icon.ts +6 -0
- package/src/dictionary/text.ts +9 -0
- package/src/dictionary/variant.ts +19 -0
- package/src/fixtures/filenames.ts +60 -0
- package/src/fixtures/icons.json +10 -0
- package/src/fixtures/iconsauce.json +3 -0
- package/src/type/file-types.ts +55 -0
- package/src/type/text.ts +4 -0
- package/src/type/variant-file-format.ts +128 -0
- package/src/type/variant.ts +17 -0
- package/www/build/mds-modal.esm.js +1 -1
- package/www/build/mds-modal.js +1 -1
- package/www/build/p-14f0bf74.system.js +2 -0
- package/www/build/p-444a6a47.system.entry.js +1 -0
- package/www/build/{p-969424eb.system.js → p-5cf75b06.system.js} +1 -1
- package/www/build/p-83ebb238.entry.js +1 -0
- package/www/build/p-aff993b4.js +2 -0
- package/dist/esm-es5/index-2bd481c0.js +0 -1
- package/dist/mds-modal/p-0a4de21e.system.js +0 -2
- package/dist/mds-modal/p-2f9a631d.js +0 -2
- package/dist/mds-modal/p-68c3fe7d.system.entry.js +0 -1
- package/dist/mds-modal/p-fe6df5e2.entry.js +0 -1
- package/www/build/p-0a4de21e.system.js +0 -2
- package/www/build/p-2f9a631d.js +0 -2
- package/www/build/p-68c3fe7d.system.entry.js +0 -1
- package/www/build/p-fe6df5e2.entry.js +0 -1
|
@@ -16,17 +16,6 @@ describe('mds-modal', () => {
|
|
|
16
16
|
expect(element.getAttribute('position')).toBe('right')
|
|
17
17
|
|
|
18
18
|
expect(element).not.toHaveAttribute('opened')
|
|
19
|
-
|
|
20
|
-
expect(element.shadowRoot).toEqualHtml(`
|
|
21
|
-
<div class="window" part="window" role="dialog">
|
|
22
|
-
<slot></slot>
|
|
23
|
-
</div>
|
|
24
|
-
<i class="close focus-bounce-light svg" tabindex="0">
|
|
25
|
-
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
26
|
-
<path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"></path>
|
|
27
|
-
</svg>
|
|
28
|
-
</i>
|
|
29
|
-
`)
|
|
30
19
|
})
|
|
31
20
|
|
|
32
21
|
it('renders opened', async () => {
|
|
@@ -35,18 +24,7 @@ describe('mds-modal', () => {
|
|
|
35
24
|
|
|
36
25
|
const element = await page.find('mds-modal')
|
|
37
26
|
|
|
38
|
-
expect(element.
|
|
39
|
-
|
|
40
|
-
expect(element.shadowRoot).toEqualHtml(`
|
|
41
|
-
<div class="window" part="window" role="dialog">
|
|
42
|
-
<slot></slot>
|
|
43
|
-
</div>
|
|
44
|
-
<i class="close focus-bounce-light svg" tabindex="0">
|
|
45
|
-
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
|
46
|
-
<path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"></path>
|
|
47
|
-
</svg>
|
|
48
|
-
</i>
|
|
49
|
-
`)
|
|
27
|
+
expect(element).toHaveAttribute('opened')
|
|
50
28
|
})
|
|
51
29
|
|
|
52
30
|
it('can be closed', async () => {
|
|
@@ -26,25 +26,25 @@ const email = `${firstName.toLowerCase()}.${lastName.toLowerCase()}@nintendo.com
|
|
|
26
26
|
|
|
27
27
|
const Template = args =>
|
|
28
28
|
<mds-modal {...args}>
|
|
29
|
-
<header slot="top" class="p-
|
|
30
|
-
<mds-img class="w-
|
|
29
|
+
<header slot="top" class="p-800 max-w-lg flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09">
|
|
30
|
+
<mds-img class="w-1600" src="/logo-gruppo-maggioli-512w.webp"/>
|
|
31
31
|
<div class="text-tone-neutral-02">
|
|
32
32
|
<mds-text typography="h5" class="truncate min-w-0">Maggioli Editore</mds-text>
|
|
33
33
|
<mds-text typography="detail" class="truncate min-w-0">Menu di servizio</mds-text>
|
|
34
34
|
</div>
|
|
35
35
|
</header>
|
|
36
|
-
<div class="p-
|
|
36
|
+
<div class="p-800 max-w-lg">
|
|
37
37
|
<mds-text>
|
|
38
38
|
As a multi-brand design system, our components need to be flexible enough for any one of our brands to use them for multiple use cases. To achieve this, we ensure that all of the brands are involved in the specification stage, giving us more confidence that we’re future-proofing our components as more brands adopt NewsKit.
|
|
39
39
|
</mds-text>
|
|
40
40
|
</div>
|
|
41
|
-
<footer slot="bottom" class="p-
|
|
42
|
-
<mds-author>
|
|
43
|
-
<mds-avatar slot="avatar" class="w-
|
|
44
|
-
<mds-text typography="h6"
|
|
45
|
-
<mds-text typography="caption" class="text-tone-neutral-04
|
|
41
|
+
<footer slot="bottom" class="p-800 max-w-lg flex gap-400 text-tone-neutral-02 border-t border-solid border-0 border-tone-neutral-09">
|
|
42
|
+
<mds-author class="flex-grow">
|
|
43
|
+
<mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="/avatar-01-200x200.jpeg"/>
|
|
44
|
+
<mds-text typography="h6">{ fullName }</mds-text>
|
|
45
|
+
<mds-text typography="caption" class="text-tone-neutral-04">{ email }</mds-text>
|
|
46
46
|
</mds-author>
|
|
47
|
-
<mds-button icon="mdi/dots-vertical"
|
|
47
|
+
<mds-button icon="mdi/dots-vertical" variant="light"></mds-button>
|
|
48
48
|
</footer>
|
|
49
49
|
</mds-modal>
|
|
50
50
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
interface FileExtenstion {
|
|
2
|
+
[key: string]: ExtensionInfo
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface ExtensionInfo {
|
|
6
|
+
preview?: boolean
|
|
7
|
+
format: string
|
|
8
|
+
description: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const fileExtensionsDictionary: FileExtenstion = {
|
|
12
|
+
'7z': { format: 'archive', description: 'Archivio compresso' },
|
|
13
|
+
ace: { format: 'archive', description: 'Archivio compresso' },
|
|
14
|
+
ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
|
|
15
|
+
dart: { format: 'code', description: 'Dart' },
|
|
16
|
+
db: { format: 'data', description: 'File di database' },
|
|
17
|
+
default: { format: 'attachment', description: 'Formato sconosciuto' },
|
|
18
|
+
dmg: { format: 'executable', description: 'Apple Disk Image' },
|
|
19
|
+
doc: { format: 'text', description: 'Documento Microsoft Word' },
|
|
20
|
+
docm: { format: 'text', description: 'Documento Microsoft Word' },
|
|
21
|
+
docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
|
|
22
|
+
eml: { format: 'email', description: 'E-mail di posta elettronica' },
|
|
23
|
+
eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
|
|
24
|
+
exe: { format: 'executable', description: 'File eseguibile Windows' },
|
|
25
|
+
flac: { format: 'audio', description: 'Audio non compresso' },
|
|
26
|
+
gif: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
27
|
+
htm: { format: 'markup', description: 'Pagina web' },
|
|
28
|
+
heic: { format: 'image', description: 'High Efficiency Image File Format' },
|
|
29
|
+
html: { format: 'markup', description: 'Pagina web' },
|
|
30
|
+
jpe: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
31
|
+
jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
32
|
+
jpg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
33
|
+
js: { format: 'code', description: 'JavaScript' },
|
|
34
|
+
json: { format: 'data', description: 'JavaScript Object Notation' },
|
|
35
|
+
jsx: { format: 'code', description: 'JavaScript' },
|
|
36
|
+
m2v: { format: 'video', description: 'Filmato SD' },
|
|
37
|
+
mp2: { format: 'audio', description: 'Audio compresso' },
|
|
38
|
+
mp3: { format: 'audio', description: 'Audio compresso' },
|
|
39
|
+
mp4: { format: 'video', description: 'Filmato HD' },
|
|
40
|
+
mp4v: { format: 'video', description: 'Filmato HD' },
|
|
41
|
+
mpeg: { format: 'video', description: 'Filmato SD' },
|
|
42
|
+
mpg4: { format: 'video', description: 'Filmato SD' },
|
|
43
|
+
mpg: { format: 'video', description: 'Filmato SD' },
|
|
44
|
+
mpga: { format: 'audio', description: 'Audio compresso' },
|
|
45
|
+
odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
|
|
46
|
+
ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
|
|
47
|
+
odt: { format: 'text', description: 'File di testo LibreOffice' },
|
|
48
|
+
pdf: { format: 'document', description: 'Documento Adobe' },
|
|
49
|
+
php: { format: 'code', description: 'Hypertext Preprocessor' },
|
|
50
|
+
png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
|
|
51
|
+
ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
|
|
52
|
+
rar: { format: 'archive', description: 'Archivio compresso' },
|
|
53
|
+
rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
|
|
54
|
+
sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
|
|
55
|
+
shtml: { format: 'markup', description: 'Pagina web' },
|
|
56
|
+
svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
|
|
57
|
+
tar: { format: 'archive', description: 'Archivio non compresso' },
|
|
58
|
+
tiff: { format: 'image', description: 'Tag Image File Format' },
|
|
59
|
+
ts: { format: 'code', description: 'TypeScript' },
|
|
60
|
+
tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
|
|
61
|
+
txt: { format: 'text', description: 'Documento di testo non formattato' },
|
|
62
|
+
wav: { format: 'audio', description: 'Audio non compresso' },
|
|
63
|
+
webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
|
|
64
|
+
xar: { format: 'archive', description: 'Archivio compresso' },
|
|
65
|
+
xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
66
|
+
xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
67
|
+
zip: { format: 'archive', description: 'Archivio compresso' },
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const genericMimeToExt: Map<string, string[]> = new Map([
|
|
71
|
+
['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
|
|
72
|
+
['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
|
|
73
|
+
['video', ['.mv2', '.mp4', '.mp4v', '.mpeg', '.mpg4', '.mpg']],
|
|
74
|
+
])
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
FileExtenstion,
|
|
78
|
+
ExtensionInfo,
|
|
79
|
+
fileExtensionsDictionary,
|
|
80
|
+
genericMimeToExt,
|
|
81
|
+
}
|
package/src/dictionary/icon.ts
CHANGED
|
@@ -2,8 +2,14 @@ import jsonIconsDictionary from '../fixtures/icons.json'
|
|
|
2
2
|
import jsonMggIconsDictionary from '../fixtures/iconsauce.json'
|
|
3
3
|
const iconsDictionary = jsonIconsDictionary
|
|
4
4
|
const mggIconsDictionary = jsonMggIconsDictionary
|
|
5
|
+
const svgIconsDictionary = [
|
|
6
|
+
`${location.origin}/svg/mi/baseline/email.svg`,
|
|
7
|
+
'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Im0yMzMtODAgNjUtMjgxTDgwLTU1MGwyODgtMjUgMTEyLTI2NSAxMTIgMjY1IDI4OCAyNS0yMTggMTg5IDY1IDI4MS0yNDctMTQ5TDIzMy04MFoiLz48L3N2Zz4=',
|
|
8
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6s-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8s-3.58-8-8-8z"/></svg>',
|
|
9
|
+
]
|
|
5
10
|
|
|
6
11
|
export {
|
|
7
12
|
iconsDictionary,
|
|
8
13
|
mggIconsDictionary,
|
|
14
|
+
svgIconsDictionary,
|
|
9
15
|
}
|
|
@@ -39,6 +39,24 @@ const themeFullVariantDictionary = [
|
|
|
39
39
|
'yellow',
|
|
40
40
|
]
|
|
41
41
|
|
|
42
|
+
const themeFullVariantAvatarDictionary = [
|
|
43
|
+
'amaranth',
|
|
44
|
+
'aqua',
|
|
45
|
+
'blue',
|
|
46
|
+
'error',
|
|
47
|
+
'green',
|
|
48
|
+
'info',
|
|
49
|
+
'lime',
|
|
50
|
+
'orange',
|
|
51
|
+
'orchid',
|
|
52
|
+
'primary',
|
|
53
|
+
'sky',
|
|
54
|
+
'success',
|
|
55
|
+
'violet',
|
|
56
|
+
'warning',
|
|
57
|
+
'yellow',
|
|
58
|
+
]
|
|
59
|
+
|
|
42
60
|
const themeLabelVariantDictionary = [
|
|
43
61
|
'amaranth',
|
|
44
62
|
'aqua',
|
|
@@ -80,6 +98,7 @@ const toneMinimalVariantDictionary = [
|
|
|
80
98
|
]
|
|
81
99
|
|
|
82
100
|
export {
|
|
101
|
+
themeFullVariantAvatarDictionary,
|
|
83
102
|
themeFullVariantDictionary,
|
|
84
103
|
themeLabelVariantDictionary,
|
|
85
104
|
themeLuminanceVariantDictionary,
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const filesList = [
|
|
2
|
+
'alarm_circuit_plastic.eps',
|
|
3
|
+
'awesome_orchestration.png',
|
|
4
|
+
'b2c_tan_sports.svg',
|
|
5
|
+
'bedfordshire_iceland_identity.txt',
|
|
6
|
+
'books_monetize_arizona.htm',
|
|
7
|
+
'brand.shtml',
|
|
8
|
+
'brunei_logistical.eml',
|
|
9
|
+
'buckinghamshire_macao.jpg',
|
|
10
|
+
'calculating.json',
|
|
11
|
+
'complexity_deposit.mpg',
|
|
12
|
+
'compressing_black_colorado.ods',
|
|
13
|
+
'connect_local_visualize.pdf',
|
|
14
|
+
'copying.default',
|
|
15
|
+
'explicit.mp2',
|
|
16
|
+
'fish.php',
|
|
17
|
+
'flexibility_auto_money.html',
|
|
18
|
+
'foreground_overriding.ai',
|
|
19
|
+
'forge_face.ts',
|
|
20
|
+
'forges.doc',
|
|
21
|
+
'frozen_haptic.7z',
|
|
22
|
+
'gorgeous_manager_savings.ppt',
|
|
23
|
+
'graphic_frozen_bedfordshire.tar',
|
|
24
|
+
'hdd_navigate_panama.xlsx',
|
|
25
|
+
'https://i2.wp.com/clipart.info/images/ccovers/1495750818Apple-PNG-Clip-Art.png',
|
|
26
|
+
'impactful_alarm_handmade.mpeg',
|
|
27
|
+
'initiatives_group.gif',
|
|
28
|
+
'intelligent_radical.jpe',
|
|
29
|
+
'interface_bedfordshire_solid.m2v',
|
|
30
|
+
'iowa_installation.jpeg',
|
|
31
|
+
'liaison_panel_central.flac',
|
|
32
|
+
'matrix_black_hat.db',
|
|
33
|
+
'metrics_lempira_account.xls',
|
|
34
|
+
'monitor.js',
|
|
35
|
+
'nebraska.mp4',
|
|
36
|
+
'needs_based_solid.odp',
|
|
37
|
+
'officer_somalia.docm',
|
|
38
|
+
'open_source.webp',
|
|
39
|
+
'open_source_gorgeous.sass',
|
|
40
|
+
'optimization_radical.mp3',
|
|
41
|
+
'ports_copy_granite.mpga',
|
|
42
|
+
'pound.rtf',
|
|
43
|
+
'protocol_designer.dmg',
|
|
44
|
+
'reduced_regional_greenland.mp4v',
|
|
45
|
+
'revolutionize.mpg4',
|
|
46
|
+
'rss_systematic_avon.exe',
|
|
47
|
+
'salad_compressing.odt',
|
|
48
|
+
'sky_marketing.ace',
|
|
49
|
+
'synergistic.wav',
|
|
50
|
+
'this_is_an_extensionless_file',
|
|
51
|
+
'tuna_table_fall.zip',
|
|
52
|
+
'unbranded.rar',
|
|
53
|
+
'upgradable_gold.docx',
|
|
54
|
+
'wisconsin_bypassing_small.xar',
|
|
55
|
+
'wooden.jsx',
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
filesList,
|
|
60
|
+
}
|
package/src/fixtures/icons.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"mdi/delete",
|
|
7
7
|
"mdi/dots-vertical",
|
|
8
8
|
"mdi/email",
|
|
9
|
+
"mdi/file-document-remove-outline",
|
|
9
10
|
"mdi/harddisk",
|
|
10
11
|
"mdi/map-marker",
|
|
11
12
|
"mdi/replay",
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
"mgg/action-show-right-side",
|
|
22
23
|
"mgg/action-show-sidebar-left",
|
|
23
24
|
"mgg/action-show-sidebar-right",
|
|
25
|
+
"mgg/activation-key",
|
|
24
26
|
"mgg/activity-list",
|
|
25
27
|
"mgg/add-document-settings",
|
|
26
28
|
"mgg/additional-contents",
|
|
@@ -227,6 +229,7 @@
|
|
|
227
229
|
"mgg/todo-running-completed",
|
|
228
230
|
"mgg/todo-suspended",
|
|
229
231
|
"mgg/touchpoint-laptop-info",
|
|
232
|
+
"mgg/touchpoint-laptop-search",
|
|
230
233
|
"mgg/traffic-cone",
|
|
231
234
|
"mgg/trending-down",
|
|
232
235
|
"mgg/tribute",
|
|
@@ -239,20 +242,24 @@
|
|
|
239
242
|
"mgg/user-signed-out",
|
|
240
243
|
"mgg/view-chart-gantt",
|
|
241
244
|
"mgg/view-side-by-side",
|
|
245
|
+
"mgg/warning-superscript",
|
|
242
246
|
"mgg/work-book",
|
|
243
247
|
"mi/baseline/account-balance",
|
|
244
248
|
"mi/baseline/account-balance-wallet",
|
|
245
249
|
"mi/baseline/add",
|
|
250
|
+
"mi/baseline/add-circle",
|
|
246
251
|
"mi/baseline/adobe",
|
|
247
252
|
"mi/baseline/agriculture",
|
|
248
253
|
"mi/baseline/arrow-back",
|
|
249
254
|
"mi/baseline/arrow-forward",
|
|
250
255
|
"mi/baseline/attach-file",
|
|
256
|
+
"mi/baseline/attachment",
|
|
251
257
|
"mi/baseline/audiotrack",
|
|
252
258
|
"mi/baseline/badge",
|
|
253
259
|
"mi/baseline/book",
|
|
254
260
|
"mi/baseline/border-all",
|
|
255
261
|
"mi/baseline/cancel",
|
|
262
|
+
"mi/baseline/category",
|
|
256
263
|
"mi/baseline/check-box",
|
|
257
264
|
"mi/baseline/check-box-outline-blank",
|
|
258
265
|
"mi/baseline/check-circle",
|
|
@@ -265,6 +272,7 @@
|
|
|
265
272
|
"mi/baseline/email",
|
|
266
273
|
"mi/baseline/error",
|
|
267
274
|
"mi/baseline/explore",
|
|
275
|
+
"mi/baseline/file-download-done",
|
|
268
276
|
"mi/baseline/folder-zip",
|
|
269
277
|
"mi/baseline/groups",
|
|
270
278
|
"mi/baseline/horizontal-rule",
|
|
@@ -284,6 +292,7 @@
|
|
|
284
292
|
"mi/baseline/radio-button-checked",
|
|
285
293
|
"mi/baseline/radio-button-unchecked",
|
|
286
294
|
"mi/baseline/remove",
|
|
295
|
+
"mi/baseline/remove-circle",
|
|
287
296
|
"mi/baseline/route",
|
|
288
297
|
"mi/baseline/settings",
|
|
289
298
|
"mi/baseline/terminal",
|
|
@@ -295,6 +304,7 @@
|
|
|
295
304
|
"mi/baseline/web",
|
|
296
305
|
"mi/baseline/wysiwyg",
|
|
297
306
|
"mi/outline/help-outline",
|
|
307
|
+
"mi/outline/schedule",
|
|
298
308
|
"mi/round/arrow-circle-down",
|
|
299
309
|
"mi/round/email",
|
|
300
310
|
"mi/round/groups",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"mgg/action-show-right-side",
|
|
11
11
|
"mgg/action-show-sidebar-left",
|
|
12
12
|
"mgg/action-show-sidebar-right",
|
|
13
|
+
"mgg/activation-key",
|
|
13
14
|
"mgg/activity-list",
|
|
14
15
|
"mgg/add-document-settings",
|
|
15
16
|
"mgg/additional-contents",
|
|
@@ -216,6 +217,7 @@
|
|
|
216
217
|
"mgg/todo-suspended",
|
|
217
218
|
"mgg/todo",
|
|
218
219
|
"mgg/touchpoint-laptop-info",
|
|
220
|
+
"mgg/touchpoint-laptop-search",
|
|
219
221
|
"mgg/traffic-cone",
|
|
220
222
|
"mgg/trending-down",
|
|
221
223
|
"mgg/tribute",
|
|
@@ -228,5 +230,6 @@
|
|
|
228
230
|
"mgg/user-signed-out",
|
|
229
231
|
"mgg/view-chart-gantt",
|
|
230
232
|
"mgg/view-side-by-side",
|
|
233
|
+
"mgg/warning-superscript",
|
|
231
234
|
"mgg/work-book"
|
|
232
235
|
]
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type ExtensionSuffixType =
|
|
2
|
+
| '7z'
|
|
3
|
+
| 'ace'
|
|
4
|
+
| 'ai'
|
|
5
|
+
| 'db'
|
|
6
|
+
| 'default'
|
|
7
|
+
| 'dmg'
|
|
8
|
+
| 'doc'
|
|
9
|
+
| 'docm'
|
|
10
|
+
| 'docx'
|
|
11
|
+
| 'eml'
|
|
12
|
+
| 'eps'
|
|
13
|
+
| 'exe'
|
|
14
|
+
| 'flac'
|
|
15
|
+
| 'gif'
|
|
16
|
+
| 'heic'
|
|
17
|
+
| 'htm'
|
|
18
|
+
| 'html'
|
|
19
|
+
| 'jpe'
|
|
20
|
+
| 'jpeg'
|
|
21
|
+
| 'jpg'
|
|
22
|
+
| 'js'
|
|
23
|
+
| 'json'
|
|
24
|
+
| 'jsx'
|
|
25
|
+
| 'm2v'
|
|
26
|
+
| 'mp2'
|
|
27
|
+
| 'mp3'
|
|
28
|
+
| 'mp4'
|
|
29
|
+
| 'mp4v'
|
|
30
|
+
| 'mpeg'
|
|
31
|
+
| 'mpg'
|
|
32
|
+
| 'mpg4'
|
|
33
|
+
| 'mpga'
|
|
34
|
+
| 'odp'
|
|
35
|
+
| 'ods'
|
|
36
|
+
| 'odt'
|
|
37
|
+
| 'pdf'
|
|
38
|
+
| 'php'
|
|
39
|
+
| 'png'
|
|
40
|
+
| 'ppt'
|
|
41
|
+
| 'rar'
|
|
42
|
+
| 'rtf'
|
|
43
|
+
| 'sass'
|
|
44
|
+
| 'shtml'
|
|
45
|
+
| 'svg'
|
|
46
|
+
| 'tar'
|
|
47
|
+
| 'tiff'
|
|
48
|
+
| 'ts'
|
|
49
|
+
| 'txt'
|
|
50
|
+
| 'wav'
|
|
51
|
+
| 'webp'
|
|
52
|
+
| 'xar'
|
|
53
|
+
| 'xls'
|
|
54
|
+
| 'xlsx'
|
|
55
|
+
| 'zip'
|
package/src/type/text.ts
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import baselineFolderZip from '@icon/mi/baseline/folder-zip.svg'
|
|
2
|
+
import baselineAttachFile from '@icon/mi/baseline/attach-file.svg'
|
|
3
|
+
import baselineAudiotrack from '@icon/mi/baseline/audiotrack.svg'
|
|
4
|
+
import baselineTerminal from '@icon/mi/baseline/terminal.svg'
|
|
5
|
+
import baselineInsertDriveFile from '@icon/mi/baseline/insert-drive-file.svg'
|
|
6
|
+
import mdiHardDisk from '@icon/mdi/harddisk.svg'
|
|
7
|
+
|
|
8
|
+
interface FileFormatVariant {
|
|
9
|
+
color: string
|
|
10
|
+
icon: string
|
|
11
|
+
iconBackground: string
|
|
12
|
+
variant: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface FileFormatVariants {
|
|
16
|
+
[key: string]: FileFormatVariant
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const fileFormatsVariant: FileFormatVariants = {
|
|
20
|
+
archive: {
|
|
21
|
+
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
|
22
|
+
icon: baselineFolderZip,
|
|
23
|
+
iconBackground: 'bg-label-amaranth-10',
|
|
24
|
+
variant: 'amaranth',
|
|
25
|
+
},
|
|
26
|
+
attachment: {
|
|
27
|
+
color: 'fill-tone-neutral-04 text-tone-neutral-04',
|
|
28
|
+
icon: baselineAttachFile,
|
|
29
|
+
iconBackground: 'bg-tone-neutral-10',
|
|
30
|
+
variant: 'dark',
|
|
31
|
+
},
|
|
32
|
+
audio: {
|
|
33
|
+
color: 'fill-label-violet-04 text-label-violet-04',
|
|
34
|
+
icon: baselineAudiotrack,
|
|
35
|
+
iconBackground: 'bg-label-violet-10',
|
|
36
|
+
variant: 'violet',
|
|
37
|
+
},
|
|
38
|
+
code: {
|
|
39
|
+
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
40
|
+
icon: baselineTerminal,
|
|
41
|
+
iconBackground: 'bg-label-yellow-10',
|
|
42
|
+
variant: 'yellow',
|
|
43
|
+
},
|
|
44
|
+
data: {
|
|
45
|
+
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
46
|
+
icon: mdiHardDisk,
|
|
47
|
+
iconBackground: 'bg-label-yellow-10',
|
|
48
|
+
variant: 'yellow',
|
|
49
|
+
},
|
|
50
|
+
document: {
|
|
51
|
+
color: 'fill-label-orange-04 text-label-orange-04',
|
|
52
|
+
icon: baselineInsertDriveFile,
|
|
53
|
+
iconBackground: 'bg-label-orange-10',
|
|
54
|
+
variant: 'orange',
|
|
55
|
+
},
|
|
56
|
+
email: {
|
|
57
|
+
color: 'fill-label-blue-04 text-label-blue-04',
|
|
58
|
+
icon: 'mi/baseline/email',
|
|
59
|
+
iconBackground: 'bg-label-blue-10',
|
|
60
|
+
variant: 'blue',
|
|
61
|
+
},
|
|
62
|
+
executable: {
|
|
63
|
+
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
|
64
|
+
icon: 'mi/baseline/wysiwyg',
|
|
65
|
+
iconBackground: 'bg-label-amaranth-10',
|
|
66
|
+
variant: 'amaranth',
|
|
67
|
+
},
|
|
68
|
+
image: {
|
|
69
|
+
color: 'fill-label-green-04 text-label-green-04',
|
|
70
|
+
icon: 'mi/baseline/panorama',
|
|
71
|
+
iconBackground: 'bg-label-green-10',
|
|
72
|
+
variant: 'green',
|
|
73
|
+
},
|
|
74
|
+
imageRaster: {
|
|
75
|
+
color: 'fill-label-green-04 text-label-green-04',
|
|
76
|
+
icon: 'mi/baseline/panorama',
|
|
77
|
+
iconBackground: 'bg-label-green-10',
|
|
78
|
+
variant: 'green',
|
|
79
|
+
},
|
|
80
|
+
markup: {
|
|
81
|
+
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
82
|
+
icon: 'mi/baseline/web',
|
|
83
|
+
iconBackground: 'bg-label-yellow-10',
|
|
84
|
+
variant: 'yellow',
|
|
85
|
+
},
|
|
86
|
+
slide: {
|
|
87
|
+
color: 'fill-label-orchid-04 text-label-orchid-04',
|
|
88
|
+
icon: 'mi/baseline/tv',
|
|
89
|
+
iconBackground: 'bg-label-orchid-10',
|
|
90
|
+
variant: 'orchid',
|
|
91
|
+
},
|
|
92
|
+
spreadsheet: {
|
|
93
|
+
color: 'fill-label-lime-04 text-label-lime-04',
|
|
94
|
+
icon: 'mi/baseline/border-all',
|
|
95
|
+
iconBackground: 'bg-label-lime-10',
|
|
96
|
+
variant: 'lime',
|
|
97
|
+
},
|
|
98
|
+
text: {
|
|
99
|
+
color: 'fill-label-blue-04 text-label-blue-04',
|
|
100
|
+
icon: 'mi/baseline/description',
|
|
101
|
+
iconBackground: 'bg-label-blue-10',
|
|
102
|
+
variant: 'blue',
|
|
103
|
+
},
|
|
104
|
+
vectorImage: {
|
|
105
|
+
color: 'fill-label-aqua-04 text-label-aqua-04',
|
|
106
|
+
icon: 'mdi/vector-curve',
|
|
107
|
+
iconBackground: 'bg-label-aqua-10',
|
|
108
|
+
variant: 'aqua',
|
|
109
|
+
},
|
|
110
|
+
vector: {
|
|
111
|
+
color: 'fill-label-aqua-04 text-label-aqua-04',
|
|
112
|
+
icon: 'mdi/vector-curve',
|
|
113
|
+
iconBackground: 'bg-label-aqua-10',
|
|
114
|
+
variant: 'aqua',
|
|
115
|
+
},
|
|
116
|
+
video: {
|
|
117
|
+
color: 'fill-label-violet-04 text-label-violet-04',
|
|
118
|
+
icon: 'mi/baseline/videocam',
|
|
119
|
+
iconBackground: 'bg-label-violet-10',
|
|
120
|
+
variant: 'violet',
|
|
121
|
+
},
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export {
|
|
125
|
+
fileFormatsVariant,
|
|
126
|
+
FileFormatVariant,
|
|
127
|
+
FileFormatVariants,
|
|
128
|
+
}
|
package/src/type/variant.ts
CHANGED
|
@@ -31,6 +31,23 @@ export type ThemeFullVariantType =
|
|
|
31
31
|
| 'warning'
|
|
32
32
|
| 'yellow'
|
|
33
33
|
|
|
34
|
+
export type ThemeFullVariantAvatarType =
|
|
35
|
+
| 'amaranth'
|
|
36
|
+
| 'aqua'
|
|
37
|
+
| 'blue'
|
|
38
|
+
| 'error'
|
|
39
|
+
| 'green'
|
|
40
|
+
| 'info'
|
|
41
|
+
| 'lime'
|
|
42
|
+
| 'orange'
|
|
43
|
+
| 'orchid'
|
|
44
|
+
| 'primary'
|
|
45
|
+
| 'sky'
|
|
46
|
+
| 'success'
|
|
47
|
+
| 'violet'
|
|
48
|
+
| 'warning'
|
|
49
|
+
| 'yellow'
|
|
50
|
+
|
|
34
51
|
export type ThemeLuminanceVariantType =
|
|
35
52
|
| 'dark'
|
|
36
53
|
| 'light'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-
|
|
1
|
+
import{p as e,b as o}from"./p-aff993b4.js";export{s as setNonce}from"./p-aff993b4.js";(()=>{const o=import.meta.url,n={};return""!==o&&(n.resourcesUrl=new URL(".",o).href),e(n)})().then((e=>o([["p-83ebb238",[[1,"mds-modal",{opened:[1540],position:[1537],stateOpened:[32]},[[4,"mdsModalClose","onModalCloseListener"],[4,"mdsBannerClose","onBannerCloseListener"]],{position:["positionChange"],opened:["openedChange"]}]]]],e)));
|
package/www/build/mds-modal.js
CHANGED
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-5cf75b06.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var n=function(r,e){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))n[e]=r[e]};return n(r,e)};return function(r,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(n,r,e,t){function i(n){return n instanceof e?n:new e((function(r){r(n)}))}return new(e||(e=Promise))((function(e,a){function u(n){try{o(t.next(n))}catch(n){a(n)}}function f(n){try{o(t["throw"](n))}catch(n){a(n)}}function o(n){n.done?e(n.value):i(n.value).then(u,f)}o((t=t.apply(n,r||[])).next())}))};var __generator=this&&this.__generator||function(n,r){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(n){return function(r){return o([n,r])}}function o(f){if(t)throw new TypeError("Generator is already executing.");while(u&&(u=0,f[0]&&(e=0)),e)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:e.label++;return{value:f[1],done:false};case 5:e.label++;i=f[1];f=[0];continue;case 7:f=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){e=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){e.label=f[1];break}if(f[0]===6&&e.label<a[1]){e.label=a[1];a=f;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(f);break}if(a[2])e.ops.pop();e.trys.pop();continue}f=r.call(n,e)}catch(n){f=[6,n];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,r,e){if(e||arguments.length===2)for(var t=0,i=r.length,a;t<i;t++){if(a||!(t in r)){if(!a)a=Array.prototype.slice.call(r,0,t);a[t]=r[t]}}return n.concat(a||Array.prototype.slice.call(r))};System.register([],(function(n,r){"use strict";return{execute:function(){var e=this;var t="mds-modal";var i;var a;var u=false;var f=false;var o=function(n,r){if(r===void 0){r=""}{return function(){return}}};var v=function(n,r){{return function(){return}}};var l="{visibility:hidden}[hydrated]{visibility:inherit}";var c="slot-fb{display:contents}slot-fb[hidden]{display:none}";var s={};var d=function(n){return n!=null};var h=function(n){n=typeof n;return n==="object"||n==="function"};function y(n){var r,e,t;return(t=(e=(r=n.head)===null||r===void 0?void 0:r.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&t!==void 0?t:undefined}var p=n("h",(function(n,r){var e=[];for(var t=2;t<arguments.length;t++){e[t-2]=arguments[t]}var i=null;var a=false;var u=false;var f=[];var o=function(r){for(var e=0;e<r.length;e++){i=r[e];if(Array.isArray(i)){o(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof n!=="function"&&!h(i)){i=String(i)}if(a&&u){f[f.length-1].t+=i}else{f.push(a?w(null,i):i)}u=a}}};o(e);if(r){{var v=r.className||r.class;if(v){r.class=typeof v!=="object"?v:Object.keys(v).filter((function(n){return v[n]})).join(" ")}}}var l=w(n,null);l.i=r;if(f.length>0){l.u=f}return l}));var w=function(n,r){var e={o:0,v:n,t:r,l:null,u:null};{e.i=null}return e};var b=n("H",{});var m=function(n){return n&&n.v===b};var _=function(n,r){if(n!=null&&!h(n)){if(r&4){return n==="false"?false:n===""||!!n}if(r&1){return String(n)}return n}return n};var $=n("g",(function(n){return yn(n).$hostElement$}));var g=n("c",(function(n,r,e){var t=$(n);return{emit:function(n){return S(t,r,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:n})}}}));var S=function(n,r,e){var t=kn.ce(r,e);n.dispatchEvent(t);return t};var j=new WeakMap;var k=function(n,r,e){var t=gn.get(n);if(On&&e){t=t||new CSSStyleSheet;if(typeof t==="string"){t=r}else{t.replaceSync(r)}}else{t=r}gn.set(n,t)};var A=function(n,r,e){var t;var i=x(r);var a=gn.get(i);n=n.nodeType===11?n:jn;if(a){if(typeof a==="string"){n=n.head||n;var u=j.get(n);var f=void 0;if(!u){j.set(n,u=new Set)}if(!u.has(i)){{f=jn.createElement("style");f.innerHTML=a;var o=(t=kn.h)!==null&&t!==void 0?t:y(jn);if(o!=null){f.setAttribute("nonce",o)}n.insertBefore(f,n.querySelector("link"))}if(r.o&4){f.innerHTML+=c}if(u){u.add(i)}}}else if(!n.adoptedStyleSheets.includes(a)){n.adoptedStyleSheets=__spreadArray(__spreadArray([],n.adoptedStyleSheets,true),[a],false)}}return i};var O=function(n){var r=n.p;var e=n.$hostElement$;var t=r.o;var i=o("attachStyles",r.m);var a=A(e.shadowRoot?e.shadowRoot:e.getRootNode(),r);if(t&10){e["s-sc"]=a;e.classList.add(a+"-h")}i()};var x=function(n,r){return"sc-"+n.m};var C=function(n,r,e,t,i,a){if(e!==t){var u=bn(n,r);var f=r.toLowerCase();if(r==="class"){var o=n.classList;var v=E(e);var l=E(t);o.remove.apply(o,v.filter((function(n){return n&&!l.includes(n)})));o.add.apply(o,l.filter((function(n){return n&&!v.includes(n)})))}else if(!u&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(bn(Sn,f)){r=f.slice(2)}else{r=f[2]+r.slice(3)}if(e||t){var c=r.endsWith(P);r=r.replace(T,"");if(e){kn.rel(n,r,e,c)}if(t){kn.ael(n,r,t,c)}}}else{var s=h(t);if((u||s&&t!==null)&&!i){try{if(!n.tagName.includes("-")){var d=t==null?"":t;if(r==="list"){u=false}else if(e==null||n[r]!=d){n[r]=d}}else{n[r]=t}}catch(n){}}if(t==null||t===false){if(t!==false||n.getAttribute(r)===""){{n.removeAttribute(r)}}}else if((!u||a&4||i)&&!s){t=t===true?"":t;{n.setAttribute(r,t)}}}}};var M=/\s/;var E=function(n){return!n?[]:n.split(M)};var P="Capture";var T=new RegExp(P+"$");var R=function(n,r,e,t){var i=r.l.nodeType===11&&r.l.host?r.l.host:r.l;var a=n&&n.i||s;var u=r.i||s;{for(t in a){if(!(t in u)){C(i,t,a[t],undefined,e,r.o)}}}for(t in u){C(i,t,a[t],u[t],e,r.o)}};var U=function(n,r,e,t){var f=r.u[e];var o=0;var v;var l;if(f.t!==null){v=f.l=jn.createTextNode(f.t)}else{v=f.l=jn.createElement(f.v);{R(null,f,u)}if(d(i)&&v["s-si"]!==i){v.classList.add(v["s-si"]=i)}if(f.u){for(o=0;o<f.u.length;++o){l=U(n,f,o);if(l){v.appendChild(l)}}}}v["s-hn"]=a;return v};var W=function(n,r,e,t,i,u){var f=n;var o;if(f.shadowRoot&&f.tagName===a){f=f.shadowRoot}for(;i<=u;++i){if(t[i]){o=U(null,e,i);if(o){t[i].l=o;f.insertBefore(o,r)}}}};var L=function(n,r,e){for(var t=r;t<=e;++t){var i=n[t];if(i){var a=i.l;if(a){a.remove()}}}};var N=function(n,r,e,t,i){if(i===void 0){i=false}var a=0;var u=0;var f=r.length-1;var o=r[0];var v=r[f];var l=t.length-1;var c=t[0];var s=t[l];var d;while(a<=f&&u<=l){if(o==null){o=r[++a]}else if(v==null){v=r[--f]}else if(c==null){c=t[++u]}else if(s==null){s=t[--l]}else if(H(o,c,i)){q(o,c,i);o=r[++a];c=t[++u]}else if(H(v,s,i)){q(v,s,i);v=r[--f];s=t[--l]}else if(H(o,s,i)){q(o,s,i);n.insertBefore(o.l,v.l.nextSibling);o=r[++a];s=t[--l]}else if(H(v,c,i)){q(v,c,i);n.insertBefore(v.l,o.l);v=r[--f];c=t[++u]}else{{d=U(r&&r[u],e,u);c=t[++u]}if(d){{o.l.parentNode.insertBefore(d,o.l)}}}}if(a>f){W(n,t[l+1]==null?null:t[l+1].l,e,t,u,l)}else if(u>l){L(r,a,f)}};var H=function(n,r,e){if(e===void 0){e=false}if(n.v===r.v){return true}return false};var q=function(n,r,e){if(e===void 0){e=false}var t=r.l=n.l;var i=n.u;var a=r.u;var f=r.v;var o=r.t;if(o===null){{if(f==="slot");else{R(n,r,u)}}if(i!==null&&a!==null){N(t,i,r,a,e)}else if(a!==null){if(n.t!==null){t.textContent=""}W(t,null,r,a,0,a.length-1)}else if(i!==null){L(i,0,i.length-1)}}else if(n.t!==o){t.data=o}};var D=function(n,r,e){if(e===void 0){e=false}var t=n.$hostElement$;var u=n.p;var f=n._||w(null,null);var o=m(r)?r:p(null,null,r);a=t.tagName;if(u.$){o.i=o.i||{};u.$.map((function(n){var r=n[0],e=n[1];return o.i[e]=t[r]}))}if(e&&o.i){for(var v=0,l=Object.keys(o.i);v<l.length;v++){var c=l[v];if(t.hasAttribute(c)&&!["key","ref","style","class"].includes(c)){o.i[c]=t[c]}}}o.v=null;o.o|=4;n._=o;o.l=f.l=t.shadowRoot||t;{i=t["s-sc"]}q(f,o,e)};var F=function(n,r){if(r&&!n.S&&r["s-p"]){r["s-p"].push(new Promise((function(r){return n.S=r})))}};var G=function(n,r){{n.o|=16}if(n.o&4){n.o|=512;return}F(n,n.j);var e=function(){return I(n,r)};return Rn(e)};var I=function(n,r){var e=o("scheduleUpdate",n.p.m);var t=n.k;var i;if(r){{n.o|=256;if(n.A){n.A.map((function(n){var r=n[0],e=n[1];return X(t,r,e)}));n.A=undefined}}{i=X(t,"componentWillLoad")}}{i=V(i,(function(){return X(t,"componentWillRender")}))}e();return V(i,(function(){return B(n,t,r)}))};var V=function(n,r){return z(n)?n.then(r):r()};var z=function(n){return n instanceof Promise||n&&n.then&&typeof n.then==="function"};var B=function(n,r,t){return __awaiter(e,void 0,void 0,(function(){var e,i,a,u,f,v,l;return __generator(this,(function(c){i=n.$hostElement$;a=o("update",n.p.m);u=i["s-rc"];if(t){O(n)}f=o("render",n.p.m);{J(n,r,i,t)}if(u){u.map((function(n){return n()}));i["s-rc"]=undefined}f();a();{v=(e=i["s-p"])!==null&&e!==void 0?e:[];l=function(){return K(n)};if(v.length===0){l()}else{Promise.all(v).then(l);n.o|=4;v.length=0}}return[2]}))}))};var J=function(n,r,e,t){try{r=r.render();{n.o&=~16}{n.o|=2}{{{D(n,r,t)}}}}catch(r){mn(r,n.$hostElement$)}return null};var K=function(n){var r=n.p.m;var e=n.$hostElement$;var t=o("postUpdate",r);var i=n.k;var a=n.j;{X(i,"componentDidRender")}if(!(n.o&64)){n.o|=64;{Y(e)}t();{n.O(e);if(!a){Q()}}}else{t()}{if(n.S){n.S();n.S=undefined}if(n.o&512){Tn((function(){return G(n,false)}))}n.o&=~(4|512)}};var Q=function(n){{Y(jn.documentElement)}Tn((function(){return S(Sn,"appload",{detail:{namespace:t}})}))};var X=function(n,r,e){if(n&&n[r]){try{return n[r](e)}catch(n){mn(n)}}return undefined};var Y=function(n){return n.setAttribute("hydrated","")};var Z=function(n,r){return yn(n).C.get(r)};var nn=function(n,r,e,t){var i=yn(n);var a=i.$hostElement$;var u=i.C.get(r);var f=i.o;var o=i.k;e=_(e,t.M[r][0]);var v=Number.isNaN(u)&&Number.isNaN(e);var l=e!==u&&!v;if((!(f&8)||u===undefined)&&l){i.C.set(r,e);if(o){if(t.P&&f&128){var c=t.P[r];if(c){c.map((function(n){try{o[n](e,u,r)}catch(n){mn(n,a)}}))}}if((f&(2|16))===2){G(i,false)}}}};var rn=function(n,r,e){var t;var i=n.prototype;if(r.M){if(n.watchers){r.P=n.watchers}var a=Object.entries(r.M);a.map((function(n){var t=n[0],a=n[1][0];if(a&31||e&2&&a&32){Object.defineProperty(i,t,{get:function(){return Z(this,t)},set:function(n){nn(this,t,n,r)},configurable:true,enumerable:true})}}));if(e&1){var u=new Map;i.attributeChangedCallback=function(n,e,t){var a=this;kn.jmp((function(){var f;var o=u.get(n);if(a.hasOwnProperty(o)){t=a[o];delete a[o]}else if(i.hasOwnProperty(o)&&typeof a[o]==="number"&&a[o]==t){return}else if(o==null){var v=yn(a);var l=v===null||v===void 0?void 0:v.o;if(l&&!(l&8)&&l&128&&t!==e){var c=v.k;var s=(f=r.P)===null||f===void 0?void 0:f[n];s===null||s===void 0?void 0:s.forEach((function(r){if(c[r]!=null){c[r].call(c,t,e,n)}}))}return}a[o]=t===null&&typeof a[o]==="boolean"?false:t}))};n.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=r.P)!==null&&t!==void 0?t:{}),true),a.filter((function(n){var r=n[0],e=n[1];return e[0]&15})).map((function(n){var e=n[0],t=n[1];var i;var a=t[1]||e;u.set(a,e);if(t[0]&512){(i=r.$)===null||i===void 0?void 0:i.push([e,a])}return a})),true)))}}return n};var en=function(n,r,t,i){return __awaiter(e,void 0,void 0,(function(){var n,e,i,a,u,f,l,c;return __generator(this,(function(s){switch(s.label){case 0:if(!((r.o&32)===0))return[3,3];r.o|=32;n=$n(t);if(!n.then)return[3,2];e=v();return[4,n];case 1:n=s.sent();e();s.label=2;case 2:if(!n.isProxied){{t.P=n.watchers}rn(n,t,2);n.isProxied=true}i=o("createInstance",t.m);{r.o|=8}try{new n(r)}catch(n){mn(n)}{r.o&=~8}{r.o|=128}i();if(n.style){a=n.style;u=x(t);if(!gn.has(u)){f=o("registerStyles",t.m);k(u,a,!!(t.o&1));f()}}s.label=3;case 3:l=r.j;c=function(){return G(r,true)};if(l&&l["s-rc"]){l["s-rc"].push(c)}else{c()}return[2]}}))}))};var tn=function(n){};var an=function(n){if((kn.o&1)===0){var r=yn(n);var e=r.p;var t=o("connectedCallback",e.m);if(!(r.o&1)){r.o|=1;{var i=n;while(i=i.parentNode||i.host){if(i["s-p"]){F(r,r.j=i);break}}}if(e.M){Object.entries(e.M).map((function(r){var e=r[0],t=r[1][0];if(t&31&&n.hasOwnProperty(e)){var i=n[e];delete n[e];n[e]=i}}))}{en(n,r,e)}}else{vn(n,r,e.T);if(r===null||r===void 0?void 0:r.k);else if(r===null||r===void 0?void 0:r.R){r.R.then((function(){return tn()}))}}t()}};var un=function(n){{X(n,"disconnectedCallback")}};var fn=function(n){return __awaiter(e,void 0,void 0,(function(){var r;return __generator(this,(function(e){if((kn.o&1)===0){r=yn(n);{if(r.U){r.U.map((function(n){return n()}));r.U=undefined}}if(r===null||r===void 0?void 0:r.k){un(r.k)}else if(r===null||r===void 0?void 0:r.R){r.R.then((function(){return un(r.k)}))}}return[2]}))}))};var on=n("b",(function(n,r){if(r===void 0){r={}}var e;var t=o();var i=[];var a=r.exclude||[];var u=Sn.customElements;var f=jn.head;var v=f.querySelector("meta[charset]");var s=jn.createElement("style");var d=[];var h;var p=true;Object.assign(kn,r);kn.W=new URL(r.resourcesUrl||"./",jn.baseURI).href;var w=false;n.map((function(n){n[1].map((function(r){var e;var t={o:r[0],m:r[1],M:r[2],T:r[3]};if(t.o&4){w=true}{t.M=r[2]}{t.T=r[3]}{t.$=[]}{t.P=(e=r[4])!==null&&e!==void 0?e:{}}var f=t.m;var o=function(n){__extends(r,n);function r(r){var e=n.call(this,r)||this;r=e;wn(r,t);if(t.o&1){{{r.attachShadow({mode:"open"})}}}return e}r.prototype.connectedCallback=function(){var n=this;if(h){clearTimeout(h);h=null}if(p){d.push(this)}else{kn.jmp((function(){return an(n)}))}};r.prototype.disconnectedCallback=function(){var n=this;kn.jmp((function(){return fn(n)}))};r.prototype.componentOnReady=function(){return yn(this).R};return r}(HTMLElement);t.L=n[0];if(!a.includes(f)&&!u.get(f)){i.push(f);u.define(f,rn(o,t,1))}}))}));if(w){s.innerHTML+=c}{s.innerHTML+=i+l}if(s.innerHTML.length){s.setAttribute("data-styles","");var b=(e=kn.h)!==null&&e!==void 0?e:y(jn);if(b!=null){s.setAttribute("nonce",b)}f.insertBefore(s,v?v.nextSibling:f.firstChild)}p=false;if(d.length){d.map((function(n){return n.connectedCallback()}))}else{{kn.jmp((function(){return h=setTimeout(Q,30)}))}}t()}));var vn=function(n,r,e,t){if(e){e.map((function(e){var t=e[0],i=e[1],a=e[2];var u=cn(n,t);var f=ln(r,a);var o=sn(t);kn.ael(u,i,f,o);(r.U=r.U||[]).push((function(){return kn.rel(u,i,f,o)}))}))}};var ln=function(n,r){return function(e){try{{if(n.o&256){n.k[r](e)}else{(n.A=n.A||[]).push([r,e])}}}catch(n){mn(n)}}};var cn=function(n,r){if(r&4)return jn;return n};var sn=function(n){return(n&2)!==0};var dn=n("s",(function(n){return kn.h=n}));var hn=new WeakMap;var yn=function(n){return hn.get(n)};var pn=n("r",(function(n,r){return hn.set(r.k=n,r)}));var wn=function(n,r){var e={o:0,$hostElement$:n,p:r,C:new Map};{e.R=new Promise((function(n){return e.O=n}));n["s-p"]=[];n["s-rc"]=[]}vn(n,e,r.T);return hn.set(n,e)};var bn=function(n,r){return r in n};var mn=function(n,r){return(0,console.error)(n,r)};var _n=new Map;var $n=function(n,e,t){var i=n.m.replace(/-/g,"_");var a=n.L;var u=_n.get(a);if(u){return u[i]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return r.import("./".concat(a,".entry.js").concat("")).then((function(n){{_n.set(a,n)}return n[i]}),mn)};var gn=new Map;var Sn=typeof window!=="undefined"?window:{};var jn=Sn.document||{head:{}};var kn={o:0,W:"",jmp:function(n){return n()},raf:function(n){return requestAnimationFrame(n)},ael:function(n,r,e,t){return n.addEventListener(r,e,t)},rel:function(n,r,e,t){return n.removeEventListener(r,e,t)},ce:function(n,r){return new CustomEvent(n,r)}};var An=n("p",(function(n){return Promise.resolve(n)}));var On=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(n){}return false}();var xn=[];var Cn=[];var Mn=function(n,r){return function(e){n.push(e);if(!f){f=true;if(r&&kn.o&4){Tn(Pn)}else{kn.raf(Pn)}}}};var En=function(n){for(var r=0;r<n.length;r++){try{n[r](performance.now())}catch(n){mn(n)}}n.length=0};var Pn=function(){En(xn);{En(Cn);if(f=xn.length>0){kn.raf(Pn)}}};var Tn=function(n){return An().then(n)};var Rn=Mn(Cn,true)}}}));
|