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

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,22 @@ const setAttributeIfEmpty = (element, attribute, value) => {
18
18
  element.setAttribute(attribute, value);
19
19
  return value;
20
20
  };
21
+ const removeAttributesIf = (element, attribute, valueCheck = 'true', cleanAttributes) => {
22
+ if (ifAttribute(element, attribute, valueCheck)) {
23
+ const attributesList = Array.isArray(cleanAttributes) ? cleanAttributes : [cleanAttributes];
24
+ attributesList.forEach(attributeToRemove => {
25
+ element.removeAttribute(attributeToRemove);
26
+ });
27
+ return true;
28
+ }
29
+ return false;
30
+ };
31
+ const ifAttribute = (element, attribute, valueCheck = 'true') => {
32
+ if (element.hasAttribute(attribute) && element.getAttribute(attribute) === valueCheck) {
33
+ return true;
34
+ }
35
+ return false;
36
+ };
21
37
  const hashValue = (value) => `${value}-${hash(value)}`;
22
38
  const hashRandomValue = (value) => {
23
39
  const randomValue = randomInt(1000000);
@@ -26,4 +42,4 @@ const hashRandomValue = (value) => {
26
42
  }
27
43
  return hash(randomValue.toString());
28
44
  };
29
- export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
45
+ export { hashRandomValue, hashValue, removeAttributesIf, setAttributeIfEmpty, ifAttribute, unslugName, };
@@ -0,0 +1,6 @@
1
+ const isMobileDevice = () => {
2
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3
+ const userAgent = navigator.userAgent || navigator.vendor || window.opera;
4
+ return /android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(userAgent);
5
+ };
6
+ export { isMobileDevice, };
@@ -31,13 +31,13 @@ export class KeyboardManager {
31
31
  };
32
32
  this.attachEscapeBehavior = (callback) => {
33
33
  this.escapeCallback = callback;
34
- if (window !== undefined) {
34
+ if (typeof window !== 'undefined') {
35
35
  window.addEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
36
36
  }
37
37
  };
38
38
  this.detachEscapeBehavior = () => {
39
39
  this.escapeCallback = () => { return; };
40
- if (window !== undefined) {
40
+ if (typeof window !== 'undefined') {
41
41
  window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));
42
42
  }
43
43
  };
@@ -1,61 +1,119 @@
1
1
  const fileExtensionsDictionary = {
2
- '7z': { format: 'archive', description: 'Archivio compresso' },
3
- ace: { format: 'archive', description: 'Archivio compresso' },
4
- ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
5
- dart: { format: 'code', description: 'Dart' },
6
- db: { format: 'data', description: 'File di database' },
7
- default: { format: 'attachment', description: 'Formato sconosciuto' },
8
- dmg: { format: 'executable', description: 'Apple Disk Image' },
9
- doc: { format: 'text', description: 'Documento Microsoft Word' },
10
- docm: { format: 'text', description: 'Documento Microsoft Word' },
11
- docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
12
- eml: { format: 'email', description: 'E-mail di posta elettronica' },
13
- eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
14
- exe: { format: 'executable', description: 'File eseguibile Windows' },
15
- flac: { format: 'audio', description: 'Audio non compresso' },
16
- gif: { format: 'image', description: 'Immagine compressa', preview: true },
17
- htm: { format: 'markup', description: 'Pagina web' },
18
- heic: { format: 'image', description: 'High Efficiency Image File Format' },
19
- html: { format: 'markup', description: 'Pagina web' },
20
- jpe: { format: 'image', description: 'Immagine compressa', preview: true },
21
- jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
22
- jpg: { format: 'image', description: 'Immagine compressa', preview: true },
23
- js: { format: 'code', description: 'JavaScript' },
24
- json: { format: 'data', description: 'JavaScript Object Notation' },
25
- jsx: { format: 'code', description: 'JavaScript' },
26
- m2v: { format: 'video', description: 'Filmato SD' },
27
- mp2: { format: 'audio', description: 'Audio compresso' },
28
- mp3: { format: 'audio', description: 'Audio compresso' },
29
- mp4: { format: 'video', description: 'Filmato HD' },
30
- mp4v: { format: 'video', description: 'Filmato HD' },
31
- mpeg: { format: 'video', description: 'Filmato SD' },
32
- mpg4: { format: 'video', description: 'Filmato SD' },
33
- mpg: { format: 'video', description: 'Filmato SD' },
34
- mpga: { format: 'audio', description: 'Audio compresso' },
35
- odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
36
- ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
37
- odt: { format: 'text', description: 'File di testo LibreOffice' },
38
- pdf: { format: 'document', description: 'Documento Adobe' },
39
- php: { format: 'code', description: 'Hypertext Preprocessor' },
40
- png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
41
- ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
42
- rar: { format: 'archive', description: 'Archivio compresso' },
43
- rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
44
- sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
45
- shtml: { format: 'markup', description: 'Pagina web' },
46
- svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
47
- tar: { format: 'archive', description: 'Archivio non compresso' },
48
- tiff: { format: 'image', description: 'Tag Image File Format' },
49
- ts: { format: 'code', description: 'TypeScript' },
50
- tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
51
- txt: { format: 'text', description: 'Documento di testo non formattato' },
52
- wav: { format: 'audio', description: 'Audio non compresso' },
53
- webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
54
- xar: { format: 'archive', description: 'Archivio compresso' },
55
- xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
56
- xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
57
- zip: { format: 'archive', description: 'Archivio compresso' },
2
+ '7z': { format: 'archive', description: 'compressedArchive' },
3
+ ace: { format: 'archive', description: 'compressedArchive' },
4
+ ai: { format: 'vector', description: 'fileAI' },
5
+ dart: { format: 'code', description: 'dart' },
6
+ db: { format: 'data', description: 'fileDB' },
7
+ default: { format: 'attachment', description: 'unknown' },
8
+ dmg: { format: 'executable', description: 'appleDiskImage' },
9
+ doc: { format: 'text', description: 'documentMS' },
10
+ docm: { format: 'text', description: 'documentMS' },
11
+ docx: { format: 'text', description: 'compressedDocumentMS' },
12
+ eml: { format: 'email', description: 'email' },
13
+ eps: { format: 'vector', description: 'fileEPS' },
14
+ exe: { format: 'executable', description: 'fileEXE' },
15
+ flac: { format: 'audio', description: 'uncompressedAudio' },
16
+ gif: { format: 'image', description: 'compressedImage', preview: true },
17
+ htm: { format: 'markup', description: 'documentWeb' },
18
+ heic: { format: 'image', description: 'imageHEFF' },
19
+ html: { format: 'markup', description: 'documentWeb' },
20
+ jpe: { format: 'image', description: 'compressedImage', preview: true },
21
+ jpeg: { format: 'image', description: 'compressedImage', preview: true },
22
+ jpg: { format: 'image', description: 'compressedImage', preview: true },
23
+ js: { format: 'code', description: 'fileJS' },
24
+ json: { format: 'data', description: 'fileJSON' },
25
+ jsx: { format: 'code', description: 'fileJS' },
26
+ m2v: { format: 'video', description: 'videoSD' },
27
+ mp2: { format: 'audio', description: 'compressedAudio' },
28
+ mp3: { format: 'audio', description: 'compressedAudio' },
29
+ mp4: { format: 'video', description: 'videoHD' },
30
+ mp4v: { format: 'video', description: 'videoHD' },
31
+ mpeg: { format: 'video', description: 'videoSD' },
32
+ mpg4: { format: 'video', description: 'videoSD' },
33
+ mpg: { format: 'video', description: 'videoSD' },
34
+ mpga: { format: 'audio', description: 'compressedAudio' },
35
+ odp: { format: 'slide', description: 'slideLO' },
36
+ ods: { format: 'spreadsheet', description: 'spreadsheetLO' },
37
+ odt: { format: 'text', description: 'documentLO' },
38
+ pdf: { format: 'document', description: 'documentAdobe' },
39
+ php: { format: 'code', description: 'filePHP' },
40
+ png: { format: 'image', description: 'imagePNG', preview: true },
41
+ ppt: { format: 'slide', description: 'slidePowerPoint' },
42
+ rar: { format: 'archive', description: 'compressedArchive' },
43
+ rtf: { format: 'text', description: 'documentRTF' },
44
+ sass: { format: 'code', description: 'fileSASS' },
45
+ shtml: { format: 'markup', description: 'documentWeb' },
46
+ svg: { format: 'vector', description: 'imageSVG', preview: true },
47
+ tar: { format: 'archive', description: 'uncompressedArchive' },
48
+ tiff: { format: 'image', description: 'imageTIFF' },
49
+ ts: { format: 'code', description: 'fileTS' },
50
+ tsx: { format: 'code', description: 'fileTSX' },
51
+ txt: { format: 'text', description: 'documentTXT' },
52
+ wav: { format: 'audio', description: 'uncompressedAudio' },
53
+ webp: { format: 'image', description: 'imageWEBP', preview: true },
54
+ xar: { format: 'archive', description: 'compressedArchive' },
55
+ xls: { format: 'spreadsheet', description: 'spreadsheetMS' },
56
+ xlsx: { format: 'spreadsheet', description: 'spreadsheetMS' },
57
+ zip: { format: 'archive', description: 'compressedArchive' },
58
58
  };
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
+ // }
59
117
  const genericMimeToExt = new Map([
60
118
  ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
61
119
  ['audio', ['.mp2', '.mp3', '.mpga', '.wav', '.flac']],
@@ -1,6 +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
+ const typographyHeadingTagDictionary = [
53
+ 'h1',
54
+ 'h2',
55
+ 'h3',
56
+ 'h4',
57
+ 'h5',
58
+ 'h6',
59
+ ];
1
60
  const truncateDictionary = [
2
61
  'all',
3
62
  'none',
4
63
  'word',
5
64
  ];
6
- export { truncateDictionary, };
65
+ export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-11-25T16:36:27",
2
+ "timestamp": "2024-12-04T17:23:47",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.22.2",
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-11-25T16:36:27",
2
+ "timestamp": "2024-12-04T17:23:48",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "22.11.0"
@@ -9,14 +9,15 @@
9
9
  "fsNamespace": "mds-input-tip",
10
10
  "components": 1,
11
11
  "entries": 1,
12
- "bundles": 93,
12
+ "bundles": 94,
13
13
  "outputs": [
14
14
  {
15
15
  "name": "dist-collection",
16
- "files": 45,
16
+ "files": 46,
17
17
  "generatedFiles": [
18
18
  "./dist/collection/common/aria.js",
19
19
  "./dist/collection/common/date.js",
20
+ "./dist/collection/common/device.js",
20
21
  "./dist/collection/common/file.js",
21
22
  "./dist/collection/common/icon.js",
22
23
  "./dist/collection/common/keyboard-manager.js",
@@ -454,6 +455,7 @@
454
455
  "sourceGraph": {
455
456
  "./src/common/aria.ts": [],
456
457
  "./src/common/date.ts": [],
458
+ "./src/common/device.ts": [],
457
459
  "./src/common/file.ts": [],
458
460
  "./src/common/icon.ts": [],
459
461
  "./src/common/keyboard-manager.ts": [],
@@ -1,5 +1,7 @@
1
1
  declare const unslugName: (name: string) => string;
2
2
  declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string;
3
+ declare const removeAttributesIf: (element: HTMLElement, attribute: string, valueCheck: string | undefined, cleanAttributes: string | string[]) => boolean;
4
+ declare const ifAttribute: (element: HTMLElement, attribute: string, valueCheck?: string) => boolean;
3
5
  declare const hashValue: (value: string) => string;
4
6
  declare const hashRandomValue: (value?: string) => string;
5
- export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
7
+ export { hashRandomValue, hashValue, removeAttributesIf, setAttributeIfEmpty, ifAttribute, unslugName, };
@@ -0,0 +1,2 @@
1
+ declare const isMobileDevice: () => boolean;
2
+ export { isMobileDevice, };
@@ -1,2 +1,4 @@
1
+ declare const typographyTagDictionary: string[];
2
+ declare const typographyHeadingTagDictionary: string[];
1
3
  declare const truncateDictionary: string[];
2
- export { truncateDictionary, };
4
+ export { truncateDictionary, typographyHeadingTagDictionary, typographyTagDictionary, };
@@ -1 +1,3 @@
1
+ export type TypographyTagType = 'abbr' | 'address' | 'article' | 'b' | 'bdo' | 'blockquote' | 'cite' | 'code' | 'dd' | 'del' | 'details' | 'dfn' | 'div' | 'dl' | 'dt' | 'em' | 'figcaption' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'i' | 'ins' | 'kbd' | 'label' | 'legend' | 'li' | 'mark' | 'ol' | 'p' | 'pre' | 'q' | 'rb' | 'rt' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'summary' | 'sup' | 'time' | 'u' | 'ul' | 'var';
2
+ export type TypographyHeadingTagType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
1
3
  export type TypographyTruncateType = 'all' | 'none' | 'word';
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-11-25T16:00:58",
2
+ "timestamp": "2024-12-04T15:30:05",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.22.2",
@@ -509,6 +509,11 @@
509
509
  "docstring": "",
510
510
  "path": "src/components/mds-push-notification/meta/event-detail.ts"
511
511
  },
512
+ "src/type/text.ts::TypographyHeadingTagType": {
513
+ "declaration": "export type TypographyHeadingTagType =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'",
514
+ "docstring": "",
515
+ "path": "src/type/text.ts"
516
+ },
512
517
  "src/components/mds-stepper-bar/meta/event-detail.ts::MdsStepperBarEventDetail": {
513
518
  "declaration": "export interface MdsStepperBarEventDetail {\n step: number\n value: string\n}",
514
519
  "docstring": "",
@@ -540,7 +545,7 @@
540
545
  "path": "src/components/mds-tab-item/meta/event-detail.ts"
541
546
  },
542
547
  "src/components/mds-table-header-cell/meta/types.ts::SortDirectionType": {
543
- "declaration": "export type SortDirectionType =\n | 'asc'\n | 'desc'\n | 'none'",
548
+ "declaration": "export type SortDirectionType =\n | 'ascending'\n | 'descending'\n | 'none'",
544
549
  "docstring": "",
545
550
  "path": "src/components/mds-table-header-cell/meta/types.ts"
546
551
  },
@@ -549,10 +554,10 @@
549
554
  "docstring": "",
550
555
  "path": "src/components/mds-text/meta/types.ts"
551
556
  },
552
- "src/components/mds-text/meta/types.ts::TypographyTagType": {
557
+ "src/type/text.ts::TypographyTagType": {
553
558
  "declaration": "export type TypographyTagType =\n | 'abbr'\n | 'address'\n | 'article'\n | 'b'\n | 'bdo'\n | 'blockquote'\n | 'cite'\n | 'code'\n | 'dd'\n | 'del'\n | 'details'\n | 'dfn'\n | 'div'\n | 'dl'\n | 'dt'\n | 'em'\n | 'figcaption'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'i'\n | 'ins'\n | 'kbd'\n | 'label'\n | 'legend'\n | 'li'\n | 'mark'\n | 'ol'\n | 'p'\n | 'pre'\n | 'q'\n | 'rb'\n | 'rt'\n | 'ruby'\n | 's'\n | 'samp'\n | 'small'\n | 'span'\n | 'strong'\n | 'sub'\n | 'summary'\n | 'sup'\n | 'time'\n | 'u'\n | 'ul'\n | 'var'",
554
559
  "docstring": "",
555
- "path": "src/components/mds-text/meta/types.ts"
560
+ "path": "src/type/text.ts"
556
561
  },
557
562
  "src/type/variant.ts::ThemeLuminanceVariantType": {
558
563
  "declaration": "export type ThemeLuminanceVariantType =\n | 'dark'\n | 'light'",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-input-tip",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "mds-input-tip 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-input-tip-item": "1.2.1",
27
+ "@maggioli-design-system/mds-input-tip-item": "1.2.2",
28
28
  "@maggioli-design-system/styles": "15.5.0",
29
29
  "@stencil/core": "4.22.2"
30
30
  },
@@ -20,6 +20,24 @@ const setAttributeIfEmpty = (element: HTMLElement, attribute: string, value: str
20
20
  return value
21
21
  }
22
22
 
23
+ const removeAttributesIf = (element: HTMLElement, attribute: string, valueCheck: string = 'true', cleanAttributes: string | string[]): boolean => {
24
+ if (ifAttribute(element, attribute, valueCheck)) {
25
+ const attributesList = Array.isArray(cleanAttributes) ? cleanAttributes : [cleanAttributes]
26
+ attributesList.forEach(attributeToRemove => {
27
+ element.removeAttribute(attributeToRemove)
28
+ })
29
+ return true
30
+ }
31
+ return false
32
+ }
33
+
34
+ const ifAttribute = (element: HTMLElement, attribute: string, valueCheck: string = 'true'): boolean => {
35
+ if (element.hasAttribute(attribute) && element.getAttribute(attribute) === valueCheck) {
36
+ return true
37
+ }
38
+ return false
39
+ }
40
+
23
41
  const hashValue = (value: string): string => `${value}-${hash(value)}`
24
42
 
25
43
  const hashRandomValue = (value?: string): string => {
@@ -32,8 +50,10 @@ const hashRandomValue = (value?: string): string => {
32
50
  }
33
51
 
34
52
  export {
35
- unslugName,
36
- setAttributeIfEmpty,
37
53
  hashRandomValue,
38
54
  hashValue,
55
+ removeAttributesIf,
56
+ setAttributeIfEmpty,
57
+ ifAttribute,
58
+ unslugName,
39
59
  }
@@ -0,0 +1,9 @@
1
+ const isMobileDevice = (): boolean => {
2
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3
+ const userAgent = navigator.userAgent || navigator.vendor || (window as any).opera
4
+ return /android|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(userAgent)
5
+ }
6
+
7
+ export {
8
+ isMobileDevice,
9
+ }
@@ -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
  }
@@ -11,64 +11,123 @@ interface ExtensionInfo {
11
11
  }
12
12
 
13
13
  const fileExtensionsDictionary: FileExtenstion = {
14
- '7z': { format: 'archive', description: 'Archivio compresso' },
15
- ace: { format: 'archive', description: 'Archivio compresso' },
16
- ai: { format: 'vector', description: 'Vettoriale Adobe Illustrator' },
17
- dart: { format: 'code', description: 'Dart' },
18
- db: { format: 'data', description: 'File di database' },
19
- default: { format: 'attachment', description: 'Formato sconosciuto' },
20
- dmg: { format: 'executable', description: 'Apple Disk Image' },
21
- doc: { format: 'text', description: 'Documento Microsoft Word' },
22
- docm: { format: 'text', description: 'Documento Microsoft Word' },
23
- docx: { format: 'text', description: 'Documento Microsoft Word Compresso' },
24
- eml: { format: 'email', description: 'E-mail di posta elettronica' },
25
- eps: { format: 'vector', description: 'Vettoriale Corel Draw' },
26
- exe: { format: 'executable', description: 'File eseguibile Windows' },
27
- flac: { format: 'audio', description: 'Audio non compresso' },
28
- gif: { format: 'image', description: 'Immagine compressa', preview: true },
29
- htm: { format: 'markup', description: 'Pagina web' },
30
- heic: { format: 'image', description: 'High Efficiency Image File Format' },
31
- html: { format: 'markup', description: 'Pagina web' },
32
- jpe: { format: 'image', description: 'Immagine compressa', preview: true },
33
- jpeg: { format: 'image', description: 'Immagine compressa', preview: true },
34
- jpg: { format: 'image', description: 'Immagine compressa', preview: true },
35
- js: { format: 'code', description: 'JavaScript' },
36
- json: { format: 'data', description: 'JavaScript Object Notation' },
37
- jsx: { format: 'code', description: 'JavaScript' },
38
- m2v: { format: 'video', description: 'Filmato SD' },
39
- mp2: { format: 'audio', description: 'Audio compresso' },
40
- mp3: { format: 'audio', description: 'Audio compresso' },
41
- mp4: { format: 'video', description: 'Filmato HD' },
42
- mp4v: { format: 'video', description: 'Filmato HD' },
43
- mpeg: { format: 'video', description: 'Filmato SD' },
44
- mpg4: { format: 'video', description: 'Filmato SD' },
45
- mpg: { format: 'video', description: 'Filmato SD' },
46
- mpga: { format: 'audio', description: 'Audio compresso' },
47
- odp: { format: 'slide', description: 'Slide di presentazione LibreOffice' },
48
- ods: { format: 'spreadsheet', description: 'Foglio di calcolo LibreOffice' },
49
- odt: { format: 'text', description: 'File di testo LibreOffice' },
50
- pdf: { format: 'document', description: 'Documento Adobe' },
51
- php: { format: 'code', description: 'Hypertext Preprocessor' },
52
- png: { format: 'image', description: 'Immagine Portable Network Graphics', preview: true },
53
- ppt: { format: 'slide', description: 'Slide di presentazione PowerPoint' },
54
- rar: { format: 'archive', description: 'Archivio compresso' },
55
- rtf: { format: 'text', description: 'Documento di testo Rich Text Format' },
56
- sass: { format: 'code', description: 'Syntactically Awesome StyleSheets' },
57
- shtml: { format: 'markup', description: 'Pagina web' },
58
- svg: { format: 'vector', description: 'Scalable Vector Graphics', preview: true },
59
- tar: { format: 'archive', description: 'Archivio non compresso' },
60
- tiff: { format: 'image', description: 'Tag Image File Format' },
61
- ts: { format: 'code', description: 'TypeScript' },
62
- tsx: { format: 'code', description: 'TypeScript Extended Syntax' },
63
- txt: { format: 'text', description: 'Documento di testo non formattato' },
64
- wav: { format: 'audio', description: 'Audio non compresso' },
65
- webp: { format: 'image', description: 'Immagine Web Picture', preview: true },
66
- xar: { format: 'archive', description: 'Archivio compresso' },
67
- xls: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
68
- xlsx: { format: 'spreadsheet', description: 'Foglio di calcolo Office' },
69
- 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' },
70
70
  }
71
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
+
72
131
  const genericMimeToExt: Map<string, string[]> = new Map([
73
132
  ['image', ['.png', '.jpg', '.jpeg', '.tiff', '.webp', '.jpe', '.gif', '.heic']],
74
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
  }
@@ -35,6 +35,7 @@
35
35
  "mgg/adv-denied",
36
36
  "mgg/ai-brain",
37
37
  "mgg/ai-brain-outline",
38
+ "mgg/ai-human",
38
39
  "mgg/ai-message",
39
40
  "mgg/ai-outline",
40
41
  "mgg/ai-status-completed",
@@ -111,6 +112,8 @@
111
112
  "mgg/factory",
112
113
  "mgg/farmer",
113
114
  "mgg/field",
115
+ "mgg/file-certificate",
116
+ "mgg/file-clock",
114
117
  "mgg/file-download",
115
118
  "mgg/file-folder-tree",
116
119
  "mgg/file-folder-tree-open",
@@ -132,6 +135,7 @@
132
135
  "mgg/finance-euro-cashback",
133
136
  "mgg/fit-horizontal",
134
137
  "mgg/fit-vertical",
138
+ "mgg/fontawesome-torii-gate",
135
139
  "mgg/forwarded-with-a-single-sending",
136
140
  "mgg/fullscreen-on-alt",
137
141
  "mgg/google-book-closed",
@@ -141,6 +145,7 @@
141
145
  "mgg/google-book-opening",
142
146
  "mgg/google-book-opening-outline",
143
147
  "mgg/google-check-small",
148
+ "mgg/google-drag-pan",
144
149
  "mgg/google-experiment",
145
150
  "mgg/google-face-retouching-off",
146
151
  "mgg/google-hub",
@@ -320,6 +325,7 @@
320
325
  "mi/baseline/book",
321
326
  "mi/baseline/border-all",
322
327
  "mi/baseline/broken-image",
328
+ "mi/baseline/call",
323
329
  "mi/baseline/cancel",
324
330
  "mi/baseline/category",
325
331
  "mi/baseline/check-box",
@@ -329,6 +335,7 @@
329
335
  "mi/baseline/contrast",
330
336
  "mi/baseline/css",
331
337
  "mi/baseline/dark-mode",
338
+ "mi/baseline/delete",
332
339
  "mi/baseline/description",
333
340
  "mi/baseline/directions-run",
334
341
  "mi/baseline/directions-walk",
@@ -360,6 +367,7 @@
360
367
  "mi/baseline/remove",
361
368
  "mi/baseline/remove-circle",
362
369
  "mi/baseline/route",
370
+ "mi/baseline/send",
363
371
  "mi/baseline/settings",
364
372
  "mi/baseline/sports",
365
373
  "mi/baseline/sports-soccer",
@@ -23,6 +23,7 @@
23
23
  "mgg/adv-denied",
24
24
  "mgg/ai-brain-outline",
25
25
  "mgg/ai-brain",
26
+ "mgg/ai-human",
26
27
  "mgg/ai-message",
27
28
  "mgg/ai-outline",
28
29
  "mgg/ai-status-completed",
@@ -99,6 +100,8 @@
99
100
  "mgg/factory",
100
101
  "mgg/farmer",
101
102
  "mgg/field",
103
+ "mgg/file-certificate",
104
+ "mgg/file-clock",
102
105
  "mgg/file-download",
103
106
  "mgg/file-folder-tree-open",
104
107
  "mgg/file-folder-tree",
@@ -120,6 +123,7 @@
120
123
  "mgg/finance-euro-cashback",
121
124
  "mgg/fit-horizontal",
122
125
  "mgg/fit-vertical",
126
+ "mgg/fontawesome-torii-gate",
123
127
  "mgg/forwarded-with-a-single-sending",
124
128
  "mgg/fullscreen-on-alt",
125
129
  "mgg/google-book-closed-outline",
@@ -129,6 +133,7 @@
129
133
  "mgg/google-book-opening-outline",
130
134
  "mgg/google-book-opening",
131
135
  "mgg/google-check-small",
136
+ "mgg/google-drag-pan",
132
137
  "mgg/google-experiment",
133
138
  "mgg/google-face-retouching-off",
134
139
  "mgg/google-hub",
@@ -0,0 +1,39 @@
1
+ {
2
+ "appleDiskImage": "Εικόνα δίσκου Apple",
3
+ "compressedArchive": "Συμπιεσμένο αρχείο",
4
+ "uncompressedArchive": "Μη συμπιεσμένο αρχείο",
5
+ "compressedAudio": "Συμπιεσμένος ήχος",
6
+ "uncompressedAudio": "Μη συμπιεσμένος ήχος",
7
+ "dart": "Αρχείο Dart",
8
+ "documentAdobe": "Έγγραφο Adobe",
9
+ "compressedDocumentMS": "Συμπιεσμένο έγγραφο Microsoft Word",
10
+ "documentMS": "Έγγραφο Microsoft Word",
11
+ "documentRTF": "Έγγραφο μορφής εμπλουτισμένου κειμένου",
12
+ "documentTXT": "Απλό έγγραφο κειμένου",
13
+ "email": "Ηλεκτρονικό ταχυδρομείο",
14
+ "fileDB": "Αρχείο βάσης δεδομένων",
15
+ "documentLO": "Έγγραφο LibreOffice",
16
+ "fileEXE": "Εκτελέσιμο αρχείο Windows",
17
+ "videoHD": "Βίντεο υψηλής ανάλυσης",
18
+ "videoSD": "Βίντεο χαμηλής ανάλυσης",
19
+ "spreadsheetLO": "Υπολογιστικό φύλλο LibreOffice",
20
+ "spreadsheetMS": "Υπολογιστικό φύλλο Microsoft Office",
21
+ "unknown": "Άγνωστη μορφή αρχείου",
22
+ "imageHEIC": "Μορφή αρχείου εικόνας υψηλής αποδοτικότητας",
23
+ "filePHP": "Αρχείο Hypertext Preprocessor",
24
+ "imagePNG": "Εικόνα Portable Network Graphics",
25
+ "imageWEBP": "Εικόνα Google Web Picture",
26
+ "compressedImage": "Συμπιεσμένη εικόνα",
27
+ "fileJSON": "Αρχείο JavaScript Object Notation",
28
+ "fileJS": "Αρχείο JavaScript",
29
+ "documentWeb": "Ιστοσελίδα",
30
+ "imageSVG": "Διανυσματική εικόνα Scalable Vector Graphics",
31
+ "slideLO": "Διαφάνεια παρουσίασης LibreOffice",
32
+ "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"
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "appleDiskImage": "Apple Disk Image",
3
+ "compressedArchive": "Compressed Archive",
4
+ "uncompressedArchive": "Uncompressed Archive",
5
+ "compressedAudio": "Compressed Audio",
6
+ "uncompressedAudio": "Uncompressed Audio",
7
+ "dart": "Dart File",
8
+ "documentAdobe": "Adobe Document",
9
+ "compressedDocumentMS": "Compressed Microsoft Word Document",
10
+ "documentMS": "Microsoft Word Document",
11
+ "documentRTF": "Rich Text Format Document",
12
+ "documentTXT": "Plain Text Document",
13
+ "email": "E-mail",
14
+ "fileDB": "Database File",
15
+ "documentLO": "LibreOffice Document",
16
+ "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",
23
+ "filePHP": "Hypertext Preprocessor File",
24
+ "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
+ "imageSVG": "Scalable Vector Graphics Image",
31
+ "slideLO": "LibreOffice Presentation Slide",
32
+ "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"
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "appleDiskImage": "Imagen de disco Apple",
3
+ "compressedArchive": "Archivo comprimido",
4
+ "uncompressedArchive": "Archivo no comprimido",
5
+ "compressedAudio": "Audio comprimido",
6
+ "uncompressedAudio": "Audio no comprimido",
7
+ "dart": "Archivo Dart",
8
+ "documentAdobe": "Documento Adobe",
9
+ "compressedDocumentMS": "Documento comprimido de Microsoft Word",
10
+ "documentMS": "Documento de Microsoft Word",
11
+ "documentRTF": "Documento de formato de texto enriquecido",
12
+ "documentTXT": "Documento de texto sin formato",
13
+ "email": "Correo electrónico",
14
+ "fileDB": "Archivo de base de datos",
15
+ "documentLO": "Documento de LibreOffice",
16
+ "fileEXE": "Archivo ejecutable de Windows",
17
+ "videoHD": "Video de alta definición",
18
+ "videoSD": "Video de definición estándar",
19
+ "spreadsheetLO": "Hoja de cálculo de LibreOffice",
20
+ "spreadsheetMS": "Hoja de cálculo de Microsoft Office",
21
+ "unknown": "Formato de archivo desconocido",
22
+ "imageHEIC": "Formato de archivo de imagen de alta eficiencia",
23
+ "filePHP": "Archivo de preprocesador de hipertexto",
24
+ "imagePNG": "Imagen Portable Network Graphics",
25
+ "imageWEBP": "Imagen Google Web Picture",
26
+ "compressedImage": "Imagen comprimida",
27
+ "fileJSON": "Archivo de notación de objetos de JavaScript",
28
+ "fileJS": "Archivo JavaScript",
29
+ "documentWeb": "Página web",
30
+ "imageSVG": "Imagen de gráficos vectoriales escalables",
31
+ "slideLO": "Diapositiva de presentación de LibreOffice",
32
+ "slidePowerPoint": "Diapositiva de presentación de PowerPoint",
33
+ "fileSASS": "Archivo de Syntactically Awesome StyleSheets",
34
+ "imageTIFF": "Imagen de formato de archivo de imagen etiquetado",
35
+ "fileTSX": "Archivo de sintaxis extendida de TypeScript",
36
+ "fileTS": "Archivo TypeScript",
37
+ "fileAI": "Archivo vectorial de Adobe Illustrator",
38
+ "fileEPS": "Archivo vectorial de Corel Draw"
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "appleDiskImage": "Immagine Disco Apple",
3
+ "compressedArchive": "Archivio compresso",
4
+ "uncompressedArchive": "Archivio non compresso",
5
+ "compressedAudio": "Audio compresso",
6
+ "uncompressedAudio": "Audio non compresso",
7
+ "dart": "File Dart",
8
+ "documentAdobe": "Documento Adobe",
9
+ "compressedDocumentMS": "Documento di testo Microsoft Word Compresso",
10
+ "documentMS": "Documento di testo Microsoft Word",
11
+ "documentRTF": "Documento di testo Rich Text Format",
12
+ "documentTXT": "Documento di testo senza formattazione",
13
+ "email": "E-mail",
14
+ "fileDB": "File di database",
15
+ "documentLO": "Documento di testo LibreOffice",
16
+ "fileEXE": "File eseguibile Windows",
17
+ "videoHD": "Filmato HD ad alta risoluzione",
18
+ "videoSD": "Filmato SD a bassa risoluzione",
19
+ "spreadsheetLO": "Foglio di calcolo LibreOffice",
20
+ "spreadsheetMS": "Foglio di calcolo Office",
21
+ "unknown": "Formato file sconosciuto",
22
+ "imageHEIC": "High Efficiency Image File Format",
23
+ "filePHP": "File Hypertext Preprocessor",
24
+ "imagePNG": "Immagine Portable Network Graphics",
25
+ "imageWEBP": "Immagine Google Web Picture",
26
+ "compressedImage": "Immagine compressa",
27
+ "fileJSON": "File JavaScript Object Notation",
28
+ "fileJS": "File JavaScript",
29
+ "documentWeb": "Pagina web",
30
+ "imageSVG": "Immagine vettoriale Scalable Vector Graphics",
31
+ "slideLO": "Slide di presentazione LibreOffice",
32
+ "slidePowerPoint": "Slide di presentazione PowerPoint",
33
+ "fileSASS": "File Syntactically Awesome StyleSheets",
34
+ "imageTIFF": "Immagine Tag Image File Format",
35
+ "fileTSX": "File TypeScript Extended Syntax",
36
+ "fileTS": "File TypeScript",
37
+ "fileAI": "File vettoriale Adobe Illustrator",
38
+ "fileEPS": "File vettoriale Corel Draw"
39
+ }
package/src/type/text.ts CHANGED
@@ -1,3 +1,62 @@
1
+ export type TypographyTagType =
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
+ export type TypographyHeadingTagType =
53
+ | 'h1'
54
+ | 'h2'
55
+ | 'h3'
56
+ | 'h4'
57
+ | 'h5'
58
+ | 'h6'
59
+
1
60
  export type TypographyTruncateType =
2
61
  | 'all'
3
62
  | 'none'