@maggioli-design-system/mds-modal 5.1.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/cjs/mds-modal.cjs.entry.js +3 -3
  2. package/dist/collection/common/slot.js +13 -0
  3. package/dist/collection/components/mds-modal/mds-modal.css +10 -23
  4. package/dist/collection/components/mds-modal/mds-modal.js +2 -2
  5. package/dist/collection/components/mds-modal/test/mds-modal.stories.js +7 -2
  6. package/dist/collection/dictionary/animation.js +5 -0
  7. package/dist/collection/dictionary/file-extensions.js +6 -59
  8. package/dist/collection/fixtures/filenames.js +62 -1
  9. package/dist/collection/type/animation.js +1 -0
  10. package/dist/collection/type/variant-file-format.js +5 -0
  11. package/dist/components/mds-modal.js +3 -3
  12. package/dist/documentation.json +11 -1
  13. package/dist/esm/mds-modal.entry.js +3 -3
  14. package/dist/esm-es5/mds-modal.entry.js +1 -1
  15. package/dist/mds-modal/mds-modal.esm.js +1 -1
  16. package/dist/mds-modal/p-08a99956.entry.js +1 -0
  17. package/dist/mds-modal/p-0d78ea55.system.entry.js +1 -0
  18. package/dist/mds-modal/p-67c6f337.system.js +1 -1
  19. package/dist/stats.json +35 -18
  20. package/dist/types/common/slot.d.ts +2 -0
  21. package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +2 -1
  22. package/dist/types/dictionary/animation.d.ts +2 -0
  23. package/dist/types/fixtures/filenames.d.ts +62 -1
  24. package/dist/types/type/animation.d.ts +1 -0
  25. package/dist/types/type/file-types.d.ts +1 -1
  26. package/dist/types/type/variant-file-format.d.ts +1 -1
  27. package/documentation.json +27 -7
  28. package/package.json +2 -2
  29. package/readme.md +2 -0
  30. package/src/common/slot.ts +15 -0
  31. package/src/components/mds-modal/css/mds-modal-animate-left.css +2 -1
  32. package/src/components/mds-modal/css/mds-modal-animate-right.css +2 -1
  33. package/src/components/mds-modal/css/mds-modal-animate.css +0 -10
  34. package/src/components/mds-modal/mds-modal.css +6 -0
  35. package/src/components/mds-modal/mds-modal.tsx +1 -1
  36. package/src/components/mds-modal/readme.md +2 -0
  37. package/src/components/mds-modal/test/mds-modal.stories.tsx +10 -4
  38. package/src/dictionary/animation.ts +8 -0
  39. package/src/dictionary/file-extensions.ts +6 -60
  40. package/src/fixtures/filenames.ts +63 -0
  41. package/src/fixtures/icons.json +1 -0
  42. package/src/meta/file-format/locale.el.json +26 -21
  43. package/src/meta/file-format/locale.en.json +26 -21
  44. package/src/meta/file-format/locale.es.json +26 -21
  45. package/src/meta/file-format/locale.it.json +26 -21
  46. package/src/type/animation.ts +3 -0
  47. package/src/type/file-types.ts +6 -0
  48. package/src/type/variant-file-format.ts +6 -0
  49. package/www/build/mds-modal.esm.js +1 -1
  50. package/www/build/p-08a99956.entry.js +1 -0
  51. package/www/build/p-0d78ea55.system.entry.js +1 -0
  52. package/www/build/p-67c6f337.system.js +1 -1
  53. package/dist/mds-modal/p-2bf0fd79.system.entry.js +0 -1
  54. package/dist/mds-modal/p-fbfe7e2e.entry.js +0 -1
  55. package/www/build/p-2bf0fd79.system.entry.js +0 -1
  56. package/www/build/p-fbfe7e2e.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-12-04T15:30:05",
2
+ "timestamp": "2024-12-19T14:37:09",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.22.2",
@@ -225,11 +225,21 @@
225
225
  "annotation": "prop",
226
226
  "docs": "Set the background color of the window"
227
227
  },
228
+ {
229
+ "name": "--mds-modal-window-distance",
230
+ "annotation": "prop",
231
+ "docs": "Set the distance between the modal window and the screen bounds"
232
+ },
228
233
  {
229
234
  "name": "--mds-modal-window-overflow",
230
235
  "annotation": "prop",
231
236
  "docs": "Set the overflow of the window"
232
237
  },
238
+ {
239
+ "name": "--mds-modal-window-radius",
240
+ "annotation": "prop",
241
+ "docs": "Set the border radius of the window"
242
+ },
233
243
  {
234
244
  "name": "--mds-modal-window-shadow",
235
245
  "annotation": "prop",
@@ -438,7 +448,7 @@
438
448
  "path": "src/components/mds-dropdown/meta/event-detail.ts"
439
449
  },
440
450
  "src/type/file-types.ts::ExtensionSuffixType": {
441
- "declaration": "export type ExtensionSuffixType =\n | '7z'\n | 'ace'\n | 'ai'\n | 'db'\n | 'default'\n | 'dmg'\n | 'doc'\n | 'docm'\n | 'docx'\n | 'eml'\n | 'eps'\n | 'exe'\n | 'flac'\n | 'gif'\n | 'heic'\n | 'htm'\n | 'html'\n | 'jpe'\n | 'jpeg'\n | 'jpg'\n | 'js'\n | 'json'\n | 'jsx'\n | 'm2v'\n | 'mp2'\n | 'mp3'\n | 'mp4'\n | 'mp4v'\n | 'mpeg'\n | 'mpg'\n | 'mpg4'\n | 'mpga'\n | 'odp'\n | 'ods'\n | 'odt'\n | 'pdf'\n | 'php'\n | 'png'\n | 'ppt'\n | 'rar'\n | 'rtf'\n | 'sass'\n | 'shtml'\n | 'svg'\n | 'tar'\n | 'tiff'\n | 'ts'\n | 'txt'\n | 'wav'\n | 'webp'\n | 'xar'\n | 'xls'\n | 'xlsx'\n | 'zip'",
451
+ "declaration": "export type ExtensionSuffixType =\n | '7z'\n | 'ace'\n | 'ai'\n | 'db'\n | 'default'\n | 'dmg'\n | 'doc'\n | 'docm'\n | 'docx'\n | 'eml'\n | 'eps'\n | 'exe'\n | 'flac'\n | 'gif'\n | 'heic'\n | 'htm'\n | 'html'\n | 'jpe'\n | 'jpeg'\n | 'jpg'\n | 'js'\n | 'json'\n | 'jsx'\n | 'm2v'\n | 'mp2'\n | 'mp3'\n | 'mp4'\n | 'mp4v'\n | 'mpeg'\n | 'mpg'\n | 'mpg4'\n | 'mpga'\n | 'odf'\n | 'odp'\n | 'ods'\n | 'odt'\n | 'odt'\n | 'ole'\n | 'p7m'\n | 'pdf'\n | 'php'\n | 'png'\n | 'ppt'\n | 'rar'\n | 'rtf'\n | 'sass'\n | 'shtml'\n | 'svg'\n | 'tar'\n | 'tiff'\n | 'ts'\n | 'tsd'\n | 'txt'\n | 'wav'\n | 'webp'\n | 'xar'\n | 'xls'\n | 'xlsx'\n | 'xml'\n | 'zip'",
442
452
  "docstring": "",
443
453
  "path": "src/type/file-types.ts"
444
454
  },
@@ -677,11 +687,6 @@
677
687
  "docstring": "",
678
688
  "path": "src/components/mds-progress/meta/types.ts"
679
689
  },
680
- "src/type/date.ts::ISO8601Date": {
681
- "declaration": "type ISO8601Date = ISO8601DateFormat<string, 'ISO8601Date'>",
682
- "docstring": "",
683
- "path": "src/type/date.ts"
684
- },
685
690
  "src/components/mds-push-notification/meta/types.ts::NotificationDateFormatType": {
686
691
  "declaration": "string",
687
692
  "docstring": "",
@@ -712,6 +717,11 @@
712
717
  "docstring": "",
713
718
  "path": "src/components/mds-stepper-bar-item/meta/event-detail.ts"
714
719
  },
720
+ "src/type/animation.ts::HorizontalActionsAnimationType": {
721
+ "declaration": "export type HorizontalActionsAnimationType =\n | 'fade'\n | 'slide'",
722
+ "docstring": "",
723
+ "path": "src/type/animation.ts"
724
+ },
715
725
  "src/components/mds-tab/meta/event-detail.ts::MdsTabEventDetail": {
716
726
  "declaration": "export interface MdsTabEventDetail {\n id: number\n value?: string\n}",
717
727
  "docstring": "",
@@ -732,6 +742,16 @@
732
742
  "docstring": "",
733
743
  "path": "src/components/mds-tab-item/meta/event-detail.ts"
734
744
  },
745
+ "src/components/mds-table/meta/event-detail.ts::MdsTableSelectionEventDetail": {
746
+ "declaration": "export interface MdsTableSelectionEventDetail {\n rows: MdsTableRowSelection[]\n}",
747
+ "docstring": "",
748
+ "path": "src/components/mds-table/meta/event-detail.ts"
749
+ },
750
+ "src/components/mds-table/meta/type.ts::MdsTableRowSelection": {
751
+ "declaration": "{\n index: number\n value?: string | number\n}",
752
+ "docstring": "",
753
+ "path": "src/components/mds-table/meta/type.ts"
754
+ },
735
755
  "src/components/mds-table-header-cell/meta/types.ts::SortDirectionType": {
736
756
  "declaration": "export type SortDirectionType =\n | 'ascending'\n | 'descending'\n | 'none'",
737
757
  "docstring": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-modal",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
4
4
  "description": "mds-modal is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "test": "stencil test --spec --e2e"
25
25
  },
26
26
  "dependencies": {
27
- "@maggioli-design-system/mds-button": "6.1.0",
27
+ "@maggioli-design-system/mds-button": "6.1.3",
28
28
  "@maggioli-design-system/styles": "15.5.0",
29
29
  "@stencil/core": "4.22.2",
30
30
  "clsx": "2.1.0"
package/readme.md CHANGED
@@ -49,7 +49,9 @@ This is a web-component from Maggioli Design System [Magma](https://magma.maggio
49
49
  | `--mds-modal-overlay-color` | Set the overlay color of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`. |
50
50
  | `--mds-modal-overlay-opacity` | Set the overlay color opacity of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`. |
51
51
  | `--mds-modal-window-background` | Set the background color of the window |
52
+ | `--mds-modal-window-distance` | Set the distance between the modal window and the screen bounds |
52
53
  | `--mds-modal-window-overflow` | Set the overflow of the window |
54
+ | `--mds-modal-window-radius` | Set the border radius of the window |
53
55
  | `--mds-modal-window-shadow` | Set the box shadow of the window |
54
56
  | `--mds-modal-z-index` | Set the z-index of the window when the component is opened |
55
57
 
@@ -0,0 +1,15 @@
1
+ const hasSlottedElements = (el: HTMLElement, name?: string): boolean => {
2
+ let query = 'slot'
3
+ if (name) {
4
+ query = `slot[name=${name}]`
5
+ }
6
+ const slot: HTMLSlotElement = el.shadowRoot?.querySelector(query) as HTMLSlotElement
7
+ if (slot) {
8
+ return slot.assignedNodes().length > 0
9
+ }
10
+ return false
11
+ }
12
+
13
+ export {
14
+ hasSlottedElements,
15
+ }
@@ -4,7 +4,8 @@
4
4
  }
5
5
 
6
6
  :host([position="left"]) .window {
7
- height: 100dvh;
7
+ height: 100%;
8
+ max-height: calc(100dvh - calc(var(--mds-modal-window-distance) * 2));
8
9
  max-width: calc(100vw - 80px);
9
10
  }
10
11
 
@@ -4,7 +4,8 @@
4
4
  }
5
5
 
6
6
  :host([position="right"]) .window {
7
- height: 100dvh;
7
+ height: 100%;
8
+ max-height: calc(100dvh - calc(var(--mds-modal-window-distance) * 2));
8
9
  max-width: calc(100vw - 80px);
9
10
  }
10
11
 
@@ -1,14 +1,4 @@
1
- :host {
2
- @apply
3
- mobile:p-400
4
- p-800;
5
- }
6
-
7
1
  :host .window {
8
- @apply
9
- mobile:-m-400
10
- -m-800;
11
-
12
2
  transition-delay: 0s, calc(var(--mds-modal-transition-duration) / 2);
13
3
  }
14
4
 
@@ -10,6 +10,8 @@
10
10
  * @prop --mds-modal-overlay-opacity: Set the overlay color opacity of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`.
11
11
  * @prop --mds-modal-window-background: Set the background color of the window
12
12
  * @prop --mds-modal-window-overflow: Set the overflow of the window
13
+ * @prop --mds-modal-window-radius: Set the border radius of the window
14
+ * @prop --mds-modal-window-distance: Set the distance between the modal window and the screen bounds
13
15
  * @prop --mds-modal-window-shadow: Set the box shadow of the window
14
16
  * @prop --mds-modal-z-index: Set the z-index of the window when the component is opened
15
17
  */
@@ -23,7 +25,9 @@
23
25
  --mds-modal-transition-outro-ease: theme('transitionTimingFunction.in-out-quint');
24
26
  --mds-modal-window-background: theme('colors.tone-neutral');
25
27
  --mds-modal-window-overflow: auto;
28
+ --mds-modal-window-radius: 0;
26
29
  --mds-modal-window-shadow: theme('boxShadow.2xl');
30
+ --mds-modal-window-distance: 0;
27
31
  --mds-modal-z-index: var(--magma-modal-z-index);
28
32
 
29
33
  @apply ease-in-out-expo;
@@ -76,9 +80,11 @@
76
80
  @apply gap-0;
77
81
 
78
82
  background-color: var(--mds-modal-window-background);
83
+ border-radius: var(--mds-modal-window-radius);
79
84
  box-shadow: var(--mds-modal-window-shadow);
80
85
  display: grid;
81
86
  grid-template-rows: 1fr;
87
+ margin: var(--mds-modal-window-distance);
82
88
  overflow: var(--mds-modal-window-overflow);
83
89
  }
84
90
 
@@ -133,7 +133,7 @@ export class MdsModal {
133
133
  <Host aria-modal={clsx(this.opened ? 'true' : 'false' )} onClick={(e: Event) => { this.closeModal(e) }}>
134
134
  { this.window
135
135
  ? <slot name="window"/>
136
- : <div class={clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`)} role="dialog" part="window">
136
+ : <div class={clsx('window', (this.top || this.bottom) && `window-${this.top ? '-top' : ''}${this.bottom ? '-bottom' : ''}`)} part="window">
137
137
  { this.top &&
138
138
  <slot name="top"/>
139
139
  }
@@ -47,7 +47,9 @@
47
47
  | `--mds-modal-overlay-color` | Set the overlay color of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`. |
48
48
  | `--mds-modal-overlay-opacity` | Set the overlay color opacity of the background when the component is opened, this property can be inherited from `globals.css` in `styles^8.0.0`. |
49
49
  | `--mds-modal-window-background` | Set the background color of the window |
50
+ | `--mds-modal-window-distance` | Set the distance between the modal window and the screen bounds |
50
51
  | `--mds-modal-window-overflow` | Set the overflow of the window |
52
+ | `--mds-modal-window-radius` | Set the border radius of the window |
51
53
  | `--mds-modal-window-shadow` | Set the box shadow of the window |
52
54
  | `--mds-modal-z-index` | Set the z-index of the window when the component is opened |
53
55
 
@@ -26,19 +26,19 @@ 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-800 flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09">
29
+ <header slot="top" class="p-800 flex gap-400 items-center border-b border-solid border-0 border-tone-neutral-09 max-w-[400px]">
30
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-800">
36
+ <div class="p-800 max-w-[400px]">
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-800 flex gap-400 text-tone-neutral-02 border-t border-solid border-0 border-tone-neutral-09">
41
+ <footer slot="bottom" class="p-800 flex gap-400 text-tone-neutral-02 border-t border-solid border-0 border-tone-neutral-09 max-w-[400px]">
42
42
  <mds-author class="flex-grow">
43
43
  <mds-avatar slot="avatar" class="w-1600 mobile:w-1200" src="/avatar-01-200x200.jpeg"/>
44
44
  <mds-text typography="h6">{ fullName }</mds-text>
@@ -81,7 +81,13 @@ export const Default = Template.bind({})
81
81
  Default.args = {
82
82
  position: 'right',
83
83
  }
84
- export const CustomWindow = CustomTemplate.bind({})
84
+
85
+ export const DefaultWindowCustomized = Template.bind({})
86
+ DefaultWindowCustomized.args = {
87
+ position: 'right',
88
+ style: { '--mds-modal-window-distance': '1rem', '--mds-modal-window-radius': '1rem' },
89
+ }
90
+ export const CustomWindowElement = CustomTemplate.bind({})
85
91
  export const Interactive = InteractiveTemplate.bind({})
86
92
  export const ARIATest = CustomTemplate.bind({})
87
93
  ARIATest.args = {
@@ -0,0 +1,8 @@
1
+ const horizontalActionsAnimationDictionary = [
2
+ 'fade',
3
+ 'slide',
4
+ ]
5
+
6
+ export {
7
+ horizontalActionsAnimationDictionary,
8
+ }
@@ -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
  }
@@ -8,6 +8,7 @@
8
8
  "mdi/email",
9
9
  "mdi/file-document-remove-outline",
10
10
  "mdi/harddisk",
11
+ "mdi/license",
11
12
  "mdi/map-marker",
12
13
  "mdi/replay",
13
14
  "mdi/vector-curve",
@@ -1,39 +1,44 @@
1
1
  {
2
2
  "appleDiskImage": "Εικόνα δίσκου Apple",
3
+ "certificateTSD": "Πιστοποιητικό χρονικής σήμανσης",
3
4
  "compressedArchive": "Συμπιεσμένο αρχείο",
4
- "uncompressedArchive": "Μη συμπιεσμένο αρχείο",
5
5
  "compressedAudio": "Συμπιεσμένος ήχος",
6
- "uncompressedAudio": "Μη συμπιεσμένος ήχος",
6
+ "compressedDocumentMS": "Συμπιεσμένο έγγραφο Microsoft Word",
7
+ "compressedImage": "Συμπιεσμένη εικόνα",
7
8
  "dart": "Αρχείο Dart",
8
9
  "documentAdobe": "Έγγραφο Adobe",
9
- "compressedDocumentMS": "Συμπιεσμένο έγγραφο Microsoft Word",
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
- "documentLO": "Έγγραφο LibreOffice",
20
+ "fileEPS": "Διανυσματικό αρχείο Corel Draw",
16
21
  "fileEXE": "Εκτελέσιμο αρχείο Windows",
17
- "videoHD": "Βίντεο υψηλής ανάλυσης",
18
- "videoSD": "Βίντεο χαμηλής ανάλυσης",
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
- "fileSASS": "Αρχείο Syntactically Awesome StyleSheets",
34
- "imageTIFF": "Εικόνα Tag Image File Format",
35
- "fileTSX": "Αρχείο TypeScript Extended Syntax",
36
- "fileTS": "Αρχείο TypeScript",
37
- "fileAI": "Διανυσματικό αρχείο Adobe Illustrator",
38
- "fileEPS": "Διανυσματικό αρχείο Corel Draw"
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
- "uncompressedAudio": "Uncompressed Audio",
6
+ "compressedDocumentMS": "Compressed Microsoft Word Document",
7
+ "compressedImage": "Compressed Image",
7
8
  "dart": "Dart File",
8
9
  "documentAdobe": "Adobe Document",
9
- "compressedDocumentMS": "Compressed Microsoft Word Document",
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
- "documentLO": "LibreOffice Document",
20
+ "fileEPS": "Corel Draw Vector File",
16
21
  "fileEXE": "Windows Executable File",
17
- "videoHD": "High Definition Video",
18
- "videoSD": "Standard Definition Video",
19
- "spreadsheetLO": "LibreOffice Spreadsheet",
20
- "spreadsheetMS": "Microsoft Office Spreadsheet",
21
- "unknown": "Unknown File Format",
22
- "imageHEIC": "High Efficiency Image File Format",
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
- "fileSASS": "Syntactically Awesome StyleSheets File",
34
- "imageTIFF": "Tag Image File Format Image",
35
- "fileTSX": "TypeScript Extended Syntax File",
36
- "fileTS": "TypeScript File",
37
- "fileAI": "Adobe Illustrator Vector File",
38
- "fileEPS": "Corel Draw Vector File"
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
  }