@maggioli-design-system/mds-input-tip 1.1.3 → 1.2.2

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 (99) hide show
  1. package/dist/cjs/{index-f87612f6.js → index-442db91d.js} +14 -3
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-input-tip.cjs.entry.js +2 -2
  4. package/dist/cjs/mds-input-tip.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/common/aria.js +17 -1
  7. package/dist/collection/common/device.js +6 -0
  8. package/dist/collection/common/keyboard-manager.js +2 -2
  9. package/dist/collection/common/locale.js +17 -5
  10. package/dist/collection/components/mds-input-tip/mds-input-tip.css +1 -228
  11. package/dist/collection/dictionary/button.js +1 -0
  12. package/dist/collection/dictionary/file-extensions.js +114 -56
  13. package/dist/collection/dictionary/text.js +60 -1
  14. package/dist/collection/dictionary/variant.js +10 -1
  15. package/dist/collection/type/variant-file-format.js +0 -34
  16. package/dist/components/mds-input-tip.js +1 -1
  17. package/dist/documentation.json +3 -3
  18. package/dist/esm/{index-a04da9f4.js → index-8fed469d.js} +14 -3
  19. package/dist/esm/loader.js +2 -2
  20. package/dist/esm/mds-input-tip.entry.js +2 -2
  21. package/dist/esm/mds-input-tip.js +3 -3
  22. package/dist/esm-es5/index-8fed469d.js +1 -0
  23. package/dist/esm-es5/loader.js +1 -1
  24. package/dist/esm-es5/mds-input-tip.entry.js +1 -1
  25. package/dist/esm-es5/mds-input-tip.js +1 -1
  26. package/dist/mds-input-tip/mds-input-tip.esm.js +1 -1
  27. package/dist/mds-input-tip/mds-input-tip.js +1 -1
  28. package/dist/mds-input-tip/p-37c61f56.system.js +2 -0
  29. package/dist/mds-input-tip/p-3e967425.js +2 -0
  30. package/dist/mds-input-tip/p-4486a5e4.entry.js +1 -0
  31. package/dist/mds-input-tip/{p-ca408384.system.js → p-c915dfb3.system.js} +1 -1
  32. package/dist/mds-input-tip/p-fadf816e.system.entry.js +1 -0
  33. package/dist/stats.json +34 -34
  34. package/dist/types/common/aria.d.ts +3 -1
  35. package/dist/types/common/date.d.ts +1 -1
  36. package/dist/types/common/device.d.ts +2 -0
  37. package/dist/types/common/file.d.ts +3 -4
  38. package/dist/types/common/locale.d.ts +3 -1
  39. package/dist/types/dictionary/file-extensions.d.ts +2 -1
  40. package/dist/types/dictionary/text.d.ts +3 -1
  41. package/dist/types/dictionary/variant.d.ts +2 -1
  42. package/dist/types/stencil-public-runtime.d.ts +6 -0
  43. package/dist/types/type/autocomplete.d.ts +1 -1
  44. package/dist/types/type/button.d.ts +1 -1
  45. package/dist/types/type/header-bar.d.ts +2 -0
  46. package/dist/types/type/input.d.ts +3 -0
  47. package/dist/types/type/text.d.ts +2 -0
  48. package/dist/types/type/variant-file-format.d.ts +4 -4
  49. package/dist/types/type/variant.d.ts +2 -1
  50. package/documentation.json +46 -26
  51. package/package.json +5 -5
  52. package/src/common/aria.ts +22 -2
  53. package/src/common/device.ts +9 -0
  54. package/src/common/file.ts +2 -3
  55. package/src/common/keyboard-manager.ts +2 -2
  56. package/src/common/locale.ts +20 -6
  57. package/src/common/unit.ts +1 -1
  58. package/src/components/mds-input-tip/.gitlab-ci.yml +5 -10
  59. package/src/components/mds-input-tip/mds-input-tip.css +2 -2
  60. package/src/dictionary/button.ts +1 -0
  61. package/src/dictionary/file-extensions.ts +118 -57
  62. package/src/dictionary/text.ts +64 -0
  63. package/src/dictionary/variant.ts +11 -0
  64. package/src/fixtures/icons.json +37 -3
  65. package/src/fixtures/iconsauce.json +26 -1
  66. package/src/meta/file-format/locale.el.json +39 -0
  67. package/src/meta/file-format/locale.en.json +39 -0
  68. package/src/meta/file-format/locale.es.json +39 -0
  69. package/src/meta/file-format/locale.it.json +39 -0
  70. package/src/tailwind/components.css +1 -1
  71. package/src/type/autocomplete.ts +0 -1
  72. package/src/type/button.ts +1 -0
  73. package/src/type/header-bar.ts +11 -0
  74. package/src/type/input.ts +4 -0
  75. package/src/type/text.ts +59 -0
  76. package/src/type/variant-file-format.ts +20 -37
  77. package/src/type/variant.ts +9 -1
  78. package/www/build/mds-input-tip.esm.js +1 -1
  79. package/www/build/mds-input-tip.js +1 -1
  80. package/www/build/p-37c61f56.system.js +2 -0
  81. package/www/build/p-3e967425.js +2 -0
  82. package/www/build/p-4486a5e4.entry.js +1 -0
  83. package/www/build/{p-ca408384.system.js → p-c915dfb3.system.js} +1 -1
  84. package/www/build/p-fadf816e.system.entry.js +1 -0
  85. package/dist/collection/type/language.js +0 -1
  86. package/dist/esm-es5/index-a04da9f4.js +0 -1
  87. package/dist/mds-input-tip/p-14639038.entry.js +0 -1
  88. package/dist/mds-input-tip/p-58828816.system.js +0 -2
  89. package/dist/mds-input-tip/p-96bf634c.js +0 -2
  90. package/dist/mds-input-tip/p-ed74ada1.system.entry.js +0 -1
  91. package/dist/types/interface/input-value.d.ts +0 -4
  92. package/dist/types/type/language.d.ts +0 -1
  93. package/src/interface/input-value.ts +0 -5
  94. package/src/type/language.ts +0 -4
  95. package/www/build/p-14639038.entry.js +0 -1
  96. package/www/build/p-58828816.system.js +0 -2
  97. package/www/build/p-96bf634c.js +0 -2
  98. package/www/build/p-ed74ada1.system.entry.js +0 -1
  99. /package/dist/collection/{interface/input-value.js → type/header-bar.js} +0 -0
@@ -36,14 +36,14 @@ export class KeyboardManager {
36
36
 
37
37
  attachEscapeBehavior = (callback: () => void): void => {
38
38
  this.escapeCallback = callback
39
- if (window !== undefined) {
39
+ if (typeof window !== 'undefined') {
40
40
  window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
41
41
  }
42
42
  }
43
43
 
44
44
  detachEscapeBehavior = (): void => {
45
45
  this.escapeCallback = () => { return }
46
- if (window !== undefined) {
46
+ if (typeof window !== 'undefined') {
47
47
  window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))
48
48
  }
49
49
  }
@@ -1,4 +1,4 @@
1
- import Handlebars from 'handlebars'
1
+ import { render } from 'mustache'
2
2
 
3
3
  type LocaleConfig = {
4
4
  el?: Record<string, string | string[]>
@@ -12,6 +12,7 @@ export class Locale {
12
12
  language: string
13
13
  config: LocaleConfig
14
14
  closestElement:HTMLElement
15
+ element: HTMLElement
15
16
 
16
17
  constructor (configData?: LocaleConfig) {
17
18
  if (configData) {
@@ -23,8 +24,9 @@ export class Locale {
23
24
  this.config = configData
24
25
  }
25
26
 
26
- lang = (element: HTMLElement): string => {
27
- this.closestElement = element.closest('[lang]') as HTMLElement
27
+ lang = (el: HTMLElement): string => {
28
+ this.element = el
29
+ this.closestElement = this.element.closest('[lang]') as HTMLElement
28
30
 
29
31
  if (this.closestElement) {
30
32
  if (this.closestElement.lang) {
@@ -37,11 +39,24 @@ export class Locale {
37
39
  return this.language
38
40
  }
39
41
 
42
+ update = (doc?: Document | ShadowRoot): void => {
43
+ const context = doc ?? this.element.shadowRoot
44
+ context && context.querySelectorAll('*').forEach(el => {
45
+ if (el.tagName.toLowerCase().startsWith('mds-')) {
46
+ // eslint-disable-next-line no-restricted-syntax
47
+ if (el && 'updateLang' in el) {
48
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
49
+ (el as any).updateLang()
50
+ }
51
+ }
52
+ })
53
+ }
54
+
40
55
  private pluralize = (tag: string | string[], context: Record<string, string | number>): string => {
41
56
 
42
57
  const languagePhrase: string | string[] = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag]
43
58
  const phrases: string[] = []
44
-
59
+
45
60
  if (Array.isArray(languagePhrase)) {
46
61
  phrases.push(languagePhrase[0])
47
62
  phrases.push(languagePhrase[1])
@@ -63,8 +78,7 @@ export class Locale {
63
78
  }
64
79
  }
65
80
 
66
- const template = Handlebars.compile(translatePhrase)
67
- return template(context)
81
+ return render(translatePhrase, context)
68
82
  }
69
83
 
70
84
  get = (tag: string | string[], context?: Record<string, string | number>): string => {
@@ -23,7 +23,7 @@ const cssSizeToNumber = (size: string, defaultValue = 0): number => {
23
23
  if (size.includes('em')) {
24
24
  return Number(size.replace('em', '')) * 16
25
25
  }
26
-
26
+
27
27
  return defaultValue
28
28
  }
29
29
 
@@ -2,24 +2,19 @@
2
2
  variables:
3
3
  COMPONENT: mds-input-tip
4
4
 
5
- # ISOLATE
6
- input-tip-isolate:
7
- extends: [.base-isolate, .base-input-tip]
8
- dependencies: [base-stencil-build]
9
-
10
5
  # TEST
11
6
  input-tip-publish-test:
12
7
  extends: [.base-stencil-publish-test, .base-input-tip]
13
- dependencies: [base-stencil-build, input-tip-isolate]
8
+ dependencies: [base-stencil-build, base-isolate]
14
9
 
15
10
  # PUBLISH
16
11
  input-tip-publish:
17
12
  extends: [.base-stencil-publish, .base-input-tip]
18
- dependencies: [base-stencil-build, input-tip-isolate]
19
- needs: [base-stencil-build, input-tip-isolate, input-tip-publish-test]
13
+ dependencies: [base-stencil-build, base-isolate]
14
+ needs: [base-stencil-build, base-isolate, input-tip-publish-test]
20
15
 
21
16
  # INSTALL TEST
22
17
  input-tip-install-test:
23
18
  extends: [.base-stencil-install-test, .base-input-tip]
24
- dependencies: [base-stencil-build, input-tip-isolate]
25
- needs: [base-stencil-build, input-tip-isolate, input-tip-publish]
19
+ dependencies: [base-stencil-build, base-isolate]
20
+ needs: [base-stencil-build, base-isolate, input-tip-publish]
@@ -9,14 +9,14 @@
9
9
  ease-out-expo
10
10
  gap-100
11
11
  left-100
12
- right-100
13
- transition-cosmetic;
12
+ right-100;
14
13
 
15
14
  display: flex;
16
15
  justify-content: flex-end;
17
16
  pointer-events: none;
18
17
  position: absolute;
19
18
  transform: var(--mds-input-tip-active-translate);
19
+ transition-property: transform;
20
20
  }
21
21
 
22
22
  :host(:empty) {
@@ -4,6 +4,7 @@ const buttonVariantDictionary = [
4
4
  'info',
5
5
  'light',
6
6
  'primary',
7
+ 'secondary',
7
8
  'success',
8
9
  'warning',
9
10
  ]
@@ -1,72 +1,133 @@
1
+ import { FileFormat } from '@type/variant-file-format'
2
+
1
3
  interface FileExtenstion {
2
4
  [key: string]: ExtensionInfo
3
5
  }
4
6
 
5
7
  interface ExtensionInfo {
6
8
  preview?: boolean
7
- format: string
9
+ format: FileFormat
8
10
  description: string
9
11
  }
10
12
 
11
13
  const fileExtensionsDictionary: FileExtenstion = {
12
- '7z': { format: 'archive', description: 'Archivio compresso' },
13
- ace: { format: 'archive', description: 'Archivio compresso' },
14
- ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
15
- dart: { format: 'code', description: 'Dart' },
16
- db: { format: 'data', description: 'File di database' },
17
- default: { format: 'attachment', description: 'Formato sconosciuto' },
18
- dmg: { format: 'executable', description: 'Apple Disk Image' },
19
- doc: { format: 'text', description: 'Documento Microsoft Word' },
20
- docm: { format: 'text', description: 'Documento Microsoft Word' },
21
- docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
22
- eml: { format: 'email', description: 'E-mail di posta elettronica' },
23
- eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
24
- exe: { format: 'executable', description: 'File eseguibile Windows' },
25
- flac: { format: 'audio', description: 'Audio non compresso' },
26
- gif: { format: 'image', description: 'Immagine compressa', preview: true },
27
- htm: { format: 'markup', description: 'Pagina web' },
28
- heic: { format: 'image', description: 'High Efficiency Image File Format' },
29
- html: { format: 'markup', description: 'Pagina web' },
30
- jpe: { format: 'image', description: 'Immagine compressa', preview: true },
31
- jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
32
- jpg: { format: 'image', description: 'Immagine compressa', preview: true },
33
- js: { format: 'code', description: 'JavaScript' },
34
- json: { format: 'data', description: 'JavaScript Object Notation' },
35
- jsx: { format: 'code', description: 'JavaScript' },
36
- m2v: { format: 'video', description: 'Filmato SD' },
37
- mp2: { format: 'audio', description: 'Audio compresso' },
38
- mp3: { format: 'audio', description: 'Audio compresso' },
39
- mp4: { format: 'video', description: 'Filmato HD' },
40
- mp4v: { format: 'video', description: 'Filmato HD' },
41
- mpeg: { format: 'video', description: 'Filmato SD' },
42
- mpg4: { format: 'video', description: 'Filmato SD' },
43
- mpg: { format: 'video', description: 'Filmato SD' },
44
- mpga: { format: 'audio', description: 'Audio compresso' },
45
- odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
46
- ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
47
- odt: { format: 'text', description: 'File di testo LibreOffice' },
48
- pdf: { format: 'document', description: 'Documento Adobe' },
49
- php: { format: 'code', description: 'Hypertext Preprocessor' },
50
- png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
51
- ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
52
- rar: { format: 'archive', description: 'Archivio compresso' },
53
- rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
54
- sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
55
- shtml: { format: 'markup', description: 'Pagina web' },
56
- svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
57
- tar: { format: 'archive', description: 'Archivio non compresso' },
58
- tiff: { format: 'image', description: 'Tag Image File Format' },
59
- ts: { format: 'code', description: 'TypeScript' },
60
- tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
61
- txt: { format: 'text', description: 'Documento di testo non formattato' },
62
- wav: { format: 'audio', description: 'Audio non compresso' },
63
- webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
64
- xar: { format: 'archive', description: 'Archivio compresso' },
65
- xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
66
- xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
67
- zip: { format: 'archive', description: 'Archivio compresso' },
14
+ '7z': { format: 'archive', description: 'compressedArchive' },
15
+ ace: { format: 'archive', description: 'compressedArchive' },
16
+ ai: { format: 'vector', description: 'fileAI' },
17
+ dart: { format: 'code', description: 'dart' },
18
+ db: { format: 'data', description: 'fileDB' },
19
+ default: { format: 'attachment', description: 'unknown' },
20
+ dmg: { format: 'executable', description: 'appleDiskImage' },
21
+ doc: { format: 'text', description: 'documentMS' },
22
+ docm: { format: 'text', description: 'documentMS' },
23
+ docx: { format: 'text', description: 'compressedDocumentMS' },
24
+ eml: { format: 'email', description: 'email' },
25
+ eps: { format: 'vector', description: 'fileEPS' },
26
+ exe: { format: 'executable', description: 'fileEXE' },
27
+ flac: { format: 'audio', description: 'uncompressedAudio' },
28
+ gif: { format: 'image', description: 'compressedImage', preview: true },
29
+ htm: { format: 'markup', description: 'documentWeb' },
30
+ heic: { format: 'image', description: 'imageHEFF' },
31
+ html: { format: 'markup', description: 'documentWeb' },
32
+ jpe: { format: 'image', description: 'compressedImage', preview: true },
33
+ jpeg: { format: 'image', description: 'compressedImage', preview: true },
34
+ jpg: { format: 'image', description: 'compressedImage', preview: true },
35
+ js: { format: 'code', description: 'fileJS' },
36
+ json: { format: 'data', description: 'fileJSON' },
37
+ jsx: { format: 'code', description: 'fileJS' },
38
+ m2v: { format: 'video', description: 'videoSD' },
39
+ mp2: { format: 'audio', description: 'compressedAudio' },
40
+ mp3: { format: 'audio', description: 'compressedAudio' },
41
+ mp4: { format: 'video', description: 'videoHD' },
42
+ mp4v: { format: 'video', description: 'videoHD' },
43
+ mpeg: { format: 'video', description: 'videoSD' },
44
+ mpg4: { format: 'video', description: 'videoSD' },
45
+ mpg: { format: 'video', description: 'videoSD' },
46
+ mpga: { format: 'audio', description: 'compressedAudio' },
47
+ odp: { format: 'slide', description: 'slideLO' },
48
+ ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
49
+ odt: { format: 'text', description: 'documentLO' },
50
+ pdf: { format: 'document', description: 'documentAdobe' },
51
+ php: { format: 'code', description: 'filePHP' },
52
+ png: { format: 'image', description: 'imagePNG', preview: true },
53
+ ppt: { format: 'slide', description: 'slidePowerPoint' },
54
+ rar: { format: 'archive', description: 'compressedArchive' },
55
+ rtf: { format: 'text', description: 'documentRTF' },
56
+ sass: { format: 'code', description: 'fileSASS' },
57
+ shtml: { format: 'markup', description: 'documentWeb' },
58
+ svg: { format: 'vector', description: 'imageSVG', preview: true },
59
+ tar: { format: 'archive', description: 'uncompressedArchive' },
60
+ tiff: { format: 'image', description: 'imageTIFF' },
61
+ ts: { format: 'code', description: 'fileTS' },
62
+ tsx: { format: 'code', description: 'fileTSX' },
63
+ txt: { format: 'text', description: 'documentTXT' },
64
+ wav: { format: 'audio', description: 'uncompressedAudio' },
65
+ webp: { format: 'image', description: 'imageWEBP', preview: true },
66
+ xar: { format: 'archive', description: 'compressedArchive' },
67
+ xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
68
+ xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
69
+ zip: { format: 'archive', description: 'compressedArchive' },
68
70
  }
69
71
 
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
+
70
131
  const genericMimeToExt: Map<string, string[]> = new Map([
71
132
  ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
72
133
  ['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
@@ -1,3 +1,65 @@
1
+ const typographyTagDictionary = [
2
+ 'abbr',
3
+ 'address',
4
+ 'article',
5
+ 'b',
6
+ 'bdo',
7
+ 'blockquote',
8
+ 'cite',
9
+ 'code',
10
+ 'dd',
11
+ 'del',
12
+ 'details',
13
+ 'dfn',
14
+ 'div',
15
+ 'dl',
16
+ 'dt',
17
+ 'em',
18
+ 'figcaption',
19
+ 'h1',
20
+ 'h2',
21
+ 'h3',
22
+ 'h4',
23
+ 'h5',
24
+ 'h6',
25
+ 'i',
26
+ 'ins',
27
+ 'kbd',
28
+ 'label',
29
+ 'legend',
30
+ 'li',
31
+ 'mark',
32
+ 'ol',
33
+ 'p',
34
+ 'pre',
35
+ 'q',
36
+ 'rb',
37
+ 'rt',
38
+ 'ruby',
39
+ 's',
40
+ 'samp',
41
+ 'small',
42
+ 'span',
43
+ 'strong',
44
+ 'sub',
45
+ 'summary',
46
+ 'sup',
47
+ 'time',
48
+ 'u',
49
+ 'ul',
50
+ 'var',
51
+ ]
52
+
53
+ const typographyHeadingTagDictionary = [
54
+ 'h1',
55
+ 'h2',
56
+ 'h3',
57
+ 'h4',
58
+ 'h5',
59
+ 'h6',
60
+ ]
61
+
62
+
1
63
  const truncateDictionary = [
2
64
  'all',
3
65
  'none',
@@ -6,4 +68,6 @@ const truncateDictionary = [
6
68
 
7
69
  export {
8
70
  truncateDictionary,
71
+ typographyHeadingTagDictionary,
72
+ typographyTagDictionary,
9
73
  }
@@ -77,6 +77,16 @@ const toneVariantDictionary = [
77
77
  'quiet',
78
78
  ]
79
79
 
80
+ const themeVariantChipDictionary = [
81
+ 'primary',
82
+ 'secondary',
83
+ 'dark',
84
+ 'error',
85
+ 'info',
86
+ 'success',
87
+ 'warning',
88
+ ]
89
+
80
90
  const toneActionVariantDictionary = [
81
91
  'primary',
82
92
  'secondary',
@@ -110,6 +120,7 @@ export {
110
120
  themeLuminanceVariantDictionary,
111
121
  themeStatusVariantDictionary,
112
122
  themeVariantDictionary,
123
+ themeVariantChipDictionary,
113
124
  toneActionVariantDictionary,
114
125
  toneMinimalVariantDictionary,
115
126
  toneSimpleVariantDictionary,
@@ -33,8 +33,17 @@
33
33
  "mgg/address-book-off",
34
34
  "mgg/address-book-on",
35
35
  "mgg/adv-denied",
36
- "mgg/ai",
36
+ "mgg/ai-brain",
37
+ "mgg/ai-brain-outline",
38
+ "mgg/ai-human",
39
+ "mgg/ai-message",
40
+ "mgg/ai-outline",
41
+ "mgg/ai-status-completed",
42
+ "mgg/ai-status-error",
43
+ "mgg/ai-status-processing",
44
+ "mgg/ai-status-suspended",
37
45
  "mgg/alerts-pagopa",
46
+ "mgg/anpr",
38
47
  "mgg/ansc",
39
48
  "mgg/area-edificabile",
40
49
  "mgg/area-weather",
@@ -46,6 +55,7 @@
46
55
  "mgg/assignments-rejected",
47
56
  "mgg/assignments-sorted",
48
57
  "mgg/auto-awesome-motion",
58
+ "mgg/back-to-document",
49
59
  "mgg/balance",
50
60
  "mgg/bill",
51
61
  "mgg/box-multiple",
@@ -86,6 +96,7 @@
86
96
  "mgg/document-rename",
87
97
  "mgg/download-csv",
88
98
  "mgg/download-json",
99
+ "mgg/edit-article",
89
100
  "mgg/electronic-document",
90
101
  "mgg/email-assigned",
91
102
  "mgg/email-open-blocked",
@@ -101,6 +112,8 @@
101
112
  "mgg/factory",
102
113
  "mgg/farmer",
103
114
  "mgg/field",
115
+ "mgg/file-certificate",
116
+ "mgg/file-clock",
104
117
  "mgg/file-download",
105
118
  "mgg/file-folder-tree",
106
119
  "mgg/file-folder-tree-open",
@@ -122,6 +135,7 @@
122
135
  "mgg/finance-euro-cashback",
123
136
  "mgg/fit-horizontal",
124
137
  "mgg/fit-vertical",
138
+ "mgg/fontawesome-torii-gate",
125
139
  "mgg/forwarded-with-a-single-sending",
126
140
  "mgg/fullscreen-on-alt",
127
141
  "mgg/google-book-closed",
@@ -131,6 +145,7 @@
131
145
  "mgg/google-book-opening",
132
146
  "mgg/google-book-opening-outline",
133
147
  "mgg/google-check-small",
148
+ "mgg/google-drag-pan",
134
149
  "mgg/google-experiment",
135
150
  "mgg/google-face-retouching-off",
136
151
  "mgg/google-hub",
@@ -167,6 +182,10 @@
167
182
  "mgg/logo-ilibro",
168
183
  "mgg/map-marker-settings",
169
184
  "mgg/masks-office",
185
+ "mgg/mdi-binoculars",
186
+ "mgg/mdi-graph-outline",
187
+ "mgg/mdi-microscope",
188
+ "mgg/mdi-telescope",
170
189
  "mgg/military-draft",
171
190
  "mgg/money-bag-settings",
172
191
  "mgg/money-on-hand",
@@ -232,6 +251,7 @@
232
251
  "mgg/settings-attachment",
233
252
  "mgg/sign-shop",
234
253
  "mgg/square-viewfinder",
254
+ "mgg/stacked-documents",
235
255
  "mgg/stamp",
236
256
  "mgg/status-progress-a-quarter",
237
257
  "mgg/status-progress-complete",
@@ -241,6 +261,9 @@
241
261
  "mgg/subtractive-permission",
242
262
  "mgg/tea-light",
243
263
  "mgg/terminal",
264
+ "mgg/tie",
265
+ "mgg/to-single-document",
266
+ "mgg/to-stacked-documents",
244
267
  "mgg/todo",
245
268
  "mgg/todo-action-businessman-view",
246
269
  "mgg/todo-action-certificate",
@@ -278,8 +301,10 @@
278
301
  "mgg/user-location",
279
302
  "mgg/user-location-off",
280
303
  "mgg/user-signed-out",
304
+ "mgg/user-substitution",
281
305
  "mgg/view-chart-gantt",
282
306
  "mgg/view-side-by-side",
307
+ "mgg/vote",
283
308
  "mgg/warning-superscript",
284
309
  "mgg/web-app-ansc",
285
310
  "mgg/work-book",
@@ -300,6 +325,7 @@
300
325
  "mi/baseline/book",
301
326
  "mi/baseline/border-all",
302
327
  "mi/baseline/broken-image",
328
+ "mi/baseline/call",
303
329
  "mi/baseline/cancel",
304
330
  "mi/baseline/category",
305
331
  "mi/baseline/check-box",
@@ -309,7 +335,10 @@
309
335
  "mi/baseline/contrast",
310
336
  "mi/baseline/css",
311
337
  "mi/baseline/dark-mode",
338
+ "mi/baseline/delete",
312
339
  "mi/baseline/description",
340
+ "mi/baseline/directions-run",
341
+ "mi/baseline/directions-walk",
313
342
  "mi/baseline/done",
314
343
  "mi/baseline/downhill-skiing",
315
344
  "mi/baseline/eco",
@@ -318,7 +347,6 @@
318
347
  "mi/baseline/explore",
319
348
  "mi/baseline/file-download-done",
320
349
  "mi/baseline/folder-zip",
321
- "mi/baseline/groups",
322
350
  "mi/baseline/horizontal-rule",
323
351
  "mi/baseline/indeterminate-check-box",
324
352
  "mi/baseline/info",
@@ -339,11 +367,18 @@
339
367
  "mi/baseline/remove",
340
368
  "mi/baseline/remove-circle",
341
369
  "mi/baseline/route",
370
+ "mi/baseline/send",
342
371
  "mi/baseline/settings",
372
+ "mi/baseline/sports",
373
+ "mi/baseline/sports-soccer",
374
+ "mi/baseline/stadium",
343
375
  "mi/baseline/terminal",
344
376
  "mi/baseline/timer",
345
377
  "mi/baseline/tv",
378
+ "mi/baseline/unfold-more",
346
379
  "mi/baseline/videocam",
380
+ "mi/baseline/visibility",
381
+ "mi/baseline/visibility-off",
347
382
  "mi/baseline/warning",
348
383
  "mi/baseline/warning-amber",
349
384
  "mi/baseline/web",
@@ -355,7 +390,6 @@
355
390
  "mi/outline/schedule",
356
391
  "mi/round/arrow-circle-down",
357
392
  "mi/round/email",
358
- "mi/round/groups",
359
393
  "mi/round/menu",
360
394
  "mi/round/more-vert",
361
395
  "mi/round/person"