@zgfe/modules-dm 1.0.56-zhongyuan.9 → 1.0.57-zhongyuan-dz.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 (55) hide show
  1. package/es/constants/api.d.ts +36 -0
  2. package/es/constants/api.js +41 -1
  3. package/es/index.d.ts +3 -1
  4. package/es/index.js +3 -1
  5. package/es/modules/CutsModal.d.ts +89 -34
  6. package/es/modules/clearRule/addRule.d.ts +10 -0
  7. package/es/modules/clearRule/addRule.js +663 -0
  8. package/es/modules/clearRule/css/index.css +256 -0
  9. package/es/modules/clearRule/css/index.less +271 -0
  10. package/es/modules/clearRule/demo/index.d.ts +3 -0
  11. package/es/modules/clearRule/demo/index.js +6 -0
  12. package/es/modules/clearRule/importMetaDialog/demo/index.d.ts +3 -0
  13. package/es/modules/clearRule/importMetaDialog/demo/index.js +28 -0
  14. package/es/modules/clearRule/importMetaDialog/index.d.ts +7 -0
  15. package/es/modules/clearRule/importMetaDialog/index.js +165 -0
  16. package/es/modules/clearRule/importMetaDialog/styles/index.less +91 -0
  17. package/es/modules/clearRule/index.d.ts +4 -0
  18. package/es/modules/clearRule/index.js +566 -0
  19. package/es/modules/dataManage/collectionAttributeList.js +424 -43
  20. package/es/modules/dataManage/collectionEventList.js +1 -1
  21. package/es/modules/dataManage/components/createMetaDrawer.js +89 -10
  22. package/es/modules/dataManage/components/eventGroupingDrawer.js +14 -8
  23. package/es/modules/dataManage/components/panelList.d.ts +6 -0
  24. package/es/modules/dataManage/components/panelList.js +172 -0
  25. package/es/modules/dataManage/components/tablePlus.d.ts +7 -0
  26. package/es/modules/dataManage/components/tablePlus.js +326 -50
  27. package/es/modules/dataManage/components/virtualTablePlus.js +4 -0
  28. package/es/modules/dataManage/demo/index.js +1 -2
  29. package/es/modules/dataManage/styles/index.less +10 -0
  30. package/es/modules/dataManage/types.d.ts +4 -0
  31. package/es/modules/dataMap/component/drawerAdd.js +2 -0
  32. package/es/modules/dataMap/component/leftTree.js +4 -1
  33. package/es/modules/dataMap/component/rightDetail.js +42 -87
  34. package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
  35. package/es/modules/dataMap/component/selectAttr.js +91 -0
  36. package/es/modules/dataMap/component/viewMapSetting.d.ts +24 -0
  37. package/es/modules/dataMap/component/viewMapSetting.js +161 -0
  38. package/es/modules/dataMap/css/index.css +196 -168
  39. package/es/modules/dataMap/css/index.less +213 -185
  40. package/es/modules/dataMap/mapSetting.js +21 -4
  41. package/es/modules/dataReal/css/index.css +50 -48
  42. package/es/modules/dataReal/css/index.less +53 -51
  43. package/es/modules/dataReal/index1.js +84 -57
  44. package/es/modules/dataReal/table.js +40 -7
  45. package/es/modules/formulateRule/addFormulate.d.ts +20 -0
  46. package/es/modules/formulateRule/addFormulate.js +330 -0
  47. package/es/modules/formulateRule/addRule.d.ts +19 -0
  48. package/es/modules/formulateRule/addRule.js +553 -0
  49. package/es/modules/formulateRule/data.d.ts +16 -0
  50. package/es/modules/formulateRule/data.js +46 -0
  51. package/es/modules/formulateRule/demo/index.d.ts +3 -0
  52. package/es/modules/formulateRule/demo/index.js +6 -0
  53. package/es/modules/formulateRule/index.d.ts +4 -0
  54. package/es/modules/formulateRule/index.js +461 -0
  55. package/package.json +2 -2
@@ -0,0 +1,256 @@
1
+ .clearRule {
2
+ height: 100%;
3
+ padding: 24px;
4
+ background: #fff;
5
+ border-radius: 8px;
6
+ }
7
+ .clearRule-searchTop {
8
+ display: grid;
9
+ grid-template-columns: 320px 1fr;
10
+ align-items: center;
11
+ justify-items: self-end;
12
+ margin-bottom: 20px;
13
+ }
14
+ .clearRule-modal .ant-modal-body {
15
+ height: 350px;
16
+ }
17
+ .clearRule-modal .ant-picker-dropdown {
18
+ top: 133px !important;
19
+ left: 13px !important;
20
+ }
21
+ .clearRule-content {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ }
26
+ .clearRule-importModal-tip {
27
+ margin: 0px 0px 10px;
28
+ padding: 5px 0px 5px 15px;
29
+ background-color: #e7f3fe;
30
+ border: 1px solid #b8e4ff;
31
+ border-radius: 4px;
32
+ }
33
+ .clearRule-importModal-tip .icon {
34
+ margin: 0px 10px;
35
+ color: #165dff;
36
+ }
37
+ .clearRule-importModal-list {
38
+ height: 160px;
39
+ padding: 10px;
40
+ overflow-y: scroll;
41
+ border: 1px solid #e5e5e5;
42
+ border-radius: 4px;
43
+ }
44
+ .clearRule-openRuleModal-list {
45
+ height: 160px;
46
+ padding: 10px;
47
+ overflow-y: scroll;
48
+ border: 1px solid #e5e5e5;
49
+ border-radius: 4px;
50
+ }
51
+ .clearRule-openRuleModal-closeTip {
52
+ margin: 10px 0px;
53
+ color: red;
54
+ }
55
+ .openRuleModal-icon {
56
+ margin: 0px 10px 0px 0px;
57
+ color: #faad14;
58
+ }
59
+ .addRuleForm .selectVent {
60
+ display: grid;
61
+ grid-gap: 20px;
62
+ grid-template-columns: 1fr 1fr;
63
+ align-items: center;
64
+ width: 100%;
65
+ margin: 20px 0px;
66
+ }
67
+ .addRuleForm .ant-checkbox-wrapper {
68
+ position: relative;
69
+ margin-right: 8px;
70
+ padding: 4px 15px;
71
+ color: #333;
72
+ vertical-align: middle;
73
+ background-color: #efefef;
74
+ border: 1px solid #e5e5e5;
75
+ border-radius: 4px;
76
+ cursor: pointer;
77
+ transition: all 0.2s ease;
78
+ }
79
+ .addRuleForm .ant-checkbox-wrapper::after {
80
+ position: absolute;
81
+ bottom: -1px;
82
+ left: 6px;
83
+ z-index: 10;
84
+ width: 17px;
85
+ font-size: 23px;
86
+ content: '+';
87
+ }
88
+ .addRuleForm .ant-checkbox-wrapper-checked {
89
+ position: relative;
90
+ color: #165dff;
91
+ background-color: transparent;
92
+ border: 1px solid #165dff;
93
+ }
94
+ .addRuleForm .ant-checkbox-wrapper-checked::after {
95
+ position: absolute;
96
+ bottom: -1px;
97
+ left: 6px;
98
+ z-index: 10;
99
+ width: 17px;
100
+ font-size: 23px;
101
+ content: '+';
102
+ }
103
+ .addRuleForm .ant-checkbox-wrapper::after {
104
+ display: inline;
105
+ }
106
+ .addRuleForm .ant-checkbox,
107
+ .addRuleForm .ant-checkbox-inner {
108
+ display: none;
109
+ }
110
+ .addRuleForm .drawerCloseIcon {
111
+ float: right;
112
+ cursor: pointer;
113
+ }
114
+ .addRuleForm .ant-drawer-close {
115
+ display: none;
116
+ }
117
+ .addRuleForm .ant-drawer-footer {
118
+ display: flex;
119
+ justify-content: end;
120
+ }
121
+ .addRuleForm .attrValue {
122
+ position: relative;
123
+ padding-left: 30px;
124
+ }
125
+ .addRuleForm .attrValue-list {
126
+ display: grid;
127
+ grid-gap: 20px;
128
+ grid-template-columns: 120px 1fr;
129
+ align-items: center;
130
+ justify-content: space-between;
131
+ margin: 20px 0px;
132
+ }
133
+ .addRuleForm .attrValue-styleLine {
134
+ position: absolute;
135
+ top: 50%;
136
+ left: -1px;
137
+ z-index: 10;
138
+ width: 20px;
139
+ color: white;
140
+ text-align: center;
141
+ background: #165dff;
142
+ border-radius: 4px 4px 0px 0px;
143
+ transform: translate(0, -50%);
144
+ }
145
+ .addRuleForm .attrValue::after {
146
+ position: absolute;
147
+ top: 0;
148
+ left: 8px;
149
+ z-index: 1;
150
+ width: 1px;
151
+ height: 100%;
152
+ background: #e8efff;
153
+ content: '';
154
+ }
155
+ .addRuleForm .attrValue .attrValue-list-right {
156
+ display: grid;
157
+ grid-gap: 20px;
158
+ grid-template-columns: 3px 80px 10px 80px 3px;
159
+ align-items: center;
160
+ justify-content: start;
161
+ }
162
+ .columnsActionClass {
163
+ cursor: pointer;
164
+ }
165
+ .formulateDetail-title {
166
+ display: flex;
167
+ align-items: center;
168
+ justify-content: space-between;
169
+ }
170
+ .addRule-formulate-tip {
171
+ margin: 10px 0px 0px;
172
+ color: red;
173
+ }
174
+ .formulateDetailClass {
175
+ margin: 10px 0px 0px;
176
+ border: 1px solid #ecedf0;
177
+ border-radius: 5px;
178
+ }
179
+ .formulateDetailClass-time {
180
+ color: #5f6085;
181
+ }
182
+ .formulateDetailClass-title {
183
+ display: grid;
184
+ grid-gap: 16px;
185
+ grid-template-columns: 200px 1fr;
186
+ align-items: center;
187
+ justify-content: space-between;
188
+ background-color: #f2f3f4;
189
+ border-bottom: 1px solid #ecedf0;
190
+ }
191
+ .formulateDetailClass-title-left {
192
+ padding: 10px 0px 10px 10px;
193
+ border-right: 1px solid #ecedf0;
194
+ }
195
+ .formulateDetailClass-title-right {
196
+ display: flex;
197
+ align-items: center;
198
+ justify-content: space-between;
199
+ padding: 10px 10px 10px 10px;
200
+ }
201
+ .formulateDetailClass-content {
202
+ display: grid;
203
+ grid-gap: 16px;
204
+ grid-template-columns: 200px 1fr;
205
+ align-items: flex-start;
206
+ justify-content: space-between;
207
+ height: 300px;
208
+ }
209
+ .formulateDetailClass-content-left {
210
+ height: 100%;
211
+ overflow: auto;
212
+ border-right: 1px solid #ecedf0;
213
+ }
214
+ .formulateDetailClass-content-left-tip {
215
+ margin: 0px 5px 0px 0px;
216
+ color: red;
217
+ }
218
+ .formulateDetailClass-content-left-item {
219
+ padding: 10px;
220
+ cursor: pointer;
221
+ }
222
+ .formulateDetailClass-content-left-itemContent {
223
+ margin: 0px 0px 0px 5px;
224
+ padding: 5px;
225
+ border: 1px solid #5f6085;
226
+ border-radius: 4px;
227
+ }
228
+ .formulateDetailClass-content-left .active {
229
+ position: relative;
230
+ background-color: #e8efff;
231
+ }
232
+ .formulateDetailClass-content-left .active::after {
233
+ position: absolute;
234
+ top: 0;
235
+ left: 0;
236
+ width: 2px;
237
+ height: 100%;
238
+ background-color: #6b8ffd;
239
+ content: '';
240
+ }
241
+ .formulateDetailClass-content-left .activeTime {
242
+ color: #2467fc;
243
+ }
244
+ .formulateDetailClass-content-left .activeTime .formulateDetailClass-content-left-tip {
245
+ color: #2467fc;
246
+ }
247
+ .formulateDetailClass-content-right {
248
+ display: flex;
249
+ align-items: center;
250
+ justify-content: space-between;
251
+ margin: 15px;
252
+ line-height: 2;
253
+ }
254
+ .addRule-errorTip {
255
+ color: red;
256
+ }
@@ -0,0 +1,271 @@
1
+ .clearRule {
2
+ height: 100%;
3
+ padding: 24px;
4
+ background: #fff;
5
+ border-radius: 8px;
6
+ border-radius: 8px;
7
+ &-searchTop {
8
+ display: grid;
9
+ grid-template-columns: 320px 1fr;
10
+ align-items: center;
11
+ justify-items: self-end;
12
+ margin-bottom: 20px;
13
+ }
14
+ &-modal {
15
+ .ant-modal-body {
16
+ height: 350px;
17
+ }
18
+ .ant-picker-dropdown {
19
+ top: 133px !important;
20
+ left: 13px !important;
21
+ }
22
+ }
23
+ &-content {
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ }
28
+ &-importModal {
29
+ &-content {
30
+ }
31
+ &-tip {
32
+ margin: 0px 0px 10px;
33
+ padding: 5px 0px 5px 15px;
34
+ background-color: #e7f3fe;
35
+ border: 1px solid #b8e4ff;
36
+ border-radius: 4px;
37
+ .icon {
38
+ margin: 0px 10px;
39
+ color: #165dff;
40
+ }
41
+ }
42
+ &-list {
43
+ height: 160px;
44
+ padding: 10px;
45
+ overflow-y: scroll;
46
+ border: 1px solid #e5e5e5;
47
+ border-radius: 4px;
48
+ }
49
+ }
50
+ &-openRuleModal {
51
+ &-list {
52
+ height: 160px;
53
+ padding: 10px;
54
+ overflow-y: scroll;
55
+ border: 1px solid #e5e5e5;
56
+ border-radius: 4px;
57
+ }
58
+ &-closeTip {
59
+ margin: 10px 0px;
60
+ color: red;
61
+ }
62
+ }
63
+ }
64
+ .openRuleModal-icon {
65
+ margin: 0px 10px 0px 0px;
66
+ color: #faad14;
67
+ }
68
+
69
+ .addRuleForm {
70
+ .selectVent {
71
+ display: grid;
72
+ grid-gap: 20px;
73
+ grid-template-columns: 1fr 1fr;
74
+ align-items: center;
75
+ width: 100%;
76
+ margin: 20px 0px;
77
+ }
78
+ .ant-checkbox-wrapper {
79
+ position: relative;
80
+ margin-right: 8px;
81
+ margin-bottom: 8px;
82
+ padding: 4px 15px;
83
+ color: #333;
84
+ vertical-align: middle;
85
+ background-color: #efefef;
86
+ border: 1px solid #e5e5e5;
87
+ border-radius: 4px;
88
+ cursor: pointer;
89
+ transition: all 0.2s ease;
90
+ &::after {
91
+ position: absolute;
92
+ bottom: -1px;
93
+ left: 6px;
94
+ z-index: 10;
95
+ width: 17px;
96
+ font-size: 23px;
97
+ content: '+';
98
+ }
99
+ }
100
+ .ant-checkbox-wrapper-checked {
101
+ position: relative;
102
+ color: #165dff;
103
+ background-color: transparent;
104
+ border: 1px solid #165dff;
105
+ &::after {
106
+ position: absolute;
107
+ bottom: -1px;
108
+ left: 6px;
109
+ z-index: 10;
110
+ width: 17px;
111
+ font-size: 23px;
112
+ content: '+';
113
+ }
114
+ }
115
+ .ant-checkbox-wrapper::after {
116
+ display: inline;
117
+ }
118
+ .ant-checkbox,
119
+ .ant-checkbox-inner {
120
+ display: none;
121
+ }
122
+ .drawerCloseIcon {
123
+ float: right;
124
+ cursor: pointer;
125
+ }
126
+ .ant-drawer-close {
127
+ display: none;
128
+ }
129
+ .ant-drawer-footer {
130
+ display: flex;
131
+ justify-content: end;
132
+ }
133
+ .attrValue {
134
+ &-list {
135
+ display: grid;
136
+ grid-gap: 20px;
137
+ grid-template-columns: 120px 1fr;
138
+ align-items: center;
139
+ justify-content: space-between;
140
+ margin: 20px 0px;
141
+ }
142
+ position: relative;
143
+ padding-left: 30px;
144
+ &-styleLine {
145
+ position: absolute;
146
+ top: 50%;
147
+ left: -1px;
148
+ z-index: 10;
149
+ width: 20px;
150
+ color: white;
151
+ text-align: center;
152
+ background: #165dff;
153
+ border-radius: 4px 4px 0px 0px;
154
+ transform: translate(0, -50%);
155
+ }
156
+ &::after {
157
+ position: absolute;
158
+ top: 0;
159
+ left: 8px;
160
+ z-index: 1;
161
+ width: 1px;
162
+ height: 100%;
163
+ background: #e8efff;
164
+ content: '';
165
+ }
166
+ .attrValue-list-right {
167
+ display: grid;
168
+ grid-gap: 20px;
169
+ grid-template-columns: 3px 80px 10px 80px 3px;
170
+ align-items: center;
171
+ justify-content: start;
172
+ }
173
+ }
174
+ }
175
+ .columnsActionClass {
176
+ cursor: pointer;
177
+ }
178
+ .formulateDetail {
179
+ &-title {
180
+ display: flex;
181
+ align-items: center;
182
+ justify-content: space-between;
183
+ }
184
+ }
185
+ .addRule-formulate-tip {
186
+ margin: 10px 0px 0px;
187
+ color: red;
188
+ }
189
+ .formulateDetailClass {
190
+ margin: 10px 0px 0px;
191
+ border: 1px solid #ecedf0;
192
+ border-radius: 5px;
193
+ &-time {
194
+ color: #5f6085;
195
+ }
196
+ &-title {
197
+ display: grid;
198
+ grid-gap: 16px;
199
+ grid-template-columns: 200px 1fr;
200
+ align-items: center;
201
+ justify-content: space-between;
202
+ background-color: #f2f3f4;
203
+ border-bottom: 1px solid #ecedf0;
204
+ &-left {
205
+ padding: 10px 0px 10px 10px;
206
+ border-right: 1px solid #ecedf0;
207
+ }
208
+ &-right {
209
+ display: flex;
210
+ align-items: center;
211
+ justify-content: space-between;
212
+ padding: 10px 10px 10px 10px;
213
+ }
214
+ }
215
+ &-content {
216
+ display: grid;
217
+ grid-gap: 16px;
218
+ grid-template-columns: 200px 1fr;
219
+ align-items: flex-start;
220
+ justify-content: space-between;
221
+ height: 300px;
222
+ &-left {
223
+ height: 100%;
224
+ overflow: auto;
225
+ border-right: 1px solid #ecedf0;
226
+ &-tip {
227
+ margin: 0px 5px 0px 0px;
228
+ color: red;
229
+ }
230
+ &-item {
231
+ padding: 10px;
232
+ cursor: pointer;
233
+ }
234
+ &-itemContent {
235
+ margin: 0px 0px 0px 5px;
236
+ padding: 5px;
237
+ border: 1px solid #5f6085;
238
+ border-radius: 4px;
239
+ }
240
+ .active {
241
+ position: relative;
242
+ background-color: #e8efff;
243
+ &::after {
244
+ position: absolute;
245
+ top: 0;
246
+ left: 0;
247
+ width: 2px;
248
+ height: 100%;
249
+ background-color: #6b8ffd;
250
+ content: '';
251
+ }
252
+ }
253
+ .activeTime {
254
+ color: #2467fc;
255
+ .formulateDetailClass-content-left-tip {
256
+ color: #2467fc;
257
+ }
258
+ }
259
+ }
260
+ &-right {
261
+ display: flex;
262
+ align-items: center;
263
+ justify-content: space-between;
264
+ margin: 15px;
265
+ line-height: 2;
266
+ }
267
+ }
268
+ }
269
+ .addRule-errorTip {
270
+ color: red;
271
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { ClearRule } from '@zgfe/modules-dm';
3
+ import DemoWrapper2 from '../../../components/demo';
4
+ export default (function () {
5
+ return /*#__PURE__*/React.createElement(DemoWrapper2, null, /*#__PURE__*/React.createElement(ClearRule, null));
6
+ });
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,28 @@
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
+ 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."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ import { IconFont } from '@zgfe/business-lib';
8
+ import React, { useState } from 'react';
9
+ import ImportModal from '..';
10
+ import { Button } from 'antd';
11
+ export default (function () {
12
+ var _useState = useState(false),
13
+ _useState2 = _slicedToArray(_useState, 2),
14
+ openImportModal = _useState2[0],
15
+ setOpenImportModal = _useState2[1];
16
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
17
+ icon: /*#__PURE__*/React.createElement(IconFont, {
18
+ type: "tianjia1"
19
+ }),
20
+ onClick: function onClick() {
21
+ return setOpenImportModal(true);
22
+ }
23
+ }, "\u5BFC\u5165"), openImportModal ? /*#__PURE__*/React.createElement(ImportModal, {
24
+ onCancel: function onCancel() {
25
+ return setOpenImportModal(false);
26
+ }
27
+ }) : null);
28
+ });
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import './styles/index.less';
3
+ declare const ImportModal: React.FC<{
4
+ onCancel?: () => void;
5
+ onSuccess?: (result: any) => void;
6
+ }>;
7
+ export default ImportModal;