@maggioli-design-system/mds-table-row 4.8.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-19c36c53.js → index-41069a63.js} +41 -71
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +896 -8
- package/dist/cjs/mds-table-row.cjs.js +2 -2
- package/dist/collection/common/slot.js +13 -0
- package/dist/collection/components/mds-table-row/mds-table-row.css +31 -16
- package/dist/collection/components/mds-table-row/mds-table-row.js +111 -21
- package/dist/collection/dictionary/animation.js +5 -0
- package/dist/collection/dictionary/file-extensions.js +6 -59
- package/dist/collection/fixtures/filenames.js +62 -1
- package/dist/collection/type/animation.js +1 -0
- package/dist/collection/type/variant-file-format.js +5 -0
- package/dist/components/mds-table-row.js +903 -10
- package/dist/documentation.json +108 -13
- package/dist/esm/{index-a948f479.js → index-b3683315.js} +41 -71
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-table-row.entry.js +896 -8
- package/dist/esm/mds-table-row.js +3 -3
- package/dist/esm-es5/index-b3683315.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +6 -1
- package/dist/esm-es5/mds-table-row.js +1 -1
- package/dist/mds-table-row/mds-table-row.esm.js +1 -1
- package/dist/mds-table-row/mds-table-row.js +1 -1
- package/dist/mds-table-row/p-6e0586ed.system.entry.js +6 -0
- package/dist/mds-table-row/p-883b6082.entry.js +6 -0
- package/dist/mds-table-row/p-94f5e1a3.system.js +2 -0
- package/dist/mds-table-row/p-953317ff.js +2 -0
- package/dist/mds-table-row/p-ca6821e0.system.js +1 -0
- package/dist/stats.json +234 -67
- package/dist/types/common/slot.d.ts +2 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +9 -3
- package/dist/types/components.d.ts +8 -1
- package/dist/types/dictionary/animation.d.ts +2 -0
- package/dist/types/fixtures/filenames.d.ts +62 -1
- package/dist/types/type/animation.d.ts +1 -0
- package/dist/types/type/file-types.d.ts +1 -1
- package/dist/types/type/variant-file-format.d.ts +1 -1
- package/documentation.json +132 -21
- package/package.json +2 -2
- package/readme.md +24 -4
- package/src/common/slot.ts +15 -0
- package/src/components/mds-table-row/css/mds-table-row-actions.css +10 -3
- package/src/components/mds-table-row/css/mds-table-row-interactive.css +6 -0
- package/src/components/mds-table-row/css/mds-table-row-selected.css +5 -0
- package/src/components/mds-table-row/css/mds-table-row-sorted.css +11 -0
- package/src/components/mds-table-row/mds-table-row.css +11 -26
- package/src/components/mds-table-row/mds-table-row.tsx +38 -9
- package/src/components/mds-table-row/meta/locale.el.json +4 -0
- package/src/components/mds-table-row/meta/locale.en.json +4 -0
- package/src/components/mds-table-row/meta/locale.es.json +4 -0
- package/src/components/mds-table-row/meta/locale.it.json +4 -0
- package/src/components/mds-table-row/readme.md +20 -4
- package/src/components.d.ts +8 -1
- package/src/dictionary/animation.ts +8 -0
- package/src/dictionary/file-extensions.ts +6 -60
- package/src/fixtures/filenames.ts +63 -0
- package/src/fixtures/icons.json +1 -0
- package/src/meta/file-format/locale.el.json +26 -21
- package/src/meta/file-format/locale.en.json +26 -21
- package/src/meta/file-format/locale.es.json +26 -21
- package/src/meta/file-format/locale.it.json +26 -21
- package/src/type/animation.ts +3 -0
- package/src/type/file-types.ts +6 -0
- package/src/type/variant-file-format.ts +6 -0
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +1 -1
- package/www/build/p-6e0586ed.system.entry.js +6 -0
- package/www/build/p-883b6082.entry.js +6 -0
- package/www/build/p-94f5e1a3.system.js +2 -0
- package/www/build/p-953317ff.js +2 -0
- package/www/build/p-ca6821e0.system.js +1 -0
- package/dist/esm-es5/index-a948f479.js +0 -1
- package/dist/mds-table-row/p-5ab8c209.system.entry.js +0 -1
- package/dist/mds-table-row/p-98955251.system.js +0 -1
- package/dist/mds-table-row/p-bfa177c6.system.js +0 -2
- package/dist/mds-table-row/p-d906e5c7.entry.js +0 -1
- package/dist/mds-table-row/p-faec61cc.js +0 -2
- package/www/build/p-5ab8c209.system.entry.js +0 -1
- package/www/build/p-98955251.system.js +0 -1
- package/www/build/p-bfa177c6.system.js +0 -2
- package/www/build/p-d906e5c7.entry.js +0 -1
- package/www/build/p-faec61cc.js +0 -2
|
@@ -26,8 +26,8 @@ const fileExtensionsDictionary: FileExtenstion = {
|
|
|
26
26
|
exe: { format: 'executable', description: 'fileEXE' },
|
|
27
27
|
flac: { format: 'audio', description: 'uncompressedAudio' },
|
|
28
28
|
gif: { format: 'image', description: 'compressedImage', preview: true },
|
|
29
|
-
htm: { format: 'markup', description: 'documentWeb' },
|
|
30
29
|
heic: { format: 'image', description: 'imageHEFF' },
|
|
30
|
+
htm: { format: 'markup', description: 'documentWeb' },
|
|
31
31
|
html: { format: 'markup', description: 'documentWeb' },
|
|
32
32
|
jpe: { format: 'image', description: 'compressedImage', preview: true },
|
|
33
33
|
jpeg: { format: 'image', description: 'compressedImage', preview: true },
|
|
@@ -44,9 +44,12 @@ const fileExtensionsDictionary: FileExtenstion = {
|
|
|
44
44
|
mpg4: { format: 'video', description: 'videoSD' },
|
|
45
45
|
mpg: { format: 'video', description: 'videoSD' },
|
|
46
46
|
mpga: { format: 'audio', description: 'compressedAudio' },
|
|
47
|
+
odf: { format: 'document', description: 'openDocumentFormat' },
|
|
47
48
|
odp: { format: 'slide', description: 'slideLO' },
|
|
48
49
|
ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
|
|
49
50
|
odt: { format: 'text', description: 'documentLO' },
|
|
51
|
+
ole: { format: 'document', description: 'objectLinkingAndEmbedding' },
|
|
52
|
+
p7m: { format: 'certificate', description: 'documentDigitalSingnature' },
|
|
50
53
|
pdf: { format: 'document', description: 'documentAdobe' },
|
|
51
54
|
php: { format: 'code', description: 'filePHP' },
|
|
52
55
|
png: { format: 'image', description: 'imagePNG', preview: true },
|
|
@@ -59,6 +62,7 @@ const fileExtensionsDictionary: FileExtenstion = {
|
|
|
59
62
|
tar: { format: 'archive', description: 'uncompressedArchive' },
|
|
60
63
|
tiff: { format: 'image', description: 'imageTIFF' },
|
|
61
64
|
ts: { format: 'code', description: 'fileTS' },
|
|
65
|
+
tsd: { format: 'certificate', description: 'certificateTSD' },
|
|
62
66
|
tsx: { format: 'code', description: 'fileTSX' },
|
|
63
67
|
txt: { format: 'text', description: 'documentTXT' },
|
|
64
68
|
wav: { format: 'audio', description: 'uncompressedAudio' },
|
|
@@ -66,68 +70,10 @@ const fileExtensionsDictionary: FileExtenstion = {
|
|
|
66
70
|
xar: { format: 'archive', description: 'compressedArchive' },
|
|
67
71
|
xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
|
|
68
72
|
xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
|
|
73
|
+
xml: { format: 'markup', description: 'extensibleMarkupLanguage' },
|
|
69
74
|
zip: { format: 'archive', description: 'compressedArchive' },
|
|
70
75
|
}
|
|
71
76
|
|
|
72
|
-
// const fileExtensionsDictionary: FileExtenstion = {
|
|
73
|
-
// '7z': { format: 'archive', description: 'Archivio compresso' },
|
|
74
|
-
// ace: { format: 'archive', description: 'Archivio compresso' },
|
|
75
|
-
// ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
|
|
76
|
-
// dart: { format: 'code', description: 'Dart' },
|
|
77
|
-
// db: { format: 'data', description: 'File di database' },
|
|
78
|
-
// default: { format: 'attachment', description: 'Formato sconosciuto' },
|
|
79
|
-
// dmg: { format: 'executable', description: 'Apple Disk Image' },
|
|
80
|
-
// doc: { format: 'text', description: 'Documento Microsoft Word' },
|
|
81
|
-
// docm: { format: 'text', description: 'Documento Microsoft Word' },
|
|
82
|
-
// docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
|
|
83
|
-
// eml: { format: 'email', description: 'E-mail di posta elettronica' },
|
|
84
|
-
// eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
|
|
85
|
-
// exe: { format: 'executable', description: 'File eseguibile Windows' },
|
|
86
|
-
// flac: { format: 'audio', description: 'Audio non compresso' },
|
|
87
|
-
// gif: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
88
|
-
// htm: { format: 'markup', description: 'Pagina web' },
|
|
89
|
-
// heic: { format: 'image', description: 'High Efficiency Image File Format' },
|
|
90
|
-
// html: { format: 'markup', description: 'Pagina web' },
|
|
91
|
-
// jpe: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
92
|
-
// jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
93
|
-
// jpg: { format: 'image', description: 'Immagine compressa', preview: true },
|
|
94
|
-
// js: { format: 'code', description: 'JavaScript' },
|
|
95
|
-
// json: { format: 'data', description: 'JavaScript Object Notation' },
|
|
96
|
-
// jsx: { format: 'code', description: 'JavaScript' },
|
|
97
|
-
// m2v: { format: 'video', description: 'Filmato SD' },
|
|
98
|
-
// mp2: { format: 'audio', description: 'Audio compresso' },
|
|
99
|
-
// mp3: { format: 'audio', description: 'Audio compresso' },
|
|
100
|
-
// mp4: { format: 'video', description: 'Filmato HD' },
|
|
101
|
-
// mp4v: { format: 'video', description: 'Filmato HD' },
|
|
102
|
-
// mpeg: { format: 'video', description: 'Filmato SD' },
|
|
103
|
-
// mpg4: { format: 'video', description: 'Filmato SD' },
|
|
104
|
-
// mpg: { format: 'video', description: 'Filmato SD' },
|
|
105
|
-
// mpga: { format: 'audio', description: 'Audio compresso' },
|
|
106
|
-
// odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
|
|
107
|
-
// ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
|
|
108
|
-
// odt: { format: 'text', description: 'File di testo LibreOffice' },
|
|
109
|
-
// pdf: { format: 'document', description: 'Documento Adobe' },
|
|
110
|
-
// php: { format: 'code', description: 'Hypertext Preprocessor' },
|
|
111
|
-
// png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
|
|
112
|
-
// ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
|
|
113
|
-
// rar: { format: 'archive', description: 'Archivio compresso' },
|
|
114
|
-
// rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
|
|
115
|
-
// sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
|
|
116
|
-
// shtml: { format: 'markup', description: 'Pagina web' },
|
|
117
|
-
// svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
|
|
118
|
-
// tar: { format: 'archive', description: 'Archivio non compresso' },
|
|
119
|
-
// tiff: { format: 'image', description: 'Tag Image File Format' },
|
|
120
|
-
// ts: { format: 'code', description: 'TypeScript' },
|
|
121
|
-
// tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
|
|
122
|
-
// txt: { format: 'text', description: 'Documento di testo non formattato' },
|
|
123
|
-
// wav: { format: 'audio', description: 'Audio non compresso' },
|
|
124
|
-
// webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
|
|
125
|
-
// xar: { format: 'archive', description: 'Archivio compresso' },
|
|
126
|
-
// xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
127
|
-
// xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
|
|
128
|
-
// zip: { format: 'archive', description: 'Archivio compresso' },
|
|
129
|
-
// }
|
|
130
|
-
|
|
131
77
|
const genericMimeToExt: Map<string, string[]> = new Map([
|
|
132
78
|
['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
|
|
133
79
|
['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
|
|
@@ -55,6 +55,69 @@ const filesList = [
|
|
|
55
55
|
'wooden.jsx',
|
|
56
56
|
]
|
|
57
57
|
|
|
58
|
+
const namedFilesList = {
|
|
59
|
+
'7z': 'frozen_haptic.7z',
|
|
60
|
+
'No extension file': 'this_is_an_extensionless_file',
|
|
61
|
+
'png with URL': 'https://i2.wp.com/clipart.info/images/ccovers/1495750818Apple-PNG-Clip-Art.png',
|
|
62
|
+
ace: 'sky_marketing.ace',
|
|
63
|
+
ai: 'foreground_overriding.ai',
|
|
64
|
+
db: 'matrix_black_hat.db',
|
|
65
|
+
default: 'copying.default',
|
|
66
|
+
dmg: 'protocol_designer.dmg',
|
|
67
|
+
doc: 'forges.doc',
|
|
68
|
+
docm: 'officer_somalia.docm',
|
|
69
|
+
docx: 'upgradable_gold.docx',
|
|
70
|
+
eml: 'brunei_logistical.eml',
|
|
71
|
+
eps: 'alarm_circuit_plastic.eps',
|
|
72
|
+
exe: 'rss_systematic_avon.exe',
|
|
73
|
+
flac: 'liaison_panel_central.flac',
|
|
74
|
+
gif: 'initiatives_group.gif',
|
|
75
|
+
htm: 'books_monetize_arizona.htm',
|
|
76
|
+
html: 'flexibility_auto_money.html',
|
|
77
|
+
jpe: 'intelligent_radical.jpe',
|
|
78
|
+
jpeg: 'iowa_installation.jpeg',
|
|
79
|
+
jpg: 'buckinghamshire_macao.jpg',
|
|
80
|
+
js: 'monitor.js',
|
|
81
|
+
json: 'calculating.json',
|
|
82
|
+
jsx: 'wooden.jsx',
|
|
83
|
+
m2v: 'interface_bedfordshire_solid.m2v',
|
|
84
|
+
mp2: 'explicit.mp2',
|
|
85
|
+
mp3: 'optimization_radical.mp3',
|
|
86
|
+
mp4: 'nebraska.mp4',
|
|
87
|
+
mp4v: 'reduced_regional_greenland.mp4v',
|
|
88
|
+
mpeg: 'impactful_alarm_handmade.mpeg',
|
|
89
|
+
mpg4: 'revolutionize.mpg4',
|
|
90
|
+
mpg: 'complexity_deposit.mpg',
|
|
91
|
+
mpga: 'ports_copy_granite.mpga',
|
|
92
|
+
odf: 'This is a file_to_read.odf',
|
|
93
|
+
odp: 'needs_based_solid.odp',
|
|
94
|
+
ods: 'compressing_black_colorado.ods',
|
|
95
|
+
odt: 'salad_compressing.odt',
|
|
96
|
+
ole: 'Document-RPF_Open-new.ole',
|
|
97
|
+
p7m: 'file with certificate from government.pdf.p7m',
|
|
98
|
+
pdf: 'connect_local_visualize.pdf',
|
|
99
|
+
php: 'fish.php',
|
|
100
|
+
png: 'awesome_orchestration.png',
|
|
101
|
+
ppt: 'gorgeous_manager_savings.ppt',
|
|
102
|
+
rar: 'unbranded.rar',
|
|
103
|
+
rtf: 'pound.rtf',
|
|
104
|
+
sass: 'open_source_gorgeous.sass',
|
|
105
|
+
shtml: 'brand.shtml',
|
|
106
|
+
svg: 'b2c_tan_sports.svg',
|
|
107
|
+
tar: 'graphic_frozen_bedfordshire.tar',
|
|
108
|
+
ts: 'forge_face.ts',
|
|
109
|
+
tsd: 'Marked file-7483274hy6Fg6R8.tsd',
|
|
110
|
+
txt: 'bedfordshire_iceland_identity.txt',
|
|
111
|
+
wav: 'synergistic.wav',
|
|
112
|
+
webp: 'open_source.webp',
|
|
113
|
+
xar: 'wisconsin_bypassing_small.xar',
|
|
114
|
+
xls: 'metrics_lempira_account.xls',
|
|
115
|
+
xlsx: 'hdd_navigate_panama.xlsx',
|
|
116
|
+
xml: 'Markup language.xml',
|
|
117
|
+
zip: 'tuna_table_fall.zip',
|
|
118
|
+
}
|
|
119
|
+
|
|
58
120
|
export {
|
|
59
121
|
filesList,
|
|
122
|
+
namedFilesList,
|
|
60
123
|
}
|
package/src/fixtures/icons.json
CHANGED
|
@@ -1,39 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"appleDiskImage": "Εικόνα δίσκου Apple",
|
|
3
|
+
"certificateTSD": "Πιστοποιητικό χρονικής σήμανσης",
|
|
3
4
|
"compressedArchive": "Συμπιεσμένο αρχείο",
|
|
4
|
-
"uncompressedArchive": "Μη συμπιεσμένο αρχείο",
|
|
5
5
|
"compressedAudio": "Συμπιεσμένος ήχος",
|
|
6
|
-
"
|
|
6
|
+
"compressedDocumentMS": "Συμπιεσμένο έγγραφο Microsoft Word",
|
|
7
|
+
"compressedImage": "Συμπιεσμένη εικόνα",
|
|
7
8
|
"dart": "Αρχείο Dart",
|
|
8
9
|
"documentAdobe": "Έγγραφο Adobe",
|
|
9
|
-
"
|
|
10
|
+
"documentDigitalSingnature": "Έγγραφο με ψηφιακή υπογραφή",
|
|
11
|
+
"documentLO": "Έγγραφο LibreOffice",
|
|
10
12
|
"documentMS": "Έγγραφο Microsoft Word",
|
|
11
13
|
"documentRTF": "Έγγραφο μορφής εμπλουτισμένου κειμένου",
|
|
12
14
|
"documentTXT": "Απλό έγγραφο κειμένου",
|
|
15
|
+
"documentWeb": "Ιστοσελίδα",
|
|
13
16
|
"email": "Ηλεκτρονικό ταχυδρομείο",
|
|
17
|
+
"extensibleMarkupLanguage": "Γλώσσα σήμανσης για δεδομένα",
|
|
18
|
+
"fileAI": "Διανυσματικό αρχείο Adobe Illustrator",
|
|
14
19
|
"fileDB": "Αρχείο βάσης δεδομένων",
|
|
15
|
-
"
|
|
20
|
+
"fileEPS": "Διανυσματικό αρχείο Corel Draw",
|
|
16
21
|
"fileEXE": "Εκτελέσιμο αρχείο Windows",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"spreadsheetLO": "Υπολογιστικό φύλλο LibreOffice",
|
|
20
|
-
"spreadsheetMS": "Υπολογιστικό φύλλο Microsoft Office",
|
|
21
|
-
"unknown": "Άγνωστη μορφή αρχείου",
|
|
22
|
-
"imageHEIC": "Μορφή αρχείου εικόνας υψηλής αποδοτικότητας",
|
|
22
|
+
"fileJS": "Αρχείο JavaScript",
|
|
23
|
+
"fileJSON": "Αρχείο JavaScript Object Notation",
|
|
23
24
|
"filePHP": "Αρχείο Hypertext Preprocessor",
|
|
25
|
+
"fileSASS": "Αρχείο Syntactically Awesome StyleSheets",
|
|
26
|
+
"fileTS": "Αρχείο TypeScript",
|
|
27
|
+
"fileTSX": "Αρχείο TypeScript Extended Syntax",
|
|
28
|
+
"imageHEIC": "Μορφή αρχείου εικόνας υψηλής αποδοτικότητας",
|
|
24
29
|
"imagePNG": "Εικόνα Portable Network Graphics",
|
|
25
|
-
"imageWEBP": "Εικόνα Google Web Picture",
|
|
26
|
-
"compressedImage": "Συμπιεσμένη εικόνα",
|
|
27
|
-
"fileJSON": "Αρχείο JavaScript Object Notation",
|
|
28
|
-
"fileJS": "Αρχείο JavaScript",
|
|
29
|
-
"documentWeb": "Ιστοσελίδα",
|
|
30
30
|
"imageSVG": "Διανυσματική εικόνα Scalable Vector Graphics",
|
|
31
|
+
"imageTIFF": "Εικόνα Tag Image File Format",
|
|
32
|
+
"imageWEBP": "Εικόνα Google Web Picture",
|
|
33
|
+
"objectLinkingAndEmbedding": "Σύνδεση και ενσωμάτωση αντικειμένων",
|
|
34
|
+
"openDocumentFormat": "Έγγραφο OpenDocument",
|
|
31
35
|
"slideLO": "Διαφάνεια παρουσίασης LibreOffice",
|
|
32
36
|
"slidePowerPoint": "Διαφάνεια παρουσίασης PowerPoint",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"spreadsheetLO": "Υπολογιστικό φύλλο LibreOffice",
|
|
38
|
+
"spreadsheetMS": "Υπολογιστικό φύλλο Microsoft Office",
|
|
39
|
+
"uncompressedArchive": "Μη συμπιεσμένο αρχείο",
|
|
40
|
+
"uncompressedAudio": "Μη συμπιεσμένος ήχος",
|
|
41
|
+
"unknown": "Άγνωστη μορφή αρχείου",
|
|
42
|
+
"videoHD": "Βίντεο υψηλής ανάλυσης",
|
|
43
|
+
"videoSD": "Βίντεο χαμηλής ανάλυσης"
|
|
39
44
|
}
|
|
@@ -1,39 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"appleDiskImage": "Apple Disk Image",
|
|
3
|
+
"certificateTSD": "Timestamp Certificate",
|
|
3
4
|
"compressedArchive": "Compressed Archive",
|
|
4
|
-
"uncompressedArchive": "Uncompressed Archive",
|
|
5
5
|
"compressedAudio": "Compressed Audio",
|
|
6
|
-
"
|
|
6
|
+
"compressedDocumentMS": "Compressed Microsoft Word Document",
|
|
7
|
+
"compressedImage": "Compressed Image",
|
|
7
8
|
"dart": "Dart File",
|
|
8
9
|
"documentAdobe": "Adobe Document",
|
|
9
|
-
"
|
|
10
|
+
"documentDigitalSingnature": "Document with digital signature",
|
|
11
|
+
"documentLO": "LibreOffice Document",
|
|
10
12
|
"documentMS": "Microsoft Word Document",
|
|
11
13
|
"documentRTF": "Rich Text Format Document",
|
|
12
14
|
"documentTXT": "Plain Text Document",
|
|
15
|
+
"documentWeb": "Web Page",
|
|
13
16
|
"email": "E-mail",
|
|
17
|
+
"extensibleMarkupLanguage": "Markup language for data",
|
|
18
|
+
"fileAI": "Adobe Illustrator Vector File",
|
|
14
19
|
"fileDB": "Database File",
|
|
15
|
-
"
|
|
20
|
+
"fileEPS": "Corel Draw Vector File",
|
|
16
21
|
"fileEXE": "Windows Executable File",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"spreadsheetLO": "LibreOffice Spreadsheet",
|
|
20
|
-
"spreadsheetMS": "Microsoft Office Spreadsheet",
|
|
21
|
-
"unknown": "Unknown File Format",
|
|
22
|
-
"imageHEIC": "High Efficiency Image File Format",
|
|
22
|
+
"fileJS": "JavaScript File",
|
|
23
|
+
"fileJSON": "JavaScript Object Notation File",
|
|
23
24
|
"filePHP": "Hypertext Preprocessor File",
|
|
25
|
+
"fileSASS": "Syntactically Awesome StyleSheets File",
|
|
26
|
+
"fileTS": "TypeScript File",
|
|
27
|
+
"fileTSX": "TypeScript Extended Syntax File",
|
|
28
|
+
"imageHEIC": "High Efficiency Image File Format",
|
|
24
29
|
"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
30
|
"imageSVG": "Scalable Vector Graphics Image",
|
|
31
|
+
"imageTIFF": "Tag Image File Format Image",
|
|
32
|
+
"imageWEBP": "Google Web Picture Image",
|
|
33
|
+
"objectLinkingAndEmbedding": "Object Linking and Embedding",
|
|
34
|
+
"openDocumentFormat": "OpenDocument Document",
|
|
31
35
|
"slideLO": "LibreOffice Presentation Slide",
|
|
32
36
|
"slidePowerPoint": "PowerPoint Presentation Slide",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"spreadsheetLO": "LibreOffice Spreadsheet",
|
|
38
|
+
"spreadsheetMS": "Microsoft Office Spreadsheet",
|
|
39
|
+
"uncompressedArchive": "Uncompressed Archive",
|
|
40
|
+
"uncompressedAudio": "Uncompressed Audio",
|
|
41
|
+
"unknown": "Unknown File Format",
|
|
42
|
+
"videoHD": "High Definition Video",
|
|
43
|
+
"videoSD": "Standard Definition Video"
|
|
39
44
|
}
|
|
@@ -1,39 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"appleDiskImage": "Imagen de disco Apple",
|
|
3
|
+
"certificateTSD": "Certificado de sello de tiempo",
|
|
3
4
|
"compressedArchive": "Archivo comprimido",
|
|
4
|
-
"uncompressedArchive": "Archivo no comprimido",
|
|
5
5
|
"compressedAudio": "Audio comprimido",
|
|
6
|
-
"
|
|
6
|
+
"compressedDocumentMS": "Documento comprimido de Microsoft Word",
|
|
7
|
+
"compressedImage": "Imagen comprimida",
|
|
7
8
|
"dart": "Archivo Dart",
|
|
8
9
|
"documentAdobe": "Documento Adobe",
|
|
9
|
-
"
|
|
10
|
+
"documentDigitalSingnature": "Documento con firma digital",
|
|
11
|
+
"documentLO": "Documento de LibreOffice",
|
|
10
12
|
"documentMS": "Documento de Microsoft Word",
|
|
11
13
|
"documentRTF": "Documento de formato de texto enriquecido",
|
|
12
14
|
"documentTXT": "Documento de texto sin formato",
|
|
15
|
+
"documentWeb": "Página web",
|
|
13
16
|
"email": "Correo electrónico",
|
|
17
|
+
"extensibleMarkupLanguage": "Lenguaje de marcado para datos",
|
|
18
|
+
"fileAI": "Archivo vectorial de Adobe Illustrator",
|
|
14
19
|
"fileDB": "Archivo de base de datos",
|
|
15
|
-
"
|
|
20
|
+
"fileEPS": "Archivo vectorial de Corel Draw",
|
|
16
21
|
"fileEXE": "Archivo ejecutable de Windows",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
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",
|
|
22
|
+
"fileJS": "Archivo JavaScript",
|
|
23
|
+
"fileJSON": "Archivo de notación de objetos de JavaScript",
|
|
23
24
|
"filePHP": "Archivo de preprocesador de hipertexto",
|
|
25
|
+
"fileSASS": "Archivo de Syntactically Awesome StyleSheets",
|
|
26
|
+
"fileTS": "Archivo TypeScript",
|
|
27
|
+
"fileTSX": "Archivo de sintaxis extendida de TypeScript",
|
|
28
|
+
"imageHEIC": "Formato de archivo de imagen de alta eficiencia",
|
|
24
29
|
"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
30
|
"imageSVG": "Imagen de gráficos vectoriales escalables",
|
|
31
|
+
"imageTIFF": "Imagen de formato de archivo de imagen etiquetado",
|
|
32
|
+
"imageWEBP": "Imagen Google Web Picture",
|
|
33
|
+
"objectLinkingAndEmbedding": "Vinculación e incrustación de objetos",
|
|
34
|
+
"openDocumentFormat": "Documento OpenDocument",
|
|
31
35
|
"slideLO": "Diapositiva de presentación de LibreOffice",
|
|
32
36
|
"slidePowerPoint": "Diapositiva de presentación de PowerPoint",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"spreadsheetLO": "Hoja de cálculo de LibreOffice",
|
|
38
|
+
"spreadsheetMS": "Hoja de cálculo de Microsoft Office",
|
|
39
|
+
"uncompressedArchive": "Archivo no comprimido",
|
|
40
|
+
"uncompressedAudio": "Audio no comprimido",
|
|
41
|
+
"unknown": "Formato de archivo desconocido",
|
|
42
|
+
"videoHD": "Video de alta definición",
|
|
43
|
+
"videoSD": "Video de definición estándar"
|
|
39
44
|
}
|
|
@@ -1,39 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"appleDiskImage": "Immagine Disco Apple",
|
|
3
|
+
"certificateTSD": "Marca temporale",
|
|
3
4
|
"compressedArchive": "Archivio compresso",
|
|
4
|
-
"uncompressedArchive": "Archivio non compresso",
|
|
5
5
|
"compressedAudio": "Audio compresso",
|
|
6
|
-
"
|
|
6
|
+
"compressedDocumentMS": "Documento di testo Microsoft Word Compresso",
|
|
7
|
+
"compressedImage": "Immagine compressa",
|
|
7
8
|
"dart": "File Dart",
|
|
8
9
|
"documentAdobe": "Documento Adobe",
|
|
9
|
-
"
|
|
10
|
+
"documentDigitalSingnature": "Documento con firma digitale",
|
|
11
|
+
"documentLO": "Documento di testo LibreOffice",
|
|
10
12
|
"documentMS": "Documento di testo Microsoft Word",
|
|
11
13
|
"documentRTF": "Documento di testo Rich Text Format",
|
|
12
14
|
"documentTXT": "Documento di testo senza formattazione",
|
|
15
|
+
"documentWeb": "Pagina web",
|
|
13
16
|
"email": "E-mail",
|
|
17
|
+
"extensibleMarkupLanguage": "Linguaggio markup per dati",
|
|
18
|
+
"fileAI": "File vettoriale Adobe Illustrator",
|
|
14
19
|
"fileDB": "File di database",
|
|
15
|
-
"
|
|
20
|
+
"fileEPS": "File vettoriale Corel Draw",
|
|
16
21
|
"fileEXE": "File eseguibile Windows",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"spreadsheetLO": "Foglio di calcolo LibreOffice",
|
|
20
|
-
"spreadsheetMS": "Foglio di calcolo Office",
|
|
21
|
-
"unknown": "Formato file sconosciuto",
|
|
22
|
-
"imageHEIC": "High Efficiency Image File Format",
|
|
22
|
+
"fileJS": "File JavaScript",
|
|
23
|
+
"fileJSON": "File JavaScript Object Notation",
|
|
23
24
|
"filePHP": "File Hypertext Preprocessor",
|
|
25
|
+
"fileSASS": "File Syntactically Awesome StyleSheets",
|
|
26
|
+
"fileTS": "File TypeScript",
|
|
27
|
+
"fileTSX": "File TypeScript Extended Syntax",
|
|
28
|
+
"imageHEIC": "High Efficiency Image File Format",
|
|
24
29
|
"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
30
|
"imageSVG": "Immagine vettoriale Scalable Vector Graphics",
|
|
31
|
+
"imageTIFF": "Immagine Tag Image File Format",
|
|
32
|
+
"imageWEBP": "Immagine Google Web Picture",
|
|
33
|
+
"objectLinkingAndEmbedding": "Integrazione oggetti nei file",
|
|
34
|
+
"openDocumentFormat": "Documento OpenDocument",
|
|
31
35
|
"slideLO": "Slide di presentazione LibreOffice",
|
|
32
36
|
"slidePowerPoint": "Slide di presentazione PowerPoint",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"spreadsheetLO": "Foglio di calcolo LibreOffice",
|
|
38
|
+
"spreadsheetMS": "Foglio di calcolo Office",
|
|
39
|
+
"uncompressedArchive": "Archivio non compresso",
|
|
40
|
+
"uncompressedAudio": "Audio non compresso",
|
|
41
|
+
"unknown": "Formato file sconosciuto",
|
|
42
|
+
"videoHD": "Filmato HD ad alta risoluzione",
|
|
43
|
+
"videoSD": "Filmato SD a bassa risoluzione"
|
|
39
44
|
}
|
package/src/type/file-types.ts
CHANGED
|
@@ -31,9 +31,13 @@ export type ExtensionSuffixType =
|
|
|
31
31
|
| 'mpg'
|
|
32
32
|
| 'mpg4'
|
|
33
33
|
| 'mpga'
|
|
34
|
+
| 'odf'
|
|
34
35
|
| 'odp'
|
|
35
36
|
| 'ods'
|
|
36
37
|
| 'odt'
|
|
38
|
+
| 'odt'
|
|
39
|
+
| 'ole'
|
|
40
|
+
| 'p7m'
|
|
37
41
|
| 'pdf'
|
|
38
42
|
| 'php'
|
|
39
43
|
| 'png'
|
|
@@ -46,10 +50,12 @@ export type ExtensionSuffixType =
|
|
|
46
50
|
| 'tar'
|
|
47
51
|
| 'tiff'
|
|
48
52
|
| 'ts'
|
|
53
|
+
| 'tsd'
|
|
49
54
|
| 'txt'
|
|
50
55
|
| 'wav'
|
|
51
56
|
| 'webp'
|
|
52
57
|
| 'xar'
|
|
53
58
|
| 'xls'
|
|
54
59
|
| 'xlsx'
|
|
60
|
+
| 'xml'
|
|
55
61
|
| 'zip'
|
|
@@ -3,6 +3,7 @@ import baselineAttachFile from '@icon/mi/baseline/attach-file.svg'
|
|
|
3
3
|
import baselineAudiotrack from '@icon/mi/baseline/audiotrack.svg'
|
|
4
4
|
import baselineTerminal from '@icon/mi/baseline/terminal.svg'
|
|
5
5
|
import baselineInsertDriveFile from '@icon/mi/baseline/insert-drive-file.svg'
|
|
6
|
+
import mdiLicense from '@icon/mdi/license.svg'
|
|
6
7
|
import mdiHardDisk from '@icon/mdi/harddisk.svg'
|
|
7
8
|
import baselineEmail from '@icon/mi/baseline/email.svg'
|
|
8
9
|
import baselineWysiwyg from '@icon/mi/baseline/wysiwyg.svg'
|
|
@@ -19,6 +20,7 @@ type FileFormat =
|
|
|
19
20
|
| 'archive'
|
|
20
21
|
| 'attachment'
|
|
21
22
|
| 'audio'
|
|
23
|
+
| 'certificate'
|
|
22
24
|
| 'code'
|
|
23
25
|
| 'data'
|
|
24
26
|
| 'document'
|
|
@@ -54,6 +56,10 @@ const fileFormatsVariant: FileFormatVariants = {
|
|
|
54
56
|
icon: baselineAudiotrack,
|
|
55
57
|
variant: 'violet',
|
|
56
58
|
},
|
|
59
|
+
certificate: {
|
|
60
|
+
icon: mdiLicense,
|
|
61
|
+
variant: 'orange',
|
|
62
|
+
},
|
|
57
63
|
code: {
|
|
58
64
|
icon: baselineTerminal,
|
|
59
65
|
variant: 'yellow',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-
|
|
1
|
+
import{p as e,b as a}from"./p-953317ff.js";export{s as setNonce}from"./p-953317ff.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-883b6082",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],language:[32],updateLang:[64]}]]]],e))));
|
|
@@ -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-ca6821e0.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,6 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(n,t,e,r){function i(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,a){function o(n){try{c(r.next(n))}catch(n){a(n)}}function s(n){try{c(r["throw"](n))}catch(n){a(n)}}function c(n){n.done?e(n.value):i(n.value).then(o,s)}c((r=r.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(n){return function(t){return c([n,t])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(e=0)),e)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:e.label++;return{value:s[1],done:false};case 5:e.label++;i=s[1];s=[0];continue;case 7:s=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){e.label=s[1];break}if(s[0]===6&&e.label<a[1]){e.label=a[1];a=s;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(s);break}if(a[2])e.ops.pop();e.trys.pop();continue}s=t.call(n,e)}catch(n){s=[6,n];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-94f5e1a3.system.js"],(function(n){"use strict";var t,e,r,i;return{setters:[function(n){t=n.r;e=n.h;r=n.H;i=n.g}],execute:function(){var a=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var o={exports:{}};(function(n,t){(function(t,e){n.exports=e()})(a,(function(){
|
|
2
|
+
/*!
|
|
3
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
4
|
+
* http://github.com/janl/mustache.js
|
|
5
|
+
*/
|
|
6
|
+
var n=Object.prototype.toString;var t=Array.isArray||function t(e){return n.call(e)==="[object Array]"};function e(n){return typeof n==="function"}function r(n){return t(n)?"array":typeof n}function i(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(n,t){return n!=null&&typeof n==="object"&&t in n}function o(n,t){return n!=null&&typeof n!=="object"&&n.hasOwnProperty&&n.hasOwnProperty(t)}var s=RegExp.prototype.test;function c(n,t){return s.call(n,t)}var f=/\S/;function u(n){return!c(f,n)}var l={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function d(n){return String(n).replace(/[&<>"'`=\/]/g,(function n(t){return l[t]}))}var h=/\s*/;var v=/\s+/;var b=/\s*=/;var w=/\s*\}/;var m=/#|\^|\/|>|\{|&|=|!/;function g(n,e){if(!n)return[];var r=false;var a=[];var o=[];var s=[];var c=false;var f=false;var l="";var d=0;function g(){if(c&&!f){while(s.length)delete o[s.pop()]}else{s=[]}c=false;f=false}var x,R,E;function S(n){if(typeof n==="string")n=n.split(v,2);if(!t(n)||n.length!==2)throw new Error("Invalid tags: "+n);x=new RegExp(i(n[0])+"\\s*");R=new RegExp("\\s*"+i(n[1]));E=new RegExp("\\s*"+i("}"+n[1]))}S(e||j.tags);var _=new k(n);var X,z,C,T,D,U;while(!_.eos()){X=_.pos;C=_.scanUntil(x);if(C){for(var A=0,I=C.length;A<I;++A){T=C.charAt(A);if(u(T)){s.push(o.length);l+=T}else{f=true;r=true;l+=" "}o.push(["text",T,X,X+1]);X+=1;if(T==="\n"){g();l="";d=0;r=false}}}if(!_.scan(x))break;c=true;z=_.scan(m)||"name";_.scan(h);if(z==="="){C=_.scanUntil(b);_.scan(b);_.scanUntil(R)}else if(z==="{"){C=_.scanUntil(E);_.scan(w);_.scanUntil(R);z="&"}else{C=_.scanUntil(R)}if(!_.scan(R))throw new Error("Unclosed tag at "+_.pos);if(z==">"){D=[z,C,X,_.pos,l,d,r]}else{D=[z,C,X,_.pos]}d++;o.push(D);if(z==="#"||z==="^"){a.push(D)}else if(z==="/"){U=a.pop();if(!U)throw new Error('Unopened section "'+C+'" at '+X);if(U[1]!==C)throw new Error('Unclosed section "'+U[1]+'" at '+X)}else if(z==="name"||z==="{"||z==="&"){f=true}else if(z==="="){S(C)}}g();U=a.pop();if(U)throw new Error('Unclosed section "'+U[1]+'" at '+_.pos);return y(p(o))}function p(n){var t=[];var e,r;for(var i=0,a=n.length;i<a;++i){e=n[i];if(e){if(e[0]==="text"&&r&&r[0]==="text"){r[1]+=e[1];r[3]=e[3]}else{t.push(e);r=e}}}return t}function y(n){var t=[];var e=t;var r=[];var i,a;for(var o=0,s=n.length;o<s;++o){i=n[o];switch(i[0]){case"#":case"^":e.push(i);r.push(i);e=i[4]=[];break;case"/":a=r.pop();a[5]=i[2];e=r.length>0?r[r.length-1][4]:t;break;default:e.push(i)}}return t}function k(n){this.string=n;this.tail=n;this.pos=0}k.prototype.eos=function n(){return this.tail===""};k.prototype.scan=function n(t){var e=this.tail.match(t);if(!e||e.index!==0)return"";var r=e[0];this.tail=this.tail.substring(r.length);this.pos+=r.length;return r};k.prototype.scanUntil=function n(t){var e=this.tail.search(t),r;switch(e){case-1:r=this.tail;this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,e);this.tail=this.tail.substring(e)}this.pos+=r.length;return r};function x(n,t){this.view=n;this.cache={".":this.view};this.parent=t}x.prototype.push=function n(t){return new x(t,this)};x.prototype.lookup=function n(t){var r=this.cache;var i;if(r.hasOwnProperty(t)){i=r[t]}else{var s=this,c,f,u,l=false;while(s){if(t.indexOf(".")>0){c=s.view;f=t.split(".");u=0;while(c!=null&&u<f.length){if(u===f.length-1)l=a(c,f[u])||o(c,f[u]);c=c[f[u++]]}}else{c=s.view[t];l=a(s.view,t)}if(l){i=c;break}s=s.parent}r[t]=i}if(e(i))i=i.call(this.view);return i};function R(){this.templateCache={_cache:{},set:function n(t,e){this._cache[t]=e},get:function n(t){return this._cache[t]},clear:function n(){this._cache={}}}}R.prototype.clearCache=function n(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};R.prototype.parse=function n(t,e){var r=this.templateCache;var i=t+":"+(e||j.tags).join(":");var a=typeof r!=="undefined";var o=a?r.get(i):undefined;if(o==undefined){o=g(t,e);a&&r.set(i,o)}return o};R.prototype.render=function n(t,e,r,i){var a=this.getConfigTags(i);var o=this.parse(t,a);var s=e instanceof x?e:new x(e,undefined);return this.renderTokens(o,s,r,t,i)};R.prototype.renderTokens=function n(t,e,r,i,a){var o="";var s,c,f;for(var u=0,l=t.length;u<l;++u){f=undefined;s=t[u];c=s[0];if(c==="#")f=this.renderSection(s,e,r,i,a);else if(c==="^")f=this.renderInverted(s,e,r,i,a);else if(c===">")f=this.renderPartial(s,e,r,a);else if(c==="&")f=this.unescapedValue(s,e);else if(c==="name")f=this.escapedValue(s,e,a);else if(c==="text")f=this.rawValue(s);if(f!==undefined)o+=f}return o};R.prototype.renderSection=function n(r,i,a,o,s){var c=this;var f="";var u=i.lookup(r[1]);function l(n){return c.render(n,i,a,s)}if(!u)return;if(t(u)){for(var d=0,h=u.length;d<h;++d){f+=this.renderTokens(r[4],i.push(u[d]),a,o,s)}}else if(typeof u==="object"||typeof u==="string"||typeof u==="number"){f+=this.renderTokens(r[4],i.push(u),a,o,s)}else if(e(u)){if(typeof o!=="string")throw new Error("Cannot use higher-order sections without the original template");u=u.call(i.view,o.slice(r[3],r[5]),l);if(u!=null)f+=u}else{f+=this.renderTokens(r[4],i,a,o,s)}return f};R.prototype.renderInverted=function n(e,r,i,a,o){var s=r.lookup(e[1]);if(!s||t(s)&&s.length===0)return this.renderTokens(e[4],r,i,a,o)};R.prototype.indentPartial=function n(t,e,r){var i=e.replace(/[^ \t]/g,"");var a=t.split("\n");for(var o=0;o<a.length;o++){if(a[o].length&&(o>0||!r)){a[o]=i+a[o]}}return a.join("\n")};R.prototype.renderPartial=function n(t,r,i,a){if(!i)return;var o=this.getConfigTags(a);var s=e(i)?i(t[1]):i[t[1]];if(s!=null){var c=t[6];var f=t[5];var u=t[4];var l=s;if(f==0&&u){l=this.indentPartial(s,u,c)}var d=this.parse(l,o);return this.renderTokens(d,r,i,l,a)}};R.prototype.unescapedValue=function n(t,e){var r=e.lookup(t[1]);if(r!=null)return r};R.prototype.escapedValue=function n(t,e,r){var i=this.getConfigEscape(r)||j.escape;var a=e.lookup(t[1]);if(a!=null)return typeof a==="number"&&i===j.escape?String(a):i(a)};R.prototype.rawValue=function n(t){return t[1]};R.prototype.getConfigTags=function n(e){if(t(e)){return e}else if(e&&typeof e==="object"){return e.tags}else{return undefined}};R.prototype.getConfigEscape=function n(e){if(e&&typeof e==="object"&&!t(e)){return e.escape}else{return undefined}};var j={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(n){E.templateCache=n},get templateCache(){return E.templateCache}};var E=new R;j.clearCache=function n(){return E.clearCache()};j.parse=function n(t,e){return E.parse(t,e)};j.render=function n(t,e,i,a){if(typeof t!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+r(t)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return E.render(t,e,i,a)};j.escape=d;j.Scanner=k;j.Context=x;j.Writer=R;return j}))})(o);var s=function(){function n(n){var t=this;this.rollbackLanguage="en";this.set=function(n){t.config=n};this.lang=function(n){t.element=n;t.closestElement=t.element.closest("[lang]");if(t.closestElement){if(t.closestElement.lang){t.language=t.closestElement.lang;return t.language}}t.language=t.rollbackLanguage;return t.language};this.update=function(n){var e=n!==null&&n!==void 0?n:t.element.shadowRoot;e&&e.querySelectorAll("*").forEach((function(n){if(n.tagName.toLowerCase().startsWith("mds-")){if(n&&"updateLang"in n){n.updateLang()}}}))};this.pluralize=function(n,e){var r=t.config[t.language]?t.config[t.language][n]:t.config[t.rollbackLanguage][n];var i=[];if(Array.isArray(r)){i.push(r[0]);i.push(r[1])}else{i.push(r);i.push(r)}var a=i[0];var s=a;var c=Object.keys(e);if(c.length>0){var f=c[0];if(typeof e[f]==="number"){if(e[f]!==1){s=i[1]}}}return o.exports.render(s,e)};this.get=function(n,e){if(e){return t.pluralize(n,e)}return t.config[t.language]?t.config[t.language][n]:t.config[t.rollbackLanguage][n]};if(n){this.set(n)}}return n}();var c="Επιλογή γραμμής";var f="Αποεπιλογή γραμμής";var u={selectRow:c,unselectRow:f};var l="Select row";var d="Deselect row";var h={selectRow:l,unselectRow:d};var v="Seleccionar fila";var b="Deseleccionar fila";var w={selectRow:v,unselectRow:b};var m="Seleziona riga";var g="Deseleziona riga";var p={selectRow:m,unselectRow:g};var y="@tailwind utilities;\n\n:host {\n\n --mds-table-row-color-hover: var(--mds-table-color, rgb(var(--tone-neutral-02)));\n --mds-table-row-color-alt: var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));\n --mds-table-row-background-hover: var(--mds-table-background, rgb(var(--tone-neutral)));\n --mds-table-row-background-alt: var(--mds-table-background-alt, rgb(var(--tone-neutral)));\n --mds-table-row-actions-gap: var(--mds-table-actions-gap, 1rem);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n color: var(--mds-table-row-color);\n display: table-row;\n position: relative;\n -webkit-transition-property: color;\n transition-property: color;\n\n}\n\n.selection-cell {\n vertical-align: middle;\n}\n\n.checkbox-wrapper {\n display: -ms-flexbox;\n display: flex;\n}\n\n:host([interactive]:hover) {\n\n --mds-table-row-actions-background: var(--mds-table-row-background-hover);\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n:host([selected]) {\n\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n:host([sorted]) {\n\n --mds-table-row-background: var(--mds-table-row-background-alt);\n --mds-table-row-color: var(--mds-table-row-color-alt);\n}\n\n:host([sorted][selected]) {\n\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n.actions-view {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n inset: 0;\n -ms-flex-pack: end;\n justify-content: end;\n pointer-events: none;\n position: absolute;\n}\n\n.actions {\n\n --mds-table-row-actions-background: var(--mds-table-row-background);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-table-row-actions-background);\n display: -ms-inline-flexbox;\n display: inline-flex;\n gap: var(--mds-table-row-actions-gap);\n inset: 0;\n margin-right: 100%;\n padding-right: 0;\n pointer-events: auto;\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-property: background-color, padding-right, -webkit-transform;\n transition-property: background-color, padding-right, -webkit-transform;\n transition-property: transform, background-color, padding-right;\n transition-property: transform, background-color, padding-right, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n:host(:hover) .actions {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n\n:host([overlay-actions]) .actions {\n padding-right: var(--mds-table-cell-padding);\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n:host([overlay-actions]:hover) .actions {\n\n --mds-table-row-actions-background: var(--mds-table-row-background);\n\n -webkit-transform: translateX(0);\n\n transform: translateX(0);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .actions {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .actions {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";var k=y;var x=n("mds_table_row",function(){function n(n){var e=this;t(this,n);this.t=new s({el:u,en:h,es:w,it:p});this.handleSelectionChange=function(n){var t;e.selected=n.detail.checked;(t=e.host.closest("mds-table"))===null||t===void 0?void 0:t.updateSelection()};this.language=undefined;this.interactive=undefined;this.overlayActions=undefined;this.selectable=undefined;this.selected=undefined;this.value=undefined}n.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){this.language=this.t.lang(this.host);this.t.update();return[2]}))}))};n.prototype.componentWillLoad=function(){this.language=this.t.lang(this.host);this.hasActions=this.host.querySelector('[slot="action"]')!==null};n.prototype.componentDidLoad=function(){var n;if(this.hasActions){this.actions=(n=this.host.shadowRoot)===null||n===void 0?void 0:n.querySelector(".actions");this.sizerWidth="".concat(this.actions.offsetWidth.toString(),"px")}};n.prototype.render=function(){return e(r,{key:"4905591b94a0af846d25e3cf55fe5805ecec76be",role:"row"},this.selectable&&e("mds-table-cell",{key:"07f8596969f20148250cc42fde0a806435825274",class:"selection-cell"},e("div",{key:"2d0bb74f3f5edaf6180c68a60457b374dcd7a4bd",class:"checkbox-wrapper"},e("mds-input-switch",{key:"e04fafd6a53ed1c6a4208b0317419fe21d08f28e",title:this.t.get(this.selected?"unselectRow":"selectRow"),lang:this.language,type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),e("slot",{key:"d71c2ec9e675fd8190eeeb7d816a5e2566c6afc4"}),this.hasActions&&e("mds-table-cell",{key:"0ede2c5f98d7541920c4170d70c21f9f61ac93cb",class:"actions-cell"},e("div",{key:"8a097d4b04bd594778f51bedfe438fe1fd3479b3",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),e("div",{key:"31f1fe8d7e4ee01f33f1c6a5b76e23fd875dfd82",class:"actions-view"},e("div",{key:"762785e31a306ba3c1e7654218bdf8cb33044cd3",class:"actions",style:{marginRight:"calc(".concat(this.sizerWidth," + var(--mds-table-cell-padding))")}},e("slot",{key:"05ea2b5edc71e58859e55e52c1ab65ca0c5354f8",name:"action"})))))};Object.defineProperty(n.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});return n}());x.style=k}}}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{r as t,h as n,H as e,g as i}from"./p-953317ff.js";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var r={exports:{}};r.exports=function(){
|
|
2
|
+
/*!
|
|
3
|
+
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
4
|
+
* http://github.com/janl/mustache.js
|
|
5
|
+
*/
|
|
6
|
+
var t=Object.prototype.toString,n=Array.isArray||function(n){return"[object Array]"===t.call(n)};function e(t){return"function"==typeof t}function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function r(t,n){return null!=t&&"object"==typeof t&&n in t}var o=RegExp.prototype.test;var s=/\S/;function a(t){return!function(t,n){return o.call(t,n)}(s,t)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var l=/\s*/,d=/\s+/,h=/\s*=/,f=/\s*\}/,u=/#|\^|\/|>|\{|&|=|!/;function b(t){this.string=t,this.tail=t,this.pos=0}function v(t,n){this.view=t,this.cache={".":this.view},this.parent=n}function m(){this.templateCache={_cache:{},set:function(t,n){this._cache[t]=n},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}b.prototype.eos=function(){return""===this.tail},b.prototype.scan=function(t){var n=this.tail.match(t);if(!n||0!==n.index)return"";var e=n[0];return this.tail=this.tail.substring(e.length),this.pos+=e.length,e},b.prototype.scanUntil=function(t){var n,e=this.tail.search(t);switch(e){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,e),this.tail=this.tail.substring(e)}return this.pos+=n.length,n},v.prototype.push=function(t){return new v(t,this)},v.prototype.lookup=function(t){var n,i,o,s=this.cache;if(s.hasOwnProperty(t))n=s[t];else{for(var a,c,l,d=this,h=!1;d;){if(t.indexOf(".")>0)for(a=d.view,c=t.split("."),l=0;null!=a&&l<c.length;)l===c.length-1&&(h=r(a,c[l])||(o=c[l],null!=(i=a)&&"object"!=typeof i&&i.hasOwnProperty&&i.hasOwnProperty(o))),a=a[c[l++]];else a=d.view[t],h=r(d.view,t);if(h){n=a;break}d=d.parent}s[t]=n}return e(n)&&(n=n.call(this.view)),n},m.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},m.prototype.parse=function(t,e){var r=this.templateCache,o=t+":"+(e||g.tags).join(":"),s=void 0!==r,c=s?r.get(o):void 0;return null==c&&(c=function(t,e){if(!t)return[];var r,o,s,c=!1,v=[],m=[],w=[],p=!1,k=!1,y="",x=0;function R(){if(p&&!k)for(;w.length;)delete m[w.pop()];else w=[];p=!1,k=!1}function j(t){if("string"==typeof t&&(t=t.split(d,2)),!n(t)||2!==t.length)throw new Error("Invalid tags: "+t);r=new RegExp(i(t[0])+"\\s*"),o=new RegExp("\\s*"+i(t[1])),s=new RegExp("\\s*"+i("}"+t[1]))}j(e||g.tags);for(var E,S,X,z,C,D,L=new b(t);!L.eos();){if(E=L.pos,X=L.scanUntil(r))for(var T=0,U=X.length;T<U;++T)a(z=X.charAt(T))?(w.push(m.length),y+=z):(k=!0,c=!0,y+=" "),m.push(["text",z,E,E+1]),E+=1,"\n"===z&&(R(),y="",x=0,c=!1);if(!L.scan(r))break;if(p=!0,S=L.scan(u)||"name",L.scan(l),"="===S?(X=L.scanUntil(h),L.scan(h),L.scanUntil(o)):"{"===S?(X=L.scanUntil(s),L.scan(f),L.scanUntil(o),S="&"):X=L.scanUntil(o),!L.scan(o))throw new Error("Unclosed tag at "+L.pos);if(C=">"==S?[S,X,E,L.pos,y,x,c]:[S,X,E,L.pos],x++,m.push(C),"#"===S||"^"===S)v.push(C);else if("/"===S){if(!(D=v.pop()))throw new Error('Unopened section "'+X+'" at '+E);if(D[1]!==X)throw new Error('Unclosed section "'+D[1]+'" at '+E)}else"name"===S||"{"===S||"&"===S?k=!0:"="===S&&j(X)}if(R(),D=v.pop())throw new Error('Unclosed section "'+D[1]+'" at '+L.pos);return function(t){for(var n,e=[],i=e,r=[],o=0,s=t.length;o<s;++o)switch((n=t[o])[0]){case"#":case"^":i.push(n),r.push(n),i=n[4]=[];break;case"/":r.pop()[5]=n[2],i=r.length>0?r[r.length-1][4]:e;break;default:i.push(n)}return e}(function(t){for(var n,e,i=[],r=0,o=t.length;r<o;++r)(n=t[r])&&("text"===n[0]&&e&&"text"===e[0]?(e[1]+=n[1],e[3]=n[3]):(i.push(n),e=n));return i}(m))}(t,e),s&&r.set(o,c)),c},m.prototype.render=function(t,n,e,i){var r=this.getConfigTags(i),o=this.parse(t,r),s=n instanceof v?n:new v(n,void 0);return this.renderTokens(o,s,e,t,i)},m.prototype.renderTokens=function(t,n,e,i,r){for(var o,s,a,c="",l=0,d=t.length;l<d;++l)a=void 0,"#"===(s=(o=t[l])[0])?a=this.renderSection(o,n,e,i,r):"^"===s?a=this.renderInverted(o,n,e,i,r):">"===s?a=this.renderPartial(o,n,e,r):"&"===s?a=this.unescapedValue(o,n):"name"===s?a=this.escapedValue(o,n,r):"text"===s&&(a=this.rawValue(o)),void 0!==a&&(c+=a);return c},m.prototype.renderSection=function(t,i,r,o,s){var a=this,c="",l=i.lookup(t[1]);if(l){if(n(l))for(var d=0,h=l.length;d<h;++d)c+=this.renderTokens(t[4],i.push(l[d]),r,o,s);else if("object"==typeof l||"string"==typeof l||"number"==typeof l)c+=this.renderTokens(t[4],i.push(l),r,o,s);else if(e(l)){if("string"!=typeof o)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(i.view,o.slice(t[3],t[5]),(function(t){return a.render(t,i,r,s)})))&&(c+=l)}else c+=this.renderTokens(t[4],i,r,o,s);return c}},m.prototype.renderInverted=function(t,e,i,r,o){var s=e.lookup(t[1]);if(!s||n(s)&&0===s.length)return this.renderTokens(t[4],e,i,r,o)},m.prototype.indentPartial=function(t,n,e){for(var i=n.replace(/[^ \t]/g,""),r=t.split("\n"),o=0;o<r.length;o++)r[o].length&&(o>0||!e)&&(r[o]=i+r[o]);return r.join("\n")},m.prototype.renderPartial=function(t,n,i,r){if(i){var o=this.getConfigTags(r),s=e(i)?i(t[1]):i[t[1]];if(null!=s){var a=t[4],c=s;0==t[5]&&a&&(c=this.indentPartial(s,a,t[6]));var l=this.parse(c,o);return this.renderTokens(l,n,i,c,r)}}},m.prototype.unescapedValue=function(t,n){var e=n.lookup(t[1]);if(null!=e)return e},m.prototype.escapedValue=function(t,n,e){var i=this.getConfigEscape(e)||g.escape,r=n.lookup(t[1]);if(null!=r)return"number"==typeof r&&i===g.escape?String(r):i(r)},m.prototype.rawValue=function(t){return t[1]},m.prototype.getConfigTags=function(t){return n(t)?t:t&&"object"==typeof t?t.tags:void 0},m.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!n(t)?t.escape:void 0};var g={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){w.templateCache=t},get templateCache(){return w.templateCache}},w=new m;return g.clearCache=function(){return w.clearCache()},g.parse=function(t,n){return w.parse(t,n)},g.render=function(t,e,i,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+((n(o=t)?"array":typeof o)+'" was given as the first argument for mustache#render(template, view, partials)'));var o;return w.render(t,e,i,r)},g.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return c[t]}))},g.Scanner=b,g.Context=v,g.Writer=m,g}();class o{constructor(t){this.rollbackLanguage="en",this.set=t=>{this.config=t},this.lang=t=>(this.element=t,this.closestElement=this.element.closest("[lang]"),this.closestElement&&this.closestElement.lang?(this.language=this.closestElement.lang,this.language):(this.language=this.rollbackLanguage,this.language)),this.update=t=>{const n=null!=t?t:this.element.shadowRoot;n&&n.querySelectorAll("*").forEach((t=>{t.tagName.toLowerCase().startsWith("mds-")&&t&&"updateLang"in t&&t.updateLang()}))},this.pluralize=(t,n)=>{const e=this.config[this.language]?this.config[this.language][t]:this.config[this.rollbackLanguage][t],i=[];Array.isArray(e)?(i.push(e[0]),i.push(e[1])):(i.push(e),i.push(e));const[o]=i;let s=o;const a=Object.keys(n);if(a.length>0){const[t]=a;"number"==typeof n[t]&&1!==n[t]&&(s=i[1])}return r.exports.render(s,n)},this.get=(t,n)=>n?this.pluralize(t,n):this.config[this.language]?this.config[this.language][t]:this.config[this.rollbackLanguage][t],t&&this.set(t)}}const s={selectRow:"Επιλογή γραμμής",unselectRow:"Αποεπιλογή γραμμής"},a={selectRow:"Select row",unselectRow:"Deselect row"},c={selectRow:"Seleccionar fila",unselectRow:"Deseleccionar fila"},l={selectRow:"Seleziona riga",unselectRow:"Deseleziona riga"},d=class{constructor(n){t(this,n),this.t=new o({el:s,en:a,es:c,it:l}),this.handleSelectionChange=t=>{var n;this.selected=t.detail.checked,null===(n=this.host.closest("mds-table"))||void 0===n||n.updateSelection()},this.language=void 0,this.interactive=void 0,this.overlayActions=void 0,this.selectable=void 0,this.selected=void 0,this.value=void 0}async updateLang(){this.language=this.t.lang(this.host),this.t.update()}componentWillLoad(){this.language=this.t.lang(this.host),this.hasActions=null!==this.host.querySelector('[slot="action"]')}componentDidLoad(){var t;this.hasActions&&(this.actions=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".actions"),this.sizerWidth=`${this.actions.offsetWidth.toString()}px`)}render(){return n(e,{key:"4905591b94a0af846d25e3cf55fe5805ecec76be",role:"row"},this.selectable&&n("mds-table-cell",{key:"07f8596969f20148250cc42fde0a806435825274",class:"selection-cell"},n("div",{key:"2d0bb74f3f5edaf6180c68a60457b374dcd7a4bd",class:"checkbox-wrapper"},n("mds-input-switch",{key:"e04fafd6a53ed1c6a4208b0317419fe21d08f28e",title:this.t.get(this.selected?"unselectRow":"selectRow"),lang:this.language,type:"checkbox",checked:this.selected,onMdsInputSwitchChange:this.handleSelectionChange}))),n("slot",{key:"d71c2ec9e675fd8190eeeb7d816a5e2566c6afc4"}),this.hasActions&&n("mds-table-cell",{key:"0ede2c5f98d7541920c4170d70c21f9f61ac93cb",class:"actions-cell"},n("div",{key:"8a097d4b04bd594778f51bedfe438fe1fd3479b3",class:"actions-sizer",style:{minHeight:"1px",maxWidth:this.sizerWidth,minWidth:this.sizerWidth}}),n("div",{key:"31f1fe8d7e4ee01f33f1c6a5b76e23fd875dfd82",class:"actions-view"},n("div",{key:"762785e31a306ba3c1e7654218bdf8cb33044cd3",class:"actions",style:{marginRight:`calc(${this.sizerWidth} + var(--mds-table-cell-padding))`}},n("slot",{key:"05ea2b5edc71e58859e55e52c1ab65ca0c5354f8",name:"action"})))))}get host(){return i(this)}};d.style="@tailwind utilities;\n\n:host {\n\n --mds-table-row-color-hover: var(--mds-table-color, rgb(var(--tone-neutral-02)));\n --mds-table-row-color-alt: var(--mds-table-color-alt, rgb(var(--tone-neutral-02)));\n --mds-table-row-background-hover: var(--mds-table-background, rgb(var(--tone-neutral)));\n --mds-table-row-background-alt: var(--mds-table-background-alt, rgb(var(--tone-neutral)));\n --mds-table-row-actions-gap: var(--mds-table-actions-gap, 1rem);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n color: var(--mds-table-row-color);\n display: table-row;\n position: relative;\n -webkit-transition-property: color;\n transition-property: color;\n\n}\n\n.selection-cell {\n vertical-align: middle;\n}\n\n.checkbox-wrapper {\n display: -ms-flexbox;\n display: flex;\n}\n\n:host([interactive]:hover) {\n\n --mds-table-row-actions-background: var(--mds-table-row-background-hover);\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n:host([selected]) {\n\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n:host([sorted]) {\n\n --mds-table-row-background: var(--mds-table-row-background-alt);\n --mds-table-row-color: var(--mds-table-row-color-alt);\n}\n\n:host([sorted][selected]) {\n\n --mds-table-row-background: var(--mds-table-row-background-hover);\n --mds-table-row-color: var(--mds-table-row-color-hover);\n}\n\n.actions-view {\n -ms-flex-align: center;\n align-items: center;\n display: -ms-flexbox;\n display: flex;\n inset: 0;\n -ms-flex-pack: end;\n justify-content: end;\n pointer-events: none;\n position: absolute;\n}\n\n.actions {\n\n --mds-table-row-actions-background: var(--mds-table-row-background);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-table-row-actions-background);\n display: -ms-inline-flexbox;\n display: inline-flex;\n gap: var(--mds-table-row-actions-gap);\n inset: 0;\n margin-right: 100%;\n padding-right: 0;\n pointer-events: auto;\n position: -webkit-sticky;\n position: sticky;\n right: 0;\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n -webkit-transition-duration: 500ms;\n transition-duration: 500ms;\n -webkit-transition-property: background-color, padding-right, -webkit-transform;\n transition-property: background-color, padding-right, -webkit-transform;\n transition-property: transform, background-color, padding-right;\n transition-property: transform, background-color, padding-right, -webkit-transform;\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n}\n\n:host(:hover) .actions {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n\n:host([overlay-actions]) .actions {\n padding-right: var(--mds-table-cell-padding);\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n}\n\n:host([overlay-actions]:hover) .actions {\n\n --mds-table-row-actions-background: var(--mds-table-row-background);\n\n -webkit-transform: translateX(0);\n\n transform: translateX(0);\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .actions {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host,\n .actions {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";export{d as mds_table_row}
|