wargerm 0.7.87 → 0.7.88

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/dist/index.esm.js CHANGED
@@ -3580,7 +3580,7 @@ var WTree = function WTree(props, ref) {
3580
3580
  }
3581
3581
  allKeysRef.current = [].concat(_toConsumableArray(allKeysRef.current), [item.key]);
3582
3582
  handleCheck({
3583
- parentIds: (_ref3 = (item === null || item === void 0 ? void 0 : item.parentIds) || ((_item$origin2 = item.origin) === null || _item$origin2 === void 0 ? void 0 : _item$origin2.parentIds)) === null || _ref3 === void 0 ? void 0 : _ref3.split(',').slice(1),
3583
+ parentIds: (_ref3 = (item === null || item === void 0 ? void 0 : item.parentIds) || ((_item$origin2 = item.origin) === null || _item$origin2 === void 0 ? void 0 : _item$origin2.parentIds) || '0') === null || _ref3 === void 0 ? void 0 : _ref3.split(',').slice(1),
3584
3584
  id: (item === null || item === void 0 ? void 0 : item.key) || (item === null || item === void 0 ? void 0 : item.id) || ((_item$origin3 = item.origin) === null || _item$origin3 === void 0 ? void 0 : _item$origin3.id),
3585
3585
  values: values,
3586
3586
  treeData: treeData
@@ -3642,9 +3642,9 @@ var WTree = function WTree(props, ref) {
3642
3642
  return setExpandedKeys(values);
3643
3643
  },
3644
3644
  onCheck: function onCheck(values, info) {
3645
- var _info$node, _info$node$parentIds, _info$node2;
3645
+ var _ref5, _info$node, _info$node2;
3646
3646
  var checked = info === null || info === void 0 ? void 0 : info.checked;
3647
- var parentIds = info === null || info === void 0 ? void 0 : (_info$node = info.node) === null || _info$node === void 0 ? void 0 : (_info$node$parentIds = _info$node.parentIds) === null || _info$node$parentIds === void 0 ? void 0 : _info$node$parentIds.split(',').slice(1);
3647
+ var parentIds = (_ref5 = (info === null || info === void 0 ? void 0 : (_info$node = info.node) === null || _info$node === void 0 ? void 0 : _info$node.parentIds) || '0') === null || _ref5 === void 0 ? void 0 : _ref5.split(',').slice(1);
3648
3648
  var currentId = (info === null || info === void 0 ? void 0 : info.node.key) || (info === null || info === void 0 ? void 0 : info.node.id);
3649
3649
  handleCheck({
3650
3650
  parentIds: parentIds,
package/dist/index.js CHANGED
@@ -3624,7 +3624,7 @@ var WTree = function WTree(props, ref) {
3624
3624
  }
3625
3625
  allKeysRef.current = [].concat(_toConsumableArray(allKeysRef.current), [item.key]);
3626
3626
  handleCheck({
3627
- parentIds: (_ref3 = (item === null || item === void 0 ? void 0 : item.parentIds) || ((_item$origin2 = item.origin) === null || _item$origin2 === void 0 ? void 0 : _item$origin2.parentIds)) === null || _ref3 === void 0 ? void 0 : _ref3.split(',').slice(1),
3627
+ parentIds: (_ref3 = (item === null || item === void 0 ? void 0 : item.parentIds) || ((_item$origin2 = item.origin) === null || _item$origin2 === void 0 ? void 0 : _item$origin2.parentIds) || '0') === null || _ref3 === void 0 ? void 0 : _ref3.split(',').slice(1),
3628
3628
  id: (item === null || item === void 0 ? void 0 : item.key) || (item === null || item === void 0 ? void 0 : item.id) || ((_item$origin3 = item.origin) === null || _item$origin3 === void 0 ? void 0 : _item$origin3.id),
3629
3629
  values: values,
3630
3630
  treeData: treeData
@@ -3686,9 +3686,9 @@ var WTree = function WTree(props, ref) {
3686
3686
  return setExpandedKeys(values);
3687
3687
  },
3688
3688
  onCheck: function onCheck(values, info) {
3689
- var _info$node, _info$node$parentIds, _info$node2;
3689
+ var _ref5, _info$node, _info$node2;
3690
3690
  var checked = info === null || info === void 0 ? void 0 : info.checked;
3691
- var parentIds = info === null || info === void 0 ? void 0 : (_info$node = info.node) === null || _info$node === void 0 ? void 0 : (_info$node$parentIds = _info$node.parentIds) === null || _info$node$parentIds === void 0 ? void 0 : _info$node$parentIds.split(',').slice(1);
3691
+ var parentIds = (_ref5 = (info === null || info === void 0 ? void 0 : (_info$node = info.node) === null || _info$node === void 0 ? void 0 : _info$node.parentIds) || '0') === null || _ref5 === void 0 ? void 0 : _ref5.split(',').slice(1);
3692
3692
  var currentId = (info === null || info === void 0 ? void 0 : info.node.key) || (info === null || info === void 0 ? void 0 : info.node.id);
3693
3693
  handleCheck({
3694
3694
  parentIds: parentIds,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.7.87",
4
+ "version": "0.7.88",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",