@myunisoft/design-system 0.16.1 → 0.16.2-patch.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/CHANGELOG.md +144 -144
- package/dist/index.js +70 -47
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
## v0.16.1 (15/06/2022)
|
|
3
|
-
#### Bug Fixes
|
|
4
|
-
- [MYUN-21986](https://myunisoft.atlassian.net/browse/MYUN-21986) [VirtualTable] Fix `DateCell` cannot be cleared
|
|
5
|
-
- [MYUN-20845](https://myunisoft.atlassian.net/browse/MYUN-20845) [VirtualTable] Fix typo in `SearchBar` placeholder
|
|
6
|
-
|
|
7
|
-
## v0.16.0 (02/06/2022)
|
|
8
|
-
#### Enhancements
|
|
9
|
-
- [MYUN-21869](https://myunisoft.atlassian.net/browse/MYUN-21869) Add `onCustomScroll` prop.
|
|
10
|
-
|
|
11
|
-
## v0.15.3 (14/04/2022)
|
|
12
|
-
#### Bug Fixes
|
|
13
|
-
- [MYUN-20875](https://myunisoft.atlassian.net/browse/MYUN-20875) Apply actions to visible rows
|
|
14
|
-
- [MYUN-20635](https://myunisoft.atlassian.net/browse/MYUN-20635) Prevent "Invalid Date" warning in browser
|
|
15
|
-
|
|
16
|
-
## v0.15.2 (31/03/2022)
|
|
17
|
-
#### Enhancements
|
|
18
|
-
- [MYUN-20126](https://myunisoft.atlassian.net/browse/MYUN-20126) Clean old code
|
|
19
|
-
#### Bug Fixes
|
|
20
|
-
- [MYUN-12876](https://myunisoft.atlassian.net/browse/MYUN-12876) Error tooltip
|
|
21
|
-
|
|
22
|
-
## v0.13.0 (16/02/2022)
|
|
23
|
-
#### Enhancements
|
|
24
|
-
- [MYUN-18987](https://myunisoft.atlassian.net/browse/MYUN-18987) Add `renderExport` support for all column types.
|
|
25
|
-
- [MYUN-19425](https://myunisoft.atlassian.net/browse/MYUN-19425) Improve filtering of number/amount columns.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
## v0.12.1 (11/02/2022)
|
|
29
|
-
#### Bug Fixes
|
|
30
|
-
- [MYUN-19389](https://myunisoft.atlassian.net/browse/MYUN-19389) Fix `isEdit` callback value.
|
|
31
|
-
---
|
|
32
|
-
## v0.12.0 (04/02/2022)
|
|
33
|
-
|
|
34
|
-
#### Enhancements
|
|
35
|
-
- [MYUN-19149](https://myunisoft.atlassian.net/browse/MYUN-19149) Add `handleCancel` callback property.
|
|
36
|
-
- [MYUN-19098](https://myunisoft.atlassian.net/browse/MYUN-19098) Pass row data to `sortComparator` function.
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
## v0.11.0 (31/01/2022)
|
|
40
|
-
#### Enhancements
|
|
41
|
-
- [MYUN-18606](https://myunisoft.atlassian.net/browse/MYUN-18606) Improve selection strategy using apiRef.
|
|
42
|
-
- [MYUN-17800](https://myunisoft.atlassian.net/browse/MYUN-17800) Add print and pdf export.
|
|
43
|
-
#### Bug Fixes
|
|
44
|
-
- [MYUN-18890](https://myunisoft.atlassian.net/browse/MYUN-18890) Fix filtering with "0" value.
|
|
45
|
-
---
|
|
46
|
-
## v0.10.4 (25/01/2022)
|
|
47
|
-
|
|
48
|
-
#### Enhancements
|
|
49
|
-
- [MYUN-18490](https://myunisoft.atlassian.net/browse/MYUN-18490) Add config option to ContextMenu and improve calculation timing.
|
|
50
|
-
- [MYUN-18618](https://myunisoft.atlassian.net/browse/MYUN-18618) Add `enableColumnEdition` config property.
|
|
51
|
-
#### Bug Fixes
|
|
52
|
-
- [MYUN-18781](https://myunisoft.atlassian.net/browse/MYUN-18781) Fix AmountCell update from data changes.
|
|
53
|
-
- [MYUN-18474](https://myunisoft.atlassian.net/browse/MYUN-18474) Fix useColumn hook to get added columns.
|
|
54
|
-
- [MYUN-16618](https://myunisoft.atlassian.net/browse/MYUN-16618) Return cell datas in AttachmentCell.
|
|
55
|
-
---
|
|
56
|
-
## v0.10.3 (14/01/2022)
|
|
57
|
-
#### Enhancements
|
|
58
|
-
- [MYUN-18568](https://myunisoft.atlassian.net/browse/MYUN-18568) Add `addRowLabel` config property to override the "Add a new line +" label.
|
|
59
|
-
- [MYUN-18567](https://myunisoft.atlassian.net/browse/MYUN-18567) Add `defaultOrder` and `defaultOrderDirection` config properties.
|
|
60
|
-
---
|
|
61
|
-
## v0.10.2 (12/01/2022)
|
|
62
|
-
#### Bug Fixes
|
|
63
|
-
- [MYUN-18174](https://myunisoft.atlassian.net/browse/MYUN-18174) Fix column witdh in ColumnsSetting component
|
|
64
|
-
- [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix row deleting function
|
|
65
|
-
- [MYUN-18426](https://myunisoft.atlassian.net/browse/MYUN-18426) Fix filter options for column with typeCell as select.
|
|
66
|
-
---
|
|
67
|
-
## v0.10.1 (07/01/2022)
|
|
68
|
-
#### Bug Fixes
|
|
69
|
-
- Fix build process
|
|
70
|
-
---
|
|
71
|
-
## v0.10.0 (07/01/2022)
|
|
72
|
-
#### Enhancements
|
|
73
|
-
- [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.
|
|
74
|
-
- [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.
|
|
75
|
-
|
|
76
|
-
#### Bug Fixes
|
|
77
|
-
- [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix amountCell refresh when a row is deleted.
|
|
78
|
-
- [MYUN-18127](https://myunisoft.atlassian.net/browse/MYUN-18127) Fix all rows selection logic to prevent crash with high number of rows.
|
|
79
|
-
---
|
|
80
|
-
## v0.9.6
|
|
81
|
-
|
|
82
|
-
#### Bug Fixes
|
|
83
|
-
- [MYUN-17573](https://myunisoft.atlassian.net/browse/MYUN-17573) Fix scroll synchronisation delay
|
|
84
|
-
- [MYUN-18061](https://myunisoft.atlassian.net/browse/MYUN-18061) Fix `totalrows` data attribute
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
## v0.9.5 (23/12/2021)
|
|
88
|
-
|
|
89
|
-
#### Enhancements
|
|
90
|
-
|
|
91
|
-
- [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
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
## v0.9.4 (16/12/2021)
|
|
95
|
-
|
|
96
|
-
#### Enhancements
|
|
97
|
-
|
|
98
|
-
- [MYUN-17509](https://myunisoft.atlassian.net/browse/MYUN-17509) Add disabled, className and style property to `select` typeCell
|
|
99
|
-
|
|
100
|
-
#### Bug Fixes
|
|
101
|
-
|
|
102
|
-
- [MYUN-17850](https://myunisoft.atlassian.net/browse/MYUN-17850) Fix export of empty wallet cell
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## v0.9.3 (13/12/2021)
|
|
107
|
-
|
|
108
|
-
#### Bug Fixes
|
|
109
|
-
|
|
110
|
-
- [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of switch badge cell
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
## v0.9.2 (08/12/2021)
|
|
115
|
-
|
|
116
|
-
#### Bug Fixes
|
|
117
|
-
|
|
118
|
-
- [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of empty badge cell
|
|
119
|
-
- [MYUN-17665](https://myunisoft.atlassian.net/browse/MYUN-17665) Activate save button on edit
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## v0.9.1 (06/12/2021)
|
|
124
|
-
|
|
125
|
-
#### Bug Fixes:
|
|
126
|
-
|
|
127
|
-
- [MYUN-17505](https://myunisoft.atlassian.net/browse/MYUN-17505) Add `rowIndex` property to RenderComponent callback
|
|
128
|
-
- [MYUN-17584](https://myunisoft.atlassian.net/browse/MYUN-17584) Fix `typeCell` in columnsSettings and doc
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
## v0.9.0 (03/12/2021)
|
|
133
|
-
|
|
134
|
-
#### Enhancements:
|
|
135
|
-
|
|
136
|
-
- [MYUN-17510](https://myunisoft.atlassian.net/browse/MYUN-17510) Handle custom sortable
|
|
137
|
-
|
|
138
|
-
---
|
|
139
|
-
|
|
140
|
-
## v0.8.4 (02/12/2021)
|
|
141
|
-
|
|
142
|
-
#### Bug Fixes:
|
|
143
|
-
|
|
144
|
-
- [MYUN-16553](https://myunisoft.atlassian.net/browse/MYUN-16553) Editable AmountCell are not clickable when empty
|
|
1
|
+
# Changelog
|
|
2
|
+
## v0.16.1 (15/06/2022)
|
|
3
|
+
#### Bug Fixes
|
|
4
|
+
- [MYUN-21986](https://myunisoft.atlassian.net/browse/MYUN-21986) [VirtualTable] Fix `DateCell` cannot be cleared
|
|
5
|
+
- [MYUN-20845](https://myunisoft.atlassian.net/browse/MYUN-20845) [VirtualTable] Fix typo in `SearchBar` placeholder
|
|
6
|
+
|
|
7
|
+
## v0.16.0 (02/06/2022)
|
|
8
|
+
#### Enhancements
|
|
9
|
+
- [MYUN-21869](https://myunisoft.atlassian.net/browse/MYUN-21869) Add `onCustomScroll` prop.
|
|
10
|
+
|
|
11
|
+
## v0.15.3 (14/04/2022)
|
|
12
|
+
#### Bug Fixes
|
|
13
|
+
- [MYUN-20875](https://myunisoft.atlassian.net/browse/MYUN-20875) Apply actions to visible rows
|
|
14
|
+
- [MYUN-20635](https://myunisoft.atlassian.net/browse/MYUN-20635) Prevent "Invalid Date" warning in browser
|
|
15
|
+
|
|
16
|
+
## v0.15.2 (31/03/2022)
|
|
17
|
+
#### Enhancements
|
|
18
|
+
- [MYUN-20126](https://myunisoft.atlassian.net/browse/MYUN-20126) Clean old code
|
|
19
|
+
#### Bug Fixes
|
|
20
|
+
- [MYUN-12876](https://myunisoft.atlassian.net/browse/MYUN-12876) Error tooltip
|
|
21
|
+
|
|
22
|
+
## v0.13.0 (16/02/2022)
|
|
23
|
+
#### Enhancements
|
|
24
|
+
- [MYUN-18987](https://myunisoft.atlassian.net/browse/MYUN-18987) Add `renderExport` support for all column types.
|
|
25
|
+
- [MYUN-19425](https://myunisoft.atlassian.net/browse/MYUN-19425) Improve filtering of number/amount columns.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
## v0.12.1 (11/02/2022)
|
|
29
|
+
#### Bug Fixes
|
|
30
|
+
- [MYUN-19389](https://myunisoft.atlassian.net/browse/MYUN-19389) Fix `isEdit` callback value.
|
|
31
|
+
---
|
|
32
|
+
## v0.12.0 (04/02/2022)
|
|
33
|
+
|
|
34
|
+
#### Enhancements
|
|
35
|
+
- [MYUN-19149](https://myunisoft.atlassian.net/browse/MYUN-19149) Add `handleCancel` callback property.
|
|
36
|
+
- [MYUN-19098](https://myunisoft.atlassian.net/browse/MYUN-19098) Pass row data to `sortComparator` function.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
## v0.11.0 (31/01/2022)
|
|
40
|
+
#### Enhancements
|
|
41
|
+
- [MYUN-18606](https://myunisoft.atlassian.net/browse/MYUN-18606) Improve selection strategy using apiRef.
|
|
42
|
+
- [MYUN-17800](https://myunisoft.atlassian.net/browse/MYUN-17800) Add print and pdf export.
|
|
43
|
+
#### Bug Fixes
|
|
44
|
+
- [MYUN-18890](https://myunisoft.atlassian.net/browse/MYUN-18890) Fix filtering with "0" value.
|
|
45
|
+
---
|
|
46
|
+
## v0.10.4 (25/01/2022)
|
|
47
|
+
|
|
48
|
+
#### Enhancements
|
|
49
|
+
- [MYUN-18490](https://myunisoft.atlassian.net/browse/MYUN-18490) Add config option to ContextMenu and improve calculation timing.
|
|
50
|
+
- [MYUN-18618](https://myunisoft.atlassian.net/browse/MYUN-18618) Add `enableColumnEdition` config property.
|
|
51
|
+
#### Bug Fixes
|
|
52
|
+
- [MYUN-18781](https://myunisoft.atlassian.net/browse/MYUN-18781) Fix AmountCell update from data changes.
|
|
53
|
+
- [MYUN-18474](https://myunisoft.atlassian.net/browse/MYUN-18474) Fix useColumn hook to get added columns.
|
|
54
|
+
- [MYUN-16618](https://myunisoft.atlassian.net/browse/MYUN-16618) Return cell datas in AttachmentCell.
|
|
55
|
+
---
|
|
56
|
+
## v0.10.3 (14/01/2022)
|
|
57
|
+
#### Enhancements
|
|
58
|
+
- [MYUN-18568](https://myunisoft.atlassian.net/browse/MYUN-18568) Add `addRowLabel` config property to override the "Add a new line +" label.
|
|
59
|
+
- [MYUN-18567](https://myunisoft.atlassian.net/browse/MYUN-18567) Add `defaultOrder` and `defaultOrderDirection` config properties.
|
|
60
|
+
---
|
|
61
|
+
## v0.10.2 (12/01/2022)
|
|
62
|
+
#### Bug Fixes
|
|
63
|
+
- [MYUN-18174](https://myunisoft.atlassian.net/browse/MYUN-18174) Fix column witdh in ColumnsSetting component
|
|
64
|
+
- [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix row deleting function
|
|
65
|
+
- [MYUN-18426](https://myunisoft.atlassian.net/browse/MYUN-18426) Fix filter options for column with typeCell as select.
|
|
66
|
+
---
|
|
67
|
+
## v0.10.1 (07/01/2022)
|
|
68
|
+
#### Bug Fixes
|
|
69
|
+
- Fix build process
|
|
70
|
+
---
|
|
71
|
+
## v0.10.0 (07/01/2022)
|
|
72
|
+
#### Enhancements
|
|
73
|
+
- [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.
|
|
74
|
+
- [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.
|
|
75
|
+
|
|
76
|
+
#### Bug Fixes
|
|
77
|
+
- [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix amountCell refresh when a row is deleted.
|
|
78
|
+
- [MYUN-18127](https://myunisoft.atlassian.net/browse/MYUN-18127) Fix all rows selection logic to prevent crash with high number of rows.
|
|
79
|
+
---
|
|
80
|
+
## v0.9.6
|
|
81
|
+
|
|
82
|
+
#### Bug Fixes
|
|
83
|
+
- [MYUN-17573](https://myunisoft.atlassian.net/browse/MYUN-17573) Fix scroll synchronisation delay
|
|
84
|
+
- [MYUN-18061](https://myunisoft.atlassian.net/browse/MYUN-18061) Fix `totalrows` data attribute
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
## v0.9.5 (23/12/2021)
|
|
88
|
+
|
|
89
|
+
#### Enhancements
|
|
90
|
+
|
|
91
|
+
- [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
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
## v0.9.4 (16/12/2021)
|
|
95
|
+
|
|
96
|
+
#### Enhancements
|
|
97
|
+
|
|
98
|
+
- [MYUN-17509](https://myunisoft.atlassian.net/browse/MYUN-17509) Add disabled, className and style property to `select` typeCell
|
|
99
|
+
|
|
100
|
+
#### Bug Fixes
|
|
101
|
+
|
|
102
|
+
- [MYUN-17850](https://myunisoft.atlassian.net/browse/MYUN-17850) Fix export of empty wallet cell
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## v0.9.3 (13/12/2021)
|
|
107
|
+
|
|
108
|
+
#### Bug Fixes
|
|
109
|
+
|
|
110
|
+
- [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of switch badge cell
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## v0.9.2 (08/12/2021)
|
|
115
|
+
|
|
116
|
+
#### Bug Fixes
|
|
117
|
+
|
|
118
|
+
- [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of empty badge cell
|
|
119
|
+
- [MYUN-17665](https://myunisoft.atlassian.net/browse/MYUN-17665) Activate save button on edit
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## v0.9.1 (06/12/2021)
|
|
124
|
+
|
|
125
|
+
#### Bug Fixes:
|
|
126
|
+
|
|
127
|
+
- [MYUN-17505](https://myunisoft.atlassian.net/browse/MYUN-17505) Add `rowIndex` property to RenderComponent callback
|
|
128
|
+
- [MYUN-17584](https://myunisoft.atlassian.net/browse/MYUN-17584) Fix `typeCell` in columnsSettings and doc
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## v0.9.0 (03/12/2021)
|
|
133
|
+
|
|
134
|
+
#### Enhancements:
|
|
135
|
+
|
|
136
|
+
- [MYUN-17510](https://myunisoft.atlassian.net/browse/MYUN-17510) Handle custom sortable
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## v0.8.4 (02/12/2021)
|
|
141
|
+
|
|
142
|
+
#### Bug Fixes:
|
|
143
|
+
|
|
144
|
+
- [MYUN-16553](https://myunisoft.atlassian.net/browse/MYUN-16553) Editable AmountCell are not clickable when empty
|
package/dist/index.js
CHANGED
|
@@ -1326,7 +1326,9 @@ var $4fcc252ae7131bb4$var$matchFilter = function matchFilter(columns, row) {
|
|
|
1326
1326
|
var specificFilters = (0, $kC0RD.matchFilterList)(row, filters, columns);
|
|
1327
1327
|
if (!specificFilters) return false;
|
|
1328
1328
|
if (term && term !== $cIGFz.TRIGGER_KEY) return columns.some(function(col) {
|
|
1329
|
-
|
|
1329
|
+
var value = (0, $4fcc252ae7131bb4$var$_get2["default"])(row, (col === null || col === void 0 ? void 0 : col.searchKey) || (col === null || col === void 0 ? void 0 : col.key));
|
|
1330
|
+
if (col !== null && col !== void 0 && col.searchValue) value = col.searchValue(row);
|
|
1331
|
+
return (0, $kC0RD.isMatching)(term, value, col.typeCell);
|
|
1330
1332
|
});
|
|
1331
1333
|
return true;
|
|
1332
1334
|
};
|
|
@@ -1605,6 +1607,7 @@ var $8b1678d4db45ece0$var$_classnames = $cMI0G$babelruntimehelpersinteropRequire
|
|
|
1605
1607
|
var $8b1678d4db45ece0$var$_upperFirst2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$lodashupperFirst);
|
|
1606
1608
|
|
|
1607
1609
|
|
|
1610
|
+
|
|
1608
1611
|
var $6QL76 = parcelRequire("6QL76");
|
|
1609
1612
|
|
|
1610
1613
|
var $lFnTI = parcelRequire("lFnTI");
|
|
@@ -1858,7 +1861,8 @@ var $8b1678d4db45ece0$var$BodyCell = function BodyCell(_ref) {
|
|
|
1858
1861
|
rowIndex: rowIndex,
|
|
1859
1862
|
column: columns[columnIndex],
|
|
1860
1863
|
vtContext: VTContext,
|
|
1861
|
-
isFocused: isFocused
|
|
1864
|
+
isFocused: isFocused,
|
|
1865
|
+
tooltipDetail: tooltipDetail
|
|
1862
1866
|
}, cellProps))));
|
|
1863
1867
|
};
|
|
1864
1868
|
var alignCell = (0, $7Q35O.defineCellAlign)(typeCell1, alignText);
|
|
@@ -1905,9 +1909,10 @@ var $8b1678d4db45ece0$var$BodyCell = function BodyCell(_ref) {
|
|
|
1905
1909
|
].includes(state)) return(/*#__PURE__*/ $8b1678d4db45ece0$var$_react["default"].createElement($8b1678d4db45ece0$var$_ErrorTooltip["default"], {
|
|
1906
1910
|
title: tooltipMessage
|
|
1907
1911
|
}, cell));
|
|
1908
|
-
if (tooltipDetail) return(/*#__PURE__*/ $8b1678d4db45ece0$var$_react["default"].createElement(Tooltip, {
|
|
1912
|
+
if (tooltipDetail && typeCell1 !== $03WMM.TYPE_CELL.SELECT) return(/*#__PURE__*/ $8b1678d4db45ece0$var$_react["default"].createElement($cMI0G$materialuicore.Tooltip, {
|
|
1909
1913
|
title: tooltipDetail,
|
|
1910
|
-
placement: "
|
|
1914
|
+
placement: "left",
|
|
1915
|
+
arrow: true
|
|
1911
1916
|
}, cell));
|
|
1912
1917
|
return cell;
|
|
1913
1918
|
}
|
|
@@ -2856,8 +2861,6 @@ var $eba202129f8907e6$var$_react = $eba202129f8907e6$var$_interopRequireWildcard
|
|
|
2856
2861
|
|
|
2857
2862
|
var $eba202129f8907e6$var$_classnames = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$classnames);
|
|
2858
2863
|
|
|
2859
|
-
var $eba202129f8907e6$var$_isNil2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$lodashisNil);
|
|
2860
|
-
|
|
2861
2864
|
var $eba202129f8907e6$var$_omit2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$lodashomit);
|
|
2862
2865
|
|
|
2863
2866
|
var $eba202129f8907e6$var$_styles = $cMI0G$babelruntimehelpersinteropRequireDefault((parcelRequire("jSr9B")));
|
|
@@ -2926,11 +2929,7 @@ var $eba202129f8907e6$var$AmountEditCell = /*#__PURE__*/ (0, $eba202129f8907e6$v
|
|
|
2926
2929
|
}, styles.disabled, isDisabled(data))),
|
|
2927
2930
|
onChange: handleChangeInput,
|
|
2928
2931
|
value: value
|
|
2929
|
-
}, (0, $eba202129f8907e6$var$_omit2["default"])(rest, [
|
|
2930
|
-
'keyId',
|
|
2931
|
-
'columnIndex',
|
|
2932
|
-
'vtContext'
|
|
2933
|
-
]))) : /*#__PURE__*/ $eba202129f8907e6$var$_react["default"].createElement("div", {
|
|
2932
|
+
}, (0, $eba202129f8907e6$var$_omit2["default"])(rest, $94ZmE.PROPS_EXCLUDED))) : /*#__PURE__*/ $eba202129f8907e6$var$_react["default"].createElement("div", {
|
|
2934
2933
|
className: styles.amountCell,
|
|
2935
2934
|
tabIndex: "0",
|
|
2936
2935
|
onFocus: function onFocus() {
|
|
@@ -2953,6 +2952,7 @@ parcelRequire.register("94ZmE", function(module, exports) {
|
|
|
2953
2952
|
Object.defineProperty(module.exports, "__esModule", {
|
|
2954
2953
|
value: true
|
|
2955
2954
|
});
|
|
2955
|
+
module.exports.PROPS_EXCLUDED = void 0;
|
|
2956
2956
|
module.exports.checkReadOnly = $69c4167b5f149e0e$var$checkReadOnly;
|
|
2957
2957
|
module.exports.setData = module.exports.getData = void 0;
|
|
2958
2958
|
|
|
@@ -2963,6 +2963,13 @@ var $69c4167b5f149e0e$var$_set2 = $cMI0G$babelruntimehelpersinteropRequireDefaul
|
|
|
2963
2963
|
var $74a2W = parcelRequire("74a2W");
|
|
2964
2964
|
|
|
2965
2965
|
var $6QL76 = parcelRequire("6QL76");
|
|
2966
|
+
var $69c4167b5f149e0e$var$PROPS_EXCLUDED = [
|
|
2967
|
+
'keyId',
|
|
2968
|
+
'columnIndex',
|
|
2969
|
+
'vtContext',
|
|
2970
|
+
'tooltipDetail'
|
|
2971
|
+
];
|
|
2972
|
+
module.exports.PROPS_EXCLUDED = $69c4167b5f149e0e$var$PROPS_EXCLUDED;
|
|
2966
2973
|
function $69c4167b5f149e0e$var$checkReadOnly(state, isSelectedRow, isEditable, rowType) {
|
|
2967
2974
|
return !((state === $74a2W.STATES.EDIT && isSelectedRow || state === $74a2W.STATES.ADD && rowType === $6QL76.ROW_TYPE.NEW || state === $74a2W.STATES.PERMANENT_EDIT) && isEditable);
|
|
2968
2975
|
}
|
|
@@ -3516,6 +3523,8 @@ var $7504108d87012b14$var$_react = $7504108d87012b14$var$_interopRequireWildcard
|
|
|
3516
3523
|
var $94ZmE = parcelRequire("94ZmE");
|
|
3517
3524
|
|
|
3518
3525
|
var $7504108d87012b14$var$_styles = $cMI0G$babelruntimehelpersinteropRequireDefault((parcelRequire("h7ILa")));
|
|
3526
|
+
|
|
3527
|
+
var $7504108d87012b14$var$_omit2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$lodashomit);
|
|
3519
3528
|
var $7504108d87012b14$var$_excluded = [
|
|
3520
3529
|
"data",
|
|
3521
3530
|
"dataKey",
|
|
@@ -3585,7 +3594,7 @@ var $7504108d87012b14$var$EditStringCell = /*#__PURE__*/ $7504108d87012b14$var$_
|
|
|
3585
3594
|
}, styles.disabled, isDisabled(data))),
|
|
3586
3595
|
onChange: handleInput,
|
|
3587
3596
|
value: value
|
|
3588
|
-
}, rest))));
|
|
3597
|
+
}, (0, $7504108d87012b14$var$_omit2["default"])(rest, $94ZmE.PROPS_EXCLUDED)))));
|
|
3589
3598
|
});
|
|
3590
3599
|
$7504108d87012b14$var$EditStringCell.propTypes = {
|
|
3591
3600
|
column: $7504108d87012b14$var$_propTypes["default"].object,
|
|
@@ -3803,11 +3812,7 @@ var $de10a1196e044a5a$var$EditCheckBoxCell = function EditCheckBoxCell(_ref) {
|
|
|
3803
3812
|
onChange: function onChange(e) {
|
|
3804
3813
|
changeInput(e.target.checked);
|
|
3805
3814
|
}
|
|
3806
|
-
}, (0, $de10a1196e044a5a$var$_omit2["default"])(rest,
|
|
3807
|
-
'keyId',
|
|
3808
|
-
'columnIndex',
|
|
3809
|
-
'vtContext'
|
|
3810
|
-
])))));
|
|
3815
|
+
}, (0, $de10a1196e044a5a$var$_omit2["default"])(rest, $94ZmE.PROPS_EXCLUDED)))));
|
|
3811
3816
|
};
|
|
3812
3817
|
$de10a1196e044a5a$var$EditCheckBoxCell.propTypes = {
|
|
3813
3818
|
data: $de10a1196e044a5a$var$_propTypes["default"].object.isRequired,
|
|
@@ -4056,6 +4061,7 @@ var $870cf6882e14e90a$var$_objectWithoutProperties2 = $cMI0G$babelruntimehelpers
|
|
|
4056
4061
|
|
|
4057
4062
|
var $870cf6882e14e90a$var$_omit2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$lodashomit);
|
|
4058
4063
|
|
|
4064
|
+
|
|
4059
4065
|
var $870cf6882e14e90a$var$_MenuItem = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$materialuicoreMenuItem);
|
|
4060
4066
|
|
|
4061
4067
|
var $870cf6882e14e90a$var$_Select = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$materialuicoreSelect);
|
|
@@ -4075,7 +4081,8 @@ var $870cf6882e14e90a$var$_excluded = [
|
|
|
4075
4081
|
"data",
|
|
4076
4082
|
"dataKey",
|
|
4077
4083
|
"column",
|
|
4078
|
-
"onChange"
|
|
4084
|
+
"onChange",
|
|
4085
|
+
"tooltipDetail"
|
|
4079
4086
|
];
|
|
4080
4087
|
function $870cf6882e14e90a$var$_getRequireWildcardCache(nodeInterop1) {
|
|
4081
4088
|
if (typeof WeakMap !== "function") return null;
|
|
@@ -4105,16 +4112,25 @@ function $870cf6882e14e90a$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
4105
4112
|
return newObj;
|
|
4106
4113
|
}
|
|
4107
4114
|
var $870cf6882e14e90a$var$EditSelectCell = /*#__PURE__*/ (0, $870cf6882e14e90a$var$_react.memo)(function EditSelectCell(_ref) {
|
|
4108
|
-
var data = _ref.data, dataKey = _ref.dataKey, column = _ref.column, onChange = _ref.onChange, rest = (0, $870cf6882e14e90a$var$_objectWithoutProperties2["default"])(_ref, $870cf6882e14e90a$var$_excluded);
|
|
4115
|
+
var data = _ref.data, dataKey = _ref.dataKey, column = _ref.column, onChange = _ref.onChange, tooltipDetail = _ref.tooltipDetail, rest = (0, $870cf6882e14e90a$var$_objectWithoutProperties2["default"])(_ref, $870cf6882e14e90a$var$_excluded);
|
|
4109
4116
|
var styles = (0, $870cf6882e14e90a$var$_styles["default"])();
|
|
4110
4117
|
var _column$isDisabled = column.isDisabled, isDisabled = _column$isDisabled === void 0 ? function() {
|
|
4111
4118
|
return false;
|
|
4112
|
-
} : _column$isDisabled, _column$listData = column.listData, listData = _column$listData === void 0 ? [] : _column$listData, options = column.options;
|
|
4119
|
+
} : _column$isDisabled, _column$listData = column.listData, listData = _column$listData === void 0 ? [] : _column$listData, options = column.options, renderLabelCustom = column.renderLabelCustom;
|
|
4113
4120
|
var _options = options || listData;
|
|
4114
4121
|
var changeInput = function changeInput(newValue) {
|
|
4115
4122
|
onChange(newValue);
|
|
4116
4123
|
};
|
|
4117
4124
|
var valueCell = (0, $94ZmE.getData)(data, dataKey) !== null ? (0, $94ZmE.getData)(data, dataKey) : $1VJ9B.NO_SELECT;
|
|
4125
|
+
var selectedLabel = (0, $870cf6882e14e90a$var$_react.useMemo)(function() {
|
|
4126
|
+
var option = _options.find(function(_ref2) {
|
|
4127
|
+
var value = _ref2.value;
|
|
4128
|
+
return value === valueCell;
|
|
4129
|
+
});
|
|
4130
|
+
return (option === null || option === void 0 ? void 0 : option.name) || (option === null || option === void 0 ? void 0 : option.label) || $870cf6882e14e90a$var$_I18n["default"].t('common.select');
|
|
4131
|
+
}, [
|
|
4132
|
+
valueCell
|
|
4133
|
+
]);
|
|
4118
4134
|
return(/*#__PURE__*/ $870cf6882e14e90a$var$_react["default"].createElement("div", {
|
|
4119
4135
|
className: styles.selectCell
|
|
4120
4136
|
}, /*#__PURE__*/ $870cf6882e14e90a$var$_react["default"].createElement($870cf6882e14e90a$var$_Select["default"], (0, $870cf6882e14e90a$var$_extends2["default"])({
|
|
@@ -4128,12 +4144,18 @@ var $870cf6882e14e90a$var$EditSelectCell = /*#__PURE__*/ (0, $870cf6882e14e90a$v
|
|
|
4128
4144
|
disabled: isDisabled(data),
|
|
4129
4145
|
onChange: function onChange(e) {
|
|
4130
4146
|
changeInput(e.target.value);
|
|
4147
|
+
},
|
|
4148
|
+
renderValue: function renderValue() {
|
|
4149
|
+
var renderedLabel = selectedLabel;
|
|
4150
|
+
if (typeof renderLabelCustom === 'function') renderedLabel = renderLabelCustom(renderedLabel, data);
|
|
4151
|
+
if (tooltipDetail) return(/*#__PURE__*/ $870cf6882e14e90a$var$_react["default"].createElement($cMI0G$materialuicore.Tooltip, {
|
|
4152
|
+
title: tooltipDetail,
|
|
4153
|
+
placement: "left",
|
|
4154
|
+
arrow: true
|
|
4155
|
+
}, /*#__PURE__*/ $870cf6882e14e90a$var$_react["default"].createElement("div", null, renderedLabel)));
|
|
4156
|
+
return renderedLabel;
|
|
4131
4157
|
}
|
|
4132
|
-
}, (0, $870cf6882e14e90a$var$_omit2["default"])(rest, [
|
|
4133
|
-
'keyId',
|
|
4134
|
-
'columnIndex',
|
|
4135
|
-
'vtContext'
|
|
4136
|
-
])), /*#__PURE__*/ $870cf6882e14e90a$var$_react["default"].createElement($870cf6882e14e90a$var$_MenuItem["default"], {
|
|
4158
|
+
}, (0, $870cf6882e14e90a$var$_omit2["default"])(rest, $94ZmE.PROPS_EXCLUDED)), /*#__PURE__*/ $870cf6882e14e90a$var$_react["default"].createElement($870cf6882e14e90a$var$_MenuItem["default"], {
|
|
4137
4159
|
value: $1VJ9B.NO_SELECT,
|
|
4138
4160
|
disabled: true
|
|
4139
4161
|
}, $870cf6882e14e90a$var$_I18n["default"].t('common.select')), _options.map(function(element, i) {
|
|
@@ -4211,6 +4233,7 @@ var $5d69a26897a1461e$var$_propTypes = $cMI0G$babelruntimehelpersinteropRequireD
|
|
|
4211
4233
|
var $5d69a26897a1461e$var$_react = $5d69a26897a1461e$var$_interopRequireWildcard($cMI0G$react);
|
|
4212
4234
|
|
|
4213
4235
|
var $54iqo = parcelRequire("54iqo");
|
|
4236
|
+
|
|
4214
4237
|
function $5d69a26897a1461e$var$_getRequireWildcardCache(nodeInterop1) {
|
|
4215
4238
|
if (typeof WeakMap !== "function") return null;
|
|
4216
4239
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -4239,8 +4262,14 @@ function $5d69a26897a1461e$var$_interopRequireWildcard(obj, nodeInterop) {
|
|
|
4239
4262
|
return newObj;
|
|
4240
4263
|
}
|
|
4241
4264
|
var $5d69a26897a1461e$var$ViewSelectCell = /*#__PURE__*/ (0, $5d69a26897a1461e$var$_react.memo)(function ViewSelectCell(_ref) {
|
|
4242
|
-
var data = _ref.data, column = _ref.column;
|
|
4243
|
-
|
|
4265
|
+
var data = _ref.data, column = _ref.column, tooltipDetail = _ref.tooltipDetail;
|
|
4266
|
+
var value = (0, $54iqo.getViewData)(data, column);
|
|
4267
|
+
if (tooltipDetail) return(/*#__PURE__*/ $5d69a26897a1461e$var$_react["default"].createElement($cMI0G$materialuicore.Tooltip, {
|
|
4268
|
+
title: tooltipDetail,
|
|
4269
|
+
placement: "left",
|
|
4270
|
+
arrow: true
|
|
4271
|
+
}, /*#__PURE__*/ $5d69a26897a1461e$var$_react["default"].createElement("div", null, value)));
|
|
4272
|
+
return value;
|
|
4244
4273
|
});
|
|
4245
4274
|
$5d69a26897a1461e$var$ViewSelectCell.propTypes = {
|
|
4246
4275
|
data: $5d69a26897a1461e$var$_propTypes["default"].oneOfType([
|
|
@@ -4425,11 +4454,7 @@ var $6987e7b709db7ff0$var$EditNumberCell = /*#__PURE__*/ (0, $6987e7b709db7ff0$v
|
|
|
4425
4454
|
}, styles.disabled, isDisabled(data))),
|
|
4426
4455
|
onChange: handleChangeInput,
|
|
4427
4456
|
value: value
|
|
4428
|
-
}, (0, $6987e7b709db7ff0$var$_omit2["default"])(rest,
|
|
4429
|
-
'vtContext',
|
|
4430
|
-
'keyId',
|
|
4431
|
-
'columnIndex'
|
|
4432
|
-
])))));
|
|
4457
|
+
}, (0, $6987e7b709db7ff0$var$_omit2["default"])(rest, $94ZmE.PROPS_EXCLUDED)))));
|
|
4433
4458
|
});
|
|
4434
4459
|
$6987e7b709db7ff0$var$EditNumberCell.propTypes = {
|
|
4435
4460
|
data: $6987e7b709db7ff0$var$_propTypes["default"].object,
|
|
@@ -4777,11 +4802,7 @@ var $2e6fb016dab70ab6$var$EditDateCell = function EditDateCell(_ref) {
|
|
|
4777
4802
|
InputProps: {
|
|
4778
4803
|
disableUnderline: true
|
|
4779
4804
|
}
|
|
4780
|
-
}, (0, $2e6fb016dab70ab6$var$_omit2["default"])(rest,
|
|
4781
|
-
'keyId',
|
|
4782
|
-
'columnIndex',
|
|
4783
|
-
'vtContext'
|
|
4784
|
-
])))));
|
|
4805
|
+
}, (0, $2e6fb016dab70ab6$var$_omit2["default"])(rest, $94ZmE.PROPS_EXCLUDED)))));
|
|
4785
4806
|
};
|
|
4786
4807
|
$2e6fb016dab70ab6$var$EditDateCell.propTypes = {
|
|
4787
4808
|
data: $2e6fb016dab70ab6$var$_propTypes["default"].object,
|
|
@@ -8857,9 +8878,7 @@ var $edec4fd90b3a763a$var$AutocompleteEdit = /*#__PURE__*/ (0, $edec4fd90b3a763a
|
|
|
8857
8878
|
value: currentValue || '',
|
|
8858
8879
|
disableClearable: disableClearable,
|
|
8859
8880
|
multiple: multiple
|
|
8860
|
-
}, (0, $edec4fd90b3a763a$var$_omit2["default"])(rest,
|
|
8861
|
-
'keyId'
|
|
8862
|
-
]))));
|
|
8881
|
+
}, (0, $edec4fd90b3a763a$var$_omit2["default"])(rest, $94ZmE.PROPS_EXCLUDED))));
|
|
8863
8882
|
});
|
|
8864
8883
|
var $edec4fd90b3a763a$var$_default = $edec4fd90b3a763a$var$AutocompleteEdit;
|
|
8865
8884
|
module.exports["default"] = $edec4fd90b3a763a$var$_default;
|
|
@@ -9536,6 +9555,8 @@ var $ce6baaf490af3f1f$var$_classnames = $cMI0G$babelruntimehelpersinteropRequire
|
|
|
9536
9555
|
|
|
9537
9556
|
var $ce6baaf490af3f1f$var$_upperFirst2 = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$lodashupperFirst);
|
|
9538
9557
|
|
|
9558
|
+
var $ce6baaf490af3f1f$var$_Tooltip = $cMI0G$babelruntimehelpersinteropRequireDefault($cMI0G$materialuicoreTooltip);
|
|
9559
|
+
|
|
9539
9560
|
var $03WMM = parcelRequire("03WMM");
|
|
9540
9561
|
|
|
9541
9562
|
var $ce6baaf490af3f1f$var$_styles = $cMI0G$babelruntimehelpersinteropRequireDefault((parcelRequire("24gKU")));
|
|
@@ -9598,9 +9619,10 @@ var $ce6baaf490af3f1f$var$FooterCell = function FooterCell(_ref) {
|
|
|
9598
9619
|
}, footerValue ? renderCustom() : _getValue())));
|
|
9599
9620
|
};
|
|
9600
9621
|
if (noFooter) return null;
|
|
9601
|
-
if (tooltipFooter) return(/*#__PURE__*/ $ce6baaf490af3f1f$var$_react["default"].createElement(
|
|
9622
|
+
if (tooltipFooter) return(/*#__PURE__*/ $ce6baaf490af3f1f$var$_react["default"].createElement($ce6baaf490af3f1f$var$_Tooltip["default"], {
|
|
9602
9623
|
title: tooltipFooter,
|
|
9603
|
-
placement: "top"
|
|
9624
|
+
placement: "top",
|
|
9625
|
+
arrow: true
|
|
9604
9626
|
}, _render()));
|
|
9605
9627
|
return _render();
|
|
9606
9628
|
};
|
|
@@ -10009,7 +10031,8 @@ var $2d133bbbed357072$var$HeaderCell = function HeaderCell(_ref) {
|
|
|
10009
10031
|
};
|
|
10010
10032
|
if (tooltipHeader) return(/*#__PURE__*/ $2d133bbbed357072$var$_react["default"].createElement($cMI0G$materialuicore.Tooltip, {
|
|
10011
10033
|
title: tooltipHeader,
|
|
10012
|
-
placement: "top"
|
|
10034
|
+
placement: "top",
|
|
10035
|
+
arrow: true
|
|
10013
10036
|
}, render()));
|
|
10014
10037
|
return render();
|
|
10015
10038
|
};
|
|
@@ -11504,11 +11527,11 @@ var $03WMM = parcelRequire("03WMM");
|
|
|
11504
11527
|
|
|
11505
11528
|
var $iyFQa = parcelRequire("iyFQa");
|
|
11506
11529
|
|
|
11507
|
-
var $6QL76 = parcelRequire("6QL76");
|
|
11508
|
-
|
|
11509
11530
|
var $524c89f0e646ff0e$var$_Button = $cMI0G$babelruntimehelpersinteropRequireDefault((parcelRequire("b57Hi")));
|
|
11510
11531
|
|
|
11511
11532
|
var $cSl63 = parcelRequire("cSl63");
|
|
11533
|
+
|
|
11534
|
+
var $2N3c9 = parcelRequire("2N3c9");
|
|
11512
11535
|
var $524c89f0e646ff0e$var$ColumnsSetting = function ColumnsSetting(_ref) {
|
|
11513
11536
|
var open = _ref.open, onClose = _ref.onClose, onChangeColumnsSetting = _ref.onChangeColumnsSetting;
|
|
11514
11537
|
var _useConfig = (0, $iyFQa.useConfig)(), _useConfig$config$col = _useConfig.config.columnsRaw, columnsRaw = _useConfig$config$col === void 0 ? [] : _useConfig$config$col;
|
|
@@ -11557,7 +11580,7 @@ var $524c89f0e646ff0e$var$ColumnsSetting = function ColumnsSetting(_ref) {
|
|
|
11557
11580
|
editable: false
|
|
11558
11581
|
},
|
|
11559
11582
|
{
|
|
11560
|
-
key: '
|
|
11583
|
+
key: 'searchable',
|
|
11561
11584
|
header: $524c89f0e646ff0e$var$_I18n["default"].t('columnsSetting.columns.filterable'),
|
|
11562
11585
|
editable: false,
|
|
11563
11586
|
width: 80,
|
|
@@ -11565,7 +11588,7 @@ var $524c89f0e646ff0e$var$ColumnsSetting = function ColumnsSetting(_ref) {
|
|
|
11565
11588
|
typeCell: $03WMM.TYPE_CELL.COMPONENT,
|
|
11566
11589
|
renderComponent: function renderComponent(_ref2) {
|
|
11567
11590
|
var data = _ref2.data;
|
|
11568
|
-
return (0, $
|
|
11591
|
+
return (0, $2N3c9.isSearchable)(data) ? /*#__PURE__*/ $524c89f0e646ff0e$var$_react["default"].createElement($cMI0G$materialuiicons.Check, {
|
|
11569
11592
|
color: "primary",
|
|
11570
11593
|
fontSize: "small"
|
|
11571
11594
|
}) : null;
|