@maggioli-design-system/mds-input-tip 1.2.2 → 1.3.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.
Files changed (93) hide show
  1. package/dist/cjs/{index-442db91d.js → index-66d8bb25.js} +143 -58
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-input-tip.cjs.entry.js +8 -2
  4. package/dist/cjs/mds-input-tip.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/floating-controller.js +180 -0
  7. package/dist/collection/common/slot.js +28 -0
  8. package/dist/collection/common/string.js +30 -0
  9. package/dist/collection/components/mds-input-tip/mds-input-tip.css +123 -0
  10. package/dist/collection/components/mds-input-tip/mds-input-tip.js +10 -0
  11. package/dist/collection/dictionary/animation.js +5 -0
  12. package/dist/collection/dictionary/file-extensions.js +6 -59
  13. package/dist/collection/dictionary/keyboard.js +84 -0
  14. package/dist/collection/dictionary/tree.js +13 -0
  15. package/dist/collection/fixtures/filenames.js +62 -1
  16. package/dist/collection/type/animation.js +1 -0
  17. package/dist/collection/type/keyboard.js +1 -0
  18. package/dist/collection/type/tree.js +1 -0
  19. package/dist/collection/type/variant-file-format.js +5 -0
  20. package/dist/components/mds-input-tip.js +7 -1
  21. package/dist/documentation.d.ts +8 -0
  22. package/dist/documentation.json +15 -5
  23. package/dist/esm/{index-8fed469d.js → index-4e431d49.js} +143 -58
  24. package/dist/esm/loader.js +2 -2
  25. package/dist/esm/mds-input-tip.entry.js +8 -2
  26. package/dist/esm/mds-input-tip.js +3 -3
  27. package/dist/esm-es5/index-4e431d49.js +1 -0
  28. package/dist/esm-es5/loader.js +1 -1
  29. package/dist/esm-es5/mds-input-tip.entry.js +1 -1
  30. package/dist/esm-es5/mds-input-tip.js +1 -1
  31. package/dist/mds-input-tip/mds-input-tip.esm.js +1 -1
  32. package/dist/mds-input-tip/mds-input-tip.js +1 -1
  33. package/dist/mds-input-tip/p-27388d25.entry.js +1 -0
  34. package/dist/mds-input-tip/p-7eeec96b.system.js +2 -0
  35. package/dist/mds-input-tip/p-b8376582.js +2 -0
  36. package/dist/mds-input-tip/{p-c915dfb3.system.js → p-c7ede63a.system.js} +1 -1
  37. package/dist/mds-input-tip/p-d876075e.system.entry.js +1 -0
  38. package/dist/stats.json +74 -37
  39. package/dist/types/common/floating-controller.d.ts +46 -0
  40. package/dist/types/common/slot.d.ts +4 -0
  41. package/dist/types/common/string.d.ts +4 -0
  42. package/dist/types/dictionary/animation.d.ts +2 -0
  43. package/dist/types/dictionary/keyboard.d.ts +2 -0
  44. package/dist/types/dictionary/tree.d.ts +4 -0
  45. package/dist/types/fixtures/filenames.d.ts +62 -1
  46. package/dist/types/type/animation.d.ts +1 -0
  47. package/dist/types/type/file-types.d.ts +1 -1
  48. package/dist/types/type/keyboard.d.ts +12 -0
  49. package/dist/types/type/tree.d.ts +3 -0
  50. package/dist/types/type/variant-file-format.d.ts +1 -1
  51. package/documentation.json +76 -16
  52. package/package.json +4 -4
  53. package/readme.md +7 -0
  54. package/src/common/floating-controller.ts +263 -0
  55. package/src/common/slot.ts +35 -0
  56. package/src/common/string.ts +42 -0
  57. package/src/components/mds-input-tip/mds-input-tip.css +5 -0
  58. package/src/components/mds-input-tip/readme.md +7 -0
  59. package/src/dictionary/animation.ts +8 -0
  60. package/src/dictionary/file-extensions.ts +6 -60
  61. package/src/dictionary/keyboard.ts +87 -0
  62. package/src/dictionary/tree.ts +21 -0
  63. package/src/fixtures/filenames.ts +63 -0
  64. package/src/fixtures/icons.json +39 -1
  65. package/src/fixtures/iconsauce.json +6 -0
  66. package/src/meta/file-format/locale.el.json +26 -21
  67. package/src/meta/file-format/locale.en.json +26 -21
  68. package/src/meta/file-format/locale.es.json +26 -21
  69. package/src/meta/file-format/locale.it.json +26 -21
  70. package/src/meta/keyboard/keys.json +83 -0
  71. package/src/tailwind/components.css +11 -0
  72. package/src/tailwind/fouc.css +118 -0
  73. package/src/type/animation.ts +3 -0
  74. package/src/type/file-types.ts +6 -0
  75. package/src/type/keyboard.ts +93 -0
  76. package/src/type/tree.ts +12 -0
  77. package/src/type/variant-file-format.ts +6 -0
  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-27388d25.entry.js +1 -0
  81. package/www/build/p-7eeec96b.system.js +2 -0
  82. package/www/build/p-b8376582.js +2 -0
  83. package/www/build/{p-c915dfb3.system.js → p-c7ede63a.system.js} +1 -1
  84. package/www/build/p-d876075e.system.entry.js +1 -0
  85. package/dist/esm-es5/index-8fed469d.js +0 -1
  86. package/dist/mds-input-tip/p-37c61f56.system.js +0 -2
  87. package/dist/mds-input-tip/p-3e967425.js +0 -2
  88. package/dist/mds-input-tip/p-4486a5e4.entry.js +0 -1
  89. package/dist/mds-input-tip/p-fadf816e.system.entry.js +0 -1
  90. package/www/build/p-37c61f56.system.js +0 -2
  91. package/www/build/p-3e967425.js +0 -2
  92. package/www/build/p-4486a5e4.entry.js +0 -1
  93. package/www/build/p-fadf816e.system.entry.js +0 -1
@@ -0,0 +1,28 @@
1
+ const hasSlottedElements = (el, name) => {
2
+ var _a;
3
+ const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
4
+ const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
5
+ if (slot) {
6
+ return slot.assignedElements({ flatten: true }).length > 0;
7
+ }
8
+ return false;
9
+ };
10
+ const hasSlottedNodes = (el, name) => {
11
+ var _a;
12
+ const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
13
+ const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
14
+ if (slot) {
15
+ return slot.assignedNodes().length > 0;
16
+ }
17
+ return false;
18
+ };
19
+ const hasSlotted = (el, name) => {
20
+ var _a;
21
+ const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
22
+ const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
23
+ if (slot) {
24
+ return slot.assignedNodes().length > 0 || slot.assignedElements().length > 0;
25
+ }
26
+ return false;
27
+ };
28
+ export { hasSlottedElements, hasSlottedNodes, hasSlotted, };
@@ -0,0 +1,30 @@
1
+ const levenshteinDistance = (a, b) => {
2
+ const dp = Array.from({ length: a.length + 1 }, (_, i) =>
3
+ // eslint-disable-next-line no-nested-ternary
4
+ Array.from({ length: b.length + 1 }, (_, j) => (i === 0 ? j : j === 0 ? i : 0)));
5
+ for (let i = 1; i <= a.length; i++) {
6
+ for (let j = 1; j <= b.length; j++) {
7
+ if (a[i - 1] === b[j - 1]) {
8
+ dp[i][j] = dp[i - 1][j - 1];
9
+ }
10
+ else {
11
+ dp[i][j] = 1 + Math.min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]);
12
+ }
13
+ }
14
+ }
15
+ return dp[a.length][b.length];
16
+ };
17
+ const closest = (input, validCodes) => {
18
+ let [closest] = validCodes;
19
+ let minDistance = levenshteinDistance(input, closest);
20
+ for (const code of validCodes) {
21
+ const distance = levenshteinDistance(input, code);
22
+ if (distance < minDistance) {
23
+ minDistance = distance;
24
+ closest = code;
25
+ }
26
+ }
27
+ return closest;
28
+ };
29
+ const firstLetterUppercase = (str) => str.charAt(0).toUpperCase() + str.slice(1);
30
+ export { closest, firstLetterUppercase, levenshteinDistance, };
@@ -1,5 +1,9 @@
1
1
  @tailwind utilities;
2
2
 
3
+ /**
4
+ * @prop --mds-input-tip-active-translate: Set the translate of the tip when it is active.
5
+ */
6
+
3
7
  :host {
4
8
 
5
9
  --mds-input-tip-active-translate: translate(0, 0);
@@ -69,3 +73,122 @@
69
73
  }
70
74
  }
71
75
 
76
+ :host(:not(:is([hydrated], .hydrated))) {
77
+ animation-duration: 0s;
78
+ border-color: transparent;
79
+ box-shadow: 0 0 0 transparent;
80
+ opacity: 0;
81
+ outline-color: transparent;
82
+ transition-delay: 0s;
83
+ transition-duration: 0s;
84
+ visibility: hidden;
85
+ }
86
+
87
+ /* TODO refact(stencil): Uses only used selector from parent shadowDOM component */
88
+
89
+ mds-accordion:not(:is([hydrated], .hydrated)),
90
+ mds-accordion-item:not(:is([hydrated], .hydrated)),
91
+ mds-accordion-timer:not(:is([hydrated], .hydrated)),
92
+ mds-accordion-timer-item:not(:is([hydrated], .hydrated)),
93
+ mds-author:not(:is([hydrated], .hydrated)),
94
+ mds-avatar:not(:is([hydrated], .hydrated)),
95
+ mds-badge:not(:is([hydrated], .hydrated)),
96
+ mds-banner:not(:is([hydrated], .hydrated)),
97
+ mds-benchmark-bar:not(:is([hydrated], .hydrated)),
98
+ mds-bibliography:not(:is([hydrated], .hydrated)),
99
+ mds-breadcrumb:not(:is([hydrated], .hydrated)),
100
+ mds-breadcrumb-item:not(:is([hydrated], .hydrated)),
101
+ mds-button:not(:is([hydrated], .hydrated)),
102
+ mds-card:not(:is([hydrated], .hydrated)),
103
+ mds-card-content:not(:is([hydrated], .hydrated)),
104
+ mds-card-footer:not(:is([hydrated], .hydrated)),
105
+ mds-card-header:not(:is([hydrated], .hydrated)),
106
+ mds-card-media:not(:is([hydrated], .hydrated)),
107
+ mds-chip:not(:is([hydrated], .hydrated)),
108
+ mds-details:not(:is([hydrated], .hydrated)),
109
+ mds-dropdown:not(:is([hydrated], .hydrated)),
110
+ mds-entity:not(:is([hydrated], .hydrated)),
111
+ mds-file:not(:is([hydrated], .hydrated)),
112
+ mds-file-preview:not(:is([hydrated], .hydrated)),
113
+ mds-filter:not(:is([hydrated], .hydrated)),
114
+ mds-filter-item:not(:is([hydrated], .hydrated)),
115
+ mds-header:not(:is([hydrated], .hydrated)),
116
+ mds-header-bar:not(:is([hydrated], .hydrated)),
117
+ mds-help:not(:is([hydrated], .hydrated)),
118
+ mds-horizontal-scroll:not(:is([hydrated], .hydrated)),
119
+ mds-hr:not(:is([hydrated], .hydrated)),
120
+ mds-icon:not(:is([hydrated], .hydrated)),
121
+ mds-img:not(:is([hydrated], .hydrated)),
122
+ mds-input:not(:is([hydrated], .hydrated)),
123
+ mds-input-field:not(:is([hydrated], .hydrated)),
124
+ mds-input-range:not(:is([hydrated], .hydrated)),
125
+ mds-input-select:not(:is([hydrated], .hydrated)),
126
+ mds-input-switch:not(:is([hydrated], .hydrated)),
127
+ mds-input-tip:not(:is([hydrated], .hydrated)),
128
+ mds-input-tip-item:not(:is([hydrated], .hydrated)),
129
+ mds-input-upload:not(:is([hydrated], .hydrated)),
130
+ mds-keyboard:not(:is([hydrated], .hydrated)),
131
+ mds-keyboard-key:not(:is([hydrated], .hydrated)),
132
+ mds-kpi:not(:is([hydrated], .hydrated)),
133
+ mds-kpi-item:not(:is([hydrated], .hydrated)),
134
+ mds-label:not(:is([hydrated], .hydrated)),
135
+ mds-list:not(:is([hydrated], .hydrated)),
136
+ mds-list-item:not(:is([hydrated], .hydrated)),
137
+ mds-modal:not(:is([hydrated], .hydrated)),
138
+ mds-note:not(:is([hydrated], .hydrated)),
139
+ mds-notification:not(:is([hydrated], .hydrated)),
140
+ mds-paginator:not(:is([hydrated], .hydrated)),
141
+ mds-paginator-item:not(:is([hydrated], .hydrated)),
142
+ mds-pref:not(:is([hydrated], .hydrated)),
143
+ mds-pref-animation:not(:is([hydrated], .hydrated)),
144
+ mds-pref-consumption:not(:is([hydrated], .hydrated)),
145
+ mds-pref-contrast:not(:is([hydrated], .hydrated)),
146
+ mds-pref-language:not(:is([hydrated], .hydrated)),
147
+ mds-pref-language-item:not(:is([hydrated], .hydrated)),
148
+ mds-pref-theme:not(:is([hydrated], .hydrated)),
149
+ mds-price-table:not(:is([hydrated], .hydrated)),
150
+ mds-price-table-features:not(:is([hydrated], .hydrated)),
151
+ mds-price-table-features-cell:not(:is([hydrated], .hydrated)),
152
+ mds-price-table-features-row:not(:is([hydrated], .hydrated)),
153
+ mds-price-table-header:not(:is([hydrated], .hydrated)),
154
+ mds-price-table-list:not(:is([hydrated], .hydrated)),
155
+ mds-price-table-list-item:not(:is([hydrated], .hydrated)),
156
+ mds-progress:not(:is([hydrated], .hydrated)),
157
+ mds-push-notification:not(:is([hydrated], .hydrated)),
158
+ mds-push-notifications:not(:is([hydrated], .hydrated)),
159
+ mds-quote:not(:is([hydrated], .hydrated)),
160
+ mds-separator:not(:is([hydrated], .hydrated)),
161
+ mds-spinner:not(:is([hydrated], .hydrated)),
162
+ mds-stepper-bar:not(:is([hydrated], .hydrated)),
163
+ mds-stepper-bar-item:not(:is([hydrated], .hydrated)),
164
+ mds-tab:not(:is([hydrated], .hydrated)),
165
+ mds-tab-bar:not(:is([hydrated], .hydrated)),
166
+ mds-tab-bar-item:not(:is([hydrated], .hydrated)),
167
+ mds-tab-item:not(:is([hydrated], .hydrated)),
168
+ mds-table:not(:is([hydrated], .hydrated)),
169
+ mds-table-body:not(:is([hydrated], .hydrated)),
170
+ mds-table-cell:not(:is([hydrated], .hydrated)),
171
+ mds-table-footer:not(:is([hydrated], .hydrated)),
172
+ mds-table-header:not(:is([hydrated], .hydrated)),
173
+ mds-table-header-cell:not(:is([hydrated], .hydrated)),
174
+ mds-table-row:not(:is([hydrated], .hydrated)),
175
+ mds-text:not(:is([hydrated], .hydrated)),
176
+ mds-toast:not(:is([hydrated], .hydrated)),
177
+ mds-tooltip:not(:is([hydrated], .hydrated)),
178
+ mds-tree:not(:is([hydrated], .hydrated)),
179
+ mds-tree-item:not(:is([hydrated], .hydrated)),
180
+ mds-url-view:not(:is([hydrated], .hydrated)),
181
+ mds-usage:not(:is([hydrated], .hydrated)),
182
+ mds-video-wall:not(:is([hydrated], .hydrated)),
183
+ mds-zero:not(:is([hydrated], .hydrated))
184
+ {
185
+ animation-duration: 0s;
186
+ border-color: transparent;
187
+ box-shadow: 0 0 0 transparent;
188
+ opacity: 0;
189
+ outline-color: transparent;
190
+ transition-delay: 0s;
191
+ transition-duration: 0s;
192
+ visibility: hidden;
193
+ }
194
+
@@ -1,7 +1,13 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class MdsInputTip {
3
3
  constructor() {
4
+ /**
5
+ * Specifies if the component is active and shows expanded children or not
6
+ */
4
7
  this.active = false;
8
+ /**
9
+ * Specifies the position of the element relative to its container
10
+ */
5
11
  this.position = 'top';
6
12
  }
7
13
  render() {
@@ -35,6 +41,8 @@ export class MdsInputTip {
35
41
  "tags": [],
36
42
  "text": "Specifies if the component is active and shows expanded children or not"
37
43
  },
44
+ "getter": false,
45
+ "setter": false,
38
46
  "attribute": "active",
39
47
  "reflect": true,
40
48
  "defaultValue": "false"
@@ -59,6 +67,8 @@ export class MdsInputTip {
59
67
  "tags": [],
60
68
  "text": "Specifies the position of the element relative to its container"
61
69
  },
70
+ "getter": false,
71
+ "setter": false,
62
72
  "attribute": "position",
63
73
  "reflect": true,
64
74
  "defaultValue": "'top'"
@@ -0,0 +1,5 @@
1
+ const horizontalActionsAnimationDictionary = [
2
+ 'fade',
3
+ 'slide',
4
+ ];
5
+ export { horizontalActionsAnimationDictionary, };
@@ -14,8 +14,8 @@ const fileExtensionsDictionary = {
14
14
  exe: { format: 'executable', description: 'fileEXE' },
15
15
  flac: { format: 'audio', description: 'uncompressedAudio' },
16
16
  gif: { format: 'image', description: 'compressedImage', preview: true },
17
- htm: { format: 'markup', description: 'documentWeb' },
18
17
  heic: { format: 'image', description: 'imageHEFF' },
18
+ htm: { format: 'markup', description: 'documentWeb' },
19
19
  html: { format: 'markup', description: 'documentWeb' },
20
20
  jpe: { format: 'image', description: 'compressedImage', preview: true },
21
21
  jpeg: { format: 'image', description: 'compressedImage', preview: true },
@@ -32,9 +32,12 @@ const fileExtensionsDictionary = {
32
32
  mpg4: { format: 'video', description: 'videoSD' },
33
33
  mpg: { format: 'video', description: 'videoSD' },
34
34
  mpga: { format: 'audio', description: 'compressedAudio' },
35
+ odf: { format: 'document', description: 'openDocumentFormat' },
35
36
  odp: { format: 'slide', description: 'slideLO' },
36
37
  ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
37
38
  odt: { format: 'text', description: 'documentLO' },
39
+ ole: { format: 'document', description: 'objectLinkingAndEmbedding' },
40
+ p7m: { format: 'certificate', description: 'documentDigitalSingnature' },
38
41
  pdf: { format: 'document', description: 'documentAdobe' },
39
42
  php: { format: 'code', description: 'filePHP' },
40
43
  png: { format: 'image', description: 'imagePNG', preview: true },
@@ -47,6 +50,7 @@ const fileExtensionsDictionary = {
47
50
  tar: { format: 'archive', description: 'uncompressedArchive' },
48
51
  tiff: { format: 'image', description: 'imageTIFF' },
49
52
  ts: { format: 'code', description: 'fileTS' },
53
+ tsd: { format: 'certificate', description: 'certificateTSD' },
50
54
  tsx: { format: 'code', description: 'fileTSX' },
51
55
  txt: { format: 'text', description: 'documentTXT' },
52
56
  wav: { format: 'audio', description: 'uncompressedAudio' },
@@ -54,66 +58,9 @@ const fileExtensionsDictionary = {
54
58
  xar: { format: 'archive', description: 'compressedArchive' },
55
59
  xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
56
60
  xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
61
+ xml: { format: 'markup', description: 'extensibleMarkupLanguage' },
57
62
  zip: { format: 'archive', description: 'compressedArchive' },
58
63
  };
59
- // const fileExtensionsDictionary: FileExtenstion = {
60
- // '7z': { format: 'archive', description: 'Archivio compresso' },
61
- // ace: { format: 'archive', description: 'Archivio compresso' },
62
- // ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
63
- // dart: { format: 'code', description: 'Dart' },
64
- // db: { format: 'data', description: 'File di database' },
65
- // default: { format: 'attachment', description: 'Formato sconosciuto' },
66
- // dmg: { format: 'executable', description: 'Apple Disk Image' },
67
- // doc: { format: 'text', description: 'Documento Microsoft Word' },
68
- // docm: { format: 'text', description: 'Documento Microsoft Word' },
69
- // docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
70
- // eml: { format: 'email', description: 'E-mail di posta elettronica' },
71
- // eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
72
- // exe: { format: 'executable', description: 'File eseguibile Windows' },
73
- // flac: { format: 'audio', description: 'Audio non compresso' },
74
- // gif: { format: 'image', description: 'Immagine compressa', preview: true },
75
- // htm: { format: 'markup', description: 'Pagina web' },
76
- // heic: { format: 'image', description: 'High Efficiency Image File Format' },
77
- // html: { format: 'markup', description: 'Pagina web' },
78
- // jpe: { format: 'image', description: 'Immagine compressa', preview: true },
79
- // jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
80
- // jpg: { format: 'image', description: 'Immagine compressa', preview: true },
81
- // js: { format: 'code', description: 'JavaScript' },
82
- // json: { format: 'data', description: 'JavaScript Object Notation' },
83
- // jsx: { format: 'code', description: 'JavaScript' },
84
- // m2v: { format: 'video', description: 'Filmato SD' },
85
- // mp2: { format: 'audio', description: 'Audio compresso' },
86
- // mp3: { format: 'audio', description: 'Audio compresso' },
87
- // mp4: { format: 'video', description: 'Filmato HD' },
88
- // mp4v: { format: 'video', description: 'Filmato HD' },
89
- // mpeg: { format: 'video', description: 'Filmato SD' },
90
- // mpg4: { format: 'video', description: 'Filmato SD' },
91
- // mpg: { format: 'video', description: 'Filmato SD' },
92
- // mpga: { format: 'audio', description: 'Audio compresso' },
93
- // odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
94
- // ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
95
- // odt: { format: 'text', description: 'File di testo LibreOffice' },
96
- // pdf: { format: 'document', description: 'Documento Adobe' },
97
- // php: { format: 'code', description: 'Hypertext Preprocessor' },
98
- // png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
99
- // ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
100
- // rar: { format: 'archive', description: 'Archivio compresso' },
101
- // rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
102
- // sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
103
- // shtml: { format: 'markup', description: 'Pagina web' },
104
- // svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
105
- // tar: { format: 'archive', description: 'Archivio non compresso' },
106
- // tiff: { format: 'image', description: 'Tag Image File Format' },
107
- // ts: { format: 'code', description: 'TypeScript' },
108
- // tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
109
- // txt: { format: 'text', description: 'Documento di testo non formattato' },
110
- // wav: { format: 'audio', description: 'Audio non compresso' },
111
- // webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
112
- // xar: { format: 'archive', description: 'Archivio compresso' },
113
- // xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
114
- // xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
115
- // zip: { format: 'archive', description: 'Archivio compresso' },
116
- // }
117
64
  const genericMimeToExt = new Map([
118
65
  ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
119
66
  ['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
@@ -0,0 +1,84 @@
1
+ const keyboardKeyNameDictionary = [
2
+ '0',
3
+ '1',
4
+ '2',
5
+ '3',
6
+ '4',
7
+ '5',
8
+ '6',
9
+ '7',
10
+ '8',
11
+ '9',
12
+ 'a',
13
+ 'alt',
14
+ 'altleft',
15
+ 'altright',
16
+ 'arrowdown',
17
+ 'arrowleft',
18
+ 'arrowright',
19
+ 'arrowup',
20
+ 'b',
21
+ 'backspace',
22
+ 'c',
23
+ 'capslock',
24
+ 'command',
25
+ 'commandleft',
26
+ 'commandright',
27
+ 'control',
28
+ 'controlleft',
29
+ 'controlright',
30
+ 'd',
31
+ 'delete',
32
+ 'e',
33
+ 'end',
34
+ 'enter',
35
+ 'escape',
36
+ 'f',
37
+ 'f1',
38
+ 'f10',
39
+ 'f11',
40
+ 'f12',
41
+ 'f2',
42
+ 'f3',
43
+ 'f4',
44
+ 'f5',
45
+ 'f6',
46
+ 'f7',
47
+ 'f8',
48
+ 'f9',
49
+ 'g',
50
+ 'h',
51
+ 'home',
52
+ 'i',
53
+ 'j',
54
+ 'k',
55
+ 'l',
56
+ 'm',
57
+ 'n',
58
+ 'o',
59
+ 'option',
60
+ 'optionleft',
61
+ 'optionright',
62
+ 'p',
63
+ 'pagedown',
64
+ 'pageup',
65
+ 'q',
66
+ 'r',
67
+ 's',
68
+ 'shift',
69
+ 'shiftleft',
70
+ 'shiftright',
71
+ 'space',
72
+ 't',
73
+ 'tab',
74
+ 'u',
75
+ 'v',
76
+ 'w',
77
+ 'windows',
78
+ 'windowsleft',
79
+ 'windowsright',
80
+ 'x',
81
+ 'y',
82
+ 'z',
83
+ ];
84
+ export { keyboardKeyNameDictionary, };
@@ -0,0 +1,13 @@
1
+ const treeActionsDictionary = [
2
+ 'auto',
3
+ 'visible',
4
+ ];
5
+ const treeAppearanceDictionary = [
6
+ 'depth',
7
+ 'none',
8
+ ];
9
+ const treeIconDictionary = [
10
+ 'folder',
11
+ 'chevron',
12
+ ];
13
+ export { treeActionsDictionary, treeAppearanceDictionary, treeIconDictionary, };
@@ -54,4 +54,65 @@ const filesList = [
54
54
  'wisconsin_bypassing_small.xar',
55
55
  'wooden.jsx',
56
56
  ];
57
- export { filesList, };
57
+ const namedFilesList = {
58
+ '7z': 'frozen_haptic.7z',
59
+ 'No extension file': 'this_is_an_extensionless_file',
60
+ 'png with URL': 'https://i2.wp.com/clipart.info/images/ccovers/1495750818Apple-PNG-Clip-Art.png',
61
+ ace: 'sky_marketing.ace',
62
+ ai: 'foreground_overriding.ai',
63
+ db: 'matrix_black_hat.db',
64
+ default: 'copying.default',
65
+ dmg: 'protocol_designer.dmg',
66
+ doc: 'forges.doc',
67
+ docm: 'officer_somalia.docm',
68
+ docx: 'upgradable_gold.docx',
69
+ eml: 'brunei_logistical.eml',
70
+ eps: 'alarm_circuit_plastic.eps',
71
+ exe: 'rss_systematic_avon.exe',
72
+ flac: 'liaison_panel_central.flac',
73
+ gif: 'initiatives_group.gif',
74
+ htm: 'books_monetize_arizona.htm',
75
+ html: 'flexibility_auto_money.html',
76
+ jpe: 'intelligent_radical.jpe',
77
+ jpeg: 'iowa_installation.jpeg',
78
+ jpg: 'buckinghamshire_macao.jpg',
79
+ js: 'monitor.js',
80
+ json: 'calculating.json',
81
+ jsx: 'wooden.jsx',
82
+ m2v: 'interface_bedfordshire_solid.m2v',
83
+ mp2: 'explicit.mp2',
84
+ mp3: 'optimization_radical.mp3',
85
+ mp4: 'nebraska.mp4',
86
+ mp4v: 'reduced_regional_greenland.mp4v',
87
+ mpeg: 'impactful_alarm_handmade.mpeg',
88
+ mpg4: 'revolutionize.mpg4',
89
+ mpg: 'complexity_deposit.mpg',
90
+ mpga: 'ports_copy_granite.mpga',
91
+ odf: 'This is a file_to_read.odf',
92
+ odp: 'needs_based_solid.odp',
93
+ ods: 'compressing_black_colorado.ods',
94
+ odt: 'salad_compressing.odt',
95
+ ole: 'Document-RPF_Open-new.ole',
96
+ p7m: 'file with certificate from government.pdf.p7m',
97
+ pdf: 'connect_local_visualize.pdf',
98
+ php: 'fish.php',
99
+ png: 'awesome_orchestration.png',
100
+ ppt: 'gorgeous_manager_savings.ppt',
101
+ rar: 'unbranded.rar',
102
+ rtf: 'pound.rtf',
103
+ sass: 'open_source_gorgeous.sass',
104
+ shtml: 'brand.shtml',
105
+ svg: 'b2c_tan_sports.svg',
106
+ tar: 'graphic_frozen_bedfordshire.tar',
107
+ ts: 'forge_face.ts',
108
+ tsd: 'Marked file-7483274hy6Fg6R8.tsd',
109
+ txt: 'bedfordshire_iceland_identity.txt',
110
+ wav: 'synergistic.wav',
111
+ webp: 'open_source.webp',
112
+ xar: 'wisconsin_bypassing_small.xar',
113
+ xls: 'metrics_lempira_account.xls',
114
+ xlsx: 'hdd_navigate_panama.xlsx',
115
+ xml: 'Markup language.xml',
116
+ zip: 'tuna_table_fall.zip',
117
+ };
118
+ export { filesList, namedFilesList, };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -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";
@@ -26,6 +27,10 @@ const fileFormatsVariant = {
26
27
  icon: baselineAudiotrack,
27
28
  variant: 'violet',
28
29
  },
30
+ certificate: {
31
+ icon: mdiLicense,
32
+ variant: 'orange',
33
+ },
29
34
  code: {
30
35
  icon: baselineTerminal,
31
36
  variant: 'yellow',
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const mdsInputTipCss = "@tailwind utilities;\n\n:host {\n\n --mds-input-tip-active-translate: translate(0, 0);\n\n left: 0.25rem;\n\n right: 0.25rem;\n\n gap: 0.25rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-pack: end;\n justify-content: flex-end;\n pointer-events: none;\n position: absolute;\n -webkit-transform: var(--mds-input-tip-active-translate);\n transform: var(--mds-input-tip-active-translate);\n -webkit-transition-property: -webkit-transform;\n transition-property: -webkit-transform;\n transition-property: transform;\n transition-property: transform, -webkit-transform;\n}\n\n:host(:empty) {\n display: none;\n}\n\n:host([position=\"top\"]) {\n top: 0.25rem;\n}\n\n:host([position=\"bottom\"]) {\n bottom: 0.25rem;\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), calc(0.25rem * -1));\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), 0.25rem);\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\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 -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n";
3
+ const mdsInputTipCss = "@tailwind utilities;\n\n/**\n * @prop --mds-input-tip-active-translate: Set the translate of the tip when it is active.\n */\n\n:host {\n\n --mds-input-tip-active-translate: translate(0, 0);\n\n left: 0.25rem;\n\n right: 0.25rem;\n\n gap: 0.25rem;\n\n -webkit-transition-duration: 300ms;\n\n transition-duration: 300ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-pack: end;\n justify-content: flex-end;\n pointer-events: none;\n position: absolute;\n -webkit-transform: var(--mds-input-tip-active-translate);\n transform: var(--mds-input-tip-active-translate);\n -webkit-transition-property: -webkit-transform;\n transition-property: -webkit-transform;\n transition-property: transform;\n transition-property: transform, -webkit-transform;\n}\n\n:host(:empty) {\n display: none;\n}\n\n:host([position=\"top\"]) {\n top: 0.25rem;\n}\n\n:host([position=\"bottom\"]) {\n bottom: 0.25rem;\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), calc(0.25rem * -1));\n}\n\n:host([position=\"top\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) {\n\n --mds-input-tip-active-translate: translate(calc(0.25rem * -1), 0.25rem);\n}\n\n:host([position=\"bottom\"][active]:not([active=\"false\"])) ::slotted( mds-input-tip-item ) {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n@container style(--magma-pref-animation: reduce) {\n :host {\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 -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n:host(:not(:is([hydrated], .hydrated))) {\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n/* TODO refact(stencil): Uses only used selector from parent shadowDOM component */\n\nmds-accordion:not(:is([hydrated], .hydrated)),\nmds-accordion-item:not(:is([hydrated], .hydrated)),\nmds-accordion-timer:not(:is([hydrated], .hydrated)),\nmds-accordion-timer-item:not(:is([hydrated], .hydrated)),\nmds-author:not(:is([hydrated], .hydrated)),\nmds-avatar:not(:is([hydrated], .hydrated)),\nmds-badge:not(:is([hydrated], .hydrated)),\nmds-banner:not(:is([hydrated], .hydrated)),\nmds-benchmark-bar:not(:is([hydrated], .hydrated)),\nmds-bibliography:not(:is([hydrated], .hydrated)),\nmds-breadcrumb:not(:is([hydrated], .hydrated)),\nmds-breadcrumb-item:not(:is([hydrated], .hydrated)),\nmds-button:not(:is([hydrated], .hydrated)),\nmds-card:not(:is([hydrated], .hydrated)),\nmds-card-content:not(:is([hydrated], .hydrated)),\nmds-card-footer:not(:is([hydrated], .hydrated)),\nmds-card-header:not(:is([hydrated], .hydrated)),\nmds-card-media:not(:is([hydrated], .hydrated)),\nmds-chip:not(:is([hydrated], .hydrated)),\nmds-details:not(:is([hydrated], .hydrated)),\nmds-dropdown:not(:is([hydrated], .hydrated)),\nmds-entity:not(:is([hydrated], .hydrated)),\nmds-file:not(:is([hydrated], .hydrated)),\nmds-file-preview:not(:is([hydrated], .hydrated)),\nmds-filter:not(:is([hydrated], .hydrated)),\nmds-filter-item:not(:is([hydrated], .hydrated)),\nmds-header:not(:is([hydrated], .hydrated)),\nmds-header-bar:not(:is([hydrated], .hydrated)),\nmds-help:not(:is([hydrated], .hydrated)),\nmds-horizontal-scroll:not(:is([hydrated], .hydrated)),\nmds-hr:not(:is([hydrated], .hydrated)),\nmds-icon:not(:is([hydrated], .hydrated)),\nmds-img:not(:is([hydrated], .hydrated)),\nmds-input:not(:is([hydrated], .hydrated)),\nmds-input-field:not(:is([hydrated], .hydrated)),\nmds-input-range:not(:is([hydrated], .hydrated)),\nmds-input-select:not(:is([hydrated], .hydrated)),\nmds-input-switch:not(:is([hydrated], .hydrated)),\nmds-input-tip:not(:is([hydrated], .hydrated)),\nmds-input-tip-item:not(:is([hydrated], .hydrated)),\nmds-input-upload:not(:is([hydrated], .hydrated)),\nmds-keyboard:not(:is([hydrated], .hydrated)),\nmds-keyboard-key:not(:is([hydrated], .hydrated)),\nmds-kpi:not(:is([hydrated], .hydrated)),\nmds-kpi-item:not(:is([hydrated], .hydrated)),\nmds-label:not(:is([hydrated], .hydrated)),\nmds-list:not(:is([hydrated], .hydrated)),\nmds-list-item:not(:is([hydrated], .hydrated)),\nmds-modal:not(:is([hydrated], .hydrated)),\nmds-note:not(:is([hydrated], .hydrated)),\nmds-notification:not(:is([hydrated], .hydrated)),\nmds-paginator:not(:is([hydrated], .hydrated)),\nmds-paginator-item:not(:is([hydrated], .hydrated)),\nmds-pref:not(:is([hydrated], .hydrated)),\nmds-pref-animation:not(:is([hydrated], .hydrated)),\nmds-pref-consumption:not(:is([hydrated], .hydrated)),\nmds-pref-contrast:not(:is([hydrated], .hydrated)),\nmds-pref-language:not(:is([hydrated], .hydrated)),\nmds-pref-language-item:not(:is([hydrated], .hydrated)),\nmds-pref-theme:not(:is([hydrated], .hydrated)),\nmds-price-table:not(:is([hydrated], .hydrated)),\nmds-price-table-features:not(:is([hydrated], .hydrated)),\nmds-price-table-features-cell:not(:is([hydrated], .hydrated)),\nmds-price-table-features-row:not(:is([hydrated], .hydrated)),\nmds-price-table-header:not(:is([hydrated], .hydrated)),\nmds-price-table-list:not(:is([hydrated], .hydrated)),\nmds-price-table-list-item:not(:is([hydrated], .hydrated)),\nmds-progress:not(:is([hydrated], .hydrated)),\nmds-push-notification:not(:is([hydrated], .hydrated)),\nmds-push-notifications:not(:is([hydrated], .hydrated)),\nmds-quote:not(:is([hydrated], .hydrated)),\nmds-separator:not(:is([hydrated], .hydrated)),\nmds-spinner:not(:is([hydrated], .hydrated)),\nmds-stepper-bar:not(:is([hydrated], .hydrated)),\nmds-stepper-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab:not(:is([hydrated], .hydrated)),\nmds-tab-bar:not(:is([hydrated], .hydrated)),\nmds-tab-bar-item:not(:is([hydrated], .hydrated)),\nmds-tab-item:not(:is([hydrated], .hydrated)),\nmds-table:not(:is([hydrated], .hydrated)),\nmds-table-body:not(:is([hydrated], .hydrated)),\nmds-table-cell:not(:is([hydrated], .hydrated)),\nmds-table-footer:not(:is([hydrated], .hydrated)),\nmds-table-header:not(:is([hydrated], .hydrated)),\nmds-table-header-cell:not(:is([hydrated], .hydrated)),\nmds-table-row:not(:is([hydrated], .hydrated)),\nmds-text:not(:is([hydrated], .hydrated)),\nmds-toast:not(:is([hydrated], .hydrated)),\nmds-tooltip:not(:is([hydrated], .hydrated)),\nmds-tree:not(:is([hydrated], .hydrated)),\nmds-tree-item:not(:is([hydrated], .hydrated)),\nmds-url-view:not(:is([hydrated], .hydrated)),\nmds-usage:not(:is([hydrated], .hydrated)),\nmds-video-wall:not(:is([hydrated], .hydrated)),\nmds-zero:not(:is([hydrated], .hydrated))\n{\n -webkit-animation-duration: 0s;\n animation-duration: 0s;\n border-color: transparent;\n -webkit-box-shadow: 0 0 0 transparent;\n box-shadow: 0 0 0 transparent;\n opacity: 0;\n outline-color: transparent;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n visibility: hidden;\n}\n\n";
4
4
  const MdsInputTipStyle0 = mdsInputTipCss;
5
5
 
6
6
  const MdsInputTip$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputTip extends HTMLElement {
@@ -8,7 +8,13 @@ const MdsInputTip$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputTip extends
8
8
  super();
9
9
  this.__registerHost();
10
10
  this.__attachShadow();
11
+ /**
12
+ * Specifies if the component is active and shows expanded children or not
13
+ */
11
14
  this.active = false;
15
+ /**
16
+ * Specifies the position of the element relative to its container
17
+ */
12
18
  this.position = 'top';
13
19
  }
14
20
  render() {
@@ -316,6 +316,14 @@ export interface JsonDocsProp {
316
316
  * ```
317
317
  */
318
318
  required: boolean;
319
+ /**
320
+ * `true` if the prop has a `get()`. `false` otherwise
321
+ */
322
+ getter: boolean;
323
+ /**
324
+ * `true` if the prop has a `set()`. `false` otherwise
325
+ */
326
+ setter: boolean;
319
327
  }
320
328
  export interface JsonDocsMethod {
321
329
  name: string;
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2024-12-04T17:23:47",
2
+ "timestamp": "2025-02-25T14:48:59",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.22.2",
5
+ "version": "4.25.1",
6
6
  "typescriptVersion": "5.5.4"
7
7
  },
8
8
  "components": [
@@ -37,7 +37,9 @@
37
37
  }
38
38
  ],
39
39
  "optional": true,
40
- "required": false
40
+ "required": false,
41
+ "getter": false,
42
+ "setter": false
41
43
  },
42
44
  {
43
45
  "name": "position",
@@ -73,13 +75,21 @@
73
75
  }
74
76
  ],
75
77
  "optional": true,
76
- "required": false
78
+ "required": false,
79
+ "getter": false,
80
+ "setter": false
77
81
  }
78
82
  ],
79
83
  "methods": [],
80
84
  "events": [],
81
85
  "listeners": [],
82
- "styles": [],
86
+ "styles": [
87
+ {
88
+ "name": "--mds-input-tip-active-translate",
89
+ "annotation": "prop",
90
+ "docs": "Set the translate of the tip when it is active."
91
+ }
92
+ ],
83
93
  "slots": [],
84
94
  "parts": [],
85
95
  "dependents": [],