@myunisoft/design-system 0.10.1 → 0.10.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,76 +1,86 @@
1
- # Changelog
2
-
3
- ## v0.10.0 (07/01/2022)
4
- #### Enhancements
5
- - [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.
6
- - [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.
7
-
8
- #### Bug Fixes
9
- - [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix amountCell refresh when a row is deleted.
10
- - [MYUN-18127](https://myunisoft.atlassian.net/browse/MYUN-18127) Fix all rows selection logic to prevent crash with high number of rows.
11
- ---
12
- ## v0.9.6
13
-
14
- #### Bug Fixes
15
- - [MYUN-17573](https://myunisoft.atlassian.net/browse/MYUN-17573) Fix scroll synchronisation delay
16
- - [MYUN-18061](https://myunisoft.atlassian.net/browse/MYUN-18061) Fix `totalrows` data attribute
17
-
18
- ---
19
- ## v0.9.5 (23/12/2021)
20
-
21
- #### Enhancements
22
-
23
- - [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
24
-
25
- ---
26
- ## v0.9.4 (16/12/2021)
27
-
28
- #### Enhancements
29
-
30
- - [MYUN-17509](https://myunisoft.atlassian.net/browse/MYUN-17509) Add disabled, className and style property to `select` typeCell
31
-
32
- #### Bug Fixes
33
-
34
- - [MYUN-17850](https://myunisoft.atlassian.net/browse/MYUN-17850) Fix export of empty wallet cell
35
-
36
- ---
37
-
38
- ## v0.9.3 (13/12/2021)
39
-
40
- #### Bug Fixes
41
-
42
- - [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of switch badge cell
43
-
44
- ---
45
-
46
- ## v0.9.2 (08/12/2021)
47
-
48
- #### Bug Fixes
49
-
50
- - [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of empty badge cell
51
- - [MYUN-17665](https://myunisoft.atlassian.net/browse/MYUN-17665) Activate save button on edit
52
-
53
- ---
54
-
55
- ## v0.9.1 (06/12/2021)
56
-
57
- #### Bug Fixes:
58
-
59
- - [MYUN-17505](https://myunisoft.atlassian.net/browse/MYUN-17505) Add `rowIndex` property to RenderComponent callback
60
- - [MYUN-17584](https://myunisoft.atlassian.net/browse/MYUN-17584) Fix `typeCell` in columnsSettings and doc
61
-
62
- ---
63
-
64
- ## v0.9.0 (03/12/2021)
65
-
66
- #### Enhancements:
67
-
68
- - [MYUN-17510](https://myunisoft.atlassian.net/browse/MYUN-17510) Handle custom sortable
69
-
70
- ---
71
-
72
- ## v0.8.4 (02/12/2021)
73
-
74
- #### Bug Fixes:
75
-
76
- - [MYUN-16553](https://myunisoft.atlassian.net/browse/MYUN-16553) Editable AmountCell are not clickable when empty
1
+ # Changelog
2
+
3
+ ## v0.10.2 (12/01/2022)
4
+ #### Bug Fixes
5
+ - [MYUN-18174](https://myunisoft.atlassian.net/browse/MYUN-18174) Fix column witdh in ColumnsSetting component
6
+ - [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix row deleting function
7
+ - [MYUN-18426](https://myunisoft.atlassian.net/browse/MYUN-18426) Fix filter options for column with typeCell as select.
8
+ ---
9
+ ## v0.10.1 (07/01/2022)
10
+ #### Bug Fixes
11
+ - Fix build process
12
+ ---
13
+ ## v0.10.0 (07/01/2022)
14
+ #### Enhancements
15
+ - [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.
16
+ - [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.
17
+
18
+ #### Bug Fixes
19
+ - [MYUN-18334](https://myunisoft.atlassian.net/browse/MYUN-18334) Fix amountCell refresh when a row is deleted.
20
+ - [MYUN-18127](https://myunisoft.atlassian.net/browse/MYUN-18127) Fix all rows selection logic to prevent crash with high number of rows.
21
+ ---
22
+ ## v0.9.6
23
+
24
+ #### Bug Fixes
25
+ - [MYUN-17573](https://myunisoft.atlassian.net/browse/MYUN-17573) Fix scroll synchronisation delay
26
+ - [MYUN-18061](https://myunisoft.atlassian.net/browse/MYUN-18061) Fix `totalrows` data attribute
27
+
28
+ ---
29
+ ## v0.9.5 (23/12/2021)
30
+
31
+ #### Enhancements
32
+
33
+ - [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
34
+
35
+ ---
36
+ ## v0.9.4 (16/12/2021)
37
+
38
+ #### Enhancements
39
+
40
+ - [MYUN-17509](https://myunisoft.atlassian.net/browse/MYUN-17509) Add disabled, className and style property to `select` typeCell
41
+
42
+ #### Bug Fixes
43
+
44
+ - [MYUN-17850](https://myunisoft.atlassian.net/browse/MYUN-17850) Fix export of empty wallet cell
45
+
46
+ ---
47
+
48
+ ## v0.9.3 (13/12/2021)
49
+
50
+ #### Bug Fixes
51
+
52
+ - [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of switch badge cell
53
+
54
+ ---
55
+
56
+ ## v0.9.2 (08/12/2021)
57
+
58
+ #### Bug Fixes
59
+
60
+ - [MYUN-17516](https://myunisoft.atlassian.net/browse/MYUN-17516) Fix export of empty badge cell
61
+ - [MYUN-17665](https://myunisoft.atlassian.net/browse/MYUN-17665) Activate save button on edit
62
+
63
+ ---
64
+
65
+ ## v0.9.1 (06/12/2021)
66
+
67
+ #### Bug Fixes:
68
+
69
+ - [MYUN-17505](https://myunisoft.atlassian.net/browse/MYUN-17505) Add `rowIndex` property to RenderComponent callback
70
+ - [MYUN-17584](https://myunisoft.atlassian.net/browse/MYUN-17584) Fix `typeCell` in columnsSettings and doc
71
+
72
+ ---
73
+
74
+ ## v0.9.0 (03/12/2021)
75
+
76
+ #### Enhancements:
77
+
78
+ - [MYUN-17510](https://myunisoft.atlassian.net/browse/MYUN-17510) Handle custom sortable
79
+
80
+ ---
81
+
82
+ ## v0.8.4 (02/12/2021)
83
+
84
+ #### Bug Fixes:
85
+
86
+ - [MYUN-16553](https://myunisoft.atlassian.net/browse/MYUN-16553) Editable AmountCell are not clickable when empty
package/dist/index.js CHANGED
@@ -1223,7 +1223,7 @@ var $d82bdb97016b0ccf$var$useDataManager = function useDataManager() {
1223
1223
  };
1224
1224
  var onDelete = function onDelete(rows) {
1225
1225
  setData((0, $d82bdb97016b0ccf$var$_toConsumableArray2["default"])(data.filter(function(row) {
1226
- return !rows.has(row[selectableRowKey]);
1226
+ return !rows.includes(row[selectableRowKey]);
1227
1227
  })));
1228
1228
  };
1229
1229
  return {
@@ -10186,7 +10186,7 @@ var $2082a2d8eb0fa98d$var$mapStatusListToDataList = function mapStatusListToData
10186
10186
  label: curr.header,
10187
10187
  value: curr.key,
10188
10188
  type: curr.typeCell === $03WMM.TYPE_CELL.STATUS ? $03WMM.TYPE_CELL.SELECT : curr.typeCell,
10189
- listData: curr.typeCell === $03WMM.TYPE_CELL.STATUS ? $2082a2d8eb0fa98d$var$mapStatusListToDataList(curr.listStatus) : curr.listData // Used for select type
10189
+ listData: curr.typeCell === $03WMM.TYPE_CELL.STATUS ? $2082a2d8eb0fa98d$var$mapStatusListToDataList(curr.listStatus) : curr.listData || curr.options // Used for select type
10190
10190
  }));
10191
10191
  }, {
10192
10192
  });
@@ -10618,11 +10618,11 @@ var $7d39a673fb91acbc$var$_styles = $cMI0G$babelruntimehelpersinteropRequireDefa
10618
10618
  name: name,
10619
10619
  className: classes.select,
10620
10620
  value: value
10621
- }), data.listData.map(function(element) {
10621
+ }), (data.listData || data.options || []).map(function(element) {
10622
10622
  return(/*#__PURE__*/ $7d39a673fb91acbc$var$_react["default"].createElement($cMI0G$materialuicore.MenuItem, {
10623
10623
  key: element.value,
10624
10624
  value: element.value
10625
- }, element.name));
10625
+ }, element.name || element.label));
10626
10626
  })) : /*#__PURE__*/ $7d39a673fb91acbc$var$_react["default"].createElement($7d39a673fb91acbc$var$_reactInputAutosize["default"], (0, $7d39a673fb91acbc$var$_extends2["default"])({
10627
10627
  }, inputProps, {
10628
10628
  name: name,
@@ -11460,7 +11460,7 @@ var $524c89f0e646ff0e$var$ColumnsSetting = function ColumnsSetting(_ref) {
11460
11460
  {
11461
11461
  key: 'header',
11462
11462
  header: $524c89f0e646ff0e$var$_I18n["default"].t('columnsSetting.columns.columnName'),
11463
- width: 120,
11463
+ size: 1,
11464
11464
  editable: false
11465
11465
  },
11466
11466
  {
@@ -11611,7 +11611,11 @@ var $29eb2cda6d3d6269$var$DataGrid = function DataGrid(_ref) {
11611
11611
  className: classes.bodyCell,
11612
11612
  style: $29eb2cda6d3d6269$var$_objectSpread({
11613
11613
  }, columnsStyle[column.key])
11614
- }, /*#__PURE__*/ $29eb2cda6d3d6269$var$_react["default"].createElement("div", null, /*#__PURE__*/ $29eb2cda6d3d6269$var$_react["default"].createElement($29eb2cda6d3d6269$var$_cells["default"], {
11614
+ }, /*#__PURE__*/ $29eb2cda6d3d6269$var$_react["default"].createElement("div", {
11615
+ style: {
11616
+ maxWidth: '100%'
11617
+ }
11618
+ }, /*#__PURE__*/ $29eb2cda6d3d6269$var$_react["default"].createElement($29eb2cda6d3d6269$var$_cells["default"], {
11615
11619
  rowIndex: i,
11616
11620
  vtContext: {
11617
11621
  state: 'PERMANENT_EDIT',