@coveord/plasma-mantine 56.8.1 → 56.9.0

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 (42) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/.turbo/turbo-test.log +107 -106
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/cjs/components/Table/Table.d.ts +2 -12
  5. package/dist/cjs/components/Table/Table.d.ts.map +1 -1
  6. package/dist/cjs/components/Table/Table.js +0 -3
  7. package/dist/cjs/components/Table/Table.js.map +1 -1
  8. package/dist/cjs/components/Table/table-column/TableActionsColumn.d.ts +15 -0
  9. package/dist/cjs/components/Table/table-column/TableActionsColumn.d.ts.map +1 -1
  10. package/dist/cjs/components/Table/table-column/TableActionsColumn.js +14 -1
  11. package/dist/cjs/components/Table/table-column/TableActionsColumn.js.map +1 -1
  12. package/dist/cjs/components/Table/table-columns-selector/TableColumnsSelector.d.ts +11 -32
  13. package/dist/cjs/components/Table/table-columns-selector/TableColumnsSelector.d.ts.map +1 -1
  14. package/dist/cjs/components/Table/table-columns-selector/TableColumnsSelector.js +101 -97
  15. package/dist/cjs/components/Table/table-columns-selector/TableColumnsSelector.js.map +1 -1
  16. package/dist/cjs/index.d.ts +1 -0
  17. package/dist/cjs/index.d.ts.map +1 -1
  18. package/dist/cjs/index.js +4 -0
  19. package/dist/cjs/index.js.map +1 -1
  20. package/dist/esm/components/Table/Table.d.ts +2 -12
  21. package/dist/esm/components/Table/Table.d.ts.map +1 -1
  22. package/dist/esm/components/Table/Table.js +0 -3
  23. package/dist/esm/components/Table/Table.js.map +1 -1
  24. package/dist/esm/components/Table/table-column/TableActionsColumn.d.ts +15 -0
  25. package/dist/esm/components/Table/table-column/TableActionsColumn.d.ts.map +1 -1
  26. package/dist/esm/components/Table/table-column/TableActionsColumn.js +12 -1
  27. package/dist/esm/components/Table/table-column/TableActionsColumn.js.map +1 -1
  28. package/dist/esm/components/Table/table-columns-selector/TableColumnsSelector.d.ts +11 -32
  29. package/dist/esm/components/Table/table-columns-selector/TableColumnsSelector.d.ts.map +1 -1
  30. package/dist/esm/components/Table/table-columns-selector/TableColumnsSelector.js +94 -84
  31. package/dist/esm/components/Table/table-columns-selector/TableColumnsSelector.js.map +1 -1
  32. package/dist/esm/index.d.ts +1 -0
  33. package/dist/esm/index.d.ts.map +1 -1
  34. package/dist/esm/index.js +1 -0
  35. package/dist/esm/index.js.map +1 -1
  36. package/package.json +3 -3
  37. package/src/components/Table/Table.tsx +4 -9
  38. package/src/components/Table/__tests__/TableColumnsSelectorHeader.spec.tsx +325 -0
  39. package/src/components/Table/table-column/TableActionsColumn.tsx +28 -1
  40. package/src/components/Table/table-columns-selector/TableColumnsSelector.tsx +96 -125
  41. package/src/index.ts +1 -0
  42. package/src/components/Table/__tests__/TableColumnsSelector.spec.tsx +0 -352
@@ -1,9 +1,9 @@
1
1
 
2
- > @coveord/plasma-mantine@56.8.0 build /home/runner/work/plasma/plasma/packages/mantine
2
+ > @coveord/plasma-mantine@56.8.1 build /home/runner/work/plasma/plasma/packages/mantine
3
3
  > node ../../scripts/build
4
4
 
5
- (node:3593) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
5
+ (node:3611) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
6
6
  (Use `node --trace-deprecation ...` to show where the warning was created)
7
- Successfully compiled: 205 files, copied 58 files with swc (483.26ms)
8
- Successfully compiled: 205 files, copied 58 files with swc (631.76ms)
7
+ Successfully compiled: 205 files, copied 58 files with swc (454.65ms)
8
+ Successfully compiled: 205 files, copied 58 files with swc (625.95ms)
9
9
 
@@ -1,117 +1,118 @@
1
1
 
2
- > @coveord/plasma-mantine@56.8.0 test /home/runner/work/plasma/plasma/packages/mantine
2
+ > @coveord/plasma-mantine@56.8.1 test /home/runner/work/plasma/plasma/packages/mantine
3
3
  > cross-env TZ=UTC vitest run --silent
4
4
 
5
5
 
6
6
   RUN  v4.0.15 /home/runner/work/plasma/plasma/packages/mantine
7
7
 
8
- ✓ src/components/Collection/__tests__/Collection.spec.tsx (16 tests) 1936ms
9
- ✓ src/components/Table/__tests__/Table.spec.tsx (12 tests) 2720ms
10
- ✓ reset row selection when user click outside the table  320ms
11
- ✓ handles switching layout  487ms
12
- ✓ does not clear the row selection when clicking outside the table  354ms
13
- ✓ unselects all the selected rows when clicking on the the unselect button from the table header  375ms
14
- ✓ src/components/Table/layouts/__tests__/RowLayout.spec.tsx (17 tests) 4182ms
15
- ✓ renders the data using the RowLayout by default  515ms
16
- ✓ closes the opened collapsible when using the accordion column and the user expand a different row  407ms
17
- ✓ toggles row selection when clicking on a selected row  349ms
18
- ✓ allows selection of a different row if row selection is forced  347ms
19
- ✓ prevents row selection if disableRowSelection is true  407ms
20
- ✓ src/components/Table/__tests__/TablePagination.spec.tsx (7 tests) 1235ms
21
- ✓ calculates the number of pages based on the pageSize and the total number of entries  349ms
22
- ✓ changes the page when the pagination is client side  330ms
23
- ✓ changes page when the current page is greater than the total number of pages  309ms
24
- ✓ src/components/Table/__tests__/TableColumnsSelector.spec.tsx (13 tests) 5534ms
25
- ✓ render the edit button in the table header  415ms
26
- ✓ renders all columns in the dropdown, except the collapsible and the multiselectRow by default  561ms
27
- ✓ renders all checkboxes checked by default  614ms
28
- ✓ renders a disabled checked checkbox for columns that are always visible  729ms
29
- ✓ renders unchecked checkboxes for the columns that are not visible in the inital state of the table  503ms
30
- ✓ renders disabled checkboxes when the maxSelectableColumns is set and the maximum number of columns is checked  603ms
31
- ✓ renders a tooltip when the maxSelectableColumns is set and the maximum number of columns is checked and the user hover a disabled checkbox  530ms
32
- ✓ sets the current visible column ids in the url  578ms
33
- ✓ determines the initial visible columns from the url  407ms
34
- ✓ src/components/Table/__tests__/TableActions.spec.tsx (6 tests) 3510ms
35
- ✓ displays the actions when the row is selected  679ms
36
- ✓ displays the secondary actions when the row is selected and the user clicks on more  1495ms
37
- ✓ keeps the selected row data in sync with the data prop  329ms
38
- ✓ passes down an array of selected rows  702ms
39
- ✓ src/hooks/__tests__/use-url-synced-state.unit.spec.ts (70 tests) 148ms
40
- ✓ src/components/InlineConfirm/__tests__/InlineConfirm.spec.tsx (8 tests) 1276ms
41
- ✓ calls the onClick prop when clicking on the menu item  320ms
42
- ✓ src/components/Table/__tests__/TablePerPage.spec.tsx (7 tests) 1174ms
43
- ✓ displays the label  335ms
44
- ✓ src/components/Table/__tests__/TableFilter.spec.tsx (6 tests) 1580ms
45
- ✓ displays the placeholder  347ms
46
- ✓ goes back to the first page when changing the filter  378ms
47
- ✓ does not unselect rows that get filtered out  500ms
48
- ✓ src/components/CodeEditor/__tests__/CodeEditor.spec.tsx (9 tests | 1 skipped) 904ms
49
- ✓ renders the monaco editor, a copy to clipboard button and a search button  415ms
50
- ✓ src/components/DateRangePicker/__tests__/DateRangePickerInlineCalendar.spec.tsx (7 tests | 1 skipped) 5160ms
51
- ✓ calls onApply when the user clicks on the apply button  976ms
52
- ✓ calls onCancel when the user clicks on the cancel button  399ms
53
- ✓ calls onApply with the selected dates when clicking in the calendar  1352ms
54
- ✓ set end date same as start date if only one date is selected when clicking in the calendar  913ms
55
- ✓ calls onApply with the selected dates when typing in the inputs  1451ms
56
- ✓ src/components/Header/__tests__/Header.spec.tsx (8 tests) 592ms
57
- ✓ renders a heading of level 1 with the specified children within  311ms
58
- ✓ src/components/DateRangePicker/__tests__/DateRangePicker.spec.tsx (18 tests) 17460ms
59
- ✓ opens popover when input is clicked  461ms
60
- ✓ calls onChange when a date range is applied  3355ms
61
- ✓ closes popover when Cancel is clicked  679ms
62
- ✓ calls onCancel when Cancel button is clicked  639ms
63
- ✓ applies the selected date range in uncontrolled mode  3310ms
64
- ✓ applies the selected date range in controlled mode  3929ms
65
- ✓ renders preset options in the popover  1001ms
66
- ✓ sets the selected date range in the url  2798ms
67
- ✓ calls onOpenedChange when popover state changes  555ms
68
- ✓ src/components/Table/__tests__/TablePredicate.spec.tsx (3 tests) 3277ms
69
- ✓ goes back to the first page when changing the predicate  1825ms
70
- ✓ sets the current predicate value in the url using the predicate id as key  1246ms
71
- ✓ src/components/Table/__tests__/Th.spec.tsx (4 tests) 927ms
72
- ✓ displays the sort icon for every sortable column  345ms
73
- ✓ changes the sort icon when clicking on a table header  328ms
74
- ✓ src/components/DateRangePicker/__tests__/DateRangePickerPopoverCalendar.spec.tsx (4 tests | 2 skipped) 4319ms
75
- ✓ calls onApply with the selected dates when clicking in the calendar  4185ms
76
- ✓ src/components/Table/__tests__/TableDateRangePicker.spec.tsx (3 tests) 4758ms
77
- ✓ displays the initial dates  467ms
78
- ✓ sets the selected date range in the url  4201ms
79
- ✓ src/components/DateTimeRangePicker/__tests__/DateTimeRangePicker.spec.tsx (3 tests) 4894ms
80
- ✓ updates with the selected dates when choosing a preset  1244ms
81
- ✓ can change the date and time  3482ms
82
- ✓ src/components/Table/__tests__/TableCollapsibleColumn.spec.tsx (2 tests) 827ms
83
- ✓ expands the rows when the user clicks on a cell  611ms
84
- ✓ src/components/DateRangePicker/__tests__/EditableDateRangePicker.spec.tsx (3 tests) 3815ms
85
- ✓ renders an input for the start and an input for the end  332ms
86
- ✓ updates when editing values  1555ms
87
- ✓ accepts minDate and maxDate props for start and end inputs  1924ms
88
- ✓ src/components/Table/__tests__/TableLastUpdated.spec.tsx (3 tests) 493ms
89
- ✓ src/components/Button/__tests__/Button.spec.tsx (4 tests) 563ms
90
- ✓ src/theme/__tests__/mergeCSSVariablesResolvers.spec.ts (3 tests) 4ms
8
+ ✓ src/components/Collection/__tests__/Collection.spec.tsx (16 tests) 1995ms
9
+ ✓ src/components/Table/__tests__/Table.spec.tsx (12 tests) 2613ms
10
+ ✓ does not reset row selection when clicking within one of the specified additionalRootNodes, even if it is outside the table  311ms
11
+ ✓ handles switching layout  449ms
12
+ ✓ does not clear the row selection when clicking outside the table  371ms
13
+ ✓ unselects all the selected rows when clicking on the the unselect button from the table header  365ms
14
+ ✓ src/components/Table/layouts/__tests__/RowLayout.spec.tsx (17 tests) 4423ms
15
+ ✓ renders the data using the RowLayout by default  549ms
16
+ ✓ closes the opened collapsible when using the accordion column and the user expand a different row  520ms
17
+ ✓ toggles row selection when clicking on a selected row  335ms
18
+ ✓ allows selection of a different row if row selection is forced  313ms
19
+ ✓ prevents row selection if disableRowSelection is true  504ms
20
+ ✓ src/components/Table/__tests__/TablePagination.spec.tsx (7 tests) 1347ms
21
+ ✓ calculates the number of pages based on the pageSize and the total number of entries  424ms
22
+ ✓ changes the page when the pagination is client side  382ms
23
+ ✓ src/components/Table/__tests__/TableActions.spec.tsx (6 tests) 3509ms
24
+ ✓ displays the actions when the row is selected  745ms
25
+ ✓ displays the secondary actions when the row is selected and the user clicks on more  1722ms
26
+ ✓ passes down an array of selected rows  561ms
27
+ ✓ src/hooks/__tests__/use-url-synced-state.unit.spec.ts (70 tests) 162ms
28
+ ✓ src/components/Table/__tests__/TableColumnsSelectorHeader.spec.tsx (12 tests) 11723ms
29
+ ✓ renders the column selector button in the actions column header when rowConfigurable is true  762ms
30
+ ✓ renders all columns in the dropdown except control columns  1424ms
31
+ ✓ renders all checkboxes checked by default  1093ms
32
+ ✓ hides a column when the user unchecks it  999ms
33
+ ✓ shows a column when the user checks it  888ms
34
+ ✓ renders a disabled checked checkbox for columns that are always visible  874ms
35
+ ✓ renders a tooltip when hovering a disabled always visible column checkbox  1110ms
36
+ ✓ renders unchecked checkboxes for columns that are not visible in the initial state  989ms
37
+ ✓ disables unchecked columns when the maximum number of visible columns is reached  1056ms
38
+ ✓ renders a footer with the max columns message when maxSelectableColumns is set  899ms
39
+ ✓ does not render a footer when maxSelectableColumns is not set  798ms
40
+ ✓ enables a disabled column when a visible column is hidden  790ms
41
+ ✓ src/components/InlineConfirm/__tests__/InlineConfirm.spec.tsx (8 tests) 1305ms
42
+ ✓ calls the onClick prop when clicking on the menu item  361ms
43
+ ✓ src/components/Table/__tests__/TablePerPage.spec.tsx (7 tests) 1212ms
44
+ ✓ src/components/Table/__tests__/TableFilter.spec.tsx (6 tests) 1701ms
45
+ ✓ displays the placeholder  417ms
46
+ ✓ goes back to the first page when changing the filter  448ms
47
+ ✓ does not unselect rows that get filtered out  444ms
48
+ ✓ src/components/CodeEditor/__tests__/CodeEditor.spec.tsx (9 tests | 1 skipped) 1043ms
49
+ ✓ renders the monaco editor, a copy to clipboard button and a search button  483ms
50
+ ✓ src/components/DateRangePicker/__tests__/DateRangePicker.spec.tsx (18 tests) 16783ms
51
+ ✓ renders with placeholder text when no date range is selected  343ms
52
+ ✓ opens popover when input is clicked  528ms
53
+ ✓ calls onChange when a date range is applied  3071ms
54
+ ✓ closes popover when Cancel is clicked  727ms
55
+ ✓ calls onCancel when Cancel button is clicked  486ms
56
+ ✓ applies the selected date range in uncontrolled mode  3392ms
57
+ ✓ applies the selected date range in controlled mode  3507ms
58
+ ✓ renders preset options in the popover  1105ms
59
+ ✓ sets the selected date range in the url  2574ms
60
+ ✓ calls onOpenedChange when popover state changes  499ms
61
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerInlineCalendar.spec.tsx (7 tests | 1 skipped) 5840ms
62
+ ✓ calls onApply when the user clicks on the apply button  963ms
63
+ ✓ calls onCancel when the user clicks on the cancel button  506ms
64
+ ✓ calls onApply with the selected dates when clicking in the calendar  1491ms
65
+ ✓ set end date same as start date if only one date is selected when clicking in the calendar  963ms
66
+ ✓ calls onApply with the selected dates when typing in the inputs  1833ms
67
+ ✓ src/components/Header/__tests__/Header.spec.tsx (8 tests) 557ms
68
+ ✓ src/components/Table/__tests__/TablePredicate.spec.tsx (3 tests) 2994ms
69
+ ✓ goes back to the first page when changing the predicate  1639ms
70
+ ✓ sets the current predicate value in the url using the predicate id as key  1170ms
71
+ ✓ src/components/Table/__tests__/Th.spec.tsx (4 tests) 869ms
72
+ ✓ displays the sort icon for every sortable column  337ms
73
+ ✓ changes the sort icon when clicking on a table header  359ms
74
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerPopoverCalendar.spec.tsx (4 tests | 2 skipped) 4118ms
75
+ ✓ calls onApply with the selected dates when clicking in the calendar  3997ms
76
+ ✓ src/components/Table/__tests__/TableDateRangePicker.spec.tsx (3 tests) 4651ms
77
+ ✓ displays the initial dates  432ms
78
+ ✓ sets the selected date range in the url  4137ms
79
+ ✓ src/components/DateTimeRangePicker/__tests__/DateTimeRangePicker.spec.tsx (3 tests) 5130ms
80
+ ✓ updates with the selected dates when choosing a preset  1289ms
81
+ ✓ can change the date and time  3664ms
82
+ ✓ src/components/Table/__tests__/TableCollapsibleColumn.spec.tsx (2 tests) 769ms
83
+ ✓ expands the rows when the user clicks on a cell  615ms
84
+ ✓ src/components/DateRangePicker/__tests__/EditableDateRangePicker.spec.tsx (3 tests) 3725ms
85
+ ✓ renders an input for the start and an input for the end  359ms
86
+ ✓ updates when editing values  1489ms
87
+ ✓ accepts minDate and maxDate props for start and end inputs  1874ms
88
+ ✓ src/components/Table/__tests__/TableLastUpdated.spec.tsx (3 tests) 444ms
89
+ ✓ src/components/Button/__tests__/Button.spec.tsx (4 tests) 530ms
90
+ ✓ src/theme/__tests__/mergeCSSVariablesResolvers.spec.ts (3 tests) 5ms
91
91
  ↓ src/utils/__tests__/overrideComponent.spec.tsx (1 test | 1 skipped)
92
- ✓ src/components/Button/__tests__/ButtonWithDisabledTooltip.spec.tsx (3 tests | 1 skipped) 483ms
93
- ✓ shows a tooltip when hovering over the disabled button  426ms
94
- ✓ src/components/DateRangePicker/__tests__/DateRangePickerPresetSelect.spec.tsx (2 tests) 944ms
95
- ✓ calls onChange when selecting a preset  775ms
96
- ✓ src/components/LastUpdated/__tests__/LastUpdated.spec.tsx (5 tests) 452ms
97
- ✓ src/hooks/__tests__/useControlledList.spec.tsx (3 tests) 33ms
98
- ✓ src/components/Prompt/__tests__/Prompt.spec.tsx (6 tests) 744ms
99
- ✓ displays the title, body and close button  329ms
100
- ✓ src/components/CopyToClipboard/__tests__/CopyToClipboard.spec.tsx (3 tests) 601ms
101
- ✓ src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts (1 test) 6ms
102
- ✓ src/components/BrowserPreview/__tests__/BrowserPreview.spec.tsx (4 tests) 554ms
103
- ✓ renders the specified text as the header tooltip content  455ms
104
- ✓ src/components/ChildForm/__tests__/ChildForm.spec.tsx (3 tests) 328ms
105
- ✓ src/components/Modal/__tests__/Modal.spec.tsx (2 tests) 269ms
106
- ✓ src/components/RadioCard/__tests__/RadioCard.component.spec.tsx (3 tests) 263ms
107
- ✓ src/components/Modal/__tests__/ModalFooter.spec.tsx (2 tests) 76ms
108
- ✓ src/components/Menu/__tests__/Menu.spec.tsx (1 test) 294ms
109
- ✓ src/components/CodeEditor/search/__tests__/Search.unit.spec.tsx (1 test) 292ms
110
- ✓ src/components/StickyFooter/__tests__/StickyFooter.spec.tsx (1 test) 69ms
92
+ ✓ src/components/Button/__tests__/ButtonWithDisabledTooltip.spec.tsx (3 tests | 1 skipped) 505ms
93
+ ✓ shows a tooltip when hovering over the disabled button  459ms
94
+ ✓ src/components/LastUpdated/__tests__/LastUpdated.spec.tsx (5 tests) 425ms
95
+ ✓ src/components/DateRangePicker/__tests__/DateRangePickerPresetSelect.spec.tsx (2 tests) 1115ms
96
+ ✓ calls onChange when selecting a preset  881ms
97
+ ✓ src/hooks/__tests__/useControlledList.spec.tsx (3 tests) 29ms
98
+ ✓ src/components/Prompt/__tests__/Prompt.spec.tsx (6 tests) 838ms
99
+ ✓ displays the title, body and close button  383ms
100
+ ✓ src/components/CopyToClipboard/__tests__/CopyToClipboard.spec.tsx (3 tests) 560ms
101
+ ✓ src/theme/__tests__/plasmaCSSVariablesResolver.spec.ts (1 test) 8ms
102
+ ✓ src/components/BrowserPreview/__tests__/BrowserPreview.spec.tsx (4 tests) 534ms
103
+ ✓ renders the specified text as the header tooltip content  444ms
104
+ ✓ src/components/ChildForm/__tests__/ChildForm.spec.tsx (3 tests) 304ms
105
+ ✓ src/components/Modal/__tests__/Modal.spec.tsx (2 tests) 285ms
106
+ ✓ src/components/RadioCard/__tests__/RadioCard.component.spec.tsx (3 tests) 288ms
107
+ ✓ src/components/Modal/__tests__/ModalFooter.spec.tsx (2 tests) 94ms
108
+ ✓ src/components/Menu/__tests__/Menu.spec.tsx (1 test) 251ms
109
+ ✓ src/components/CodeEditor/search/__tests__/Search.unit.spec.tsx (1 test) 369ms
110
+ ✓ should call handleSearch when the search button is clicked  366ms
111
+ ✓ src/components/StickyFooter/__tests__/StickyFooter.spec.tsx (1 test) 59ms
111
112
  ✓ src/components/BlankSlate/__tests__/BlankSlate.spec.tsx (1 test) 49ms
112
113
 
113
114
   Test Files  40 passed | 1 skipped (41)
114
-  Tests  272 passed | 6 skipped (278)
115
-  Start at  20:22:56
116
-  Duration  56.80s (transform 1.85s, setup 9.31s, import 45.42s, tests 76.74s, environment 29.01s)
115
+  Tests  271 passed | 6 skipped (277)
116
+  Start at  15:03:26
117
+  Duration  59.05s (transform 1.83s, setup 9.35s, import 45.73s, tests 83.16s, environment 28.99s)
117
118