@kdcloudjs/kdesign 1.8.34 → 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.
- package/dist/kdesign-complete.less +7 -0
- package/dist/kdesign.css +4 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +13 -7
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +4 -4
- package/dist/kdesign.min.js.map +1 -1
- package/es/city-picker/city-picker.js +1 -1
- package/es/color-picker/color-picker-panel.js +6 -3
- package/es/color-picker/style/index.css +3 -0
- package/es/color-picker/style/index.less +7 -0
- package/es/dropdown/dropdown.js +1 -1
- package/es/locale/en-US.d.ts +3 -0
- package/es/locale/en-US.js +3 -0
- package/es/locale/locale.d.ts +3 -0
- package/es/locale/zh-CN.d.ts +3 -0
- package/es/locale/zh-CN.js +3 -0
- package/es/select/select.js +1 -1
- package/lib/city-picker/city-picker.js +1 -1
- package/lib/color-picker/color-picker-panel.js +6 -3
- package/lib/color-picker/style/index.css +3 -0
- package/lib/color-picker/style/index.less +7 -0
- package/lib/dropdown/dropdown.js +1 -1
- package/lib/locale/en-US.d.ts +3 -0
- package/lib/locale/en-US.js +3 -0
- package/lib/locale/locale.d.ts +3 -0
- package/lib/locale/zh-CN.d.ts +3 -0
- package/lib/locale/zh-CN.js +3 -0
- package/lib/select/select.js +1 -1
- package/package.json +1 -1
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.8.
|
|
3
|
+
* @kdcloudjs/kdesign v1.8.35
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -8728,7 +8728,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
8728
8728
|
};
|
|
8729
8729
|
var popperProps = _objectSpread(_objectSpread({}, selectProps), {}, {
|
|
8730
8730
|
prefixCls: classnames__WEBPACK_IMPORTED_MODULE_24___default()("".concat(selectPrefixCls, "-dropdown"), rtlCls),
|
|
8731
|
-
placement:
|
|
8731
|
+
placement: 'bottomLeft',
|
|
8732
8732
|
popperStyle: catchStyle(),
|
|
8733
8733
|
defaultVisible: optionShow,
|
|
8734
8734
|
visible: optionShow,
|
|
@@ -9890,6 +9890,9 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
9890
9890
|
prefixCls = _useContext.prefixCls,
|
|
9891
9891
|
locale = _useContext.locale,
|
|
9892
9892
|
direction = _useContext.direction;
|
|
9893
|
+
var colorPickerLangMsg = locale.getCompLangMsg({
|
|
9894
|
+
componentName: 'ColorPicker'
|
|
9895
|
+
});
|
|
9893
9896
|
var colorPickerPrefixCls = getPrefixCls(prefixCls, 'color-picker');
|
|
9894
9897
|
var panelCls = classnames__WEBPACK_IMPORTED_MODULE_20___default()("".concat(colorPickerPrefixCls, "-panel"));
|
|
9895
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));
|
|
@@ -10249,7 +10252,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
10249
10252
|
onClick: handleClearClick
|
|
10250
10253
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("span", {
|
|
10251
10254
|
className: panelClearColorText
|
|
10252
|
-
},
|
|
10255
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.noColor)), functionalColor && showSwitch && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
|
|
10253
10256
|
className: panelFollowThemeCls
|
|
10254
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"], {
|
|
10255
10258
|
checked: isFollow,
|
|
@@ -10316,7 +10319,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
10316
10319
|
className: historicalColorBoxCls
|
|
10317
10320
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
|
|
10318
10321
|
className: historicalColorBoxTitleCls
|
|
10319
|
-
},
|
|
10322
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.recentColor), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
|
|
10320
10323
|
className: historicalColorBoxContainerCls
|
|
10321
10324
|
}, checkUserPresetColor(historicalColor) && Object(_utils_colorFormat__WEBPACK_IMPORTED_MODULE_23__["presetColorToHEX"])(historicalColor).map(function (colorValue, i) {
|
|
10322
10325
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("li", {
|
|
@@ -10336,7 +10339,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
10336
10339
|
className: colorBoxCls
|
|
10337
10340
|
}, historicalColor && (historicalColor === null || historicalColor === void 0 ? void 0 : historicalColor.length) > 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
|
|
10338
10341
|
className: colorBoxTitleCls
|
|
10339
|
-
},
|
|
10342
|
+
}, colorPickerLangMsg === null || colorPickerLangMsg === void 0 ? void 0 : colorPickerLangMsg.recommendColor), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", {
|
|
10340
10343
|
className: colorBoxContainerCls
|
|
10341
10344
|
}, (checkUserPresetColor(presetColor) && Object(_utils_colorFormat__WEBPACK_IMPORTED_MODULE_23__["presetColorToHEX"])(presetColor) || _constant_systemPresetColor__WEBPACK_IMPORTED_MODULE_22__["systemPresetColor"]).map(function (colorValue, i) {
|
|
10342
10345
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("li", {
|
|
@@ -17538,7 +17541,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
|
|
|
17538
17541
|
animation: 'none'
|
|
17539
17542
|
}, popperStyle),
|
|
17540
17543
|
onVisibleChange: handleVisibleChange,
|
|
17541
|
-
placement: placement
|
|
17544
|
+
placement: typeof props.placement !== 'undefined' ? placement : direction === 'rtl' ? 'bottomRight' : placement
|
|
17542
17545
|
});
|
|
17543
17546
|
return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_16__["default"])(child, menuElement, popperProps);
|
|
17544
17547
|
});
|
|
@@ -25499,6 +25502,9 @@ var locale = _objectSpread(_objectSpread({
|
|
|
25499
25502
|
'CityPicker.tabsInternation': '国际/中国港澳台',
|
|
25500
25503
|
'CityPicker.title': '城市',
|
|
25501
25504
|
'ColorPicker.followFunctionalColor': '跟随功能色',
|
|
25505
|
+
'ColorPicker.noColor': '无颜色填充',
|
|
25506
|
+
'ColorPicker.recentColor': '最近使用颜色',
|
|
25507
|
+
'ColorPicker.recommendColor': '推荐色',
|
|
25502
25508
|
'Search.placeholder': '请输入需要搜索的内容',
|
|
25503
25509
|
'Search.desc': ['空格代表"或",回车代表"且"'],
|
|
25504
25510
|
'Search.nplDesc': '智能搜索',
|
|
@@ -33409,7 +33415,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
33409
33415
|
};
|
|
33410
33416
|
var popperProps = _objectSpread(_objectSpread({}, selectProps), {}, {
|
|
33411
33417
|
prefixCls: "".concat(selectPrefixCls, "-dropdown-panel").concat(isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : '', " ").concat(rtlCls),
|
|
33412
|
-
placement:
|
|
33418
|
+
placement: 'bottomLeft',
|
|
33413
33419
|
popperStyle: catchStyle(),
|
|
33414
33420
|
defaultVisible: optionShow,
|
|
33415
33421
|
visible: optionShow,
|