hy-dispatch-ui-v3 0.2.62 → 0.2.63

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 (230) hide show
  1. package/dist/tailwind.css +4 -5
  2. package/es/api/device.mjs +1 -0
  3. package/es/api/index.mjs +1 -0
  4. package/es/api/sypct.mjs +1 -0
  5. package/es/api/task.mjs +1 -0
  6. package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
  7. package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
  8. package/es/bussiness/hyMapAearchPlace/index.mjs +1 -0
  9. package/es/bussiness/hyMapAearchPlace/js/index.mjs +39 -42
  10. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +24 -5
  11. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +2 -0
  12. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
  13. package/es/components/hyAudioPlayer/index.mjs +1 -0
  14. package/es/components/hyAudioPlayer/js/index.mjs +5 -1
  15. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +1 -0
  16. package/es/components/hyBatchUploadDialog/index.mjs +1 -0
  17. package/es/components/hyButton/button.vue.mjs +3 -2
  18. package/es/components/hyButton/index.mjs +1 -0
  19. package/es/components/hyButton/style/button.scss +9 -2
  20. package/es/components/hyConfigProvider/configProvider.vue.mjs +2 -1
  21. package/es/components/hyConfigProvider/index.mjs +1 -0
  22. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +4 -0
  23. package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
  24. package/es/components/hyConfirmDialog/index.mjs +1 -0
  25. package/es/components/hyCutter/cutter.vue.mjs +5 -2
  26. package/es/components/hyCutter/index.mjs +1 -0
  27. package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
  28. package/es/components/hyDatePicker/index.mjs +1 -0
  29. package/es/components/hyDialog/dialog.vue.mjs +92 -28
  30. package/es/components/hyDialog/index.mjs +1 -0
  31. package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
  32. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
  33. package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
  34. package/es/components/hyForm/cpns/locationSelect.vue.mjs +3 -0
  35. package/es/components/hyForm/form.vue.mjs +3 -0
  36. package/es/components/hyForm/index.mjs +1 -0
  37. package/es/components/hyForm/js/index.mjs +3 -1
  38. package/es/components/hyForm/js/useAppForm.mjs +4 -2
  39. package/es/components/hyIcon/icon.vue.mjs +2 -1
  40. package/es/components/hyIcon/index.mjs +1 -0
  41. package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
  42. package/es/components/hyIconBox/index.mjs +1 -0
  43. package/es/components/hyInput/index.mjs +1 -0
  44. package/es/components/hyInput/input.vue.mjs +3 -1
  45. package/es/components/hyInput/inputSearch.vue.mjs +2 -1
  46. package/es/components/hyLoading/index.mjs +41 -0
  47. package/es/components/hyMap/index.mjs +1 -0
  48. package/es/components/hyMap/js/index.mjs +82 -0
  49. package/es/components/hyMap/map.vue.mjs +1 -0
  50. package/es/components/hyMenu/index.mjs +1 -0
  51. package/es/components/hyMenu/menu.vue.mjs +4 -0
  52. package/es/components/hyNoPermissions/index.mjs +1 -0
  53. package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
  54. package/es/components/hyNoPermissionsMap/index.mjs +1 -0
  55. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
  56. package/es/components/hyOrgCascader/index.mjs +1 -0
  57. package/es/components/hyOrgCascader/js/index.mjs +2 -0
  58. package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
  59. package/es/components/hyRadioGroup/index.mjs +1 -0
  60. package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
  61. package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
  62. package/es/components/hySearch/index.mjs +1 -0
  63. package/es/components/hySearch/js/index.mjs +4 -2
  64. package/es/components/hySearch/js/useAppSearch.mjs +4 -2
  65. package/es/components/hySearch/search.vue.mjs +3 -0
  66. package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
  67. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
  68. package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
  69. package/es/components/hyTable/cpns/virtualTable.vue.mjs +7 -2
  70. package/es/components/hyTable/index.mjs +1 -0
  71. package/es/components/hyTable/js/index.mjs +10 -10
  72. package/es/components/hyTable/js/search.mjs +2 -0
  73. package/es/components/hyTable/js/useAppTable.mjs +5 -2
  74. package/es/components/hyTable/table.vue.mjs +3 -0
  75. package/es/components/hyTableActionButton/index.mjs +1 -0
  76. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
  77. package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
  78. package/es/components/hyTableForm/index.mjs +1 -0
  79. package/es/components/hyTableForm/js/index.mjs +36 -0
  80. package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
  81. package/es/components/hyTableForm/tableForm.vue.mjs +4 -2
  82. package/es/components/hyTimePicker/index.mjs +1 -0
  83. package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
  84. package/es/components/hyTooltip/index.mjs +1 -0
  85. package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
  86. package/es/components/hyTree/index.mjs +1 -0
  87. package/es/components/hyTree/js/index.mjs +15 -2
  88. package/es/components/hyTree/tree.vue.mjs +9 -4
  89. package/es/components/hyUserAvatar/index.mjs +1 -0
  90. package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
  91. package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
  92. package/es/components/hyVideoPlayer/index.mjs +1 -0
  93. package/es/components/hyVideoPlayer/js/index.mjs +7 -2
  94. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
  95. package/es/components/index.mjs +1 -0
  96. package/es/hooks/useGlobalConfig.mjs +1 -1
  97. package/es/hooks/useLocale.mjs +4 -2
  98. package/es/hooks/useResizeHandler.mjs +1 -0
  99. package/es/hooks/useResizeObserver.mjs +1 -1
  100. package/es/index.mjs +6 -0
  101. package/es/locale/en.mjs +1 -2
  102. package/es/locale/zh_CN.mjs +1 -2
  103. package/es/make-installer.mjs +1 -0
  104. package/es/utils/file.mjs +1 -0
  105. package/es/utils/form.mjs +2 -1
  106. package/es/utils/handler.mjs +2 -0
  107. package/es/utils/index.mjs +2 -0
  108. package/es/utils/input.mjs +1 -0
  109. package/es/utils/is.mjs +1 -0
  110. package/es/utils/map/hook/bigMap.mjs +3 -2
  111. package/es/utils/map/hook/gaode.mjs +2 -2
  112. package/es/utils/map/hook/leafletjs.mjs +7 -1
  113. package/es/utils/map/index.mjs +12 -0
  114. package/es/utils/map/js/webgis.mjs +4 -1
  115. package/es/utils/sharedContent.mjs +12 -0
  116. package/es/version.mjs +1 -1
  117. package/lib/api/device.js +1 -0
  118. package/lib/api/index.js +1 -0
  119. package/lib/api/sypct.js +1 -0
  120. package/lib/api/task.js +1 -0
  121. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
  122. package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
  123. package/lib/bussiness/hyMapAearchPlace/index.js +1 -0
  124. package/lib/bussiness/hyMapAearchPlace/js/index.js +37 -40
  125. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +23 -4
  126. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +2 -0
  127. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
  128. package/lib/components/hyAudioPlayer/index.js +1 -0
  129. package/lib/components/hyAudioPlayer/js/index.js +5 -1
  130. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +1 -0
  131. package/lib/components/hyBatchUploadDialog/index.js +1 -0
  132. package/lib/components/hyButton/button.vue.js +2 -1
  133. package/lib/components/hyButton/index.js +1 -0
  134. package/lib/components/hyButton/style/button.scss +9 -2
  135. package/lib/components/hyConfigProvider/configProvider.vue.js +1 -0
  136. package/lib/components/hyConfigProvider/index.js +1 -0
  137. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +4 -0
  138. package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
  139. package/lib/components/hyConfirmDialog/index.js +1 -0
  140. package/lib/components/hyCutter/cutter.vue.js +3 -0
  141. package/lib/components/hyCutter/index.js +1 -0
  142. package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
  143. package/lib/components/hyDatePicker/index.js +1 -0
  144. package/lib/components/hyDialog/dialog.vue.js +90 -26
  145. package/lib/components/hyDialog/index.js +1 -0
  146. package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
  147. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
  148. package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
  149. package/lib/components/hyForm/cpns/locationSelect.vue.js +3 -0
  150. package/lib/components/hyForm/form.vue.js +3 -0
  151. package/lib/components/hyForm/index.js +1 -0
  152. package/lib/components/hyForm/js/index.js +3 -1
  153. package/lib/components/hyForm/js/useAppForm.js +3 -1
  154. package/lib/components/hyIcon/icon.vue.js +1 -0
  155. package/lib/components/hyIcon/index.js +1 -0
  156. package/lib/components/hyIconBox/iconBox.vue.js +1 -0
  157. package/lib/components/hyIconBox/index.js +1 -0
  158. package/lib/components/hyInput/index.js +1 -0
  159. package/lib/components/hyInput/input.vue.js +2 -0
  160. package/lib/components/hyInput/inputSearch.vue.js +1 -0
  161. package/lib/components/hyLoading/index.js +47 -0
  162. package/lib/components/hyMap/index.js +1 -0
  163. package/lib/components/hyMap/js/index.js +82 -0
  164. package/lib/components/hyMap/map.vue.js +1 -0
  165. package/lib/components/hyMenu/index.js +1 -0
  166. package/lib/components/hyMenu/menu.vue.js +4 -0
  167. package/lib/components/hyNoPermissions/index.js +1 -0
  168. package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
  169. package/lib/components/hyNoPermissionsMap/index.js +1 -0
  170. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
  171. package/lib/components/hyOrgCascader/index.js +1 -0
  172. package/lib/components/hyOrgCascader/js/index.js +2 -0
  173. package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
  174. package/lib/components/hyRadioGroup/index.js +1 -0
  175. package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
  176. package/lib/components/hySearch/cpns/searchItem.vue.js +2 -0
  177. package/lib/components/hySearch/index.js +1 -0
  178. package/lib/components/hySearch/js/index.js +3 -1
  179. package/lib/components/hySearch/js/useAppSearch.js +4 -2
  180. package/lib/components/hySearch/search.vue.js +3 -0
  181. package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
  182. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
  183. package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
  184. package/lib/components/hyTable/cpns/virtualTable.vue.js +6 -1
  185. package/lib/components/hyTable/index.js +1 -0
  186. package/lib/components/hyTable/js/index.js +9 -9
  187. package/lib/components/hyTable/js/search.js +2 -0
  188. package/lib/components/hyTable/js/useAppTable.js +4 -1
  189. package/lib/components/hyTable/table.vue.js +3 -0
  190. package/lib/components/hyTableActionButton/index.js +1 -0
  191. package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
  192. package/lib/components/hyTableForm/batchTableForm.vue.js +15 -12
  193. package/lib/components/hyTableForm/index.js +1 -0
  194. package/lib/components/hyTableForm/js/index.js +36 -0
  195. package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
  196. package/lib/components/hyTableForm/tableForm.vue.js +12 -10
  197. package/lib/components/hyTimePicker/index.js +1 -0
  198. package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
  199. package/lib/components/hyTooltip/index.js +1 -0
  200. package/lib/components/hyTooltip/tooltip.vue.js +2 -0
  201. package/lib/components/hyTree/index.js +1 -0
  202. package/lib/components/hyTree/js/index.js +14 -1
  203. package/lib/components/hyTree/tree.vue.js +9 -4
  204. package/lib/components/hyUserAvatar/index.js +1 -0
  205. package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
  206. package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
  207. package/lib/components/hyVideoPlayer/index.js +1 -0
  208. package/lib/components/hyVideoPlayer/js/index.js +7 -2
  209. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
  210. package/lib/components/index.js +56 -53
  211. package/lib/hooks/useLocale.js +3 -1
  212. package/lib/hooks/useResizeHandler.js +1 -0
  213. package/lib/index.js +70 -61
  214. package/lib/locale/en.js +1 -2
  215. package/lib/locale/zh_CN.js +1 -2
  216. package/lib/make-installer.js +1 -0
  217. package/lib/utils/file.js +1 -0
  218. package/lib/utils/form.js +1 -0
  219. package/lib/utils/handler.js +2 -0
  220. package/lib/utils/index.js +3 -0
  221. package/lib/utils/input.js +1 -0
  222. package/lib/utils/is.js +1 -0
  223. package/lib/utils/map/hook/bigMap.js +3 -2
  224. package/lib/utils/map/hook/gaode.js +1 -1
  225. package/lib/utils/map/hook/leafletjs.js +7 -1
  226. package/lib/utils/map/index.js +12 -0
  227. package/lib/utils/map/js/webgis.js +4 -1
  228. package/lib/utils/sharedContent.js +14 -0
  229. package/lib/version.js +1 -1
  230. package/package.json +2 -1
package/es/index.mjs CHANGED
@@ -1,6 +1,11 @@
1
1
  import installer from './make-installer.mjs';
2
+ import './utils/index.mjs';
3
+ import './components/index.mjs';
4
+ import './bussiness/index.mjs';
5
+ import './hooks/index.mjs';
2
6
  export { ElDatePicker, HyDatePicker } from './components/hyDatePicker/index.mjs';
3
7
  export { ElInput, HyInput, HyInputSearch } from './components/hyInput/index.mjs';
8
+ export { ElLoading, ElLoading as HyLoading } from './components/hyLoading/index.mjs';
4
9
  export { ElTimePicker, HyTimePicker } from './components/hyTimePicker/index.mjs';
5
10
  export { ElTooltip, HyTooltip } from './components/hyTooltip/index.mjs';
6
11
  export { HyAddDepartmentType } from './bussiness/hyAddDepartmentType/index.mjs';
@@ -41,6 +46,7 @@ export { defaultAxios, localApiKey, useApi } from './hooks/useApi.mjs';
41
46
  export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatNumber, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './utils/input.mjs';
42
47
  export { formatDuration, getDefaultValueFormatByType } from './utils/date.mjs';
43
48
  export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './utils/is.mjs';
49
+ export { loadingSvg } from './utils/sharedContent.mjs';
44
50
  export { localAudioPlayerConfigKey, useAudioPlayerConfig } from './hooks/useAudioPlayerConfig.mjs';
45
51
  export { localEnsureHyIconMapKey, useEnsureHyIcon } from './hooks/useEnsureHyIcon.mjs';
46
52
  export { localMapConfigKey, useMapConfig } from './hooks/useMapConfig.mjs';
package/es/locale/en.mjs CHANGED
@@ -27,8 +27,7 @@ var en = {
27
27
  wednesday: "Wednesday",
28
28
  thursday: "Thursday",
29
29
  friday: "Friday",
30
- saturday: "Saturday",
31
- help: "Help"
30
+ saturday: "Saturday"
32
31
  },
33
32
  form: {
34
33
  department: "Department",
@@ -27,8 +27,7 @@ var zh_CN = {
27
27
  wednesday: "\u661F\u671F\u4E09",
28
28
  thursday: "\u661F\u671F\u56DB",
29
29
  friday: "\u661F\u671F\u4E94",
30
- saturday: "\u661F\u671F\u516D",
31
- help: "\u5E2E\u52A9"
30
+ saturday: "\u661F\u671F\u516D"
32
31
  },
33
32
  form: {
34
33
  department: "\u6240\u5C5E\u90E8\u95E8",
@@ -1,3 +1,4 @@
1
+ import './hooks/index.mjs';
1
2
  import { INSTALLED_KEY } from './constants/index.mjs';
2
3
  import * as index from './components/index.mjs';
3
4
  import { version } from './version.mjs';
package/es/utils/file.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { unref } from 'vue';
2
+ import '../hooks/index.mjs';
2
3
  import { createUniqueId } from './handler.mjs';
3
4
  import { useApi } from '../hooks/useApi.mjs';
4
5
 
package/es/utils/form.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { unref } from 'vue';
2
- import { isString, isArray, isFunction, isEmpty, isObject, isBoolean } from './is.mjs';
2
+ import '../hooks/index.mjs';
3
+ import { isString, isArray, isBoolean, isFunction, isObject, isEmpty } from './is.mjs';
3
4
  import { useLocale } from '../hooks/useLocale.mjs';
4
5
 
5
6
  function getValueByProp(model, prop) {
@@ -1,5 +1,7 @@
1
+ import 'vue';
1
2
  import { ElMessage } from 'element-plus';
2
3
  import { isFunction, isVueProxy, isArray, isObject, isEmpty } from './is.mjs';
4
+ import '../index.mjs';
3
5
  import { useLocale } from '../hooks/useLocale.mjs';
4
6
 
5
7
  function funRunHandler(target, ...args) {
@@ -8,4 +8,6 @@ export { clearSpace, columnLabelHandler, columnPlaceholderHandler, columnRuleHan
8
8
  export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatNumber, 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
+ import './tree.mjs';
12
+ export { loadingSvg } from './sharedContent.mjs';
11
13
  export { setGlobalTreeConfig } from 'hy-virtual-tree';
@@ -1,3 +1,4 @@
1
+ import '../hooks/index.mjs';
1
2
  import { useLocale } from '../hooks/useLocale.mjs';
2
3
 
3
4
  function formatNumber(n) {
package/es/utils/is.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { isRef, isReactive, isReadonly, isProxy } from 'vue';
2
+ import '../hooks/index.mjs';
2
3
  import { usePermissionMap } from '../hooks/usePermissionMap.mjs';
3
4
 
4
5
  const isString = (e) => typeof e === "string";
@@ -5,7 +5,7 @@ import { createMapProxy, createWrappedHandlerStore } from '../js/mapProxy.mjs';
5
5
 
6
6
  var __defProp = Object.defineProperty;
7
7
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
8
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9
9
  const CIRCLE_SEGMENTS = 36;
10
10
  function remToPx(rem) {
11
11
  const rootFontSize = parseFloat(
@@ -712,6 +712,7 @@ class bigMap extends EventEmitter {
712
712
  // 电子围栏
713
713
  CreateFence(pmType = "rectangle", options = {}, map) {
714
714
  let polygon = null;
715
+ const _this = this;
715
716
  const clearPolygon = () => {
716
717
  if (polygon) {
717
718
  polygon.remove();
@@ -822,7 +823,7 @@ class bigMap extends EventEmitter {
822
823
  }
823
824
  function setPointIcon(index, distance, showDeleteAll) {
824
825
  const markerItem = rangingMarker[index];
825
- const isLast = !rangingMarker[index + 1]?.options?.extData?.distance;
826
+ const isLast = showDeleteAll ?? !rangingMarker[index + 1]?.options?.extData?.distance;
826
827
  markerItem.setIcon({
827
828
  divIcon: _this.DivIcon(
828
829
  rangingPointIconOption(
@@ -1,9 +1,9 @@
1
1
  import { EventEmitter } from 'events';
2
- import { createMapProxy, createWrappedHandlerStore } from '../js/mapProxy.mjs';
2
+ import { createWrappedHandlerStore, createMapProxy } from '../js/mapProxy.mjs';
3
3
 
4
4
  var __defProp = Object.defineProperty;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
7
  const createClickHandler = (fn, context, target) => {
8
8
  return (e) => {
9
9
  const newEvent = { ...e };
@@ -1,5 +1,11 @@
1
1
  import { EventEmitter } from 'events';
2
2
  import L from 'leaflet';
3
+ import 'leaflet.pm';
4
+ import 'leaflet.chinatmsproviders';
5
+ import 'proj4leaflet';
6
+ import 'leaflet.motion/dist/leaflet.motion.min';
7
+ import 'leaflet.markercluster/dist/leaflet.markercluster-src.js';
8
+ import 'leaflet-polylinedecorator/dist/leaflet.polylineDecorator';
3
9
  import { importCoordinate, exportCoordinate } from '../js/webgis.mjs';
4
10
  import { createMapProxy, createWrappedHandlerStore } from '../js/mapProxy.mjs';
5
11
  import * as esriNS from 'esri-leaflet';
@@ -8,7 +14,7 @@ import related from 'esri-leaflet-related/dist/esri-leaflet-related';
8
14
 
9
15
  var __defProp = Object.defineProperty;
10
16
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
17
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
12
18
  import "leaflet/dist/leaflet.css";
13
19
 
14
20
  import "leaflet.pm/dist/leaflet.pm.css";
@@ -3,6 +3,7 @@ import Leafletjs from './hook/leafletjs.mjs';
3
3
  import bigMap from './hook/bigMap.mjs';
4
4
  import { EventEmitter } from 'events';
5
5
  import hyCommon, { Common } from 'hy-common';
6
+ import '../../hooks/index.mjs';
6
7
  import { useApi } from '../../hooks/useApi.mjs';
7
8
 
8
9
  const scriptPromises = new globalThis.Map();
@@ -146,6 +147,7 @@ function loadScript(url) {
146
147
  return promise;
147
148
  }
148
149
  function bmInit() {
150
+ ;
149
151
  (function() {
150
152
  var originalInitTile = window.BM.GridLayer.prototype._initTile;
151
153
  window.BM.GridLayer.include({
@@ -259,6 +261,8 @@ class InitMap extends EventEmitter {
259
261
  // 自定义 Circle
260
262
  Circle(latLngList, option) {
261
263
  option = {
264
+ opacity: 1,
265
+ weight: 1,
262
266
  ...option,
263
267
  radius: option.radius,
264
268
  color: option.color,
@@ -272,6 +276,8 @@ class InitMap extends EventEmitter {
272
276
  // 自定义 Polygon
273
277
  Polygon(pathList = [], option) {
274
278
  option = {
279
+ opacity: 1,
280
+ weight: 1,
275
281
  ...option,
276
282
  color: option.color,
277
283
  opacity: option.opacity,
@@ -296,6 +302,8 @@ class InitMap extends EventEmitter {
296
302
  // 自定义 Polyline
297
303
  Polyline(latLngList, option) {
298
304
  option = {
305
+ opacity: 1,
306
+ weight: 1,
299
307
  closeOnClick: false,
300
308
  ...option,
301
309
  color: option.color,
@@ -320,6 +328,10 @@ class InitMap extends EventEmitter {
320
328
  RangingTool(options = {}, map) {
321
329
  return this.map.RangingTool(options, map);
322
330
  }
331
+ // 地图图层
332
+ layerGroup(map, markers = []) {
333
+ return this.map.layerGroup(map, markers);
334
+ }
323
335
  }
324
336
 
325
337
  export { InitMap, setMapServer, setPoiServer };
@@ -32,7 +32,10 @@ function ToLon(x, y) {
32
32
  return ret;
33
33
  }
34
34
  const Coordinate = {
35
- "WGS84": 0};
35
+ "WGS84": 0,
36
+ "GCJ02": 1,
37
+ "BD09": 2
38
+ };
36
39
  const reverseCoordinate = {
37
40
  0: "WGS84",
38
41
  1: "GCJ02",
@@ -0,0 +1,12 @@
1
+ const loadingSvg = `
2
+ <path class="path" d="
3
+ M 30 15
4
+ L 28 17
5
+ M 25.61 25.61
6
+ A 15 15, 0, 0, 1, 15 30
7
+ A 15 15, 0, 1, 1, 27.99 7.5
8
+ L 15 15
9
+ " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
10
+ `;
11
+
12
+ export { loadingSvg };
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.61";
1
+ const version = "0.2.62";
2
2
 
3
3
  export { version };
package/lib/api/device.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ require('../hooks/index.js');
3
4
  var vue = require('vue');
4
5
  var useLocale = require('../hooks/useLocale.js');
5
6
  var useApi = require('../hooks/useApi.js');
package/lib/api/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ require('../hooks/index.js');
3
4
  var vue = require('vue');
4
5
  var useLocale = require('../hooks/useLocale.js');
5
6
  var useApi = require('../hooks/useApi.js');
package/lib/api/sypct.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ require('../hooks/index.js');
3
4
  var vue = require('vue');
4
5
  var useLocale = require('../hooks/useLocale.js');
5
6
  var useApi = require('../hooks/useApi.js');
package/lib/api/task.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ require('../hooks/index.js');
3
4
  var vue = require('vue');
4
5
  var useLocale = require('../hooks/useLocale.js');
5
6
  var useApi = require('../hooks/useApi.js');
@@ -3,16 +3,19 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
+ require('../../hooks/index.js');
6
7
  var elementPlus = require('element-plus');
7
- var index$4 = require('../../api/index.js');
8
+ var index = require('../../api/index.js');
9
+ require('../../utils/index.js');
10
+ require('../../components/index.js');
8
11
  var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
9
12
  var useLocale = require('../../hooks/useLocale.js');
10
- var useMixins = require('../../hooks/useMixins.js');
11
- var index = require('../../components/hyDialog/index.js');
12
- var index$1 = require('../../components/hyIcon/index.js');
13
- var index$2 = require('../../components/hyButton/index.js');
14
- var index$3 = require('../../components/hyCutter/index.js');
15
13
  var file = require('../../utils/file.js');
14
+ var useMixins = require('../../hooks/useMixins.js');
15
+ var index$1 = require('../../components/hyDialog/index.js');
16
+ var index$2 = require('../../components/hyIcon/index.js');
17
+ var index$3 = require('../../components/hyButton/index.js');
18
+ var index$4 = require('../../components/hyCutter/index.js');
16
19
 
17
20
  const __default__ = vue.defineComponent({
18
21
  name: "HyAddDepartmentType"
@@ -92,7 +95,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
92
95
  if (!hy.form.value.icon) {
93
96
  hy.form.value.iconKey = null;
94
97
  }
95
- index$4.saveApi("organization/orgType", {
98
+ index.saveApi("organization/orgType", {
96
99
  ...hy.form.value,
97
100
  icon: null
98
101
  }).then((res) => {
@@ -169,7 +172,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
169
172
  });
170
173
  return (_ctx, _cache) => {
171
174
  const _component_el_input = vue.resolveComponent("el-input");
172
- return vue.openBlock(), vue.createBlock(vue.unref(index.HyDialog), {
175
+ return vue.openBlock(), vue.createBlock(vue.unref(index$1.HyDialog), {
173
176
  ref_key: "HyDialogRef",
174
177
  ref: HyDialogRef,
175
178
  modelValue: vue.unref(visible),
@@ -238,7 +241,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
238
241
  fit: "contain",
239
242
  class: "w-[44px] h-[44px]",
240
243
  src: vue.unref(form).icon
241
- }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
244
+ }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyIcon), {
242
245
  key: 1,
243
246
  "svg-name": "ops-file-empty-head",
244
247
  class: "text-auxiliary !w-[42px] !h-[42px]"
@@ -310,7 +313,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
310
313
  }, 8, ["model", "rules"])
311
314
  ]),
312
315
  vue.createElementVNode("div", { class: "flex items-center justify-center mt-5" }, [
313
- vue.createVNode(vue.unref(index$2.HyButton), {
316
+ vue.createVNode(vue.unref(index$3.HyButton), {
314
317
  class: "!min-w-[120px]",
315
318
  onClick: vue.unref(onClose)
316
319
  }, {
@@ -324,7 +327,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
324
327
  _: 1
325
328
  /* STABLE */
326
329
  }, 8, ["onClick"]),
327
- vue.createVNode(vue.unref(index$2.HyButton), {
330
+ vue.createVNode(vue.unref(index$3.HyButton), {
328
331
  type: "primary",
329
332
  class: "!min-w-[120px]",
330
333
  onClick: vue.unref(submit)
@@ -343,7 +346,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
343
346
  ])
344
347
  ]),
345
348
  vue.unref(visible) ? (vue.openBlock(), vue.createBlock(
346
- vue.unref(index$3.HyCutter),
349
+ vue.unref(index$4.HyCutter),
347
350
  {
348
351
  key: 0,
349
352
  ref_key: "HyCutterRef",
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var addDepartmentType = require('./addDepartmentType.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyAddDepartmentType = handler.withInstall(addDepartmentType.default);
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var mapAearchPlace = require('./mapAearchPlace.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyMapAearchPlace = handler.withInstall(mapAearchPlace.default);
@@ -6,10 +6,11 @@ var index$1 = require('../../../api/index.js');
6
6
  var task = require('../../../api/task.js');
7
7
  var device = require('../../../api/device.js');
8
8
  var sypct = require('../../../api/sypct.js');
9
+ require('../../../utils/index.js');
9
10
  var webgis = require('../../../utils/map/js/webgis.js');
10
11
  var index = require('../../../utils/map/index.js');
11
- var input = require('../../../utils/input.js');
12
12
  var is = require('../../../utils/is.js');
13
+ var input = require('../../../utils/input.js');
13
14
 
14
15
  const CoordinateDict = {
15
16
  0: "WGS84",
@@ -24,32 +25,6 @@ const CoordinateMap = {
24
25
  const useMapAearchPlace = (hy) => {
25
26
  const { props, emits, t } = hy;
26
27
  const poiServer = index.setPoiServer(props.mapConfig);
27
- const searchAddressTypeList = vue.ref([
28
- { label: "\u5730\u7406\u5730\u5740", value: 1 },
29
- // 水源点: 2
30
- // 防火单位: 3
31
- {
32
- label: "\u90E8\u95E8\u540D\u79F0",
33
- value: 4,
34
- permission: "operator_departmentManage"
35
- },
36
- { label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
37
- {
38
- label: "\u67E5\u5DE1\u67E5\u70B9",
39
- value: 6,
40
- permission: "mission_patrolInspectionTask"
41
- },
42
- {
43
- label: "\u4EFB\u52A1\u540D\u79F0",
44
- value: 7,
45
- permission: "mission_commonTasks"
46
- },
47
- {
48
- label: "\u67E5\u8BE2\u8F66\u8F86",
49
- value: 8,
50
- permission: "commands_dutyStatus"
51
- }
52
- ]);
53
28
  const nextPageParams = vue.ref(null);
54
29
  const lnglat = vue.ref({
55
30
  lng: null,
@@ -93,20 +68,43 @@ const useMapAearchPlace = (hy) => {
93
68
  const mapCoordinateName = vue.computed(() => {
94
69
  return CoordinateDict[hy.mapCoordinate.value];
95
70
  });
96
- async function setSelectList() {
97
- const selectList = [];
98
- props.selectIdList.forEach((id) => {
99
- const item = hy.selectList.find((item2) => item2.value === id);
100
- if (item) {
101
- if (!item.permission || is.isPermission(item.permission)) {
102
- selectList.push(item);
103
- }
71
+ const searchAddressTypeList = vue.computed(() => {
72
+ const selectIdSet = props.selectIdList.reduce((value, id) => {
73
+ value.add(id);
74
+ return value;
75
+ }, /* @__PURE__ */ new Set());
76
+ return [
77
+ { label: "\u5730\u7406\u5730\u5740", value: 1 },
78
+ // 水源点: 2
79
+ // 防火单位: 3
80
+ {
81
+ label: "\u90E8\u95E8\u540D\u79F0",
82
+ value: 4,
83
+ permission: "operator_departmentManage"
84
+ },
85
+ { label: "\u67E5\u7ECF\u7EAC\u5EA6", value: 5 },
86
+ {
87
+ label: "\u67E5\u5DE1\u67E5\u70B9",
88
+ value: 6,
89
+ permission: "mission_patrolInspectionTask"
90
+ },
91
+ {
92
+ label: "\u4EFB\u52A1\u540D\u79F0",
93
+ value: 7,
94
+ permission: "mission_commonTasks"
95
+ },
96
+ {
97
+ label: "\u67E5\u8BE2\u8F66\u8F86",
98
+ value: 8,
99
+ permission: "commands_dutyStatus"
104
100
  }
101
+ ].filter((item) => {
102
+ if (!item.permission && !is.isPermission(item.permission)) {
103
+ return false;
104
+ }
105
+ return selectIdSet.has(item.value);
105
106
  });
106
- await vue.nextTick();
107
- hy.searchAddressType.value = selectList[0].value;
108
- hy.selectList = selectList;
109
- }
107
+ });
110
108
  async function lnglatCheckFn(content) {
111
109
  input.onlyNumber(hy.lnglat.value, content);
112
110
  await vue.nextTick();
@@ -627,7 +625,6 @@ const useMapAearchPlace = (hy) => {
627
625
  commonOptions,
628
626
  mapCoordinate,
629
627
  mapCoordinateName,
630
- setSelectList,
631
628
  lnglatCheckFn,
632
629
  onFocus,
633
630
  onBlur,
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var VirtualList = require('vue3-virtual-scroll-list');
7
7
  var elementPlus = require('element-plus');
8
+ require('../../hooks/index.js');
9
+ require('../../components/index.js');
8
10
  var index = require('./js/index.js');
9
11
  var mapAearchPlaceItem = require('./mapAearchPlaceItem.vue.js');
10
12
  var useLocale = require('../../hooks/useLocale.js');
@@ -80,7 +82,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
80
82
  commonOptions,
81
83
  mapCoordinate,
82
84
  mapCoordinateName,
83
- setSelectList,
84
85
  lnglatCheckFn,
85
86
  onFocus,
86
87
  onBlur,
@@ -103,6 +104,24 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
103
104
  titleFn,
104
105
  placeholderFn
105
106
  } = useMixins.useMixins({ props, emits, t }, [index.useMapAearchPlace]);
107
+ vue.watch(
108
+ () => searchAddressTypeList.value,
109
+ () => {
110
+ if (!searchAddressType.value) {
111
+ searchAddressType.value = searchAddressType.value[0];
112
+ searchAddressTypeFn();
113
+ } else {
114
+ const index = searchAddressTypeList.value.findIndex((item) => {
115
+ return searchAddressType.value === item.value;
116
+ });
117
+ if (index === -1) {
118
+ searchAddressType.value = searchAddressType.value[0];
119
+ searchAddressTypeFn();
120
+ }
121
+ }
122
+ },
123
+ { immediate: true, deep: true }
124
+ );
106
125
  __expose({});
107
126
  return (_ctx, _cache) => {
108
127
  return vue.openBlock(), vue.createElementBlock(
@@ -127,7 +146,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
127
146
  onBlur: vue.unref(onBlur)
128
147
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange", "onFocus", "onBlur"]),
129
148
  vue.createVNode(vue.unref(index$1.HyTooltip), {
130
- "open-delay": 500,
149
+ "show-after": 500,
131
150
  content: vue.unref(placeholder),
132
151
  placement: "bottom-start"
133
152
  }, {
@@ -152,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
152
171
  }, 8, ["content"]),
153
172
  vue.createCommentVNode(" \u7ECF\u7EAC\u5EA6 "),
154
173
  vue.createVNode(vue.unref(index$1.HyTooltip), {
155
- "open-delay": 500,
174
+ "show-after": 500,
156
175
  content: "\u7EAC\u5EA6",
157
176
  placement: "bottom-start"
158
177
  }, {
@@ -177,7 +196,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
177
196
  /* STABLE */
178
197
  }),
179
198
  vue.createVNode(vue.unref(index$1.HyTooltip), {
180
- "open-delay": 500,
199
+ "show-after": 500,
181
200
  content: "\u7ECF\u5EA6",
182
201
  placement: "bottom-start"
183
202
  }, {
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
+ require('../../components/index.js');
6
7
  var index = require('../../components/hyIcon/index.js');
7
8
 
8
9
  const _sfc_main = {
@@ -31,6 +32,7 @@ const _sfc_main = {
31
32
  }
32
33
  },
33
34
  setup(__props) {
35
+ const props = __props;
34
36
  return (_ctx, _cache) => {
35
37
  return vue.openBlock(), vue.createElementBlock("li", {
36
38
  class: "flex items-center css-text-no-select py-2 pl-2.5 border-b border-background-3 clickBox hover:bg-background-3",
@@ -4,6 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ require('../../hooks/index.js');
8
+ require('../../utils/index.js');
9
+ require('../index.js');
7
10
  var mediaLoading = require('../hyVideoPlayer/cpns/mediaLoading.vue.js');
8
11
  var index = require('./js/index.js');
9
12
  var useLocale = require('../../hooks/useLocale.js');
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var audioPlayer = require('./audioPlayer.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyAudioPlayer = handler.withInstall(audioPlayer.default);
@@ -2,6 +2,9 @@
2
2
 
3
3
  var vue = require('vue');
4
4
  var elementPlus = require('element-plus');
5
+ require('dayjs');
6
+ require('../../../hooks/index.js');
7
+ require('../../../utils/index.js');
5
8
  var useLocale = require('../../../hooks/useLocale.js');
6
9
  var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
7
10
  var date = require('../../../utils/date.js');
@@ -243,7 +246,8 @@ const useAudioPlayer = (hy) => {
243
246
  document.removeEventListener("fullscreenchange", fullscreenchangeHandler);
244
247
  }
245
248
  function fullscreenchangeHandler(e) {
246
- if (document.fullscreenElement) ; else {
249
+ if (document.fullscreenElement) {
250
+ } else {
247
251
  isFullScreen.value = false;
248
252
  }
249
253
  }
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
+ require('../index.js');
8
9
  var index = require('../hyDialog/index.js');
9
10
  var index$1 = require('../hyTableForm/index.js');
10
11
  var index$2 = require('../hyButton/index.js');
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var batchUploadDialog = require('./batchUploadDialog.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyBatchUploadDialog = handler.withInstall(batchUploadDialog.default);
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
+ require('../index.js');
8
9
  var index = require('../hyTooltip/index.js');
9
10
  var index$1 = require('../hyIcon/index.js');
10
11
 
@@ -123,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
123
124
  }, {
124
125
  default: vue.withCtx(() => [
125
126
  vue.renderSlot(_ctx.$slots, "content", {}, () => [
126
- vue.createElementVNode("div", { class: "flex items-center text-main px-3" }, [
127
+ vue.createElementVNode("div", { class: "h-full flex items-center text-main px-3" }, [
127
128
  !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", {}, () => [
128
129
  __props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
129
130
  key: 0,
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var button = require('./button.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyButton = handler.withInstall(button.default);