@dfsj/components 3.1.2 → 3.2.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 (48) hide show
  1. package/CHANGELOG.md +24 -3
  2. package/dist/components/Boards/src/Boards.vue2.js +9 -6
  3. package/dist/components/DatePicker/src/composables/use-range-picker.d.ts +1 -1
  4. package/dist/components/DatePicker/src/index.d.ts +10 -3
  5. package/dist/components/Descriptions/index.d.ts +3 -0
  6. package/dist/components/Descriptions/src/Descriptions.vue.d.ts +97 -0
  7. package/dist/components/Descriptions/src/Descriptions.vue.js +5 -0
  8. package/dist/components/Descriptions/src/Descriptions.vue2.js +151 -0
  9. package/dist/components/Descriptions/src/types/index.d.ts +17 -0
  10. package/dist/components/Form/src/Form.vue.d.ts +5 -15
  11. package/dist/components/Form/src/Form.vue2.js +16 -17
  12. package/dist/components/Modal/src/hooks/useTimeout.js +1 -1
  13. package/dist/components/Modal/src/utils/index.js +1 -1
  14. package/dist/components/NodeAxis/src/AbstractNodeProvider.js +1 -2
  15. package/dist/components/NodeAxis/src/CanvasNodeRender.js +7 -9
  16. package/dist/components/NodeAxis/src/NodeModel.js +1 -2
  17. package/dist/components/NodeAxis/src/NodeRender.js +1 -2
  18. package/dist/components/NodeAxis/src/NullLayerProvider.js +4 -5
  19. package/dist/components/NodeAxis/src/NullProvider.js +4 -5
  20. package/dist/components/NodeAxis/src/TimerNodePlayer.js +1 -2
  21. package/dist/components/Stateful/src/State.js +18 -21
  22. package/dist/components/Stateful/src/Stateful.vue.d.ts +9 -31
  23. package/dist/components/Stateful/src/props.d.ts +4 -14
  24. package/dist/components/Table/src/Table.vue.d.ts +1 -1
  25. package/dist/components/Table/src/Table.vue2.js +3 -3
  26. package/dist/components/UnifyChart/index.d.ts +3 -1
  27. package/dist/components/UnifyChart/src/ChartToolbox.vue.d.ts +7 -25
  28. package/dist/components/UnifyChart/src/UnifyChart.vue.d.ts +37 -127
  29. package/dist/components/UnifyChart/src/UnifyChart.vue2.js +5 -1
  30. package/dist/components/UnifyChart/src/hooks/useLoader.js +93 -0
  31. package/dist/components/UnifyChart/src/hooks/useRender.js +2 -1
  32. package/dist/components/UnifyChart/src/props.d.ts +21 -77
  33. package/dist/components/Video/src/VideoPlayerToolbar.vue2.js +1 -1
  34. package/dist/components/Video/src/abstract/VideoControl.js +16 -18
  35. package/dist/components/Video/src/control/DaHua.js +4 -6
  36. package/dist/components/Video/src/control/Hikvision.js +7 -9
  37. package/dist/components/Video/src/control/VideoFactory.js +1 -2
  38. package/dist/components/Visual/src/BufferLayerPlayer.js +1 -2
  39. package/dist/components/Visual/src/ResolvableLayerProvider.js +14 -16
  40. package/dist/components/Visual/src/resolvers/IntervalResolver.js +1 -2
  41. package/dist/components/Visual/src/utils/NodeMath.js +1 -2
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +4 -0
  44. package/dist/index.min.css +3 -3
  45. package/dist/node_modules/.pnpm/@vueuse_core@10.11.0_vue@3.4.31_typescript@5.2.2_/node_modules/@vueuse/core/index.js +447 -0
  46. package/dist/node_modules/.pnpm/@vueuse_shared@10.11.0_vue@3.4.31_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +44 -0
  47. package/dist/utils/propTypes.js +2 -3
  48. package/package.json +8 -6
@@ -12,7 +12,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
12
12
  var script = defineComponent({
13
13
  __name: 'UnifyChart',
14
14
  props: unifyChartProps,
15
- setup: function setup(__props) {
15
+ setup: function setup(__props, _ref) {
16
+ var __expose = _ref.expose;
16
17
  var chartRef = ref(null);
17
18
  var props = __props;
18
19
  var _toRefs = toRefs(props),
@@ -26,6 +27,9 @@ var script = defineComponent({
26
27
  convert = props.convert;
27
28
  var _useRender = useRender(_objectSpread(_objectSpread({}, chartHooks(chartRef)), convert), data, props.toolbox),
28
29
  getBindValue = _useRender.getBindValue;
30
+ __expose({
31
+ getBindValue: getBindValue
32
+ });
29
33
  return function (_ctx, _cache) {
30
34
  return openBlock(), createBlock(script$1, {
31
35
  value: compState.value
@@ -0,0 +1,93 @@
1
+ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
2
+ import _regeneratorRuntime from '@babel/runtime/regenerator';
3
+ import { ref, getCurrentInstance, watch, onMounted } from 'vue';
4
+ import '../../../Stateful/src/props.js';
5
+ import State, { StateEnum } from '../../../Stateful/src/State.js';
6
+ import '../../../Stateful/src/Stateful.vue.js';
7
+ import { isEmpty, isNullOrUnDef } from '@dfsj/utils';
8
+
9
+ function useLoader(props, _ref) {
10
+ var _ref$immediate = _ref.immediate,
11
+ immediate = _ref$immediate === void 0 ? true : _ref$immediate,
12
+ _ref$condition = _ref.condition,
13
+ condition = _ref$condition === void 0 ? {} : _ref$condition,
14
+ _ref$watchCondition = _ref.watchCondition,
15
+ watchCondition = _ref$watchCondition === void 0 ? true : _ref$watchCondition;
16
+ var datasource = ref();
17
+ var stateful = new State(datasource.value != null ? StateEnum.FULL : StateEnum.NONE);
18
+ var ins = getCurrentInstance();
19
+ watch(function () {
20
+ return stateful.state;
21
+ }, function (value) {
22
+ if (ins !== null && ins !== void 0 && ins.emit) {
23
+ ins.emit('update:loading', stateful.isLoading);
24
+ }
25
+ }, {
26
+ immediate: true,
27
+ deep: true
28
+ });
29
+ watchCondition && !isEmpty(condition) && watch(function () {
30
+ return condition;
31
+ }, function () {
32
+ fetchData();
33
+ }, {
34
+ deep: true
35
+ });
36
+ var fetchData = /*#__PURE__*/function () {
37
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
38
+ var _props$options;
39
+ var result, empty;
40
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
41
+ while (1) switch (_context.prev = _context.next) {
42
+ case 0:
43
+ stateful.loading();
44
+ if (!((_props$options = props.options) !== null && _props$options !== void 0 && _props$options.loader)) {
45
+ _context.next = 17;
46
+ break;
47
+ }
48
+ _context.prev = 2;
49
+ _context.next = 5;
50
+ return props.options.loader({
51
+ target: props.target,
52
+ condition: condition
53
+ });
54
+ case 5:
55
+ result = _context.sent;
56
+ if (!isNullOrUnDef(result) && !isEmpty(result)) {
57
+ datasource.value = result;
58
+ } else {
59
+ datasource.value = null;
60
+ }
61
+ _context.next = 13;
62
+ break;
63
+ case 9:
64
+ _context.prev = 9;
65
+ _context.t0 = _context["catch"](2);
66
+ stateful.error();
67
+ datasource.value = null;
68
+ case 13:
69
+ _context.prev = 13;
70
+ empty = isNullOrUnDef(datasource.value) || isEmpty(datasource.value);
71
+ stateful.completed(empty);
72
+ return _context.finish(13);
73
+ case 17:
74
+ case "end":
75
+ return _context.stop();
76
+ }
77
+ }, _callee, null, [[2, 9, 13, 17]]);
78
+ }));
79
+ return function fetchData() {
80
+ return _ref2.apply(this, arguments);
81
+ };
82
+ }();
83
+ immediate && onMounted(function () {
84
+ fetchData();
85
+ });
86
+ return {
87
+ datasource: datasource,
88
+ fetchData: fetchData,
89
+ stateful: stateful
90
+ };
91
+ }
92
+
93
+ export { useLoader };
@@ -1,5 +1,6 @@
1
1
  import { computed, watch, onMounted } from 'vue';
2
2
  import { EToolbox } from '../props.js';
3
+ import { isEmpty } from '@dfsj/utils';
3
4
 
4
5
  function useRender(config, datasource, toolbox) {
5
6
  var getInstance = config.getInstance,
@@ -24,7 +25,7 @@ function useRender(config, datasource, toolbox) {
24
25
  };
25
26
  });
26
27
  function refreshCharts(data) {
27
- if (!data) return;
28
+ if (!data || isEmpty(data)) return;
28
29
  transform(data);
29
30
  var optioned = createOptions(data);
30
31
  var options = assemble(data, optioned);
@@ -3,31 +3,15 @@ export interface Convert {
3
3
  transform: Function;
4
4
  }
5
5
  export declare const unifyChartProps: {
6
- data: import("vue-types").VueTypeValidableDef<{
7
- [key: string]: any;
8
- }, import("vue-types/dist/types").ValidatorFunction<{
9
- [key: string]: any;
10
- }>> & {
11
- default: () => {
12
- [key: string]: any;
13
- };
6
+ data: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
7
+ default: () => Record<string, any>;
14
8
  } & {
15
- default: () => {
16
- [key: string]: any;
17
- };
9
+ default: () => Record<string, any>;
18
10
  };
19
- options: import("vue-types").VueTypeValidableDef<{
20
- [key: string]: any;
21
- }, import("vue-types/dist/types").ValidatorFunction<{
22
- [key: string]: any;
23
- }>> & {
24
- default: () => {
25
- [key: string]: any;
26
- };
11
+ options: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
12
+ default: () => Record<string, any>;
27
13
  } & {
28
- default: () => {
29
- [key: string]: any;
30
- };
14
+ default: () => Record<string, any>;
31
15
  };
32
16
  width: import("vue-types").VueTypeValidableDef<string, import("vue-types/dist/types").ValidatorFunction<string>> & {
33
17
  default: string;
@@ -39,49 +23,25 @@ export declare const unifyChartProps: {
39
23
  } & {
40
24
  default: string;
41
25
  };
42
- target: import("vue-types").VueTypeValidableDef<{
43
- [key: string]: any;
44
- }, import("vue-types/dist/types").ValidatorFunction<{
45
- [key: string]: any;
46
- }>> & {
47
- default: () => {
48
- [key: string]: any;
49
- };
26
+ target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
27
+ default: () => Record<string, any>;
50
28
  } & {
51
- default: () => {
52
- [key: string]: any;
53
- };
29
+ default: () => Record<string, any>;
54
30
  };
55
31
  convert: () => Convert;
56
- datasource: import("vue-types").VueTypeValidableDef<{
57
- [key: string]: any;
58
- }, import("vue-types/dist/types").ValidatorFunction<{
59
- [key: string]: any;
60
- }>> & {
61
- default: () => {
62
- [key: string]: any;
63
- };
32
+ datasource: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
33
+ default: () => Record<string, any>;
64
34
  } & {
65
- default: () => {
66
- [key: string]: any;
67
- };
35
+ default: () => Record<string, any>;
68
36
  };
69
37
  toolbox: () => Array<IToolbox>;
70
38
  chartHooks: import("vue-types").VueTypeValidableDef<(...args: any[]) => any, import("vue-types/dist/types").ValidatorFunction<(...args: any[]) => any>> & {
71
39
  default: (...args: any[]) => any;
72
40
  };
73
- stateful: import("vue-types").VueTypeValidableDef<{
74
- [key: string]: any;
75
- }, import("vue-types/dist/types").ValidatorFunction<{
76
- [key: string]: any;
77
- }>> & {
78
- default: () => {
79
- [key: string]: any;
80
- };
41
+ stateful: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
42
+ default: () => Record<string, any>;
81
43
  } & {
82
- default: () => {
83
- [key: string]: any;
84
- };
44
+ default: () => Record<string, any>;
85
45
  };
86
46
  };
87
47
  interface Options {
@@ -89,18 +49,10 @@ interface Options {
89
49
  condition: Object;
90
50
  }
91
51
  export declare const compProps: {
92
- target: import("vue-types").VueTypeValidableDef<{
93
- [key: string]: any;
94
- }, import("vue-types/dist/types").ValidatorFunction<{
95
- [key: string]: any;
96
- }>> & {
97
- default: () => {
98
- [key: string]: any;
99
- };
52
+ target: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
53
+ default: () => Record<string, any>;
100
54
  } & {
101
- default: () => {
102
- [key: string]: any;
103
- };
55
+ default: () => Record<string, any>;
104
56
  };
105
57
  options: () => Options;
106
58
  };
@@ -116,18 +68,10 @@ export declare enum EToolbox {
116
68
  export type EToolboxKeys = keyof typeof EToolbox;
117
69
  export type IToolbox = EToolbox[EToolboxKeys];
118
70
  export declare const toolboxProps: {
119
- instance: import("vue-types").VueTypeValidableDef<{
120
- [key: string]: any;
121
- }, import("vue-types/dist/types").ValidatorFunction<{
122
- [key: string]: any;
123
- }>> & {
124
- default: () => {
125
- [key: string]: any;
126
- };
71
+ instance: import("vue-types").VueTypeValidableDef<Record<string, any>, import("vue-types/dist/types").ValidatorFunction<Record<string, any>>> & {
72
+ default: () => Record<string, any>;
127
73
  } & {
128
- default: () => {
129
- [key: string]: any;
130
- };
74
+ default: () => Record<string, any>;
131
75
  };
132
76
  iconSize: import("vue-types").VueTypeValidableDef<number, import("vue-types/dist/types").ValidatorFunction<number>> & {
133
77
  default: number;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, toRefs, computed, openBlock, createElementBlock, renderSlot, createVNode, unref, mergeProps, withModifiers } from 'vue';
2
- import { useFullscreen } from '../../../node_modules/.pnpm/@vueuse_core@10.7.2_vue@3.4.21/node_modules/@vueuse/core/index.js';
2
+ import { useFullscreen } from '../../../node_modules/.pnpm/@vueuse_core@10.11.0_vue@3.4.31_typescript@5.2.2_/node_modules/@vueuse/core/index.js';
3
3
  import '../../Icon/src/Icon.vue.js';
4
4
  import '../../Icon/src/SvgIcon.vue.js';
5
5
  import propTypes from '../../../utils/propTypes.js';
@@ -2,32 +2,30 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
4
4
  import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
5
- import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
6
5
  import _inherits from '@babel/runtime/helpers/inherits';
7
6
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
8
7
  import Observable from './Observable.js';
9
8
 
10
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
11
  var VideoControl = /*#__PURE__*/function (_Observable) {
13
- _inherits(VideoControl, _Observable);
14
12
  function VideoControl(opt) {
15
13
  var _this;
16
14
  _classCallCheck(this, VideoControl);
17
15
  _this = _callSuper(this, VideoControl);
18
- _defineProperty(_assertThisInitialized(_this), "ip", void 0);
19
- _defineProperty(_assertThisInitialized(_this), "port", void 0);
20
- _defineProperty(_assertThisInitialized(_this), "channel", void 0);
21
- _defineProperty(_assertThisInitialized(_this), "streamType", void 0);
22
- _defineProperty(_assertThisInitialized(_this), "username", void 0);
23
- _defineProperty(_assertThisInitialized(_this), "password", void 0);
24
- _defineProperty(_assertThisInitialized(_this), "wrapEl", void 0);
25
- _defineProperty(_assertThisInitialized(_this), "isPlayback", void 0);
26
- _defineProperty(_assertThisInitialized(_this), "playbackIndex", void 0);
27
- _defineProperty(_assertThisInitialized(_this), "state", void 0);
28
- _defineProperty(_assertThisInitialized(_this), "player", void 0);
29
- _defineProperty(_assertThisInitialized(_this), "needPlugin", void 0);
30
- _defineProperty(_assertThisInitialized(_this), "needLogin", void 0);
16
+ _defineProperty(_this, "ip", void 0);
17
+ _defineProperty(_this, "port", void 0);
18
+ _defineProperty(_this, "channel", void 0);
19
+ _defineProperty(_this, "streamType", void 0);
20
+ _defineProperty(_this, "username", void 0);
21
+ _defineProperty(_this, "password", void 0);
22
+ _defineProperty(_this, "wrapEl", void 0);
23
+ _defineProperty(_this, "isPlayback", void 0);
24
+ _defineProperty(_this, "playbackIndex", void 0);
25
+ _defineProperty(_this, "state", void 0);
26
+ _defineProperty(_this, "player", void 0);
27
+ _defineProperty(_this, "needPlugin", void 0);
28
+ _defineProperty(_this, "needLogin", void 0);
31
29
  console.log('opt', opt);
32
30
  _this.ip = opt.ip;
33
31
  _this.port = opt.port;
@@ -38,13 +36,13 @@ var VideoControl = /*#__PURE__*/function (_Observable) {
38
36
  _this.wrapEl = opt.wrapEl;
39
37
  return _this;
40
38
  }
41
- _createClass(VideoControl, [{
39
+ _inherits(VideoControl, _Observable);
40
+ return _createClass(VideoControl, [{
42
41
  key: "identify",
43
42
  get: function get() {
44
43
  return this.ip + '_' + this.port;
45
44
  }
46
45
  }]);
47
- return VideoControl;
48
46
  }(Observable);
49
47
 
50
48
  export { VideoControl as default };
@@ -2,7 +2,6 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
4
4
  import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
5
- import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
6
5
  import _inherits from '@babel/runtime/helpers/inherits';
7
6
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
8
7
  import VideoControl from '../abstract/VideoControl.js';
@@ -21,20 +20,20 @@ var DEF = {
21
20
  streamType: 0
22
21
  };
23
22
  var DaHua = /*#__PURE__*/function (_VideoControl) {
24
- _inherits(DaHua, _VideoControl);
25
23
  function DaHua(opts) {
26
24
  var _this;
27
25
  _classCallCheck(this, DaHua);
28
26
  _this = _callSuper(this, DaHua, [_objectSpread(_objectSpread({}, DEF), opts)]);
29
- _defineProperty(_assertThisInitialized(_this), "canvasEl", void 0);
30
- _defineProperty(_assertThisInitialized(_this), "videoEl", void 0);
27
+ _defineProperty(_this, "canvasEl", void 0);
28
+ _defineProperty(_this, "videoEl", void 0);
31
29
  _this.isPlayback = false;
32
30
  _this.playbackIndex = 0;
33
31
  _this.generateEl();
34
32
  _this.play();
35
33
  return _this;
36
34
  }
37
- _createClass(DaHua, [{
35
+ _inherits(DaHua, _VideoControl);
36
+ return _createClass(DaHua, [{
38
37
  key: "generateEl",
39
38
  value: function generateEl() {
40
39
  this.canvasEl = document.createElement('canvas');
@@ -150,7 +149,6 @@ var DaHua = /*#__PURE__*/function (_VideoControl) {
150
149
  this.player = null;
151
150
  }
152
151
  }]);
153
- return DaHua;
154
152
  }(VideoControl);
155
153
 
156
154
  export { DaHua as default };
@@ -2,7 +2,6 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
4
4
  import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
5
- import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
6
5
  import _inherits from '@babel/runtime/helpers/inherits';
7
6
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
8
7
  import VideoControl from '../abstract/VideoControl.js';
@@ -25,17 +24,16 @@ var DEF = {
25
24
  szBasePath: "libs/hikvision/"
26
25
  };
27
26
  var Hikvision = /*#__PURE__*/function (_VideoControl) {
28
- _inherits(Hikvision, _VideoControl);
29
27
  function Hikvision(opts) {
30
28
  var _this;
31
29
  _classCallCheck(this, Hikvision);
32
30
  var def = _objectSpread(_objectSpread({}, DEF), opts);
33
31
  _this = _callSuper(this, Hikvision, [def]);
34
- _defineProperty(_assertThisInitialized(_this), "width", void 0);
35
- _defineProperty(_assertThisInitialized(_this), "height", void 0);
36
- _defineProperty(_assertThisInitialized(_this), "elId", void 0);
37
- _defineProperty(_assertThisInitialized(_this), "container", void 0);
38
- _defineProperty(_assertThisInitialized(_this), "szBasePath", void 0);
32
+ _defineProperty(_this, "width", void 0);
33
+ _defineProperty(_this, "height", void 0);
34
+ _defineProperty(_this, "elId", void 0);
35
+ _defineProperty(_this, "container", void 0);
36
+ _defineProperty(_this, "szBasePath", void 0);
39
37
  _this.isPlayback = false;
40
38
  _this.playbackIndex = 0;
41
39
  _this.needPlugin = true;
@@ -75,7 +73,8 @@ var Hikvision = /*#__PURE__*/function (_VideoControl) {
75
73
  }
76
74
  return _this;
77
75
  }
78
- _createClass(Hikvision, [{
76
+ _inherits(Hikvision, _VideoControl);
77
+ return _createClass(Hikvision, [{
79
78
  key: "pluginElId",
80
79
  get: function get() {
81
80
  return "divPlugin".concat(this.elId);
@@ -245,7 +244,6 @@ var Hikvision = /*#__PURE__*/function (_VideoControl) {
245
244
  link.click();
246
245
  }
247
246
  }]);
248
- return Hikvision;
249
247
  }(VideoControl);
250
248
 
251
249
  export { Hikvision as default };
@@ -8,7 +8,7 @@ var VideoFactory = /*#__PURE__*/function () {
8
8
  function VideoFactory() {
9
9
  _classCallCheck(this, VideoFactory);
10
10
  }
11
- _createClass(VideoFactory, null, [{
11
+ return _createClass(VideoFactory, null, [{
12
12
  key: "create",
13
13
  value: function create(type, options) {
14
14
  var coach = null;
@@ -26,7 +26,6 @@ var VideoFactory = /*#__PURE__*/function () {
26
26
  if (coach) return new coach(options);
27
27
  }
28
28
  }]);
29
- return VideoFactory;
30
29
  }();
31
30
 
32
31
  export { VideoFactory as default };
@@ -23,7 +23,7 @@ var BufferLayerPlayer = /*#__PURE__*/function () {
23
23
  this.manager.remove(this.queue);
24
24
  this.queue.length = 0;
25
25
  }
26
- _createClass(BufferLayerPlayer, [{
26
+ return _createClass(BufferLayerPlayer, [{
27
27
  key: "backward",
28
28
  value: function () {
29
29
  var _backward = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
@@ -287,7 +287,6 @@ var BufferLayerPlayer = /*#__PURE__*/function () {
287
287
  }
288
288
  }
289
289
  }]);
290
- return BufferLayerPlayer;
291
290
  }();
292
291
 
293
292
  export { BufferLayerPlayer as default };
@@ -3,7 +3,6 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
5
5
  import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
6
- import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
7
6
  import _inherits from '@babel/runtime/helpers/inherits';
8
7
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
9
8
  import clamp from 'lodash-es/clamp';
@@ -13,33 +12,33 @@ import AbstractNodeProvider from '../../NodeAxis/src/AbstractNodeProvider.js';
13
12
  import mapping from './mapping.js';
14
13
  import def from './config/default.provider.js';
15
14
 
16
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
15
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
17
16
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
17
  var EMPTY_ARRAY = [];
19
18
  var ResolvableLayerProvider = /*#__PURE__*/function (_AbstractNodeProvider) {
20
- _inherits(ResolvableLayerProvider, _AbstractNodeProvider);
21
19
  function ResolvableLayerProvider(factory, data, injection, interceptor, config) {
22
20
  var _this;
23
21
  _classCallCheck(this, ResolvableLayerProvider);
24
22
  _this = _callSuper(this, ResolvableLayerProvider);
25
- _defineProperty(_assertThisInitialized(_this), "factory", void 0);
26
- _defineProperty(_assertThisInitialized(_this), "interceptor", void 0);
27
- _defineProperty(_assertThisInitialized(_this), "config", void 0);
28
- _defineProperty(_assertThisInitialized(_this), "cache", [-1, null]);
29
- _defineProperty(_assertThisInitialized(_this), "total", 0);
30
- _defineProperty(_assertThisInitialized(_this), "marks", []);
31
- _defineProperty(_assertThisInitialized(_this), "init", void 0);
32
- _defineProperty(_assertThisInitialized(_this), "back", void 0);
33
- _defineProperty(_assertThisInitialized(_this), "options", null);
34
- _defineProperty(_assertThisInitialized(_this), "extended", 0);
35
- _defineProperty(_assertThisInitialized(_this), "nodes", []);
23
+ _defineProperty(_this, "factory", void 0);
24
+ _defineProperty(_this, "interceptor", void 0);
25
+ _defineProperty(_this, "config", void 0);
26
+ _defineProperty(_this, "cache", [-1, null]);
27
+ _defineProperty(_this, "total", 0);
28
+ _defineProperty(_this, "marks", []);
29
+ _defineProperty(_this, "init", void 0);
30
+ _defineProperty(_this, "back", void 0);
31
+ _defineProperty(_this, "options", null);
32
+ _defineProperty(_this, "extended", 0);
33
+ _defineProperty(_this, "nodes", []);
36
34
  _this.factory = factory;
37
35
  _this.interceptor = interceptor;
38
36
  _this.config = Object.assign({}, def, config);
39
37
  _this.read(data, injection);
40
38
  return _this;
41
39
  }
42
- _createClass(ResolvableLayerProvider, [{
40
+ _inherits(ResolvableLayerProvider, _AbstractNodeProvider);
41
+ return _createClass(ResolvableLayerProvider, [{
43
42
  key: "read",
44
43
  value: function read(options, injection) {
45
44
  this.options = options;
@@ -249,7 +248,6 @@ var ResolvableLayerProvider = /*#__PURE__*/function (_AbstractNodeProvider) {
249
248
  this.factory = null;
250
249
  }
251
250
  }]);
252
- return ResolvableLayerProvider;
253
251
  }(AbstractNodeProvider);
254
252
 
255
253
  export { ResolvableLayerProvider as default };
@@ -29,7 +29,7 @@ var IntervalResolver = /*#__PURE__*/function () {
29
29
  });
30
30
  this.total = getCount(this.range, this.unit, this.step);
31
31
  }
32
- _createClass(IntervalResolver, [{
32
+ return _createClass(IntervalResolver, [{
33
33
  key: "count",
34
34
  get: function get() {
35
35
  return this.total;
@@ -164,7 +164,6 @@ var IntervalResolver = /*#__PURE__*/function () {
164
164
  return this.range[0].plus(_defineProperty({}, this.unit, index * this.step));
165
165
  }
166
166
  }]);
167
- return IntervalResolver;
168
167
  }();
169
168
 
170
169
  export { EMPTY_STRING, IntervalResolver as default };
@@ -5,7 +5,7 @@ var NodeMath = /*#__PURE__*/function () {
5
5
  function NodeMath() {
6
6
  _classCallCheck(this, NodeMath);
7
7
  }
8
- _createClass(NodeMath, null, [{
8
+ return _createClass(NodeMath, null, [{
9
9
  key: "offset",
10
10
  value: function offset(index, range, length) {
11
11
  if (range[1] - range[0] <= 1) {
@@ -95,7 +95,6 @@ var NodeMath = /*#__PURE__*/function () {
95
95
  return accept;
96
96
  }
97
97
  }]);
98
- return NodeMath;
99
98
  }();
100
99
 
101
100
  export { NodeMath as default };
package/dist/index.d.ts CHANGED
@@ -11,5 +11,6 @@ export * from "./components/DatePicker";
11
11
  export * from "./components/UnifyChart";
12
12
  export * from "./components/Highlight";
13
13
  export * from "./components/InputPassword";
14
+ export * from "./components/Descriptions";
14
15
  export * from "./components/NodeAxis";
15
16
  export * from "./components/Visual";
package/dist/index.js CHANGED
@@ -18,8 +18,11 @@ export { default as DatePicker } from './components/DatePicker/src/index.js';
18
18
  export { EToolbox, compProps, toolboxProps, unifyChartProps } from './components/UnifyChart/src/props.js';
19
19
  import './components/UnifyChart/src/UnifyChart.vue.js';
20
20
  import './components/UnifyChart/src/ChartToolbox.vue.js';
21
+ export { useLoader } from './components/UnifyChart/src/hooks/useLoader.js';
22
+ export { useRender } from './components/UnifyChart/src/hooks/useRender.js';
21
23
  import './components/Highlight/src/Highlight.vue.js';
22
24
  import './components/InputPassword/src/InputPassword.vue.js';
25
+ import './components/Descriptions/src/Descriptions.vue.js';
23
26
  export { default as AbstractNodeProvider } from './components/NodeAxis/src/AbstractNodeProvider.js';
24
27
  export { default as CanvasNodeRender } from './components/NodeAxis/src/CanvasNodeRender.js';
25
28
  import './components/NodeAxis/src/NodeAxis.vue.js';
@@ -36,6 +39,7 @@ export { default as VideoPlayer } from './components/Video/src/VideoPlayer.vue2.
36
39
  export { default as UnifyChart } from './components/UnifyChart/src/UnifyChart.vue2.js';
37
40
  export { default as Highlight } from './components/Highlight/src/Highlight.vue2.js';
38
41
  export { default as InputPassword } from './components/InputPassword/src/InputPassword.vue2.js';
42
+ export { default as Descriptions } from './components/Descriptions/src/Descriptions.vue2.js';
39
43
  export { default as NodeAxis } from './components/NodeAxis/src/NodeAxis.vue2.js';
40
44
  export { default as Icon } from './components/Icon/src/Icon.vue2.js';
41
45
  export { default as SvgIcon } from './components/Icon/src/SvgIcon.vue2.js';