hy-dispatch-ui-v3 0.2.2 → 0.2.5

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 (65) hide show
  1. package/es/components/appConfigProvider/appConfigProvider.vue.mjs +3 -1
  2. package/es/components/appDatePicker/appDatePicker.vue.mjs +57 -3
  3. package/es/components/appDatePicker/index.mjs +2 -1
  4. package/es/components/appForm/cpns/appFormItem.vue.mjs +37 -7
  5. package/es/components/appForm/js/useAppForm.mjs +5 -40
  6. package/es/components/appIcon/appIcon.vue.mjs +5 -1
  7. package/es/components/appSearch/cpns/appSearchItem.vue.mjs +33 -3
  8. package/es/components/appSearch/js/index.mjs +1 -1
  9. package/es/components/appSearch/js/useAppSearch.mjs +9 -39
  10. package/es/components/appTimePicker/appTimePicker.vue.mjs +154 -0
  11. package/es/components/appTimePicker/index.mjs +7 -0
  12. package/es/components/appTimePicker/style/appTimePicker.scss +0 -0
  13. package/es/components/appTree/appTree.vue.mjs +11 -8
  14. package/es/components/appTree/config/tree-config.mjs +33 -0
  15. package/es/components/appTree/js/index.mjs +10 -12
  16. package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +6 -6
  17. package/es/components/index.mjs +2 -1
  18. package/es/hooks/index.mjs +1 -0
  19. package/es/hooks/useEnsureHyIcon.mjs +12 -0
  20. package/es/hooks/useGlobalConfig.mjs +5 -0
  21. package/es/index.mjs +3 -1
  22. package/es/locale/en.mjs +21 -11
  23. package/es/locale/zh_CN.mjs +21 -11
  24. package/es/static/_sprite.js +33 -0
  25. package/es/static/hy-svg-icons/ai.js +30 -0
  26. package/es/static/hy-svg-icons/batch.js +8 -0
  27. package/es/static/hy-svg-icons.js +10 -10
  28. package/es/static/index.js +2 -2
  29. package/es/static/protocolcheck.js +109 -85
  30. package/es/static/vite-plugin-hy-svg-icons.js +240 -0
  31. package/es/utils/date.mjs +1 -0
  32. package/es/version.mjs +1 -1
  33. package/lib/components/appConfigProvider/appConfigProvider.vue.js +3 -1
  34. package/lib/components/appDatePicker/appDatePicker.vue.js +56 -2
  35. package/lib/components/appDatePicker/index.js +2 -0
  36. package/lib/components/appForm/cpns/appFormItem.vue.js +38 -8
  37. package/lib/components/appForm/js/useAppForm.js +5 -40
  38. package/lib/components/appIcon/appIcon.vue.js +4 -0
  39. package/lib/components/appSearch/cpns/appSearchItem.vue.js +34 -4
  40. package/lib/components/appSearch/js/index.js +1 -1
  41. package/lib/components/appSearch/js/useAppSearch.js +9 -39
  42. package/lib/components/appTimePicker/appTimePicker.vue.js +158 -0
  43. package/lib/components/appTimePicker/index.js +13 -0
  44. package/lib/components/appTimePicker/style/appTimePicker.scss +0 -0
  45. package/lib/components/appTree/appTree.vue.js +10 -7
  46. package/lib/components/appTree/config/tree-config.js +37 -0
  47. package/lib/components/appTree/js/index.js +10 -12
  48. package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +6 -6
  49. package/lib/components/index.js +12 -8
  50. package/lib/hooks/index.js +3 -0
  51. package/lib/hooks/useEnsureHyIcon.js +15 -0
  52. package/lib/hooks/useGlobalConfig.js +5 -0
  53. package/lib/index.js +15 -8
  54. package/lib/locale/en.js +21 -11
  55. package/lib/locale/zh_CN.js +21 -11
  56. package/lib/static/_sprite.js +33 -0
  57. package/lib/static/hy-svg-icons/ai.js +30 -0
  58. package/lib/static/hy-svg-icons/batch.js +8 -0
  59. package/lib/static/hy-svg-icons.js +10 -12
  60. package/lib/static/index.js +2 -5
  61. package/lib/static/protocolcheck.js +109 -87
  62. package/lib/static/vite-plugin-hy-svg-icons.js +240 -0
  63. package/lib/utils/date.js +1 -0
  64. package/lib/version.js +1 -1
  65. package/package.json +3 -3
@@ -6,6 +6,7 @@ var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var hyVirtualTree = require('hy-virtual-tree');
8
8
  var index = require('./js/index.js');
9
+ var treeConfig = require('./config/tree-config.js');
9
10
  var useMixins = require('../../hooks/useMixins.js');
10
11
  var index$1 = require('../appIcon/index.js');
11
12
 
@@ -75,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
75
76
  treeType: {
76
77
  type: String,
77
78
  default: () => {
78
- return "device";
79
+ return treeConfig.treeTypeConfig.device;
79
80
  }
80
81
  },
81
82
  // 是否显示通道节点的选择框
@@ -113,12 +114,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
113
114
  // 搜索类型
114
115
  searchType: {
115
116
  type: Number,
116
- default: 1
117
+ default: treeConfig.searchTypeConfig.fullSearch
117
118
  },
118
119
  // 筛选列表
119
120
  selectFilterList: {
120
121
  type: Array,
121
- default: () => null
122
+ default: () => []
122
123
  },
123
124
  // 是否高亮选中节点
124
125
  highlight: {
@@ -156,7 +157,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
156
157
  selectFilterList,
157
158
  setFilterListType,
158
159
  getInputPlaceholder,
159
- onChange
160
+ onChange,
161
+ getSelectedDataList
160
162
  } = useMixins.useMixins(
161
163
  {
162
164
  props,
@@ -175,7 +177,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
175
177
  getData,
176
178
  singleRemovalFn,
177
179
  setCheckedKeys,
178
- setChecked
180
+ setChecked,
181
+ getSelectedDataList
179
182
  });
180
183
  return (_ctx, _cache) => {
181
184
  const _component_svg_icon = vue.resolveComponent("svg-icon");
@@ -186,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
186
189
  style: vue.normalizeStyle({ height: `${__props.treeHeight}px` })
187
190
  },
188
191
  [
189
- __props.searchType === 1 ? (vue.openBlock(), vue.createElementBlock("div", {
192
+ __props.searchType === vue.unref(treeConfig.searchTypeConfig).fullSearch ? (vue.openBlock(), vue.createElementBlock("div", {
190
193
  key: 0,
191
194
  class: "centerBox p-[10px]"
192
195
  }, [
@@ -220,7 +223,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
220
223
  _: 1
221
224
  /* STABLE */
222
225
  }, 8, ["content"])
223
- ])) : __props.searchType === 2 ? (vue.openBlock(), vue.createElementBlock("div", {
226
+ ])) : __props.searchType === vue.unref(treeConfig.searchTypeConfig).accurateSearch ? (vue.openBlock(), vue.createElementBlock("div", {
224
227
  key: 1,
225
228
  class: "centerBox flex-col p-[10px]"
226
229
  }, [
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ const treeTypeConfig = {
4
+ device: "device",
5
+ // 设备树形
6
+ user: "user",
7
+ // 人员树形
8
+ channel: "channel",
9
+ // 设备通道树形
10
+ groupDevice: "groupDevice",
11
+ // 群组设备树形
12
+ group: "group",
13
+ // 群组树形
14
+ planGroupDevicee: "planGroupDevicee",
15
+ // 预案分组树形
16
+ cs: "cs",
17
+ // 采集站树形
18
+ teamUser: "teamUser",
19
+ // 队伍树形
20
+ userMail: "userMail"
21
+ };
22
+ const searchTypeConfig = {
23
+ fullSearch: 1,
24
+ // 全量模糊查询
25
+ accurateSearch: 2
26
+ // 指定查询类型
27
+ };
28
+ const dataTypeConfig = {
29
+ department: 1,
30
+ device: 3,
31
+ group: 4,
32
+ user: 5
33
+ };
34
+
35
+ exports.dataTypeConfig = dataTypeConfig;
36
+ exports.searchTypeConfig = searchTypeConfig;
37
+ exports.treeTypeConfig = treeTypeConfig;
@@ -2,6 +2,7 @@
2
2
 
3
3
  var elementPlus = require('element-plus');
4
4
  var vue = require('vue');
5
+ var treeConfig = require('../config/tree-config.js');
5
6
 
6
7
  const deviceStatus = {
7
8
  7: "SOS",
@@ -60,7 +61,7 @@ const useAppTreeWrapper = (hy) => {
60
61
  emptyText: "\u6682\u65E0\u6570\u636E",
61
62
  business: props.treeType,
62
63
  // 自定义整体的插槽
63
- renderItem: props.treeType === "user" ? (data, node) => setUserSlot(data) : setSlot("treeParentSlot"),
64
+ renderItem: props.treeType === treeConfig.treeTypeConfig.user ? (data, node) => setUserSlot(data) : setSlot("treeParentSlot"),
64
65
  // // 自定义状态右侧插槽
65
66
  renderRight: (data) => {
66
67
  let renderRight = setSlot("renderRight");
@@ -86,7 +87,7 @@ const useAppTreeWrapper = (hy) => {
86
87
  return true;
87
88
  },
88
89
  // // 自定义状态模块
89
- renderStatus: props.treeType === "device" || props.treeType === "channel" ? (data) => setRenderStatus(data) : null,
90
+ renderStatus: props.treeType === treeConfig.treeTypeConfig.device || props.treeType === treeConfig.treeTypeConfig.channel ? (data) => setRenderStatus(data) : null,
90
91
  renderEmpty: () => {
91
92
  if (!props.showCustomEmpty || hy.filterValue.value) return true;
92
93
  let renderEmpty = setSlot("renderEmpty");
@@ -406,8 +407,7 @@ const useAppTreeWrapper = (hy) => {
406
407
  for (let i = 0; i < deviceList.length; i++) {
407
408
  if (props.defaultSelectedOrgID === deviceList[i].id) {
408
409
  if (deviceList[i].deviceList?.length) {
409
- virtualTree.setCheckedNodes(deviceList[i].deviceList, true);
410
- setSelectedDataList(deviceList[i].deviceList);
410
+ setCheckedKeys(deviceList[i].deviceList);
411
411
  }
412
412
  return true;
413
413
  }
@@ -417,11 +417,8 @@ const useAppTreeWrapper = (hy) => {
417
417
  }
418
418
  }
419
419
  }
420
- function setSelectedDataList(inSelectedDataList = [], notify = true) {
421
- hy.selectedDataList.value = [...inSelectedDataList];
422
- if (notify) {
423
- emits("on-selectedDataList", hy.selectedDataList.value);
424
- }
420
+ function getSelectedDataList() {
421
+ return virtualTree?.getCheckedBusinessNodes(true) || [];
425
422
  }
426
423
  function setFilterListType(type) {
427
424
  if (props.selectFilterList?.length) {
@@ -499,15 +496,16 @@ const useAppTreeWrapper = (hy) => {
499
496
  onChange,
500
497
  selectFilterList,
501
498
  selectFilterType,
502
- selectedDataList
499
+ selectedDataList,
500
+ getSelectedDataList
503
501
  };
504
502
  };
505
503
  function filterNodeMethod(data, value, selectFilterType) {
506
- data.dataType;
504
+ let type = data.dataType;
507
505
  const includesValue = (field) => {
508
506
  return field && field.toString().includes(value.toString());
509
507
  };
510
- switch (data.dataType) {
508
+ switch (type) {
511
509
  case 7:
512
510
  if (data.typeName === "workOrderList") {
513
511
  return includesValue(data.workTimeName);
@@ -280,7 +280,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
280
280
  vue.createElementVNode(
281
281
  "div",
282
282
  { class: "text-theme text-center mt-3 mb-[14px]" },
283
- vue.toDisplayString(vue.unref(isCanNotPlayType) ? vue.unref(t)("videoPlayer.vlcPlayerTip") : vue.unref(t)("theVideoCannotBePlayed")),
283
+ vue.toDisplayString(vue.unref(isCanNotPlayType) ? vue.unref(t)("videoPlayer.vlcPlayerTip") : vue.unref(t)("videoPlayer.theVideoCannotBePlayed")),
284
284
  1
285
285
  /* TEXT */
286
286
  ),
@@ -328,7 +328,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
328
328
  vue.createElementVNode("div", { class: "vlc-between-control left-0" }, [
329
329
  vue.createVNode(vue.unref(index$3.AppTooltip), {
330
330
  isAlways: "",
331
- content: "\u67E5\u770B\u4E0A\u4E00\u6761\u89C6\u9891"
331
+ content: vue.unref(t)("videoPlayer.viewThePreviousVideo")
332
332
  }, {
333
333
  default: vue.withCtx(() => [
334
334
  vue.createElementVNode("div", {
@@ -343,12 +343,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
343
343
  ]),
344
344
  _: 1
345
345
  /* STABLE */
346
- })
346
+ }, 8, ["content"])
347
347
  ]),
348
348
  vue.createElementVNode("div", { class: "vlc-between-control right-0" }, [
349
349
  vue.createVNode(vue.unref(index$3.AppTooltip), {
350
350
  isAlways: "",
351
- content: "\u67E5\u770B\u4E0B\u4E00\u6761\u89C6\u9891"
351
+ content: vue.unref(t)("videoPlayer.viewTheNextVideo")
352
352
  }, {
353
353
  default: vue.withCtx(() => [
354
354
  vue.createElementVNode("div", {
@@ -363,7 +363,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
363
363
  ]),
364
364
  _: 1
365
365
  /* STABLE */
366
- })
366
+ }, 8, ["content"])
367
367
  ])
368
368
  ],
369
369
  64
@@ -560,7 +560,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
560
560
  !vue.unref(isFullScreen) && __props.showShrink ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.AppTooltip), {
561
561
  key: 1,
562
562
  isAlways: "",
563
- content: vue.unref(isExpand) ? "\u6536\u8D77" : "\u5C55\u5F00"
563
+ content: vue.unref(isExpand) ? vue.unref(t)("videoPlayer.packUp") : vue.unref(t)("videoPlayer.expand")
564
564
  }, {
565
565
  default: vue.withCtx(() => [
566
566
  vue.createVNode(vue.unref(index$1.AppIcon), {
@@ -8,19 +8,20 @@ var index$8 = require('./appIcon/index.js');
8
8
  var index$9 = require('./appIconBox/index.js');
9
9
  var index$f = require('./appSearch/index.js');
10
10
  var index$g = require('./appTable/index.js');
11
- var index$h = require('./appTooltip/index.js');
11
+ var index$i = require('./appTooltip/index.js');
12
12
  var index$2 = require('./appConfigProvider/index.js');
13
13
  var index$1 = require('./appButton/index.js');
14
- var index$j = require('./appUserAvatar/index.js');
14
+ var index$k = require('./appUserAvatar/index.js');
15
15
  var index$c = require('./appNoPermissions/index.js');
16
16
  var index$d = require('./appNoPermissionsMap/index.js');
17
17
  var index$4 = require('./appCutter/index.js');
18
18
  var index$6 = require('./appDialog/index.js');
19
19
  var index$b = require('./appMenu/index.js');
20
- var index$i = require('./appTree/index.js');
21
- var index$k = require('./appVideoPlayer/index.js');
20
+ var index$j = require('./appTree/index.js');
21
+ var index$l = require('./appVideoPlayer/index.js');
22
22
  var index = require('./appAudioPlayer/index.js');
23
23
  var index$a = require('./appInput/index.js');
24
+ var index$h = require('./appTimePicker/index.js');
24
25
  var useAppForm = require('./appForm/js/useAppForm.js');
25
26
  var useAppSearch = require('./appSearch/js/useAppSearch.js');
26
27
  var useAppTable = require('./appTable/js/useAppTable.js');
@@ -30,25 +31,28 @@ var useAppTable = require('./appTable/js/useAppTable.js');
30
31
  exports.AppOrgCascader = index$e.AppOrgCascader;
31
32
  exports.AppConfirmDialog = index$3.AppConfirmDialog;
32
33
  exports.AppDatePicker = index$5.AppDatePicker;
34
+ exports.ElDatePicker = index$5.ElDatePicker;
33
35
  exports.AppForm = index$7.AppForm;
34
36
  exports.AppIcon = index$8.AppIcon;
35
37
  exports.AppIconBox = index$9.AppIconBox;
36
38
  exports.AppSearch = index$f.AppSearch;
37
39
  exports.AppTable = index$g.AppTable;
38
- exports.AppTooltip = index$h.AppTooltip;
40
+ exports.AppTooltip = index$i.AppTooltip;
39
41
  exports.AppConfigProvider = index$2.AppConfigProvider;
40
42
  exports.AppButton = index$1.AppButton;
41
- exports.AppUserAvatar = index$j.AppUserAvatar;
43
+ exports.AppUserAvatar = index$k.AppUserAvatar;
42
44
  exports.AppNoPermissions = index$c.AppNoPermissions;
43
45
  exports.AppNoPermissionsMap = index$d.AppNoPermissionsMap;
44
46
  exports.AppCutter = index$4.AppCutter;
45
47
  exports.AppDialog = index$6.AppDialog;
46
48
  exports.AppMenu = index$b.AppMenu;
47
- exports.AppTree = index$i.AppTree;
48
- exports.AppVideoPlayer = index$k.AppVideoPlayer;
49
+ exports.AppTree = index$j.AppTree;
50
+ exports.AppVideoPlayer = index$l.AppVideoPlayer;
49
51
  exports.AppAudioPlayer = index.AppAudioPlayer;
50
52
  exports.AppInput = index$a.AppInput;
51
53
  exports.ElInput = index$a.ElInput;
54
+ exports.AppTimePicker = index$h.AppTimePicker;
55
+ exports.ElTimePicker = index$h.ElTimePicker;
52
56
  exports.useAppForm = useAppForm.useAppForm;
53
57
  exports.useAppSearch = useAppSearch.useAppSearch;
54
58
  exports.useAppTable = useAppTable.useAppTable;
@@ -9,6 +9,7 @@ var useUserAvatarMap = require('./useUserAvatarMap.js');
9
9
  var useResizeHandler = require('./useResizeHandler.js');
10
10
  var useAudioPlayerConfig = require('./useAudioPlayerConfig.js');
11
11
  var useVideoPlayerConfig = require('./useVideoPlayerConfig.js');
12
+ var useEnsureHyIcon = require('./useEnsureHyIcon.js');
12
13
 
13
14
 
14
15
 
@@ -34,3 +35,5 @@ exports.localAudioPlayerConfigKey = useAudioPlayerConfig.localAudioPlayerConfigK
34
35
  exports.useAudioPlayerConfig = useAudioPlayerConfig.useAudioPlayerConfig;
35
36
  exports.localVideoPlayerConfigKey = useVideoPlayerConfig.localVideoPlayerConfigKey;
36
37
  exports.useVideoPlayerConfig = useVideoPlayerConfig.useVideoPlayerConfig;
38
+ exports.localEnsureHyIconMapKey = useEnsureHyIcon.localEnsureHyIconMapKey;
39
+ exports.useEnsureHyIcon = useEnsureHyIcon.useEnsureHyIcon;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var useGlobalConfig = require('./useGlobalConfig.js');
5
+
6
+ const localEnsureHyIconMapKey = /* @__PURE__ */ Symbol("ensureHyIcon");
7
+ const useEnsureHyIcon = () => {
8
+ const ensureHyIcon = vue.inject(localEnsureHyIconMapKey, vue.ref());
9
+ return {
10
+ ensureHyIcon: vue.unref(ensureHyIcon) ? vue.unref(ensureHyIcon) : vue.unref(useGlobalConfig.useGlobalConfig()).ensureHyIcon
11
+ };
12
+ };
13
+
14
+ exports.localEnsureHyIconMapKey = localEnsureHyIconMapKey;
15
+ exports.useEnsureHyIcon = useEnsureHyIcon;
@@ -8,6 +8,7 @@ var useUserAvatarMap = require('./useUserAvatarMap.js');
8
8
  var usePermissionMap = require('./usePermissionMap.js');
9
9
  var useAudioPlayerConfig = require('./useAudioPlayerConfig.js');
10
10
  var useVideoPlayerConfig = require('./useVideoPlayerConfig.js');
11
+ var useEnsureHyIcon = require('./useEnsureHyIcon.js');
11
12
  var zh_CN = require('../locale/zh_CN.js');
12
13
 
13
14
  const globalConfig = vue.ref();
@@ -69,6 +70,10 @@ const provideGlobalConfig = (config, app, global = false) => {
69
70
  useVideoPlayerConfig.localVideoPlayerConfigKey,
70
71
  vue.computed(() => context.value.videoPlayer)
71
72
  );
73
+ provideFn(
74
+ useEnsureHyIcon.localEnsureHyIconMapKey,
75
+ vue.computed(() => context.value.ensureHyIcon)
76
+ );
72
77
  if (global || !globalConfig.value) {
73
78
  globalConfig.value = context.value;
74
79
  }
package/lib/index.js CHANGED
@@ -20,10 +20,11 @@ var index$d = require('./components/appNoPermissionsMap/index.js');
20
20
  var index$e = require('./components/appOrgCascader/index.js');
21
21
  var index$f = require('./components/appSearch/index.js');
22
22
  var index$g = require('./components/appTable/index.js');
23
- var index$h = require('./components/appTooltip/index.js');
24
- var index$i = require('./components/appTree/index.js');
25
- var index$j = require('./components/appUserAvatar/index.js');
26
- var index$k = require('./components/appVideoPlayer/index.js');
23
+ var index$h = require('./components/appTimePicker/index.js');
24
+ var index$i = require('./components/appTooltip/index.js');
25
+ var index$j = require('./components/appTree/index.js');
26
+ var index$k = require('./components/appUserAvatar/index.js');
27
+ var index$l = require('./components/appVideoPlayer/index.js');
27
28
  var crypto = require('./utils/crypto.js');
28
29
  var file = require('./utils/file.js');
29
30
  var useLocale = require('./hooks/useLocale.js');
@@ -35,6 +36,7 @@ var useApi = require('./hooks/useApi.js');
35
36
  var date = require('./utils/date.js');
36
37
  var is = require('./utils/is.js');
37
38
  var useAudioPlayerConfig = require('./hooks/useAudioPlayerConfig.js');
39
+ var useEnsureHyIcon = require('./hooks/useEnsureHyIcon.js');
38
40
  var usePermissionMap = require('./hooks/usePermissionMap.js');
39
41
  var useUserAvatarMap = require('./hooks/useUserAvatarMap.js');
40
42
  var useVideoPlayerConfig = require('./hooks/useVideoPlayerConfig.js');
@@ -55,6 +57,7 @@ exports.AppConfigProvider = index$2.AppConfigProvider;
55
57
  exports.AppConfirmDialog = index$3.AppConfirmDialog;
56
58
  exports.AppCutter = index$4.AppCutter;
57
59
  exports.AppDatePicker = index$5.AppDatePicker;
60
+ exports.ElDatePicker = index$5.ElDatePicker;
58
61
  exports.AppDialog = index$6.AppDialog;
59
62
  exports.AppForm = index$7.AppForm;
60
63
  exports.AppIcon = index$8.AppIcon;
@@ -67,10 +70,12 @@ exports.AppNoPermissionsMap = index$d.AppNoPermissionsMap;
67
70
  exports.AppOrgCascader = index$e.AppOrgCascader;
68
71
  exports.AppSearch = index$f.AppSearch;
69
72
  exports.AppTable = index$g.AppTable;
70
- exports.AppTooltip = index$h.AppTooltip;
71
- exports.AppTree = index$i.AppTree;
72
- exports.AppUserAvatar = index$j.AppUserAvatar;
73
- exports.AppVideoPlayer = index$k.AppVideoPlayer;
73
+ exports.AppTimePicker = index$h.AppTimePicker;
74
+ exports.ElTimePicker = index$h.ElTimePicker;
75
+ exports.AppTooltip = index$i.AppTooltip;
76
+ exports.AppTree = index$j.AppTree;
77
+ exports.AppUserAvatar = index$k.AppUserAvatar;
78
+ exports.AppVideoPlayer = index$l.AppVideoPlayer;
74
79
  exports.base64Decrypt = crypto.base64Decrypt;
75
80
  exports.encryptToBase64 = crypto.encryptToBase64;
76
81
  exports.generateRandomCode = crypto.generateRandomCode;
@@ -121,6 +126,8 @@ exports.isUndefined = is.isUndefined;
121
126
  exports.isVueProxy = is.isVueProxy;
122
127
  exports.localAudioPlayerConfigKey = useAudioPlayerConfig.localAudioPlayerConfigKey;
123
128
  exports.useAudioPlayerConfig = useAudioPlayerConfig.useAudioPlayerConfig;
129
+ exports.localEnsureHyIconMapKey = useEnsureHyIcon.localEnsureHyIconMapKey;
130
+ exports.useEnsureHyIcon = useEnsureHyIcon.useEnsureHyIcon;
124
131
  exports.localPermissionMapKey = usePermissionMap.localPermissionMapKey;
125
132
  exports.usePermissionMap = usePermissionMap.usePermissionMap;
126
133
  exports.localUserAvatarMapKey = useUserAvatarMap.localUserAvatarMapKey;
package/lib/locale/en.js CHANGED
@@ -7,16 +7,6 @@ var en = {
7
7
  hy: {
8
8
  language: "Language",
9
9
  help: "Help",
10
- startYear: "Start Year",
11
- endYear: "End Year",
12
- startMonth: "Start Month",
13
- endMonth: "End Month",
14
- startDate: "Start Date",
15
- endDate: "End Date",
16
- startTime: "Start Time",
17
- endTime: "End Time",
18
- startDateTime: "Start Date Time",
19
- endDateTime: "End Date Time",
20
10
  pleaseEnterPlaceholder: "Please Enter The {0}",
21
11
  pleaseSelectPlaceholder: "Please Select The {0}",
22
12
  cannotBeEmpty: "{0} Cannot Be Empty",
@@ -118,7 +108,11 @@ var en = {
118
108
  pleaseGoToTheBrowserSettingsAndClickOnTheDownloadOrCopyLinkToOpenInTheBrowser: "Please Go To The Browser Settings And Click On The Download Or Copy Link To Open In The Browser",
119
109
  copyLink: "Copy Link",
120
110
  fullScreenSwitch: "Full Screen Switch",
121
- pleaseConfigureTheAddressForDownloadingVLC: "Please Configure The Address For Downloading VLC"
111
+ pleaseConfigureTheAddressForDownloadingVLC: "Please Configure The Address For Downloading VLC",
112
+ viewThePreviousVideo: "View The Previous Video",
113
+ viewTheNextVideo: "View The Next Video",
114
+ packUp: "Pack Up",
115
+ expand: "Expand"
122
116
  },
123
117
  audioPlayer: {
124
118
  clickPlay: "Click To Play",
@@ -131,6 +125,22 @@ var en = {
131
125
  currentIsTheFirstItem: "Current Is The First Item",
132
126
  currentIsTheLastItem: "Current Is The Last Item",
133
127
  downloadFile: "Download File"
128
+ },
129
+ timePicker: {
130
+ to: "To",
131
+ startTime: "Start Time",
132
+ endTime: "End Time"
133
+ },
134
+ datePicker: {
135
+ to: "To",
136
+ startDate: "Start Date",
137
+ endDate: "End Date",
138
+ startDateTime: "Start Date Time",
139
+ endDateTime: "End Date Time",
140
+ startMonth: "Start Month",
141
+ endMonth: "End Month",
142
+ startYear: "Start Year",
143
+ endYear: "End Year"
134
144
  }
135
145
  };
136
146
 
@@ -7,16 +7,6 @@ var zh_CN = {
7
7
  hy: {
8
8
  language: "\u8BED\u8A00",
9
9
  help: "\u5E2E\u52A9",
10
- startYear: "\u5F00\u59CB\u5E74\u4EFD",
11
- endYear: "\u7ED3\u675F\u5E74\u4EFD",
12
- startMonth: "\u5F00\u59CB\u6708\u4EFD",
13
- endMonth: "\u7ED3\u675F\u6708\u4EFD",
14
- startDate: "\u5F00\u59CB\u65E5\u671F",
15
- endDate: "\u7ED3\u675F\u65E5\u671F",
16
- startTime: "\u5F00\u59CB\u65F6\u95F4",
17
- endTime: "\u7ED3\u675F\u65F6\u95F4",
18
- startDateTime: "\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
19
- endDateTime: "\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
20
10
  pleaseEnterPlaceholder: "\u8BF7\u8F93\u5165{0}",
21
11
  pleaseSelectPlaceholder: "\u8BF7\u9009\u62E9{0}",
22
12
  cannotBeEmpty: "{0}\u4E0D\u80FD\u4E3A\u7A7A",
@@ -114,7 +104,11 @@ var zh_CN = {
114
104
  pleaseGoToTheBrowserSettingsAndClickOnTheDownloadOrCopyLinkToOpenInTheBrowser: "\u8BF7\u524D\u5F80\u6D4F\u89C8\u5668\u8BBE\u7F6E\u540E\u5728\u70B9\u51FB\u4E0B\u8F7D \u6216 \u590D\u5236\u94FE\u63A5\u5230\u6D4F\u89C8\u5668\u6253\u5F00",
115
105
  copyLink: "\u590D\u5236\u94FE\u63A5",
116
106
  fullScreenSwitch: "\u5168\u5C4F\u5207\u6362",
117
- pleaseConfigureTheAddressForDownloadingVLC: "\u8BF7\u914D\u7F6E\u524D\u5F80\u4E0B\u8F7DVLC\u7684\u5730\u5740"
107
+ pleaseConfigureTheAddressForDownloadingVLC: "\u8BF7\u914D\u7F6E\u524D\u5F80\u4E0B\u8F7DVLC\u7684\u5730\u5740",
108
+ viewThePreviousVideo: "\u67E5\u770B\u4E0A\u4E00\u6761\u89C6\u9891",
109
+ viewTheNextVideo: "\u67E5\u770B\u4E0B\u4E00\u6761\u89C6\u9891",
110
+ packUp: "\u6536\u8D77",
111
+ expand: "\u5C55\u5F00"
118
112
  },
119
113
  audioPlayer: {
120
114
  clickPlay: "\u70B9\u51FB\u64AD\u653E",
@@ -127,6 +121,22 @@ var zh_CN = {
127
121
  currentIsTheFirstItem: "\u5F53\u524D\u662F\u7B2C\u4E00\u6761",
128
122
  currentIsTheLastItem: "\u5F53\u524D\u662F\u6700\u540E\u4E00\u6761",
129
123
  downloadFile: "\u4E0B\u8F7D\u6587\u4EF6"
124
+ },
125
+ timePicker: {
126
+ to: "\u81F3",
127
+ startTime: "\u5F00\u59CB\u65F6\u95F4",
128
+ endTime: "\u7ED3\u675F\u65F6\u95F4"
129
+ },
130
+ datePicker: {
131
+ to: "\u81F3",
132
+ startDate: "\u5F00\u59CB\u65E5\u671F",
133
+ endDate: "\u7ED3\u675F\u65E5\u671F",
134
+ startDateTime: "\u5F00\u59CB\u65E5\u671F\u65F6\u95F4",
135
+ endDateTime: "\u7ED3\u675F\u65E5\u671F\u65F6\u95F4",
136
+ startMonth: "\u5F00\u59CB\u6708\u4EFD",
137
+ endMonth: "\u7ED3\u675F\u6708\u4EFD",
138
+ startYear: "\u5F00\u59CB\u5E74\u4EFD",
139
+ endYear: "\u7ED3\u675F\u5E74\u4EFD"
130
140
  }
131
141
  };
132
142
 
@@ -0,0 +1,33 @@
1
+ const SPRITE_ID = '__HY_DISPATCH_UI_SVG_SPRITE_NODE__'
2
+ const SVG_NS = 'http://www.w3.org/2000/svg'
3
+
4
+ function ensureSprite() {
5
+ if (typeof window === 'undefined' || typeof document === 'undefined') return null
6
+ let svg = document.getElementById(SPRITE_ID)
7
+ if (svg) return svg
8
+ svg = document.createElementNS(SVG_NS, 'svg')
9
+ svg.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink')
10
+ svg.setAttribute('id', SPRITE_ID)
11
+ svg.style.setProperty('position', 'absolute')
12
+ svg.style.setProperty('width', '0px')
13
+ svg.style.setProperty('height', '0px')
14
+ svg.innerHTML = '<defs></defs>'
15
+ const mount = () => {
16
+ if (document.getElementById(SPRITE_ID)) return
17
+ document.body.insertBefore(svg, document.body.firstChild)
18
+ }
19
+ if (document.body) mount()
20
+ else document.addEventListener('DOMContentLoaded', mount, { once: true })
21
+ return svg
22
+ }
23
+
24
+ export function registerSymbol({ id, defs = '', symbol }) {
25
+ const svg = ensureSprite()
26
+ if (!svg) return
27
+ if (id && document.getElementById(id)) return
28
+ if (defs) {
29
+ const defsNode = svg.querySelector('defs')
30
+ if (defsNode) defsNode.insertAdjacentHTML('beforeend', defs)
31
+ }
32
+ svg.insertAdjacentHTML('beforeend', symbol)
33
+ }
@@ -0,0 +1,30 @@
1
+ export default {
2
+ id: 'hy-icon-system-v3-ai-interpretation-ai',
3
+ defs: `<linearGradient x1="25.1644341%" y1="16.3345334%" x2="79.7208027%" y2="91.4640074%" id="hy-icon-system-v3-ai-interpretation-ai-linearGradient-1">
4
+ <stop stop-color="#9859DB" offset="0%"/>
5
+ <stop stop-color="#452980" offset="77.3927837%"/>
6
+ <stop stop-color="#5F2DB4" offset="100%"/>
7
+ </linearGradient>
8
+ <radialGradient cx="10.3906827%" cy="5.64880091%" fx="10.3906827%" fy="5.64880091%" r="50%" id="hy-icon-system-v3-ai-interpretation-ai-radialGradient-2">
9
+ <stop stop-color="#CE6CFB" offset="0%"/>
10
+ <stop stop-color="#CE6CFB" stop-opacity="0" offset="100%"/>
11
+ </radialGradient>
12
+ <circle id="hy-icon-system-v3-ai-interpretation-ai-path-3" cx="9" cy="9" r="9"/>
13
+ <linearGradient x1="14.1579629%" y1="15.2062525%" x2="89.8583432%" y2="78.1093584%" id="hy-icon-system-v3-ai-interpretation-ai-linearGradient-4">
14
+ <stop stop-color="#D773FF" offset="0%"/>
15
+ <stop stop-color="#D773FF" stop-opacity="0.156659747" offset="100%"/>
16
+ </linearGradient>`,
17
+ symbol: `<symbol id="hy-icon-system-v3-ai-interpretation-ai" viewBox="0 0 18 18">
18
+ <g id="hy-icon-system-v3-ai-interpretation-ai-AI" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
19
+ <g id="hy-icon-system-v3-ai-interpretation-ai-&#x692D;&#x5706;&#x5F62;&#x5907;&#x4EFD;-8">
20
+ <use fill="url(#hy-icon-system-v3-ai-interpretation-ai-linearGradient-1)" xlink:href="#hy-icon-system-v3-ai-interpretation-ai-path-3"/>
21
+ <use fill="url(#hy-icon-system-v3-ai-interpretation-ai-radialGradient-2)" xlink:href="#hy-icon-system-v3-ai-interpretation-ai-path-3"/>
22
+ </g>
23
+ <path d="M9,0 C13.9705627,0 18,4.02943725 18,9 C18,13.9705627 13.9705627,18 9,18 C4.02943725,18 0,13.9705627 0,9 C0,4.02943725 4.02943725,0 9,0 Z M9,0.75 C4.44365081,0.75 0.75,4.44365081 0.75,9 C0.75,13.5563492 4.44365081,17.25 9,17.25 C13.5563492,17.25 17.25,13.5563492 17.25,9 C17.25,4.44365081 13.5563492,0.75 9,0.75 Z" id="hy-icon-system-v3-ai-interpretation-ai-&#x692D;&#x5706;&#x5F62;&#x5907;&#x4EFD;-9" fill="url(#hy-icon-system-v3-ai-interpretation-ai-linearGradient-4)" fill-rule="nonzero"/>
24
+ <g transform="translate(4.32, 5.625)" fill="#FFFFFF" fill-rule="nonzero">
25
+ <path d="M4.50052305,0 L1.85042167,0 L0,6.75 L1.59006083,6.75 L1.99919929,5.16634615 L4.22156501,5.16634615 L4.64000207,6.75 L6.36024331,6.75 L4.50052305,0 Z M3.90541256,3.95480769 L2.31535173,3.95480769 L2.88256641,1.81730769 C2.96625383,1.51442308 3.04064264,1.20288462 3.09643424,0.891346154 L3.14292725,0.891346154 C3.18942026,1.20288462 3.26380907,1.51442308 3.34749648,1.81730769 L3.90541256,3.95480769 Z" id="hy-icon-system-v3-ai-interpretation-ai-&#x5F62;&#x72B6;"/>
26
+ <polygon id="hy-icon-system-v3-ai-interpretation-ai-&#x8DEF;&#x5F84;" points="9 0 7.27975875 0 7.27975875 6.75 9 6.75"/>
27
+ </g>
28
+ </g>
29
+ </symbol>`,
30
+ };
@@ -0,0 +1,8 @@
1
+ export default {
2
+ id: 'hy-icon-sss-batch',
3
+ symbol: `</symbol><symbol id="hy-icon-sss-batch" viewBox="0 0 14 14">
4
+ <g id="hy-icon-sss-batch-button-IC/batch" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M4.66563015,7.875 L3.80848729,7.875 L3.80848729,9.55050024 L0,9.55050024 L0,11.4823884 L3.80848729,11.4823884 L3.80848729,13.125 L4.66563015,13.125 L7.74448729,10.933 C8.09420158,10.711 8.09420158,10.289 7.74448729,10.067 L4.66563015,7.875 Z M9.1458719,0.201 C9.02146373,0.072 8.85199435,0 8.67566781,0 L1.71428571,0 C1.1637551,0 0.857142857,0.308 0.857142857,0.875 L0.857142857,7 L2.74613679,7 L2.74613679,1.82308504 L7.87815167,1.82308504 L7.87815167,4.375 C7.87815167,4.753 8.36794759,5.25 8.73529453,5.25 L11.3067231,5.25 L11.3184782,12.25 L8.73529453,12.25 L8.73529453,14 L12.3501168,14 C12.9006474,14 13.2072597,13.692 13.2072597,13.125 L13.2072597,4.659 C13.2072597,4.477 13.136729,4.303 13.0123209,4.175 L9.1458719,0.201 Z" id="hy-icon-sss-batch-&#x5F62;&#x72B6;" fill="#FFFFFF" fill-rule="nonzero"/>
6
+ </g>
7
+ </symbol>`,
8
+ };