@dfsj/components 3.7.1 → 3.7.2-alpha.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 (115) hide show
  1. package/dist/components/Boards/src/Boards.vue.d.ts +11 -0
  2. package/dist/components/Boards/src/Boards.vue2.js +27 -31
  3. package/dist/components/Boards/src/hooKs/useStyle.d.ts +9 -0
  4. package/dist/components/Boards/src/hooKs/useStyle.js +5 -5
  5. package/dist/components/Boards/src/props.d.ts +5 -0
  6. package/dist/components/Boards/src/props.js +2 -1
  7. package/dist/components/ClickOutSide/src/ClickOutSide.vue2.js +1 -1
  8. package/dist/components/DatePicker/src/composables/use-month-range-header.d.ts +16 -0
  9. package/dist/components/DatePicker/src/composables/use-range-picker.d.ts +173 -0
  10. package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue.d.ts +19 -0
  11. package/dist/components/DatePicker/src/date-picker-com/panel-date-range.vue2.js +2 -2
  12. package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue.d.ts +16 -0
  13. package/dist/components/DatePicker/src/date-picker-com/panel-month-range.vue2.js +7 -7
  14. package/dist/components/DatePicker/src/index.d.ts +26 -20
  15. package/dist/components/DatePicker/src/index.js +4 -4
  16. package/dist/components/Descriptions/src/Descriptions.vue.d.ts +97 -0
  17. package/dist/components/Descriptions/src/Descriptions.vue2.js +4 -4
  18. package/dist/components/Editor/src/Editor.vue.d.ts +4 -4
  19. package/dist/components/Editor/src/Editor.vue2.js +5 -5
  20. package/dist/components/Form/src/Form.vue.d.ts +481 -447
  21. package/dist/components/Form/src/Form.vue2.js +30 -24
  22. package/dist/components/Form/src/components/useRenderCheckbox.d.ts +4 -0
  23. package/dist/components/Form/src/components/useRenderCheckbox.js +8 -8
  24. package/dist/components/Form/src/components/useRenderRadio.d.ts +4 -0
  25. package/dist/components/Form/src/components/useRenderRadio.js +8 -8
  26. package/dist/components/Form/src/components/useRenderSelect.d.ts +4 -0
  27. package/dist/components/Form/src/components/useRenderSelect.js +11 -11
  28. package/dist/components/Form/src/helper/componentMap.d.ts +5 -0
  29. package/dist/components/Form/src/helper/index.d.ts +7 -0
  30. package/dist/components/Form/src/helper/index.js +7 -7
  31. package/dist/components/Form/src/types/index.d.ts +2 -2
  32. package/dist/components/Form/src/useForm.js +63 -63
  33. package/dist/components/Highlight/src/Highlight.vue.d.ts +4 -4
  34. package/dist/components/Highlight/src/Highlight.vue2.js +3 -3
  35. package/dist/components/Icon/src/Icon.vue.d.ts +8 -8
  36. package/dist/components/Icon/src/Icon.vue2.js +11 -11
  37. package/dist/components/InputPassword/src/InputPassword.vue.d.ts +27 -0
  38. package/dist/components/Modal/src/BasicModal.vue.d.ts +68 -15
  39. package/dist/components/Modal/src/BasicModal.vue2.js +20 -17
  40. package/dist/components/{src/components/Modal → Modal}/src/components/ModalFooter.vue.d.ts +4 -4
  41. package/dist/components/Modal/src/components/ModalFooter.vue2.js +17 -7
  42. package/dist/components/{src/components/Modal → Modal}/src/components/ModalHeader.vue.d.ts +63 -10
  43. package/dist/components/Modal/src/components/ModalHeader.vue2.js +3 -3
  44. package/dist/components/Modal/src/config.js +2 -2
  45. package/dist/components/Modal/src/hooks/useModalDrag.js +9 -2
  46. package/dist/components/Modal/src/hooks/useTimeout.d.ts +15 -0
  47. package/dist/components/Modal/src/hooks/useTimeout.js +1 -1
  48. package/dist/components/{src/components/Modal → Modal}/src/props.d.ts +31 -7
  49. package/dist/components/Modal/src/props.js +9 -1
  50. package/dist/components/Modal/src/utils/index.d.ts +3 -0
  51. package/dist/components/Modal/src/utils/index.js +1 -1
  52. package/dist/components/NodeAxis/src/CanvasNodeRender.js +35 -35
  53. package/dist/components/NodeAxis/src/NodeAxis.vue.d.ts +17 -0
  54. package/dist/components/NodeAxis/src/NodeAxis.vue2.js +1 -1
  55. package/dist/components/NodeAxis/src/NodeModel.js +10 -10
  56. package/dist/components/NodeAxis/src/NodeRender.js +3 -3
  57. package/dist/components/NodeAxis/src/TimerNodePlayer.d.ts +19 -0
  58. package/dist/components/NodeAxis/src/TimerNodePlayer.js +4 -4
  59. package/dist/components/NodeAxis/src/interface/NodePlayer.d.ts +9 -0
  60. package/dist/components/Stateful/src/Stateful.vue.d.ts +2 -2
  61. package/dist/components/Stateful/src/Stateful.vue2.js +6 -6
  62. package/dist/components/Stateful/src/props.d.ts +1 -1
  63. package/dist/components/Table/src/Table.vue.d.ts +732 -645
  64. package/dist/components/Table/src/Table.vue2.js +10 -10
  65. package/dist/components/Table/src/components/ColumnSetting.vue.d.ts +30 -0
  66. package/dist/components/Table/src/components/ColumnSetting.vue2.js +20 -20
  67. package/dist/components/Table/src/components/TableActions.vue.d.ts +229 -0
  68. package/dist/components/Table/src/components/TableActions.vue2.js +1 -1
  69. package/dist/components/Table/src/helper/index.d.ts +2 -0
  70. package/dist/components/Table/src/useTable.js +50 -50
  71. package/dist/components/UnifyChart/src/ChartToolbox.vue.d.ts +8 -8
  72. package/dist/components/UnifyChart/src/ChartToolbox.vue2.js +2 -2
  73. package/dist/components/UnifyChart/src/UnifyChart.vue.d.ts +16 -16
  74. package/dist/components/UnifyChart/src/UnifyChart.vue2.js +2 -2
  75. package/dist/components/UnifyChart/src/hooks/useLoader.js +19 -19
  76. package/dist/components/UnifyChart/src/hooks/useRender.js +3 -3
  77. package/dist/components/UnifyChart/src/props.d.ts +13 -13
  78. package/dist/components/UnifyChart/src/useDownLoad.d.ts +9 -0
  79. package/dist/components/UnifyChart/src/useDownLoad.js +27 -0
  80. package/dist/components/Video/src/VideoPlayer.vue.d.ts +14 -14
  81. package/dist/components/Video/src/VideoPlayer.vue2.js +5 -5
  82. package/dist/components/Video/src/VideoPlayerToolbar.vue.d.ts +34 -0
  83. package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +4 -4
  84. package/dist/components/Video/src/abstract/AbstractVideoControl.d.ts +7 -0
  85. package/dist/components/Video/src/abstract/Observable.d.ts +6 -0
  86. package/dist/components/Video/src/abstract/VideoControl.d.ts +32 -0
  87. package/dist/components/Video/src/abstract/VideoControl.js +13 -13
  88. package/dist/components/Video/src/control/DaHua.d.ts +12 -0
  89. package/dist/components/Video/src/control/DaHua.js +8 -8
  90. package/dist/components/Video/src/control/Hikvision.d.ts +28 -0
  91. package/dist/components/Video/src/control/Hikvision.js +12 -12
  92. package/dist/components/Video/src/control/VideoFactory.d.ts +3 -0
  93. package/dist/components/Video/src/enums/CommonEnum.d.ts +26 -0
  94. package/dist/components/Visual/src/BufferLayerPlayer.js +65 -68
  95. package/dist/components/Visual/src/ResolvableLayerProvider.js +5 -5
  96. package/dist/components/Visual/src/resolvers/IntervalResolver.js +9 -9
  97. package/dist/components/Visual/src/resolvers/tools.resolver.js +8 -1
  98. package/dist/components/Visual/src/utils/NodeMath.js +1 -1
  99. package/dist/components/Windows/src/ModalWrap.vue2.js +52 -8
  100. package/dist/components/Windows/src/Windows.vue2.js +3 -3
  101. package/dist/components/Windows/src/props.d.ts +8 -3
  102. package/dist/directives/clickOutside.js +3 -3
  103. package/dist/directives/repeatClick.js +1 -1
  104. package/dist/directives/resizable.js +4 -4
  105. package/dist/helper/lang.d.ts +1 -0
  106. package/dist/index.min.css +3 -3
  107. package/dist/node_modules/.pnpm/@vueuse_core@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/core/index.js +393 -0
  108. package/dist/node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.19_typescript@5.9.2_/node_modules/@vueuse/shared/index.js +53 -0
  109. package/dist/utils/index.d.ts +11 -0
  110. package/package.json +66 -66
  111. package/dist/components/src/components/ClickOutSide/src/ClickOutSide.vue.d.ts +0 -7
  112. package/dist/components/src/components/Highlight/src/Highlight.vue.d.ts +0 -41
  113. /package/dist/components/{src/components/Modal → Modal}/src/config.d.ts +0 -0
  114. /package/dist/components/{src/components/Modal → Modal}/src/hooks/useModalDrag.d.ts +0 -0
  115. /package/dist/components/{src/components/Windows → Windows}/src/ModalWrap.vue.d.ts +0 -0
@@ -8,7 +8,7 @@ var t = function t(v) {
8
8
  };
9
9
  var useTable = function useTable(config) {
10
10
  var _config$immediate = config.immediate,
11
- immediate = _config$immediate === undefined ? true : _config$immediate;
11
+ immediate = _config$immediate === void 0 ? true : _config$immediate;
12
12
  var loading = ref(false);
13
13
  var currentPage = ref(1);
14
14
  var pageSize = ref(10);
@@ -43,18 +43,18 @@ var useTable = function useTable(config) {
43
43
  var getTable = /*#__PURE__*/function () {
44
44
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
45
45
  var table;
46
- return _regeneratorRuntime.wrap(function _callee$(_context) {
46
+ return _regeneratorRuntime.wrap(function (_context) {
47
47
  while (1) switch (_context.prev = _context.next) {
48
48
  case 0:
49
- _context.next = 2;
49
+ _context.next = 1;
50
50
  return nextTick();
51
- case 2:
51
+ case 1:
52
52
  table = unref(tableRef);
53
53
  if (!table) {
54
54
  console.error('The table is not registered. Please use the register method to register');
55
55
  }
56
56
  return _context.abrupt("return", table);
57
- case 5:
57
+ case 2:
58
58
  case "end":
59
59
  return _context.stop();
60
60
  }
@@ -68,35 +68,35 @@ var useTable = function useTable(config) {
68
68
  getList: function () {
69
69
  var _getList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
70
70
  var res;
71
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
71
+ return _regeneratorRuntime.wrap(function (_context2) {
72
72
  while (1) switch (_context2.prev = _context2.next) {
73
73
  case 0:
74
74
  loading.value = true;
75
75
  _context2.prev = 1;
76
- _context2.next = 4;
77
- return config === null || config === undefined ? undefined : config.fetchDataApi();
78
- case 4:
76
+ _context2.next = 2;
77
+ return config === null || config === void 0 ? void 0 : config.fetchDataApi();
78
+ case 2:
79
79
  res = _context2.sent;
80
80
  console.log('fetchDataApi res', res);
81
81
  if (res) {
82
82
  dataList.value = res.list;
83
83
  total.value = res.total || 0;
84
84
  }
85
- _context2.next = 12;
85
+ _context2.next = 4;
86
86
  break;
87
- case 9:
88
- _context2.prev = 9;
89
- _context2.t0 = _context2["catch"](1);
87
+ case 3:
88
+ _context2.prev = 3;
89
+ _context2["catch"](1);
90
90
  console.log('fetchDataApi error');
91
- case 12:
92
- _context2.prev = 12;
91
+ case 4:
92
+ _context2.prev = 4;
93
93
  loading.value = false;
94
- return _context2.finish(12);
95
- case 15:
94
+ return _context2.finish(4);
95
+ case 5:
96
96
  case "end":
97
97
  return _context2.stop();
98
98
  }
99
- }, _callee2, null, [[1, 9, 12, 15]]);
99
+ }, _callee2, null, [[1, 3, 4, 5]]);
100
100
  }));
101
101
  function getList() {
102
102
  return _getList.apply(this, arguments);
@@ -108,16 +108,16 @@ var useTable = function useTable(config) {
108
108
  var props,
109
109
  table,
110
110
  _args3 = arguments;
111
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
111
+ return _regeneratorRuntime.wrap(function (_context3) {
112
112
  while (1) switch (_context3.prev = _context3.next) {
113
113
  case 0:
114
114
  props = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
115
- _context3.next = 3;
115
+ _context3.next = 1;
116
116
  return getTable();
117
- case 3:
117
+ case 1:
118
118
  table = _context3.sent;
119
- table === null || table === undefined || table.setProps(props);
120
- case 5:
119
+ table === null || table === void 0 || table.setProps(props);
120
+ case 2:
121
121
  case "end":
122
122
  return _context3.stop();
123
123
  }
@@ -131,15 +131,15 @@ var useTable = function useTable(config) {
131
131
  setColumn: function () {
132
132
  var _setColumn = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(columnProps) {
133
133
  var table;
134
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
134
+ return _regeneratorRuntime.wrap(function (_context4) {
135
135
  while (1) switch (_context4.prev = _context4.next) {
136
136
  case 0:
137
- _context4.next = 2;
137
+ _context4.next = 1;
138
138
  return getTable();
139
- case 2:
139
+ case 1:
140
140
  table = _context4.sent;
141
- table === null || table === undefined || table.setColumn(columnProps);
142
- case 4:
141
+ table === null || table === void 0 || table.setColumn(columnProps);
142
+ case 2:
143
143
  case "end":
144
144
  return _context4.stop();
145
145
  }
@@ -153,15 +153,15 @@ var useTable = function useTable(config) {
153
153
  addColumn: function () {
154
154
  var _addColumn = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(tableColumn, index) {
155
155
  var table;
156
- return _regeneratorRuntime.wrap(function _callee5$(_context5) {
156
+ return _regeneratorRuntime.wrap(function (_context5) {
157
157
  while (1) switch (_context5.prev = _context5.next) {
158
158
  case 0:
159
- _context5.next = 2;
159
+ _context5.next = 1;
160
160
  return getTable();
161
- case 2:
161
+ case 1:
162
162
  table = _context5.sent;
163
- table === null || table === undefined || table.addColumn(tableColumn, index);
164
- case 4:
163
+ table === null || table === void 0 || table.addColumn(tableColumn, index);
164
+ case 2:
165
165
  case "end":
166
166
  return _context5.stop();
167
167
  }
@@ -175,15 +175,15 @@ var useTable = function useTable(config) {
175
175
  delColumn: function () {
176
176
  var _delColumn = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(field) {
177
177
  var table;
178
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
178
+ return _regeneratorRuntime.wrap(function (_context6) {
179
179
  while (1) switch (_context6.prev = _context6.next) {
180
180
  case 0:
181
- _context6.next = 2;
181
+ _context6.next = 1;
182
182
  return getTable();
183
- case 2:
183
+ case 1:
184
184
  table = _context6.sent;
185
- table === null || table === undefined || table.delColumn(field);
186
- case 4:
185
+ table === null || table === void 0 || table.delColumn(field);
186
+ case 2:
187
187
  case "end":
188
188
  return _context6.stop();
189
189
  }
@@ -196,14 +196,14 @@ var useTable = function useTable(config) {
196
196
  }(),
197
197
  getElTableExpose: function () {
198
198
  var _getElTableExpose = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
199
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
199
+ return _regeneratorRuntime.wrap(function (_context7) {
200
200
  while (1) switch (_context7.prev = _context7.next) {
201
201
  case 0:
202
- _context7.next = 2;
202
+ _context7.next = 1;
203
203
  return getTable();
204
- case 2:
204
+ case 1:
205
205
  return _context7.abrupt("return", unref(elTableRef));
206
- case 3:
206
+ case 2:
207
207
  case "end":
208
208
  return _context7.stop();
209
209
  }
@@ -220,29 +220,29 @@ var useTable = function useTable(config) {
220
220
  delList: function () {
221
221
  var _delList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(idsLength) {
222
222
  var fetchDelApi;
223
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
223
+ return _regeneratorRuntime.wrap(function (_context9) {
224
224
  while (1) switch (_context9.prev = _context9.next) {
225
225
  case 0:
226
226
  fetchDelApi = config.fetchDelApi;
227
227
  if (fetchDelApi) {
228
- _context9.next = 4;
228
+ _context9.next = 1;
229
229
  break;
230
230
  }
231
231
  console.warn('fetchDelApi is undefined');
232
232
  return _context9.abrupt("return");
233
- case 4:
233
+ case 1:
234
234
  ElMessageBox.confirm(t('common.delMessage'), t('common.delWarning'), {
235
235
  confirmButtonText: t('common.delOk'),
236
236
  cancelButtonText: t('common.delCancel'),
237
237
  type: 'warning'
238
238
  }).then(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
239
239
  var res, current;
240
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
240
+ return _regeneratorRuntime.wrap(function (_context8) {
241
241
  while (1) switch (_context8.prev = _context8.next) {
242
242
  case 0:
243
- _context8.next = 2;
243
+ _context8.next = 1;
244
244
  return fetchDelApi();
245
- case 2:
245
+ case 1:
246
246
  res = _context8.sent;
247
247
  if (res) {
248
248
  ElMessage.success(t('common.delSuccess'));
@@ -250,13 +250,13 @@ var useTable = function useTable(config) {
250
250
  currentPage.value = current;
251
251
  methods.getList();
252
252
  }
253
- case 4:
253
+ case 2:
254
254
  case "end":
255
255
  return _context8.stop();
256
256
  }
257
257
  }, _callee8);
258
258
  })));
259
- case 5:
259
+ case 2:
260
260
  case "end":
261
261
  return _context9.stop();
262
262
  }
@@ -1,39 +1,39 @@
1
1
  import { IToolbox } from "./props";
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- instance: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
3
+ instance: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
4
4
  default: () => Record<string, any>;
5
5
  } & {
6
6
  default: () => Record<string, any>;
7
7
  };
8
- iconSize: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/types").ValidatorFunction<number>> & {
8
+ iconSize: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/shared/vue-types.d8e57a80").b<number>> & {
9
9
  default: number;
10
10
  } & {
11
11
  default: number;
12
12
  };
13
- toggleTable: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
13
+ toggleTable: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
14
14
  default: (...args: any[]) => any;
15
15
  };
16
- toggleStatistic: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
16
+ toggleStatistic: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
17
17
  default: (...args: any[]) => any;
18
18
  };
19
19
  toolbox: () => Array<IToolbox>;
20
20
  }>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
21
  [key: string]: any;
22
22
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
- instance: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
23
+ instance: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
24
24
  default: () => Record<string, any>;
25
25
  } & {
26
26
  default: () => Record<string, any>;
27
27
  };
28
- iconSize: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/types").ValidatorFunction<number>> & {
28
+ iconSize: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/shared/vue-types.d8e57a80").b<number>> & {
29
29
  default: number;
30
30
  } & {
31
31
  default: number;
32
32
  };
33
- toggleTable: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
33
+ toggleTable: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
34
34
  default: (...args: any[]) => any;
35
35
  };
36
- toggleStatistic: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
36
+ toggleStatistic: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
37
37
  default: (...args: any[]) => any;
38
38
  };
39
39
  toolbox: () => Array<IToolbox>;
@@ -3,7 +3,7 @@ import { toolboxProps, EToolbox } from './props.js';
3
3
  import '../../Icon/src/Icon.vue.js';
4
4
  import '../../Icon/src/SvgIcon.vue.js';
5
5
  import { isEmpty } from '@dfsj/utils';
6
- import { useDownLoad } from '@dfsj/echarts';
6
+ import { useDownLoad } from './useDownLoad.js';
7
7
  import script$1 from '../../Icon/src/Icon.vue2.js';
8
8
 
9
9
  var _hoisted_1 = {
@@ -48,7 +48,7 @@ var script = defineComponent({
48
48
  }
49
49
  var hasTool = function hasTool(tool) {
50
50
  var _toolbox$value;
51
- return toolbox === null || toolbox === undefined || (_toolbox$value = toolbox.value) === null || _toolbox$value === undefined ? undefined : _toolbox$value.includes(tool);
51
+ return toolbox === null || toolbox === void 0 || (_toolbox$value = toolbox.value) === null || _toolbox$value === void 0 ? void 0 : _toolbox$value.includes(tool);
52
52
  };
53
53
  return function (_ctx, _cache) {
54
54
  return openBlock(), createElementBlock("div", {
@@ -1,40 +1,40 @@
1
1
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- data: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
2
+ data: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
3
3
  default: () => Record<string, any>;
4
4
  } & {
5
5
  default: () => Record<string, any>;
6
6
  };
7
- options: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
7
+ options: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
8
8
  default: () => Record<string, any>;
9
9
  } & {
10
10
  default: () => Record<string, any>;
11
11
  };
12
- width: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
12
+ width: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/shared/vue-types.d8e57a80").b<string>> & {
13
13
  default: string;
14
14
  } & {
15
15
  default: string;
16
16
  };
17
- height: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
17
+ height: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/shared/vue-types.d8e57a80").b<string>> & {
18
18
  default: string;
19
19
  } & {
20
20
  default: string;
21
21
  };
22
- target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
22
+ target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
23
23
  default: () => Record<string, any>;
24
24
  } & {
25
25
  default: () => Record<string, any>;
26
26
  };
27
27
  convert: () => import("./props").Convert;
28
- datasource: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
28
+ datasource: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
29
29
  default: () => Record<string, any>;
30
30
  } & {
31
31
  default: () => Record<string, any>;
32
32
  };
33
33
  toolbox: () => Array<import("./props").IToolbox>;
34
- chartHooks: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
34
+ chartHooks: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
35
35
  default: (...args: any[]) => any;
36
36
  };
37
- stateful: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
37
+ stateful: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
38
38
  default: () => Record<string, any>;
39
39
  } & {
40
40
  default: () => Record<string, any>;
@@ -42,42 +42,42 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
42
42
  }>, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
43
  [key: string]: any;
44
44
  }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
- data: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
45
+ data: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
46
46
  default: () => Record<string, any>;
47
47
  } & {
48
48
  default: () => Record<string, any>;
49
49
  };
50
- options: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
50
+ options: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
51
51
  default: () => Record<string, any>;
52
52
  } & {
53
53
  default: () => Record<string, any>;
54
54
  };
55
- width: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
55
+ width: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/shared/vue-types.d8e57a80").b<string>> & {
56
56
  default: string;
57
57
  } & {
58
58
  default: string;
59
59
  };
60
- height: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
60
+ height: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/shared/vue-types.d8e57a80").b<string>> & {
61
61
  default: string;
62
62
  } & {
63
63
  default: string;
64
64
  };
65
- target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
65
+ target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
66
66
  default: () => Record<string, any>;
67
67
  } & {
68
68
  default: () => Record<string, any>;
69
69
  };
70
70
  convert: () => import("./props").Convert;
71
- datasource: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
71
+ datasource: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
72
72
  default: () => Record<string, any>;
73
73
  } & {
74
74
  default: () => Record<string, any>;
75
75
  };
76
76
  toolbox: () => Array<import("./props").IToolbox>;
77
- chartHooks: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
77
+ chartHooks: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
78
78
  default: (...args: any[]) => any;
79
79
  };
80
- stateful: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
80
+ stateful: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
81
81
  default: () => Record<string, any>;
82
82
  } & {
83
83
  default: () => Record<string, any>;
@@ -8,7 +8,7 @@ import script$1 from '../../Stateful/src/Stateful.vue2.js';
8
8
  import script$2 from './ChartToolbox.vue2.js';
9
9
 
10
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
11
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  var script = defineComponent({
13
13
  __name: 'UnifyChart',
14
14
  props: unifyChartProps,
@@ -21,7 +21,7 @@ var script = defineComponent({
21
21
  _toRefs.stateful;
22
22
  var compState = computed(function () {
23
23
  var _props$stateful;
24
- return (_props$stateful = props.stateful) === null || _props$stateful === undefined ? undefined : _props$stateful.stringify;
24
+ return (_props$stateful = props.stateful) === null || _props$stateful === void 0 ? void 0 : _props$stateful.stringify;
25
25
  });
26
26
  var chartHooks = props.chartHooks,
27
27
  convert = props.convert;
@@ -8,18 +8,18 @@ import { isEmpty, isNullOrUnDef } from '@dfsj/utils';
8
8
 
9
9
  function useLoader(props, _ref) {
10
10
  var _ref$immediate = _ref.immediate,
11
- immediate = _ref$immediate === undefined ? true : _ref$immediate,
11
+ immediate = _ref$immediate === void 0 ? true : _ref$immediate,
12
12
  _ref$condition = _ref.condition,
13
- condition = _ref$condition === undefined ? {} : _ref$condition,
13
+ condition = _ref$condition === void 0 ? {} : _ref$condition,
14
14
  _ref$watchCondition = _ref.watchCondition,
15
- watchCondition = _ref$watchCondition === undefined ? true : _ref$watchCondition;
15
+ watchCondition = _ref$watchCondition === void 0 ? true : _ref$watchCondition;
16
16
  var datasource = ref();
17
17
  var stateful = new State(datasource.value != null ? StateEnum.FULL : StateEnum.NONE);
18
18
  var ins = getCurrentInstance();
19
19
  watch(function () {
20
20
  return stateful.state;
21
21
  }, function (value) {
22
- if (ins !== null && ins !== undefined && ins.emit) {
22
+ if (ins !== null && ins !== void 0 && ins.emit) {
23
23
  ins.emit('update:loading', stateful.isLoading);
24
24
  }
25
25
  }, {
@@ -37,44 +37,44 @@ function useLoader(props, _ref) {
37
37
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
38
38
  var _props$options;
39
39
  var result, empty;
40
- return _regeneratorRuntime.wrap(function _callee$(_context) {
40
+ return _regeneratorRuntime.wrap(function (_context) {
41
41
  while (1) switch (_context.prev = _context.next) {
42
42
  case 0:
43
43
  stateful.loading();
44
- if (!((_props$options = props.options) !== null && _props$options !== undefined && _props$options.loader)) {
45
- _context.next = 17;
44
+ if (!((_props$options = props.options) !== null && _props$options !== void 0 && _props$options.loader)) {
45
+ _context.next = 5;
46
46
  break;
47
47
  }
48
- _context.prev = 2;
49
- _context.next = 5;
48
+ _context.prev = 1;
49
+ _context.next = 2;
50
50
  return props.options.loader({
51
51
  target: props.target,
52
52
  condition: condition
53
53
  });
54
- case 5:
54
+ case 2:
55
55
  result = _context.sent;
56
56
  if (!isNullOrUnDef(result) && !isEmpty(result)) {
57
57
  datasource.value = result;
58
58
  } else {
59
59
  datasource.value = null;
60
60
  }
61
- _context.next = 13;
61
+ _context.next = 4;
62
62
  break;
63
- case 9:
64
- _context.prev = 9;
65
- _context.t0 = _context["catch"](2);
63
+ case 3:
64
+ _context.prev = 3;
65
+ _context["catch"](1);
66
66
  stateful.error();
67
67
  datasource.value = null;
68
- case 13:
69
- _context.prev = 13;
68
+ case 4:
69
+ _context.prev = 4;
70
70
  empty = isNullOrUnDef(datasource.value) || isEmpty(datasource.value);
71
71
  stateful.completed(empty);
72
- return _context.finish(13);
73
- case 17:
72
+ return _context.finish(4);
73
+ case 5:
74
74
  case "end":
75
75
  return _context.stop();
76
76
  }
77
- }, _callee, null, [[2, 9, 13, 17]]);
77
+ }, _callee, null, [[1, 3, 4, 5]]);
78
78
  }));
79
79
  return function fetchData() {
80
80
  return _ref2.apply(this, arguments);
@@ -6,11 +6,11 @@ function useRender(config, datasource, toolbox) {
6
6
  var getInstance = config.getInstance,
7
7
  setOptions = config.setOptions,
8
8
  _config$transform = config.transform,
9
- transform = _config$transform === undefined ? function (d) {
9
+ transform = _config$transform === void 0 ? function (d) {
10
10
  return d;
11
11
  } : _config$transform,
12
12
  _config$createOptions = config.createOptions,
13
- createOptions = _config$createOptions === undefined ? function (p) {
13
+ createOptions = _config$createOptions === void 0 ? function (p) {
14
14
  return p;
15
15
  } : _config$createOptions,
16
16
  assemble = config.assemble,
@@ -21,7 +21,7 @@ function useRender(config, datasource, toolbox) {
21
21
  instance: getInstance,
22
22
  toggleTable: toggleTable,
23
23
  toggleStatistic: toggleStatistic,
24
- toolbox: toolbox !== null && toolbox !== undefined ? toolbox : [EToolbox.Download, EToolbox.Table, EToolbox.Statistic]
24
+ toolbox: toolbox !== null && toolbox !== void 0 ? toolbox : [EToolbox.Download, EToolbox.Table, EToolbox.Statistic]
25
25
  };
26
26
  });
27
27
  function refreshCharts(data) {
@@ -3,42 +3,42 @@ export interface Convert {
3
3
  transform: Function;
4
4
  }
5
5
  export declare const unifyChartProps: {
6
- data: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
6
+ data: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
7
7
  default: () => Record<string, any>;
8
8
  } & {
9
9
  default: () => Record<string, any>;
10
10
  };
11
- options: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
11
+ options: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
12
12
  default: () => Record<string, any>;
13
13
  } & {
14
14
  default: () => Record<string, any>;
15
15
  };
16
- width: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
16
+ width: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/shared/vue-types.d8e57a80").b<string>> & {
17
17
  default: string;
18
18
  } & {
19
19
  default: string;
20
20
  };
21
- height: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
21
+ height: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/shared/vue-types.d8e57a80").b<string>> & {
22
22
  default: string;
23
23
  } & {
24
24
  default: string;
25
25
  };
26
- target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
26
+ target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
27
27
  default: () => Record<string, any>;
28
28
  } & {
29
29
  default: () => Record<string, any>;
30
30
  };
31
31
  convert: () => Convert;
32
- datasource: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
32
+ datasource: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
33
33
  default: () => Record<string, any>;
34
34
  } & {
35
35
  default: () => Record<string, any>;
36
36
  };
37
37
  toolbox: () => Array<IToolbox>;
38
- chartHooks: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
38
+ chartHooks: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
39
39
  default: (...args: any[]) => any;
40
40
  };
41
- stateful: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
41
+ stateful: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
42
42
  default: () => Record<string, any>;
43
43
  } & {
44
44
  default: () => Record<string, any>;
@@ -49,7 +49,7 @@ interface Options {
49
49
  condition: Object;
50
50
  }
51
51
  export declare const compProps: {
52
- target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
52
+ target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
53
53
  default: () => Record<string, any>;
54
54
  } & {
55
55
  default: () => Record<string, any>;
@@ -68,20 +68,20 @@ export declare enum EToolbox {
68
68
  export type EToolboxKeys = keyof typeof EToolbox;
69
69
  export type IToolbox = EToolbox[EToolboxKeys];
70
70
  export declare const toolboxProps: {
71
- instance: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
71
+ instance: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/shared/vue-types.d8e57a80").b<Record<string, any>>> & {
72
72
  default: () => Record<string, any>;
73
73
  } & {
74
74
  default: () => Record<string, any>;
75
75
  };
76
- iconSize: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/types").ValidatorFunction<number>> & {
76
+ iconSize: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/shared/vue-types.d8e57a80").b<number>> & {
77
77
  default: number;
78
78
  } & {
79
79
  default: number;
80
80
  };
81
- toggleTable: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
81
+ toggleTable: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
82
82
  default: (...args: any[]) => any;
83
83
  };
84
- toggleStatistic: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
84
+ toggleStatistic: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/shared/vue-types.d8e57a80").b<(...args: any[]) => any>> & {
85
85
  default: (...args: any[]) => any;
86
86
  };
87
87
  toolbox: () => Array<IToolbox>;
@@ -0,0 +1,9 @@
1
+ export interface IDownOptions {
2
+ name?: string;
3
+ suffix?: string;
4
+ pixelRatio?: number;
5
+ backgroundColor?: string;
6
+ }
7
+ export declare function useDownLoad(getFn: any): {
8
+ downloadImg: (options?: Partial<IDownOptions>) => void;
9
+ };