@maggioli-design-system/mds-table-row 5.4.0 → 5.4.2

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.
Files changed (54) hide show
  1. package/dist/cjs/{index-27c9aefd.js → index-16788a13.js} +13 -2
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-table-row.cjs.entry.js +22 -13
  4. package/dist/cjs/mds-table-row.cjs.js +2 -2
  5. package/dist/collection/components/mds-table-row/mds-table-row.js +22 -12
  6. package/dist/collection/dictionary/button.js +3 -2
  7. package/dist/collection/dictionary/variant.js +14 -2
  8. package/dist/components/mds-table-row.js +22 -12
  9. package/dist/documentation.json +1 -1
  10. package/dist/esm/{index-81f966aa.js → index-f0269a3c.js} +13 -2
  11. package/dist/esm/loader.js +3 -3
  12. package/dist/esm/mds-table-row.entry.js +22 -13
  13. package/dist/esm/mds-table-row.js +3 -3
  14. package/dist/esm-es5/index-f0269a3c.js +1 -0
  15. package/dist/esm-es5/loader.js +1 -1
  16. package/dist/esm-es5/mds-table-row.entry.js +2 -2
  17. package/dist/esm-es5/mds-table-row.js +1 -1
  18. package/dist/mds-table-row/mds-table-row.esm.js +1 -1
  19. package/dist/mds-table-row/mds-table-row.js +1 -1
  20. package/dist/mds-table-row/p-4a407cb6.js +2 -0
  21. package/dist/mds-table-row/p-86e316e3.entry.js +6 -0
  22. package/dist/mds-table-row/p-cd3437c0.system.js +1 -0
  23. package/dist/mds-table-row/p-f835b87d.system.js +2 -0
  24. package/dist/mds-table-row/{p-4727e0b3.system.entry.js → p-fbe91c6f.system.entry.js} +2 -2
  25. package/dist/stats.json +40 -33
  26. package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -2
  27. package/dist/types/type/button.d.ts +1 -1
  28. package/dist/types/type/input.d.ts +1 -1
  29. package/dist/types/type/variant.d.ts +2 -2
  30. package/documentation.json +39 -19
  31. package/package.json +1 -1
  32. package/src/components/mds-table-row/mds-table-row.tsx +23 -9
  33. package/src/dictionary/button.ts +3 -2
  34. package/src/dictionary/variant.ts +14 -2
  35. package/src/fixtures/icons.json +5 -0
  36. package/src/type/button.ts +6 -5
  37. package/src/type/input.ts +4 -0
  38. package/src/type/variant.ts +14 -2
  39. package/www/build/mds-table-row.esm.js +1 -1
  40. package/www/build/mds-table-row.js +1 -1
  41. package/www/build/p-4a407cb6.js +2 -0
  42. package/www/build/p-86e316e3.entry.js +6 -0
  43. package/www/build/p-cd3437c0.system.js +1 -0
  44. package/www/build/p-f835b87d.system.js +2 -0
  45. package/www/build/{p-4727e0b3.system.entry.js → p-fbe91c6f.system.entry.js} +2 -2
  46. package/dist/esm-es5/index-81f966aa.js +0 -1
  47. package/dist/mds-table-row/p-133f1581.system.js +0 -2
  48. package/dist/mds-table-row/p-25b773c1.js +0 -2
  49. package/dist/mds-table-row/p-869d0b15.entry.js +0 -6
  50. package/dist/mds-table-row/p-e71445fa.system.js +0 -1
  51. package/www/build/p-133f1581.system.js +0 -2
  52. package/www/build/p-25b773c1.js +0 -2
  53. package/www/build/p-869d0b15.entry.js +0 -6
  54. package/www/build/p-e71445fa.system.js +0 -1
package/dist/stats.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-04-02T09:03:06",
2
+ "timestamp": "2025-04-18T21:52:02",
3
3
  "compiler": {
4
4
  "name": "node",
5
5
  "version": "22.11.0"
@@ -86,19 +86,19 @@
86
86
  "files": 42,
87
87
  "generatedFiles": [
88
88
  "./dist/cjs/app-globals-3a1e7e63.js",
89
- "./dist/cjs/index-27c9aefd.js",
89
+ "./dist/cjs/index-16788a13.js",
90
90
  "./dist/cjs/index.cjs.js",
91
91
  "./dist/cjs/loader.cjs.js",
92
92
  "./dist/cjs/mds-table-row.cjs.entry.js",
93
93
  "./dist/cjs/mds-table-row.cjs.js",
94
94
  "./dist/esm-es5/app-globals-0f993ce5.js",
95
- "./dist/esm-es5/index-81f966aa.js",
95
+ "./dist/esm-es5/index-f0269a3c.js",
96
96
  "./dist/esm-es5/index.js",
97
97
  "./dist/esm-es5/loader.js",
98
98
  "./dist/esm-es5/mds-table-row.entry.js",
99
99
  "./dist/esm-es5/mds-table-row.js",
100
100
  "./dist/esm/app-globals-0f993ce5.js",
101
- "./dist/esm/index-81f966aa.js",
101
+ "./dist/esm/index-f0269a3c.js",
102
102
  "./dist/esm/index.js",
103
103
  "./dist/esm/loader.js",
104
104
  "./dist/esm/mds-table-row.entry.js",
@@ -108,25 +108,25 @@
108
108
  "./dist/mds-table-row/index.esm.js",
109
109
  "./dist/mds-table-row/mds-table-row.esm.js",
110
110
  "./dist/mds-table-row/mds-table-row.js",
111
- "./dist/mds-table-row/p-133f1581.system.js",
112
- "./dist/mds-table-row/p-25b773c1.js",
113
- "./dist/mds-table-row/p-4727e0b3.system.entry.js",
111
+ "./dist/mds-table-row/p-4a407cb6.js",
114
112
  "./dist/mds-table-row/p-50ea2036.system.js",
115
113
  "./dist/mds-table-row/p-56ba5cbf.system.js",
116
- "./dist/mds-table-row/p-869d0b15.entry.js",
114
+ "./dist/mds-table-row/p-86e316e3.entry.js",
115
+ "./dist/mds-table-row/p-cd3437c0.system.js",
117
116
  "./dist/mds-table-row/p-e1255160.js",
118
- "./dist/mds-table-row/p-e71445fa.system.js",
117
+ "./dist/mds-table-row/p-f835b87d.system.js",
118
+ "./dist/mds-table-row/p-fbe91c6f.system.entry.js",
119
119
  "./www/build/index.esm.js",
120
120
  "./www/build/mds-table-row.esm.js",
121
121
  "./www/build/mds-table-row.js",
122
- "./www/build/p-133f1581.system.js",
123
- "./www/build/p-25b773c1.js",
124
- "./www/build/p-4727e0b3.system.entry.js",
122
+ "./www/build/p-4a407cb6.js",
125
123
  "./www/build/p-50ea2036.system.js",
126
124
  "./www/build/p-56ba5cbf.system.js",
127
- "./www/build/p-869d0b15.entry.js",
125
+ "./www/build/p-86e316e3.entry.js",
126
+ "./www/build/p-cd3437c0.system.js",
128
127
  "./www/build/p-e1255160.js",
129
- "./www/build/p-e71445fa.system.js"
128
+ "./www/build/p-f835b87d.system.js",
129
+ "./www/build/p-fbe91c6f.system.entry.js"
130
130
  ]
131
131
  },
132
132
  {
@@ -159,12 +159,12 @@
159
159
  "components": [
160
160
  "mds-table-row"
161
161
  ],
162
- "bundleId": "p-869d0b15",
163
- "fileName": "p-869d0b15.entry.js",
162
+ "bundleId": "p-86e316e3",
163
+ "fileName": "p-86e316e3.entry.js",
164
164
  "imports": [
165
- "p-25b773c1.js"
165
+ "p-4a407cb6.js"
166
166
  ],
167
- "originalByteSize": 40887
167
+ "originalByteSize": 41238
168
168
  }
169
169
  ],
170
170
  "esm": [
@@ -176,9 +176,9 @@
176
176
  "bundleId": "mds-table-row",
177
177
  "fileName": "mds-table-row.entry.js",
178
178
  "imports": [
179
- "index-81f966aa.js"
179
+ "index-f0269a3c.js"
180
180
  ],
181
- "originalByteSize": 40891
181
+ "originalByteSize": 41242
182
182
  }
183
183
  ],
184
184
  "es5": [
@@ -190,9 +190,9 @@
190
190
  "bundleId": "mds-table-row",
191
191
  "fileName": "mds-table-row.entry.js",
192
192
  "imports": [
193
- "index-81f966aa.js"
193
+ "index-f0269a3c.js"
194
194
  ],
195
- "originalByteSize": 40891
195
+ "originalByteSize": 41242
196
196
  }
197
197
  ],
198
198
  "system": [
@@ -201,12 +201,12 @@
201
201
  "components": [
202
202
  "mds-table-row"
203
203
  ],
204
- "bundleId": "p-4727e0b3.system",
205
- "fileName": "p-4727e0b3.system.entry.js",
204
+ "bundleId": "p-fbe91c6f.system",
205
+ "fileName": "p-fbe91c6f.system.entry.js",
206
206
  "imports": [
207
- "p-133f1581.system.js"
207
+ "p-f835b87d.system.js"
208
208
  ],
209
- "originalByteSize": 43521
209
+ "originalByteSize": 43899
210
210
  }
211
211
  ],
212
212
  "commonjs": [
@@ -218,9 +218,9 @@
218
218
  "bundleId": "mds-table-row.cjs",
219
219
  "fileName": "mds-table-row.cjs.entry.js",
220
220
  "imports": [
221
- "index-27c9aefd.js"
221
+ "index-16788a13.js"
222
222
  ],
223
- "originalByteSize": 41016
223
+ "originalByteSize": 41367
224
224
  }
225
225
  ]
226
226
  },
@@ -389,6 +389,9 @@
389
389
  ],
390
390
  "shadowDelegatesFocus": false,
391
391
  "states": [
392
+ {
393
+ "name": "sizerWidth"
394
+ },
392
395
  {
393
396
  "name": "language"
394
397
  }
@@ -518,6 +521,9 @@
518
521
  ],
519
522
  "virtualProperties": [],
520
523
  "states": [
524
+ {
525
+ "name": "sizerWidth"
526
+ },
521
527
  {
522
528
  "name": "language"
523
529
  }
@@ -582,13 +588,13 @@
582
588
  "sourceMapPath": null,
583
589
  "hasAttributeChangedCallbackFn": false,
584
590
  "hasComponentWillLoadFn": true,
585
- "hasComponentDidLoadFn": true,
591
+ "hasComponentDidLoadFn": false,
586
592
  "hasComponentShouldUpdateFn": false,
587
593
  "hasComponentWillUpdateFn": false,
588
594
  "hasComponentDidUpdateFn": false,
589
595
  "hasComponentWillRenderFn": false,
590
596
  "hasComponentDidRenderFn": false,
591
- "hasConnectedCallbackFn": false,
597
+ "hasConnectedCallbackFn": true,
592
598
  "hasDisconnectedCallbackFn": false,
593
599
  "hasElement": false,
594
600
  "hasEvent": false,
@@ -620,7 +626,7 @@
620
626
  "hasVdomKey": true,
621
627
  "hasVdomListener": true,
622
628
  "hasVdomPropOrAttr": true,
623
- "hasVdomRef": false,
629
+ "hasVdomRef": true,
624
630
  "hasVdomRender": true,
625
631
  "hasVdomStyle": true,
626
632
  "hasVdomText": true,
@@ -636,7 +642,8 @@
636
642
  "checked",
637
643
  "onMdsInputSwitchChange",
638
644
  "name",
639
- "style"
645
+ "style",
646
+ "ref"
640
647
  ],
641
648
  "htmlTagNames": [
642
649
  "mds-table-cell",
@@ -661,7 +668,7 @@
661
668
  ],
662
669
  "componentGraph": {
663
670
  "sc-mds-table-row": [
664
- "p-25b773c1.js"
671
+ "p-4a407cb6.js"
665
672
  ]
666
673
  },
667
674
  "sourceGraph": {
@@ -6,7 +6,7 @@ export declare class MdsTableRow {
6
6
  host: HTMLMdsTableRowElement;
7
7
  private actions;
8
8
  private hasActions;
9
- private sizerWidth;
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
- componentDidLoad(): void;
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' | 'google' | 'apple';
5
+ export type ButtonVariantType = 'ai' | 'apple' | 'dark' | 'error' | 'google' | 'info' | 'light' | 'primary' | 'secondary' | 'success' | 'warning';
@@ -1,7 +1,7 @@
1
1
  export type InputControlsLayoutType = 'horizontal' | 'vertical';
2
2
  export type InputControlsIconType = 'arrow' | 'arithmetic';
3
3
  export type InputValueType = null | number | string | undefined;
4
- export type InputTextType = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'textarea' | 'time' | 'url';
4
+ export type InputTextType = 'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'textarea' | 'time' | 'url' | 'cc' | 'cf' | 'isbn' | 'piva';
5
5
  export interface MdsInputEventDetail {
6
6
  value?: File | string | FormData | null;
7
7
  }
@@ -1,11 +1,11 @@
1
1
  export type ThemeStatusVariantType = 'error' | 'info' | 'success' | 'warning';
2
- export type ThemeVariantType = 'dark' | 'error' | 'info' | 'light' | 'primary' | 'success' | 'warning';
2
+ export type ThemeVariantType = 'ai' | 'dark' | 'error' | 'info' | 'light' | 'primary' | 'success' | 'warning';
3
3
  export type ThemeFullVariantType = 'amaranth' | 'aqua' | 'blue' | 'dark' | 'error' | 'green' | 'info' | 'light' | 'lime' | 'orange' | 'orchid' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
4
4
  export type ThemeFullVariantAvatarType = 'amaranth' | 'aqua' | 'blue' | 'error' | 'green' | 'info' | 'lime' | 'orange' | 'orchid' | 'primary' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
5
5
  export type ThemeLuminanceVariantType = 'dark' | 'light';
6
6
  export type LabelVariantType = 'amaranth' | 'aqua' | 'blue' | 'green' | 'lime' | 'orange' | 'orchid' | 'sky' | 'violet' | 'yellow';
7
7
  export type ActionVariantType = 'primary' | 'dark' | 'light';
8
- export type ChipVariantType = 'primary' | 'secondary' | 'dark' | 'error' | 'info' | 'success' | 'warning';
8
+ export type ChipVariantType = 'ai' | 'amaranth' | 'aqua' | 'blue' | 'dark' | 'error' | 'green' | 'info' | 'lime' | 'orange' | 'orchid' | 'primary' | 'secondary' | 'sky' | 'success' | 'violet' | 'warning' | 'yellow';
9
9
  export type StateVariantType = 'disabled' | 'focused' | 'readonly';
10
10
  export type ToneActionVariantType = 'primary' | 'secondary' | 'strong' | 'weak' | 'ghost' | 'quiet';
11
11
  export type ToneVariantType = 'strong' | 'weak' | 'ghost' | 'quiet';
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-04-02T08:30:40",
2
+ "timestamp": "2025-04-18T19:49:27",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",
@@ -212,6 +212,11 @@
212
212
  }
213
213
  ],
214
214
  "typeLibrary": {
215
+ "src/components/mds-input-date-range/mds-input-date-range.tsx::EventDate": {
216
+ "declaration": "export interface EventDate {\n caller: HTMLMdsInputDateRangePreselectionElement\n start: string,\n end?: string\n}",
217
+ "docstring": "",
218
+ "path": "src/components/mds-input-date-range/mds-input-date-range.tsx"
219
+ },
215
220
  "src/components/mds-accordion/meta/event-detail.ts::MdsAccordionEventDetail": {
216
221
  "declaration": "export interface MdsAccordionEventDetail {\n children: NodeListOf<HTMLMdsAccordionItemElement>\n selected: string\n}",
217
222
  "docstring": "",
@@ -247,6 +252,11 @@
247
252
  "docstring": "",
248
253
  "path": "src/type/variant.ts"
249
254
  },
255
+ "src/components/mds-avatar-stack/meta/types.ts::AvatarSizeType": {
256
+ "declaration": "export type AvatarSizeType =\n | 'sm'\n | 'md'\n | 'lg'",
257
+ "docstring": "",
258
+ "path": "src/components/mds-avatar-stack/meta/types.ts"
259
+ },
250
260
  "src/type/variant.ts::ThemeFullVariantType": {
251
261
  "declaration": "export type ThemeFullVariantType =\n | 'amaranth'\n | 'aqua'\n | 'blue'\n | 'dark'\n | 'error'\n | 'green'\n | 'info'\n | 'light'\n | 'lime'\n | 'orange'\n | 'orchid'\n | 'sky'\n | 'success'\n | 'violet'\n | 'warning'\n | 'yellow'",
252
262
  "docstring": "",
@@ -273,7 +283,7 @@
273
283
  "path": "src/type/typography.ts"
274
284
  },
275
285
  "src/type/variant.ts::ThemeVariantType": {
276
- "declaration": "export type ThemeVariantType =\n | 'dark'\n | 'error'\n | 'info'\n | 'light'\n | 'primary'\n | 'success'\n | 'warning'",
286
+ "declaration": "export type ThemeVariantType =\n | 'ai'\n | 'dark'\n | 'error'\n | 'info'\n | 'light'\n | 'primary'\n | 'success'\n | 'warning'",
277
287
  "docstring": "",
278
288
  "path": "src/type/variant.ts"
279
289
  },
@@ -318,7 +328,7 @@
318
328
  "path": "src/type/button.ts"
319
329
  },
320
330
  "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'\n | 'google'\n | 'apple'",
331
+ "declaration": "export type ButtonVariantType =\n | 'ai'\n | 'apple'\n | 'dark'\n | 'error'\n | 'google'\n | 'info'\n | 'light'\n | 'primary'\n | 'secondary'\n | 'success'\n | 'warning'",
322
332
  "docstring": "",
323
333
  "path": "src/type/button.ts"
324
334
  },
@@ -337,8 +347,23 @@
337
347
  "docstring": "",
338
348
  "path": "src/type/text.ts"
339
349
  },
350
+ "src/components/mds-calendar-cell/meta/types.ts::CalendarCellType": {
351
+ "declaration": "export type CalendarCellType =\n | 'other'\n | 'current'\n | 'weekend'",
352
+ "docstring": "",
353
+ "path": "src/components/mds-calendar-cell/meta/types.ts"
354
+ },
355
+ "src/components/mds-calendar-cell/meta/types.ts::CalendarCellSelectionOrieintationType": {
356
+ "declaration": "export type CalendarCellSelectionOrieintationType =\n | 'both'\n | 'horizontal'\n | 'vertical'",
357
+ "docstring": "",
358
+ "path": "src/components/mds-calendar-cell/meta/types.ts"
359
+ },
360
+ "src/components/mds-calendar-cell/meta/types.ts::CalendarCellSelectionPositionType": {
361
+ "declaration": "export type CalendarCellSelectionPositionType =\n | 'end'\n | 'middle'\n | 'none'\n | 'start'\n | 'single'",
362
+ "docstring": "",
363
+ "path": "src/components/mds-calendar-cell/meta/types.ts"
364
+ },
340
365
  "src/type/variant.ts::ChipVariantType": {
341
- "declaration": "export type ChipVariantType =\n | 'primary'\n | 'secondary'\n | 'dark'\n | 'error'\n | 'info'\n | 'success'\n | 'warning'",
366
+ "declaration": "export type ChipVariantType =\n | 'ai'\n | 'amaranth'\n | 'aqua'\n | 'blue'\n | 'dark'\n | 'error'\n | 'green'\n | 'info'\n | 'lime'\n | 'orange'\n | 'orchid'\n | 'primary'\n | 'secondary'\n | 'sky'\n | 'success'\n | 'violet'\n | 'warning'\n | 'yellow'",
342
367
  "docstring": "",
343
368
  "path": "src/type/variant.ts"
344
369
  },
@@ -468,7 +493,7 @@
468
493
  "path": "src/type/variant.ts"
469
494
  },
470
495
  "src/type/input.ts::InputTextType": {
471
- "declaration": "export type InputTextType =\n | 'date'\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'textarea'\n | 'time'\n | 'url'",
496
+ "declaration": "export type InputTextType =\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'",
472
497
  "docstring": "",
473
498
  "path": "src/type/input.ts"
474
499
  },
@@ -482,20 +507,15 @@
482
507
  "docstring": "",
483
508
  "path": "src/type/input.ts"
484
509
  },
485
- "src/components/mds-input-field/meta/types.ts::InputFieldType": {
486
- "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'",
487
- "docstring": "",
488
- "path": "src/components/mds-input-field/meta/types.ts"
489
- },
490
- "src/components/mds-input-field/meta/validators.ts::MdsValidatorFn": {
510
+ "src/components/mds-input/meta/validators.ts::MdsValidatorFn": {
491
511
  "declaration": "(input: string) => null | MdsValidationErrors",
492
512
  "docstring": "",
493
- "path": "src/components/mds-input-field/meta/validators.ts"
513
+ "path": "src/components/mds-input/meta/validators.ts"
494
514
  },
495
- "src/components/mds-input-field/meta/validators.ts::MdsValidationErrors": {
515
+ "src/components/mds-input/meta/validators.ts::MdsValidationErrors": {
496
516
  "declaration": "export interface MdsValidationErrors {\n [key: string]: string\n}",
497
517
  "docstring": "",
498
- "path": "src/components/mds-input-field/meta/validators.ts"
518
+ "path": "src/components/mds-input/meta/validators.ts"
499
519
  },
500
520
  "src/components/mds-input-switch/meta/types.ts::InputSwitchSizeType": {
501
521
  "declaration": "export type InputSwitchSizeType =\n | 'sm'\n | 'md'\n | 'lg'",
@@ -587,6 +607,11 @@
587
607
  "docstring": "",
588
608
  "path": "src/components/mds-paginator/meta/event-detail.ts"
589
609
  },
610
+ "src/components/mds-policy-ai/meta/types.ts::PolicyAiVariant": {
611
+ "declaration": "export type PolicyAiVariant =\n | 'icon'\n | 'chip'\n | 'card'\n | 'banner'",
612
+ "docstring": "",
613
+ "path": "src/components/mds-policy-ai/meta/types.ts"
614
+ },
590
615
  "src/components/mds-pref-animation/meta/types.ts::AnimationModeType": {
591
616
  "declaration": "export type AnimationModeType =\n | 'reduce'\n | 'no-preference'\n | 'system'",
592
617
  "docstring": "",
@@ -717,11 +742,6 @@
717
742
  "docstring": "",
718
743
  "path": "src/type/text.ts"
719
744
  },
720
- "src/type/variant.ts::ThemeLuminanceVariantType": {
721
- "declaration": "export type ThemeLuminanceVariantType =\n | 'dark'\n | 'light'",
722
- "docstring": "",
723
- "path": "src/type/variant.ts"
724
- },
725
745
  "src/components/mds-toast/meta/types.ts::ToastPosition": {
726
746
  "declaration": "export type ToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'",
727
747
  "docstring": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/mds-table-row",
3
- "version": "5.4.0",
3
+ "version": "5.4.2",
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,7 +23,7 @@ export class MdsTableRow {
23
23
  @Element() host: HTMLMdsTableRowElement
24
24
  private actions: HTMLDivElement
25
25
  private hasActions: boolean = true
26
- private sizerWidth: string
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
- componentDidLoad (): void {
56
- if (this.hasActions) {
57
- this.actions = this.host.shadowRoot?.querySelector('.actions') as HTMLDivElement
58
- this.sizerWidth = `${this.actions.offsetWidth.toString()}px`
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 && this.actions) {
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" style={{
94
- marginRight: `calc(${this.sizerWidth} + var(--mds-table-cell-padding))`,
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>
@@ -1,14 +1,15 @@
1
1
  const buttonVariantDictionary = [
2
+ 'ai',
3
+ 'apple',
2
4
  'dark',
3
5
  'error',
6
+ 'google',
4
7
  'info',
5
8
  'light',
6
9
  'primary',
7
10
  'secondary',
8
11
  'success',
9
12
  'warning',
10
- 'google',
11
- 'apple',
12
13
  ]
13
14
 
14
15
  const buttonToneVariantDictionary = [
@@ -1,4 +1,5 @@
1
1
  const themeVariantDictionary = [
2
+ 'ai',
2
3
  'dark',
3
4
  'error',
4
5
  'info',
@@ -78,13 +79,24 @@ const toneVariantDictionary = [
78
79
  ]
79
80
 
80
81
  const themeVariantChipDictionary = [
81
- 'primary',
82
- 'secondary',
82
+ 'ai',
83
+ 'amaranth',
84
+ 'aqua',
85
+ 'blue',
83
86
  'dark',
84
87
  'error',
88
+ 'green',
85
89
  'info',
90
+ 'lime',
91
+ 'orange',
92
+ 'orchid',
93
+ 'primary',
94
+ 'secondary',
95
+ 'sky',
86
96
  'success',
97
+ 'violet',
87
98
  'warning',
99
+ 'yellow',
88
100
  ]
89
101
 
90
102
  const toneActionVariantDictionary = [
@@ -333,7 +333,9 @@
333
333
  "mi/baseline/agriculture",
334
334
  "mi/baseline/animation",
335
335
  "mi/baseline/arrow-back",
336
+ "mi/baseline/arrow-back-ios-new",
336
337
  "mi/baseline/arrow-forward",
338
+ "mi/baseline/arrow-forward-ios",
337
339
  "mi/baseline/attach-file",
338
340
  "mi/baseline/attachment",
339
341
  "mi/baseline/audiotrack",
@@ -343,6 +345,7 @@
343
345
  "mi/baseline/book",
344
346
  "mi/baseline/border-all",
345
347
  "mi/baseline/broken-image",
348
+ "mi/baseline/calendar-today",
346
349
  "mi/baseline/call",
347
350
  "mi/baseline/cancel",
348
351
  "mi/baseline/category",
@@ -400,6 +403,7 @@
400
403
  "mi/baseline/panorama",
401
404
  "mi/baseline/person",
402
405
  "mi/baseline/pets",
406
+ "mi/baseline/privacy-tip",
403
407
  "mi/baseline/radio-button-checked",
404
408
  "mi/baseline/radio-button-unchecked",
405
409
  "mi/baseline/remove",
@@ -432,6 +436,7 @@
432
436
  "mi/outline/circle",
433
437
  "mi/outline/dark-mode",
434
438
  "mi/outline/help-outline",
439
+ "mi/outline/policy",
435
440
  "mi/outline/schedule",
436
441
  "mi/round/arrow-circle-down",
437
442
  "mi/round/email",
@@ -19,13 +19,14 @@ export type ButtonIconPositionType =
19
19
  | 'right'
20
20
 
21
21
  export type ButtonVariantType =
22
- | 'primary'
23
- | 'secondary'
22
+ | 'ai'
23
+ | 'apple'
24
24
  | 'dark'
25
- | 'light'
26
25
  | 'error'
26
+ | 'google'
27
27
  | 'info'
28
+ | 'light'
29
+ | 'primary'
30
+ | 'secondary'
28
31
  | 'success'
29
32
  | 'warning'
30
- | 'google'
31
- | 'apple'
package/src/type/input.ts CHANGED
@@ -23,6 +23,10 @@ export type InputTextType =
23
23
  | 'textarea'
24
24
  | 'time'
25
25
  | 'url'
26
+ | 'cc'
27
+ | 'cf'
28
+ | 'isbn'
29
+ | 'piva'
26
30
 
27
31
  export interface MdsInputEventDetail {
28
32
  value?: File | string | FormData | null
@@ -5,6 +5,7 @@ export type ThemeStatusVariantType =
5
5
  | 'warning'
6
6
 
7
7
  export type ThemeVariantType =
8
+ | 'ai'
8
9
  | 'dark'
9
10
  | 'error'
10
11
  | 'info'
@@ -70,13 +71,24 @@ export type ActionVariantType =
70
71
  | 'light'
71
72
 
72
73
  export type ChipVariantType =
73
- | 'primary'
74
- | 'secondary'
74
+ | 'ai'
75
+ | 'amaranth'
76
+ | 'aqua'
77
+ | 'blue'
75
78
  | 'dark'
76
79
  | 'error'
80
+ | 'green'
77
81
  | 'info'
82
+ | 'lime'
83
+ | 'orange'
84
+ | 'orchid'
85
+ | 'primary'
86
+ | 'secondary'
87
+ | 'sky'
78
88
  | 'success'
89
+ | 'violet'
79
90
  | 'warning'
91
+ | 'yellow'
80
92
 
81
93
  export type StateVariantType =
82
94
  | 'disabled'
@@ -1 +1 @@
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))));
1
+ import{p as e,b as a}from"./p-4a407cb6.js";export{s as setNonce}from"./p-4a407cb6.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-86e316e3",[[1,"mds-table-row",{interactive:[516],overlayActions:[516,"overlay-actions"],selectable:[516],selected:[1540],value:[520],sizerWidth:[32],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-e71445fa.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
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