@maggioli-design-system/mds-table-row 5.2.0 → 5.3.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-cb928c36.js → index-27c9aefd.js} +146 -108
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mds-table-row.cjs.entry.js +17 -8
- package/dist/cjs/mds-table-row.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/common/browser.js +7 -0
- package/dist/collection/components/mds-table-row/mds-table-row.css +122 -132
- package/dist/collection/components/mds-table-row/mds-table-row.js +11 -6
- package/dist/components/mds-table-row.js +16 -7
- package/dist/documentation.json +10 -2
- package/dist/esm/{index-8134a00a.js → index-81f966aa.js} +146 -108
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mds-table-row.entry.js +17 -8
- package/dist/esm/mds-table-row.js +3 -3
- package/dist/esm-es5/index-81f966aa.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-table-row.entry.js +2 -2
- 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-133f1581.system.js +2 -0
- package/dist/mds-table-row/p-25b773c1.js +2 -0
- package/dist/mds-table-row/p-4727e0b3.system.entry.js +6 -0
- package/dist/mds-table-row/p-869d0b15.entry.js +6 -0
- package/dist/mds-table-row/p-e71445fa.system.js +1 -0
- package/dist/stats.json +44 -35
- package/dist/types/common/browser.d.ts +2 -0
- package/dist/types/common/locale.d.ts +1 -1
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +1 -0
- package/documentation.json +10 -2
- package/package.json +4 -4
- package/readme.md +4 -3
- package/src/common/browser.ts +10 -0
- package/src/common/locale.ts +2 -2
- package/src/components/mds-table-row/css/mds-table-row-actions.css +16 -10
- package/src/components/mds-table-row/css/mds-table-row-interactive.css +0 -1
- package/src/components/mds-table-row/css/mds-table-row-pref-animation.css +5 -14
- package/src/components/mds-table-row/css/mds-table-row-selected.css +0 -1
- package/src/components/mds-table-row/css/mds-table-row-sorted.css +0 -2
- package/src/components/mds-table-row/mds-table-row.css +1 -7
- package/src/components/mds-table-row/mds-table-row.tsx +14 -3
- package/src/components/mds-table-row/readme.md +4 -3
- package/src/fixtures/icons.json +2 -0
- package/src/fixtures/iconsauce.json +1 -0
- package/src/tailwind/components.css +2 -48
- package/src/tailwind/index.css +4 -0
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +1 -1
- package/www/build/p-133f1581.system.js +2 -0
- package/www/build/p-25b773c1.js +2 -0
- package/www/build/p-4727e0b3.system.entry.js +6 -0
- package/www/build/p-869d0b15.entry.js +6 -0
- package/www/build/p-e71445fa.system.js +1 -0
- package/dist/esm-es5/index-8134a00a.js +0 -1
- package/dist/mds-table-row/p-11048c96.system.js +0 -1
- package/dist/mds-table-row/p-22d4881a.js +0 -2
- package/dist/mds-table-row/p-64bc1c7b.entry.js +0 -6
- package/dist/mds-table-row/p-88f814c9.system.js +0 -2
- package/dist/mds-table-row/p-c5e9ab44.system.entry.js +0 -6
- package/www/build/p-11048c96.system.js +0 -1
- package/www/build/p-22d4881a.js +0 -2
- package/www/build/p-64bc1c7b.entry.js +0 -6
- package/www/build/p-88f814c9.system.js +0 -2
- package/www/build/p-c5e9ab44.system.entry.js +0 -6
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-03-10T12:58:27",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "22.11.0"
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
"fsNamespace": "mds-table-row",
|
|
10
10
|
"components": 1,
|
|
11
11
|
"entries": 1,
|
|
12
|
-
"bundles":
|
|
12
|
+
"bundles": 101,
|
|
13
13
|
"outputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "dist-collection",
|
|
16
|
-
"files":
|
|
16
|
+
"files": 53,
|
|
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",
|
|
@@ -84,19 +85,19 @@
|
|
|
84
85
|
"files": 42,
|
|
85
86
|
"generatedFiles": [
|
|
86
87
|
"./dist/cjs/app-globals-3a1e7e63.js",
|
|
87
|
-
"./dist/cjs/index-
|
|
88
|
+
"./dist/cjs/index-27c9aefd.js",
|
|
88
89
|
"./dist/cjs/index.cjs.js",
|
|
89
90
|
"./dist/cjs/loader.cjs.js",
|
|
90
91
|
"./dist/cjs/mds-table-row.cjs.entry.js",
|
|
91
92
|
"./dist/cjs/mds-table-row.cjs.js",
|
|
92
93
|
"./dist/esm-es5/app-globals-0f993ce5.js",
|
|
93
|
-
"./dist/esm-es5/index-
|
|
94
|
+
"./dist/esm-es5/index-81f966aa.js",
|
|
94
95
|
"./dist/esm-es5/index.js",
|
|
95
96
|
"./dist/esm-es5/loader.js",
|
|
96
97
|
"./dist/esm-es5/mds-table-row.entry.js",
|
|
97
98
|
"./dist/esm-es5/mds-table-row.js",
|
|
98
99
|
"./dist/esm/app-globals-0f993ce5.js",
|
|
99
|
-
"./dist/esm/index-
|
|
100
|
+
"./dist/esm/index-81f966aa.js",
|
|
100
101
|
"./dist/esm/index.js",
|
|
101
102
|
"./dist/esm/loader.js",
|
|
102
103
|
"./dist/esm/mds-table-row.entry.js",
|
|
@@ -106,25 +107,25 @@
|
|
|
106
107
|
"./dist/mds-table-row/index.esm.js",
|
|
107
108
|
"./dist/mds-table-row/mds-table-row.esm.js",
|
|
108
109
|
"./dist/mds-table-row/mds-table-row.js",
|
|
109
|
-
"./dist/mds-table-row/p-
|
|
110
|
-
"./dist/mds-table-row/p-
|
|
110
|
+
"./dist/mds-table-row/p-133f1581.system.js",
|
|
111
|
+
"./dist/mds-table-row/p-25b773c1.js",
|
|
112
|
+
"./dist/mds-table-row/p-4727e0b3.system.entry.js",
|
|
111
113
|
"./dist/mds-table-row/p-50ea2036.system.js",
|
|
112
114
|
"./dist/mds-table-row/p-56ba5cbf.system.js",
|
|
113
|
-
"./dist/mds-table-row/p-
|
|
114
|
-
"./dist/mds-table-row/p-88f814c9.system.js",
|
|
115
|
-
"./dist/mds-table-row/p-c5e9ab44.system.entry.js",
|
|
115
|
+
"./dist/mds-table-row/p-869d0b15.entry.js",
|
|
116
116
|
"./dist/mds-table-row/p-e1255160.js",
|
|
117
|
+
"./dist/mds-table-row/p-e71445fa.system.js",
|
|
117
118
|
"./www/build/index.esm.js",
|
|
118
119
|
"./www/build/mds-table-row.esm.js",
|
|
119
120
|
"./www/build/mds-table-row.js",
|
|
120
|
-
"./www/build/p-
|
|
121
|
-
"./www/build/p-
|
|
121
|
+
"./www/build/p-133f1581.system.js",
|
|
122
|
+
"./www/build/p-25b773c1.js",
|
|
123
|
+
"./www/build/p-4727e0b3.system.entry.js",
|
|
122
124
|
"./www/build/p-50ea2036.system.js",
|
|
123
125
|
"./www/build/p-56ba5cbf.system.js",
|
|
124
|
-
"./www/build/p-
|
|
125
|
-
"./www/build/p-
|
|
126
|
-
"./www/build/p-
|
|
127
|
-
"./www/build/p-e1255160.js"
|
|
126
|
+
"./www/build/p-869d0b15.entry.js",
|
|
127
|
+
"./www/build/p-e1255160.js",
|
|
128
|
+
"./www/build/p-e71445fa.system.js"
|
|
128
129
|
]
|
|
129
130
|
},
|
|
130
131
|
{
|
|
@@ -157,12 +158,12 @@
|
|
|
157
158
|
"components": [
|
|
158
159
|
"mds-table-row"
|
|
159
160
|
],
|
|
160
|
-
"bundleId": "p-
|
|
161
|
-
"fileName": "p-
|
|
161
|
+
"bundleId": "p-869d0b15",
|
|
162
|
+
"fileName": "p-869d0b15.entry.js",
|
|
162
163
|
"imports": [
|
|
163
|
-
"p-
|
|
164
|
+
"p-25b773c1.js"
|
|
164
165
|
],
|
|
165
|
-
"originalByteSize":
|
|
166
|
+
"originalByteSize": 40887
|
|
166
167
|
}
|
|
167
168
|
],
|
|
168
169
|
"esm": [
|
|
@@ -174,9 +175,9 @@
|
|
|
174
175
|
"bundleId": "mds-table-row",
|
|
175
176
|
"fileName": "mds-table-row.entry.js",
|
|
176
177
|
"imports": [
|
|
177
|
-
"index-
|
|
178
|
+
"index-81f966aa.js"
|
|
178
179
|
],
|
|
179
|
-
"originalByteSize":
|
|
180
|
+
"originalByteSize": 40891
|
|
180
181
|
}
|
|
181
182
|
],
|
|
182
183
|
"es5": [
|
|
@@ -188,9 +189,9 @@
|
|
|
188
189
|
"bundleId": "mds-table-row",
|
|
189
190
|
"fileName": "mds-table-row.entry.js",
|
|
190
191
|
"imports": [
|
|
191
|
-
"index-
|
|
192
|
+
"index-81f966aa.js"
|
|
192
193
|
],
|
|
193
|
-
"originalByteSize":
|
|
194
|
+
"originalByteSize": 40891
|
|
194
195
|
}
|
|
195
196
|
],
|
|
196
197
|
"system": [
|
|
@@ -199,12 +200,12 @@
|
|
|
199
200
|
"components": [
|
|
200
201
|
"mds-table-row"
|
|
201
202
|
],
|
|
202
|
-
"bundleId": "p-
|
|
203
|
-
"fileName": "p-
|
|
203
|
+
"bundleId": "p-4727e0b3.system",
|
|
204
|
+
"fileName": "p-4727e0b3.system.entry.js",
|
|
204
205
|
"imports": [
|
|
205
|
-
"p-
|
|
206
|
+
"p-133f1581.system.js"
|
|
206
207
|
],
|
|
207
|
-
"originalByteSize":
|
|
208
|
+
"originalByteSize": 43521
|
|
208
209
|
}
|
|
209
210
|
],
|
|
210
211
|
"commonjs": [
|
|
@@ -216,9 +217,9 @@
|
|
|
216
217
|
"bundleId": "mds-table-row.cjs",
|
|
217
218
|
"fileName": "mds-table-row.cjs.entry.js",
|
|
218
219
|
"imports": [
|
|
219
|
-
"index-
|
|
220
|
+
"index-27c9aefd.js"
|
|
220
221
|
],
|
|
221
|
-
"originalByteSize":
|
|
222
|
+
"originalByteSize": 41016
|
|
222
223
|
}
|
|
223
224
|
]
|
|
224
225
|
},
|
|
@@ -239,6 +240,10 @@
|
|
|
239
240
|
{
|
|
240
241
|
"name": "slot",
|
|
241
242
|
"text": "default - Put `mds-table-cell` element/s."
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "slot",
|
|
246
|
+
"text": "action - Put `mds-button` element/s or other kind of actions as aside menu for the single row."
|
|
242
247
|
}
|
|
243
248
|
],
|
|
244
249
|
"text": ""
|
|
@@ -563,6 +568,10 @@
|
|
|
563
568
|
{
|
|
564
569
|
"name": "slot",
|
|
565
570
|
"text": "default - Put `mds-table-cell` element/s."
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "slot",
|
|
574
|
+
"text": "action - Put `mds-button` element/s or other kind of actions as aside menu for the single row."
|
|
566
575
|
}
|
|
567
576
|
],
|
|
568
577
|
"text": ""
|
|
@@ -578,7 +587,6 @@
|
|
|
578
587
|
"hasComponentDidUpdateFn": false,
|
|
579
588
|
"hasComponentWillRenderFn": false,
|
|
580
589
|
"hasComponentDidRenderFn": false,
|
|
581
|
-
"hasComponentDidUnloadFn": false,
|
|
582
590
|
"hasConnectedCallbackFn": false,
|
|
583
591
|
"hasDisconnectedCallbackFn": false,
|
|
584
592
|
"hasElement": false,
|
|
@@ -626,8 +634,8 @@
|
|
|
626
634
|
"type",
|
|
627
635
|
"checked",
|
|
628
636
|
"onMdsInputSwitchChange",
|
|
629
|
-
"
|
|
630
|
-
"
|
|
637
|
+
"name",
|
|
638
|
+
"style"
|
|
631
639
|
],
|
|
632
640
|
"htmlTagNames": [
|
|
633
641
|
"mds-table-cell",
|
|
@@ -652,11 +660,12 @@
|
|
|
652
660
|
],
|
|
653
661
|
"componentGraph": {
|
|
654
662
|
"sc-mds-table-row": [
|
|
655
|
-
"p-
|
|
663
|
+
"p-25b773c1.js"
|
|
656
664
|
]
|
|
657
665
|
},
|
|
658
666
|
"sourceGraph": {
|
|
659
667
|
"./src/common/aria.ts": [],
|
|
668
|
+
"./src/common/browser.ts": [],
|
|
660
669
|
"./src/common/date.ts": [],
|
|
661
670
|
"./src/common/device.ts": [],
|
|
662
671
|
"./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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-03-10T10:32:58",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.27.2",
|
|
6
6
|
"typescriptVersion": "5.5.4"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
{
|
|
17
17
|
"name": "slot",
|
|
18
18
|
"text": "default - Put `mds-table-cell` element/s."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "slot",
|
|
22
|
+
"text": "action - Put `mds-button` element/s or other kind of actions as aside menu for the single row."
|
|
19
23
|
}
|
|
20
24
|
],
|
|
21
25
|
"usage": {},
|
|
@@ -180,6 +184,10 @@
|
|
|
180
184
|
"listeners": [],
|
|
181
185
|
"styles": [],
|
|
182
186
|
"slots": [
|
|
187
|
+
{
|
|
188
|
+
"name": "action",
|
|
189
|
+
"docs": "Put `mds-button` element/s or other kind of actions as aside menu for the single row."
|
|
190
|
+
},
|
|
183
191
|
{
|
|
184
192
|
"name": "default",
|
|
185
193
|
"docs": "Put `mds-table-cell` element/s."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/mds-table-row",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
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",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@maggioli-design-system/mds-table-cell": "5.
|
|
27
|
-
"@maggioli-design-system/styles": "15.
|
|
28
|
-
"@stencil/core": "4.
|
|
26
|
+
"@maggioli-design-system/mds-table-cell": "5.2.0",
|
|
27
|
+
"@maggioli-design-system/styles": "15.9.0",
|
|
28
|
+
"@stencil/core": "4.27.2"
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"author": {
|
package/readme.md
CHANGED
|
@@ -33,9 +33,10 @@ Type: `Promise<void>`
|
|
|
33
33
|
|
|
34
34
|
## Slots
|
|
35
35
|
|
|
36
|
-
| Slot | Description
|
|
37
|
-
| ----------- |
|
|
38
|
-
| `"
|
|
36
|
+
| Slot | Description |
|
|
37
|
+
| ----------- | ------------------------------------------------------------------------------------- |
|
|
38
|
+
| `"action"` | Put `mds-button` element/s or other kind of actions as aside menu for the single row. |
|
|
39
|
+
| `"default"` | Put `mds-table-cell` element/s. |
|
|
39
40
|
|
|
40
41
|
|
|
41
42
|
## Dependencies
|
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
|
}
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.actions {
|
|
11
|
-
|
|
12
11
|
--mds-table-row-actions-background: var(--mds-table-row-background);
|
|
13
12
|
|
|
14
13
|
align-items: center;
|
|
@@ -40,22 +39,29 @@
|
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
:host([overlay-actions]:hover) .actions {
|
|
43
|
-
|
|
44
42
|
--mds-table-row-actions-background: var(--mds-table-row-background);
|
|
45
43
|
|
|
46
44
|
transform: translateX(0);
|
|
47
45
|
}
|
|
48
46
|
|
|
49
|
-
:host
|
|
50
|
-
:host
|
|
51
|
-
|
|
47
|
+
:host-context(mds-table[interactive="false"]):host(:hover) .actions,
|
|
48
|
+
:host-context(mds-table:not([interactive])):host(:hover) .actions {
|
|
52
49
|
--mds-table-row-actions-background: var(--mds-table-row-background-hover);
|
|
53
50
|
}
|
|
54
51
|
|
|
55
|
-
:host(:not([
|
|
56
|
-
:host
|
|
57
|
-
:host
|
|
58
|
-
:host([
|
|
59
|
-
|
|
52
|
+
:host-context(mds-table[selection]:not([interactive])):host(:not([selected]):hover) .actions,
|
|
53
|
+
:host-context(mds-table[selection][interactive="false"]):host(:not([selected]):hover) .actions,
|
|
54
|
+
:host-context(mds-table[selection]:not([interactive])):host([selected="false"]:hover) .actions,
|
|
55
|
+
:host-context(mds-table[selection][interactive="false"]):host([selected="false"]:hover) .actions {
|
|
60
56
|
--mds-table-row-actions-background: var(--mds-table-row-background-alt);
|
|
61
57
|
}
|
|
58
|
+
|
|
59
|
+
.actions-cell--disable,
|
|
60
|
+
.actions-cell--disable .actions {
|
|
61
|
+
position: static !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.actions-cell--disable .actions {
|
|
65
|
+
margin-right: 0 !important;
|
|
66
|
+
transform: translateX(0) !important;
|
|
67
|
+
}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
@container style(--magma-pref-animation: reduce) {
|
|
4
|
-
:host,
|
|
5
|
-
.actions {
|
|
6
|
-
transition-duration: 0s;
|
|
7
|
-
}
|
|
1
|
+
:host-context(.pref-animation-reduce) {
|
|
2
|
+
transition-duration: 0s;
|
|
8
3
|
}
|
|
9
4
|
|
|
10
|
-
@
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
:host,
|
|
14
|
-
.actions {
|
|
15
|
-
transition-duration: 0s;
|
|
16
|
-
}
|
|
5
|
+
@media (prefers-reduced-motion) {
|
|
6
|
+
:host-context(.pref-animation-system) {
|
|
7
|
+
transition-duration: 0s;
|
|
17
8
|
}
|
|
18
9
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
:host([sorted]) {
|
|
2
|
-
|
|
3
2
|
--mds-table-row-background: var(--mds-table-row-background-alt);
|
|
4
3
|
--mds-table-row-color: var(--mds-table-row-color-alt);
|
|
5
4
|
}
|
|
6
5
|
|
|
7
6
|
:host([sorted][selected]) {
|
|
8
|
-
|
|
9
7
|
--mds-table-row-background: var(--mds-table-row-background-hover);
|
|
10
8
|
--mds-table-row-color: var(--mds-table-row-color-hover);
|
|
11
9
|
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
@import '../../tailwind/components.css';
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
@import '../../tailwind/fouc.css';
|
|
6
|
-
|
|
7
1
|
:host {
|
|
8
|
-
|
|
9
2
|
--mds-table-row-color-hover: var(--mds-table-color, theme('colors.tone-neutral-02'));
|
|
10
3
|
--mds-table-row-color-alt: var(--mds-table-color-alt, theme('colors.tone-neutral-02'));
|
|
11
4
|
--mds-table-row-background-hover: var(--mds-table-background, theme('colors.tone-neutral'));
|
|
@@ -36,3 +29,4 @@
|
|
|
36
29
|
@import './css/mds-table-row-sorted.css';
|
|
37
30
|
@import './css/mds-table-row-actions.css';
|
|
38
31
|
@import './css/mds-table-row-pref-animation.css';
|
|
32
|
+
@import '../../tailwind/fouc.css';
|
|
@@ -4,11 +4,15 @@ import localeEl from './meta/locale.el.json'
|
|
|
4
4
|
import localeEn from './meta/locale.en.json'
|
|
5
5
|
import localeEs from './meta/locale.es.json'
|
|
6
6
|
import localeIt from './meta/locale.it.json'
|
|
7
|
+
import { isSafari } from '@common/browser'
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* @slot default - Put `mds-table-cell` element/s.
|
|
11
|
+
* @slot action - Put `mds-button` element/s or other kind of actions as aside menu for the single row.
|
|
10
12
|
*/
|
|
11
13
|
|
|
14
|
+
// TODO [bug, style]: on Safari actions menu is visually broken
|
|
15
|
+
|
|
12
16
|
@Component({
|
|
13
17
|
tag: 'mds-table-row',
|
|
14
18
|
styleUrl: 'mds-table-row.css',
|
|
@@ -18,7 +22,7 @@ export class MdsTableRow {
|
|
|
18
22
|
|
|
19
23
|
@Element() host: HTMLMdsTableRowElement
|
|
20
24
|
private actions: HTMLDivElement
|
|
21
|
-
private hasActions: boolean
|
|
25
|
+
private hasActions: boolean = true
|
|
22
26
|
private sizerWidth: string
|
|
23
27
|
private t:Locale = new Locale({
|
|
24
28
|
el: localeEl,
|
|
@@ -45,7 +49,7 @@ export class MdsTableRow {
|
|
|
45
49
|
|
|
46
50
|
componentWillLoad (): void {
|
|
47
51
|
this.language = this.t.lang(this.host)
|
|
48
|
-
this.hasActions = this.host.querySelector('[slot="action"]') !== null
|
|
52
|
+
this.hasActions = this.host.querySelector(':scope > [slot="action"]') !== null
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
componentDidLoad (): void {
|
|
@@ -71,7 +75,14 @@ export class MdsTableRow {
|
|
|
71
75
|
</mds-table-cell>
|
|
72
76
|
}
|
|
73
77
|
<slot/>
|
|
74
|
-
{ this.hasActions &&
|
|
78
|
+
{ this.hasActions && isSafari() &&
|
|
79
|
+
<mds-table-cell class="actions-cell actions-cell--disable">
|
|
80
|
+
<div class="actions">
|
|
81
|
+
<slot name="action"></slot>
|
|
82
|
+
</div>
|
|
83
|
+
</mds-table-cell>
|
|
84
|
+
}
|
|
85
|
+
{ this.hasActions && !isSafari() &&
|
|
75
86
|
<mds-table-cell class="actions-cell">
|
|
76
87
|
<div class="actions-sizer" style={{
|
|
77
88
|
minHeight: '1px',
|
|
@@ -31,9 +31,10 @@ Type: `Promise<void>`
|
|
|
31
31
|
|
|
32
32
|
## Slots
|
|
33
33
|
|
|
34
|
-
| Slot | Description
|
|
35
|
-
| ----------- |
|
|
36
|
-
| `"
|
|
34
|
+
| Slot | Description |
|
|
35
|
+
| ----------- | ------------------------------------------------------------------------------------- |
|
|
36
|
+
| `"action"` | Put `mds-button` element/s or other kind of actions as aside menu for the single row. |
|
|
37
|
+
| `"default"` | Put `mds-table-cell` element/s. |
|
|
37
38
|
|
|
38
39
|
|
|
39
40
|
----------------------------------------------
|
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",
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
@import '~@maggioli-design-system/styles/dist/tailwind/components.css';
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
2
|
|
|
5
3
|
@layer components {
|
|
6
4
|
.svg {
|
|
@@ -38,52 +36,6 @@
|
|
|
38
36
|
box-shadow: theme('boxShadow.outline') inset;
|
|
39
37
|
}
|
|
40
38
|
|
|
41
|
-
@container style(--magma-pref-contrast: more) {
|
|
42
|
-
.contrast-area,
|
|
43
|
-
.contrast-area-50 {
|
|
44
|
-
@apply
|
|
45
|
-
block
|
|
46
|
-
opacity-100;
|
|
47
|
-
|
|
48
|
-
/* @starting-style {
|
|
49
|
-
opacity: 0;
|
|
50
|
-
} */
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@container style(--magma-pref-contrast: system) {
|
|
55
|
-
|
|
56
|
-
@media (prefers-contrast: more) {
|
|
57
|
-
.contrast-area,
|
|
58
|
-
.contrast-area-50 {
|
|
59
|
-
@apply
|
|
60
|
-
block
|
|
61
|
-
opacity-100;
|
|
62
|
-
|
|
63
|
-
/* @starting-style {
|
|
64
|
-
opacity: 0;
|
|
65
|
-
} */
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@container style(--magma-pref-animation: reduce) {
|
|
71
|
-
.contrast-area,
|
|
72
|
-
.contrast-area-50 {
|
|
73
|
-
@apply duration-0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@container style(--magma-pref-animation: system) {
|
|
78
|
-
|
|
79
|
-
@media (prefers-reduced-motion) {
|
|
80
|
-
.contrast-area,
|
|
81
|
-
.contrast-area-50 {
|
|
82
|
-
@apply duration-0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
39
|
.not-hydrated {
|
|
88
40
|
animation-duration: 0s;
|
|
89
41
|
border-color: transparent;
|
|
@@ -95,3 +47,5 @@
|
|
|
95
47
|
visibility: hidden;
|
|
96
48
|
}
|
|
97
49
|
}
|
|
50
|
+
|
|
51
|
+
@tailwind components;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,b as a}from"./p-25b773c1.js";export{s as setNonce}from"./p-25b773c1.js";import{g as t}from"./p-e1255160.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-869d0b15",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],language:[32],updateLang:[64]}]]]],e))));
|
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-e71445fa.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|