hy-dispatch-ui-v3 0.2.67 → 0.2.69

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 (282) 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 +178 -0
  14. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +316 -0
  15. package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +119 -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/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -0
  20. package/es/bussiness/hyMapAearchPlace/js/index.mjs +1 -1
  21. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +4 -6
  22. package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  23. package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.mjs +270 -0
  24. package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.mjs +251 -0
  25. package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.mjs +251 -0
  26. package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs +395 -0
  27. package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs +651 -0
  28. package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs +357 -0
  29. package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.mjs +261 -0
  30. package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs +360 -0
  31. package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.mjs +240 -0
  32. package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.mjs +258 -0
  33. package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.mjs +240 -0
  34. package/es/bussiness/hyRuleSetting/index.mjs +15 -0
  35. package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +65 -0
  36. package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +129 -0
  37. package/es/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  38. package/es/bussiness/index.mjs +2 -0
  39. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -13
  40. package/es/components/hyAudioPlayer/js/index.mjs +9 -14
  41. package/es/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  42. package/es/components/hyButton/button.vue.mjs +2 -2
  43. package/es/components/hyButton/style/button.scss +48 -74
  44. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +119 -0
  45. package/es/components/hyCheckboxGroup/index.mjs +7 -0
  46. package/es/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  47. package/es/components/hyConfigProvider/configProvider.vue.mjs +51 -38
  48. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +57 -62
  49. package/es/components/hyConfirmDialog/confirmMethod.mjs +24 -22
  50. package/es/components/hyCutter/cutter.vue.mjs +9 -23
  51. package/es/components/hyDatePicker/datePicker.vue.mjs +12 -17
  52. package/es/components/hyDialog/dialog.vue.mjs +5 -9
  53. package/es/components/hyDialog/style/dialog.scss +12 -13
  54. package/es/components/hyDrawer/drawer.vue.mjs +100 -0
  55. package/es/components/hyDrawer/index.mjs +7 -0
  56. package/es/components/hyDrawer/style/drawer.scss +0 -0
  57. package/es/components/hyForm/cpns/arrayItem.vue.mjs +10 -28
  58. package/es/components/hyForm/cpns/arrayItem2.vue.mjs +198 -0
  59. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -3
  60. package/es/components/hyForm/cpns/formItem.vue.mjs +75 -37
  61. package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
  62. package/es/components/hyForm/form.vue.mjs +58 -24
  63. package/es/components/hyForm/js/index.mjs +4 -8
  64. package/es/components/hyForm/js/useAppForm.mjs +5 -9
  65. package/es/components/hyForm/style/form.scss +4 -13
  66. package/es/components/hyIcon/icon.vue.mjs +3 -3
  67. package/es/components/hyIconBox/style/iconBox.scss +2 -6
  68. package/es/components/hyInput/inputSearch.vue.mjs +8 -11
  69. package/es/components/hyInput/style/inputSearch.scss +3 -0
  70. package/es/components/hyLoading/index.mjs +3 -5
  71. package/es/components/hyMap/js/index.mjs +29 -4
  72. package/es/components/hyMap/map.vue.mjs +17 -3
  73. package/es/components/hyMenu/style/menu.scss +5 -15
  74. package/es/components/hyNoPermissions/noPermissions.vue.mjs +3 -4
  75. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +3 -6
  76. package/es/components/hyOrgCascader/js/index.mjs +1 -5
  77. package/es/components/hyOrgCascader/orgCascader.vue.mjs +25 -11
  78. package/es/components/hyOrgCascader/style/orgCascader.scss +7 -0
  79. package/es/components/hyRadioGroup/radioGroup.vue.mjs +48 -41
  80. package/es/components/hyRadioGroup/style/radioGroup.scss +9 -0
  81. package/es/components/hySearch/cpns/searchItem.vue.mjs +33 -20
  82. package/es/components/hySearch/js/index.mjs +1 -4
  83. package/es/components/hySearch/js/useAppSearch.mjs +6 -10
  84. package/es/components/hySearch/search.vue.mjs +9 -16
  85. package/es/components/hySearch/style/search.scss +2 -0
  86. package/es/components/hyStatus/index.mjs +7 -0
  87. package/es/components/hyStatus/status.vue.mjs +110 -0
  88. package/es/components/hyStatus/style/status.scss +0 -0
  89. package/es/components/hyTable/cpns/columnSelect.vue.mjs +24 -28
  90. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +8 -9
  91. package/es/components/hyTable/cpns/headerItem.vue.mjs +2 -2
  92. package/es/components/hyTable/cpns/virtualTable.vue.mjs +18 -28
  93. package/es/components/hyTable/js/index.mjs +56 -59
  94. package/es/components/hyTable/js/useAppTable.mjs +3 -4
  95. package/es/components/hyTable/style/table.scss +8 -0
  96. package/es/components/hyTable/table.vue.mjs +35 -41
  97. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +4 -4
  98. package/es/components/hyTableForm/batchTableForm.vue.mjs +3 -7
  99. package/es/components/hyTableForm/js/index.mjs +3 -11
  100. package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -7
  101. package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
  102. package/es/components/hyTableForm/style/tableForm.scss +3 -2
  103. package/es/components/hyTableForm/tableForm.vue.mjs +90 -46
  104. package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
  105. package/es/components/hyTree/js/index.mjs +13 -40
  106. package/es/components/hyTree/style/index.css +1 -1
  107. package/es/components/hyTree/tree.vue.mjs +17 -16
  108. package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
  109. package/es/components/hyVideoPlayer/js/index.mjs +14 -23
  110. package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  111. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
  112. package/es/components/index.mjs +3 -0
  113. package/es/hooks/index.mjs +6 -2
  114. package/es/hooks/useAudioPlayerConfig.mjs +1 -3
  115. package/es/hooks/useBaseMainStore.mjs +29 -0
  116. package/es/hooks/useCurrentBus.mjs +20 -0
  117. package/es/hooks/useDialog.mjs +327 -0
  118. package/es/hooks/useExportFile.mjs +133 -0
  119. package/es/hooks/useGlobalConfig.mjs +10 -6
  120. package/es/hooks/useLocale.mjs +22 -12
  121. package/es/hooks/usePermissionMap.mjs +1 -3
  122. package/es/hooks/useResizeHandler.mjs +1 -4
  123. package/es/hooks/useResizeObserver.mjs +3 -1
  124. package/es/hooks/useSubscribe.mjs +2 -2
  125. package/es/hooks/useUserAvatarMap.mjs +1 -3
  126. package/es/hooks/useVideoPlayerConfig.mjs +1 -3
  127. package/es/index.mjs +11 -2
  128. package/es/locale/{en.mjs → en_US.mjs} +81 -5
  129. package/es/locale/index.mjs +2 -2
  130. package/es/locale/zh_CN.mjs +81 -3
  131. package/es/style/tailwind.scss +7 -3
  132. package/es/utils/adaptive.mjs +1 -3
  133. package/es/utils/form.mjs +19 -12
  134. package/es/utils/handler.mjs +4 -8
  135. package/es/utils/input.mjs +8 -9
  136. package/es/utils/map/hook/bigMap.mjs +14 -53
  137. package/es/utils/map/hook/gaode.mjs +5 -20
  138. package/es/utils/map/hook/leafletjs.mjs +23 -79
  139. package/es/utils/map/index.mjs +2 -8
  140. package/es/utils/map/js/webgis.mjs +12 -12
  141. package/es/version.mjs +1 -1
  142. package/lib/api/device.js +2 -3
  143. package/lib/api/exportExcel.js +62 -0
  144. package/lib/api/index.js +27 -16
  145. package/lib/api/mapRail.js +34 -0
  146. package/lib/api/organization.js +17 -8
  147. package/lib/api/rule.js +33 -0
  148. package/lib/api/sypct.js +2 -3
  149. package/lib/api/task.js +2 -3
  150. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
  151. package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  152. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
  153. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +182 -0
  154. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +320 -0
  155. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +123 -0
  156. package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
  157. package/lib/bussiness/hyElectronicFence/index.js +21 -0
  158. package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  159. package/lib/bussiness/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -0
  160. package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
  161. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
  162. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  163. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
  164. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
  165. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
  166. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
  167. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
  168. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
  169. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
  170. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
  171. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
  172. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
  173. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
  174. package/lib/bussiness/hyRuleSetting/index.js +24 -0
  175. package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
  176. package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
  177. package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  178. package/lib/bussiness/index.js +21 -10
  179. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
  180. package/lib/components/hyAudioPlayer/js/index.js +9 -14
  181. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  182. package/lib/components/hyButton/button.vue.js +2 -2
  183. package/lib/components/hyButton/style/button.scss +48 -74
  184. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
  185. package/lib/components/hyCheckboxGroup/index.js +12 -0
  186. package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  187. package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
  188. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
  189. package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
  190. package/lib/components/hyCutter/cutter.vue.js +8 -22
  191. package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
  192. package/lib/components/hyDialog/dialog.vue.js +5 -9
  193. package/lib/components/hyDialog/style/dialog.scss +12 -13
  194. package/lib/components/hyDrawer/drawer.vue.js +104 -0
  195. package/lib/components/hyDrawer/index.js +12 -0
  196. package/lib/components/hyDrawer/style/drawer.scss +0 -0
  197. package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
  198. package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
  199. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
  200. package/lib/components/hyForm/cpns/formItem.vue.js +76 -38
  201. package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
  202. package/lib/components/hyForm/form.vue.js +53 -19
  203. package/lib/components/hyForm/js/index.js +3 -7
  204. package/lib/components/hyForm/js/useAppForm.js +5 -9
  205. package/lib/components/hyForm/style/form.scss +4 -13
  206. package/lib/components/hyIcon/icon.vue.js +3 -3
  207. package/lib/components/hyIconBox/style/iconBox.scss +2 -6
  208. package/lib/components/hyInput/inputSearch.vue.js +7 -10
  209. package/lib/components/hyInput/style/inputSearch.scss +3 -0
  210. package/lib/components/hyLoading/index.js +2 -4
  211. package/lib/components/hyMap/js/index.js +29 -4
  212. package/lib/components/hyMap/map.vue.js +17 -3
  213. package/lib/components/hyMenu/style/menu.scss +5 -15
  214. package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
  215. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
  216. package/lib/components/hyOrgCascader/js/index.js +1 -5
  217. package/lib/components/hyOrgCascader/orgCascader.vue.js +23 -9
  218. package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
  219. package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
  220. package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
  221. package/lib/components/hySearch/cpns/searchItem.vue.js +33 -20
  222. package/lib/components/hySearch/js/index.js +1 -4
  223. package/lib/components/hySearch/js/useAppSearch.js +6 -10
  224. package/lib/components/hySearch/search.vue.js +9 -16
  225. package/lib/components/hySearch/style/search.scss +2 -0
  226. package/lib/components/hyStatus/index.js +12 -0
  227. package/lib/components/hyStatus/status.vue.js +114 -0
  228. package/lib/components/hyStatus/style/status.scss +0 -0
  229. package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
  230. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
  231. package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
  232. package/lib/components/hyTable/cpns/virtualTable.vue.js +17 -27
  233. package/lib/components/hyTable/js/index.js +54 -57
  234. package/lib/components/hyTable/js/useAppTable.js +2 -3
  235. package/lib/components/hyTable/style/table.scss +8 -0
  236. package/lib/components/hyTable/table.vue.js +35 -41
  237. package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -4
  238. package/lib/components/hyTableForm/batchTableForm.vue.js +3 -7
  239. package/lib/components/hyTableForm/js/index.js +3 -11
  240. package/lib/components/hyTableForm/js/useAppTableForm.js +2 -7
  241. package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
  242. package/lib/components/hyTableForm/style/tableForm.scss +3 -2
  243. package/lib/components/hyTableForm/tableForm.vue.js +89 -45
  244. package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
  245. package/lib/components/hyTree/js/index.js +13 -40
  246. package/lib/components/hyTree/style/index.css +1 -1
  247. package/lib/components/hyTree/tree.vue.js +17 -16
  248. package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
  249. package/lib/components/hyVideoPlayer/js/index.js +14 -23
  250. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  251. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
  252. package/lib/components/index.js +46 -40
  253. package/lib/hooks/index.js +17 -0
  254. package/lib/hooks/useAudioPlayerConfig.js +1 -3
  255. package/lib/hooks/useBaseMainStore.js +32 -0
  256. package/lib/hooks/useCurrentBus.js +23 -0
  257. package/lib/hooks/useDialog.js +331 -0
  258. package/lib/hooks/useExportFile.js +135 -0
  259. package/lib/hooks/useGlobalConfig.js +10 -6
  260. package/lib/hooks/useLocale.js +25 -11
  261. package/lib/hooks/usePermissionMap.js +1 -3
  262. package/lib/hooks/useResizeHandler.js +1 -4
  263. package/lib/hooks/useResizeObserver.js +3 -1
  264. package/lib/hooks/useSubscribe.js +2 -1
  265. package/lib/hooks/useUserAvatarMap.js +1 -3
  266. package/lib/hooks/useVideoPlayerConfig.js +1 -3
  267. package/lib/index.js +107 -73
  268. package/lib/locale/{en.js → en_US.js} +81 -5
  269. package/lib/locale/index.js +3 -3
  270. package/lib/locale/zh_CN.js +81 -3
  271. package/lib/style/tailwind.scss +7 -3
  272. package/lib/utils/adaptive.js +1 -3
  273. package/lib/utils/form.js +17 -10
  274. package/lib/utils/handler.js +3 -7
  275. package/lib/utils/input.js +7 -8
  276. package/lib/utils/map/hook/bigMap.js +14 -53
  277. package/lib/utils/map/hook/gaode.js +5 -20
  278. package/lib/utils/map/hook/leafletjs.js +23 -79
  279. package/lib/utils/map/index.js +2 -8
  280. package/lib/utils/map/js/webgis.js +12 -12
  281. package/lib/version.js +1 -1
  282. package/package.json +3 -2
@@ -37,7 +37,7 @@
37
37
  background: rgba(94, 157, 180, 0.32);
38
38
  border: 1px solid rgba(94, 157, 180, 1);
39
39
  box-shadow: 0px 0px 0px 2px rgba(94, 157, 180, 0.5);
40
-
40
+
41
41
  .hy-button__border {
42
42
  background: linear-gradient(
43
43
  90deg,
@@ -46,27 +46,22 @@
46
46
  rgba(94, 157, 180, 0.4) 100%
47
47
  );
48
48
  }
49
-
49
+
50
50
  .hy-button__inner {
51
51
  background: #003a48;
52
52
  box-shadow:
53
53
  inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
54
54
  inset 0 0 2px 0 rgba(0, 147, 157, 0.5);
55
55
  }
56
-
56
+
57
57
  .hy-button__text {
58
58
  color: #fff;
59
59
  }
60
-
60
+
61
61
  .hy-button__mask {
62
- background: radial-gradient(
63
- ellipse at center bottom,
64
- #7ebbd2 0%,
65
- rgb(17, 108, 114) 30%,
66
- transparent 60%
67
- );
62
+ background: radial-gradient(ellipse at center bottom, #7ebbd2 0%, rgb(17, 108, 114) 30%, transparent 60%);
68
63
  }
69
-
64
+
70
65
  &:hover .hy-button__inner {
71
66
  box-shadow:
72
67
  inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
@@ -74,7 +69,7 @@
74
69
  inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
75
70
  inset 0 0 2px 0 rgba(0, 147, 157, 0.5);
76
71
  }
77
-
72
+
78
73
  &:disabled .hy-button__border,
79
74
  &.is-disabled .hy-button__border {
80
75
  background: linear-gradient(
@@ -84,7 +79,7 @@
84
79
  rgba(94, 157, 180, 0.18) 100%
85
80
  );
86
81
  }
87
-
82
+
88
83
  &:disabled .hy-button__inner,
89
84
  &.is-disabled .hy-button__inner {
90
85
  background: #3e5a64;
@@ -92,18 +87,18 @@
92
87
  inset 0 0 4px 1px rgba(0, 138, 157, 0.2),
93
88
  inset 0 0 2px 0 rgba(0, 147, 157, 0.16);
94
89
  }
95
-
90
+
96
91
  &:disabled .hy-button__text,
97
92
  &.is-disabled .hy-button__text {
98
93
  color: rgba(255, 255, 255, 0.68);
99
94
  }
100
95
  }
101
-
96
+
102
97
  &.hy-button_function {
103
98
  background: rgba(45, 242, 255, 0.32);
104
99
  border: 1px solid rgba(45, 242, 255, 1);
105
100
  box-shadow: 0px 0px 0px 2px rgba(45, 242, 255, 0.5);
106
-
101
+
107
102
  .hy-button__border {
108
103
  background: linear-gradient(
109
104
  90deg,
@@ -112,27 +107,22 @@
112
107
  rgba(45, 242, 255, 0.4) 100%
113
108
  );
114
109
  }
115
-
110
+
116
111
  .hy-button__inner {
117
112
  background: #003a48;
118
113
  box-shadow:
119
114
  inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
120
115
  inset 0 0 2px 0 rgba(159, 248, 255, 0.5);
121
116
  }
122
-
117
+
123
118
  .hy-button__text {
124
119
  color: #fff;
125
120
  }
126
-
121
+
127
122
  .hy-button__mask {
128
- background: radial-gradient(
129
- ellipse at center bottom,
130
- #2df2ff 0%,
131
- #1798a1 30%,
132
- transparent 60%
133
- );
123
+ background: radial-gradient(ellipse at center bottom, #2df2ff 0%, #1798a1 30%, transparent 60%);
134
124
  }
135
-
125
+
136
126
  &:hover .hy-button__inner {
137
127
  box-shadow:
138
128
  inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
@@ -140,7 +130,7 @@
140
130
  inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
141
131
  inset 0 0 2px 0 rgba(159, 248, 255, 0.5);
142
132
  }
143
-
133
+
144
134
  &:disabled .hy-button__border,
145
135
  &.is-disabled .hy-button__border {
146
136
  background: linear-gradient(
@@ -150,7 +140,7 @@
150
140
  rgba(45, 242, 255, 0.18) 100%
151
141
  );
152
142
  }
153
-
143
+
154
144
  &:disabled .hy-button__inner,
155
145
  &.is-disabled .hy-button__inner {
156
146
  background: #10575c;
@@ -158,18 +148,18 @@
158
148
  inset 0 0 4px 1px rgba(97, 248, 255, 0.2),
159
149
  inset 0 0 2px 0 rgba(159, 248, 255, 0.16);
160
150
  }
161
-
151
+
162
152
  &:disabled .hy-button__text,
163
153
  &.is-disabled .hy-button__text {
164
154
  color: rgba(255, 255, 255, 0.68);
165
155
  }
166
156
  }
167
-
157
+
168
158
  &.hy-button_addTo {
169
159
  background: rgba(44, 232, 152, 0.32);
170
160
  border: 1px solid rgba(44, 232, 152, 1);
171
161
  box-shadow: 0px 0px 0px 2px rgba(44, 232, 152, 0.5);
172
-
162
+
173
163
  .hy-button__border {
174
164
  background: linear-gradient(
175
165
  90deg,
@@ -178,27 +168,22 @@
178
168
  rgba(171, 255, 185, 0.4) 100%
179
169
  );
180
170
  }
181
-
171
+
182
172
  .hy-button__inner {
183
173
  background: #004823;
184
174
  box-shadow:
185
175
  inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
186
176
  inset 0 0 2px 0 rgba(159, 255, 209, 0.5);
187
177
  }
188
-
178
+
189
179
  .hy-button__text {
190
180
  color: #fff;
191
181
  }
192
-
182
+
193
183
  .hy-button__mask {
194
- background: radial-gradient(
195
- ellipse at center bottom,
196
- #20e080 0%,
197
- #109060 30%,
198
- transparent 60%
199
- );
184
+ background: radial-gradient(ellipse at center bottom, #20e080 0%, #109060 30%, transparent 60%);
200
185
  }
201
-
186
+
202
187
  &:hover .hy-button__inner {
203
188
  box-shadow:
204
189
  inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
@@ -206,7 +191,7 @@
206
191
  inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
207
192
  inset 0 0 2px 0 rgba(159, 255, 209, 0.5);
208
193
  }
209
-
194
+
210
195
  &:disabled .hy-button__border,
211
196
  &.is-disabled .hy-button__border {
212
197
  background: linear-gradient(
@@ -216,7 +201,7 @@
216
201
  rgba(171, 255, 185, 0.18) 100%
217
202
  );
218
203
  }
219
-
204
+
220
205
  &:disabled .hy-button__inner,
221
206
  &.is-disabled .hy-button__inner {
222
207
  background: #1d3d2d;
@@ -224,18 +209,18 @@
224
209
  inset 0 0 4px 1px rgba(97, 255, 179, 0.2),
225
210
  inset 0 0 2px 0 rgba(159, 255, 209, 0.16);
226
211
  }
227
-
212
+
228
213
  &:disabled .hy-button__text,
229
214
  &.is-disabled .hy-button__text {
230
215
  color: rgba(255, 255, 255, 0.68);
231
216
  }
232
217
  }
233
-
218
+
234
219
  &.hy-button_delete {
235
220
  background: rgba(255, 77, 77, 0.32);
236
221
  border: 1px solid rgba(255, 77, 77, 1);
237
222
  box-shadow: 0px 0px 0px 2px rgba(255, 77, 77, 0.5);
238
-
223
+
239
224
  .hy-button__border {
240
225
  background: linear-gradient(
241
226
  90deg,
@@ -244,27 +229,22 @@
244
229
  rgba(255, 77, 77, 0.4) 100%
245
230
  );
246
231
  }
247
-
232
+
248
233
  .hy-button__inner {
249
234
  background: #4f0000;
250
235
  box-shadow:
251
236
  inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
252
237
  inset 0 0 2px 0 rgba(255, 159, 159, 0.5);
253
238
  }
254
-
239
+
255
240
  .hy-button__text {
256
241
  color: #fff;
257
242
  }
258
-
243
+
259
244
  .hy-button__mask {
260
- background: radial-gradient(
261
- ellipse at center bottom,
262
- #ff0000 0%,
263
- #b41414 30%,
264
- transparent 60%
265
- );
245
+ background: radial-gradient(ellipse at center bottom, #ff0000 0%, #b41414 30%, transparent 60%);
266
246
  }
267
-
247
+
268
248
  &:hover .hy-button__inner {
269
249
  box-shadow:
270
250
  inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
@@ -272,7 +252,7 @@
272
252
  inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
273
253
  inset 0 0 2px 0 rgba(255, 159, 159, 0.5);
274
254
  }
275
-
255
+
276
256
  &:disabled .hy-button__border,
277
257
  &.is-disabled .hy-button__border {
278
258
  background: linear-gradient(
@@ -282,7 +262,7 @@
282
262
  rgba(255, 77, 77, 0.18) 100%
283
263
  );
284
264
  }
285
-
265
+
286
266
  &:disabled .hy-button__inner,
287
267
  &.is-disabled .hy-button__inner {
288
268
  background: #4b0c0c;
@@ -290,7 +270,7 @@
290
270
  inset 0 0 4px 1px rgba(255, 97, 97, 0.2),
291
271
  inset 0 0 2px 0 rgba(255, 159, 159, 0.16);
292
272
  }
293
-
273
+
294
274
  &:disabled .hy-button__text,
295
275
  &.is-disabled .hy-button__text {
296
276
  color: rgba(255, 255, 255, 0.68);
@@ -301,7 +281,7 @@
301
281
  background: rgba(45, 255, 211, 0.32);
302
282
  border: 1px solid rgba(45, 255, 211, 1);
303
283
  box-shadow: 0px 0px 0px 2px rgba(45, 255, 211, 0.5);
304
-
284
+
305
285
  .hy-button__border {
306
286
  background: linear-gradient(
307
287
  90deg,
@@ -310,27 +290,22 @@
310
290
  rgba(45, 255, 211, 0.4) 100%
311
291
  );
312
292
  }
313
-
293
+
314
294
  .hy-button__inner {
315
295
  background: #002932;
316
296
  box-shadow:
317
297
  inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
318
298
  inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
319
299
  }
320
-
300
+
321
301
  .hy-button__text {
322
302
  color: #fff;
323
303
  }
324
-
304
+
325
305
  .hy-button__mask {
326
- background: radial-gradient(
327
- ellipse at center bottom,
328
- #2DFFD3 0%,
329
- #189177 30%,
330
- transparent 60%
331
- );
306
+ background: radial-gradient(ellipse at center bottom, #2dffd3 0%, #189177 30%, transparent 60%);
332
307
  }
333
-
308
+
334
309
  &:hover .hy-button__inner {
335
310
  box-shadow:
336
311
  inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
@@ -338,7 +313,7 @@
338
313
  inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
339
314
  inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
340
315
  }
341
-
316
+
342
317
  &:disabled .hy-button__border,
343
318
  &.is-disabled .hy-button__border {
344
319
  background: linear-gradient(
@@ -348,7 +323,7 @@
348
323
  rgba(45, 255, 211, 0.18) 100%
349
324
  );
350
325
  }
351
-
326
+
352
327
  &:disabled .hy-button__inner,
353
328
  &.is-disabled .hy-button__inner {
354
329
  background: #4b0c0c;
@@ -356,7 +331,7 @@
356
331
  inset 0 0 4px 1px rgba(45, 255, 211, 0.2),
357
332
  inset 0 0 2px 0 rgba(24, 145, 119, 0.16);
358
333
  }
359
-
334
+
360
335
  &:disabled .hy-button__text,
361
336
  &.is-disabled .hy-button__text {
362
337
  color: rgba(255, 255, 255, 0.68);
@@ -364,7 +339,6 @@
364
339
  }
365
340
  }
366
341
 
367
-
368
342
  .hy-button-text {
369
343
  --hy-button-text-color: rgba(var(--hy-auxiliary));
370
344
  --hy-button-font-size: 14px;
@@ -0,0 +1,119 @@
1
+ import { defineComponent, useModel, computed, ref, watch, openBlock, createElementBlock, normalizeStyle, Fragment, renderList, normalizeClass, renderSlot, createTextVNode, toDisplayString, mergeModels } from 'vue';
2
+ import '../../utils/index.mjs';
3
+ import { isArray } from '../../utils/is.mjs';
4
+
5
+ import "./style/checkboxGroup.scss";
6
+
7
+ const __default__ = defineComponent({
8
+ name: "HycheckboxGroup"
9
+ });
10
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11
+ props: /* @__PURE__ */ mergeModels({
12
+ options: {
13
+ type: Array,
14
+ default: () => []
15
+ },
16
+ props: {
17
+ type: Object,
18
+ default: () => ({})
19
+ },
20
+ size: {
21
+ type: String,
22
+ default: "default"
23
+ },
24
+ columnNum: {
25
+ type: Number,
26
+ default: 4
27
+ },
28
+ disabled: {
29
+ type: Boolean,
30
+ default: false
31
+ }
32
+ }, {
33
+ "modelValue": { type: Array, default: [] },
34
+ "modelModifiers": {}
35
+ }),
36
+ emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
37
+ setup(__props, { expose: __expose, emit: __emit }) {
38
+ const props = __props;
39
+ const emits = __emit;
40
+ const modelValue = useModel(__props, "modelValue");
41
+ const checkboxProps = computed(() => {
42
+ return {
43
+ value: "value",
44
+ label: "label",
45
+ disabled: "disabled",
46
+ ...props.props || {}
47
+ };
48
+ });
49
+ const selectedMap = ref({});
50
+ async function onSelectedHandler(item) {
51
+ if (item[checkboxProps.value.disabled] || props.disabled) return;
52
+ const value = item[checkboxProps.value.value];
53
+ let list = isArray(modelValue.value) ? [...modelValue.value] : [];
54
+ if (selectedMap.value[value]) {
55
+ list = list.filter((v) => v !== value);
56
+ } else {
57
+ list.push(value);
58
+ }
59
+ modelValue.value = [...list];
60
+ emits("change", list);
61
+ }
62
+ watch(
63
+ () => modelValue.value,
64
+ (list) => {
65
+ selectedMap.value = (list || []).reduce((obj, value) => {
66
+ obj[value] = true;
67
+ return obj;
68
+ }, {});
69
+ },
70
+ { deep: true, immediate: true }
71
+ );
72
+ __expose({});
73
+ return (_ctx, _cache) => {
74
+ return openBlock(), createElementBlock(
75
+ "div",
76
+ {
77
+ class: "hy-checkbox-group",
78
+ style: normalizeStyle({ "grid-template-columns": `repeat(${__props.columnNum}, minmax(0, 1fr))` })
79
+ },
80
+ [
81
+ (openBlock(true), createElementBlock(
82
+ Fragment,
83
+ null,
84
+ renderList(__props.options, (item, index) => {
85
+ return openBlock(), createElementBlock("div", {
86
+ key: index,
87
+ class: normalizeClass(["hy-checkbox-item", [
88
+ __props.size === "large" ? "hy-checkbox-item-large" : __props.size === "small" ? "hy-checkbox-item-small" : "hy-checkbox-item-default",
89
+ {
90
+ "is-selected": selectedMap.value[item[checkboxProps.value.value]],
91
+ "opacity-90 !cursor-not-allowed": item[checkboxProps.value.disabled] || __props.disabled
92
+ }
93
+ ]]),
94
+ onClick: ($event) => onSelectedHandler(item)
95
+ }, [
96
+ renderSlot(_ctx.$slots, "default", {
97
+ item,
98
+ index
99
+ }, () => [
100
+ createTextVNode(
101
+ toDisplayString(item[checkboxProps.value.label]),
102
+ 1
103
+ /* TEXT */
104
+ )
105
+ ])
106
+ ], 10, ["onClick"]);
107
+ }),
108
+ 128
109
+ /* KEYED_FRAGMENT */
110
+ ))
111
+ ],
112
+ 4
113
+ /* STYLE */
114
+ );
115
+ };
116
+ }
117
+ });
118
+
119
+ export { _sfc_main as default };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from './checkboxGroup.vue.mjs';
2
+ import '../../utils/index.mjs';
3
+ import { withInstall } from '../../utils/handler.mjs';
4
+
5
+ const HyCheckboxGroup = withInstall(_sfc_main);
6
+
7
+ export { HyCheckboxGroup, HyCheckboxGroup as default };
@@ -0,0 +1,58 @@
1
+ .hy-checkbox-group {
2
+ width: 100%;
3
+ display: grid;
4
+ flex-wrap: wrap;
5
+ row-gap: 4px;
6
+ column-gap: 4px;
7
+ font-size: 12px;
8
+ line-height: 1;
9
+ border: 1px solid rgba(var(--hy-border));
10
+ border-radius: 4px;
11
+ padding: 3px;
12
+ box-sizing: border-box;
13
+ .hy-checkbox-item {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ color: rgba(var(--hy-auxiliary));
18
+ border: 1px solid transparent;
19
+ border-radius: 2px;
20
+ background-color: rgba(var(--hy-background-2));
21
+ box-sizing: border-box;
22
+ position: relative;
23
+ cursor: pointer;
24
+ user-select: none;
25
+ overflow: hidden;
26
+
27
+ &.hy-checkbox-item-large {
28
+ height: 40px;
29
+ font-size: 14px;
30
+ }
31
+ &.hy-checkbox-item-small {
32
+ height: 24px;
33
+ font-size: 12px;
34
+ }
35
+ &.hy-checkbox-item-default {
36
+ height: 28px;
37
+ font-size: 12px;
38
+ }
39
+ &.is-selected {
40
+ font-weight: bold;
41
+ color: rgba(var(--hy-theme));
42
+ border: 1px solid rgba(var(--hy-theme));
43
+ &::before {
44
+ content: '';
45
+ display: block;
46
+ position: absolute;
47
+ top: 0;
48
+ right: 0;
49
+ width: 0;
50
+ height: 0;
51
+ border-top: 6px solid rgba(var(--hy-theme));
52
+ border-left: 6px solid transparent;
53
+ border-bottom: 6px solid transparent;
54
+ text-align: center;
55
+ }
56
+ }
57
+ }
58
+ }
@@ -1,33 +1,16 @@
1
- import { defineComponent, unref, computed, openBlock, createBlock, mergeProps, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, unref, computed, watch, openBlock, createBlock, mergeProps, withCtx, renderSlot } from 'vue';
2
2
  import { ElConfigProvider } from 'element-plus';
3
- import * as ElementLocale from 'element-plus/es/locales.mjs';
3
+ import zh_CN from 'element-plus/es/locale/lang/zh-cn';
4
+ import en_US from 'element-plus/es/locale/lang/en';
4
5
  import '../../hooks/index.mjs';
5
6
  import { provideGlobalConfig, useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
7
+ import { setLang } from '../../hooks/useLocale.mjs';
6
8
 
7
9
  const __default__ = defineComponent({
8
10
  name: "HyConfigProvider"
9
11
  });
10
12
  const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
11
13
  props: {
12
- locale: {
13
- type: String,
14
- required: false,
15
- default: "zhCn"
16
- },
17
- api: {
18
- type: [Object, Function],
19
- required: false
20
- },
21
- userAvatarMap: {
22
- type: Map,
23
- required: false,
24
- default: () => /* @__PURE__ */ new Map()
25
- },
26
- permissionMap: {
27
- type: Map,
28
- required: false,
29
- default: () => /* @__PURE__ */ new Map()
30
- },
31
14
  size: {
32
15
  type: String,
33
16
  required: false,
@@ -65,22 +48,45 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
65
48
  type: Object,
66
49
  required: false
67
50
  },
68
- audioPlayer: {
51
+ /**
52
+ * @param {
53
+ * locale: 'zh_CN' | 'en_US'
54
+ * api: object | function
55
+ * userAvatarMap: Map<string, string>,
56
+ * permissionMap: Map<string, boolean>,
57
+ * audioPlayer: {
58
+ type: 'default' | 'analyse',
59
+ speed: 0.5 | 1.0 | 1.5 | 2.0 | 3.0,
60
+ playRules: 1 | 2 | 3,
61
+ showPlayRules: boolean,
62
+ showPicture: boolean,
63
+ showDownloadFiles: boolean,
64
+ downloadFn: () => void,
65
+ }
66
+ * videoPlayer: {
67
+ type: 'default' | 'analyse',
68
+ speed: 0.5 | 1.0 | 1.5 | 2.0 | 3.0,
69
+ playRules: 1 | 2 | 3,
70
+ showPlayRules: boolean,
71
+ showDownloadFiles: boolean,
72
+ showShrink: boolean,
73
+ vlcProtocol: 'hyvlc',
74
+ vlcAddress: string,
75
+ downloadFn: () => void,
76
+ }
77
+ * ensureHyIcon: (icon: string) => void
78
+ * tooltip: {
79
+ isAlways: boolean,
80
+ overLine: number,
81
+ }
82
+ * mapConfig: object
83
+ * baseMainStore: function
84
+ * currentBus: object
85
+ * } hyConfig
86
+ */
87
+ hyConfig: {
69
88
  type: Object,
70
- required: false
71
- },
72
- videoPlayer: {
73
- type: Object,
74
- required: false
75
- },
76
- ensureHyIcon: Function,
77
- tooltip: {
78
- type: Object,
79
- required: false
80
- },
81
- mapConfig: {
82
- type: Object,
83
- required: false
89
+ default: () => ({})
84
90
  }
85
91
  },
86
92
  setup(__props) {
@@ -88,7 +94,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
88
94
  const globalConfig = provideGlobalConfig(props, null, !unref(useGlobalConfig()));
89
95
  const config = computed(() => {
90
96
  const {
91
- locale,
92
97
  size,
93
98
  zIndex,
94
99
  button,
@@ -100,8 +105,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
100
105
  valueOnClear,
101
106
  table
102
107
  } = globalConfig.value;
108
+ const locale = globalConfig.value.locale || globalConfig.value.hyConfig && globalConfig.value.hyConfig.locale || "zh_CN";
103
109
  return {
104
- locale: ElementLocale[locale] || ElementLocale["zhCn"],
110
+ locale: locale === "en_US" ? en_US : zh_CN,
105
111
  size,
106
112
  zIndex,
107
113
  button,
@@ -114,6 +120,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
114
120
  table
115
121
  };
116
122
  });
123
+ watch(
124
+ () => props.hyConfig.locale,
125
+ (lang) => {
126
+ setLang(lang);
127
+ },
128
+ { immediate: true }
129
+ );
117
130
  return (_ctx, _cache) => {
118
131
  return openBlock(), createBlock(
119
132
  unref(ElConfigProvider),