hy-dispatch-ui-v3 0.2.77 → 0.2.78

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 (131) hide show
  1. package/dist/tailwind.css +91 -8
  2. package/es/api/common.mjs +28 -0
  3. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +5 -8
  4. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -125
  5. package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
  6. package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
  7. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.mjs +5 -0
  8. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.mjs +6 -0
  9. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +182 -0
  10. package/es/bussiness/hyDisplayQueryAddress/index.mjs +8 -0
  11. package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +7 -0
  12. package/es/bussiness/hyDisplayQueryAddress/locale/index.mjs +2 -0
  13. package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +7 -0
  14. package/es/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
  15. package/es/bussiness/hyFilePlayback/cpns/audioDetail.vue.mjs +5 -0
  16. package/es/bussiness/hyFilePlayback/cpns/audioDetail2.install.mjs +6 -0
  17. package/es/bussiness/hyFilePlayback/cpns/audioDetail2.vue.mjs +247 -0
  18. package/es/bussiness/hyFilePlayback/cpns/picDetail.vue.mjs +5 -0
  19. package/es/bussiness/hyFilePlayback/cpns/picDetail2.install.mjs +6 -0
  20. package/es/bussiness/hyFilePlayback/cpns/picDetail2.vue.mjs +206 -0
  21. package/es/bussiness/hyFilePlayback/cpns/videoDetail.vue.mjs +5 -0
  22. package/es/bussiness/hyFilePlayback/cpns/videoDetail2.install.mjs +6 -0
  23. package/es/bussiness/hyFilePlayback/cpns/videoDetail2.vue.mjs +238 -0
  24. package/es/bussiness/hyFilePlayback/filePlayback.vue.mjs +5 -0
  25. package/es/bussiness/hyFilePlayback/filePlayback2.install.mjs +6 -0
  26. package/es/bussiness/hyFilePlayback/filePlayback2.vue.mjs +166 -0
  27. package/es/bussiness/hyFilePlayback/index.mjs +8 -0
  28. package/es/bussiness/hyFilePlayback/locale/en_US.mjs +22 -0
  29. package/es/bussiness/hyFilePlayback/locale/index.mjs +2 -0
  30. package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +22 -0
  31. package/es/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
  32. package/es/bussiness/index.mjs +2 -0
  33. package/es/components/hyCutter/cutter.vue.mjs +2 -2
  34. package/es/components/hyForm/cpns/arrayItem.vue.mjs +2 -2
  35. package/es/components/hyForm/cpns/formItem.vue.mjs +3 -2
  36. package/es/components/hyForm/js/index.mjs +2 -8
  37. package/es/components/hySearch/cpns/searchItem.vue.mjs +57 -67
  38. package/es/components/hySearch/js/index.mjs +1 -35
  39. package/es/components/hySearch/js/useAppSearch.mjs +3 -3
  40. package/es/components/hySearch/style/search.scss +1 -0
  41. package/es/components/hyTable/cpns/virtualTable.vue.mjs +5 -5
  42. package/es/components/hyTable/js/index.mjs +44 -4
  43. package/es/components/hyTable/js/search.mjs +0 -6
  44. package/es/components/hyTable/table.vue.mjs +47 -30
  45. package/es/components/hyTooltip/tooltip.vue.mjs +14 -6
  46. package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -1
  47. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -3
  48. package/es/components-map.mjs +2 -0
  49. package/es/hooks/useBaseMainStore.mjs +16 -5
  50. package/es/hooks/useCurrentBus.mjs +5 -4
  51. package/es/hooks/useDialog.mjs +2 -2
  52. package/es/hooks/useGlobalConfig.mjs +19 -18
  53. package/es/index.mjs +5 -2
  54. package/es/locale/en_US.mjs +1 -0
  55. package/es/locale/zh_CN.mjs +1 -0
  56. package/es/style/index.scss +2 -2
  57. package/es/utils/file.mjs +1 -2
  58. package/es/utils/form.mjs +59 -5
  59. package/es/utils/index.mjs +3 -2
  60. package/es/utils/map/hook/leafletjs.mjs +4 -0
  61. package/es/utils/map/index.mjs +4 -0
  62. package/es/utils/timeUtils.mjs +95 -0
  63. package/es/version.mjs +1 -1
  64. package/lib/api/common.js +33 -0
  65. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +3 -6
  66. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -124
  67. package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
  68. package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
  69. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.install.js +6 -0
  70. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.js +9 -0
  71. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.js +6 -0
  72. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +186 -0
  73. package/lib/bussiness/hyDisplayQueryAddress/index.js +13 -0
  74. package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +11 -0
  75. package/lib/bussiness/hyDisplayQueryAddress/locale/index.js +9 -0
  76. package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +11 -0
  77. package/lib/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
  78. package/lib/bussiness/hyFilePlayback/cpns/audioDetail.install.js +6 -0
  79. package/lib/bussiness/hyFilePlayback/cpns/audioDetail.vue.js +9 -0
  80. package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.install.js +6 -0
  81. package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.vue.js +251 -0
  82. package/lib/bussiness/hyFilePlayback/cpns/picDetail.install.js +6 -0
  83. package/lib/bussiness/hyFilePlayback/cpns/picDetail.vue.js +9 -0
  84. package/lib/bussiness/hyFilePlayback/cpns/picDetail2.install.js +6 -0
  85. package/lib/bussiness/hyFilePlayback/cpns/picDetail2.vue.js +210 -0
  86. package/lib/bussiness/hyFilePlayback/cpns/videoDetail.install.js +6 -0
  87. package/lib/bussiness/hyFilePlayback/cpns/videoDetail.vue.js +9 -0
  88. package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.install.js +6 -0
  89. package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.vue.js +242 -0
  90. package/lib/bussiness/hyFilePlayback/filePlayback.install.js +6 -0
  91. package/lib/bussiness/hyFilePlayback/filePlayback.vue.js +9 -0
  92. package/lib/bussiness/hyFilePlayback/filePlayback2.install.js +6 -0
  93. package/lib/bussiness/hyFilePlayback/filePlayback2.vue.js +170 -0
  94. package/lib/bussiness/hyFilePlayback/index.js +13 -0
  95. package/lib/bussiness/hyFilePlayback/locale/en_US.js +26 -0
  96. package/lib/bussiness/hyFilePlayback/locale/index.js +9 -0
  97. package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +26 -0
  98. package/lib/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
  99. package/lib/bussiness/index.js +18 -14
  100. package/lib/components/hyCutter/cutter.vue.js +2 -2
  101. package/lib/components/hyForm/cpns/arrayItem.vue.js +2 -2
  102. package/lib/components/hyForm/cpns/formItem.vue.js +3 -2
  103. package/lib/components/hyForm/js/index.js +0 -7
  104. package/lib/components/hySearch/cpns/searchItem.vue.js +64 -74
  105. package/lib/components/hySearch/js/index.js +0 -36
  106. package/lib/components/hySearch/js/useAppSearch.js +3 -3
  107. package/lib/components/hySearch/style/search.scss +1 -0
  108. package/lib/components/hyTable/cpns/virtualTable.vue.js +4 -4
  109. package/lib/components/hyTable/js/index.js +45 -3
  110. package/lib/components/hyTable/js/search.js +0 -6
  111. package/lib/components/hyTable/table.vue.js +46 -29
  112. package/lib/components/hyTooltip/tooltip.vue.js +13 -5
  113. package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -1
  114. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -3
  115. package/lib/components-map.js +2 -0
  116. package/lib/hooks/useBaseMainStore.js +15 -4
  117. package/lib/hooks/useCurrentBus.js +4 -3
  118. package/lib/hooks/useDialog.js +2 -2
  119. package/lib/hooks/useGlobalConfig.js +18 -17
  120. package/lib/index.js +70 -55
  121. package/lib/locale/en_US.js +1 -0
  122. package/lib/locale/zh_CN.js +1 -0
  123. package/lib/style/index.scss +2 -2
  124. package/lib/utils/file.js +1 -2
  125. package/lib/utils/form.js +61 -4
  126. package/lib/utils/index.js +12 -1
  127. package/lib/utils/map/hook/leafletjs.js +4 -0
  128. package/lib/utils/map/index.js +4 -0
  129. package/lib/utils/timeUtils.js +105 -0
  130. package/lib/version.js +1 -1
  131. package/package.json +14 -1
@@ -4,7 +4,7 @@ import { MoreFilled } from '@element-plus/icons-vue';
4
4
  import '../index.mjs';
5
5
  import '../../hooks/index.mjs';
6
6
  import '../../utils/index.mjs';
7
- import { useAppTableWrapper, operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorIsDotHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from './js/index.mjs';
7
+ import { useAppTableWrapper, operatorFilterHandler, operatorDescHandler, operatorClickHandler, operatorDisabledHandler, operatorLabelHandler, operatorIsDotHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from './js/index.mjs';
8
8
  import { useAppTableSearch } from './js/search.mjs';
9
9
  import _sfc_main$2 from './cpns/headerItem.vue.mjs';
10
10
  import _sfc_main$1 from './cpns/columnSelect.vue.mjs';
@@ -191,7 +191,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
191
191
  }
192
192
  }, {
193
193
  "loading": { type: Boolean, default: false },
194
- "loadingModifiers": {}
194
+ "loadingModifiers": {},
195
+ "showFilter": { type: Boolean, default: true },
196
+ "showFilterModifiers": {}
195
197
  }),
196
198
  emits: /* @__PURE__ */ mergeModels([
197
199
  "row-click",
@@ -200,17 +202,22 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
200
202
  "on-select-checkbox",
201
203
  "reqSuccess",
202
204
  "search-data",
203
- "scroll"
204
- ], ["update:loading"]),
205
+ "scroll",
206
+ "scrollBottom"
207
+ ], ["update:loading", "update:showFilter"]),
205
208
  setup(__props, { expose: __expose, emit: __emit }) {
206
209
  const props = __props;
207
210
  const emits = __emit;
208
211
  const loading = useModel(__props, "loading");
212
+ const showFilterModel = useModel(__props, "showFilter");
209
213
  const containerRef = useTemplateRef("containerRef");
210
214
  const tableRef = useTemplateRef("tableRef");
211
215
  const appSearchRef = useTemplateRef("appSearchRef");
212
216
  const tableDropdownRef = useTemplateRef("tableDropdownRef");
213
217
  const operatorDropdownRef = useTemplateRef("operatorDropdownRef");
218
+ function switchShowFilter() {
219
+ showFilterModel.value = !showFilterModel.value;
220
+ }
214
221
  const {
215
222
  // useAppTableWrapper
216
223
  // 表格配置项
@@ -242,13 +249,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
242
249
  // useAppTableSearch
243
250
  // 表单查询
244
251
  totalElements,
245
- showFilter,
246
252
  selectedList,
247
253
  getData,
248
254
  setData,
249
255
  resetFields,
250
256
  resetFn,
251
- switchShowFilter,
252
257
  getTotalElements,
253
258
  getTableDataSource,
254
259
  onSizeChangeHandler,
@@ -324,7 +329,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
324
329
  __props.filterColumns.length > 0 ? (openBlock(), createElementBlock("div", {
325
330
  key: 1,
326
331
  class: "h-[32px] flex items-center gap-[10px] clickBox px-3 select-none rounded hover:bg-background-2 box-border",
327
- onClick: unref(switchShowFilter)
332
+ onClick: switchShowFilter
328
333
  }, [
329
334
  createVNode(unref(HyIcon), {
330
335
  "svg-name": "ops-button-screen",
@@ -333,11 +338,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
333
338
  createElementVNode(
334
339
  "span",
335
340
  null,
336
- toDisplayString(unref(showFilter) ? unref($t)("table.hideFilter") : unref($t)("table.displayFilter")),
341
+ toDisplayString(showFilterModel.value ? unref($t)("table.hideFilter") : unref($t)("table.displayFilter")),
337
342
  1
338
343
  /* TEXT */
339
344
  )
340
- ], 8, ["onClick"])) : createCommentVNode("v-if", true),
345
+ ])) : createCommentVNode("v-if", true),
341
346
  unref(searchPlaceholder) ? (openBlock(), createBlock(unref(HyTooltip), {
342
347
  key: 2,
343
348
  "is-always": "",
@@ -389,8 +394,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
389
394
  ref: appSearchRef,
390
395
  model: __props.filterModel,
391
396
  columns: __props.filterColumns,
392
- hidden: !unref(showFilter),
393
- class: normalizeClass({ "mb-4": unref(showFilter) }),
397
+ hidden: !showFilterModel.value,
398
+ class: normalizeClass({ "mb-4": showFilterModel.value }),
394
399
  onSearch: ($event) => unref(getData)(1),
395
400
  onOptionsStatus: _ctx.$attrs.onOptionsStatus
396
401
  }, createSlots({
@@ -434,13 +439,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
434
439
  }), {
435
440
  empty: withCtx(() => [
436
441
  renderSlot(_ctx.$slots, "empty", {}, () => [
437
- createElementVNode(
438
- "span",
439
- null,
440
- toDisplayString(__props.emptyText || unref($t)("hy.noData")),
441
- 1
442
- /* TEXT */
443
- )
442
+ createElementVNode("div", { class: "flex flex-col items-center gap-2" }, [
443
+ createVNode(unref(HyIcon), {
444
+ "svg-name": "ops-Empty-alarm-not-data",
445
+ class: "!w-[80px] !h-[80px]"
446
+ }),
447
+ createElementVNode(
448
+ "span",
449
+ { class: "text-sm text-auxiliary" },
450
+ toDisplayString(__props.emptyText || unref($t)("hy.noData")),
451
+ 1
452
+ /* TEXT */
453
+ )
454
+ ])
444
455
  ])
445
456
  ]),
446
457
  default: withCtx(() => [
@@ -495,7 +506,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
495
506
  key: cindex,
496
507
  "is-always": "",
497
508
  overLine: 1,
498
- content: citem.desc
509
+ content: unref(operatorDescHandler)(citem, scope)
499
510
  }, {
500
511
  default: withCtx(() => [
501
512
  createElementVNode("div", {
@@ -511,13 +522,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
511
522
  "svg-name": citem.svgName,
512
523
  "class-name": "!w-4 !h-4"
513
524
  }, null, 8, ["svg-name"]),
514
- citem.label ? (openBlock(), createElementBlock(
525
+ unref(operatorLabelHandler)(citem, scope) ? (openBlock(), createElementBlock(
515
526
  "div",
516
527
  {
517
528
  key: 0,
518
529
  class: "mt-1 whitespace-nowrap w-full text-center over_one_line"
519
530
  },
520
- toDisplayString(citem.label),
531
+ toDisplayString(unref(operatorLabelHandler)(citem, scope)),
521
532
  1
522
533
  /* TEXT */
523
534
  )) : (openBlock(), createElementBlock("div", {
@@ -567,7 +578,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
567
578
  createElementVNode(
568
579
  "span",
569
580
  { class: "pr-1" },
570
- toDisplayString(citem.label),
581
+ toDisplayString(unref(operatorLabelHandler)(citem, scope)),
571
582
  1
572
583
  /* TEXT */
573
584
  ),
@@ -728,13 +739,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
728
739
  empty: withCtx(() => [
729
740
  createElementVNode("div", { class: "w-full h-full flex items-center justify-center border-b border-border" }, [
730
741
  renderSlot(_ctx.$slots, "empty", {}, () => [
731
- createElementVNode(
732
- "span",
733
- null,
734
- toDisplayString(__props.emptyText || unref($t)("hy.noData")),
735
- 1
736
- /* TEXT */
737
- )
742
+ createElementVNode("div", { class: "flex flex-col items-center gap-2" }, [
743
+ createVNode(unref(HyIcon), {
744
+ "svg-name": "ops-Empty-alarm-not-data",
745
+ class: "!w-[80px] !h-[80px]"
746
+ }),
747
+ createElementVNode(
748
+ "span",
749
+ { class: "text-sm text-auxiliary" },
750
+ toDisplayString(__props.emptyText || unref($t)("hy.noData")),
751
+ 1
752
+ /* TEXT */
753
+ )
754
+ ])
738
755
  ])
739
756
  ])
740
757
  ]),
@@ -846,7 +863,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
846
863
  createElementVNode(
847
864
  "span",
848
865
  { class: "pr-1" },
849
- toDisplayString(citem.label),
866
+ toDisplayString(unref(operatorLabelHandler)(citem, unref(tableTriggerRef).scope)),
850
867
  1
851
868
  /* TEXT */
852
869
  ),
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, normalizeClass } from 'vue';
1
+ import { defineComponent, useModel, ref, computed, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, normalizeStyle, normalizeClass, mergeModels } from 'vue';
2
2
  import { ElTooltip } from 'element-plus';
3
3
  import '../../utils/index.mjs';
4
4
  import '../../hooks/index.mjs';
@@ -11,7 +11,7 @@ const __default__ = defineComponent({
11
11
  name: "HyTooltip"
12
12
  });
13
13
  const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
14
- props: {
14
+ props: /* @__PURE__ */ mergeModels({
15
15
  isAlways: {
16
16
  type: Boolean,
17
17
  default: () => {
@@ -38,9 +38,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
38
38
  content: {
39
39
  type: [String, Number]
40
40
  }
41
- },
41
+ }, {
42
+ "modelValue": { type: Boolean, default: false },
43
+ "modelModifiers": {}
44
+ }),
45
+ emits: ["update:modelValue"],
42
46
  setup(__props) {
43
47
  const props = __props;
48
+ const visible = useModel(__props, "modelValue");
44
49
  const isShow = ref(false);
45
50
  const isDisabled = computed(() => {
46
51
  if (props.disabled || props.isAlways) {
@@ -61,6 +66,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
61
66
  }
62
67
  return (_ctx, _cache) => {
63
68
  return openBlock(), createBlock(unref(ElTooltip), mergeProps({
69
+ visible: visible.value,
70
+ "onUpdate:visible": ($event) => visible.value = $event,
64
71
  "show-after": 500,
65
72
  class: "item",
66
73
  effect: "dark",
@@ -82,6 +89,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
82
89
  {
83
90
  key: 1,
84
91
  class: normalizeClass(appClass.value),
92
+ style: normalizeStyle({ "--line-clamp": __props.overLine || 2 }),
85
93
  onMouseenter: onMouseenterHandler
86
94
  },
87
95
  [
@@ -93,8 +101,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
93
101
  )
94
102
  ])
95
103
  ],
96
- 34
97
- /* CLASS, NEED_HYDRATION */
104
+ 38
105
+ /* CLASS, STYLE, NEED_HYDRATION */
98
106
  ))
99
107
  ]),
100
108
  _: 2
@@ -107,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
107
115
  ]),
108
116
  key: "0"
109
117
  } : void 0
110
- ]), 1040, ["disabled", "content"]);
118
+ ]), 1040, ["visible", "onUpdate:visible", "disabled", "content"]);
111
119
  };
112
120
  }
113
121
  });
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
62
62
  () => props.device?.gbDevice === 1 && (props.device?.deviceType || props.device?.type) !== 13
63
63
  );
64
64
  const headImg = computed(() => {
65
- return props.device && unref(userAvatarMap)?.get(props.device.deviceId);
65
+ return props.device && (unref(userAvatarMap)?.get(props.device.deviceId) || props.device.headImg);
66
66
  });
67
67
  function parseRem(res) {
68
68
  let px = res;
@@ -257,15 +257,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
257
257
  createCommentVNode(" \u666E\u901A\u6587\u4EF6 "),
258
258
  createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
259
259
  createVNode(unref(HyIcon), {
260
- "svg-name": "player-media-center-right-ripple",
260
+ "svg-name": "ops-audio-center-right-ripple",
261
261
  className: "!w-[12px] !h-[12px]"
262
262
  }),
263
263
  createVNode(unref(HyIcon), {
264
- "svg-name": "player-media-center-video",
264
+ "svg-name": "ops-audio-media-center-video3",
265
265
  className: "!w-[40px] !h-[40px] mx-1"
266
266
  }),
267
267
  createVNode(unref(HyIcon), {
268
- "svg-name": "player-media-center-left-ripple",
268
+ "svg-name": "ops-audio-media-center-left-rippleV2",
269
269
  className: "!w-[12px] !h-[12px]"
270
270
  })
271
271
  ]),
@@ -3,10 +3,12 @@ export default {
3
3
  HyDepartmentTypeOperation: () => import('hy-dispatch-ui-v3/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation'),
4
4
  HyDepartmentTypeOperationTiantong: () => import('hy-dispatch-ui-v3/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperationTiantong'),
5
5
  HyDeviceTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyDeviceTree/deviceTree'),
6
+ HyDisplayQueryAddress: () => import('hy-dispatch-ui-v3/es/bussiness/hyDisplayQueryAddress/displayQueryAddress'),
6
7
  HyElectronicFence: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/electronicFence'),
7
8
  HyAddElectronicFenceDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog'),
8
9
  HyElectronicFenceAssociatedUsersDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog'),
9
10
  HyBatchSetElectronicFenceUserDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog'),
11
+ HyFilePlayback: () => import('hy-dispatch-ui-v3/es/bussiness/hyFilePlayback/filePlayback'),
10
12
  HyMapAearchPlace: () => import('hy-dispatch-ui-v3/es/bussiness/hyMapAearchPlace/mapAearchPlace'),
11
13
  HyOrgGroupTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyOrgGroupTree/orgGroupTree'),
12
14
  HyPlanGroupDeviceTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree'),
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance, inject, ref, unref } from 'vue';
1
+ import { getCurrentInstance, inject, computed, unref } from 'vue';
2
2
  import { useGlobalConfig } from './useGlobalConfig.mjs';
3
3
 
4
4
  const localBaseMainStoreKey = /* @__PURE__ */ Symbol("baseMainStore");
@@ -14,14 +14,25 @@ const defaultBaseMainStore = () => ({
14
14
  }
15
15
  });
16
16
  const useBaseMainStore = () => {
17
- if (getCurrentInstance()) {
18
- const baseMainStore = inject(localBaseMainStoreKey, ref());
17
+ const instance = getCurrentInstance();
18
+ if (instance) {
19
+ const injectedStore = inject(localBaseMainStoreKey, void 0);
19
20
  return {
20
- baseMainStore: unref(baseMainStore) ? unref(baseMainStore)() : (unref(useGlobalConfig()).baseMainStore || defaultBaseMainStore)()
21
+ baseMainStore: computed(() => {
22
+ const storeOrFactory = unref(injectedStore);
23
+ if (storeOrFactory) {
24
+ return typeof storeOrFactory === "function" ? storeOrFactory() : storeOrFactory;
25
+ }
26
+ const globalStore = unref(useGlobalConfig()).baseMainStore;
27
+ return globalStore ? typeof globalStore === "function" ? globalStore() : globalStore : defaultBaseMainStore();
28
+ })
21
29
  };
22
30
  } else {
23
31
  return {
24
- baseMainStore: (unref(useGlobalConfig()).baseMainStore || defaultBaseMainStore)()
32
+ baseMainStore: computed(() => {
33
+ const globalStore = unref(useGlobalConfig()).baseMainStore;
34
+ return globalStore ? typeof globalStore === "function" ? globalStore() : globalStore : defaultBaseMainStore();
35
+ })
25
36
  };
26
37
  }
27
38
  };
@@ -1,14 +1,15 @@
1
- import { getCurrentInstance, inject, ref, unref, computed } from 'vue';
1
+ import { getCurrentInstance, inject, computed, unref } from 'vue';
2
2
  import { useGlobalConfig } from './useGlobalConfig.mjs';
3
3
  import { bus } from './useSubscribe.mjs';
4
4
 
5
5
  const localCurrentBusKey = /* @__PURE__ */ Symbol("currentBus");
6
6
  const defaultCurrentBus = bus;
7
7
  const useCurrentBus = () => {
8
- if (getCurrentInstance()) {
9
- const currentBus = inject(localCurrentBusKey, ref());
8
+ const instance = getCurrentInstance();
9
+ if (instance) {
10
+ const injectedBus = inject(localCurrentBusKey, void 0);
10
11
  return {
11
- currentBus: unref(currentBus) ? currentBus : computed(() => unref(useGlobalConfig()).currentBus || defaultCurrentBus)
12
+ currentBus: computed(() => unref(injectedBus) || defaultCurrentBus)
12
13
  };
13
14
  } else {
14
15
  return {
@@ -13,9 +13,9 @@ function useDialog(hy) {
13
13
  const minimizedTitle = ref("");
14
14
  function setDragLevelIndex(dialogComponents) {
15
15
  const { baseMainStore } = useBaseMainStore();
16
- const dragLevel = baseMainStore.getters.dragLevel;
16
+ const dragLevel = baseMainStore.value.getters.dragLevel;
17
17
  hy[`${dialogComponents}`].value.setDragLevelIndex(dragLevel);
18
- baseMainStore.commit("setDragLevel");
18
+ baseMainStore.value.commit("setDragLevel");
19
19
  }
20
20
  function onMinimized(params) {
21
21
  hy.minimized.value = params.type;
@@ -1,4 +1,4 @@
1
- import { ref, getCurrentInstance, inject, computed, provide, unref } from 'vue';
1
+ import { ref, getCurrentInstance, inject, computed, unref, provide } from 'vue';
2
2
  import * as index from '../locale/index.mjs';
3
3
  import { localeContextKey } from './useLocale.mjs';
4
4
  import { localApiKey } from './useApi.mjs';
@@ -14,7 +14,7 @@ import { localCurrentBusKey } from './useCurrentBus.mjs';
14
14
  import { localVersionStoreKey, localComponentsMapKey } from './useVersionControl.mjs';
15
15
  import zh_CN from '../locale/zh_CN.mjs';
16
16
 
17
- const globalConfig = ref();
17
+ const globalConfig = ref({});
18
18
  const mergeConfig = (a, b) => {
19
19
  const keys = [.../* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)])];
20
20
  const obj = {};
@@ -27,9 +27,9 @@ const configProviderContextKey = /* @__PURE__ */ Symbol("configProviderContextKe
27
27
  function useGlobalConfig(key, defaultValue = void 0) {
28
28
  const config = getCurrentInstance() ? inject(configProviderContextKey, globalConfig) : globalConfig;
29
29
  if (key) {
30
- return computed(() => config.value?.[key] ?? defaultValue);
30
+ return computed(() => unref(config.value?.[key]) ?? defaultValue);
31
31
  } else {
32
- return config;
32
+ return unref(config);
33
33
  }
34
34
  return {
35
35
  config
@@ -51,55 +51,56 @@ const provideGlobalConfig = (props, app, global = false) => {
51
51
  provideFn(configProviderContextKey, context);
52
52
  provideFn(
53
53
  localeContextKey,
54
- computed(() => index[context.value.locale] || zh_CN)
54
+ computed(() => unref(index[context.value.locale]) || zh_CN)
55
55
  );
56
56
  provideFn(
57
57
  localApiKey,
58
- computed(() => context.value.api)
58
+ computed(() => unref(context.value.api))
59
59
  );
60
60
  provideFn(
61
61
  localUserAvatarMapKey,
62
- computed(() => context.value.userAvatarMap)
62
+ computed(() => unref(context.value.userAvatarMap))
63
63
  );
64
64
  provideFn(
65
65
  localPermissionMapKey,
66
- computed(() => context.value.permissionMap)
66
+ computed(() => unref(context.value.permissionMap))
67
67
  );
68
68
  provideFn(
69
69
  localAudioPlayerConfigKey,
70
- computed(() => context.value.audioPlayer)
70
+ computed(() => unref(context.value.audioPlayer))
71
71
  );
72
72
  provideFn(
73
73
  localVideoPlayerConfigKey,
74
- computed(() => context.value.videoPlayer)
74
+ computed(() => unref(context.value.videoPlayer))
75
75
  );
76
76
  provideFn(
77
77
  localEnsureHyIconMapKey,
78
- computed(() => context.value.ensureHyIcon)
78
+ computed(() => unref(context.value.ensureHyIcon))
79
79
  );
80
80
  provideFn(
81
81
  localTooltipConfigKey,
82
- computed(() => context.value.tooltip)
82
+ computed(() => unref(context.value.tooltip))
83
83
  );
84
84
  provideFn(
85
85
  localMapConfigKey,
86
- computed(() => context.value.mapConfig)
86
+ computed(() => unref(context.value.mapConfig))
87
87
  );
88
- provideFn(localBaseMainStoreKey, context.value.baseMainStore);
88
+ provideFn(localBaseMainStoreKey, unref(context.value.baseMainStore));
89
89
  provideFn(
90
90
  localCurrentBusKey,
91
- computed(() => context.value.currentBus)
91
+ computed(() => unref(context.value.currentBus))
92
92
  );
93
93
  provideFn(
94
94
  localVersionStoreKey,
95
- computed(() => context.value.versionStore)
95
+ computed(() => unref(context.value.versionStore))
96
96
  );
97
97
  provideFn(
98
98
  localComponentsMapKey,
99
- computed(() => context.value.componentsMap)
99
+ computed(() => unref(context.value.componentsMap))
100
100
  );
101
- if (global || !globalConfig.value) {
101
+ if (global || !globalConfig.value.initial) {
102
102
  globalConfig.value = context.value;
103
+ globalConfig.value.initial = true;
103
104
  }
104
105
  return context;
105
106
  };
package/es/index.mjs CHANGED
@@ -22,7 +22,9 @@ export { HyCutter } from './components/hyCutter/index.mjs';
22
22
  export { HyDepartmentTypeOperation, HyDepartmentTypeOperationTiantong } from './bussiness/hyDepartmentTypeOperation/index.mjs';
23
23
  export { HyDeviceTree } from './bussiness/hyDeviceTree/index.mjs';
24
24
  export { HyDialog } from './components/hyDialog/index.mjs';
25
+ export { HyDisplayQueryAddress } from './bussiness/hyDisplayQueryAddress/index.mjs';
25
26
  export { HyDrawer } from './components/hyDrawer/index.mjs';
27
+ export { HyFilePlayback } from './bussiness/hyFilePlayback/index.mjs';
26
28
  export { HyForm } from './components/hyForm/index.mjs';
27
29
  export { HyIcon } from './components/hyIcon/index.mjs';
28
30
  export { HyIconBox } from './components/hyIconBox/index.mjs';
@@ -51,11 +53,12 @@ export { base64Decrypt, encryptToBase64, generateRandomCode } from './utils/cryp
51
53
  export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './utils/file.mjs';
52
54
  export { bus, usePublish, useSubscribe } from './hooks/useSubscribe.mjs';
53
55
  export { clearResizeObserver, useResizeObserver } from './hooks/useResizeObserver.mjs';
54
- export { clearSpace, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, genColumnDefaultLabel, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './utils/form.mjs';
56
+ export { clearSpace, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './utils/form.mjs';
55
57
  export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInstall } from './utils/handler.mjs';
56
58
  export { configProviderContextKey, provideGlobalConfig, useGlobalConfig } from './hooks/useGlobalConfig.mjs';
57
59
  export { defaultAxios, localApiKey, useApi } from './hooks/useApi.mjs';
58
- export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatNumber, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './utils/input.mjs';
60
+ export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './utils/input.mjs';
61
+ export { formatDay, formatHoursToHM, formatSeconds, formatTime, getBeforeDays, getCurDtm, getNextDays, getToday } from './utils/timeUtils.mjs';
59
62
  export { formatDuration, getDefaultValueFormatByType } from './utils/date.mjs';
60
63
  export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './utils/is.mjs';
61
64
  export { loadingSvg } from './utils/sharedContent.mjs';
@@ -17,6 +17,7 @@ var en_US = {
17
17
  months: "Months",
18
18
  year: "Year",
19
19
  years: "Years",
20
+ lastDate: "Last {0}",
20
21
  noData: "No Data",
21
22
  confirm: "Confirm",
22
23
  loading: "Loading",
@@ -17,6 +17,7 @@ var zh_CN = {
17
17
  months: "\u6708",
18
18
  year: "\u5E74",
19
19
  years: "\u5E74",
20
+ lastDate: "\u6700\u8FD1{0}",
20
21
  noData: "\u6682\u65E0\u6570\u636E",
21
22
  confirm: "\u786E\u8BA4",
22
23
  loading: "\u52A0\u8F7D\u4E2D",
@@ -74,8 +74,8 @@ video {
74
74
  overflow: hidden;
75
75
  text-overflow: ellipsis;
76
76
  display: -webkit-box;
77
- -webkit-line-clamp: 2;
78
- line-clamp: 2;
77
+ -webkit-line-clamp: var(--line-clamp);
78
+ line-clamp: var(--line-clamp);
79
79
  -webkit-box-orient: vertical;
80
80
  word-break: break-all;
81
81
  }
package/es/utils/file.mjs CHANGED
@@ -38,11 +38,10 @@ async function fileFormUpload(file) {
38
38
  try {
39
39
  const formData = new FormData();
40
40
  formData.append("file", file);
41
- const res = await unref(api).post("/file/upload", formData, {
41
+ return await unref(api).post("/file/upload", formData, {
42
42
  otherUrl: true,
43
43
  xAmzAcl: false
44
44
  });
45
- return res;
46
45
  } catch (err) {
47
46
  return Promise.reject(err);
48
47
  }
package/es/utils/form.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import dayjs from 'dayjs';
1
2
  import { unref } from 'vue';
2
3
  import '../hooks/index.mjs';
3
4
  import { isString, isArray, isBoolean, isFunction, isObject, isNumber, isEmpty } from './is.mjs';
@@ -128,14 +129,22 @@ const columnLabelHandler = (column, model) => {
128
129
  }
129
130
  return label;
130
131
  };
132
+ const columnnoDataTextHandler = (column, model) => {
133
+ const { type, attrs = {} } = column || {};
134
+ const label = unref(attrs.noDataText);
135
+ if (isEmpty(label)) return "";
136
+ if (isFunction(label)) {
137
+ return label(column, model);
138
+ }
139
+ return label;
140
+ };
131
141
  function columnPlaceholderHandler(column, model) {
132
142
  const { type, attrs = {} } = column || {};
133
- if (isFunction(attrs.placeholder)) {
134
- const placeholder2 = unref(attrs.placeholder);
135
- return placeholder2(column, model);
143
+ let placeholder = unref(attrs.placeholder);
144
+ if (isFunction(placeholder)) {
145
+ return placeholder(column, model);
136
146
  }
137
147
  const label = columnLabelHandler(column, model);
138
- let placeholder = attrs.placeholder;
139
148
  switch (type) {
140
149
  case "input":
141
150
  case "input-number":
@@ -154,5 +163,50 @@ function columnPlaceholderHandler(column, model) {
154
163
  }
155
164
  return placeholder;
156
165
  }
166
+ function columnHelpHandler(props, column) {
167
+ const help = unref(column.help);
168
+ if (isString(help)) return help;
169
+ if (isFunction(help)) return help(column, props.model);
170
+ return;
171
+ }
172
+ function genColumnShortcuts(column) {
173
+ if (!["datetimerange", "daterange", "monthrange", "yearrange"].includes(column.attrs?.type) || !isArray(column.field) || !column.timeRangeOptions?.length) {
174
+ return;
175
+ }
176
+ const timeRangeFill = !!(column.attrs && column.attrs.timeRangeFill);
177
+ return column.timeRangeOptions.map((item) => {
178
+ return {
179
+ text: item.label,
180
+ options: {
181
+ ...item,
182
+ type: column.attrs.type,
183
+ timeRangeFill
184
+ },
185
+ value: genShortcutItem
186
+ };
187
+ });
188
+ function genShortcutItem() {
189
+ const format = "YYYY-MM-DD";
190
+ const date = dayjs(Date.now());
191
+ const { value, unit, type } = this.options;
192
+ const timeRangeFill2 = this.options.timeRangeFill || type === "datetimerange";
193
+ if (unit === "day" && value === 1) {
194
+ return [
195
+ date.format(`${format}${timeRangeFill2 ? " 00:00:00" : ""}`),
196
+ date.format(`${format}${timeRangeFill2 ? " 23:59:59" : ""}`)
197
+ ];
198
+ } else if (unit === "day") {
199
+ return [
200
+ date.subtract(value - 1, unit).format(`${format}${timeRangeFill2 ? " 00:00:00" : ""}`),
201
+ date.format(`${format}${timeRangeFill2 ? " 23:59:59" : ""}`)
202
+ ];
203
+ } else {
204
+ return [
205
+ date.subtract(value, unit).format(`${format}${timeRangeFill2 ? " 00:00:00" : ""}`),
206
+ date.format(`${format}${timeRangeFill2 ? " 23:59:59" : ""}`)
207
+ ];
208
+ }
209
+ }
210
+ }
157
211
 
158
- export { clearSpace, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, genColumnDefaultLabel, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp };
212
+ export { clearSpace, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp };
@@ -4,10 +4,11 @@ export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isOb
4
4
  export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInstall } from './handler.mjs';
5
5
  export { formatDuration, getDefaultValueFormatByType } from './date.mjs';
6
6
  export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './file.mjs';
7
- export { clearSpace, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, genColumnDefaultLabel, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './form.mjs';
8
- export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatNumber, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './input.mjs';
7
+ export { clearSpace, columnHelpHandler, columnLabelHandler, columnPlaceholderHandler, columnRuleHandler, columnnoDataTextHandler, genColumnDefaultLabel, genColumnShortcuts, genRuleRequiredMsgHandler, genValueByProp, getValueByProp, setValueByProp } from './form.mjs';
8
+ export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './input.mjs';
9
9
  export { PERMISSION } from './permission.mjs';
10
10
  export { InitMap, setMapServer, setPoiServer } from './map/index.mjs';
11
11
  import './tree.mjs';
12
12
  export { loadingSvg } from './sharedContent.mjs';
13
+ export { formatDay, formatHoursToHM, formatSeconds, formatTime, getBeforeDays, getCurDtm, getNextDays, getToday } from './timeUtils.mjs';
13
14
  export { setGlobalTreeConfig } from 'hy-virtual-tree';
@@ -560,6 +560,10 @@ class Leafletjs extends EventEmitter {
560
560
  };
561
561
  return createMapProxy(layerGroup, handlers);
562
562
  }
563
+ // 获取esri对象
564
+ esriFn() {
565
+ return L.esri;
566
+ }
563
567
  // 自定义图标
564
568
  DivIcon(option) {
565
569
  option = {