@myunisoft/design-system 0.17.0 → 0.18.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.
package/CHANGELOG.md CHANGED
@@ -1,156 +1,169 @@
1
- # Changelog
2
- ## v0.17.0 (17/08/2022)
3
- #### Enhancements
4
- - [MYUN-MYUN-20881 ](https://myunisoft.atlassian.net/browse/MYUN-MYUN-20881 ) Migrate MUI from v4 to v5
5
-
6
- ## v0.16.4 (18/07/2022)
7
- - [MYUN-22693 ](https://myunisoft.atlassian.net/browse/MYUN-22693 ) [VirtualTable] Fix crash add fallback value for SelecCell when options array is empty
8
-
9
- ## v0.16.2 (05/07/2022)
10
- #### Bug Fixes
11
- - [MYUN-22357](https://myunisoft.atlassian.net/browse/MYUN-22357) [VirtualTable] Fix crash when using `tooltipDetail`
12
- - [MYUN-22462](https://myunisoft.atlassian.net/browse/MYUN-22462) [VirtualTable] Unfilterable columns are displayed as filterable
13
- - [MYUN-22510](https://myunisoft.atlassian.net/browse/MYUN-22510) [VirtualTable] Fix bug renderLabelCustom in select cell VT
14
- ## v0.16.1 (15/06/2022)
15
- #### Bug Fixes
16
- - [MYUN-21986](https://myunisoft.atlassian.net/browse/MYUN-21986) [VirtualTable] Fix `DateCell` cannot be cleared
17
- - [MYUN-20845](https://myunisoft.atlassian.net/browse/MYUN-20845) [VirtualTable] Fix typo in `SearchBar` placeholder
18
-
19
- ## v0.16.0 (02/06/2022)
20
- #### Enhancements
21
- - [MYUN-21869](https://myunisoft.atlassian.net/browse/MYUN-21869) Add `onCustomScroll` prop.
22
-
23
- ## v0.15.3 (14/04/2022)
24
- #### Bug Fixes
25
- - [MYUN-20875](https://myunisoft.atlassian.net/browse/MYUN-20875) Apply actions to visible rows
26
- - [MYUN-20635](https://myunisoft.atlassian.net/browse/MYUN-20635) Prevent "Invalid Date" warning in browser
27
-
28
- ## v0.15.2 (31/03/2022)
29
- #### Enhancements
30
- - [MYUN-20126](https://myunisoft.atlassian.net/browse/MYUN-20126) Clean old code
31
- #### Bug Fixes
32
- - [MYUN-12876](https://myunisoft.atlassian.net/browse/MYUN-12876) Error tooltip
33
-
34
- ## v0.13.0 (16/02/2022)
35
- #### Enhancements
36
- - [MYUN-18987](https://myunisoft.atlassian.net/browse/MYUN-18987) Add `renderExport` support for all column types.
37
- - [MYUN-19425](https://myunisoft.atlassian.net/browse/MYUN-19425) Improve filtering of number/amount columns.
38
-
39
- ---
40
- ## v0.12.1 (11/02/2022)
41
- #### Bug Fixes
42
- - [MYUN-19389](https://myunisoft.atlassian.net/browse/MYUN-19389) Fix `isEdit` callback value.
43
- ---
44
- ## v0.12.0 (04/02/2022)
45
-
46
- #### Enhancements
47
- - [MYUN-19149](https://myunisoft.atlassian.net/browse/MYUN-19149) Add `handleCancel` callback property.
48
- - [MYUN-19098](https://myunisoft.atlassian.net/browse/MYUN-19098) Pass row data to `sortComparator` function.
49
-
50
- ---
51
- ## v0.11.0 (31/01/2022)
52
- #### Enhancements
53
- - [MYUN-18606](https://myunisoft.atlassian.net/browse/MYUN-18606) Improve selection strategy using apiRef.
54
- - [MYUN-17800](https://myunisoft.atlassian.net/browse/MYUN-17800) Add print and pdf export.
55
- #### Bug Fixes
56
- - [MYUN-18890](https://myunisoft.atlassian.net/browse/MYUN-18890) Fix filtering with "0" value.
57
- ---
58
- ## v0.10.4 (25/01/2022)
59
-
60
- #### Enhancements
61
- - [MYUN-18490](https://myunisoft.atlassian.net/browse/MYUN-18490) Add config option to ContextMenu and improve calculation timing.
62
- - [MYUN-18618](https://myunisoft.atlassian.net/browse/MYUN-18618) Add `enableColumnEdition` config property.
63
- #### Bug Fixes
64
- - [MYUN-18781](https://myunisoft.atlassian.net/browse/MYUN-18781) Fix AmountCell update from data changes.
65
- - [MYUN-18474](https://myunisoft.atlassian.net/browse/MYUN-18474) Fix useColumn hook to get added columns.
66
- - [MYUN-16618](https://myunisoft.atlassian.net/browse/MYUN-16618) Return cell datas in AttachmentCell.
67
- ---
68
- ## v0.10.3 (14/01/2022)
69
- #### Enhancements
70
- - [MYUN-18568](https://myunisoft.atlassian.net/browse/MYUN-18568) Add `addRowLabel` config property to override the "Add a new line +" label.
71
- - [MYUN-18567](https://myunisoft.atlassian.net/browse/MYUN-18567) Add `defaultOrder` and `defaultOrderDirection` config properties.
72
- ---
73
- ## v0.10.2 (12/01/2022)
74
- #### Bug Fixes
75
- - [MYUN-18174](https://myunisoft.atlassian.net/browse/MYUN-18174) Fix column witdh in ColumnsSetting component
76
- - [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix row deleting function
77
- - [MYUN-18426](https://myunisoft.atlassian.net/browse/MYUN-18426) Fix filter options for column with typeCell as select.
78
- ---
79
- ## v0.10.1 (07/01/2022)
80
- #### Bug Fixes
81
- - Fix build process
82
- ---
83
- ## v0.10.0 (07/01/2022)
84
- #### Enhancements
85
- - [MYUN-18239](https://myunisoft.atlassian.net/browse/MYUN-18239) Expose export method outside the VT using the new [API](https://myunisoft.github.io/design-system/docs/virtual-table/api) system.
86
- - [MYUN-16618](https://myunisoft.atlassian.net/browse/MYUN-16618) Refactoring of AttachmentCell using the new [FileDropper](https://myunisoft.github.io/design-system/docs/inputs/FileDropper) component.
87
-
88
- #### Bug Fixes
89
- - [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix amountCell refresh when a row is deleted.
90
- - [MYUN-18127](https://myunisoft.atlassian.net/browse/MYUN-18127) Fix all rows selection logic to prevent crash with high number of rows.
91
- ---
92
- ## v0.9.6
93
-
94
- #### Bug Fixes
95
- - [MYUN-17573](https://myunisoft.atlassian.net/browse/MYUN-17573) Fix scroll synchronisation delay
96
- - [MYUN-18061](https://myunisoft.atlassian.net/browse/MYUN-18061) Fix `totalrows` data attribute
97
-
98
- ---
99
- ## v0.9.5 (23/12/2021)
100
-
101
- #### Enhancements
102
-
103
- - [MYUN-18061](https://myunisoft.atlassian.net/browse/MYUN-18061) Add a length row property in a empty div in the VT just for cypress testing
104
-
105
- ---
106
- ## v0.9.4 (16/12/2021)
107
-
108
- #### Enhancements
109
-
110
- - [MYUN-17509](https://myunisoft.atlassian.net/browse/MYUN-17509) Add disabled, className and style property to `select` typeCell
111
-
112
- #### Bug Fixes
113
-
114
- - [MYUN-17850](https://myunisoft.atlassian.net/browse/MYUN-17850) Fix export of empty wallet cell
115
-
116
- ---
117
-
118
- ## v0.9.3 (13/12/2021)
119
-
120
- #### Bug Fixes
121
-
122
- - [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of switch badge cell
123
-
124
- ---
125
-
126
- ## v0.9.2 (08/12/2021)
127
-
128
- #### Bug Fixes
129
-
130
- - [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of empty badge cell
131
- - [MYUN-17665](https://myunisoft.atlassian.net/browse/MYUN-17665) Activate save button on edit
132
-
133
- ---
134
-
135
- ## v0.9.1 (06/12/2021)
136
-
137
- #### Bug Fixes:
138
-
139
- - [MYUN-17505](https://myunisoft.atlassian.net/browse/MYUN-17505) Add `rowIndex` property to RenderComponent callback
140
- - [MYUN-17584](https://myunisoft.atlassian.net/browse/MYUN-17584) Fix `typeCell` in columnsSettings and doc
141
-
142
- ---
143
-
144
- ## v0.9.0 (03/12/2021)
145
-
146
- #### Enhancements:
147
-
148
- - [MYUN-17510](https://myunisoft.atlassian.net/browse/MYUN-17510) Handle custom sortable
149
-
150
- ---
151
-
152
- ## v0.8.4 (02/12/2021)
153
-
154
- #### Bug Fixes:
155
-
156
- - [MYUN-16553](https://myunisoft.atlassian.net/browse/MYUN-16553) Editable AmountCell are not clickable when empty
1
+ # Changelog
2
+ ## v0.18.2 (12/09/2022)
3
+ #### Bug Fixes
4
+ - [MYUN-22495](https://myunisoft.atlassian.net/browse/MYUN-22495) Add `footerProps` property to VT config
5
+ - [MYUN-23364](https://myunisoft.atlassian.net/browse/MYUN-23364) Add `disabled` property to `actionsButton`
6
+
7
+ ## v0.18.1 (30/08/2022)
8
+ #### Bug Fixes
9
+ - [MYUN-23219](https://myunisoft.atlassian.net/browse/MYUN-23219) Update `react-spinners` dependency version
10
+ - [MYUN-22567](https://myunisoft.atlassian.net/browse/MYUN-22567) Fix `setCurrentCell` method
11
+
12
+ ## v0.18.0 (23/08/2022)
13
+ #### Enhancements
14
+ - [MYUN-MYUN-22971 ](https://myunisoft.atlassian.net/browse/MYUN-MYUN-22971 ) Export `exportData` helper
15
+ ## v0.17.0 (17/08/2022)
16
+ #### Enhancements
17
+ - [MYUN-MYUN-20881 ](https://myunisoft.atlassian.net/browse/MYUN-MYUN-20881 ) Migrate MUI from v4 to v5
18
+
19
+ ## v0.16.4 (18/07/2022)
20
+ - [MYUN-22693 ](https://myunisoft.atlassian.net/browse/MYUN-22693 ) [VirtualTable] Fix crash add fallback value for SelecCell when options array is empty
21
+
22
+ ## v0.16.2 (05/07/2022)
23
+ #### Bug Fixes
24
+ - [MYUN-22357](https://myunisoft.atlassian.net/browse/MYUN-22357) [VirtualTable] Fix crash when using `tooltipDetail`
25
+ - [MYUN-22462](https://myunisoft.atlassian.net/browse/MYUN-22462) [VirtualTable] Unfilterable columns are displayed as filterable
26
+ - [MYUN-22510](https://myunisoft.atlassian.net/browse/MYUN-22510) [VirtualTable] Fix bug renderLabelCustom in select cell VT
27
+ ## v0.16.1 (15/06/2022)
28
+ #### Bug Fixes
29
+ - [MYUN-21986](https://myunisoft.atlassian.net/browse/MYUN-21986) [VirtualTable] Fix `DateCell` cannot be cleared
30
+ - [MYUN-20845](https://myunisoft.atlassian.net/browse/MYUN-20845) [VirtualTable] Fix typo in `SearchBar` placeholder
31
+
32
+ ## v0.16.0 (02/06/2022)
33
+ #### Enhancements
34
+ - [MYUN-21869](https://myunisoft.atlassian.net/browse/MYUN-21869) Add `onCustomScroll` prop.
35
+
36
+ ## v0.15.3 (14/04/2022)
37
+ #### Bug Fixes
38
+ - [MYUN-20875](https://myunisoft.atlassian.net/browse/MYUN-20875) Apply actions to visible rows
39
+ - [MYUN-20635](https://myunisoft.atlassian.net/browse/MYUN-20635) Prevent "Invalid Date" warning in browser
40
+
41
+ ## v0.15.2 (31/03/2022)
42
+ #### Enhancements
43
+ - [MYUN-20126](https://myunisoft.atlassian.net/browse/MYUN-20126) Clean old code
44
+ #### Bug Fixes
45
+ - [MYUN-12876](https://myunisoft.atlassian.net/browse/MYUN-12876) Error tooltip
46
+
47
+ ## v0.13.0 (16/02/2022)
48
+ #### Enhancements
49
+ - [MYUN-18987](https://myunisoft.atlassian.net/browse/MYUN-18987) Add `renderExport` support for all column types.
50
+ - [MYUN-19425](https://myunisoft.atlassian.net/browse/MYUN-19425) Improve filtering of number/amount columns.
51
+
52
+ ---
53
+ ## v0.12.1 (11/02/2022)
54
+ #### Bug Fixes
55
+ - [MYUN-19389](https://myunisoft.atlassian.net/browse/MYUN-19389) Fix `isEdit` callback value.
56
+ ---
57
+ ## v0.12.0 (04/02/2022)
58
+
59
+ #### Enhancements
60
+ - [MYUN-19149](https://myunisoft.atlassian.net/browse/MYUN-19149) Add `handleCancel` callback property.
61
+ - [MYUN-19098](https://myunisoft.atlassian.net/browse/MYUN-19098) Pass row data to `sortComparator` function.
62
+
63
+ ---
64
+ ## v0.11.0 (31/01/2022)
65
+ #### Enhancements
66
+ - [MYUN-18606](https://myunisoft.atlassian.net/browse/MYUN-18606) Improve selection strategy using apiRef.
67
+ - [MYUN-17800](https://myunisoft.atlassian.net/browse/MYUN-17800) Add print and pdf export.
68
+ #### Bug Fixes
69
+ - [MYUN-18890](https://myunisoft.atlassian.net/browse/MYUN-18890) Fix filtering with "0" value.
70
+ ---
71
+ ## v0.10.4 (25/01/2022)
72
+
73
+ #### Enhancements
74
+ - [MYUN-18490](https://myunisoft.atlassian.net/browse/MYUN-18490) Add config option to ContextMenu and improve calculation timing.
75
+ - [MYUN-18618](https://myunisoft.atlassian.net/browse/MYUN-18618) Add `enableColumnEdition` config property.
76
+ #### Bug Fixes
77
+ - [MYUN-18781](https://myunisoft.atlassian.net/browse/MYUN-18781) Fix AmountCell update from data changes.
78
+ - [MYUN-18474](https://myunisoft.atlassian.net/browse/MYUN-18474) Fix useColumn hook to get added columns.
79
+ - [MYUN-16618](https://myunisoft.atlassian.net/browse/MYUN-16618) Return cell datas in AttachmentCell.
80
+ ---
81
+ ## v0.10.3 (14/01/2022)
82
+ #### Enhancements
83
+ - [MYUN-18568](https://myunisoft.atlassian.net/browse/MYUN-18568) Add `addRowLabel` config property to override the "Add a new line +" label.
84
+ - [MYUN-18567](https://myunisoft.atlassian.net/browse/MYUN-18567) Add `defaultOrder` and `defaultOrderDirection` config properties.
85
+ ---
86
+ ## v0.10.2 (12/01/2022)
87
+ #### Bug Fixes
88
+ - [MYUN-18174](https://myunisoft.atlassian.net/browse/MYUN-18174) Fix column witdh in ColumnsSetting component
89
+ - [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix row deleting function
90
+ - [MYUN-18426](https://myunisoft.atlassian.net/browse/MYUN-18426) Fix filter options for column with typeCell as select.
91
+ ---
92
+ ## v0.10.1 (07/01/2022)
93
+ #### Bug Fixes
94
+ - Fix build process
95
+ ---
96
+ ## v0.10.0 (07/01/2022)
97
+ #### Enhancements
98
+ - [MYUN-18239](https://myunisoft.atlassian.net/browse/MYUN-18239) Expose export method outside the VT using the new [API](https://myunisoft.github.io/design-system/docs/virtual-table/api) system.
99
+ - [MYUN-16618](https://myunisoft.atlassian.net/browse/MYUN-16618) Refactoring of AttachmentCell using the new [FileDropper](https://myunisoft.github.io/design-system/docs/inputs/FileDropper) component.
100
+
101
+ #### Bug Fixes
102
+ - [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix amountCell refresh when a row is deleted.
103
+ - [MYUN-18127](https://myunisoft.atlassian.net/browse/MYUN-18127) Fix all rows selection logic to prevent crash with high number of rows.
104
+ ---
105
+ ## v0.9.6
106
+
107
+ #### Bug Fixes
108
+ - [MYUN-17573](https://myunisoft.atlassian.net/browse/MYUN-17573) Fix scroll synchronisation delay
109
+ - [MYUN-18061](https://myunisoft.atlassian.net/browse/MYUN-18061) Fix `totalrows` data attribute
110
+
111
+ ---
112
+ ## v0.9.5 (23/12/2021)
113
+
114
+ #### Enhancements
115
+
116
+ - [MYUN-18061](https://myunisoft.atlassian.net/browse/MYUN-18061) Add a length row property in a empty div in the VT just for cypress testing
117
+
118
+ ---
119
+ ## v0.9.4 (16/12/2021)
120
+
121
+ #### Enhancements
122
+
123
+ - [MYUN-17509](https://myunisoft.atlassian.net/browse/MYUN-17509) Add disabled, className and style property to `select` typeCell
124
+
125
+ #### Bug Fixes
126
+
127
+ - [MYUN-17850](https://myunisoft.atlassian.net/browse/MYUN-17850) Fix export of empty wallet cell
128
+
129
+ ---
130
+
131
+ ## v0.9.3 (13/12/2021)
132
+
133
+ #### Bug Fixes
134
+
135
+ - [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of switch badge cell
136
+
137
+ ---
138
+
139
+ ## v0.9.2 (08/12/2021)
140
+
141
+ #### Bug Fixes
142
+
143
+ - [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of empty badge cell
144
+ - [MYUN-17665](https://myunisoft.atlassian.net/browse/MYUN-17665) Activate save button on edit
145
+
146
+ ---
147
+
148
+ ## v0.9.1 (06/12/2021)
149
+
150
+ #### Bug Fixes:
151
+
152
+ - [MYUN-17505](https://myunisoft.atlassian.net/browse/MYUN-17505) Add `rowIndex` property to RenderComponent callback
153
+ - [MYUN-17584](https://myunisoft.atlassian.net/browse/MYUN-17584) Fix `typeCell` in columnsSettings and doc
154
+
155
+ ---
156
+
157
+ ## v0.9.0 (03/12/2021)
158
+
159
+ #### Enhancements:
160
+
161
+ - [MYUN-17510](https://myunisoft.atlassian.net/browse/MYUN-17510) Handle custom sortable
162
+
163
+ ---
164
+
165
+ ## v0.8.4 (02/12/2021)
166
+
167
+ #### Bug Fixes:
168
+
169
+ - [MYUN-16553](https://myunisoft.atlassian.net/browse/MYUN-16553) Editable AmountCell are not clickable when empty
package/dist/index.js CHANGED
@@ -7,10 +7,11 @@ var $cMI0G$lodashmin = require("lodash/min");
7
7
  var $cMI0G$proptypes = require("prop-types");
8
8
  var $cMI0G$react = require("react");
9
9
  var $cMI0G$reactvirtualized = require("react-virtualized");
10
+ var $cMI0G$muiutilsdeprecatedPropType = require("@mui/utils/deprecatedPropType");
11
+ var $cMI0G$babelruntimehelpersextends = require("@babel/runtime/helpers/extends");
10
12
  var $cMI0G$i18next = require("i18next");
11
13
  var $cMI0G$muimaterial = require("@mui/material");
12
14
  var $cMI0G$muistylesmakeStyles = require("@mui/styles/makeStyles");
13
- var $cMI0G$babelruntimehelpersextends = require("@babel/runtime/helpers/extends");
14
15
  var $cMI0G$babelruntimehelpersobjectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties");
15
16
  var $cMI0G$classnames = require("classnames");
16
17
  var $cMI0G$lodashget = require("lodash/get");
@@ -29,8 +30,8 @@ var $cMI0G$muimaterialSelect = require("@mui/material/Select");
29
30
  var $cMI0G$moment = require("moment");
30
31
  var $cMI0G$lodashisEmpty = require("lodash/isEmpty");
31
32
  var $cMI0G$lodashfirst = require("lodash/first");
32
- var $cMI0G$reactspinners = require("react-spinners");
33
33
  var $cMI0G$muimaterialstyles = require("@mui/material/styles");
34
+ var $cMI0G$reactspinnersClipLoader = require("react-spinners/ClipLoader");
34
35
  var $cMI0G$babelruntimeregenerator = require("@babel/runtime/regenerator");
35
36
  var $cMI0G$babelruntimehelpersasyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator");
36
37
  var $cMI0G$lodashfind = require("lodash/find");
@@ -103,6 +104,8 @@ Object.defineProperty(module.exports, "__esModule", {
103
104
  });
104
105
  module.exports["default"] = void 0;
105
106
 
107
+ var $1eb7cba72eb8d5c7$var$_extends2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$babelruntimehelpersextends);
108
+
106
109
  var $1eb7cba72eb8d5c7$var$_toConsumableArray2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$babelruntimehelperstoConsumableArray);
107
110
 
108
111
  var $1eb7cba72eb8d5c7$var$_defineProperty2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$babelruntimehelpersdefineProperty);
@@ -157,6 +160,8 @@ var $1eb7cba72eb8d5c7$var$_ApiRefHandler = $cMI0G$babelruntimehelpersinteropRequ
157
160
  var $kUV64 = parcelRequire("kUV64");
158
161
 
159
162
  var $kC0RD = parcelRequire("kC0RD");
163
+
164
+ var $1eb7cba72eb8d5c7$var$_deprecatedPropType = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$muiutilsdeprecatedPropType);
160
165
  function $1eb7cba72eb8d5c7$var$_getRequireWildcardCache(nodeInterop1) {
161
166
  if (typeof WeakMap !== "function") return null;
162
167
  var cacheBabelInterop = new WeakMap();
@@ -216,7 +221,8 @@ var $1eb7cba72eb8d5c7$var$VirtualTable = /*#__PURE__*/ $1eb7cba72eb8d5c7$var$_re
216
221
  var _useState3 = (0, $1eb7cba72eb8d5c7$var$_react.useState)(0), _useState4 = (0, $1eb7cba72eb8d5c7$var$_slicedToArray2["default"])(_useState3, 2), horizontalPadding = _useState4[0], setHorizontalPadding = _useState4[1];
217
222
  var config = $1eb7cba72eb8d5c7$var$_objectSpread($1eb7cba72eb8d5c7$var$_objectSpread({
218
223
  }, $1eb7cba72eb8d5c7$var$defaultConfig), configProps);
219
- var _config$insertPositio = config.insertPosition, insertPosition = _config$insertPositio === void 0 ? $6QL76.INSERT_POSITION.TOP : _config$insertPositio, columnsRaw = config.columns, _config$hasFooter = config.hasFooter, hasFooter = _config$hasFooter === void 0 ? false : _config$hasFooter, _config$hasHeader = config.hasHeader, hasHeader = _config$hasHeader === void 0 ? true : _config$hasHeader, _config$selectableRow = config.selectableRow, selectableRow = _config$selectableRow === void 0 ? false : _config$selectableRow, _config$selectableRow2 = config.selectableRowKey, selectableRowKey = _config$selectableRow2 === void 0 ? 'id' : _config$selectableRow2, _config$selectableOnl = config.selectableOnlyOneRow, selectableOnlyOneRow = _config$selectableOnl === void 0 ? false : _config$selectableOnl, customSelectionHeader = config.customSelectionHeader, _config$minCellWidth = config.minCellWidth, minCellWidth = _config$minCellWidth === void 0 ? 100 : _config$minCellWidth, _config$selectableBar = config.selectableBarInfo, selectableBarInfo = _config$selectableBar === void 0 ? false : _config$selectableBar, _config$modeAdd = config.modeAdd, modeAdd = _config$modeAdd === void 0 ? false : _config$modeAdd, _config$modeEdit = config.modeEdit, modeEdit = _config$modeEdit === void 0 ? false : _config$modeEdit, _config$modeDelete = config.modeDelete, modeDelete = _config$modeDelete === void 0 ? false : _config$modeDelete, _config$modeGroup = config.modeGroup, modeGroup = _config$modeGroup === void 0 ? false : _config$modeGroup, _config$alwaysInEditi = config.alwaysInEdition, alwaysInEdition = _config$alwaysInEditi === void 0 ? false : _config$alwaysInEditi, _config$dynamicHeight = config.dynamicHeight, dynamicHeight = _config$dynamicHeight === void 0 ? true : _config$dynamicHeight, _config$wrapHeaderTex = config.wrapHeaderText, wrapHeaderText = _config$wrapHeaderTex === void 0 ? false : _config$wrapHeaderTex, _config$rowHeight = config.rowHeight, rowHeight = _config$rowHeight === void 0 ? 32 : _config$rowHeight, headerHeight = config.headerHeight, _config$fixedColumns = config.fixedColumns, fixedColumns = _config$fixedColumns === void 0 ? 0 : _config$fixedColumns, onCustomAdd = config.onCustomAdd, _config$addOneByOne = config.addOneByOne, addOneByOne = _config$addOneByOne === void 0 ? false : _config$addOneByOne, _config$hasSearchbar = config.hasSearchbar, hasSearchbar = _config$hasSearchbar === void 0 ? true : _config$hasSearchbar, _config$groupKey = config.groupKey, groupKey = _config$groupKey === void 0 ? 'id' : _config$groupKey, _config$collapsedGrou = config.collapsedGroup, collapsedGroup = _config$collapsedGrou === void 0 ? false : _config$collapsedGrou, _config$hideToolbar = config.hideToolbar, hideToolbar = _config$hideToolbar === void 0 ? false : _config$hideToolbar, _config$hideCheckbox = config.hideCheckbox, hideCheckbox = _config$hideCheckbox === void 0 ? false : _config$hideCheckbox, _config$defaultOrder = config.defaultOrder, defaultOrder = _config$defaultOrder === void 0 ? '' : _config$defaultOrder, _config$defaultOrderD = config.defaultOrderDirection, defaultOrderDirection = _config$defaultOrderD === void 0 ? $6QL76.SORTABLE_DIRECTIONS.ASC : _config$defaultOrderD, addRowLabel = config.addRowLabel, onCustomOrderChange = config.onCustomOrderChange;
224
+ var _config$insertPositio = config.insertPosition, insertPosition = _config$insertPositio === void 0 ? $6QL76.INSERT_POSITION.TOP : _config$insertPositio, columnsRaw = config.columns, _config$hasFooter = config.hasFooter, hasFooter = _config$hasFooter === void 0 ? false : _config$hasFooter, _config$hasHeader = config.hasHeader, hasHeader = _config$hasHeader === void 0 ? true : _config$hasHeader, _config$selectableRow = config.selectableRow, selectableRow = _config$selectableRow === void 0 ? false : _config$selectableRow, _config$selectableRow2 = config.selectableRowKey, selectableRowKey = _config$selectableRow2 === void 0 ? 'id' : _config$selectableRow2, _config$selectableOnl = config.selectableOnlyOneRow, selectableOnlyOneRow = _config$selectableOnl === void 0 ? false : _config$selectableOnl, customSelectionHeader = config.customSelectionHeader, _config$minCellWidth = config.minCellWidth, minCellWidth = _config$minCellWidth === void 0 ? 100 : _config$minCellWidth, _config$selectableBar = config.selectableBarInfo, selectableBarInfo = _config$selectableBar === void 0 ? false : _config$selectableBar, _config$modeAdd = config.modeAdd, modeAdd = _config$modeAdd === void 0 ? false : _config$modeAdd, _config$modeEdit = config.modeEdit, modeEdit = _config$modeEdit === void 0 ? false : _config$modeEdit, _config$modeDelete = config.modeDelete, modeDelete = _config$modeDelete === void 0 ? false : _config$modeDelete, _config$modeGroup = config.modeGroup, modeGroup = _config$modeGroup === void 0 ? false : _config$modeGroup, _config$alwaysInEditi = config.alwaysInEdition, alwaysInEdition = _config$alwaysInEditi === void 0 ? false : _config$alwaysInEditi, _config$dynamicHeight = config.dynamicHeight, dynamicHeight = _config$dynamicHeight === void 0 ? true : _config$dynamicHeight, _config$wrapHeaderTex = config.wrapHeaderText, wrapHeaderText = _config$wrapHeaderTex === void 0 ? false : _config$wrapHeaderTex, _config$rowHeight = config.rowHeight, rowHeight = _config$rowHeight === void 0 ? 32 : _config$rowHeight, headerHeight = config.headerHeight, _config$fixedColumns = config.fixedColumns, fixedColumns = _config$fixedColumns === void 0 ? 0 : _config$fixedColumns, onCustomAdd = config.onCustomAdd, _config$addOneByOne = config.addOneByOne, addOneByOne = _config$addOneByOne === void 0 ? false : _config$addOneByOne, _config$hasSearchbar = config.hasSearchbar, hasSearchbar = _config$hasSearchbar === void 0 ? true : _config$hasSearchbar, _config$groupKey = config.groupKey, groupKey = _config$groupKey === void 0 ? 'id' : _config$groupKey, _config$collapsedGrou = config.collapsedGroup, collapsedGroup = _config$collapsedGrou === void 0 ? false : _config$collapsedGrou, _config$hideToolbar = config.hideToolbar, hideToolbar = _config$hideToolbar === void 0 ? false : _config$hideToolbar, _config$hideCheckbox = config.hideCheckbox, hideCheckbox = _config$hideCheckbox === void 0 ? false : _config$hideCheckbox, _config$defaultOrder = config.defaultOrder, defaultOrder = _config$defaultOrder === void 0 ? '' : _config$defaultOrder, _config$defaultOrderD = config.defaultOrderDirection, defaultOrderDirection = _config$defaultOrderD === void 0 ? $6QL76.SORTABLE_DIRECTIONS.ASC : _config$defaultOrderD, addRowLabel = config.addRowLabel, onCustomOrderChange = config.onCustomOrderChange, _config$footerProps = config.footerProps, footerProps = _config$footerProps === void 0 ? {
225
+ } : _config$footerProps;
220
226
  var cache = new $cMI0G$reactvirtualized.CellMeasurerCache({
221
227
  fixedWidth: true,
222
228
  defaultHeight: rowHeight,
@@ -260,6 +266,7 @@ var $1eb7cba72eb8d5c7$var$VirtualTable = /*#__PURE__*/ $1eb7cba72eb8d5c7$var$_re
260
266
  return display !== false;
261
267
  })
262
268
  }), handleCellBlur = _useNavigation.handleCellBlur, handleCellFocus = _useNavigation.handleCellFocus, currentCell = _useNavigation.currentCell, setCurrentCell = _useNavigation.setCurrentCell;
269
+ if (apiRef !== null && apiRef !== void 0 && apiRef.current) apiRef.current.setCurrentCell = setCurrentCell;
263
270
  var columns = (0, $1eb7cba72eb8d5c7$var$_react.useMemo)(function() {
264
271
  var filteredColumns = _columns.filter(function(_ref3) {
265
272
  var display = _ref3.display;
@@ -537,7 +544,7 @@ var $1eb7cba72eb8d5c7$var$VirtualTable = /*#__PURE__*/ $1eb7cba72eb8d5c7$var$_re
537
544
  ref: addLineRef,
538
545
  onAdd: handleAddClick,
539
546
  label: addRowLabel
540
- }), hasFooter && /*#__PURE__*/ $1eb7cba72eb8d5c7$var$_react["default"].createElement($1eb7cba72eb8d5c7$var$_Footer["default"], {
547
+ }), hasFooter && /*#__PURE__*/ $1eb7cba72eb8d5c7$var$_react["default"].createElement($1eb7cba72eb8d5c7$var$_Footer["default"], (0, $1eb7cba72eb8d5c7$var$_extends2["default"])({
541
548
  ref: refFooterGrid,
542
549
  domRef: refDomFooter,
543
550
  modeEdit: modeEdit,
@@ -546,7 +553,7 @@ var $1eb7cba72eb8d5c7$var$VirtualTable = /*#__PURE__*/ $1eb7cba72eb8d5c7$var$_re
546
553
  rowHeight: cache.rowHeight,
547
554
  scrollLeft: scrollLeft,
548
555
  width: width
549
- }), customFooter && /*#__PURE__*/ $1eb7cba72eb8d5c7$var$_react["default"].cloneElement(customFooter, {
556
+ }, footerProps)), customFooter && /*#__PURE__*/ $1eb7cba72eb8d5c7$var$_react["default"].cloneElement(customFooter, {
550
557
  ref: customFooterRef,
551
558
  scrollLeft: scrollLeft
552
559
  }))));
@@ -577,7 +584,8 @@ $1eb7cba72eb8d5c7$var$VirtualTable.propTypes = {
577
584
  tableKeyName: $1eb7cba72eb8d5c7$var$_propTypes["default"].string.isRequired,
578
585
  customHeader: $1eb7cba72eb8d5c7$var$_propTypes["default"].node,
579
586
  customFooter: $1eb7cba72eb8d5c7$var$_propTypes["default"].node,
580
- onCustomScroll: $1eb7cba72eb8d5c7$var$_propTypes["default"].func
587
+ onCustomScroll: $1eb7cba72eb8d5c7$var$_propTypes["default"].func,
588
+ setVTState: (0, $1eb7cba72eb8d5c7$var$_deprecatedPropType["default"])($1eb7cba72eb8d5c7$var$_propTypes["default"].func, 'Use `apiRef` instead. See more https://myunisoft.github.io/design-system/docs/virtual-table/api#available-data-and-methods.')
581
589
  };
582
590
  $1eb7cba72eb8d5c7$var$VirtualTable.defaultProps = {
583
591
  heightTable: '400px',
@@ -5789,35 +5797,35 @@ var $a15d843a945a6bc5$var$_classnames = $cMI0G$babelruntimehelpersinteropRequire
5789
5797
 
5790
5798
  var $a15d843a945a6bc5$var$_propTypes = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$proptypes);
5791
5799
 
5800
+ var $a15d843a945a6bc5$var$_ClipLoader = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$reactspinnersClipLoader);
5792
5801
 
5793
5802
 
5794
5803
  var $a15d843a945a6bc5$var$_styles2 = $cMI0G$babelruntimehelpersinteropRequireDefault((parcelRequire("hcO11")));
5795
5804
  var $a15d843a945a6bc5$var$Loader = function Loader(_ref) {
5796
- var className = _ref.className, sizeUnit = _ref.sizeUnit, size = _ref.size, color = _ref.color, inline = _ref.inline;
5805
+ var className = _ref.className, size = _ref.size, color = _ref.color, inline = _ref.inline;
5797
5806
  var _useTheme = (0, $cMI0G$muimaterialstyles.useTheme)(), primary = _useTheme.palette.primary;
5798
5807
  var styles = (0, $a15d843a945a6bc5$var$_styles2["default"])();
5799
- return(/*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement($a15d843a945a6bc5$var$_react["default"].Fragment, null, inline ? /*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement($a15d843a945a6bc5$var$_react["default"].Fragment, null, "\xA0 \xA0", /*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement($cMI0G$reactspinners.ClipLoader, {
5800
- sizeUnit: sizeUnit,
5808
+ return(/*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement($a15d843a945a6bc5$var$_react["default"].Fragment, null, inline ? /*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement($a15d843a945a6bc5$var$_react["default"].Fragment, null, "\xA0 \xA0", /*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement($a15d843a945a6bc5$var$_ClipLoader["default"], {
5801
5809
  size: size,
5802
5810
  color: color || primary.main
5803
5811
  })) : /*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement("div", {
5804
5812
  className: (0, $a15d843a945a6bc5$var$_classnames["default"])(styles.container, className)
5805
- }, /*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement($cMI0G$reactspinners.ClipLoader, {
5806
- sizeUnit: sizeUnit,
5813
+ }, /*#__PURE__*/ $a15d843a945a6bc5$var$_react["default"].createElement($a15d843a945a6bc5$var$_ClipLoader["default"], {
5807
5814
  size: size,
5808
5815
  color: color || primary.main
5809
5816
  }))));
5810
5817
  };
5811
5818
  $a15d843a945a6bc5$var$Loader.propTypes = {
5812
5819
  className: $a15d843a945a6bc5$var$_propTypes["default"].string,
5813
- sizeUnit: $a15d843a945a6bc5$var$_propTypes["default"].string,
5814
- size: $a15d843a945a6bc5$var$_propTypes["default"].number,
5820
+ size: $a15d843a945a6bc5$var$_propTypes["default"].oneOfType([
5821
+ $a15d843a945a6bc5$var$_propTypes["default"].string,
5822
+ $a15d843a945a6bc5$var$_propTypes["default"].number
5823
+ ]),
5815
5824
  color: $a15d843a945a6bc5$var$_propTypes["default"].string,
5816
5825
  inline: $a15d843a945a6bc5$var$_propTypes["default"].bool
5817
5826
  };
5818
5827
  $a15d843a945a6bc5$var$Loader.defaultProps = {
5819
5828
  className: '',
5820
- sizeUnit: 'px',
5821
5829
  size: 70,
5822
5830
  color: undefined,
5823
5831
  inline: false
@@ -5960,8 +5968,19 @@ var $55bf5af748107eff$var$downloadFile = function downloadFile(data, filename) {
5960
5968
  document.body.removeChild(a);
5961
5969
  }, 100);
5962
5970
  };
5963
- module.exports.downloadFile = $55bf5af748107eff$var$downloadFile;
5971
+ /**
5972
+ *
5973
+ * @param {Row[]} rows
5974
+ * @param {Column[]} columns
5975
+ * @param {'csv'|'xls'|'pdf'|'print'} format
5976
+ * @param {string} fileName
5977
+ * @param {object} tableRefs - Mandatory for `pdf` and `print`
5978
+ * @param {object} options
5979
+ * @param {','|';'} option.delimiter - The CSV export delimiter
5980
+ */ module.exports.downloadFile = $55bf5af748107eff$var$downloadFile;
5964
5981
  var $55bf5af748107eff$var$exportData = function exportData(rows, columns, format, fileName, tableRefs) {
5982
+ var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {
5983
+ };
5965
5984
  var _columns = columns.filter($6QL76.isExportable);
5966
5985
  var _rows = (0, $f79Wl.parseDataRows)(rows, _columns);
5967
5986
  if (format === 'csv') {
@@ -5971,7 +5990,7 @@ var $55bf5af748107eff$var$exportData = function exportData(rows, columns, format
5971
5990
  return header;
5972
5991
  })
5973
5992
  ].concat((0, $55bf5af748107eff$var$_toConsumableArray2["default"])(_rows));
5974
- (0, $f79Wl.exportToCSV)(csvData, fileName);
5993
+ (0, $f79Wl.exportToCSV)(csvData, fileName, options);
5975
5994
  }
5976
5995
  if (format === 'xls') {
5977
5996
  var xlsData = {
@@ -6125,14 +6144,18 @@ var $b00f3859b5d2ce65$var$parseDataRows = function parseDataRows(rows, columns)
6125
6144
  };
6126
6145
  module.exports.parseDataRows = $b00f3859b5d2ce65$var$parseDataRows;
6127
6146
  var $b00f3859b5d2ce65$var$exportToCSV = function exportToCSV(csvData, fileName) {
6147
+ var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
6148
+ };
6149
+ var _options$delimiter = options.delimiter, delimiter = _options$delimiter === void 0 ? ',' : _options$delimiter;
6128
6150
  var processRow = function processRow(row) {
6129
6151
  var finalVal = '';
6130
6152
  for(var j = 0; j < row.length; j++){
6131
6153
  var innerValue = (0, $b00f3859b5d2ce65$var$_isNil2["default"])(row[j]) ? '' : row[j].toString();
6132
6154
  if (row[j] instanceof Date) innerValue = row[j].toLocaleString();
6133
6155
  var result = innerValue.replace(/"/g, '""');
6134
- if (result.search(/("|,|\n|\w)/g) >= 0) result = '"' + result + '"';
6135
- if (j > 0) finalVal += ',';
6156
+ var reg = new RegExp("(\"|".concat(delimiter, "|\n|w)"), 'g');
6157
+ if (result.search(reg) >= 0) result = '"' + result + '"';
6158
+ if (j > 0) finalVal += delimiter;
6136
6159
  finalVal += result;
6137
6160
  }
6138
6161
  return finalVal + '\n';
@@ -6140,6 +6163,11 @@ var $b00f3859b5d2ce65$var$exportToCSV = function exportToCSV(csvData, fileName)
6140
6163
  var csvFile = '';
6141
6164
  for(var i = 0; i < csvData.length; i++)csvFile += processRow(csvData[i]);
6142
6165
  var data = new Blob([
6166
+ new Uint8Array([
6167
+ 239,
6168
+ 187,
6169
+ 191
6170
+ ]),
6143
6171
  csvFile
6144
6172
  ], {
6145
6173
  type: $b00f3859b5d2ce65$var$CSV_FILE.type,
@@ -11471,9 +11499,10 @@ var $018fc3a67cfd0245$var$ToolbarButtons = function ToolbarButtons(_ref) {
11471
11499
  setOpenExport(true);
11472
11500
  }
11473
11501
  }, $018fc3a67cfd0245$var$_I18n["default"].t('common.export')), actionsButton.map(function(_ref2, idx) {
11474
- var label = _ref2.label, _onClick2 = _ref2.onClick;
11502
+ var label = _ref2.label, _onClick2 = _ref2.onClick, _ref2$disabled = _ref2.disabled, disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
11475
11503
  return(/*#__PURE__*/ $018fc3a67cfd0245$var$_react["default"].createElement($cMI0G$muimaterial.MenuItem, {
11476
11504
  key: "".concat(label, "_").concat(idx),
11505
+ disabled: disabled,
11477
11506
  onClick: function onClick() {
11478
11507
  _onClick2(displayableRows);
11479
11508
  handleClose();
@@ -12214,7 +12243,7 @@ var $4bffbc6bf8399d93$var$useExport = function useExport() {
12214
12243
  var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
12215
12244
  };
12216
12245
  var onSuccess = config.onSuccess;
12217
- var _useConfig = (0, $iyFQa.useConfig)(), _useConfig$config = _useConfig.config, columns = _useConfig$config.columns, _useConfig$config$exp = _useConfig$config.exportFilename, exportFilename = _useConfig$config$exp === void 0 ? 'export' : _useConfig$config$exp, rows = _useConfig.displayableRows, refDomBody = _useConfig.refDomBody, refDomFooter = _useConfig.refDomFooter, refDomHeader = _useConfig.refDomHeader;
12246
+ var _useConfig = (0, $iyFQa.useConfig)(), _useConfig$config = _useConfig.config, columns = _useConfig$config.columns, _useConfig$config$exp = _useConfig$config.exportFilename, exportFilename = _useConfig$config$exp === void 0 ? 'export' : _useConfig$config$exp, exportOptions = _useConfig$config.exportOptions, rows = _useConfig.displayableRows, refDomBody = _useConfig.refDomBody, refDomFooter = _useConfig.refDomFooter, refDomHeader = _useConfig.refDomHeader;
12218
12247
  var _useState = (0, $cMI0G$react.useState)(false), _useState2 = (0, $4bffbc6bf8399d93$var$_slicedToArray2["default"])(_useState, 2), loading = _useState2[0], setLoading = _useState2[1];
12219
12248
  var _useState3 = (0, $cMI0G$react.useState)(false), _useState4 = (0, $4bffbc6bf8399d93$var$_slicedToArray2["default"])(_useState3, 2), error = _useState4[0], setError = _useState4[1];
12220
12249
  /**
@@ -12232,7 +12261,7 @@ var $4bffbc6bf8399d93$var$useExport = function useExport() {
12232
12261
  refDomBody: refDomBody,
12233
12262
  refDomFooter: refDomFooter,
12234
12263
  refDomHeader: refDomHeader
12235
- });
12264
+ }, exportOptions);
12236
12265
  case 4:
12237
12266
  if (onSuccess) onSuccess();
12238
12267
  _context.next = 11;
@@ -13202,6 +13231,12 @@ Object.defineProperty(module.exports, "VirtualTableProvider", {
13202
13231
  }
13203
13232
  });
13204
13233
  module.exports["default"] = void 0;
13234
+ Object.defineProperty(module.exports, "exportData", {
13235
+ enumerable: true,
13236
+ get: function get() {
13237
+ return $7mqLY.exportData;
13238
+ }
13239
+ });
13205
13240
  Object.defineProperty(module.exports, "useDataManager", {
13206
13241
  enumerable: true,
13207
13242
  get: function get() {
@@ -13218,6 +13253,8 @@ var $349a00930b14e029$var$_VirtualTableProvider = $cMI0G$babelruntimehelpersinte
13218
13253
  var $iyFQa = parcelRequire("iyFQa");
13219
13254
 
13220
13255
  var $03WMM = parcelRequire("03WMM");
13256
+
13257
+ var $7mqLY = parcelRequire("7mqLY");
13221
13258
  var $349a00930b14e029$var$_default = $349a00930b14e029$var$_VirtualTable["default"];
13222
13259
  module.exports["default"] = $349a00930b14e029$var$_default;
13223
13260