@zgfe/business-lib 1.0.26 → 1.0.27-adanalysis.0
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/es/addToPanel/index.js +16 -33
- package/es/assets/iconfont/demo_index.html +3 -647
- package/es/assets/iconfont/iconfont.css +3 -115
- package/es/assets/iconfont/iconfont.js +33 -37
- package/es/assets/iconfont/iconfont.json +0 -196
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/assets/styles/resetAntd.less +2 -7
- package/es/attrConditions/components/stringList.js +1 -1
- package/es/attrConditions/components/valuesList.js +5 -7
- package/es/attrConditions/group.js +4 -4
- package/es/attrConditions/types.d.ts +0 -1
- package/es/attributeSelector/styles/index.less +2 -31
- package/es/attributeSelector/util.js +1 -9
- package/es/chart/demo/bar.js +4 -3
- package/es/chart/demo/data/data.d.ts +0 -7
- package/es/chart/demo/data/data.js +0 -10
- package/es/chart/demo/data/data3.d.ts +2 -0
- package/es/chart/demo/data/data3.js +574 -15
- package/es/chart/demo/map.js +2 -1
- package/es/chart/index.js +2 -2
- package/es/chart/util/chartOptionConfig.d.ts +54 -1
- package/es/chart/util/chartOptionConfig.js +7 -13
- package/es/chart/util/formatData.js +1 -2
- package/es/chart/util/formatOption.js +23 -7
- package/es/chart/util/mapUtil.d.ts +2 -2
- package/es/chart/util/mapUtil.js +75 -59
- package/es/cycleTime/index.d.ts +0 -1
- package/es/cycleTime/index.js +5 -12
- package/es/cycleTime/month.d.ts +0 -1
- package/es/cycleTime/month.js +3 -6
- package/es/cycleTime/styles/month.less +0 -12
- package/es/datePicker/datePicker.js +1 -3
- package/es/{cycleTime/demo/disable.d.ts → datePicker/demo/day.d.ts} +1 -0
- package/es/datePicker/demo/day.js +49 -0
- package/es/datePicker/index.js +5 -3
- package/es/datePicker/styles/index.less +2 -1
- package/es/datePicker/types.d.ts +2 -0
- package/es/datePicker/utils.d.ts +1 -0
- package/es/datePicker/utils.js +37 -1
- package/es/eventSelector/index.js +2 -2
- package/es/eventSelector/listPanel.js +5 -20
- package/es/eventSelector/types.d.ts +1 -1
- package/es/layout/analysisLayout/demo/index.js +1 -5
- package/es/layout/analysisLayout/index.js +5 -5
- package/es/layout/analysisLayout/index.less +6 -0
- package/es/select/demo/multiple.js +2 -3
- package/es/select/handle.js +12 -50
- package/es/select/index.js +9 -44
- package/es/select/overlay.d.ts +1 -1
- package/es/select/overlay.js +5 -4
- package/es/select/styles/handle.less +28 -50
- package/es/select/types.d.ts +0 -6
- package/es/targetConditionGroup/index.js +1 -3
- package/es/targetConditionGroup/types.d.ts +0 -1
- package/es/targetSelector/index.js +0 -13
- package/es/targetSelector/styles/index.less +0 -1
- package/es/userCondition/conditions/styles/eventCondition.less +1 -1
- package/es/userCondition/conditions/styles/tagsCondition.less +1 -1
- package/es/userCondition/conditions/tagsCondition.js +13 -26
- package/es/userCondition/conditions/textDesc.js +8 -29
- package/es/userCondition/demo/index.js +228 -5
- package/es/userCondition/types.d.ts +3 -21
- package/es/userCondition/util.d.ts +1 -23
- package/es/userCondition/util.js +5 -39
- package/es/userTagsSelector/cascaderOverlay.js +42 -132
- package/es/userTagsSelector/demo/index.js +5 -12
- package/es/userTagsSelector/groups/groupOption.js +2 -3
- package/es/userTagsSelector/groups/index.js +11 -18
- package/es/userTagsSelector/groups/styles/option.less +1 -6
- package/es/userTagsSelector/index.js +3 -17
- package/es/userTagsSelector/multipleCheckPanel/checkOption.js +1 -2
- package/es/userTagsSelector/multipleCheckPanel/index.js +16 -7
- package/es/userTagsSelector/styles/cascaderOverlay.less +4 -9
- package/es/userTagsSelector/types.d.ts +10 -1
- package/es/userTagsSelector/util.d.ts +1 -1
- package/es/userTagsSelector/util.js +2 -6
- package/es/utils/ajax.js +1 -5
- package/package.json +3 -3
- package/es/cycleTime/demo/disable.js +0 -17
- package/es/userCondition/demo/mockData.d.ts +0 -85
- package/es/userCondition/demo/mockData.js +0 -546
package/es/addToPanel/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
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
|
-
|
|
7
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
2
|
|
|
9
3
|
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."); }
|
|
@@ -16,7 +10,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
16
10
|
|
|
17
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
12
|
|
|
19
|
-
import { Button, Form, Input, notification } from 'antd';
|
|
13
|
+
import { Button, Form, Input, notification, Skeleton } from 'antd';
|
|
20
14
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
21
15
|
import BizDialog from '../dialog';
|
|
22
16
|
import BizSelect from '../select';
|
|
@@ -49,10 +43,15 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
49
43
|
formData = _useState6[0],
|
|
50
44
|
setFormData = _useState6[1];
|
|
51
45
|
|
|
52
|
-
var _useState7 = useState(
|
|
46
|
+
var _useState7 = useState(true),
|
|
53
47
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
54
|
-
|
|
55
|
-
|
|
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];
|
|
56
55
|
|
|
57
56
|
var _useContext = useContext(BizGlobalDataContext),
|
|
58
57
|
currentApp = _useContext.currentApp,
|
|
@@ -80,14 +79,14 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
80
79
|
notification.error({
|
|
81
80
|
message: '获取看板列表失败'
|
|
82
81
|
});
|
|
82
|
+
setReady(false);
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
setGroupList(res.panels);
|
|
87
|
+
setReady(false);
|
|
87
88
|
}).catch(function () {
|
|
88
|
-
|
|
89
|
-
message: '获取看板列表失败'
|
|
90
|
-
});
|
|
89
|
+
setReady(false);
|
|
91
90
|
});
|
|
92
91
|
}
|
|
93
92
|
|
|
@@ -174,24 +173,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
174
173
|
}
|
|
175
174
|
}, form.panel.name || ((_result$panel2 = result.panel) === null || _result$panel2 === void 0 ? void 0 : _result$panel2.name)), "\u6210\u529F")
|
|
176
175
|
});
|
|
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
|
-
}
|
|
176
|
+
if (props.onOk) props.onOk(props.type === 'edit' ? data : result.panel_element);
|
|
195
177
|
} else if (result.flag === -101) {
|
|
196
178
|
notification.error({
|
|
197
179
|
message: '添加失败',
|
|
@@ -215,6 +197,8 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
215
197
|
onCancel: props.onCancel,
|
|
216
198
|
onOk: onAdd,
|
|
217
199
|
confirmLoading: loading
|
|
200
|
+
}, /*#__PURE__*/React.createElement(Skeleton, {
|
|
201
|
+
loading: ready
|
|
218
202
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
219
203
|
ref: refForm,
|
|
220
204
|
onFinish: onSubmit,
|
|
@@ -261,7 +245,6 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
261
245
|
}]
|
|
262
246
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
263
247
|
placeholder: "\u6307\u6807\u540D\u79F0",
|
|
264
|
-
autoComplete: "off",
|
|
265
248
|
allowClear: {
|
|
266
249
|
clearIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
267
250
|
type: 'qingchu'
|
|
@@ -292,7 +275,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
292
275
|
}, /*#__PURE__*/React.createElement(RadioGroup, {
|
|
293
276
|
options: props.showOptions
|
|
294
277
|
})) : null;
|
|
295
|
-
})));
|
|
278
|
+
}))));
|
|
296
279
|
};
|
|
297
280
|
|
|
298
281
|
BizAddToPanel.defaultProps = {
|