hy-dispatch-ui-v3 0.2.76 → 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 (195) hide show
  1. package/dist/tailwind.css +91 -8
  2. package/es/api/common.mjs +28 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.mjs +6 -0
  4. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.mjs +6 -0
  5. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +109 -121
  6. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.mjs +6 -0
  7. package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -117
  8. package/es/bussiness/hyDepartmentTypeOperation/index.mjs +4 -1
  9. package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
  10. package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
  11. package/es/bussiness/hyDeviceTree/deviceTree.install.mjs +6 -0
  12. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.mjs +5 -0
  13. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.mjs +6 -0
  14. package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +182 -0
  15. package/es/bussiness/hyDisplayQueryAddress/index.mjs +8 -0
  16. package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +7 -0
  17. package/es/bussiness/hyDisplayQueryAddress/locale/index.mjs +2 -0
  18. package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +7 -0
  19. package/es/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
  20. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.mjs +6 -0
  21. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +2 -2
  22. package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.mjs +6 -0
  23. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.mjs +6 -0
  24. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.mjs +6 -0
  25. package/es/bussiness/hyElectronicFence/electronicFence.install.mjs +6 -0
  26. package/es/bussiness/hyFilePlayback/cpns/audioDetail.vue.mjs +5 -0
  27. package/es/bussiness/hyFilePlayback/cpns/audioDetail2.install.mjs +6 -0
  28. package/es/bussiness/hyFilePlayback/cpns/audioDetail2.vue.mjs +247 -0
  29. package/es/bussiness/hyFilePlayback/cpns/picDetail.vue.mjs +5 -0
  30. package/es/bussiness/hyFilePlayback/cpns/picDetail2.install.mjs +6 -0
  31. package/es/bussiness/hyFilePlayback/cpns/picDetail2.vue.mjs +206 -0
  32. package/es/bussiness/hyFilePlayback/cpns/videoDetail.vue.mjs +5 -0
  33. package/es/bussiness/hyFilePlayback/cpns/videoDetail2.install.mjs +6 -0
  34. package/es/bussiness/hyFilePlayback/cpns/videoDetail2.vue.mjs +238 -0
  35. package/es/bussiness/hyFilePlayback/filePlayback.vue.mjs +5 -0
  36. package/es/bussiness/hyFilePlayback/filePlayback2.install.mjs +6 -0
  37. package/es/bussiness/hyFilePlayback/filePlayback2.vue.mjs +166 -0
  38. package/es/bussiness/hyFilePlayback/index.mjs +8 -0
  39. package/es/bussiness/hyFilePlayback/locale/en_US.mjs +22 -0
  40. package/es/bussiness/hyFilePlayback/locale/index.mjs +2 -0
  41. package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +22 -0
  42. package/es/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
  43. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.install.mjs +6 -0
  44. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.mjs +6 -0
  45. package/es/bussiness/hyOrgGroupTree/orgGroupTree.install.mjs +6 -0
  46. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.mjs +6 -0
  47. package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.mjs +6 -0
  48. package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.mjs +6 -0
  49. package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.mjs +6 -0
  50. package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.mjs +6 -0
  51. package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.mjs +6 -0
  52. package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.mjs +6 -0
  53. package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.mjs +6 -0
  54. package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.mjs +6 -0
  55. package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.mjs +6 -0
  56. package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.mjs +6 -0
  57. package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.mjs +6 -0
  58. package/es/bussiness/hyRuleSetting/ruleSetting.install.mjs +6 -0
  59. package/es/bussiness/hyUserTree/userTree.install.mjs +6 -0
  60. package/es/bussiness/index.mjs +3 -2
  61. package/es/components/hyCutter/cutter.vue.mjs +2 -2
  62. package/es/components/hyForm/cpns/arrayItem.vue.mjs +2 -2
  63. package/es/components/hyForm/cpns/formItem.vue.mjs +3 -2
  64. package/es/components/hyForm/js/index.mjs +2 -8
  65. package/es/components/hySearch/cpns/searchItem.vue.mjs +57 -67
  66. package/es/components/hySearch/js/index.mjs +1 -35
  67. package/es/components/hySearch/js/useAppSearch.mjs +3 -3
  68. package/es/components/hySearch/style/search.scss +1 -0
  69. package/es/components/hyTable/cpns/virtualTable.vue.mjs +5 -5
  70. package/es/components/hyTable/js/index.mjs +44 -4
  71. package/es/components/hyTable/js/search.mjs +0 -6
  72. package/es/components/hyTable/table.vue.mjs +47 -30
  73. package/es/components/hyTooltip/tooltip.vue.mjs +14 -6
  74. package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -1
  75. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -3
  76. package/es/components-map.mjs +19 -10
  77. package/es/hooks/index.mjs +1 -0
  78. package/es/hooks/useBaseMainStore.mjs +16 -5
  79. package/es/hooks/useCurrentBus.mjs +5 -4
  80. package/es/hooks/useDialog.mjs +2 -2
  81. package/es/hooks/useGlobalConfig.mjs +26 -16
  82. package/es/hooks/useVersionControl.mjs +34 -0
  83. package/es/index.mjs +7 -4
  84. package/es/locale/en_US.mjs +1 -0
  85. package/es/locale/zh_CN.mjs +1 -0
  86. package/es/style/index.scss +2 -2
  87. package/es/utils/file.mjs +1 -2
  88. package/es/utils/form.mjs +70 -7
  89. package/es/utils/index.mjs +3 -2
  90. package/es/utils/map/hook/leafletjs.mjs +4 -0
  91. package/es/utils/map/index.mjs +4 -0
  92. package/es/utils/timeUtils.mjs +95 -0
  93. package/es/utils/useUiComponent.mjs +34 -0
  94. package/es/version.mjs +1 -1
  95. package/lib/api/common.js +33 -0
  96. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.js +6 -0
  97. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.js +6 -0
  98. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +107 -119
  99. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.js +6 -0
  100. package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -116
  101. package/lib/bussiness/hyDepartmentTypeOperation/index.js +4 -0
  102. package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
  103. package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
  104. package/lib/bussiness/hyDeviceTree/deviceTree.install.js +6 -0
  105. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.install.js +6 -0
  106. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.js +9 -0
  107. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.js +6 -0
  108. package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +186 -0
  109. package/lib/bussiness/hyDisplayQueryAddress/index.js +13 -0
  110. package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +11 -0
  111. package/lib/bussiness/hyDisplayQueryAddress/locale/index.js +9 -0
  112. package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +11 -0
  113. package/lib/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
  114. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.js +6 -0
  115. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +11 -11
  116. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.js +6 -0
  117. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.js +6 -0
  118. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.js +6 -0
  119. package/lib/bussiness/hyElectronicFence/electronicFence.install.js +6 -0
  120. package/lib/bussiness/hyFilePlayback/cpns/audioDetail.install.js +6 -0
  121. package/lib/bussiness/hyFilePlayback/cpns/audioDetail.vue.js +9 -0
  122. package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.install.js +6 -0
  123. package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.vue.js +251 -0
  124. package/lib/bussiness/hyFilePlayback/cpns/picDetail.install.js +6 -0
  125. package/lib/bussiness/hyFilePlayback/cpns/picDetail.vue.js +9 -0
  126. package/lib/bussiness/hyFilePlayback/cpns/picDetail2.install.js +6 -0
  127. package/lib/bussiness/hyFilePlayback/cpns/picDetail2.vue.js +210 -0
  128. package/lib/bussiness/hyFilePlayback/cpns/videoDetail.install.js +6 -0
  129. package/lib/bussiness/hyFilePlayback/cpns/videoDetail.vue.js +9 -0
  130. package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.install.js +6 -0
  131. package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.vue.js +242 -0
  132. package/lib/bussiness/hyFilePlayback/filePlayback.install.js +6 -0
  133. package/lib/bussiness/hyFilePlayback/filePlayback.vue.js +9 -0
  134. package/lib/bussiness/hyFilePlayback/filePlayback2.install.js +6 -0
  135. package/lib/bussiness/hyFilePlayback/filePlayback2.vue.js +170 -0
  136. package/lib/bussiness/hyFilePlayback/index.js +13 -0
  137. package/lib/bussiness/hyFilePlayback/locale/en_US.js +26 -0
  138. package/lib/bussiness/hyFilePlayback/locale/index.js +9 -0
  139. package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +26 -0
  140. package/lib/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
  141. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.install.js +6 -0
  142. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.js +6 -0
  143. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.install.js +6 -0
  144. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.js +6 -0
  145. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.js +6 -0
  146. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.js +6 -0
  147. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.js +6 -0
  148. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.js +6 -0
  149. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.js +6 -0
  150. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.js +6 -0
  151. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.js +6 -0
  152. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.js +6 -0
  153. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.js +6 -0
  154. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.js +6 -0
  155. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.js +6 -0
  156. package/lib/bussiness/hyRuleSetting/ruleSetting.install.js +6 -0
  157. package/lib/bussiness/hyUserTree/userTree.install.js +6 -0
  158. package/lib/bussiness/index.js +19 -16
  159. package/lib/components/hyCutter/cutter.vue.js +2 -2
  160. package/lib/components/hyForm/cpns/arrayItem.vue.js +2 -2
  161. package/lib/components/hyForm/cpns/formItem.vue.js +3 -2
  162. package/lib/components/hyForm/js/index.js +0 -7
  163. package/lib/components/hySearch/cpns/searchItem.vue.js +64 -74
  164. package/lib/components/hySearch/js/index.js +0 -36
  165. package/lib/components/hySearch/js/useAppSearch.js +3 -3
  166. package/lib/components/hySearch/style/search.scss +1 -0
  167. package/lib/components/hyTable/cpns/virtualTable.vue.js +4 -4
  168. package/lib/components/hyTable/js/index.js +45 -3
  169. package/lib/components/hyTable/js/search.js +0 -6
  170. package/lib/components/hyTable/table.vue.js +46 -29
  171. package/lib/components/hyTooltip/tooltip.vue.js +13 -5
  172. package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -1
  173. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -3
  174. package/lib/components-map.js +19 -10
  175. package/lib/hooks/index.js +4 -0
  176. package/lib/hooks/useBaseMainStore.js +15 -4
  177. package/lib/hooks/useCurrentBus.js +4 -3
  178. package/lib/hooks/useDialog.js +2 -2
  179. package/lib/hooks/useGlobalConfig.js +25 -15
  180. package/lib/hooks/useVersionControl.js +38 -0
  181. package/lib/index.js +75 -57
  182. package/lib/locale/en_US.js +1 -0
  183. package/lib/locale/zh_CN.js +1 -0
  184. package/lib/style/index.scss +2 -2
  185. package/lib/utils/file.js +1 -2
  186. package/lib/utils/form.js +72 -6
  187. package/lib/utils/index.js +12 -1
  188. package/lib/utils/map/hook/leafletjs.js +4 -0
  189. package/lib/utils/map/index.js +4 -0
  190. package/lib/utils/timeUtils.js +105 -0
  191. package/lib/utils/useUiComponent.js +37 -0
  192. package/lib/version.js +1 -1
  193. package/package.json +113 -58
  194. package/es/bussiness/hyDepartmentTypeOperation/tiantong.mjs +0 -8
  195. package/lib/bussiness/hyDepartmentTypeOperation/tiantong.js +0 -13
@@ -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
  ]),
@@ -1,12 +1,21 @@
1
1
  export default {
2
- HyAcquisitionStationTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyAcquisitionStationTree'),
3
- HyDepartmentTypeOperation: () => import('hy-dispatch-ui-v3/es/bussiness/hyDepartmentTypeOperation'),
4
- HyDeviceTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyDeviceTree'),
5
- HyElectronicFence: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence'),
6
- HyMapAearchPlace: () => import('hy-dispatch-ui-v3/es/bussiness/hyMapAearchPlace'),
7
- HyOrgGroupTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyOrgGroupTree'),
8
- HyPlanGroupDeviceTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyPlanGroupDeviceTree'),
9
- HyRuleSetting: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting'),
10
- HyUserTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyUserTree'),
11
- HyDepartmentTypeOperationTiantong: () => import('hy-dispatch-ui-v3/es/bussiness/hyDepartmentTypeOperationTiantong'),
2
+ HyAcquisitionStationTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree'),
3
+ HyDepartmentTypeOperation: () => import('hy-dispatch-ui-v3/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation'),
4
+ HyDepartmentTypeOperationTiantong: () => import('hy-dispatch-ui-v3/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperationTiantong'),
5
+ HyDeviceTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyDeviceTree/deviceTree'),
6
+ HyDisplayQueryAddress: () => import('hy-dispatch-ui-v3/es/bussiness/hyDisplayQueryAddress/displayQueryAddress'),
7
+ HyElectronicFence: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/electronicFence'),
8
+ HyAddElectronicFenceDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog'),
9
+ HyElectronicFenceAssociatedUsersDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog'),
10
+ HyBatchSetElectronicFenceUserDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog'),
11
+ HyFilePlayback: () => import('hy-dispatch-ui-v3/es/bussiness/hyFilePlayback/filePlayback'),
12
+ HyMapAearchPlace: () => import('hy-dispatch-ui-v3/es/bussiness/hyMapAearchPlace/mapAearchPlace'),
13
+ HyOrgGroupTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyOrgGroupTree/orgGroupTree'),
14
+ HyPlanGroupDeviceTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree'),
15
+ HyRuleSetting: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/ruleSetting'),
16
+ HyRuleAssignDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog'),
17
+ HyRuleFenceDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog'),
18
+ HyRuleSettingDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog'),
19
+ HySetRuleAggregationAlarmDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog'),
20
+ HyUserTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyUserTree/userTree'),
12
21
  }
@@ -16,3 +16,4 @@ export { useBatchDialog, useDialog, useDialogIsEdit } from './useDialog.mjs';
16
16
  export { useExportFile } from './useExportFile.mjs';
17
17
  export { localBaseMainStoreKey, useBaseMainStore } from './useBaseMainStore.mjs';
18
18
  export { localCurrentBusKey, useCurrentBus } from './useCurrentBus.mjs';
19
+ export { localComponentsMapKey, localVersionStoreKey, useVersionControl } from './useVersionControl.mjs';
@@ -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';
@@ -11,9 +11,10 @@ import { localTooltipConfigKey } from './useTooltipConfig.mjs';
11
11
  import { localMapConfigKey } from './useMapConfig.mjs';
12
12
  import { localBaseMainStoreKey } from './useBaseMainStore.mjs';
13
13
  import { localCurrentBusKey } from './useCurrentBus.mjs';
14
+ import { localVersionStoreKey, localComponentsMapKey } from './useVersionControl.mjs';
14
15
  import zh_CN from '../locale/zh_CN.mjs';
15
16
 
16
- const globalConfig = ref();
17
+ const globalConfig = ref({});
17
18
  const mergeConfig = (a, b) => {
18
19
  const keys = [.../* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)])];
19
20
  const obj = {};
@@ -26,9 +27,9 @@ const configProviderContextKey = /* @__PURE__ */ Symbol("configProviderContextKe
26
27
  function useGlobalConfig(key, defaultValue = void 0) {
27
28
  const config = getCurrentInstance() ? inject(configProviderContextKey, globalConfig) : globalConfig;
28
29
  if (key) {
29
- return computed(() => config.value?.[key] ?? defaultValue);
30
+ return computed(() => unref(config.value?.[key]) ?? defaultValue);
30
31
  } else {
31
- return config;
32
+ return unref(config);
32
33
  }
33
34
  return {
34
35
  config
@@ -50,47 +51,56 @@ const provideGlobalConfig = (props, app, global = false) => {
50
51
  provideFn(configProviderContextKey, context);
51
52
  provideFn(
52
53
  localeContextKey,
53
- computed(() => index[context.value.locale] || zh_CN)
54
+ computed(() => unref(index[context.value.locale]) || zh_CN)
54
55
  );
55
56
  provideFn(
56
57
  localApiKey,
57
- computed(() => context.value.api)
58
+ computed(() => unref(context.value.api))
58
59
  );
59
60
  provideFn(
60
61
  localUserAvatarMapKey,
61
- computed(() => context.value.userAvatarMap)
62
+ computed(() => unref(context.value.userAvatarMap))
62
63
  );
63
64
  provideFn(
64
65
  localPermissionMapKey,
65
- computed(() => context.value.permissionMap)
66
+ computed(() => unref(context.value.permissionMap))
66
67
  );
67
68
  provideFn(
68
69
  localAudioPlayerConfigKey,
69
- computed(() => context.value.audioPlayer)
70
+ computed(() => unref(context.value.audioPlayer))
70
71
  );
71
72
  provideFn(
72
73
  localVideoPlayerConfigKey,
73
- computed(() => context.value.videoPlayer)
74
+ computed(() => unref(context.value.videoPlayer))
74
75
  );
75
76
  provideFn(
76
77
  localEnsureHyIconMapKey,
77
- computed(() => context.value.ensureHyIcon)
78
+ computed(() => unref(context.value.ensureHyIcon))
78
79
  );
79
80
  provideFn(
80
81
  localTooltipConfigKey,
81
- computed(() => context.value.tooltip)
82
+ computed(() => unref(context.value.tooltip))
82
83
  );
83
84
  provideFn(
84
85
  localMapConfigKey,
85
- computed(() => context.value.mapConfig)
86
+ computed(() => unref(context.value.mapConfig))
86
87
  );
87
- provideFn(localBaseMainStoreKey, context.value.baseMainStore);
88
+ provideFn(localBaseMainStoreKey, unref(context.value.baseMainStore));
88
89
  provideFn(
89
90
  localCurrentBusKey,
90
- computed(() => context.value.currentBus)
91
+ computed(() => unref(context.value.currentBus))
91
92
  );
92
- if (global || !globalConfig.value) {
93
+ provideFn(
94
+ localVersionStoreKey,
95
+ computed(() => unref(context.value.versionStore))
96
+ );
97
+ provideFn(
98
+ localComponentsMapKey,
99
+ computed(() => unref(context.value.componentsMap))
100
+ );
101
+ if (global || !globalConfig.value.initial) {
93
102
  globalConfig.value = context.value;
103
+ globalConfig.value.initial = true;
94
104
  }
95
105
  return context;
96
106
  };
@@ -0,0 +1,34 @@
1
+ import { getCurrentInstance, inject, ref, unref, computed } from 'vue';
2
+ import { useGlobalConfig } from './useGlobalConfig.mjs';
3
+
4
+ const localVersionStoreKey = /* @__PURE__ */ Symbol("versionStore");
5
+ const localComponentsMapKey = /* @__PURE__ */ Symbol("componentsMap");
6
+ const useVersionControl = () => {
7
+ if (getCurrentInstance()) {
8
+ const versionStore = inject(localVersionStoreKey, ref());
9
+ const componentsMap = inject(localComponentsMapKey, ref());
10
+ return {
11
+ versionStore: unref(versionStore) ? versionStore : computed(() => {
12
+ const config = unref(useGlobalConfig());
13
+ return config?.versionStore || null;
14
+ }),
15
+ componentsMap: unref(componentsMap) ? componentsMap : computed(() => {
16
+ const config = unref(useGlobalConfig());
17
+ return config?.componentsMap || null;
18
+ })
19
+ };
20
+ } else {
21
+ return {
22
+ versionStore: computed(() => {
23
+ const config = unref(useGlobalConfig());
24
+ return config?.versionStore || null;
25
+ }),
26
+ componentsMap: computed(() => {
27
+ const config = unref(useGlobalConfig());
28
+ return config?.componentsMap || null;
29
+ })
30
+ };
31
+ }
32
+ };
33
+
34
+ export { localComponentsMapKey, localVersionStoreKey, useVersionControl };
package/es/index.mjs CHANGED
@@ -19,11 +19,12 @@ export { HyCheckboxGroup } from './components/hyCheckboxGroup/index.mjs';
19
19
  export { HyConfigProvider } from './components/hyConfigProvider/index.mjs';
20
20
  export { HyConfirmDialog } from './components/hyConfirmDialog/index.mjs';
21
21
  export { HyCutter } from './components/hyCutter/index.mjs';
22
- export { HyDepartmentTypeOperation } from './bussiness/hyDepartmentTypeOperation/index.mjs';
23
- export { HyDepartmentTypeOperationTiantonmg } from './bussiness/hyDepartmentTypeOperation/tiantong.mjs';
22
+ export { HyDepartmentTypeOperation, HyDepartmentTypeOperationTiantong } from './bussiness/hyDepartmentTypeOperation/index.mjs';
24
23
  export { HyDeviceTree } from './bussiness/hyDeviceTree/index.mjs';
25
24
  export { HyDialog } from './components/hyDialog/index.mjs';
25
+ export { HyDisplayQueryAddress } from './bussiness/hyDisplayQueryAddress/index.mjs';
26
26
  export { HyDrawer } from './components/hyDrawer/index.mjs';
27
+ export { HyFilePlayback } from './bussiness/hyFilePlayback/index.mjs';
27
28
  export { HyForm } from './components/hyForm/index.mjs';
28
29
  export { HyIcon } from './components/hyIcon/index.mjs';
29
30
  export { HyIconBox } from './components/hyIconBox/index.mjs';
@@ -52,16 +53,18 @@ export { base64Decrypt, encryptToBase64, generateRandomCode } from './utils/cryp
52
53
  export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './utils/file.mjs';
53
54
  export { bus, usePublish, useSubscribe } from './hooks/useSubscribe.mjs';
54
55
  export { clearResizeObserver, useResizeObserver } from './hooks/useResizeObserver.mjs';
55
- 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';
56
57
  export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInstall } from './utils/handler.mjs';
57
58
  export { configProviderContextKey, provideGlobalConfig, useGlobalConfig } from './hooks/useGlobalConfig.mjs';
58
59
  export { defaultAxios, localApiKey, useApi } from './hooks/useApi.mjs';
59
- 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';
60
62
  export { formatDuration, getDefaultValueFormatByType } from './utils/date.mjs';
61
63
  export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './utils/is.mjs';
62
64
  export { loadingSvg } from './utils/sharedContent.mjs';
63
65
  export { localAudioPlayerConfigKey, useAudioPlayerConfig } from './hooks/useAudioPlayerConfig.mjs';
64
66
  export { localBaseMainStoreKey, useBaseMainStore } from './hooks/useBaseMainStore.mjs';
67
+ export { localComponentsMapKey, localVersionStoreKey, useVersionControl } from './hooks/useVersionControl.mjs';
65
68
  export { localCurrentBusKey, useCurrentBus } from './hooks/useCurrentBus.mjs';
66
69
  export { localEnsureHyIconMapKey, useEnsureHyIcon } from './hooks/useEnsureHyIcon.mjs';
67
70
  export { localMapConfigKey, useMapConfig } from './hooks/useMapConfig.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';
@@ -95,8 +96,17 @@ const columnRuleHandler = (column, model, config) => {
95
96
  if (column.type === "input" && column.attrs.type === "text") {
96
97
  if (!rules.some((item) => isNumber(item.max))) {
97
98
  rules.push({
98
- max: 255,
99
- message: $t("form.characterLimit", [columnLabelHandler(column, model), 255])
99
+ validator: (rule, value, callback) => {
100
+ if (isNumber(value)) {
101
+ value = `${value}`;
102
+ }
103
+ if (isString(value) && value.length > 255) {
104
+ callback(new Error($t("form.characterLimit", [columnLabelHandler(column, model), 255])));
105
+ return;
106
+ }
107
+ callback();
108
+ },
109
+ trigger: ["blur", "change"]
100
110
  });
101
111
  }
102
112
  }
@@ -119,14 +129,22 @@ const columnLabelHandler = (column, model) => {
119
129
  }
120
130
  return label;
121
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
+ };
122
141
  function columnPlaceholderHandler(column, model) {
123
142
  const { type, attrs = {} } = column || {};
124
- if (isFunction(attrs.placeholder)) {
125
- const placeholder2 = unref(attrs.placeholder);
126
- return placeholder2(column, model);
143
+ let placeholder = unref(attrs.placeholder);
144
+ if (isFunction(placeholder)) {
145
+ return placeholder(column, model);
127
146
  }
128
147
  const label = columnLabelHandler(column, model);
129
- let placeholder = attrs.placeholder;
130
148
  switch (type) {
131
149
  case "input":
132
150
  case "input-number":
@@ -145,5 +163,50 @@ function columnPlaceholderHandler(column, model) {
145
163
  }
146
164
  return placeholder;
147
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
+ }
148
211
 
149
- 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 = {
@@ -326,6 +326,10 @@ class InitMap extends EventEmitter {
326
326
  layerGroup(map, markers = []) {
327
327
  return this.map.layerGroup(map, markers);
328
328
  }
329
+ // 获取esri对象(仅leftlet地图类型)
330
+ esriFn() {
331
+ return this.map.esriFn ? this.map.esriFn() : null;
332
+ }
329
333
  }
330
334
 
331
335
  export { InitMap, setMapServer, setPoiServer };