@zgfe/business-lib 1.0.27-adanalysis.0 → 1.0.27-tags.1

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 (86) hide show
  1. package/es/addToPanel/index.js +35 -17
  2. package/es/addToPanel/styles/index.less +7 -0
  3. package/es/addToScene/index.js +2 -1
  4. package/es/addToScene/styles/index.less +7 -0
  5. package/es/assets/iconfont/demo_index.html +647 -3
  6. package/es/assets/iconfont/iconfont.css +115 -3
  7. package/es/assets/iconfont/iconfont.js +37 -33
  8. package/es/assets/iconfont/iconfont.json +196 -0
  9. package/es/assets/iconfont/iconfont.ttf +0 -0
  10. package/es/assets/iconfont/iconfont.woff +0 -0
  11. package/es/assets/iconfont/iconfont.woff2 +0 -0
  12. package/es/assets/styles/resetAntd.less +10 -18
  13. package/es/attrConditions/components/stringList.js +1 -1
  14. package/es/attrConditions/components/valuesList.js +7 -5
  15. package/es/attrConditions/group.js +4 -4
  16. package/es/attrConditions/types.d.ts +1 -0
  17. package/es/attributeSelector/styles/index.less +31 -2
  18. package/es/attributeSelector/util.js +9 -1
  19. package/es/chart/demo/bar.js +3 -4
  20. package/es/chart/demo/data/data.d.ts +7 -0
  21. package/es/chart/demo/data/data.js +10 -0
  22. package/es/chart/demo/data/data3.d.ts +0 -2
  23. package/es/chart/demo/data/data3.js +15 -574
  24. package/es/chart/demo/map.js +1 -2
  25. package/es/chart/index.js +2 -2
  26. package/es/chart/util/chartOptionConfig.d.ts +1 -54
  27. package/es/chart/util/chartOptionConfig.js +13 -7
  28. package/es/chart/util/formatData.js +2 -1
  29. package/es/chart/util/formatOption.js +7 -23
  30. package/es/chart/util/mapUtil.d.ts +2 -2
  31. package/es/chart/util/mapUtil.js +59 -75
  32. package/es/{datePicker/demo/day.d.ts → cycleTime/demo/disable.d.ts} +0 -1
  33. package/es/cycleTime/demo/disable.js +17 -0
  34. package/es/cycleTime/index.d.ts +1 -0
  35. package/es/cycleTime/index.js +12 -5
  36. package/es/cycleTime/month.d.ts +1 -0
  37. package/es/cycleTime/month.js +6 -3
  38. package/es/cycleTime/styles/month.less +12 -0
  39. package/es/datePicker/datePicker.js +3 -1
  40. package/es/datePicker/index.js +3 -5
  41. package/es/datePicker/styles/index.less +1 -2
  42. package/es/datePicker/types.d.ts +0 -2
  43. package/es/datePicker/utils.d.ts +0 -1
  44. package/es/datePicker/utils.js +1 -37
  45. package/es/eventSelector/index.js +2 -2
  46. package/es/eventSelector/listPanel.js +20 -5
  47. package/es/eventSelector/types.d.ts +1 -1
  48. package/es/layout/analysisLayout/demo/index.js +5 -1
  49. package/es/layout/analysisLayout/index.js +5 -5
  50. package/es/layout/analysisLayout/index.less +0 -6
  51. package/es/select/demo/multiple.js +1 -1
  52. package/es/select/handle.js +57 -12
  53. package/es/select/index.js +45 -9
  54. package/es/select/overlay.d.ts +1 -1
  55. package/es/select/overlay.js +4 -5
  56. package/es/select/styles/handle.less +51 -29
  57. package/es/select/types.d.ts +7 -0
  58. package/es/targetConditionGroup/index.js +3 -1
  59. package/es/targetConditionGroup/types.d.ts +1 -0
  60. package/es/targetSelector/index.js +13 -0
  61. package/es/targetSelector/styles/index.less +1 -0
  62. package/es/userCondition/conditions/styles/eventCondition.less +1 -1
  63. package/es/userCondition/conditions/styles/tagsCondition.less +1 -1
  64. package/es/userCondition/conditions/tagsCondition.js +26 -13
  65. package/es/userCondition/conditions/textDesc.js +29 -8
  66. package/es/userCondition/demo/index.js +5 -228
  67. package/es/userCondition/demo/mockData.d.ts +85 -0
  68. package/es/userCondition/demo/mockData.js +546 -0
  69. package/es/userCondition/types.d.ts +21 -3
  70. package/es/userCondition/util.d.ts +23 -1
  71. package/es/userCondition/util.js +39 -5
  72. package/es/userTagsSelector/cascaderOverlay.js +132 -42
  73. package/es/userTagsSelector/demo/index.js +12 -5
  74. package/es/userTagsSelector/groups/groupOption.js +3 -2
  75. package/es/userTagsSelector/groups/index.js +18 -11
  76. package/es/userTagsSelector/groups/styles/option.less +6 -1
  77. package/es/userTagsSelector/index.js +17 -3
  78. package/es/userTagsSelector/multipleCheckPanel/checkOption.js +2 -1
  79. package/es/userTagsSelector/multipleCheckPanel/index.js +7 -16
  80. package/es/userTagsSelector/styles/cascaderOverlay.less +9 -4
  81. package/es/userTagsSelector/types.d.ts +1 -10
  82. package/es/userTagsSelector/util.d.ts +1 -1
  83. package/es/userTagsSelector/util.js +6 -2
  84. package/es/utils/ajax.js +5 -1
  85. package/package.json +3 -3
  86. package/es/datePicker/demo/day.js +0 -49
@@ -1,3 +1,9 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
+
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
1
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
8
 
3
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -10,7 +16,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
10
16
 
11
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
18
 
13
- import { Button, Form, Input, notification, Skeleton } from 'antd';
19
+ import { Button, Form, Input, notification } from 'antd';
14
20
  import React, { useContext, useEffect, useRef, useState } from 'react';
15
21
  import BizDialog from '../dialog';
16
22
  import BizSelect from '../select';
@@ -43,15 +49,10 @@ var BizAddToPanel = function BizAddToPanel(props) {
43
49
  formData = _useState6[0],
44
50
  setFormData = _useState6[1];
45
51
 
46
- var _useState7 = useState(true),
52
+ var _useState7 = useState(false),
47
53
  _useState8 = _slicedToArray(_useState7, 2),
48
- ready = _useState8[0],
49
- setReady = _useState8[1];
50
-
51
- var _useState9 = useState(false),
52
- _useState10 = _slicedToArray(_useState9, 2),
53
- loading = _useState10[0],
54
- setLoading = _useState10[1];
54
+ loading = _useState8[0],
55
+ setLoading = _useState8[1];
55
56
 
56
57
  var _useContext = useContext(BizGlobalDataContext),
57
58
  currentApp = _useContext.currentApp,
@@ -79,14 +80,14 @@ var BizAddToPanel = function BizAddToPanel(props) {
79
80
  notification.error({
80
81
  message: '获取看板列表失败'
81
82
  });
82
- setReady(false);
83
83
  return;
84
84
  }
85
85
 
86
86
  setGroupList(res.panels);
87
- setReady(false);
88
87
  }).catch(function () {
89
- setReady(false);
88
+ notification.error({
89
+ message: '获取看板列表失败'
90
+ });
90
91
  });
91
92
  }
92
93
 
@@ -173,7 +174,24 @@ var BizAddToPanel = function BizAddToPanel(props) {
173
174
  }
174
175
  }, form.panel.name || ((_result$panel2 = result.panel) === null || _result$panel2 === void 0 ? void 0 : _result$panel2.name)), "\u6210\u529F")
175
176
  });
176
- if (props.onOk) props.onOk(props.type === 'edit' ? data : result.panel_element);
177
+
178
+ if (props.onOk) {
179
+ var responseData = data;
180
+
181
+ if (props.type !== 'edit') {
182
+ var _result$panel3;
183
+
184
+ responseData = _objectSpread({
185
+ panelId: ((_result$panel3 = result.panel) === null || _result$panel3 === void 0 ? void 0 : _result$panel3.id) || form.panel.id
186
+ }, result.panel_element);
187
+
188
+ if (form.panel.id === 0) {
189
+ responseData.panel = _objectSpread({}, result.panel);
190
+ }
191
+ }
192
+
193
+ props.onOk(responseData);
194
+ }
177
195
  } else if (result.flag === -101) {
178
196
  notification.error({
179
197
  message: '添加失败',
@@ -196,9 +214,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
196
214
  maskClosable: false,
197
215
  onCancel: props.onCancel,
198
216
  onOk: onAdd,
199
- confirmLoading: loading
200
- }, /*#__PURE__*/React.createElement(Skeleton, {
201
- loading: ready
217
+ confirmLoading: loading,
218
+ className: classPrefix
202
219
  }, /*#__PURE__*/React.createElement(Form, {
203
220
  ref: refForm,
204
221
  onFinish: onSubmit,
@@ -245,6 +262,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
245
262
  }]
246
263
  }, /*#__PURE__*/React.createElement(Input, {
247
264
  placeholder: "\u6307\u6807\u540D\u79F0",
265
+ autoComplete: "off",
248
266
  allowClear: {
249
267
  clearIcon: /*#__PURE__*/React.createElement(IconFont, {
250
268
  type: 'qingchu'
@@ -275,7 +293,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
275
293
  }, /*#__PURE__*/React.createElement(RadioGroup, {
276
294
  options: props.showOptions
277
295
  })) : null;
278
- }))));
296
+ })));
279
297
  };
280
298
 
281
299
  BizAddToPanel.defaultProps = {
@@ -6,4 +6,11 @@
6
6
  &-show {
7
7
  transform: translateY(6px);
8
8
  }
9
+ .ant-modal-body {
10
+ max-height: 400px;
11
+ max-height: 400px !important;
12
+ padding-top: @padding-xs !important;
13
+ padding-bottom: 0 !important;
14
+ overflow: auto !important;
15
+ }
9
16
  }
@@ -141,7 +141,8 @@ var BizAddToScene = function BizAddToScene(props) {
141
141
  maskClosable: false,
142
142
  onOk: onSave,
143
143
  onCancel: onCancel,
144
- confirmLoading: loading
144
+ confirmLoading: loading,
145
+ className: classPrefix
145
146
  }, /*#__PURE__*/React.createElement(Form, {
146
147
  autoComplete: "off",
147
148
  ref: refForm,
@@ -20,4 +20,11 @@
20
20
  box-shadow: none;
21
21
  }
22
22
  }
23
+ .ant-modal-body {
24
+ max-height: 400px;
25
+ max-height: 400px !important;
26
+ padding-top: @padding-xs !important;
27
+ padding-bottom: 0 !important;
28
+ overflow: auto !important;
29
+ }
23
30
  }