@kdcloudjs/kdesign 1.6.35 → 1.6.37

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/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.6.34
3
+ * @kdcloudjs/kdesign v1.6.36
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -9455,12 +9455,8 @@ function Panel(props) {
9455
9455
  setViewDate(date, mergedActivePickerIndex);
9456
9456
  };
9457
9457
  var onNext = function onNext() {
9458
- if (panelPosition) {
9459
- setViewDate(viewDate, mergedActivePickerIndex);
9460
- } else {
9461
- var _date = Object(_utils_date_fns__WEBPACK_IMPORTED_MODULE_18__["addMonths"])(viewDate, 1);
9462
- setViewDate(_date);
9463
- }
9458
+ var date = Object(_utils_date_fns__WEBPACK_IMPORTED_MODULE_18__["addMonths"])(viewDate, 1);
9459
+ setViewDate(date, mergedActivePickerIndex);
9464
9460
  };
9465
9461
  var panel;
9466
9462
  var headerProps = {};
@@ -12587,9 +12583,7 @@ var InternalRangePicker = function InternalRangePicker(props, ref) {
12587
12583
  innerPicker: innerPicker,
12588
12584
  setInnerPicker: setInnerPicker
12589
12585
  }
12590
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(_date_panel__WEBPACK_IMPORTED_MODULE_18__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_6___default()({}, datePickerProps, {
12591
- disabledDate: mergedActivePickerIndex === 0 ? disabledStartDate : disabledEndDate
12592
- })));
12586
+ }, renderPanel());
12593
12587
  }
12594
12588
  return panels;
12595
12589
  };
@@ -14643,7 +14637,7 @@ var findItem = function findItem(element) {
14643
14637
  }
14644
14638
  };
14645
14639
  var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](function (props, ref) {
14646
- var _menu$props, _menu$props2, _menu$props3, _menu$props4, _menu$props5, _menu$props5$children, _menu$props5$children2, _menu$props6;
14640
+ var _menu$props, _menu$props2, _menu$props3, _menu$props4, _menu$props5, _menu$props5$children, _menu$props5$children2, _menu$props6, _menu$props6$children, _menu$props6$children2, _menu$props7, _menu$props7$children, _menu$props7$children2, _menu$props7$children3, _menu$props8;
14647
14641
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_11__["useContext"](_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
14648
14642
  getPrefixCls = _React$useContext.getPrefixCls,
14649
14643
  pkgPrefixCls = _React$useContext.prefixCls,
@@ -14703,8 +14697,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
14703
14697
  onClick: handleItemClick,
14704
14698
  selectable: menuSelectable
14705
14699
  });
14706
- var isItem = react__WEBPACK_IMPORTED_MODULE_11__["Children"].count((_menu$props4 = menu.props) === null || _menu$props4 === void 0 ? void 0 : _menu$props4.children) === 1 && ((_menu$props5 = menu.props) === null || _menu$props5 === void 0 ? void 0 : (_menu$props5$children = _menu$props5.children) === null || _menu$props5$children === void 0 ? void 0 : (_menu$props5$children2 = _menu$props5$children.type) === null || _menu$props5$children2 === void 0 ? void 0 : _menu$props5$children2.displayName) === 'DropdownMenuItem';
14707
- var menuElement = isMenu ? Array.isArray((_menu$props6 = menu.props) === null || _menu$props6 === void 0 ? void 0 : _menu$props6.children) || isItem ? cloneObj : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["createElement"]("ul", {
14700
+ var isItem = react__WEBPACK_IMPORTED_MODULE_11__["Children"].count((_menu$props4 = menu.props) === null || _menu$props4 === void 0 ? void 0 : _menu$props4.children) === 1 && ((_menu$props5 = menu.props) === null || _menu$props5 === void 0 ? void 0 : (_menu$props5$children = _menu$props5.children) === null || _menu$props5$children === void 0 ? void 0 : (_menu$props5$children2 = _menu$props5$children.type) === null || _menu$props5$children2 === void 0 ? void 0 : _menu$props5$children2.displayName) === 'DropdownMenuItem' || Array.isArray((_menu$props6 = menu.props) === null || _menu$props6 === void 0 ? void 0 : (_menu$props6$children = _menu$props6.children) === null || _menu$props6$children === void 0 ? void 0 : (_menu$props6$children2 = _menu$props6$children.props) === null || _menu$props6$children2 === void 0 ? void 0 : _menu$props6$children2.children) || ((_menu$props7 = menu.props) === null || _menu$props7 === void 0 ? void 0 : (_menu$props7$children = _menu$props7.children) === null || _menu$props7$children === void 0 ? void 0 : (_menu$props7$children2 = _menu$props7$children.props) === null || _menu$props7$children2 === void 0 ? void 0 : (_menu$props7$children3 = _menu$props7$children2.children.type) === null || _menu$props7$children3 === void 0 ? void 0 : _menu$props7$children3.displayName) === 'DropdownMenuItem';
14701
+ var menuElement = isMenu ? Array.isArray((_menu$props8 = menu.props) === null || _menu$props8 === void 0 ? void 0 : _menu$props8.children) || isItem ? cloneObj : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["createElement"]("ul", {
14708
14702
  className: "".concat(prefixCls, "-menu"),
14709
14703
  onClick: handleItemClick,
14710
14704
  role: "menu"
@@ -28025,7 +28019,7 @@ var InternalSelect = function InternalSelect(props, ref) {
28025
28019
  defaultVisible: optionShow,
28026
28020
  visible: optionShow,
28027
28021
  onVisibleChange: handleVisibleChange,
28028
- clickToClose: !isShowSearch
28022
+ clickToClose: !(isShowSearch && searchValue)
28029
28023
  });
28030
28024
  return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_27__["default"])(renderSelect(), renderContent(), popperProps);
28031
28025
  };
@@ -31111,13 +31105,13 @@ var Table = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"]
31111
31105
  Object(_feature_sort__WEBPACK_IMPORTED_MODULE_13__["default"])(pipeline, sort);
31112
31106
  Object(_feature_autoRowSpan__WEBPACK_IMPORTED_MODULE_14__["default"])(pipeline, autoRowSpan);
31113
31107
  Object(_feature_treeMode__WEBPACK_IMPORTED_MODULE_16__["default"])(pipeline, treeMode);
31108
+ Object(_feature_colGroupExtendable__WEBPACK_IMPORTED_MODULE_24__["default"])(pipeline, columnGroupExtend);
31114
31109
  Object(_feature_columnResize__WEBPACK_IMPORTED_MODULE_17__["default"])(pipeline, columnResize);
31115
31110
  Object(_feature_columnDrag__WEBPACK_IMPORTED_MODULE_18__["default"])(pipeline, columnDrag);
31116
31111
  Object(_feature_contextMenu__WEBPACK_IMPORTED_MODULE_19__["default"])(pipeline, contextMenu);
31117
31112
  Object(_feature_useRangeSelection__WEBPACK_IMPORTED_MODULE_20__["default"])(pipeline, rangeSelection);
31118
31113
  Object(_feature_mergeCellHover__WEBPACK_IMPORTED_MODULE_21__["default"])(pipeline);
31119
31114
  Object(_feature_useFooterDataSource__WEBPACK_IMPORTED_MODULE_23__["default"])(pipeline, footerDataSource);
31120
- Object(_feature_colGroupExtendable__WEBPACK_IMPORTED_MODULE_24__["default"])(pipeline, columnGroupExtend);
31121
31115
 
31122
31116
  /* -------------------------------------------------------------------------- */
31123
31117
  /* after useTablePipeline, merge pipeline.getProps result */