@zgfe/modules-whole 1.0.10-zhongyuan.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.
Files changed (97) hide show
  1. package/README.md +37 -0
  2. package/es/components/dataUpdateTime/index.d.ts +3 -0
  3. package/es/components/dataUpdateTime/index.js +53 -0
  4. package/es/components/eventFilter/index.d.ts +5 -0
  5. package/es/components/eventFilter/index.js +263 -0
  6. package/es/components/eventFilter/styles/index.less +36 -0
  7. package/es/components/eventFilter/types.d.ts +20 -0
  8. package/es/components/eventFilter/types.js +1 -0
  9. package/es/components/index.d.ts +4 -0
  10. package/es/components/index.js +4 -0
  11. package/es/components/renderContent/index.d.ts +5 -0
  12. package/es/components/renderContent/index.js +44 -0
  13. package/es/components/renderContent/styles/index.less +20 -0
  14. package/es/components/renderContent/types.d.ts +9 -0
  15. package/es/components/renderContent/types.js +1 -0
  16. package/es/components/searchPanel/index.d.ts +5 -0
  17. package/es/components/searchPanel/index.js +164 -0
  18. package/es/components/searchPanel/styles/index.less +22 -0
  19. package/es/components/searchPanel/types.d.ts +23 -0
  20. package/es/components/searchPanel/types.js +1 -0
  21. package/es/components/table/index.d.ts +5 -0
  22. package/es/components/table/index.js +130 -0
  23. package/es/components/table/styles/index.less +193 -0
  24. package/es/components/table/types.d.ts +9 -0
  25. package/es/components/table/types.js +1 -0
  26. package/es/components/topBar/index.d.ts +5 -0
  27. package/es/components/topBar/index.js +163 -0
  28. package/es/components/topBar/styles/index.less +71 -0
  29. package/es/components/topBar/types.d.ts +8 -0
  30. package/es/components/topBar/types.js +1 -0
  31. package/es/constants/apis.d.ts +8 -0
  32. package/es/constants/apis.js +8 -0
  33. package/es/constants/chart.d.ts +2 -0
  34. package/es/constants/chart.js +31 -0
  35. package/es/constants/color.d.ts +1 -0
  36. package/es/constants/color.js +1 -0
  37. package/es/constants/fields.d.ts +271 -0
  38. package/es/constants/fields.js +260 -0
  39. package/es/constants/index.d.ts +6 -0
  40. package/es/constants/index.js +6 -0
  41. package/es/constants/initData.d.ts +2 -0
  42. package/es/constants/initData.js +9 -0
  43. package/es/constants/json/line.d.ts +20 -0
  44. package/es/constants/json/line.js +25 -0
  45. package/es/index.d.ts +5 -0
  46. package/es/index.js +4 -0
  47. package/es/modules/chart/demo/data.d.ts +78 -0
  48. package/es/modules/chart/demo/data.js +489 -0
  49. package/es/modules/chart/demo/index.d.ts +3 -0
  50. package/es/modules/chart/demo/index.js +12 -0
  51. package/es/modules/chart/demo/panel.d.ts +3 -0
  52. package/es/modules/chart/demo/panel.js +11 -0
  53. package/es/modules/chart/index.d.ts +4 -0
  54. package/es/modules/chart/index.js +246 -0
  55. package/es/modules/chart/types.d.ts +15 -0
  56. package/es/modules/chart/types.js +1 -0
  57. package/es/modules/content/index.d.ts +5 -0
  58. package/es/modules/content/index.js +234 -0
  59. package/es/modules/content/styles/index.less +7 -0
  60. package/es/modules/content/types.d.ts +11 -0
  61. package/es/modules/content/types.js +1 -0
  62. package/es/modules/content/utils.d.ts +17 -0
  63. package/es/modules/content/utils.js +107 -0
  64. package/es/modules/home/demo/create.d.ts +3 -0
  65. package/es/modules/home/demo/create.js +58 -0
  66. package/es/modules/home/demo/edit.d.ts +3 -0
  67. package/es/modules/home/demo/edit.js +86 -0
  68. package/es/modules/home/demo/index.d.ts +4 -0
  69. package/es/modules/home/demo/index.js +83 -0
  70. package/es/modules/home/demo/scene.d.ts +3 -0
  71. package/es/modules/home/demo/scene.js +89 -0
  72. package/es/modules/home/demo/styles/index.less +33 -0
  73. package/es/modules/home/index.d.ts +5 -0
  74. package/es/modules/home/index.js +218 -0
  75. package/es/modules/home/styles/index.less +39 -0
  76. package/es/modules/home/types.d.ts +34 -0
  77. package/es/modules/home/types.js +1 -0
  78. package/es/modules/topPanel/index.d.ts +5 -0
  79. package/es/modules/topPanel/index.js +154 -0
  80. package/es/modules/topPanel/styles/index.less +41 -0
  81. package/es/modules/topPanel/types.d.ts +39 -0
  82. package/es/modules/topPanel/types.js +1 -0
  83. package/es/style/image/ring.svg +9 -0
  84. package/es/style/index.less +62 -0
  85. package/es/style/theme.d.ts +15 -0
  86. package/es/style/theme.js +14 -0
  87. package/es/types.d.ts +79 -0
  88. package/es/types.js +6 -0
  89. package/es/utils/ajaxConfig.d.ts +8 -0
  90. package/es/utils/ajaxConfig.js +12 -0
  91. package/es/utils/base64.d.ts +23 -0
  92. package/es/utils/base64.js +125 -0
  93. package/es/utils/formData.d.ts +21 -0
  94. package/es/utils/formData.js +366 -0
  95. package/es/utils/util.d.ts +36 -0
  96. package/es/utils/util.js +167 -0
  97. package/package.json +63 -0
@@ -0,0 +1,163 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ 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; }
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
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ 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."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { Button } from 'antd';
14
+ import React, { useContext, useState, useEffect } from 'react';
15
+ import { BizAddToPanel, BizAddToScene, BizGlobalDataContext, BizPlatformSelector, IconFont } from '@zgfe/business-lib';
16
+ import './styles/index.less';
17
+ import { WholeContext } from '../../types';
18
+ import _ from 'lodash';
19
+ var classPrefix = 'modules-whole-topbar';
20
+ var TopBar = function TopBar(props) {
21
+ var _useContext = useContext(WholeContext),
22
+ currentApp = _useContext.currentApp,
23
+ panelId = _useContext.panelId,
24
+ afterEditTarget = _useContext.afterEditTarget,
25
+ enableGenerateReport = _useContext.enableGenerateReport,
26
+ disableItemList = _useContext.disableItemList,
27
+ options = _useContext.options,
28
+ setOptions = _useContext.setOptions;
29
+ var _useState = useState(false),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ showPanel = _useState2[0],
32
+ setShowPanel = _useState2[1];
33
+ var _useState3 = useState(false),
34
+ _useState4 = _slicedToArray(_useState3, 2),
35
+ showScene = _useState4[0],
36
+ setShowScene = _useState4[1];
37
+ var _useContext2 = useContext(BizGlobalDataContext),
38
+ authority = _useContext2.authority,
39
+ router = _useContext2.router,
40
+ routes = _useContext2.routes;
41
+ var searchData = props.searchData,
42
+ showList = props.showList,
43
+ platformChange = props.platformChange,
44
+ onClickGenerateReport = props.onClickGenerateReport;
45
+ var _useState5 = useState((searchData === null || searchData === void 0 ? void 0 : searchData.platform) === undefined ? 0 : searchData.platform),
46
+ _useState6 = _slicedToArray(_useState5, 2),
47
+ selectPlatform = _useState6[0],
48
+ setselectPlatform = _useState6[1];
49
+ useEffect(function () {
50
+ var data = _.cloneDeep(options);
51
+ data.forEach(function (item) {
52
+ if (item.value.indexOf('number') !== -1) {
53
+ item.value = "".concat(searchData === null || searchData === void 0 ? void 0 : searchData.chartType, ",number");
54
+ }
55
+ if (disableItemList === null || disableItemList === void 0 ? void 0 : disableItemList.some(function (it) {
56
+ return it == item.value;
57
+ })) {
58
+ item.disabled = true;
59
+ } else {
60
+ item.disabled = false;
61
+ }
62
+ if ((searchData === null || searchData === void 0 ? void 0 : searchData.module) == 'duration' && item.value.indexOf('number') !== -1) {
63
+ item.disabled = true;
64
+ }
65
+ });
66
+ setOptions(data);
67
+ }, [disableItemList, searchData]);
68
+ var _useState7 = useState(),
69
+ _useState8 = _slicedToArray(_useState7, 2),
70
+ panelType = _useState8[0],
71
+ setPanelType = _useState8[1];
72
+ var closeHandle = function closeHandle(type) {
73
+ if (type === 'panel') {
74
+ setPanelType(undefined);
75
+ setShowPanel(false);
76
+ } else {
77
+ setShowScene(false);
78
+ }
79
+ };
80
+ var _onOk = function onOk(type, val) {
81
+ closeHandle(type);
82
+ if (afterEditTarget) afterEditTarget(type, val);
83
+ };
84
+ return /*#__PURE__*/React.createElement("div", {
85
+ className: classPrefix
86
+ }, /*#__PURE__*/React.createElement("div", {
87
+ className: "".concat(classPrefix, "-title")
88
+ }, !panelId && enableGenerateReport && /*#__PURE__*/React.createElement(IconFont, {
89
+ type: "fanhuiicon",
90
+ onClick: function onClick() {
91
+ if (!router) return;
92
+ var params = new URLSearchParams(window.location.search);
93
+ var _reportId = params.get('reportId');
94
+ router.push({
95
+ name: routes.report,
96
+ query: {
97
+ reportId: _reportId,
98
+ isEdit: 1
99
+ }
100
+ });
101
+ }
102
+ }, "\u8FD4\u56DE"), /*#__PURE__*/React.createElement("span", null, "\u6574\u4F53")), /*#__PURE__*/React.createElement("div", {
103
+ className: "".concat(classPrefix, "-right")
104
+ }, !panelId && /*#__PURE__*/React.createElement("div", {
105
+ className: "".concat(classPrefix, "-panel")
106
+ }, /*#__PURE__*/React.createElement(Button, {
107
+ disabled: !authority[100041],
108
+ onClick: function onClick() {
109
+ setShowPanel(true);
110
+ }
111
+ }, "\u6DFB\u52A0\u5230\u770B\u677F"), showPanel && /*#__PURE__*/React.createElement(BizAddToPanel, {
112
+ type: panelType,
113
+ params: _objectSpread(_objectSpread({
114
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
115
+ platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0
116
+ }, searchData), {}, {
117
+ overall: true,
118
+ refresh: false
119
+ }),
120
+ styleOptions: options,
121
+ showList: (searchData === null || searchData === void 0 ? void 0 : searchData.chartType) !== 'map' ? showList : [],
122
+ onCancel: function onCancel() {
123
+ return closeHandle('panel');
124
+ },
125
+ onOk: function onOk(data) {
126
+ return _onOk('panel', data);
127
+ }
128
+ })), !panelId && /*#__PURE__*/React.createElement("div", {
129
+ className: "".concat(classPrefix, "-scene")
130
+ }, /*#__PURE__*/React.createElement(Button, {
131
+ disabled: !authority[100040],
132
+ onClick: function onClick() {
133
+ setShowScene(true);
134
+ }
135
+ }, "\u6DFB\u52A0\u5E38\u7528\u573A\u666F"), showScene && /*#__PURE__*/React.createElement(BizAddToScene, {
136
+ params: _objectSpread(_objectSpread({
137
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
138
+ platform: (searchData === null || searchData === void 0 ? void 0 : searchData.platform) || 0
139
+ }, searchData), {}, {
140
+ overall: true,
141
+ refresh: false
142
+ }),
143
+ onOk: function onOk(data) {
144
+ return _onOk('scene', data);
145
+ },
146
+ onCancel: function onCancel() {
147
+ return closeHandle('scene');
148
+ }
149
+ })), !panelId && enableGenerateReport && /*#__PURE__*/React.createElement("div", {
150
+ className: "".concat(classPrefix, "-panel")
151
+ }, /*#__PURE__*/React.createElement(Button, {
152
+ onClick: onClickGenerateReport
153
+ }, "\u6DFB\u52A0\u5230\u6570\u636E\u62A5\u544A")), /*#__PURE__*/React.createElement("div", {
154
+ className: "".concat(classPrefix, "-platform")
155
+ }, /*#__PURE__*/React.createElement(BizPlatformSelector, {
156
+ value: selectPlatform,
157
+ onChange: function onChange(val) {
158
+ setselectPlatform(val.key);
159
+ platformChange(val.key);
160
+ }
161
+ }))));
162
+ };
163
+ export default TopBar;
@@ -0,0 +1,71 @@
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+
3
+ .modules-whole-topbar {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ padding: 8px 16px;
8
+ background-color: #fafafb;
9
+
10
+ &-title {
11
+ .fanhuiicon {
12
+ margin-right: 8px;
13
+ color: #5f6085;
14
+ cursor: pointer;
15
+ }
16
+ > span {
17
+ color: var(--io-N-, #021429);
18
+ font-weight: 500;
19
+ font-size: 16px;
20
+ font-family: 'PingFang SC';
21
+ font-style: normal;
22
+ line-height: 20px; /* 125% */
23
+ letter-spacing: 0.016px;
24
+ }
25
+ }
26
+
27
+ &-content {
28
+ display: flex;
29
+ gap: 16px;
30
+ justify-content: flex-end;
31
+ }
32
+
33
+ &-panel {
34
+ // .ant-btn {
35
+ // color: var(--io-i-, #165dff);
36
+ // background: #fff;
37
+ // border: 1px solid var(--io-i-, #165dff);
38
+ // border-radius: 4px;
39
+ // }
40
+ // .ant-btn:hover {
41
+ // border-color: #165dff;
42
+ // }
43
+ }
44
+ &-scene {
45
+ // .ant-btn {
46
+ // color: var(--io-i-, #165dff);
47
+ // background: #fff;
48
+ // border: 1px solid var(--io-i-, #165dff);
49
+ // border-radius: 4px;
50
+ // }
51
+ // .ant-btn:hover {
52
+ // border-color: #165dff;
53
+ // }
54
+ }
55
+ &-platform {
56
+ .biz-select-handle {
57
+ min-width: 132px;
58
+ }
59
+
60
+ .biz-select-handle-input {
61
+ background: var(--io-W, #fff);
62
+ border: 1px solid var(--io-n-05, #f2f3f4);
63
+ border-radius: 4px;
64
+ }
65
+ }
66
+
67
+ &-right {
68
+ display: flex;
69
+ gap: 16px;
70
+ }
71
+ }
@@ -0,0 +1,8 @@
1
+ import { SearchValue, ResponseDataProps } from '../../types';
2
+ export interface TopBarProps {
3
+ searchData?: SearchValue;
4
+ showList: string[];
5
+ platformChange: (data: number) => void;
6
+ wholeData?: ResponseDataProps;
7
+ onClickGenerateReport?: (value: any) => void;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ declare const Apis: {
2
+ dataList: string;
3
+ getWholeDataSql: string;
4
+ querySubDisplayApi: string;
5
+ downloadReport: string;
6
+ appUpdateTime: string;
7
+ };
8
+ export default Apis;
@@ -0,0 +1,8 @@
1
+ var Apis = {
2
+ dataList: '/zg/web/v2/overall/dataList',
3
+ getWholeDataSql: '/zg/web/v2/dataSql/getWholeDataSql',
4
+ querySubDisplayApi: '/zg/web/v2/analysisSubject/querySubDisplay',
5
+ downloadReport: '/zg/web/v2/overall/downloadReport',
6
+ appUpdateTime: '/data/appUpdateTime.jsp'
7
+ };
8
+ export default Apis;
@@ -0,0 +1,2 @@
1
+ import { ChartItemProp } from '../types';
2
+ export declare const chartTypeOptions: ChartItemProp[];
@@ -0,0 +1,31 @@
1
+ import { IconFont } from '@zgfe/business-lib';
2
+ import React from 'react';
3
+ export var chartTypeOptions = [{
4
+ label: '趋势图',
5
+ value: 'line',
6
+ icon: /*#__PURE__*/React.createElement(IconFont, {
7
+ type: "qushitu1",
8
+ size: 16
9
+ })
10
+ }, {
11
+ label: '汇总图',
12
+ value: 'bar',
13
+ icon: /*#__PURE__*/React.createElement(IconFont, {
14
+ type: "huizongtu",
15
+ size: 16
16
+ })
17
+ }, {
18
+ label: '占比图',
19
+ value: 'pie',
20
+ icon: /*#__PURE__*/React.createElement(IconFont, {
21
+ type: "bingtu",
22
+ size: 16
23
+ })
24
+ }, {
25
+ label: '地图',
26
+ value: 'map',
27
+ icon: /*#__PURE__*/React.createElement(IconFont, {
28
+ type: "ditu",
29
+ size: 16
30
+ })
31
+ }];
@@ -0,0 +1 @@
1
+ export declare const chartColors: string[];
@@ -0,0 +1 @@
1
+ export var chartColors = ['#457DFF', '#80E1D9', '#65789B', '#F8BC3B', '#6F66ED', '#66AFED', '#9661BC', '#FF7557', '#4DB273', '#F08BB4', '#CDDBFD', '#CDF3F0', '#CED4DE', '#FCE7B9', '#D1CEFD', '#D3E7F9', '#DFCFEA', '#FFD1C7', '#BBDEC8', '#FFE0ED'];
@@ -0,0 +1,271 @@
1
+ export declare const platformOption: {
2
+ key: number;
3
+ value: string;
4
+ }[];
5
+ export declare const chartTypes: ({
6
+ label: string;
7
+ value: string;
8
+ icon: string;
9
+ optionList: {
10
+ label: string;
11
+ value: string;
12
+ disabled: boolean;
13
+ select: boolean;
14
+ }[];
15
+ disabled?: undefined;
16
+ children?: undefined;
17
+ } | {
18
+ label: string;
19
+ value: string;
20
+ icon: string;
21
+ disabled: boolean;
22
+ optionList: {
23
+ label: string;
24
+ value: string;
25
+ disabled: boolean;
26
+ select: boolean;
27
+ }[];
28
+ children?: undefined;
29
+ } | {
30
+ label: string;
31
+ icon: string;
32
+ value: string;
33
+ children: ({
34
+ label: string;
35
+ value: string;
36
+ icon: string;
37
+ disabled?: undefined;
38
+ } | {
39
+ label: string;
40
+ value: string;
41
+ icon: string;
42
+ disabled: boolean;
43
+ })[];
44
+ optionList: {
45
+ label: string;
46
+ value: string;
47
+ disabled: boolean;
48
+ select: boolean;
49
+ }[];
50
+ disabled?: undefined;
51
+ })[];
52
+ export declare const addPanelFields: ({
53
+ label: string;
54
+ name: string;
55
+ extendName: string;
56
+ type: string;
57
+ options: never[];
58
+ children: string[];
59
+ fieldNames: {
60
+ label: string;
61
+ value: string;
62
+ };
63
+ rules: {
64
+ required: boolean;
65
+ message: string;
66
+ }[];
67
+ direction?: undefined;
68
+ dependenceFields?: undefined;
69
+ } | {
70
+ label: string;
71
+ name: string;
72
+ type: string;
73
+ rules: {
74
+ required: boolean;
75
+ message: string;
76
+ }[];
77
+ extendName?: undefined;
78
+ options?: undefined;
79
+ children?: undefined;
80
+ fieldNames?: undefined;
81
+ direction?: undefined;
82
+ dependenceFields?: undefined;
83
+ } | {
84
+ label: string;
85
+ name: string;
86
+ type: string;
87
+ options: ({
88
+ label: string;
89
+ value: string;
90
+ icon: string;
91
+ optionList: {
92
+ label: string;
93
+ value: string;
94
+ disabled: boolean;
95
+ select: boolean;
96
+ }[];
97
+ disabled?: undefined;
98
+ children?: undefined;
99
+ } | {
100
+ label: string;
101
+ value: string;
102
+ icon: string;
103
+ disabled: boolean;
104
+ optionList: {
105
+ label: string;
106
+ value: string;
107
+ disabled: boolean;
108
+ select: boolean;
109
+ }[];
110
+ children?: undefined;
111
+ } | {
112
+ label: string;
113
+ icon: string;
114
+ value: string;
115
+ children: ({
116
+ label: string;
117
+ value: string;
118
+ icon: string;
119
+ disabled?: undefined;
120
+ } | {
121
+ label: string;
122
+ value: string;
123
+ icon: string;
124
+ disabled: boolean;
125
+ })[];
126
+ optionList: {
127
+ label: string;
128
+ value: string;
129
+ disabled: boolean;
130
+ select: boolean;
131
+ }[];
132
+ disabled?: undefined;
133
+ })[];
134
+ rules: {
135
+ required: boolean;
136
+ message: string;
137
+ }[];
138
+ extendName?: undefined;
139
+ children?: undefined;
140
+ fieldNames?: undefined;
141
+ direction?: undefined;
142
+ dependenceFields?: undefined;
143
+ } | {
144
+ label: string;
145
+ name: string;
146
+ type: string;
147
+ direction: string;
148
+ dependenceFields: {
149
+ chart: string;
150
+ };
151
+ options: {
152
+ label: string;
153
+ value: string;
154
+ }[];
155
+ rules: {
156
+ required: boolean;
157
+ message: string;
158
+ }[];
159
+ extendName?: undefined;
160
+ children?: undefined;
161
+ fieldNames?: undefined;
162
+ })[];
163
+ export declare const editPanelFields: ({
164
+ label: string;
165
+ name: string;
166
+ type: string;
167
+ options: ({
168
+ label: string;
169
+ value: string;
170
+ icon: string;
171
+ optionList: {
172
+ label: string;
173
+ value: string;
174
+ disabled: boolean;
175
+ select: boolean;
176
+ }[];
177
+ disabled?: undefined;
178
+ children?: undefined;
179
+ } | {
180
+ label: string;
181
+ value: string;
182
+ icon: string;
183
+ disabled: boolean;
184
+ optionList: {
185
+ label: string;
186
+ value: string;
187
+ disabled: boolean;
188
+ select: boolean;
189
+ }[];
190
+ children?: undefined;
191
+ } | {
192
+ label: string;
193
+ icon: string;
194
+ value: string;
195
+ children: ({
196
+ label: string;
197
+ value: string;
198
+ icon: string;
199
+ disabled?: undefined;
200
+ } | {
201
+ label: string;
202
+ value: string;
203
+ icon: string;
204
+ disabled: boolean;
205
+ })[];
206
+ optionList: {
207
+ label: string;
208
+ value: string;
209
+ disabled: boolean;
210
+ select: boolean;
211
+ }[];
212
+ disabled?: undefined;
213
+ })[];
214
+ rules: {
215
+ required: boolean;
216
+ message: string;
217
+ }[];
218
+ direction?: undefined;
219
+ dependenceFields?: undefined;
220
+ } | {
221
+ label: string;
222
+ name: string;
223
+ type: string;
224
+ direction: string;
225
+ dependenceFields: {
226
+ chart: string;
227
+ };
228
+ options: {
229
+ label: string;
230
+ value: string;
231
+ }[];
232
+ rules: {
233
+ required: boolean;
234
+ message: string;
235
+ }[];
236
+ })[];
237
+ export declare const addSceneFields: ({
238
+ label: string;
239
+ name: string;
240
+ type: string;
241
+ options: never[];
242
+ fieldNames: {
243
+ label: string;
244
+ value: string;
245
+ };
246
+ rules: {
247
+ required: boolean;
248
+ message: string;
249
+ }[];
250
+ } | {
251
+ label: string;
252
+ name: string;
253
+ type: string;
254
+ rules: {
255
+ required: boolean;
256
+ message: string;
257
+ }[];
258
+ options?: undefined;
259
+ fieldNames?: undefined;
260
+ })[];
261
+ export declare const getBuiltinIndicators: (type: 'user' | 'custom' | 'product' | undefined) => ({
262
+ name: string;
263
+ id: number;
264
+ module: string;
265
+ analysisIndex: string;
266
+ } | {
267
+ name: string;
268
+ id: number;
269
+ module: string;
270
+ analysisIndex: null;
271
+ })[];