@kdcloudjs/kdesign 1.8.33 → 1.8.35

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.
Files changed (53) hide show
  1. package/dist/kdesign-complete.less +21 -3
  2. package/dist/kdesign.css +11 -5
  3. package/dist/kdesign.css.map +1 -1
  4. package/dist/kdesign.js +22 -22
  5. package/dist/kdesign.js.map +1 -1
  6. package/dist/kdesign.min.css +3 -3
  7. package/dist/kdesign.min.js +4 -4
  8. package/dist/kdesign.min.js.map +1 -1
  9. package/es/button/group.js +3 -2
  10. package/es/city-picker/city-picker.js +1 -1
  11. package/es/city-picker/option.js +2 -7
  12. package/es/color-picker/color-picker-panel.js +6 -3
  13. package/es/color-picker/style/index.css +3 -0
  14. package/es/color-picker/style/index.less +7 -0
  15. package/es/date-picker/style/index.css +3 -0
  16. package/es/date-picker/style/index.less +7 -0
  17. package/es/dropdown/dropdown.js +1 -1
  18. package/es/locale/en-US.d.ts +3 -0
  19. package/es/locale/en-US.js +3 -0
  20. package/es/locale/locale.d.ts +3 -0
  21. package/es/locale/zh-CN.d.ts +3 -0
  22. package/es/locale/zh-CN.js +3 -0
  23. package/es/modal/modal.js +1 -1
  24. package/es/modal/style/index.css +4 -0
  25. package/es/modal/style/index.less +4 -0
  26. package/es/progress/style/index.css +0 -4
  27. package/es/progress/style/index.less +3 -3
  28. package/es/select/select.js +1 -1
  29. package/es/transfer/list.js +6 -7
  30. package/es/transfer/transfer.js +1 -2
  31. package/lib/button/group.js +3 -2
  32. package/lib/city-picker/city-picker.js +1 -1
  33. package/lib/city-picker/option.js +2 -7
  34. package/lib/color-picker/color-picker-panel.js +6 -3
  35. package/lib/color-picker/style/index.css +3 -0
  36. package/lib/color-picker/style/index.less +7 -0
  37. package/lib/date-picker/style/index.css +3 -0
  38. package/lib/date-picker/style/index.less +7 -0
  39. package/lib/dropdown/dropdown.js +1 -1
  40. package/lib/locale/en-US.d.ts +3 -0
  41. package/lib/locale/en-US.js +3 -0
  42. package/lib/locale/locale.d.ts +3 -0
  43. package/lib/locale/zh-CN.d.ts +3 -0
  44. package/lib/locale/zh-CN.js +3 -0
  45. package/lib/modal/modal.js +1 -1
  46. package/lib/modal/style/index.css +4 -0
  47. package/lib/modal/style/index.less +4 -0
  48. package/lib/progress/style/index.css +0 -4
  49. package/lib/progress/style/index.less +3 -3
  50. package/lib/select/select.js +1 -1
  51. package/lib/transfer/list.js +6 -7
  52. package/lib/transfer/transfer.js +1 -2
  53. package/package.json +1 -1
package/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.8.33
3
+ * @kdcloudjs/kdesign v1.8.35
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -5842,7 +5842,8 @@ var InternalButtonGroup = function InternalButtonGroup(props, ref) {
5842
5842
  buttonType = buttonGoupProps.buttonType,
5843
5843
  disabled = buttonGoupProps.disabled,
5844
5844
  onVisibleChange = buttonGoupProps.onVisibleChange,
5845
- loading = buttonGoupProps.loading;
5845
+ loading = buttonGoupProps.loading,
5846
+ placement = buttonGoupProps.placement;
5846
5847
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(false),
5847
5848
  _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
5848
5849
  optionShow = _useState2[0],
@@ -5919,7 +5920,7 @@ var InternalButtonGroup = function InternalButtonGroup(props, ref) {
5919
5920
  onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(visible);
5920
5921
  };
5921
5922
  var popperProps = _objectSpread(_objectSpread({
5922
- placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
5923
+ placement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
5923
5924
  trigger: 'click',
5924
5925
  gap: 0
5925
5926
  }, buttonGoupProps), {}, {
@@ -8727,7 +8728,7 @@ var InternalSelect = function InternalSelect(props, ref) {
8727
8728
  };
8728
8729
  var popperProps = _objectSpread(_objectSpread({}, selectProps), {}, {
8729
8730
  prefixCls: classnames__WEBPACK_IMPORTED_MODULE_24___default()("".concat(selectPrefixCls, "-dropdown"), rtlCls),
8730
- placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
8731
+ placement: 'bottomLeft',
8731
8732
  popperStyle: catchStyle(),
8732
8733
  defaultVisible: optionShow,
8733
8734
  visible: optionShow,
@@ -8843,8 +8844,7 @@ var InternalOption = function InternalOption(props, ref) {
8843
8844
  name = _ref.name;
8844
8845
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_2__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_4__["default"]),
8845
8846
  getPrefixCls = _useContext.getPrefixCls,
8846
- prefixCls = _useContext.prefixCls,
8847
- direction = _useContext.direction;
8847
+ prefixCls = _useContext.prefixCls;
8848
8848
  var selectOptionPrefixCls = getPrefixCls(prefixCls, 'city-picker-list-item');
8849
8849
  var isSelected = id !== undefined ? id === value : false;
8850
8850
  var optionCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(selectOptionPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-selected"), isSelected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-active"), activeIndex === index), _classNames));
@@ -8862,11 +8862,7 @@ var InternalOption = function InternalOption(props, ref) {
8862
8862
  title: name,
8863
8863
  onClick: handleClick,
8864
8864
  onMouseEnter: handleOnMouseEnter
8865
- }, typeof itemRender === 'function' ? itemRender(city) : direction === 'rtl' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8866
- className: "".concat(selectOptionPrefixCls, "-info")
8867
- }, renderCityInfo === null || renderCityInfo === void 0 ? void 0 : renderCityInfo(city, true)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8868
- className: "".concat(selectOptionPrefixCls, "-content")
8869
- }, children)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8865
+ }, typeof itemRender === 'function' ? itemRender(city) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8870
8866
  className: "".concat(selectOptionPrefixCls, "-content")
8871
8867
  }, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8872
8868
  className: "".concat(selectOptionPrefixCls, "-info")
@@ -9894,6 +9890,9 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
9894
9890
  prefixCls = _useContext.prefixCls,
9895
9891
  locale = _useContext.locale,
9896
9892
  direction = _useContext.direction;
9893
+ var colorPickerLangMsg = locale.getCompLangMsg({
9894
+ componentName: 'ColorPicker'
9895
+ });
9897
9896
  var colorPickerPrefixCls = getPrefixCls(prefixCls, 'color-picker');
9898
9897
  var panelCls = classnames__WEBPACK_IMPORTED_MODULE_20___default()("".concat(colorPickerPrefixCls, "-panel"));
9899
9898
  var panelChromePickerCls = classnames__WEBPACK_IMPORTED_MODULE_20___default()("".concat(colorPickerPrefixCls, "-panel-chrome"), (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default()(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-box"), !(showColorPickerBox !== null && showColorPickerBox !== void 0 && showColorPickerBox.showBox)), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default()(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-hue"), !(showColorPickerBox !== null && showColorPickerBox !== void 0 && showColorPickerBox.showHue)), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5___default()(_classNames, "".concat(colorPickerPrefixCls, "-panel-chrome-no-opacity"), !(showColorPickerBox !== null && showColorPickerBox !== void 0 && showColorPickerBox.showOpacity)), _classNames));
@@ -10253,7 +10252,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
10253
10252
  onClick: handleClearClick
10254
10253
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("span", {
10255
10254
  className: panelClearColorText
10256
- }, "\u65E0\u989C\u8272\u586B\u5145")), functionalColor && showSwitch && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
10255
+ }, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.noColor)), functionalColor && showSwitch && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
10257
10256
  className: panelFollowThemeCls
10258
10257
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("span", null, (switchName === null || switchName === void 0 ? void 0 : switchName.internationalName) && locale.getLangMsg('ColorPicker', switchName.internationalName) || switchName.name), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_19__["Switch"], {
10259
10258
  checked: isFollow,
@@ -10320,7 +10319,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
10320
10319
  className: historicalColorBoxCls
10321
10320
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
10322
10321
  className: historicalColorBoxTitleCls
10323
- }, "\u6700\u8FD1\u4F7F\u7528\u989C\u8272"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
10322
+ }, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.recentColor), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
10324
10323
  className: historicalColorBoxContainerCls
10325
10324
  }, checkUserPresetColor(historicalColor) && Object(_utils_colorFormat__WEBPACK_IMPORTED_MODULE_23__["presetColorToHEX"])(historicalColor).map(function (colorValue, i) {
10326
10325
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("li", {
@@ -10340,7 +10339,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
10340
10339
  className: colorBoxCls
10341
10340
  }, historicalColor && (historicalColor === null || historicalColor === void 0 ? void 0 : historicalColor.length) > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
10342
10341
  className: colorBoxTitleCls
10343
- }, "\u63A8\u8350\u8272"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
10342
+ }, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.recommendColor), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
10344
10343
  className: colorBoxContainerCls
10345
10344
  }, (checkUserPresetColor(presetColor) && Object(_utils_colorFormat__WEBPACK_IMPORTED_MODULE_23__["presetColorToHEX"])(presetColor) || _constant_systemPresetColor__WEBPACK_IMPORTED_MODULE_22__["systemPresetColor"]).map(function (colorValue, i) {
10346
10345
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("li", {
@@ -17542,7 +17541,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
17542
17541
  animation: 'none'
17543
17542
  }, popperStyle),
17544
17543
  onVisibleChange: handleVisibleChange,
17545
- placement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft')
17544
+ placement: typeof props.placement !== 'undefined' ? placement : direction === 'rtl' ? 'bottomRight' : placement
17546
17545
  });
17547
17546
  return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_16__["default"])(child, menuElement, popperProps);
17548
17547
  });
@@ -25503,6 +25502,9 @@ var locale = _objectSpread(_objectSpread({
25503
25502
  'CityPicker.tabsInternation': '国际/中国港澳台',
25504
25503
  'CityPicker.title': '城市',
25505
25504
  'ColorPicker.followFunctionalColor': '跟随功能色',
25505
+ 'ColorPicker.noColor': '无颜色填充',
25506
+ 'ColorPicker.recentColor': '最近使用颜色',
25507
+ 'ColorPicker.recommendColor': '推荐色',
25506
25508
  'Search.placeholder': '请输入需要搜索的内容',
25507
25509
  'Search.desc': ['空格代表"或",回车代表"且"'],
25508
25510
  'Search.nplDesc': '智能搜索',
@@ -27031,7 +27033,7 @@ var InternalModal = function InternalModal(props, ref) {
27031
27033
  modalContainer = document.body;
27032
27034
  }
27033
27035
  var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(modalContainer && !overroll ? {
27034
- x: -(width / 2),
27036
+ x: direction === 'rtl' ? width / 2 : -(width / 2),
27035
27037
  y: -(height / 2)
27036
27038
  } : {
27037
27039
  x: 0,
@@ -33413,7 +33415,7 @@ var InternalSelect = function InternalSelect(props, ref) {
33413
33415
  };
33414
33416
  var popperProps = _objectSpread(_objectSpread({}, selectProps), {}, {
33415
33417
  prefixCls: "".concat(selectPrefixCls, "-dropdown-panel").concat(isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : '', " ").concat(rtlCls),
33416
- placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
33418
+ placement: 'bottomLeft',
33417
33419
  popperStyle: catchStyle(),
33418
33420
  defaultVisible: optionShow,
33419
33421
  visible: optionShow,
@@ -39787,8 +39789,7 @@ var ITransferList = function ITransferList(props, ref) {
39787
39789
  pagination = props.pagination,
39788
39790
  footer = props.footer,
39789
39791
  showRemove = props.showRemove,
39790
- placeholder = props.placeholder,
39791
- rtl = props.rtl;
39792
+ placeholder = props.placeholder;
39792
39793
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_11__["useState"])(''),
39793
39794
  _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState, 2),
39794
39795
  filterValue = _useState2[0],
@@ -39891,7 +39892,7 @@ var ITransferList = function ITransferList(props, ref) {
39891
39892
  if (showRemove) {
39892
39893
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_11___default.a.Fragment, null, "".concat(totalCount));
39893
39894
  }
39894
- return rtl ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_11___default.a.Fragment, null, "(".concat(totalCount, "/").concat(selectedCount, ")")) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_11___default.a.Fragment, null, "(".concat(selectedCount, "/").concat(totalCount, ")"));
39895
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_11___default.a.Fragment, null, "(".concat(totalCount, "/").concat(selectedCount, ")"));
39895
39896
  };
39896
39897
  var getCheckStatus = function getCheckStatus(filteredItems) {
39897
39898
  if (checkedKeys.length === 0) {
@@ -40440,8 +40441,7 @@ var InternalTransfer = function InternalTransfer(props, ref) {
40440
40441
  pagination: mergedPagination,
40441
40442
  noDataContent: handleNoDataContent(noDataContent, 'left'),
40442
40443
  footer: footer,
40443
- ref: leftListRef,
40444
- rtl: direction === 'rtl'
40444
+ ref: leftListRef
40445
40445
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement(_operation__WEBPACK_IMPORTED_MODULE_17__["default"], {
40446
40446
  className: "".concat(transferPrefixCls, "-operation"),
40447
40447
  rightActive: rightActive,