@kdcloudjs/kdesign 1.8.17 → 1.8.19

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.
@@ -409,6 +409,8 @@ var InternalSelect = function InternalSelect(props, ref) {
409
409
  break;
410
410
  }
411
411
  case KeyCode.ESC:
412
+ e.stopPropagation();
413
+ e.nativeEvent.stopImmediatePropagation();
412
414
  handleVisibleChange(false);
413
415
  break;
414
416
  default:
@@ -40,6 +40,7 @@ declare const locale: {
40
40
  'Pagination.order': string;
41
41
  'Pagination.forward': string;
42
42
  'Pagination.backward': string;
43
+ 'Pagination.confirm': string;
43
44
  'Transfer.selectAll': string;
44
45
  'Transfer.searchPlaceholder': string[];
45
46
  'Transfer.leftTitle': string;
@@ -40,6 +40,7 @@ var locale = {
40
40
  'Pagination.order': 'Page {order}',
41
41
  'Pagination.forward': 'Forward 5 pages',
42
42
  'Pagination.backward': 'Backward 5 pages',
43
+ 'Pagination.confirm': 'GO',
43
44
  'Transfer.selectAll': 'Select all',
44
45
  'Transfer.searchPlaceholder': ['Please enter search content', 'Please enter search content'],
45
46
  'Transfer.leftTitle': 'Available list',
@@ -46,6 +46,7 @@ declare class LocaleCache {
46
46
  'Pagination.order': string;
47
47
  'Pagination.forward': string;
48
48
  'Pagination.backward': string;
49
+ 'Pagination.confirm': string;
49
50
  'Transfer.selectAll': string;
50
51
  'Transfer.searchPlaceholder': string[];
51
52
  'Transfer.leftTitle': string;
@@ -61,10 +62,10 @@ declare class LocaleCache {
61
62
  'QuickSearch.nplDesc': string;
62
63
  'QuickSearch.emptyTip': string;
63
64
  'QuickSearch.or': string;
64
- 'CityPicker.domestic': string;
65
- 'CityPicker.common': string; /**
65
+ 'CityPicker.domestic': string; /**
66
66
  * 获取当前语言类型
67
67
  */
68
+ 'CityPicker.common': string;
68
69
  'CityPicker.emptyText': string;
69
70
  'CityPicker.commonEmptyText': string;
70
71
  'CityPicker.tabsDomestic': string;
@@ -20,6 +20,7 @@ declare const locale: {
20
20
  'Pagination.order': string;
21
21
  'Pagination.forward': string;
22
22
  'Pagination.backward': string;
23
+ 'Pagination.confirm': string;
23
24
  'Transfer.selectAll': string;
24
25
  'Transfer.searchPlaceholder': string[];
25
26
  'Transfer.leftTitle': string;
@@ -24,6 +24,7 @@ var locale = _extends(_extends({
24
24
  'Pagination.order': '第 {order} 页',
25
25
  'Pagination.forward': '向前 5 页',
26
26
  'Pagination.backward': '向后 5 页',
27
+ 'Pagination.confirm': '确定',
27
28
  'Transfer.selectAll': '全选',
28
29
  'Transfer.searchPlaceholder': ['请输入需要搜索的内容', '请输入需要搜索的内容'],
29
30
  'Transfer.leftTitle': '可选列表',
package/es/modal/modal.js CHANGED
@@ -85,6 +85,8 @@ var InternalModal = function InternalModal(props, ref) {
85
85
  customPrefixcls = modalProps.prefixCls,
86
86
  title = modalProps.title,
87
87
  titleIcon = modalProps.titleIcon,
88
+ titleClassName = modalProps.titleClassName,
89
+ titleStyle = modalProps.titleStyle,
88
90
  type = modalProps.type,
89
91
  visible = modalProps.visible,
90
92
  width = modalProps.width,
@@ -95,7 +97,7 @@ var InternalModal = function InternalModal(props, ref) {
95
97
  bounds = modalProps.bounds,
96
98
  overroll = modalProps.overroll,
97
99
  resizable = modalProps.resizable,
98
- others = __rest(modalProps, ["body", "bodyClassName", "bodyStyle", "cancelButtonProps", "cancelText", "className", "closable", "closeIcon", "destroyOnClose", "draggable", "focusTriggerAfterClose", "footer", "footerClassName", "footerStyle", "footerBtnOrder", "getContainer", "height", "keyboard", "mask", "maskClosable", "maskStyle", "maskClassName", "okButtonProps", "okText", "onCancel", "onOk", "prefixCls", "title", "titleIcon", "type", "visible", "width", "showline", "onDragStart", "onDrag", "onDragStop", "bounds", "overroll", "resizable"]);
100
+ others = __rest(modalProps, ["body", "bodyClassName", "bodyStyle", "cancelButtonProps", "cancelText", "className", "closable", "closeIcon", "destroyOnClose", "draggable", "focusTriggerAfterClose", "footer", "footerClassName", "footerStyle", "footerBtnOrder", "getContainer", "height", "keyboard", "mask", "maskClosable", "maskStyle", "maskClassName", "okButtonProps", "okText", "onCancel", "onOk", "prefixCls", "title", "titleIcon", "titleClassName", "titleStyle", "type", "visible", "width", "showline", "onDragStart", "onDrag", "onDragStop", "bounds", "overroll", "resizable"]);
99
101
  var isForceController = visible !== undefined;
100
102
  var _useState = useState(isForceController ? visible : true),
101
103
  _useState2 = _slicedToArray(_useState, 2),
@@ -371,7 +373,7 @@ var InternalModal = function InternalModal(props, ref) {
371
373
  };
372
374
  var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
373
375
  var modalClasses = classNames(modalPrefixCls, className, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container"), true), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-ie"), isIE), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
374
- var headerClass = "".concat(modalPrefixCls, "-header");
376
+ var headerClass = classNames("".concat(modalPrefixCls, "-header"), titleClassName);
375
377
  var container = React.createElement("div", {
376
378
  className: classNames((_classNames4 = {}, _defineProperty(_classNames4, "".concat(modalPrefixCls, "-container-box"), true), _defineProperty(_classNames4, "".concat(modalPrefixCls, "-has-container-box"), modalContainer && !overroll), _defineProperty(_classNames4, "".concat(modalPrefixCls, "-showline"), showline), _classNames4)),
377
379
  style: {
@@ -406,7 +408,8 @@ var InternalModal = function InternalModal(props, ref) {
406
408
  "data-type": "nw",
407
409
  className: _concatInstanceProperty(_context9 = "".concat(modalPrefixCls, "-resise-handle ")).call(_context9, modalPrefixCls, "-resise-nw")
408
410
  })), React.createElement("div", {
409
- className: headerClass
411
+ className: headerClass,
412
+ style: titleStyle
410
413
  }, React.createElement("div", {
411
414
  className: "".concat(modalPrefixCls, "-title-container")
412
415
  }, titleIcon !== undefined ? titleIcon : type !== 'normal' && React.createElement("div", {
@@ -356,7 +356,7 @@ var Pagination = function Pagination(props) {
356
356
  className: "".concat(prefixCls, "-jumper-button"),
357
357
  disabled: disabled,
358
358
  onClick: handleConfirmCurrentPage
359
- }, "GO")), showSizeSelector && React.createElement("div", {
359
+ }, paginationLangMsg.confirm)), showSizeSelector && React.createElement("div", {
360
360
  className: "".concat(prefixCls, "-options")
361
361
  }, locale.getLangMsg('Pagination', 'perPage', {
362
362
  size: React.createElement(Dropdown, _extends({
@@ -696,7 +696,7 @@
696
696
  list-style: none;
697
697
  -webkit-font-feature-settings: 'tnum';
698
698
  font-feature-settings: 'tnum';
699
- width: var(--kd-c-pagination-sizing-square, 24px);
699
+ padding: 0 var(--kd-c-pagination-jumper-spacing-padding-horizontal, 4px);
700
700
  height: var(--kd-c-pagination-sizing-square, 24px);
701
701
  margin-left: var(--kd-c-pagination-button-spacing, 4px);
702
702
  display: -webkit-inline-box;
@@ -506,7 +506,7 @@
506
506
 
507
507
  .@{pagination-jumper-prefix-cls}-button {
508
508
  .reset-component;
509
- width: @pagination-size;
509
+ padding: 0 @pagination-jumper-spacing;
510
510
  height: @pagination-size;
511
511
  margin-left: @pagination-button-spacing;
512
512
  display: inline-flex;
@@ -24,6 +24,7 @@
24
24
  // spacing
25
25
  @pagination-button-spacing: var(~'@{pagination-custom-prefix}-button-spacing', 4px);
26
26
  @pagination-dropdown-item-spacing-horizontal: var(~'@{pagination-custom-prefix}-dropdown-item-spacing-padding-horizontal', 24px);
27
+ @pagination-jumper-spacing: var(~'@{pagination-custom-prefix}-jumper-spacing-padding-horizontal', 4px);
27
28
 
28
29
 
29
30
 
@@ -421,6 +421,8 @@ var InternalSelect = function InternalSelect(props, ref) {
421
421
  break;
422
422
  }
423
423
  case _KeyCode.default.ESC:
424
+ e.stopPropagation();
425
+ e.nativeEvent.stopImmediatePropagation();
424
426
  handleVisibleChange(false);
425
427
  break;
426
428
  default:
@@ -40,6 +40,7 @@ declare const locale: {
40
40
  'Pagination.order': string;
41
41
  'Pagination.forward': string;
42
42
  'Pagination.backward': string;
43
+ 'Pagination.confirm': string;
43
44
  'Transfer.selectAll': string;
44
45
  'Transfer.searchPlaceholder': string[];
45
46
  'Transfer.leftTitle': string;
@@ -46,6 +46,7 @@ var locale = {
46
46
  'Pagination.order': 'Page {order}',
47
47
  'Pagination.forward': 'Forward 5 pages',
48
48
  'Pagination.backward': 'Backward 5 pages',
49
+ 'Pagination.confirm': 'GO',
49
50
  'Transfer.selectAll': 'Select all',
50
51
  'Transfer.searchPlaceholder': ['Please enter search content', 'Please enter search content'],
51
52
  'Transfer.leftTitle': 'Available list',
@@ -46,6 +46,7 @@ declare class LocaleCache {
46
46
  'Pagination.order': string;
47
47
  'Pagination.forward': string;
48
48
  'Pagination.backward': string;
49
+ 'Pagination.confirm': string;
49
50
  'Transfer.selectAll': string;
50
51
  'Transfer.searchPlaceholder': string[];
51
52
  'Transfer.leftTitle': string;
@@ -61,10 +62,10 @@ declare class LocaleCache {
61
62
  'QuickSearch.nplDesc': string;
62
63
  'QuickSearch.emptyTip': string;
63
64
  'QuickSearch.or': string;
64
- 'CityPicker.domestic': string;
65
- 'CityPicker.common': string; /**
65
+ 'CityPicker.domestic': string; /**
66
66
  * 获取当前语言类型
67
67
  */
68
+ 'CityPicker.common': string;
68
69
  'CityPicker.emptyText': string;
69
70
  'CityPicker.commonEmptyText': string;
70
71
  'CityPicker.tabsDomestic': string;
@@ -20,6 +20,7 @@ declare const locale: {
20
20
  'Pagination.order': string;
21
21
  'Pagination.forward': string;
22
22
  'Pagination.backward': string;
23
+ 'Pagination.confirm': string;
23
24
  'Transfer.selectAll': string;
24
25
  'Transfer.searchPlaceholder': string[];
25
26
  'Transfer.leftTitle': string;
@@ -31,6 +31,7 @@ var locale = (0, _extends2.default)((0, _extends2.default)({
31
31
  'Pagination.order': '第 {order} 页',
32
32
  'Pagination.forward': '向前 5 页',
33
33
  'Pagination.backward': '向后 5 页',
34
+ 'Pagination.confirm': '确定',
34
35
  'Transfer.selectAll': '全选',
35
36
  'Transfer.searchPlaceholder': ['请输入需要搜索的内容', '请输入需要搜索的内容'],
36
37
  'Transfer.leftTitle': '可选列表',
@@ -99,6 +99,8 @@ var InternalModal = function InternalModal(props, ref) {
99
99
  customPrefixcls = modalProps.prefixCls,
100
100
  title = modalProps.title,
101
101
  titleIcon = modalProps.titleIcon,
102
+ titleClassName = modalProps.titleClassName,
103
+ titleStyle = modalProps.titleStyle,
102
104
  type = modalProps.type,
103
105
  visible = modalProps.visible,
104
106
  width = modalProps.width,
@@ -109,7 +111,7 @@ var InternalModal = function InternalModal(props, ref) {
109
111
  bounds = modalProps.bounds,
110
112
  overroll = modalProps.overroll,
111
113
  resizable = modalProps.resizable,
112
- others = __rest(modalProps, ["body", "bodyClassName", "bodyStyle", "cancelButtonProps", "cancelText", "className", "closable", "closeIcon", "destroyOnClose", "draggable", "focusTriggerAfterClose", "footer", "footerClassName", "footerStyle", "footerBtnOrder", "getContainer", "height", "keyboard", "mask", "maskClosable", "maskStyle", "maskClassName", "okButtonProps", "okText", "onCancel", "onOk", "prefixCls", "title", "titleIcon", "type", "visible", "width", "showline", "onDragStart", "onDrag", "onDragStop", "bounds", "overroll", "resizable"]);
114
+ others = __rest(modalProps, ["body", "bodyClassName", "bodyStyle", "cancelButtonProps", "cancelText", "className", "closable", "closeIcon", "destroyOnClose", "draggable", "focusTriggerAfterClose", "footer", "footerClassName", "footerStyle", "footerBtnOrder", "getContainer", "height", "keyboard", "mask", "maskClosable", "maskStyle", "maskClassName", "okButtonProps", "okText", "onCancel", "onOk", "prefixCls", "title", "titleIcon", "titleClassName", "titleStyle", "type", "visible", "width", "showline", "onDragStart", "onDrag", "onDragStop", "bounds", "overroll", "resizable"]);
113
115
  var isForceController = visible !== undefined;
114
116
  var _useState = (0, _react.useState)(isForceController ? visible : true),
115
117
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -385,7 +387,7 @@ var InternalModal = function InternalModal(props, ref) {
385
387
  };
386
388
  var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
387
389
  var modalClasses = (0, _classnames.default)(modalPrefixCls, className, (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container"), true), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-ie"), _ieUtil.isIE), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
388
- var headerClass = "".concat(modalPrefixCls, "-header");
390
+ var headerClass = (0, _classnames.default)("".concat(modalPrefixCls, "-header"), titleClassName);
389
391
  var container = _react.default.createElement("div", {
390
392
  className: (0, _classnames.default)((_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, "".concat(modalPrefixCls, "-container-box"), true), (0, _defineProperty2.default)(_classNames4, "".concat(modalPrefixCls, "-has-container-box"), modalContainer && !overroll), (0, _defineProperty2.default)(_classNames4, "".concat(modalPrefixCls, "-showline"), showline), _classNames4)),
391
393
  style: {
@@ -420,7 +422,8 @@ var InternalModal = function InternalModal(props, ref) {
420
422
  "data-type": "nw",
421
423
  className: (0, _concat.default)(_context9 = "".concat(modalPrefixCls, "-resise-handle ")).call(_context9, modalPrefixCls, "-resise-nw")
422
424
  })), _react.default.createElement("div", {
423
- className: headerClass
425
+ className: headerClass,
426
+ style: titleStyle
424
427
  }, _react.default.createElement("div", {
425
428
  className: "".concat(modalPrefixCls, "-title-container")
426
429
  }, titleIcon !== undefined ? titleIcon : type !== 'normal' && _react.default.createElement("div", {
@@ -370,7 +370,7 @@ var Pagination = function Pagination(props) {
370
370
  className: "".concat(prefixCls, "-jumper-button"),
371
371
  disabled: disabled,
372
372
  onClick: handleConfirmCurrentPage
373
- }, "GO")), showSizeSelector && React.createElement("div", {
373
+ }, paginationLangMsg.confirm)), showSizeSelector && React.createElement("div", {
374
374
  className: "".concat(prefixCls, "-options")
375
375
  }, locale.getLangMsg('Pagination', 'perPage', {
376
376
  size: React.createElement(_dropdown.default, (0, _extends2.default)({
@@ -696,7 +696,7 @@
696
696
  list-style: none;
697
697
  -webkit-font-feature-settings: 'tnum';
698
698
  font-feature-settings: 'tnum';
699
- width: var(--kd-c-pagination-sizing-square, 24px);
699
+ padding: 0 var(--kd-c-pagination-jumper-spacing-padding-horizontal, 4px);
700
700
  height: var(--kd-c-pagination-sizing-square, 24px);
701
701
  margin-left: var(--kd-c-pagination-button-spacing, 4px);
702
702
  display: -webkit-inline-box;
@@ -506,7 +506,7 @@
506
506
 
507
507
  .@{pagination-jumper-prefix-cls}-button {
508
508
  .reset-component;
509
- width: @pagination-size;
509
+ padding: 0 @pagination-jumper-spacing;
510
510
  height: @pagination-size;
511
511
  margin-left: @pagination-button-spacing;
512
512
  display: inline-flex;
@@ -24,6 +24,7 @@
24
24
  // spacing
25
25
  @pagination-button-spacing: var(~'@{pagination-custom-prefix}-button-spacing', 4px);
26
26
  @pagination-dropdown-item-spacing-horizontal: var(~'@{pagination-custom-prefix}-dropdown-item-spacing-padding-horizontal', 24px);
27
+ @pagination-jumper-spacing: var(~'@{pagination-custom-prefix}-jumper-spacing-padding-horizontal', 4px);
27
28
 
28
29
 
29
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.8.17",
3
+ "version": "1.8.19",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [