@maggioli-design-system/mds-list 3.13.0 → 3.13.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/collection/common/browser.js +7 -0
- package/dist/documentation.json +1 -1
- package/dist/stats.json +5 -3
- package/dist/types/common/browser.d.ts +2 -0
- package/dist/types/common/locale.d.ts +1 -1
- package/documentation.json +1 -1
- package/package.json +2 -2
- package/src/common/browser.ts +10 -0
- package/src/common/locale.ts +2 -2
- package/src/fixtures/icons.json +2 -0
- package/src/fixtures/iconsauce.json +1 -0
package/dist/documentation.json
CHANGED
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-03-
|
|
2
|
+
"timestamp": "2025-03-10T13:59:05",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "22.11.0"
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
"fsNamespace": "mds-list",
|
|
10
10
|
"components": 1,
|
|
11
11
|
"entries": 1,
|
|
12
|
-
"bundles":
|
|
12
|
+
"bundles": 102,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 54,
|
|
17
17
|
"generatedFiles": [
|
|
18
18
|
"./dist/collection/common/aria.js",
|
|
19
|
+
"./dist/collection/common/browser.js",
|
|
19
20
|
"./dist/collection/common/date.js",
|
|
20
21
|
"./dist/collection/common/device.js",
|
|
21
22
|
"./dist/collection/common/file.js",
|
|
@@ -378,6 +379,7 @@
|
|
|
378
379
|
},
|
|
379
380
|
"sourceGraph": {
|
|
380
381
|
"./src/common/aria.ts": [],
|
|
382
|
+
"./src/common/browser.ts": [],
|
|
381
383
|
"./src/common/date.ts": [],
|
|
382
384
|
"./src/common/device.ts": [],
|
|
383
385
|
"./src/common/file.ts": [],
|
|
@@ -15,6 +15,6 @@ export declare class Locale {
|
|
|
15
15
|
lang: (el: HTMLElement) => string;
|
|
16
16
|
update: (doc?: Document | ShadowRoot) => void;
|
|
17
17
|
private pluralize;
|
|
18
|
-
get: (tag: string | string[], context?: Record<string, string | number>) => string;
|
|
18
|
+
get: (tag: string | string[], context?: Record<string, string | number | boolean>) => string;
|
|
19
19
|
}
|
|
20
20
|
export {};
|
package/documentation.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-list",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.1",
|
|
4
4
|
"description": "mds-list 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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@maggioli-design-system/mds-list-item": "3.15.
|
|
26
|
+
"@maggioli-design-system/mds-list-item": "3.15.1",
|
|
27
27
|
"@maggioli-design-system/styles": "15.9.0",
|
|
28
28
|
"@stencil/core": "4.27.2"
|
|
29
29
|
},
|
package/src/common/locale.ts
CHANGED
|
@@ -52,7 +52,7 @@ export class Locale {
|
|
|
52
52
|
})
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
private pluralize = (tag: string | string[], context: Record<string, string | number>): string => {
|
|
55
|
+
private pluralize = (tag: string | string[], context: Record<string, string | number | boolean>): string => {
|
|
56
56
|
|
|
57
57
|
const languagePhrase: string | string[] = this.config[this.language] ? this.config[this.language][tag] : this.config[this.rollbackLanguage][tag]
|
|
58
58
|
const phrases: string[] = []
|
|
@@ -81,7 +81,7 @@ export class Locale {
|
|
|
81
81
|
return render(translatePhrase, context)
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
get = (tag: string | string[], context?: Record<string, string | number>): string => {
|
|
84
|
+
get = (tag: string | string[], context?: Record<string, string | number | boolean>): string => {
|
|
85
85
|
if (context) {
|
|
86
86
|
return this.pluralize(tag, context)
|
|
87
87
|
}
|
package/src/fixtures/icons.json
CHANGED
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"mgg/ai-status-suspended",
|
|
53
53
|
"mgg/alerts-pagopa",
|
|
54
54
|
"mgg/anagrafe-nazionale",
|
|
55
|
+
"mgg/anist",
|
|
55
56
|
"mgg/anpr",
|
|
56
57
|
"mgg/ansc",
|
|
57
58
|
"mgg/area-edificabile",
|
|
@@ -361,6 +362,7 @@
|
|
|
361
362
|
"mi/baseline/eco",
|
|
362
363
|
"mi/baseline/email",
|
|
363
364
|
"mi/baseline/error",
|
|
365
|
+
"mi/baseline/expand-more",
|
|
364
366
|
"mi/baseline/explore",
|
|
365
367
|
"mi/baseline/favorite",
|
|
366
368
|
"mi/baseline/favorite-border",
|