hy-dispatch-ui-v3 0.2.67 → 0.2.68

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 (280) hide show
  1. package/dist/tailwind.css +232 -20
  2. package/es/api/device.mjs +2 -3
  3. package/es/api/exportExcel.mjs +57 -0
  4. package/es/api/index.mjs +27 -16
  5. package/es/api/mapRail.mjs +31 -0
  6. package/es/api/organization.mjs +17 -9
  7. package/es/api/rule.mjs +30 -0
  8. package/es/api/sypct.mjs +2 -3
  9. package/es/api/task.mjs +2 -3
  10. package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +18 -19
  11. package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  12. package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +511 -0
  13. package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +169 -0
  14. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +318 -0
  15. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +123 -0
  16. package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +358 -0
  17. package/es/bussiness/hyElectronicFence/index.mjs +13 -0
  18. package/es/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  19. package/es/bussiness/hyMapAearchPlace/js/index.mjs +1 -1
  20. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +4 -6
  21. package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  22. package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.mjs +270 -0
  23. package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.mjs +251 -0
  24. package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.mjs +251 -0
  25. package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs +395 -0
  26. package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs +651 -0
  27. package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs +357 -0
  28. package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.mjs +261 -0
  29. package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs +360 -0
  30. package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.mjs +240 -0
  31. package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.mjs +258 -0
  32. package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.mjs +240 -0
  33. package/es/bussiness/hyRuleSetting/index.mjs +15 -0
  34. package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +65 -0
  35. package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +129 -0
  36. package/es/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  37. package/es/bussiness/index.mjs +2 -0
  38. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -13
  39. package/es/components/hyAudioPlayer/js/index.mjs +9 -14
  40. package/es/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  41. package/es/components/hyButton/button.vue.mjs +2 -2
  42. package/es/components/hyButton/style/button.scss +48 -74
  43. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +119 -0
  44. package/es/components/hyCheckboxGroup/index.mjs +7 -0
  45. package/es/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  46. package/es/components/hyConfigProvider/configProvider.vue.mjs +51 -38
  47. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +57 -62
  48. package/es/components/hyConfirmDialog/confirmMethod.mjs +24 -22
  49. package/es/components/hyCutter/cutter.vue.mjs +9 -23
  50. package/es/components/hyDatePicker/datePicker.vue.mjs +12 -17
  51. package/es/components/hyDialog/dialog.vue.mjs +5 -9
  52. package/es/components/hyDialog/style/dialog.scss +12 -13
  53. package/es/components/hyDrawer/drawer.vue.mjs +100 -0
  54. package/es/components/hyDrawer/index.mjs +7 -0
  55. package/es/components/hyDrawer/style/drawer.scss +0 -0
  56. package/es/components/hyForm/cpns/arrayItem.vue.mjs +10 -28
  57. package/es/components/hyForm/cpns/arrayItem2.vue.mjs +198 -0
  58. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -3
  59. package/es/components/hyForm/cpns/formItem.vue.mjs +65 -35
  60. package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
  61. package/es/components/hyForm/form.vue.mjs +56 -24
  62. package/es/components/hyForm/js/index.mjs +4 -8
  63. package/es/components/hyForm/js/useAppForm.mjs +4 -9
  64. package/es/components/hyForm/style/form.scss +4 -13
  65. package/es/components/hyIcon/icon.vue.mjs +3 -3
  66. package/es/components/hyIconBox/style/iconBox.scss +2 -6
  67. package/es/components/hyInput/inputSearch.vue.mjs +8 -11
  68. package/es/components/hyInput/style/inputSearch.scss +3 -0
  69. package/es/components/hyLoading/index.mjs +3 -5
  70. package/es/components/hyMap/js/index.mjs +29 -4
  71. package/es/components/hyMap/map.vue.mjs +17 -3
  72. package/es/components/hyMenu/style/menu.scss +5 -15
  73. package/es/components/hyNoPermissions/noPermissions.vue.mjs +3 -4
  74. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +3 -6
  75. package/es/components/hyOrgCascader/js/index.mjs +1 -5
  76. package/es/components/hyOrgCascader/orgCascader.vue.mjs +25 -11
  77. package/es/components/hyOrgCascader/style/orgCascader.scss +7 -0
  78. package/es/components/hyRadioGroup/radioGroup.vue.mjs +48 -41
  79. package/es/components/hyRadioGroup/style/radioGroup.scss +9 -0
  80. package/es/components/hySearch/cpns/searchItem.vue.mjs +33 -20
  81. package/es/components/hySearch/js/index.mjs +1 -4
  82. package/es/components/hySearch/js/useAppSearch.mjs +5 -10
  83. package/es/components/hySearch/search.vue.mjs +9 -16
  84. package/es/components/hySearch/style/search.scss +2 -0
  85. package/es/components/hyStatus/index.mjs +7 -0
  86. package/es/components/hyStatus/status.vue.mjs +110 -0
  87. package/es/components/hyStatus/style/status.scss +0 -0
  88. package/es/components/hyTable/cpns/columnSelect.vue.mjs +24 -28
  89. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +8 -9
  90. package/es/components/hyTable/cpns/headerItem.vue.mjs +2 -2
  91. package/es/components/hyTable/cpns/virtualTable.vue.mjs +18 -28
  92. package/es/components/hyTable/js/index.mjs +56 -59
  93. package/es/components/hyTable/js/useAppTable.mjs +3 -4
  94. package/es/components/hyTable/style/table.scss +8 -0
  95. package/es/components/hyTable/table.vue.mjs +35 -41
  96. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +4 -4
  97. package/es/components/hyTableForm/batchTableForm.vue.mjs +3 -7
  98. package/es/components/hyTableForm/js/index.mjs +2 -8
  99. package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -7
  100. package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
  101. package/es/components/hyTableForm/style/tableForm.scss +3 -2
  102. package/es/components/hyTableForm/tableForm.vue.mjs +90 -46
  103. package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
  104. package/es/components/hyTree/js/index.mjs +13 -40
  105. package/es/components/hyTree/style/index.css +1 -1
  106. package/es/components/hyTree/tree.vue.mjs +17 -16
  107. package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
  108. package/es/components/hyVideoPlayer/js/index.mjs +14 -23
  109. package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  110. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
  111. package/es/components/index.mjs +3 -0
  112. package/es/hooks/index.mjs +6 -2
  113. package/es/hooks/useAudioPlayerConfig.mjs +1 -3
  114. package/es/hooks/useBaseMainStore.mjs +29 -0
  115. package/es/hooks/useCurrentBus.mjs +20 -0
  116. package/es/hooks/useDialog.mjs +327 -0
  117. package/es/hooks/useExportFile.mjs +133 -0
  118. package/es/hooks/useGlobalConfig.mjs +10 -6
  119. package/es/hooks/useLocale.mjs +22 -12
  120. package/es/hooks/usePermissionMap.mjs +1 -3
  121. package/es/hooks/useResizeHandler.mjs +1 -4
  122. package/es/hooks/useResizeObserver.mjs +3 -1
  123. package/es/hooks/useSubscribe.mjs +2 -2
  124. package/es/hooks/useUserAvatarMap.mjs +1 -3
  125. package/es/hooks/useVideoPlayerConfig.mjs +1 -3
  126. package/es/index.mjs +11 -2
  127. package/es/locale/{en.mjs → en_US.mjs} +79 -4
  128. package/es/locale/index.mjs +2 -2
  129. package/es/locale/zh_CN.mjs +79 -2
  130. package/es/style/tailwind.scss +7 -3
  131. package/es/utils/adaptive.mjs +1 -3
  132. package/es/utils/form.mjs +7 -10
  133. package/es/utils/handler.mjs +4 -8
  134. package/es/utils/input.mjs +8 -9
  135. package/es/utils/map/hook/bigMap.mjs +14 -53
  136. package/es/utils/map/hook/gaode.mjs +5 -20
  137. package/es/utils/map/hook/leafletjs.mjs +23 -79
  138. package/es/utils/map/index.mjs +2 -8
  139. package/es/utils/map/js/webgis.mjs +12 -12
  140. package/es/version.mjs +1 -1
  141. package/lib/api/device.js +2 -3
  142. package/lib/api/exportExcel.js +62 -0
  143. package/lib/api/index.js +27 -16
  144. package/lib/api/mapRail.js +34 -0
  145. package/lib/api/organization.js +17 -8
  146. package/lib/api/rule.js +33 -0
  147. package/lib/api/sypct.js +2 -3
  148. package/lib/api/task.js +2 -3
  149. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
  150. package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  151. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
  152. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +173 -0
  153. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +322 -0
  154. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +127 -0
  155. package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
  156. package/lib/bussiness/hyElectronicFence/index.js +21 -0
  157. package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  158. package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
  159. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
  160. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  161. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
  162. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
  163. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
  164. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
  165. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
  166. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
  167. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
  168. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
  169. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
  170. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
  171. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
  172. package/lib/bussiness/hyRuleSetting/index.js +24 -0
  173. package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
  174. package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
  175. package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  176. package/lib/bussiness/index.js +21 -10
  177. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
  178. package/lib/components/hyAudioPlayer/js/index.js +9 -14
  179. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  180. package/lib/components/hyButton/button.vue.js +2 -2
  181. package/lib/components/hyButton/style/button.scss +48 -74
  182. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
  183. package/lib/components/hyCheckboxGroup/index.js +12 -0
  184. package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  185. package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
  186. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
  187. package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
  188. package/lib/components/hyCutter/cutter.vue.js +8 -22
  189. package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
  190. package/lib/components/hyDialog/dialog.vue.js +5 -9
  191. package/lib/components/hyDialog/style/dialog.scss +12 -13
  192. package/lib/components/hyDrawer/drawer.vue.js +104 -0
  193. package/lib/components/hyDrawer/index.js +12 -0
  194. package/lib/components/hyDrawer/style/drawer.scss +0 -0
  195. package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
  196. package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
  197. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
  198. package/lib/components/hyForm/cpns/formItem.vue.js +66 -36
  199. package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
  200. package/lib/components/hyForm/form.vue.js +51 -19
  201. package/lib/components/hyForm/js/index.js +3 -7
  202. package/lib/components/hyForm/js/useAppForm.js +4 -9
  203. package/lib/components/hyForm/style/form.scss +4 -13
  204. package/lib/components/hyIcon/icon.vue.js +3 -3
  205. package/lib/components/hyIconBox/style/iconBox.scss +2 -6
  206. package/lib/components/hyInput/inputSearch.vue.js +7 -10
  207. package/lib/components/hyInput/style/inputSearch.scss +3 -0
  208. package/lib/components/hyLoading/index.js +2 -4
  209. package/lib/components/hyMap/js/index.js +29 -4
  210. package/lib/components/hyMap/map.vue.js +17 -3
  211. package/lib/components/hyMenu/style/menu.scss +5 -15
  212. package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
  213. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
  214. package/lib/components/hyOrgCascader/js/index.js +1 -5
  215. package/lib/components/hyOrgCascader/orgCascader.vue.js +23 -9
  216. package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
  217. package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
  218. package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
  219. package/lib/components/hySearch/cpns/searchItem.vue.js +33 -20
  220. package/lib/components/hySearch/js/index.js +1 -4
  221. package/lib/components/hySearch/js/useAppSearch.js +5 -10
  222. package/lib/components/hySearch/search.vue.js +9 -16
  223. package/lib/components/hySearch/style/search.scss +2 -0
  224. package/lib/components/hyStatus/index.js +12 -0
  225. package/lib/components/hyStatus/status.vue.js +114 -0
  226. package/lib/components/hyStatus/style/status.scss +0 -0
  227. package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
  228. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
  229. package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
  230. package/lib/components/hyTable/cpns/virtualTable.vue.js +17 -27
  231. package/lib/components/hyTable/js/index.js +54 -57
  232. package/lib/components/hyTable/js/useAppTable.js +2 -3
  233. package/lib/components/hyTable/style/table.scss +8 -0
  234. package/lib/components/hyTable/table.vue.js +35 -41
  235. package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -4
  236. package/lib/components/hyTableForm/batchTableForm.vue.js +3 -7
  237. package/lib/components/hyTableForm/js/index.js +2 -8
  238. package/lib/components/hyTableForm/js/useAppTableForm.js +2 -7
  239. package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
  240. package/lib/components/hyTableForm/style/tableForm.scss +3 -2
  241. package/lib/components/hyTableForm/tableForm.vue.js +89 -45
  242. package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
  243. package/lib/components/hyTree/js/index.js +13 -40
  244. package/lib/components/hyTree/style/index.css +1 -1
  245. package/lib/components/hyTree/tree.vue.js +17 -16
  246. package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
  247. package/lib/components/hyVideoPlayer/js/index.js +14 -23
  248. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  249. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
  250. package/lib/components/index.js +46 -40
  251. package/lib/hooks/index.js +17 -0
  252. package/lib/hooks/useAudioPlayerConfig.js +1 -3
  253. package/lib/hooks/useBaseMainStore.js +32 -0
  254. package/lib/hooks/useCurrentBus.js +23 -0
  255. package/lib/hooks/useDialog.js +331 -0
  256. package/lib/hooks/useExportFile.js +135 -0
  257. package/lib/hooks/useGlobalConfig.js +10 -6
  258. package/lib/hooks/useLocale.js +25 -11
  259. package/lib/hooks/usePermissionMap.js +1 -3
  260. package/lib/hooks/useResizeHandler.js +1 -4
  261. package/lib/hooks/useResizeObserver.js +3 -1
  262. package/lib/hooks/useSubscribe.js +2 -1
  263. package/lib/hooks/useUserAvatarMap.js +1 -3
  264. package/lib/hooks/useVideoPlayerConfig.js +1 -3
  265. package/lib/index.js +107 -73
  266. package/lib/locale/{en.js → en_US.js} +79 -4
  267. package/lib/locale/index.js +3 -3
  268. package/lib/locale/zh_CN.js +79 -2
  269. package/lib/style/tailwind.scss +7 -3
  270. package/lib/utils/adaptive.js +1 -3
  271. package/lib/utils/form.js +6 -9
  272. package/lib/utils/handler.js +3 -7
  273. package/lib/utils/input.js +7 -8
  274. package/lib/utils/map/hook/bigMap.js +14 -53
  275. package/lib/utils/map/hook/gaode.js +5 -20
  276. package/lib/utils/map/hook/leafletjs.js +23 -79
  277. package/lib/utils/map/index.js +2 -8
  278. package/lib/utils/map/js/webgis.js +12 -12
  279. package/lib/version.js +1 -1
  280. package/package.json +3 -2
@@ -6,8 +6,10 @@ var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
8
  require('../../hooks/index.js');
9
+ require('../index.js');
9
10
  var index = require('./js/index.js');
10
11
  var useSubscribe = require('../../hooks/useSubscribe.js');
12
+ var index$1 = require('../hyIcon/index.js');
11
13
  var useLocale = require('../../hooks/useLocale.js');
12
14
 
13
15
  import "./style/orgCascader.scss";
@@ -32,8 +34,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
32
34
  placeholder: {
33
35
  type: String,
34
36
  default: () => {
35
- const { t } = useLocale.useLocale();
36
- return t("cascader.pleaseSelectDepartment");
37
+ return useLocale.$t("cascader.pleaseSelectDepartment");
37
38
  }
38
39
  },
39
40
  /*
@@ -87,7 +88,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
87
88
  "modelValue": { type: [Array, String, Number] },
88
89
  "modelModifiers": {}
89
90
  }),
90
- emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
91
+ emits: /* @__PURE__ */ vue.mergeModels(["change", "requesting", "fulfilled", "rejected"], ["update:modelValue"]),
91
92
  setup(__props, { expose: __expose, emit: __emit }) {
92
93
  const props = __props;
93
94
  const emits = __emit;
@@ -104,15 +105,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
104
105
  return target?.companyName;
105
106
  });
106
107
  function getCascaderData() {
107
- return new Promise(async (resolve, reject) => {
108
+ emits("requesting");
109
+ if (props.options && props.options.length) {
110
+ emits("fulfilled");
111
+ resolve();
112
+ return;
113
+ }
114
+ return new Promise(async (resolve2, reject) => {
108
115
  loading.value = true;
109
116
  try {
110
117
  cascaderOptions.value = [];
111
118
  const data = await index.getOrgTreeSimple();
112
119
  handlerData(data || []);
113
- resolve();
120
+ emits("fulfilled");
121
+ resolve2();
114
122
  } catch (err) {
115
123
  console.error(err);
124
+ emits("rejected");
116
125
  reject();
117
126
  }
118
127
  loading.value = false;
@@ -146,12 +155,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
146
155
  }
147
156
  function onVisibleChangeHandler(type) {
148
157
  focusType.value = type;
149
- onVisibleChange(type);
158
+ props.onVisibleChange && props.onVisibleChange(type);
150
159
  }
151
160
  if (props.defaultGetData) {
152
161
  getCascaderData();
153
- subOrgCascader(getCascaderData);
154
162
  }
163
+ subOrgCascader(getCascaderData);
155
164
  vue.watch(
156
165
  () => props.options,
157
166
  () => {
@@ -168,7 +177,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
168
177
  },
169
178
  { immediate: true, deep: true }
170
179
  );
171
- vue.onUnmounted(() => {
180
+ vue.onBeforeUnmount(() => {
172
181
  unsubOrgCascader(getCascaderData);
173
182
  });
174
183
  __expose({
@@ -205,6 +214,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
205
214
  filterable: "",
206
215
  "show-all-levels": false,
207
216
  "virtual-scroll": "",
217
+ "popper-class": "hy-org-cascader-popper",
208
218
  onChange: onChangeHanlder,
209
219
  onVisibleChange: ($event) => onVisibleChangeHandler($event)
210
220
  }, vue.createSlots({
@@ -239,7 +249,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
239
249
  key: 0,
240
250
  style: { "cursor": "pointer" }
241
251
  }, [
242
- vue.createElementVNode("i", { class: "el-icon-caret-bottom" }),
252
+ vue.createVNode(vue.unref(index$1.HyIcon), {
253
+ "svg-name": "dispatch-share1-prompt",
254
+ class: "!w-3 !h-3"
255
+ }),
243
256
  vue.renderSlot(_ctx.$slots, "default"),
244
257
  currentCompanyName.value ? (vue.openBlock(), vue.createElementBlock(
245
258
  "span",
@@ -268,6 +281,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
268
281
  filterable: "",
269
282
  "show-all-levels": false,
270
283
  "virtual-scroll": "",
284
+ "popper-class": "hy-org-cascader-popper",
271
285
  onChange: onChangeHanlder,
272
286
  onVisibleChange: __props.onVisibleChange
273
287
  }, vue.createSlots({
@@ -0,0 +1,7 @@
1
+ .hy-org-cascader-popper {
2
+ .hy-el-cascader-menu__list {
3
+ ul > li {
4
+ box-sizing: border-box;
5
+ }
6
+ }
7
+ }
@@ -22,6 +22,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
22
22
  size: {
23
23
  type: String,
24
24
  default: "default"
25
+ },
26
+ disabled: {
27
+ type: Boolean,
28
+ default: false
25
29
  }
26
30
  }, {
27
31
  "modelValue": {
@@ -45,6 +49,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
45
49
  };
46
50
  });
47
51
  function switchSelect(target) {
52
+ if (target[radioProps.value.disabled] || props.disabled) return;
48
53
  const value = target[radioProps.value.value];
49
54
  if (modelValue.value === value) return;
50
55
  modelValue.value = value;
@@ -72,51 +77,53 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
72
77
  __expose({});
73
78
  return (_ctx, _cache) => {
74
79
  return vue.openBlock(), vue.createElementBlock(
75
- "ul",
80
+ "div",
76
81
  {
77
- class: vue.normalizeClass(["w-full flex text-xs rounded border border-border box-border relative", [
78
- __props.size === "large" ? "h-[40px]" : __props.size === "small" ? "h-[24px]" : "h-[32px]",
82
+ class: vue.normalizeClass(["hy-radio-group", [
83
+ __props.size === "large" ? "h-[40px]" : __props.size === "small" ? "h-[30px]" : "h-[34px]",
79
84
  __props.size === "small" ? "text-xs" : "text-sm"
80
85
  ]])
81
86
  },
82
87
  [
83
- (vue.openBlock(true), vue.createElementBlock(
84
- vue.Fragment,
85
- null,
86
- vue.renderList(__props.options, (item, index) => {
87
- return vue.openBlock(), vue.createElementBlock("li", {
88
- key: index,
89
- class: "w-0 flex-1 flex items-center justify-center text-main user-select-none clickBox",
90
- onClick: ($event) => switchSelect(item, index, $event)
91
- }, [
92
- vue.renderSlot(_ctx.$slots, "default", {
93
- item,
94
- index
95
- }, () => [
96
- vue.createTextVNode(
97
- vue.toDisplayString(item[radioProps.value.label]),
98
- 1
99
- /* TEXT */
100
- )
101
- ])
102
- ], 8, ["onClick"]);
103
- }),
104
- 128
105
- /* KEYED_FRAGMENT */
106
- )),
107
- selectIndex.value >= 0 ? (vue.openBlock(), vue.createElementBlock(
108
- "li",
109
- {
110
- key: 0,
111
- ref_key: "sliderRef",
112
- ref: sliderRef,
113
- class: "slider rounded box-border absolute h-full top-0 left-0 z-0 duration-500 border border-theme shadow-[0_0_6px_0] shadow-theme",
114
- style: vue.normalizeStyle([{ width: `calc(100% / ${__props.options.length})` }, { "background": "linear-gradient(180deg, #2a4968 0%, #0ea0bb 100%)" }])
115
- },
116
- null,
117
- 4
118
- /* STYLE */
119
- )) : vue.createCommentVNode("v-if", true)
88
+ vue.createElementVNode("div", { class: "w-full h-full inline-flex box-border relative" }, [
89
+ (vue.openBlock(true), vue.createElementBlock(
90
+ vue.Fragment,
91
+ null,
92
+ vue.renderList(__props.options, (item, index) => {
93
+ return vue.openBlock(), vue.createElementBlock("div", {
94
+ key: index,
95
+ class: vue.normalizeClass(["w-0 flex-1 h-full flex items-center justify-center text-main whitespace-nowrap user-select-none relative z-[2]", [item[radioProps.value.disabled] || __props.disabled ? "cursor-not-allowed opacity-90" : "cursor-pointer"]]),
96
+ onClick: ($event) => switchSelect(item, index, $event)
97
+ }, [
98
+ vue.renderSlot(_ctx.$slots, "default", {
99
+ item,
100
+ index
101
+ }, () => [
102
+ vue.createTextVNode(
103
+ vue.toDisplayString(item[radioProps.value.label]),
104
+ 1
105
+ /* TEXT */
106
+ )
107
+ ])
108
+ ], 10, ["onClick"]);
109
+ }),
110
+ 128
111
+ /* KEYED_FRAGMENT */
112
+ )),
113
+ selectIndex.value >= 0 ? (vue.openBlock(), vue.createElementBlock(
114
+ "div",
115
+ {
116
+ key: 0,
117
+ ref_key: "sliderRef",
118
+ ref: sliderRef,
119
+ class: "slider rounded-[2px] box-border absolute h-full top-0 left-0 z-0 duration-500 border border-theme",
120
+ style: vue.normalizeStyle([{ width: `calc(100% / ${__props.options.length})` }, { "background": "linear-gradient(180deg, #2a4968 0%, #0ea0bb 100%)" }])
121
+ },
122
+ null,
123
+ 4
124
+ /* STYLE */
125
+ )) : vue.createCommentVNode("v-if", true)
126
+ ])
120
127
  ],
121
128
  2
122
129
  /* CLASS */
@@ -0,0 +1,9 @@
1
+ .hy-radio-group {
2
+ width: 100%;
3
+ display: inline-block;
4
+ font-size: 12px;
5
+ border: 1px solid rgba(var(--hy-border));
6
+ border-radius: 4px;
7
+ padding: 3px;
8
+ box-sizing: border-box;
9
+ }
@@ -86,19 +86,14 @@ const _sfc_main = {
86
86
  return new Promise(async (resolve, reject) => {
87
87
  if (props.column.optionsFn) {
88
88
  if (!props.column.optionsFn) return;
89
- props.column.optionsLoading = true;
90
- props.column.optionsError = "";
91
- props.column.attrs.options = [];
89
+ onRequesting();
92
90
  if (!(isMountedLoad && props.column.isDefaultGetData === false)) {
93
91
  try {
94
- props.column.attrs.options = await props.column.optionsFn(
95
- props.column,
96
- props.model
97
- );
98
- props.column.optionsError = "";
92
+ const options = await props.column.optionsFn(props.column, props.model);
93
+ onFulfilled(options);
99
94
  resolve();
100
95
  } catch (err) {
101
- props.column.optionsError = "error";
96
+ onRejected();
102
97
  console.error(err);
103
98
  reject();
104
99
  }
@@ -107,13 +102,13 @@ const _sfc_main = {
107
102
  }
108
103
  } else if (props.column.type === "org-cascader") {
109
104
  if (componentRef.value) {
110
- props.column.optionsLoading = true;
111
- props.column.optionsError = "";
112
105
  try {
106
+ onRequesting();
113
107
  await componentRef.value.getData();
108
+ onFulfilled();
114
109
  resolve();
115
110
  } catch {
116
- props.column.optionsError = "error";
111
+ onRejected();
117
112
  reject();
118
113
  }
119
114
  } else {
@@ -125,6 +120,21 @@ const _sfc_main = {
125
120
  props.column.optionsLoading = false;
126
121
  });
127
122
  }
123
+ function onRequesting() {
124
+ props.column.optionsLoading = true;
125
+ props.column.optionsError = "";
126
+ props.column.attrs.options = [];
127
+ }
128
+ function onFulfilled(options = []) {
129
+ props.column.optionsLoading = false;
130
+ props.column.optionsError = "";
131
+ props.column.attrs.options = options;
132
+ }
133
+ function onRejected() {
134
+ props.column.optionsLoading = false;
135
+ props.column.optionsError = "error";
136
+ props.column.attrs.options = [];
137
+ }
128
138
  function getOptionsHandler(props2, column) {
129
139
  if (props2.column.optionsLoading) {
130
140
  return [];
@@ -225,7 +235,7 @@ const _sfc_main = {
225
235
  vue.createElementVNode(
226
236
  "div",
227
237
  {
228
- class: vue.normalizeClass(["flex items-center text-auxiliary text-sm whitespace-nowrap", {
238
+ class: vue.normalizeClass(["flex items-center text-auxiliary text-sm whitespace-nowrap box-border", {
229
239
  "border-r border-border px-3": __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] || vue.unref(form.columnLabelHandler)(__props.column, props.model)
230
240
  }])
231
241
  },
@@ -357,12 +367,7 @@ const _sfc_main = {
357
367
  { key: 4 },
358
368
  [
359
369
  vue.createCommentVNode(" \u65E5\u671F\u9009\u62E9\u6846 "),
360
- [
361
- "datetimerange",
362
- "daterange",
363
- "monthrange",
364
- "yearrange"
365
- ].includes(columnAttrs.value?.type) && vue.unref(is.isArray)(__props.column.field) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyDatePicker), vue.mergeProps({
370
+ ["datetimerange", "daterange", "monthrange", "yearrange"].includes(columnAttrs.value?.type) && vue.unref(is.isArray)(__props.column.field) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyDatePicker), vue.mergeProps({
366
371
  key: 0,
367
372
  ref_key: "componentRef",
368
373
  ref: componentRef,
@@ -371,6 +376,7 @@ const _sfc_main = {
371
376
  end: bindValue2.value,
372
377
  "onUpdate:end": ($event) => bindValue2.value = $event,
373
378
  "is-range": true,
379
+ class: "box-border",
374
380
  style: { "width": "100%" },
375
381
  timeRangeFill: __props.column.timeRangeFill
376
382
  }, columnAttrs.value, {
@@ -383,6 +389,7 @@ const _sfc_main = {
383
389
  modelValue: bindValue.value,
384
390
  "onUpdate:modelValue": ($event) => bindValue.value = $event,
385
391
  "is-range": false,
392
+ class: "box-border",
386
393
  style: { "width": "100%" },
387
394
  timeRangeFill: __props.column.timeRangeFill
388
395
  }, columnAttrs.value, {
@@ -406,6 +413,7 @@ const _sfc_main = {
406
413
  end: bindValue2.value,
407
414
  "onUpdate:end": ($event) => bindValue2.value = $event,
408
415
  "is-range": true,
416
+ class: "box-border",
409
417
  style: { "width": "100%" }
410
418
  }, columnAttrs.value, {
411
419
  disabled: vue.unref(index.isDisabled)(props, __props.column),
@@ -417,6 +425,7 @@ const _sfc_main = {
417
425
  modelValue: bindValue.value,
418
426
  "onUpdate:modelValue": ($event) => bindValue.value = $event,
419
427
  "is-range": false,
428
+ class: "box-border",
420
429
  style: { "width": "100%" }
421
430
  }, columnAttrs.value, {
422
431
  disabled: vue.unref(index.isDisabled)(props, __props.column),
@@ -437,6 +446,10 @@ const _sfc_main = {
437
446
  "onUpdate:modelValue": ($event) => bindValue.value = $event
438
447
  }, columnAttrs.value, {
439
448
  disabled: vue.unref(index.isDisabled)(props, __props.column),
449
+ defaultGetData: false,
450
+ onRequesting,
451
+ onFulfilled,
452
+ onRejected,
440
453
  onChange: onChangeHandler,
441
454
  onVisibleChange
442
455
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
@@ -505,7 +518,7 @@ const _sfc_main = {
505
518
  vue.renderList(__props.column.timeRangeOptions, (item, index$1) => {
506
519
  return vue.openBlock(), vue.createElementBlock("div", {
507
520
  key: index$1,
508
- class: vue.normalizeClass(["border-l border-border px-[10px] cursor-pointer", {
521
+ class: vue.normalizeClass(["border-l border-border px-[10px] cursor-pointer box-border", {
509
522
  "bg-[rgba(var(--hy-theme),0.2)] text-theme font-bold": vue.unref(index.isSelectedTimeRange)(__props.column, item, __props.model)
510
523
  }]),
511
524
  onClick: ($event) => onTimeRangeClickHandler(__props.column, item)
@@ -50,10 +50,7 @@ function isEmptyValue(e) {
50
50
  return is.isEmpty(e) || is.isArray(e) && !e.length;
51
51
  }
52
52
  function useShrink(props, formItemWrapper) {
53
- const { removeResize } = useResizeObserver.useResizeObserver(
54
- formItemWrapper,
55
- shrinkResizeHandler
56
- );
53
+ const { removeResize } = useResizeObserver.useResizeObserver(formItemWrapper, shrinkResizeHandler);
57
54
  const isExpand = vue.ref(false);
58
55
  const showShrink = vue.ref(true);
59
56
  const containerHeight = vue.ref(getContainerPickUpHeight());
@@ -3,8 +3,8 @@
3
3
  var vue = require('vue');
4
4
  require('../../../hooks/index.js');
5
5
  require('../../../utils/index.js');
6
- var useLocale = require('../../../hooks/useLocale.js');
7
6
  var is = require('../../../utils/is.js');
7
+ var useLocale = require('../../../hooks/useLocale.js');
8
8
  var form = require('../../../utils/form.js');
9
9
  var handler = require('../../../utils/handler.js');
10
10
 
@@ -34,7 +34,6 @@ const genColumnWidth = (config) => {
34
34
  return { width, inputWidth };
35
35
  };
36
36
  const timeRangeOptionsHandler = (config) => {
37
- const { t } = useLocale.useLocale();
38
37
  const { timeRangeOptions } = config || {};
39
38
  if (!timeRangeOptions?.length) return timeRangeOptions;
40
39
  return timeRangeOptions.reduce((list, item) => {
@@ -44,15 +43,15 @@ const timeRangeOptionsHandler = (config) => {
44
43
  if (!label) {
45
44
  switch (unit) {
46
45
  case "year":
47
- label = `${value} ` + t(isPlural ? "hy.years" : "hy.year");
46
+ label = `${value} ` + useLocale.$t(isPlural ? "hy.years" : "hy.year");
48
47
  break;
49
48
  case "month":
50
- label = `${value} ` + t(isPlural ? "hy.months" : "hy.month");
49
+ label = `${value} ` + useLocale.$t(isPlural ? "hy.months" : "hy.month");
51
50
  break;
52
51
  case "day":
53
52
  default:
54
53
  unit = "day";
55
- label = value === 1 ? t("hy.today") : `${value} ` + t(isPlural ? "hy.days" : "hy.day");
54
+ label = value === 1 ? useLocale.$t("hy.today") : `${value} ` + useLocale.$t(isPlural ? "hy.days" : "hy.day");
56
55
  }
57
56
  }
58
57
  list.push({ ...item, label, unit });
@@ -109,11 +108,7 @@ const resetAppSearchValue = (columns = [], obj = {}) => {
109
108
  const value = handler.funRunHandler(item.defaultValue);
110
109
  if (Array.isArray(item.prop)) {
111
110
  for (let i = 0; i < item.prop.length; i++) {
112
- form.genValueByProp(
113
- obj,
114
- item.prop[i],
115
- Array.isArray(value) ? value[i] : void 0
116
- );
111
+ form.genValueByProp(obj, item.prop[i], Array.isArray(value) ? value[i] : void 0);
117
112
  }
118
113
  } else {
119
114
  form.genValueByProp(obj, item.prop, value);
@@ -11,9 +11,9 @@ require('../index.js');
11
11
  var searchItem = require('./cpns/searchItem.vue.js');
12
12
  var index = require('./js/index.js');
13
13
  var useAppSearch = require('./js/useAppSearch.js');
14
- var useLocale = require('../../hooks/useLocale.js');
15
14
  var is = require('../../utils/is.js');
16
15
  var index$1 = require('../hyIcon/index.js');
16
+ var useLocale = require('../../hooks/useLocale.js');
17
17
 
18
18
  import "./style/search.scss";
19
19
 
@@ -55,7 +55,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
55
55
  setup(__props, { expose: __expose, emit: __emit }) {
56
56
  const props = __props;
57
57
  const emits = __emit;
58
- const { t } = useLocale.useLocale();
59
58
  const formItemWrapper = vue.useTemplateRef("formItemWrapper");
60
59
  const { showShrink, isExpand, containerHeight, switchShrink, shrinkDestroy } = index.useShrink(props, formItemWrapper);
61
60
  const formColumnMap = vue.computed(() => {
@@ -95,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
95
94
  if (is.isObject(oldVal)) {
96
95
  count += getFilterCount(newVal, oldVal, targetProp);
97
96
  } else if (is.isArray(oldVal)) {
98
- if (oldVal.length > 0 && !oldVal.every((t2, i) => t2 === newVal[i])) {
97
+ if (oldVal.length > 0 && !oldVal.every((t, i) => t === newVal[i])) {
99
98
  keySet2.add(vue.unref(formColumnMap).get(key).key);
100
99
  }
101
100
  } else if (index.isEmptyValue(oldVal) ? !index.isEmptyValue(newVal) : oldVal !== newVal) {
@@ -133,15 +132,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
133
132
  };
134
133
  function filterFields(fields2 = [], keys = []) {
135
134
  const filterKeys = keys.map((prop) => is.isArray(prop) ? prop.join(".") : prop);
136
- return filterKeys.length ? fields2.filter(
137
- (field) => field.propString && filterKeys.includes(field.propString)
138
- ) : fields2;
135
+ return filterKeys.length ? fields2.filter((field) => field.propString && filterKeys.includes(field.propString)) : fields2;
139
136
  }
140
137
  async function obtainOptionsFields(keys, isMountedLoad = false) {
141
138
  const filteredFields = filterFields(fields, keys);
142
- await Promise.allSettled(
143
- filteredFields.map((field) => field.obtainOptions(isMountedLoad))
144
- );
139
+ await Promise.allSettled(filteredFields.map((field) => field.obtainOptions(isMountedLoad)));
145
140
  }
146
141
  async function getOptions(isMountedLoad = false) {
147
142
  await obtainOptionsFields([], isMountedLoad);
@@ -152,9 +147,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
152
147
  emitOptionsStatus();
153
148
  }
154
149
  async function getOptionsError() {
155
- const filteredFields = fields.filter(
156
- (field) => field.propString && field.optionsError
157
- );
150
+ const filteredFields = fields.filter((field) => field.propString && field.optionsError);
158
151
  await Promise.allSettled(filteredFields.map((field) => field.obtainOptions()));
159
152
  emitOptionsStatus();
160
153
  }
@@ -210,7 +203,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
210
203
  vue.createElementVNode(
211
204
  "span",
212
205
  null,
213
- vue.toDisplayString(vue.unref(t)("hy.filter")),
206
+ vue.toDisplayString(vue.unref(useLocale.$t)("hy.filter")),
214
207
  1
215
208
  /* TEXT */
216
209
  ),
@@ -220,7 +213,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
220
213
  [
221
214
  vue.createElementVNode(
222
215
  "span",
223
- { class: "bg-theme02 text-theme font-bold leading-4 px-[6px]" },
216
+ { class: "bg-theme02 text-theme font-bold leading-4 px-[6px] box-border" },
224
217
  vue.toDisplayString(filterCount.value),
225
218
  1
226
219
  /* TEXT */
@@ -231,7 +224,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
231
224
  class: "text-auxiliary cursor-pointer",
232
225
  onClick: onResetHandler
233
226
  },
234
- vue.toDisplayString(vue.unref(t)("hy.reset")),
227
+ vue.toDisplayString(vue.unref(useLocale.$t)("hy.reset")),
235
228
  1
236
229
  /* TEXT */
237
230
  )
@@ -247,7 +240,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
247
240
  vue.createElementVNode(
248
241
  "span",
249
242
  { class: "text-auxiliary" },
250
- vue.toDisplayString(vue.unref(isExpand) ? vue.unref(t)("hy.packUp") : vue.unref(t)("hy.expand")),
243
+ vue.toDisplayString(vue.unref(isExpand) ? vue.unref(useLocale.$t)("hy.packUp") : vue.unref(useLocale.$t)("hy.expand")),
251
244
  1
252
245
  /* TEXT */
253
246
  ),
@@ -6,6 +6,7 @@
6
6
  opacity: 1;
7
7
  transition: all 0.3s linear;
8
8
  overflow: hidden;
9
+ box-sizing: border-box;
9
10
  &.hy-search-hidden {
10
11
  padding-top: 0;
11
12
  padding-bottom: 0;
@@ -34,6 +35,7 @@
34
35
  gap: 16px;
35
36
  position: relative;
36
37
  padding: 1px;
38
+ box-sizing: border-box;
37
39
  .hy-el-form-item {
38
40
  margin-bottom: 0;
39
41
  &.hidden {
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var status = require('./status.vue.js');
6
+ require('../../utils/index.js');
7
+ var handler = require('../../utils/handler.js');
8
+
9
+ const HyStatus = handler.withInstall(status.default);
10
+
11
+ exports.HyStatus = HyStatus;
12
+ exports.default = HyStatus;