@maggioli-design-system/mds-table-row 4.7.0 → 4.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-97006570.js → index-6df370d5.js} +14 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +2 -2
- package/dist/cjs/mds-table-row.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/common/locale.js +17 -5
- package/dist/collection/components/mds-table-row/mds-table-row.css +0 -254
- package/dist/collection/dictionary/button.js +1 -0
- package/dist/collection/dictionary/variant.js +10 -1
- package/dist/collection/type/variant-file-format.js +0 -34
- package/dist/components/mds-table-row.js +1 -1
- package/dist/documentation.json +3 -3
- package/dist/esm/{index-ac4b33c0.js → index-6aef85b9.js} +14 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-table-row.entry.js +2 -2
- package/dist/esm/mds-table-row.js +3 -3
- package/dist/esm-es5/index-6aef85b9.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +1 -1
- package/dist/esm-es5/mds-table-row.js +1 -1
- package/dist/mds-table-row/mds-table-row.esm.js +1 -1
- package/dist/mds-table-row/mds-table-row.js +1 -1
- package/dist/mds-table-row/p-6fd17720.js +2 -0
- package/dist/mds-table-row/p-81af01a5.entry.js +1 -0
- package/dist/mds-table-row/p-93ae789e.system.js +2 -0
- package/dist/mds-table-row/{p-11e2454f.system.js → p-a349d802.system.js} +1 -1
- package/dist/mds-table-row/p-fa157b43.system.entry.js +1 -0
- package/dist/stats.json +34 -36
- package/dist/types/common/date.d.ts +1 -1
- package/dist/types/common/file.d.ts +3 -4
- package/dist/types/common/locale.d.ts +3 -1
- package/dist/types/dictionary/file-extensions.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/dist/types/type/autocomplete.d.ts +1 -1
- package/dist/types/type/button.d.ts +1 -1
- package/dist/types/type/header-bar.d.ts +2 -0
- package/dist/types/type/input.d.ts +3 -0
- package/dist/types/type/variant-file-format.d.ts +4 -4
- package/dist/types/type/variant.d.ts +2 -1
- package/documentation.json +36 -31
- package/package.json +5 -5
- package/readme.md +1 -1
- package/src/common/file.ts +2 -3
- package/src/common/locale.ts +20 -6
- package/src/common/unit.ts +1 -1
- package/src/components/mds-table-row/.gitlab-ci.yml +5 -10
- package/src/dictionary/button.ts +1 -0
- package/src/dictionary/file-extensions.ts +3 -1
- package/src/dictionary/variant.ts +11 -0
- package/src/fixtures/icons.json +12 -2
- package/src/fixtures/iconsauce.json +7 -0
- package/src/tailwind/components.css +1 -1
- package/src/type/autocomplete.ts +0 -1
- package/src/type/button.ts +1 -0
- package/src/type/header-bar.ts +11 -0
- package/src/type/input.ts +4 -0
- package/src/type/variant-file-format.ts +20 -37
- package/src/type/variant.ts +9 -1
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +1 -1
- package/www/build/p-6fd17720.js +2 -0
- package/www/build/p-81af01a5.entry.js +1 -0
- package/www/build/p-93ae789e.system.js +2 -0
- package/www/build/{p-11e2454f.system.js → p-a349d802.system.js} +1 -1
- package/www/build/p-fa157b43.system.entry.js +1 -0
- package/dist/collection/type/language.js +0 -1
- package/dist/esm-es5/index-ac4b33c0.js +0 -1
- package/dist/mds-table-row/p-0a6d4960.js +0 -2
- package/dist/mds-table-row/p-bc92b059.system.js +0 -2
- package/dist/mds-table-row/p-cb00bcd8.entry.js +0 -1
- package/dist/mds-table-row/p-e2d6387e.system.entry.js +0 -1
- package/dist/types/interface/input-value.d.ts +0 -4
- package/dist/types/type/language.d.ts +0 -2
- package/src/interface/input-value.ts +0 -5
- package/src/type/language.ts +0 -8
- package/www/build/p-0a6d4960.js +0 -2
- package/www/build/p-bc92b059.system.js +0 -2
- package/www/build/p-cb00bcd8.entry.js +0 -1
- package/www/build/p-e2d6387e.system.entry.js +0 -1
- /package/dist/collection/{interface/input-value.js → type/header-bar.js} +0 -0
package/documentation.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-11-25T16:00:58",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
6
|
-
"typescriptVersion": "5.5.
|
|
5
|
+
"version": "4.22.2",
|
|
6
|
+
"typescriptVersion": "5.5.4"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
9
9
|
{
|
|
10
10
|
"filePath": "src/components/mds-table-row/mds-table-row.tsx",
|
|
11
11
|
"encapsulation": "shadow",
|
|
12
12
|
"tag": "mds-table-row",
|
|
13
|
-
"readme": "# mds-table-row\n\n\n\nThis is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the
|
|
14
|
-
"docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the
|
|
13
|
+
"readme": "# mds-table-row\n\n\n\nThis is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), 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.\n",
|
|
14
|
+
"docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), 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.",
|
|
15
15
|
"docsTags": [
|
|
16
16
|
{
|
|
17
17
|
"name": "slot",
|
|
@@ -81,6 +81,11 @@
|
|
|
81
81
|
"docstring": "",
|
|
82
82
|
"path": "src/components/mds-accordion-item/meta/event-detail.ts"
|
|
83
83
|
},
|
|
84
|
+
"src/components/mds-accordion-timer/meta/event-detail.ts::MdsAccordionTimerEventDetail": {
|
|
85
|
+
"declaration": "export interface MdsAccordionTimerEventDetail {\n index: number;\n}",
|
|
86
|
+
"docstring": "",
|
|
87
|
+
"path": "src/components/mds-accordion-timer/meta/event-detail.ts"
|
|
88
|
+
},
|
|
84
89
|
"src/components/mds-accordion-timer-item/meta/event-detail.ts::MdsAccordionTimerItemEventDetail": {
|
|
85
90
|
"declaration": "export interface MdsAccordionTimerItemEventDetail {\n selected: boolean;\n uuid: number;\n}",
|
|
86
91
|
"docstring": "",
|
|
@@ -167,7 +172,7 @@
|
|
|
167
172
|
"path": "src/type/button.ts"
|
|
168
173
|
},
|
|
169
174
|
"src/type/button.ts::ButtonVariantType": {
|
|
170
|
-
"declaration": "export type ButtonVariantType =\n | 'primary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
|
|
175
|
+
"declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
|
|
171
176
|
"docstring": "",
|
|
172
177
|
"path": "src/type/button.ts"
|
|
173
178
|
},
|
|
@@ -181,6 +186,11 @@
|
|
|
181
186
|
"docstring": "",
|
|
182
187
|
"path": "src/type/button.ts"
|
|
183
188
|
},
|
|
189
|
+
"src/type/variant.ts::ChipVariantType": {
|
|
190
|
+
"declaration": "export type ChipVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
|
|
191
|
+
"docstring": "",
|
|
192
|
+
"path": "src/type/variant.ts"
|
|
193
|
+
},
|
|
184
194
|
"src/components/mds-chip/meta/interface.ts::MdsChipEvent": {
|
|
185
195
|
"declaration": "interface MdsChipEvent {\n event: Event\n element: HTMLMdsChipElement\n}",
|
|
186
196
|
"docstring": "",
|
|
@@ -222,7 +232,7 @@
|
|
|
222
232
|
"path": "src/type/text.ts"
|
|
223
233
|
},
|
|
224
234
|
"src/components/mds-file-preview/meta/event-detail.ts::MdsFilePreviewEventDetail": {
|
|
225
|
-
"declaration": "export interface MdsFilePreviewEventDetail {\n extension: string\n filename: string\n target:
|
|
235
|
+
"declaration": "export interface MdsFilePreviewEventDetail {\n extension: string\n filename: string\n target: HTMLMdsFilePreviewElement\n}",
|
|
226
236
|
"docstring": "",
|
|
227
237
|
"path": "src/components/mds-file-preview/meta/event-detail.ts"
|
|
228
238
|
},
|
|
@@ -236,10 +246,15 @@
|
|
|
236
246
|
"docstring": "",
|
|
237
247
|
"path": "src/components/mds-filter-item/meta/event-detail.ts"
|
|
238
248
|
},
|
|
239
|
-
"src/
|
|
240
|
-
"declaration": "export type
|
|
249
|
+
"src/type/header-bar.ts::HeaderBarMenuType": {
|
|
250
|
+
"declaration": "export type HeaderBarMenuType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
|
|
241
251
|
"docstring": "",
|
|
242
|
-
"path": "src/
|
|
252
|
+
"path": "src/type/header-bar.ts"
|
|
253
|
+
},
|
|
254
|
+
"src/type/header-bar.ts::HeaderBarNavType": {
|
|
255
|
+
"declaration": "export type HeaderBarNavType =\n | 'all'\n | 'desktop'\n | 'mobile'\n | 'none'",
|
|
256
|
+
"docstring": "",
|
|
257
|
+
"path": "src/type/header-bar.ts"
|
|
243
258
|
},
|
|
244
259
|
"src/components/mds-header/meta/event-detail.ts::MdsHeaderEventDetail": {
|
|
245
260
|
"declaration": "export interface MdsHeaderEventDetail {\n bar: HTMLMdsHeaderBarElement\n}",
|
|
@@ -277,7 +292,7 @@
|
|
|
277
292
|
"path": "src/components/mds-img/meta/event-detail.ts"
|
|
278
293
|
},
|
|
279
294
|
"src/type/autocomplete.ts::AutocompleteType": {
|
|
280
|
-
"declaration": "export type AutocompleteType =\n | 'additional-name'\n | 'address'\n | 'address-level1'\n | 'address-level2'\n | 'address-level3'\n | 'address-level4'\n | 'address-line1'\n | 'address-line2'\n | 'address-line3'\n | 'bday'\n | 'bday-day'\n | 'bday-month'\n | 'bday-year'\n | 'cc-additional-name'\n | 'cc-csc'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-family-name'\n | 'cc-
|
|
295
|
+
"declaration": "export type AutocompleteType =\n | 'additional-name'\n | 'address'\n | 'address-level1'\n | 'address-level2'\n | 'address-level3'\n | 'address-level4'\n | 'address-line1'\n | 'address-line2'\n | 'address-line3'\n | 'bday'\n | 'bday-day'\n | 'bday-month'\n | 'bday-year'\n | 'cc-additional-name'\n | 'cc-csc'\n | 'cc-exp'\n | 'cc-exp-month'\n | 'cc-exp-year'\n | 'cc-family-name'\n | 'cc-given-name'\n | 'cc-name'\n | 'cc-number'\n | 'cc-type'\n | 'country'\n | 'country-name'\n | 'current-password'\n | 'email'\n | 'family-name'\n | 'given-name'\n | 'honorific-prefix'\n | 'honorific-suffix'\n | 'impp'\n | 'language'\n | 'name'\n | 'new-password'\n | 'nickname'\n | 'off'\n | 'on'\n | 'one-time-code'\n | 'organization'\n | 'organization-title'\n | 'photo'\n | 'postal-code'\n | 'sex'\n | 'street-address'\n | 'tel'\n | 'tel-area-code'\n | 'tel-country-code'\n | 'tel-extension'\n | 'tel-local'\n | 'tel-national'\n | 'transaction-amount'\n | 'transaction-currency'\n | 'url'\n | 'username'",
|
|
281
296
|
"docstring": "",
|
|
282
297
|
"path": "src/type/autocomplete.ts"
|
|
283
298
|
},
|
|
@@ -306,10 +321,10 @@
|
|
|
306
321
|
"docstring": "",
|
|
307
322
|
"path": "src/type/typography.ts"
|
|
308
323
|
},
|
|
309
|
-
"src/
|
|
310
|
-
"declaration": "export interface MdsInputEventDetail {\n value?: string\n}",
|
|
324
|
+
"src/type/input.ts::MdsInputEventDetail": {
|
|
325
|
+
"declaration": "export interface MdsInputEventDetail {\n value?: File | string | FormData | null\n}",
|
|
311
326
|
"docstring": "",
|
|
312
|
-
"path": "src/
|
|
327
|
+
"path": "src/type/input.ts"
|
|
313
328
|
},
|
|
314
329
|
"src/components/mds-input-field/meta/types.ts::InputFieldType": {
|
|
315
330
|
"declaration": "export type InputFieldType =\n | 'date'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'textarea'\n | 'time'\n | 'url'\n | 'cc'\n | 'cf'\n | 'isbn'\n | 'piva'",
|
|
@@ -326,11 +341,6 @@
|
|
|
326
341
|
"docstring": "",
|
|
327
342
|
"path": "src/components/mds-input-field/meta/validators.ts"
|
|
328
343
|
},
|
|
329
|
-
"src/interface/input-value.ts::InputValue": {
|
|
330
|
-
"declaration": "export interface InputValue {\n value: InputValueType\n}",
|
|
331
|
-
"docstring": "",
|
|
332
|
-
"path": "src/interface/input-value.ts"
|
|
333
|
-
},
|
|
334
344
|
"src/components/mds-input-switch/meta/types.ts::InputSwitchSizeType": {
|
|
335
345
|
"declaration": "export type InputSwitchSizeType =\n | 'sm'\n | 'md'\n | 'lg'",
|
|
336
346
|
"docstring": "",
|
|
@@ -377,7 +387,12 @@
|
|
|
377
387
|
"path": "src/type/typography.ts"
|
|
378
388
|
},
|
|
379
389
|
"src/components/mds-modal/meta/types.ts::ModalPositionType": {
|
|
380
|
-
"declaration": "export type ModalPositionType =\n | 'bottom'\n | 'center'\n | 'left'\n | 'right'\n | 'top'",
|
|
390
|
+
"declaration": "export type ModalPositionType =\n | 'bottom'\n | 'bottom-left'\n | 'bottom-right'\n | 'center'\n | 'left'\n | 'right'\n | 'top'\n | 'top-left'\n | 'top-right'",
|
|
391
|
+
"docstring": "",
|
|
392
|
+
"path": "src/components/mds-modal/meta/types.ts"
|
|
393
|
+
},
|
|
394
|
+
"src/components/mds-modal/meta/types.ts::ModalAnimationStateType": {
|
|
395
|
+
"declaration": "export type ModalAnimationStateType =\n | 'intro'\n | 'none'\n | 'outro'",
|
|
381
396
|
"docstring": "",
|
|
382
397
|
"path": "src/components/mds-modal/meta/types.ts"
|
|
383
398
|
},
|
|
@@ -416,21 +431,11 @@
|
|
|
416
431
|
"docstring": "",
|
|
417
432
|
"path": "src/components/mds-pref-contrast/meta/types.ts"
|
|
418
433
|
},
|
|
419
|
-
"src/type/language.ts::PrefLanguageType": {
|
|
420
|
-
"declaration": "export type PrefLanguageType =\n | 'auto'\n | `${Lowercase<string>}${Lowercase<string>}`\n | `${Lowercase<string>}${Lowercase<string>}${Lowercase<string>}`",
|
|
421
|
-
"docstring": "",
|
|
422
|
-
"path": "src/type/language.ts"
|
|
423
|
-
},
|
|
424
434
|
"src/event-detail/language.ts::MdsPrefLanguageEventDetail": {
|
|
425
|
-
"declaration": "export interface MdsPrefLanguageEventDetail {\n language?:
|
|
435
|
+
"declaration": "export interface MdsPrefLanguageEventDetail {\n /* A string representing the language version as defined in {@link https://datatracker.ietf.org/doc/html/rfc5646 RFC 5646: Tags for Identifying Languages (also known as BCP 47)}.\n *\n * `Examples of valid language codes include \"en\", \"en-US\", \"fr\", \"fr-FR\", \"es-ES\", etc.`\n */\n language?: string\n}",
|
|
426
436
|
"docstring": "",
|
|
427
437
|
"path": "src/event-detail/language.ts"
|
|
428
438
|
},
|
|
429
|
-
"src/type/language.ts::LanguageType": {
|
|
430
|
-
"declaration": "export type LanguageType =\n | `${Lowercase<string>}${Lowercase<string>}`\n | `${Lowercase<string>}${Lowercase<string>}${Lowercase<string>}`",
|
|
431
|
-
"docstring": "",
|
|
432
|
-
"path": "src/type/language.ts"
|
|
433
|
-
},
|
|
434
439
|
"src/components/mds-pref-theme/meta/types.ts::ThemeModeType": {
|
|
435
440
|
"declaration": "export type ThemeModeType =\n | 'light'\n | 'dark'\n | 'system'",
|
|
436
441
|
"docstring": "",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-table-row",
|
|
3
|
-
"version": "4.7.
|
|
4
|
-
"description": "mds-table-row 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
|
|
3
|
+
"version": "4.7.1",
|
|
4
|
+
"description": "mds-table-row 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",
|
|
7
7
|
"es2015": "dist/esm/index.mjs",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@maggioli-design-system/mds-table-cell": "4.7.
|
|
27
|
-
"@maggioli-design-system/styles": "15.
|
|
28
|
-
"@stencil/core": "4.
|
|
26
|
+
"@maggioli-design-system/mds-table-cell": "4.7.1",
|
|
27
|
+
"@maggioli-design-system/styles": "15.5.0",
|
|
28
|
+
"@stencil/core": "4.22.2"
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"author": {
|
package/readme.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the
|
|
5
|
+
This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), 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.
|
|
6
6
|
|
|
7
7
|
<!-- Auto Generated Below -->
|
|
8
8
|
|
package/src/common/file.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { fileExtensionsDictionary, ExtensionInfo } from '@dictionary/file-extensions'
|
|
2
2
|
import { fileFormatsVariant } from '@type/variant-file-format'
|
|
3
|
+
import { ThemeFullVariantType } from '@type/variant'
|
|
3
4
|
|
|
4
5
|
interface FileFormatsVariants {
|
|
5
|
-
color: string
|
|
6
6
|
icon: string
|
|
7
|
-
|
|
8
|
-
variant: string
|
|
7
|
+
variant: ThemeFullVariantType
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
const sanitizeFilename = (filename: string, error: string = 'Attribute "filename" is undefined.') => {
|
package/src/common/locale.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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 = (
|
|
27
|
-
this.
|
|
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
|
-
|
|
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 => {
|
package/src/common/unit.ts
CHANGED
|
@@ -2,24 +2,19 @@
|
|
|
2
2
|
variables:
|
|
3
3
|
COMPONENT: mds-table-row
|
|
4
4
|
|
|
5
|
-
# ISOLATE
|
|
6
|
-
table-row-isolate:
|
|
7
|
-
extends: [.base-isolate, .base-table-row]
|
|
8
|
-
dependencies: [base-stencil-build]
|
|
9
|
-
|
|
10
5
|
# TEST
|
|
11
6
|
table-row-publish-test:
|
|
12
7
|
extends: [.base-stencil-publish-test, .base-table-row]
|
|
13
|
-
dependencies: [base-stencil-build,
|
|
8
|
+
dependencies: [base-stencil-build, base-isolate]
|
|
14
9
|
|
|
15
10
|
# PUBLISH
|
|
16
11
|
table-row-publish:
|
|
17
12
|
extends: [.base-stencil-publish, .base-table-row]
|
|
18
|
-
dependencies: [base-stencil-build,
|
|
19
|
-
needs: [base-stencil-build,
|
|
13
|
+
dependencies: [base-stencil-build, base-isolate]
|
|
14
|
+
needs: [base-stencil-build, base-isolate, table-row-publish-test]
|
|
20
15
|
|
|
21
16
|
# INSTALL TEST
|
|
22
17
|
table-row-install-test:
|
|
23
18
|
extends: [.base-stencil-install-test, .base-table-row]
|
|
24
|
-
dependencies: [base-stencil-build,
|
|
25
|
-
needs: [base-stencil-build,
|
|
19
|
+
dependencies: [base-stencil-build, base-isolate]
|
|
20
|
+
needs: [base-stencil-build, base-isolate, table-row-publish]
|
package/src/dictionary/button.ts
CHANGED
|
@@ -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,
|
package/src/fixtures/icons.json
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"mgg/ai-status-processing",
|
|
43
43
|
"mgg/ai-status-suspended",
|
|
44
44
|
"mgg/alerts-pagopa",
|
|
45
|
+
"mgg/anpr",
|
|
45
46
|
"mgg/ansc",
|
|
46
47
|
"mgg/area-edificabile",
|
|
47
48
|
"mgg/area-weather",
|
|
@@ -176,6 +177,10 @@
|
|
|
176
177
|
"mgg/logo-ilibro",
|
|
177
178
|
"mgg/map-marker-settings",
|
|
178
179
|
"mgg/masks-office",
|
|
180
|
+
"mgg/mdi-binoculars",
|
|
181
|
+
"mgg/mdi-graph-outline",
|
|
182
|
+
"mgg/mdi-microscope",
|
|
183
|
+
"mgg/mdi-telescope",
|
|
179
184
|
"mgg/military-draft",
|
|
180
185
|
"mgg/money-bag-settings",
|
|
181
186
|
"mgg/money-on-hand",
|
|
@@ -251,6 +256,7 @@
|
|
|
251
256
|
"mgg/subtractive-permission",
|
|
252
257
|
"mgg/tea-light",
|
|
253
258
|
"mgg/terminal",
|
|
259
|
+
"mgg/tie",
|
|
254
260
|
"mgg/to-single-document",
|
|
255
261
|
"mgg/to-stacked-documents",
|
|
256
262
|
"mgg/todo",
|
|
@@ -293,6 +299,7 @@
|
|
|
293
299
|
"mgg/user-substitution",
|
|
294
300
|
"mgg/view-chart-gantt",
|
|
295
301
|
"mgg/view-side-by-side",
|
|
302
|
+
"mgg/vote",
|
|
296
303
|
"mgg/warning-superscript",
|
|
297
304
|
"mgg/web-app-ansc",
|
|
298
305
|
"mgg/work-book",
|
|
@@ -323,6 +330,8 @@
|
|
|
323
330
|
"mi/baseline/css",
|
|
324
331
|
"mi/baseline/dark-mode",
|
|
325
332
|
"mi/baseline/description",
|
|
333
|
+
"mi/baseline/directions-run",
|
|
334
|
+
"mi/baseline/directions-walk",
|
|
326
335
|
"mi/baseline/done",
|
|
327
336
|
"mi/baseline/downhill-skiing",
|
|
328
337
|
"mi/baseline/eco",
|
|
@@ -331,7 +340,6 @@
|
|
|
331
340
|
"mi/baseline/explore",
|
|
332
341
|
"mi/baseline/file-download-done",
|
|
333
342
|
"mi/baseline/folder-zip",
|
|
334
|
-
"mi/baseline/groups",
|
|
335
343
|
"mi/baseline/horizontal-rule",
|
|
336
344
|
"mi/baseline/indeterminate-check-box",
|
|
337
345
|
"mi/baseline/info",
|
|
@@ -353,6 +361,9 @@
|
|
|
353
361
|
"mi/baseline/remove-circle",
|
|
354
362
|
"mi/baseline/route",
|
|
355
363
|
"mi/baseline/settings",
|
|
364
|
+
"mi/baseline/sports",
|
|
365
|
+
"mi/baseline/sports-soccer",
|
|
366
|
+
"mi/baseline/stadium",
|
|
356
367
|
"mi/baseline/terminal",
|
|
357
368
|
"mi/baseline/timer",
|
|
358
369
|
"mi/baseline/tv",
|
|
@@ -371,7 +382,6 @@
|
|
|
371
382
|
"mi/outline/schedule",
|
|
372
383
|
"mi/round/arrow-circle-down",
|
|
373
384
|
"mi/round/email",
|
|
374
|
-
"mi/round/groups",
|
|
375
385
|
"mi/round/menu",
|
|
376
386
|
"mi/round/more-vert",
|
|
377
387
|
"mi/round/person"
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"mgg/ai-status-processing",
|
|
31
31
|
"mgg/ai-status-suspended",
|
|
32
32
|
"mgg/alerts-pagopa",
|
|
33
|
+
"mgg/anpr",
|
|
33
34
|
"mgg/ansc",
|
|
34
35
|
"mgg/area-edificabile",
|
|
35
36
|
"mgg/area-weather",
|
|
@@ -164,6 +165,10 @@
|
|
|
164
165
|
"mgg/logo-ilibro",
|
|
165
166
|
"mgg/map-marker-settings",
|
|
166
167
|
"mgg/masks-office",
|
|
168
|
+
"mgg/mdi-binoculars",
|
|
169
|
+
"mgg/mdi-graph-outline",
|
|
170
|
+
"mgg/mdi-microscope",
|
|
171
|
+
"mgg/mdi-telescope",
|
|
167
172
|
"mgg/military-draft",
|
|
168
173
|
"mgg/money-bag-settings",
|
|
169
174
|
"mgg/money-on-hand",
|
|
@@ -239,6 +244,7 @@
|
|
|
239
244
|
"mgg/subtractive-permission",
|
|
240
245
|
"mgg/tea-light",
|
|
241
246
|
"mgg/terminal",
|
|
247
|
+
"mgg/tie",
|
|
242
248
|
"mgg/to-single-document",
|
|
243
249
|
"mgg/to-stacked-documents",
|
|
244
250
|
"mgg/todo-action-businessman-view",
|
|
@@ -281,6 +287,7 @@
|
|
|
281
287
|
"mgg/user-substitution",
|
|
282
288
|
"mgg/view-chart-gantt",
|
|
283
289
|
"mgg/view-side-by-side",
|
|
290
|
+
"mgg/vote",
|
|
284
291
|
"mgg/warning-superscript",
|
|
285
292
|
"mgg/web-app-ansc",
|
|
286
293
|
"mgg/work-book"
|
package/src/type/autocomplete.ts
CHANGED
package/src/type/button.ts
CHANGED
package/src/type/input.ts
CHANGED
|
@@ -13,12 +13,28 @@ import baselineBorderAll from '@icon/mi/baseline/border-all.svg'
|
|
|
13
13
|
import baselineDescription from '@icon/mi/baseline/description.svg'
|
|
14
14
|
import mdiVectorCurve from '@icon/mdi/vector-curve.svg'
|
|
15
15
|
import baselineVideocam from '@icon/mi/baseline/videocam.svg'
|
|
16
|
+
import { ThemeFullVariantType } from '@type/variant'
|
|
17
|
+
|
|
18
|
+
type FileFormat =
|
|
19
|
+
| 'archive'
|
|
20
|
+
| 'attachment'
|
|
21
|
+
| 'audio'
|
|
22
|
+
| 'code'
|
|
23
|
+
| 'data'
|
|
24
|
+
| 'document'
|
|
25
|
+
| 'email'
|
|
26
|
+
| 'executable'
|
|
27
|
+
| 'image'
|
|
28
|
+
| 'markup'
|
|
29
|
+
| 'slide'
|
|
30
|
+
| 'spreadsheet'
|
|
31
|
+
| 'text'
|
|
32
|
+
| 'vector'
|
|
33
|
+
| 'video'
|
|
16
34
|
|
|
17
35
|
interface FileFormatVariant {
|
|
18
|
-
color: string
|
|
19
36
|
icon: string
|
|
20
|
-
|
|
21
|
-
variant: string
|
|
37
|
+
variant: ThemeFullVariantType
|
|
22
38
|
}
|
|
23
39
|
|
|
24
40
|
interface FileFormatVariants {
|
|
@@ -27,111 +43,78 @@ interface FileFormatVariants {
|
|
|
27
43
|
|
|
28
44
|
const fileFormatsVariant: FileFormatVariants = {
|
|
29
45
|
archive: {
|
|
30
|
-
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
|
31
46
|
icon: baselineFolderZip,
|
|
32
|
-
iconBackground: 'bg-label-amaranth-10',
|
|
33
47
|
variant: 'amaranth',
|
|
34
48
|
},
|
|
35
49
|
attachment: {
|
|
36
|
-
color: 'fill-tone-neutral-04 text-tone-neutral-04',
|
|
37
50
|
icon: baselineAttachFile,
|
|
38
|
-
iconBackground: 'bg-tone-neutral-10',
|
|
39
51
|
variant: 'dark',
|
|
40
52
|
},
|
|
41
53
|
audio: {
|
|
42
|
-
color: 'fill-label-violet-04 text-label-violet-04',
|
|
43
54
|
icon: baselineAudiotrack,
|
|
44
|
-
iconBackground: 'bg-label-violet-10',
|
|
45
55
|
variant: 'violet',
|
|
46
56
|
},
|
|
47
57
|
code: {
|
|
48
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
49
58
|
icon: baselineTerminal,
|
|
50
|
-
iconBackground: 'bg-label-yellow-10',
|
|
51
59
|
variant: 'yellow',
|
|
52
60
|
},
|
|
53
61
|
data: {
|
|
54
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
55
62
|
icon: mdiHardDisk,
|
|
56
|
-
iconBackground: 'bg-label-yellow-10',
|
|
57
63
|
variant: 'yellow',
|
|
58
64
|
},
|
|
59
65
|
document: {
|
|
60
|
-
color: 'fill-label-orange-04 text-label-orange-04',
|
|
61
66
|
icon: baselineInsertDriveFile,
|
|
62
|
-
iconBackground: 'bg-label-orange-10',
|
|
63
67
|
variant: 'orange',
|
|
64
68
|
},
|
|
65
69
|
email: {
|
|
66
|
-
color: 'fill-label-blue-04 text-label-blue-04',
|
|
67
70
|
icon: baselineEmail,
|
|
68
|
-
iconBackground: 'bg-label-blue-10',
|
|
69
71
|
variant: 'blue',
|
|
70
72
|
},
|
|
71
73
|
executable: {
|
|
72
|
-
color: 'fill-label-amaranth-04 text-label-amaranth-04',
|
|
73
74
|
icon: baselineWysiwyg,
|
|
74
|
-
iconBackground: 'bg-label-amaranth-10',
|
|
75
75
|
variant: 'amaranth',
|
|
76
76
|
},
|
|
77
77
|
image: {
|
|
78
|
-
color: 'fill-label-green-04 text-label-green-04',
|
|
79
78
|
icon: baselinePanorama,
|
|
80
|
-
iconBackground: 'bg-label-green-10',
|
|
81
79
|
variant: 'green',
|
|
82
80
|
},
|
|
83
81
|
imageRaster: {
|
|
84
|
-
color: 'fill-label-green-04 text-label-green-04',
|
|
85
82
|
icon: baselinePanorama,
|
|
86
|
-
iconBackground: 'bg-label-green-10',
|
|
87
83
|
variant: 'green',
|
|
88
84
|
},
|
|
89
85
|
markup: {
|
|
90
|
-
color: 'fill-label-yellow-04 text-label-yellow-04',
|
|
91
86
|
icon: baselineWeb,
|
|
92
|
-
iconBackground: 'bg-label-yellow-10',
|
|
93
87
|
variant: 'yellow',
|
|
94
88
|
},
|
|
95
89
|
slide: {
|
|
96
|
-
color: 'fill-label-orchid-04 text-label-orchid-04',
|
|
97
90
|
icon: baselineTV,
|
|
98
|
-
iconBackground: 'bg-label-orchid-10',
|
|
99
91
|
variant: 'orchid',
|
|
100
92
|
},
|
|
101
93
|
spreadsheet: {
|
|
102
|
-
color: 'fill-label-lime-04 text-label-lime-04',
|
|
103
94
|
icon: baselineBorderAll,
|
|
104
|
-
iconBackground: 'bg-label-lime-10',
|
|
105
95
|
variant: 'lime',
|
|
106
96
|
},
|
|
107
97
|
text: {
|
|
108
|
-
color: 'fill-label-blue-04 text-label-blue-04',
|
|
109
98
|
icon: baselineDescription,
|
|
110
|
-
iconBackground: 'bg-label-blue-10',
|
|
111
99
|
variant: 'blue',
|
|
112
100
|
},
|
|
113
101
|
vectorImage: {
|
|
114
|
-
color: 'fill-label-aqua-04 text-label-aqua-04',
|
|
115
102
|
icon: mdiVectorCurve,
|
|
116
|
-
iconBackground: 'bg-label-aqua-10',
|
|
117
103
|
variant: 'aqua',
|
|
118
104
|
},
|
|
119
105
|
vector: {
|
|
120
|
-
color: 'fill-label-aqua-04 text-label-aqua-04',
|
|
121
106
|
icon: mdiVectorCurve,
|
|
122
|
-
iconBackground: 'bg-label-aqua-10',
|
|
123
107
|
variant: 'aqua',
|
|
124
108
|
},
|
|
125
109
|
video: {
|
|
126
|
-
color: 'fill-label-violet-04 text-label-violet-04',
|
|
127
110
|
icon: baselineVideocam,
|
|
128
|
-
iconBackground: 'bg-label-violet-10',
|
|
129
111
|
variant: 'violet',
|
|
130
112
|
},
|
|
131
113
|
}
|
|
132
114
|
|
|
133
115
|
export {
|
|
134
116
|
fileFormatsVariant,
|
|
117
|
+
FileFormat,
|
|
135
118
|
FileFormatVariant,
|
|
136
119
|
FileFormatVariants,
|
|
137
120
|
}
|