@zgfe/business-lib 1.0.27-adanalysis.0 → 1.0.27-adanalysis.2
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 +33 -16
- package/es/assets/iconfont/demo_index.html +647 -3
- package/es/assets/iconfont/iconfont.css +115 -3
- package/es/assets/iconfont/iconfont.js +37 -33
- package/es/assets/iconfont/iconfont.json +196 -0
- 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 +7 -2
- package/es/attrConditions/components/stringList.js +1 -1
- package/es/attrConditions/components/valuesList.js +7 -5
- package/es/attrConditions/group.js +4 -4
- package/es/attrConditions/types.d.ts +1 -0
- package/es/attributeSelector/styles/index.less +31 -2
- package/es/attributeSelector/util.js +9 -1
- package/es/chart/demo/bar.js +3 -4
- package/es/chart/demo/data/data.d.ts +7 -0
- package/es/chart/demo/data/data.js +10 -0
- package/es/chart/demo/data/data3.d.ts +0 -2
- package/es/chart/demo/data/data3.js +15 -574
- package/es/chart/demo/map.js +1 -2
- package/es/chart/index.js +2 -2
- package/es/chart/util/chartOptionConfig.d.ts +1 -54
- package/es/chart/util/chartOptionConfig.js +13 -7
- package/es/chart/util/formatData.js +2 -1
- package/es/chart/util/formatOption.js +7 -23
- package/es/chart/util/mapUtil.d.ts +2 -2
- package/es/chart/util/mapUtil.js +59 -75
- package/es/cycleTime/demo/disable.d.ts +2 -0
- package/es/cycleTime/demo/disable.js +17 -0
- package/es/cycleTime/index.d.ts +1 -0
- package/es/cycleTime/index.js +12 -5
- package/es/cycleTime/month.d.ts +1 -0
- package/es/cycleTime/month.js +6 -3
- package/es/cycleTime/styles/month.less +12 -0
- package/es/datePicker/utils.js +3 -0
- package/es/eventSelector/index.js +2 -2
- package/es/eventSelector/listPanel.js +20 -5
- package/es/eventSelector/types.d.ts +1 -1
- package/es/layout/analysisLayout/demo/index.js +5 -1
- package/es/layout/analysisLayout/index.js +5 -5
- package/es/layout/analysisLayout/index.less +0 -6
- package/es/select/demo/multiple.js +3 -2
- package/es/select/handle.js +50 -12
- package/es/select/index.js +44 -9
- package/es/select/overlay.d.ts +1 -1
- package/es/select/overlay.js +4 -5
- package/es/select/styles/handle.less +50 -28
- package/es/select/types.d.ts +6 -0
- package/es/targetConditionGroup/index.js +3 -1
- package/es/targetConditionGroup/types.d.ts +1 -0
- package/es/targetSelector/index.js +13 -0
- package/es/targetSelector/styles/index.less +1 -0
- package/es/userCondition/conditions/styles/eventCondition.less +1 -1
- package/es/userCondition/conditions/styles/tagsCondition.less +1 -1
- package/es/userCondition/conditions/tagsCondition.js +26 -13
- package/es/userCondition/conditions/textDesc.js +29 -8
- package/es/userCondition/demo/index.js +5 -228
- package/es/userCondition/demo/mockData.d.ts +85 -0
- package/es/userCondition/demo/mockData.js +546 -0
- package/es/userCondition/types.d.ts +21 -3
- package/es/userCondition/util.d.ts +23 -1
- package/es/userCondition/util.js +39 -5
- package/es/userTagsSelector/cascaderOverlay.js +132 -42
- package/es/userTagsSelector/demo/index.js +12 -5
- package/es/userTagsSelector/groups/groupOption.js +3 -2
- package/es/userTagsSelector/groups/index.js +18 -11
- package/es/userTagsSelector/groups/styles/option.less +6 -1
- package/es/userTagsSelector/index.js +17 -3
- package/es/userTagsSelector/multipleCheckPanel/checkOption.js +2 -1
- package/es/userTagsSelector/multipleCheckPanel/index.js +7 -16
- package/es/userTagsSelector/styles/cascaderOverlay.less +9 -4
- package/es/userTagsSelector/types.d.ts +1 -10
- package/es/userTagsSelector/util.d.ts +1 -1
- package/es/userTagsSelector/util.js +6 -2
- package/es/utils/ajax.js +5 -1
- package/package.json +3 -3
package/es/addToPanel/index.js
CHANGED
|
@@ -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
|
|
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(
|
|
52
|
+
var _useState7 = useState(false),
|
|
47
53
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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: '添加失败',
|
|
@@ -197,8 +215,6 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
197
215
|
onCancel: props.onCancel,
|
|
198
216
|
onOk: onAdd,
|
|
199
217
|
confirmLoading: loading
|
|
200
|
-
}, /*#__PURE__*/React.createElement(Skeleton, {
|
|
201
|
-
loading: ready
|
|
202
218
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
203
219
|
ref: refForm,
|
|
204
220
|
onFinish: onSubmit,
|
|
@@ -245,6 +261,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
245
261
|
}]
|
|
246
262
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
247
263
|
placeholder: "\u6307\u6807\u540D\u79F0",
|
|
264
|
+
autoComplete: "off",
|
|
248
265
|
allowClear: {
|
|
249
266
|
clearIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
250
267
|
type: 'qingchu'
|
|
@@ -275,7 +292,7 @@ var BizAddToPanel = function BizAddToPanel(props) {
|
|
|
275
292
|
}, /*#__PURE__*/React.createElement(RadioGroup, {
|
|
276
293
|
options: props.showOptions
|
|
277
294
|
})) : null;
|
|
278
|
-
})))
|
|
295
|
+
})));
|
|
279
296
|
};
|
|
280
297
|
|
|
281
298
|
BizAddToPanel.defaultProps = {
|