@maggioli-design-system/mds-table-row 5.3.1 → 5.4.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-27c9aefd.js → index-16788a13.js} +13 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-table-row.cjs.entry.js +22 -13
- package/dist/cjs/mds-table-row.cjs.js +2 -2
- package/dist/collection/common/floating-controller.js +25 -4
- package/dist/collection/common/keyboard-manager.js +3 -2
- package/dist/collection/components/mds-table-row/mds-table-row.js +22 -12
- package/dist/collection/dictionary/button.js +2 -0
- package/dist/collection/type/input-tip.js +1 -0
- package/dist/components/mds-table-row.js +22 -12
- package/dist/documentation.json +1 -1
- package/dist/esm/{index-81f966aa.js → index-f0269a3c.js} +13 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-table-row.entry.js +22 -13
- package/dist/esm/mds-table-row.js +3 -3
- package/dist/esm-es5/index-f0269a3c.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-4727e0b3.system.entry.js → p-1a501460.system.entry.js} +2 -2
- package/dist/mds-table-row/p-4a407cb6.js +2 -0
- package/dist/mds-table-row/p-c2d293ab.entry.js +6 -0
- package/dist/mds-table-row/p-cd3437c0.system.js +1 -0
- package/dist/mds-table-row/p-f835b87d.system.js +2 -0
- package/dist/stats.json +44 -35
- package/dist/types/common/floating-controller.d.ts +1 -0
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
- package/dist/types/type/button.d.ts +1 -1
- package/dist/types/type/input-tip.d.ts +1 -0
- package/documentation.json +28 -13
- package/package.json +3 -3
- package/src/common/floating-controller.ts +26 -3
- package/src/common/keyboard-manager.ts +1 -0
- package/src/components/mds-table-row/mds-table-row.tsx +23 -9
- package/src/dictionary/button.ts +2 -0
- package/src/fixtures/icons.json +6 -0
- package/src/type/button.ts +2 -0
- package/src/type/input-tip.ts +11 -0
- package/www/build/mds-table-row.esm.js +1 -1
- package/www/build/mds-table-row.js +1 -1
- package/www/build/{p-4727e0b3.system.entry.js → p-1a501460.system.entry.js} +2 -2
- package/www/build/p-4a407cb6.js +2 -0
- package/www/build/p-c2d293ab.entry.js +6 -0
- package/www/build/p-cd3437c0.system.js +1 -0
- package/www/build/p-f835b87d.system.js +2 -0
- package/dist/esm-es5/index-81f966aa.js +0 -1
- package/dist/mds-table-row/p-133f1581.system.js +0 -2
- package/dist/mds-table-row/p-25b773c1.js +0 -2
- package/dist/mds-table-row/p-869d0b15.entry.js +0 -6
- package/dist/mds-table-row/p-e71445fa.system.js +0 -1
- package/www/build/p-133f1581.system.js +0 -2
- package/www/build/p-25b773c1.js +0 -2
- package/www/build/p-869d0b15.entry.js +0 -6
- package/www/build/p-e71445fa.system.js +0 -1
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-04-07T11:20:57",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "22.11.0"
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"fsNamespace": "mds-table-row",
|
|
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
19
|
"./dist/collection/common/browser.js",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"./dist/collection/type/floating-ui.js",
|
|
60
60
|
"./dist/collection/type/form-rel.js",
|
|
61
61
|
"./dist/collection/type/header-bar.js",
|
|
62
|
+
"./dist/collection/type/input-tip.js",
|
|
62
63
|
"./dist/collection/type/input.js",
|
|
63
64
|
"./dist/collection/type/keyboard.js",
|
|
64
65
|
"./dist/collection/type/loading.js",
|
|
@@ -85,19 +86,19 @@
|
|
|
85
86
|
"files": 42,
|
|
86
87
|
"generatedFiles": [
|
|
87
88
|
"./dist/cjs/app-globals-3a1e7e63.js",
|
|
88
|
-
"./dist/cjs/index-
|
|
89
|
+
"./dist/cjs/index-16788a13.js",
|
|
89
90
|
"./dist/cjs/index.cjs.js",
|
|
90
91
|
"./dist/cjs/loader.cjs.js",
|
|
91
92
|
"./dist/cjs/mds-table-row.cjs.entry.js",
|
|
92
93
|
"./dist/cjs/mds-table-row.cjs.js",
|
|
93
94
|
"./dist/esm-es5/app-globals-0f993ce5.js",
|
|
94
|
-
"./dist/esm-es5/index-
|
|
95
|
+
"./dist/esm-es5/index-f0269a3c.js",
|
|
95
96
|
"./dist/esm-es5/index.js",
|
|
96
97
|
"./dist/esm-es5/loader.js",
|
|
97
98
|
"./dist/esm-es5/mds-table-row.entry.js",
|
|
98
99
|
"./dist/esm-es5/mds-table-row.js",
|
|
99
100
|
"./dist/esm/app-globals-0f993ce5.js",
|
|
100
|
-
"./dist/esm/index-
|
|
101
|
+
"./dist/esm/index-f0269a3c.js",
|
|
101
102
|
"./dist/esm/index.js",
|
|
102
103
|
"./dist/esm/loader.js",
|
|
103
104
|
"./dist/esm/mds-table-row.entry.js",
|
|
@@ -107,25 +108,25 @@
|
|
|
107
108
|
"./dist/mds-table-row/index.esm.js",
|
|
108
109
|
"./dist/mds-table-row/mds-table-row.esm.js",
|
|
109
110
|
"./dist/mds-table-row/mds-table-row.js",
|
|
110
|
-
"./dist/mds-table-row/p-
|
|
111
|
-
"./dist/mds-table-row/p-
|
|
112
|
-
"./dist/mds-table-row/p-4727e0b3.system.entry.js",
|
|
111
|
+
"./dist/mds-table-row/p-1a501460.system.entry.js",
|
|
112
|
+
"./dist/mds-table-row/p-4a407cb6.js",
|
|
113
113
|
"./dist/mds-table-row/p-50ea2036.system.js",
|
|
114
114
|
"./dist/mds-table-row/p-56ba5cbf.system.js",
|
|
115
|
-
"./dist/mds-table-row/p-
|
|
115
|
+
"./dist/mds-table-row/p-c2d293ab.entry.js",
|
|
116
|
+
"./dist/mds-table-row/p-cd3437c0.system.js",
|
|
116
117
|
"./dist/mds-table-row/p-e1255160.js",
|
|
117
|
-
"./dist/mds-table-row/p-
|
|
118
|
+
"./dist/mds-table-row/p-f835b87d.system.js",
|
|
118
119
|
"./www/build/index.esm.js",
|
|
119
120
|
"./www/build/mds-table-row.esm.js",
|
|
120
121
|
"./www/build/mds-table-row.js",
|
|
121
|
-
"./www/build/p-
|
|
122
|
-
"./www/build/p-
|
|
123
|
-
"./www/build/p-4727e0b3.system.entry.js",
|
|
122
|
+
"./www/build/p-1a501460.system.entry.js",
|
|
123
|
+
"./www/build/p-4a407cb6.js",
|
|
124
124
|
"./www/build/p-50ea2036.system.js",
|
|
125
125
|
"./www/build/p-56ba5cbf.system.js",
|
|
126
|
-
"./www/build/p-
|
|
126
|
+
"./www/build/p-c2d293ab.entry.js",
|
|
127
|
+
"./www/build/p-cd3437c0.system.js",
|
|
127
128
|
"./www/build/p-e1255160.js",
|
|
128
|
-
"./www/build/p-
|
|
129
|
+
"./www/build/p-f835b87d.system.js"
|
|
129
130
|
]
|
|
130
131
|
},
|
|
131
132
|
{
|
|
@@ -158,12 +159,12 @@
|
|
|
158
159
|
"components": [
|
|
159
160
|
"mds-table-row"
|
|
160
161
|
],
|
|
161
|
-
"bundleId": "p-
|
|
162
|
-
"fileName": "p-
|
|
162
|
+
"bundleId": "p-c2d293ab",
|
|
163
|
+
"fileName": "p-c2d293ab.entry.js",
|
|
163
164
|
"imports": [
|
|
164
|
-
"p-
|
|
165
|
+
"p-4a407cb6.js"
|
|
165
166
|
],
|
|
166
|
-
"originalByteSize":
|
|
167
|
+
"originalByteSize": 41222
|
|
167
168
|
}
|
|
168
169
|
],
|
|
169
170
|
"esm": [
|
|
@@ -175,9 +176,9 @@
|
|
|
175
176
|
"bundleId": "mds-table-row",
|
|
176
177
|
"fileName": "mds-table-row.entry.js",
|
|
177
178
|
"imports": [
|
|
178
|
-
"index-
|
|
179
|
+
"index-f0269a3c.js"
|
|
179
180
|
],
|
|
180
|
-
"originalByteSize":
|
|
181
|
+
"originalByteSize": 41226
|
|
181
182
|
}
|
|
182
183
|
],
|
|
183
184
|
"es5": [
|
|
@@ -189,9 +190,9 @@
|
|
|
189
190
|
"bundleId": "mds-table-row",
|
|
190
191
|
"fileName": "mds-table-row.entry.js",
|
|
191
192
|
"imports": [
|
|
192
|
-
"index-
|
|
193
|
+
"index-f0269a3c.js"
|
|
193
194
|
],
|
|
194
|
-
"originalByteSize":
|
|
195
|
+
"originalByteSize": 41226
|
|
195
196
|
}
|
|
196
197
|
],
|
|
197
198
|
"system": [
|
|
@@ -200,12 +201,12 @@
|
|
|
200
201
|
"components": [
|
|
201
202
|
"mds-table-row"
|
|
202
203
|
],
|
|
203
|
-
"bundleId": "p-
|
|
204
|
-
"fileName": "p-
|
|
204
|
+
"bundleId": "p-1a501460.system",
|
|
205
|
+
"fileName": "p-1a501460.system.entry.js",
|
|
205
206
|
"imports": [
|
|
206
|
-
"p-
|
|
207
|
+
"p-f835b87d.system.js"
|
|
207
208
|
],
|
|
208
|
-
"originalByteSize":
|
|
209
|
+
"originalByteSize": 43883
|
|
209
210
|
}
|
|
210
211
|
],
|
|
211
212
|
"commonjs": [
|
|
@@ -217,9 +218,9 @@
|
|
|
217
218
|
"bundleId": "mds-table-row.cjs",
|
|
218
219
|
"fileName": "mds-table-row.cjs.entry.js",
|
|
219
220
|
"imports": [
|
|
220
|
-
"index-
|
|
221
|
+
"index-16788a13.js"
|
|
221
222
|
],
|
|
222
|
-
"originalByteSize":
|
|
223
|
+
"originalByteSize": 41351
|
|
223
224
|
}
|
|
224
225
|
]
|
|
225
226
|
},
|
|
@@ -388,6 +389,9 @@
|
|
|
388
389
|
],
|
|
389
390
|
"shadowDelegatesFocus": false,
|
|
390
391
|
"states": [
|
|
392
|
+
{
|
|
393
|
+
"name": "sizerWidth"
|
|
394
|
+
},
|
|
391
395
|
{
|
|
392
396
|
"name": "language"
|
|
393
397
|
}
|
|
@@ -517,6 +521,9 @@
|
|
|
517
521
|
],
|
|
518
522
|
"virtualProperties": [],
|
|
519
523
|
"states": [
|
|
524
|
+
{
|
|
525
|
+
"name": "sizerWidth"
|
|
526
|
+
},
|
|
520
527
|
{
|
|
521
528
|
"name": "language"
|
|
522
529
|
}
|
|
@@ -581,13 +588,13 @@
|
|
|
581
588
|
"sourceMapPath": null,
|
|
582
589
|
"hasAttributeChangedCallbackFn": false,
|
|
583
590
|
"hasComponentWillLoadFn": true,
|
|
584
|
-
"hasComponentDidLoadFn":
|
|
591
|
+
"hasComponentDidLoadFn": false,
|
|
585
592
|
"hasComponentShouldUpdateFn": false,
|
|
586
593
|
"hasComponentWillUpdateFn": false,
|
|
587
594
|
"hasComponentDidUpdateFn": false,
|
|
588
595
|
"hasComponentWillRenderFn": false,
|
|
589
596
|
"hasComponentDidRenderFn": false,
|
|
590
|
-
"hasConnectedCallbackFn":
|
|
597
|
+
"hasConnectedCallbackFn": true,
|
|
591
598
|
"hasDisconnectedCallbackFn": false,
|
|
592
599
|
"hasElement": false,
|
|
593
600
|
"hasEvent": false,
|
|
@@ -619,7 +626,7 @@
|
|
|
619
626
|
"hasVdomKey": true,
|
|
620
627
|
"hasVdomListener": true,
|
|
621
628
|
"hasVdomPropOrAttr": true,
|
|
622
|
-
"hasVdomRef":
|
|
629
|
+
"hasVdomRef": true,
|
|
623
630
|
"hasVdomRender": true,
|
|
624
631
|
"hasVdomStyle": true,
|
|
625
632
|
"hasVdomText": true,
|
|
@@ -635,7 +642,8 @@
|
|
|
635
642
|
"checked",
|
|
636
643
|
"onMdsInputSwitchChange",
|
|
637
644
|
"name",
|
|
638
|
-
"style"
|
|
645
|
+
"style",
|
|
646
|
+
"ref"
|
|
639
647
|
],
|
|
640
648
|
"htmlTagNames": [
|
|
641
649
|
"mds-table-cell",
|
|
@@ -660,7 +668,7 @@
|
|
|
660
668
|
],
|
|
661
669
|
"componentGraph": {
|
|
662
670
|
"sc-mds-table-row": [
|
|
663
|
-
"p-
|
|
671
|
+
"p-4a407cb6.js"
|
|
664
672
|
]
|
|
665
673
|
},
|
|
666
674
|
"sourceGraph": {
|
|
@@ -728,6 +736,7 @@
|
|
|
728
736
|
"./src/type/floating-ui.ts": [],
|
|
729
737
|
"./src/type/form-rel.ts": [],
|
|
730
738
|
"./src/type/header-bar.ts": [],
|
|
739
|
+
"./src/type/input-tip.ts": [],
|
|
731
740
|
"./src/type/input.ts": [],
|
|
732
741
|
"./src/type/keyboard.ts": [],
|
|
733
742
|
"./src/type/loading.ts": [],
|
|
@@ -27,6 +27,7 @@ export declare class FloatingController {
|
|
|
27
27
|
private readonly arrowInset;
|
|
28
28
|
private readonly arrowTransform;
|
|
29
29
|
private readonly arrowTransformOrigin;
|
|
30
|
+
private convertToTransformOrigin;
|
|
30
31
|
private readonly calculatePosition;
|
|
31
32
|
updatePosition(): void;
|
|
32
33
|
dismiss(): void;
|
|
@@ -6,7 +6,7 @@ export declare class MdsTableRow {
|
|
|
6
6
|
host: HTMLMdsTableRowElement;
|
|
7
7
|
private actions;
|
|
8
8
|
private hasActions;
|
|
9
|
-
|
|
9
|
+
sizerWidth: string;
|
|
10
10
|
private t;
|
|
11
11
|
language: string;
|
|
12
12
|
updateLang(): Promise<void>;
|
|
@@ -16,7 +16,8 @@ export declare class MdsTableRow {
|
|
|
16
16
|
selected?: boolean;
|
|
17
17
|
readonly value?: string | number;
|
|
18
18
|
componentWillLoad(): void;
|
|
19
|
-
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
private initObserver;
|
|
20
21
|
private handleSelectionChange;
|
|
21
22
|
render(): any;
|
|
22
23
|
}
|
|
@@ -2,4 +2,4 @@ export type ButtonType = 'a' | 'button' | 'reset' | 'submit';
|
|
|
2
2
|
export type ButtonTargetType = 'self' | 'blank';
|
|
3
3
|
export type ButtonSizeType = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type ButtonIconPositionType = 'left' | 'right';
|
|
5
|
-
export type ButtonVariantType = 'primary' | 'secondary' | 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning';
|
|
5
|
+
export type ButtonVariantType = 'primary' | 'secondary' | 'dark' | 'light' | 'error' | 'info' | 'success' | 'warning' | 'google' | 'apple';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InputTipItemVariantType = 'count-almost' | 'count-almost-full' | 'count-empty' | 'count-full' | 'count-incomplete' | 'disabled' | 'readonly' | 'required' | 'required-success' | 'text';
|
package/documentation.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-
|
|
2
|
+
"timestamp": "2025-04-07T10:38:24",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.27.2",
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
"path": "src/type/button.ts"
|
|
319
319
|
},
|
|
320
320
|
"src/type/button.ts::ButtonVariantType": {
|
|
321
|
-
"declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
|
|
321
|
+
"declaration": "export type ButtonVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'light'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'\n | 'google'\n | 'apple'",
|
|
322
322
|
"docstring": "",
|
|
323
323
|
"path": "src/type/button.ts"
|
|
324
324
|
},
|
|
@@ -417,6 +417,11 @@
|
|
|
417
417
|
"docstring": "",
|
|
418
418
|
"path": "src/components/mds-horizontal-scroll/meta/types.ts"
|
|
419
419
|
},
|
|
420
|
+
"src/components/mds-horizontal-scroll/meta/types.ts::NavigationType": {
|
|
421
|
+
"declaration": "export type NavigationType =\n | 'none'\n | 'scrollbar'\n | 'position'",
|
|
422
|
+
"docstring": "",
|
|
423
|
+
"path": "src/components/mds-horizontal-scroll/meta/types.ts"
|
|
424
|
+
},
|
|
420
425
|
"src/components/mds-horizontal-scroll/meta/types.ts::SnapType": {
|
|
421
426
|
"declaration": "export type SnapType =\n | 'center'\n | 'end'\n | 'none'\n | 'start'",
|
|
422
427
|
"docstring": "",
|
|
@@ -512,10 +517,10 @@
|
|
|
512
517
|
"docstring": "",
|
|
513
518
|
"path": "src/components/mds-input-tip/meta/types.ts"
|
|
514
519
|
},
|
|
515
|
-
"src/
|
|
516
|
-
"declaration": "export type InputTipItemVariantType =\n | '
|
|
520
|
+
"src/type/input-tip.ts::InputTipItemVariantType": {
|
|
521
|
+
"declaration": "export type InputTipItemVariantType =\n | 'count-almost'\n | 'count-almost-full'\n | 'count-empty'\n | 'count-full'\n | 'count-incomplete'\n | 'disabled'\n | 'readonly'\n | 'required'\n | 'required-success'\n | 'text'",
|
|
517
522
|
"docstring": "",
|
|
518
|
-
"path": "src/
|
|
523
|
+
"path": "src/type/input-tip.ts"
|
|
519
524
|
},
|
|
520
525
|
"src/components/mds-input-upload/meta/types.ts::AttachmentSort": {
|
|
521
526
|
"declaration": "type AttachmentSort =\n 'status' |\n 'date'",
|
|
@@ -557,6 +562,11 @@
|
|
|
557
562
|
"docstring": "",
|
|
558
563
|
"path": "src/components/mds-modal/meta/types.ts"
|
|
559
564
|
},
|
|
565
|
+
"src/components/mds-modal/meta/types.ts::ModalAnimationStyleType": {
|
|
566
|
+
"declaration": "export type ModalAnimationStyleType =\n | 'slide'\n | 'custom'\n | '3d'",
|
|
567
|
+
"docstring": "",
|
|
568
|
+
"path": "src/components/mds-modal/meta/types.ts"
|
|
569
|
+
},
|
|
560
570
|
"src/components/mds-modal/meta/types.ts::ModalOverflowType": {
|
|
561
571
|
"declaration": "export type ModalOverflowType =\n | 'auto'\n | 'manual'",
|
|
562
572
|
"docstring": "",
|
|
@@ -622,20 +632,25 @@
|
|
|
622
632
|
"docstring": "",
|
|
623
633
|
"path": "src/components/mds-progress/meta/types.ts"
|
|
624
634
|
},
|
|
625
|
-
"src/components/mds-push-notification/meta/
|
|
635
|
+
"src/components/mds-push-notification/meta/event-detail.ts::MdsPushNotificationEventDetail": {
|
|
636
|
+
"declaration": "export interface MdsPushNotificationEventDetail {\n visible: boolean\n}",
|
|
637
|
+
"docstring": "",
|
|
638
|
+
"path": "src/components/mds-push-notification/meta/event-detail.ts"
|
|
639
|
+
},
|
|
640
|
+
"src/components/mds-push-notification-item/meta/types.ts::NotificationItemDateFormatType": {
|
|
626
641
|
"declaration": "string",
|
|
627
642
|
"docstring": "",
|
|
628
|
-
"path": "src/components/mds-push-notification/meta/types.ts"
|
|
643
|
+
"path": "src/components/mds-push-notification-item/meta/types.ts"
|
|
629
644
|
},
|
|
630
|
-
"src/components/mds-push-notification/meta/types.ts::
|
|
631
|
-
"declaration": "export type
|
|
645
|
+
"src/components/mds-push-notification-item/meta/types.ts::NotificationItemPreviewType": {
|
|
646
|
+
"declaration": "export type NotificationItemPreviewType =\n | 'avatar'\n | 'image'",
|
|
632
647
|
"docstring": "",
|
|
633
|
-
"path": "src/components/mds-push-notification/meta/types.ts"
|
|
648
|
+
"path": "src/components/mds-push-notification-item/meta/types.ts"
|
|
634
649
|
},
|
|
635
|
-
"src/components/mds-push-notification/meta/event-detail.ts::
|
|
636
|
-
"declaration": "export interface
|
|
650
|
+
"src/components/mds-push-notification-item/meta/event-detail.ts::MdsPushNotificationItemEventDetail": {
|
|
651
|
+
"declaration": "export interface MdsPushNotificationItemEventDetail {\n id: string;\n}",
|
|
637
652
|
"docstring": "",
|
|
638
|
-
"path": "src/components/mds-push-notification/meta/event-detail.ts"
|
|
653
|
+
"path": "src/components/mds-push-notification-item/meta/event-detail.ts"
|
|
639
654
|
},
|
|
640
655
|
"src/type/text.ts::TypographyHeadingTagType": {
|
|
641
656
|
"declaration": "export type TypographyHeadingTagType =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'",
|
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.4.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,8 +23,8 @@
|
|
|
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.9.
|
|
26
|
+
"@maggioli-design-system/mds-table-cell": "5.3.0",
|
|
27
|
+
"@maggioli-design-system/styles": "15.9.1",
|
|
28
28
|
"@stencil/core": "4.27.2"
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
Middleware,
|
|
8
8
|
MiddlewareData,
|
|
9
9
|
offset,
|
|
10
|
+
Placement,
|
|
10
11
|
shift,
|
|
11
12
|
} from '@floating-ui/dom'
|
|
12
13
|
import { FloatingUIPlacement, FloatingUIStrategy } from '@type/floating-ui'
|
|
@@ -138,6 +139,24 @@ export class FloatingController {
|
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
|
|
142
|
+
private convertToTransformOrigin = (position: Placement): string => {
|
|
143
|
+
const positions = {
|
|
144
|
+
top: 'center bottom',
|
|
145
|
+
right: 'left center',
|
|
146
|
+
bottom: 'center top',
|
|
147
|
+
left: 'right center',
|
|
148
|
+
'bottom-end': 'top right',
|
|
149
|
+
'bottom-start': 'top left',
|
|
150
|
+
'left-end': 'right bottom',
|
|
151
|
+
'left-start': 'right top',
|
|
152
|
+
'right-end': 'left bottom',
|
|
153
|
+
'right-start': 'left top',
|
|
154
|
+
'top-end': 'bottom right',
|
|
155
|
+
'top-start': 'bottom left',
|
|
156
|
+
}
|
|
157
|
+
return positions[position]
|
|
158
|
+
}
|
|
159
|
+
|
|
141
160
|
private readonly calculatePosition = (): void => {
|
|
142
161
|
if (!this._caller) return
|
|
143
162
|
|
|
@@ -181,6 +200,8 @@ export class FloatingController {
|
|
|
181
200
|
Object.assign(this._host.style, {
|
|
182
201
|
left: `${x}px`,
|
|
183
202
|
top: `${y}px`,
|
|
203
|
+
transformOrigin: this.convertToTransformOrigin(placement),
|
|
204
|
+
position: this._host.strategy,
|
|
184
205
|
})
|
|
185
206
|
|
|
186
207
|
const arrowStyle = {}
|
|
@@ -204,12 +225,14 @@ export class FloatingController {
|
|
|
204
225
|
}
|
|
205
226
|
|
|
206
227
|
updatePosition (): void {
|
|
207
|
-
if (this.
|
|
208
|
-
|
|
228
|
+
if (this._host.visible) {
|
|
229
|
+
this.dismiss() // to clean the old update function before update function
|
|
230
|
+
this.cleanupAutoUpdate = autoUpdate(this._caller, this._host, this.calculatePosition)
|
|
231
|
+
}
|
|
209
232
|
}
|
|
210
233
|
|
|
211
234
|
dismiss (): void {
|
|
212
|
-
this.cleanupAutoUpdate()
|
|
235
|
+
if (this.cleanupAutoUpdate) this.cleanupAutoUpdate()
|
|
213
236
|
}
|
|
214
237
|
}
|
|
215
238
|
|
|
@@ -27,6 +27,7 @@ export class KeyboardManager {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
attachClickBehavior = (name = 'element'): void => {
|
|
30
|
+
this.elements.get(name)?.removeEventListener('keydown', this.handleClickBehaviorDispatchEvent)
|
|
30
31
|
this.elements.get(name)?.addEventListener('keydown', this.handleClickBehaviorDispatchEvent)
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -23,7 +23,7 @@ export class MdsTableRow {
|
|
|
23
23
|
@Element() host: HTMLMdsTableRowElement
|
|
24
24
|
private actions: HTMLDivElement
|
|
25
25
|
private hasActions: boolean = true
|
|
26
|
-
|
|
26
|
+
@State() sizerWidth: string
|
|
27
27
|
private t:Locale = new Locale({
|
|
28
28
|
el: localeEl,
|
|
29
29
|
en: localeEn,
|
|
@@ -52,11 +52,23 @@ export class MdsTableRow {
|
|
|
52
52
|
this.hasActions = this.host.querySelector(':scope > [slot="action"]') !== null
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
connectedCallback (): void {
|
|
56
|
+
// needed to capture sizer width when become visible
|
|
57
|
+
this.initObserver()
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
private initObserver () {
|
|
61
|
+
const observer = new IntersectionObserver(entries => {
|
|
62
|
+
if (entries[0].isIntersecting) {
|
|
63
|
+
this.sizerWidth = `${this.actions.offsetWidth.toString()}px`
|
|
64
|
+
observer.unobserve(this.host) // stop observer
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
root: this.host.parentElement,
|
|
68
|
+
threshold: 1, // trigger observer when is entirely visible
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
observer.observe(this.host)
|
|
60
72
|
}
|
|
61
73
|
|
|
62
74
|
private handleSelectionChange = (e: CustomEvent): void => {
|
|
@@ -90,9 +102,11 @@ export class MdsTableRow {
|
|
|
90
102
|
minWidth: this.sizerWidth,
|
|
91
103
|
}}></div>
|
|
92
104
|
<div class="actions-view">
|
|
93
|
-
<div class="actions"
|
|
94
|
-
|
|
95
|
-
|
|
105
|
+
<div class="actions"
|
|
106
|
+
ref={el => this.actions = el as HTMLDivElement}
|
|
107
|
+
style={{
|
|
108
|
+
marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))`,
|
|
109
|
+
}}>
|
|
96
110
|
<slot name="action"></slot>
|
|
97
111
|
</div>
|
|
98
112
|
</div>
|
package/src/dictionary/button.ts
CHANGED
package/src/fixtures/icons.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[
|
|
2
2
|
"mdi/alien",
|
|
3
|
+
"mdi/apple",
|
|
3
4
|
"mdi/apple-keyboard-shift",
|
|
4
5
|
"mdi/barley",
|
|
5
6
|
"mdi/baseball",
|
|
@@ -7,6 +8,7 @@
|
|
|
7
8
|
"mdi/delete",
|
|
8
9
|
"mdi/dots-vertical",
|
|
9
10
|
"mdi/email",
|
|
11
|
+
"mdi/eye-off-outline",
|
|
10
12
|
"mdi/file-document-remove-outline",
|
|
11
13
|
"mdi/file-download-outline",
|
|
12
14
|
"mdi/file-upload-outline",
|
|
@@ -337,12 +339,14 @@
|
|
|
337
339
|
"mi/baseline/audiotrack",
|
|
338
340
|
"mi/baseline/auto-awesome",
|
|
339
341
|
"mi/baseline/badge",
|
|
342
|
+
"mi/baseline/block",
|
|
340
343
|
"mi/baseline/book",
|
|
341
344
|
"mi/baseline/border-all",
|
|
342
345
|
"mi/baseline/broken-image",
|
|
343
346
|
"mi/baseline/call",
|
|
344
347
|
"mi/baseline/cancel",
|
|
345
348
|
"mi/baseline/category",
|
|
349
|
+
"mi/baseline/check",
|
|
346
350
|
"mi/baseline/check-box",
|
|
347
351
|
"mi/baseline/check-box-outline-blank",
|
|
348
352
|
"mi/baseline/check-circle",
|
|
@@ -400,6 +404,7 @@
|
|
|
400
404
|
"mi/baseline/radio-button-unchecked",
|
|
401
405
|
"mi/baseline/remove",
|
|
402
406
|
"mi/baseline/remove-circle",
|
|
407
|
+
"mi/baseline/remove-red-eye",
|
|
403
408
|
"mi/baseline/route",
|
|
404
409
|
"mi/baseline/send",
|
|
405
410
|
"mi/baseline/settings",
|
|
@@ -410,6 +415,7 @@
|
|
|
410
415
|
"mi/baseline/terminal",
|
|
411
416
|
"mi/baseline/timer",
|
|
412
417
|
"mi/baseline/tv",
|
|
418
|
+
"mi/baseline/undo",
|
|
413
419
|
"mi/baseline/unfold-less",
|
|
414
420
|
"mi/baseline/unfold-more",
|
|
415
421
|
"mi/baseline/vertical-align-bottom",
|
package/src/type/button.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as a,b as e}from"./p-4a407cb6.js";export{s as setNonce}from"./p-4a407cb6.js";import{g as t}from"./p-e1255160.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),a(t)})().then((async a=>(await t(),e([["p-c2d293ab",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],sizerWidth:[32],language:[32],updateLang:[64]}]]]],a))));
|
|
@@ -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-cd3437c0.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|