hy-dispatch-ui-v3 0.2.66 → 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 (288) hide show
  1. package/dist/tailwind.css +257 -21
  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/hyBatchUploadDialog/batchUploadDialog.vue.mjs +174 -142
  42. package/es/components/hyButton/button.vue.mjs +18 -5
  43. package/es/components/hyButton/style/button.scss +50 -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 +149 -69
  61. package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
  62. package/es/components/hyForm/form.vue.mjs +74 -28
  63. package/es/components/hyForm/js/index.mjs +4 -8
  64. package/es/components/hyForm/js/useAppForm.mjs +4 -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 +35 -10
  72. package/es/components/hyMap/map.vue.mjs +30 -6
  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 +31 -12
  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 +409 -324
  82. package/es/components/hySearch/js/index.mjs +1 -4
  83. package/es/components/hySearch/js/useAppSearch.mjs +5 -10
  84. package/es/components/hySearch/search.vue.mjs +23 -20
  85. package/es/components/hySearch/style/search.scss +9 -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 +43 -34
  93. package/es/components/hyTable/js/index.mjs +67 -64
  94. package/es/components/hyTable/js/search.mjs +25 -1
  95. package/es/components/hyTable/js/useAppTable.mjs +3 -4
  96. package/es/components/hyTable/style/table.scss +8 -0
  97. package/es/components/hyTable/table.vue.mjs +68 -53
  98. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +13 -6
  99. package/es/components/hyTableForm/batchTableForm.vue.mjs +26 -9
  100. package/es/components/hyTableForm/js/index.mjs +2 -8
  101. package/es/components/hyTableForm/js/useAppTableForm.mjs +3 -8
  102. package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
  103. package/es/components/hyTableForm/style/tableForm.scss +3 -2
  104. package/es/components/hyTableForm/tableForm.vue.mjs +160 -70
  105. package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
  106. package/es/components/hyTree/js/index.mjs +113 -72
  107. package/es/components/hyTree/style/index.css +1 -1
  108. package/es/components/hyTree/tree.vue.mjs +21 -18
  109. package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
  110. package/es/components/hyVideoPlayer/js/index.mjs +14 -23
  111. package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  112. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
  113. package/es/components/index.mjs +3 -0
  114. package/es/hooks/index.mjs +6 -2
  115. package/es/hooks/useAudioPlayerConfig.mjs +1 -3
  116. package/es/hooks/useBaseMainStore.mjs +29 -0
  117. package/es/hooks/useCurrentBus.mjs +20 -0
  118. package/es/hooks/useDialog.mjs +327 -0
  119. package/es/hooks/useExportFile.mjs +133 -0
  120. package/es/hooks/useGlobalConfig.mjs +10 -6
  121. package/es/hooks/useLocale.mjs +22 -12
  122. package/es/hooks/usePermissionMap.mjs +1 -3
  123. package/es/hooks/useResizeHandler.mjs +1 -4
  124. package/es/hooks/useResizeObserver.mjs +3 -1
  125. package/es/hooks/useSubscribe.mjs +2 -2
  126. package/es/hooks/useUserAvatarMap.mjs +1 -3
  127. package/es/hooks/useVideoPlayerConfig.mjs +1 -3
  128. package/es/index.mjs +11 -2
  129. package/es/locale/{en.mjs → en_US.mjs} +79 -4
  130. package/es/locale/index.mjs +2 -2
  131. package/es/locale/zh_CN.mjs +79 -2
  132. package/es/style/index.scss +0 -1
  133. package/es/style/tailwind.scss +7 -4
  134. package/es/utils/adaptive.mjs +1 -3
  135. package/es/utils/form.mjs +7 -10
  136. package/es/utils/handler.mjs +4 -8
  137. package/es/utils/input.mjs +8 -9
  138. package/es/utils/is.mjs +3 -1
  139. package/es/utils/map/hook/bigMap.mjs +16 -53
  140. package/es/utils/map/hook/gaode.mjs +53 -33
  141. package/es/utils/map/hook/leafletjs.mjs +38 -82
  142. package/es/utils/map/index.mjs +3 -9
  143. package/es/utils/map/js/webgis.mjs +12 -12
  144. package/es/version.mjs +1 -1
  145. package/lib/api/device.js +2 -3
  146. package/lib/api/exportExcel.js +62 -0
  147. package/lib/api/index.js +27 -16
  148. package/lib/api/mapRail.js +34 -0
  149. package/lib/api/organization.js +17 -8
  150. package/lib/api/rule.js +33 -0
  151. package/lib/api/sypct.js +2 -3
  152. package/lib/api/task.js +2 -3
  153. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
  154. package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
  155. package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
  156. package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +173 -0
  157. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +322 -0
  158. package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +127 -0
  159. package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
  160. package/lib/bussiness/hyElectronicFence/index.js +21 -0
  161. package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
  162. package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
  163. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
  164. package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
  165. package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
  166. package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
  167. package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
  168. package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
  169. package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
  170. package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
  171. package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
  172. package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
  173. package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
  174. package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
  175. package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
  176. package/lib/bussiness/hyRuleSetting/index.js +24 -0
  177. package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
  178. package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
  179. package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
  180. package/lib/bussiness/index.js +21 -10
  181. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
  182. package/lib/components/hyAudioPlayer/js/index.js +9 -14
  183. package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
  184. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +173 -141
  185. package/lib/components/hyButton/button.vue.js +17 -4
  186. package/lib/components/hyButton/style/button.scss +50 -74
  187. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
  188. package/lib/components/hyCheckboxGroup/index.js +12 -0
  189. package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
  190. package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
  191. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
  192. package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
  193. package/lib/components/hyCutter/cutter.vue.js +8 -22
  194. package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
  195. package/lib/components/hyDialog/dialog.vue.js +5 -9
  196. package/lib/components/hyDialog/style/dialog.scss +12 -13
  197. package/lib/components/hyDrawer/drawer.vue.js +104 -0
  198. package/lib/components/hyDrawer/index.js +12 -0
  199. package/lib/components/hyDrawer/style/drawer.scss +0 -0
  200. package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
  201. package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
  202. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
  203. package/lib/components/hyForm/cpns/formItem.vue.js +148 -68
  204. package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
  205. package/lib/components/hyForm/form.vue.js +69 -23
  206. package/lib/components/hyForm/js/index.js +3 -7
  207. package/lib/components/hyForm/js/useAppForm.js +4 -9
  208. package/lib/components/hyForm/style/form.scss +4 -13
  209. package/lib/components/hyIcon/icon.vue.js +3 -3
  210. package/lib/components/hyIconBox/style/iconBox.scss +2 -6
  211. package/lib/components/hyInput/inputSearch.vue.js +7 -10
  212. package/lib/components/hyInput/style/inputSearch.scss +3 -0
  213. package/lib/components/hyLoading/index.js +2 -4
  214. package/lib/components/hyMap/js/index.js +34 -9
  215. package/lib/components/hyMap/map.vue.js +29 -5
  216. package/lib/components/hyMenu/style/menu.scss +5 -15
  217. package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
  218. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
  219. package/lib/components/hyOrgCascader/js/index.js +1 -5
  220. package/lib/components/hyOrgCascader/orgCascader.vue.js +29 -10
  221. package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
  222. package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
  223. package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
  224. package/lib/components/hySearch/cpns/searchItem.vue.js +407 -322
  225. package/lib/components/hySearch/js/index.js +1 -4
  226. package/lib/components/hySearch/js/useAppSearch.js +5 -10
  227. package/lib/components/hySearch/search.vue.js +23 -20
  228. package/lib/components/hySearch/style/search.scss +9 -0
  229. package/lib/components/hyStatus/index.js +12 -0
  230. package/lib/components/hyStatus/status.vue.js +114 -0
  231. package/lib/components/hyStatus/style/status.scss +0 -0
  232. package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
  233. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
  234. package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
  235. package/lib/components/hyTable/cpns/virtualTable.vue.js +41 -32
  236. package/lib/components/hyTable/js/index.js +65 -61
  237. package/lib/components/hyTable/js/search.js +25 -1
  238. package/lib/components/hyTable/js/useAppTable.js +2 -3
  239. package/lib/components/hyTable/style/table.scss +8 -0
  240. package/lib/components/hyTable/table.vue.js +67 -52
  241. package/lib/components/hyTableActionButton/tableActionButton.vue.js +13 -6
  242. package/lib/components/hyTableForm/batchTableForm.vue.js +26 -9
  243. package/lib/components/hyTableForm/js/index.js +2 -8
  244. package/lib/components/hyTableForm/js/useAppTableForm.js +3 -8
  245. package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
  246. package/lib/components/hyTableForm/style/tableForm.scss +3 -2
  247. package/lib/components/hyTableForm/tableForm.vue.js +159 -69
  248. package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
  249. package/lib/components/hyTree/js/index.js +113 -72
  250. package/lib/components/hyTree/style/index.css +1 -1
  251. package/lib/components/hyTree/tree.vue.js +21 -18
  252. package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
  253. package/lib/components/hyVideoPlayer/js/index.js +14 -23
  254. package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
  255. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
  256. package/lib/components/index.js +46 -40
  257. package/lib/hooks/index.js +17 -0
  258. package/lib/hooks/useAudioPlayerConfig.js +1 -3
  259. package/lib/hooks/useBaseMainStore.js +32 -0
  260. package/lib/hooks/useCurrentBus.js +23 -0
  261. package/lib/hooks/useDialog.js +331 -0
  262. package/lib/hooks/useExportFile.js +135 -0
  263. package/lib/hooks/useGlobalConfig.js +10 -6
  264. package/lib/hooks/useLocale.js +25 -11
  265. package/lib/hooks/usePermissionMap.js +1 -3
  266. package/lib/hooks/useResizeHandler.js +1 -4
  267. package/lib/hooks/useResizeObserver.js +3 -1
  268. package/lib/hooks/useSubscribe.js +2 -1
  269. package/lib/hooks/useUserAvatarMap.js +1 -3
  270. package/lib/hooks/useVideoPlayerConfig.js +1 -3
  271. package/lib/index.js +107 -73
  272. package/lib/locale/{en.js → en_US.js} +79 -4
  273. package/lib/locale/index.js +3 -3
  274. package/lib/locale/zh_CN.js +79 -2
  275. package/lib/style/index.scss +0 -1
  276. package/lib/style/tailwind.scss +7 -4
  277. package/lib/utils/adaptive.js +1 -3
  278. package/lib/utils/form.js +6 -9
  279. package/lib/utils/handler.js +3 -7
  280. package/lib/utils/input.js +7 -8
  281. package/lib/utils/is.js +5 -3
  282. package/lib/utils/map/hook/bigMap.js +16 -53
  283. package/lib/utils/map/hook/gaode.js +53 -33
  284. package/lib/utils/map/hook/leafletjs.js +38 -82
  285. package/lib/utils/map/index.js +3 -9
  286. package/lib/utils/map/js/webgis.js +12 -12
  287. package/lib/version.js +1 -1
  288. package/package.json +3 -2
@@ -10,6 +10,7 @@
10
10
  font-size: 14px;
11
11
  box-sizing: border-box;
12
12
  border-radius: 4px;
13
+ position: relative;
13
14
 
14
15
  &:disabled,
15
16
  &.is-disabled {
@@ -36,7 +37,7 @@
36
37
  background: rgba(94, 157, 180, 0.32);
37
38
  border: 1px solid rgba(94, 157, 180, 1);
38
39
  box-shadow: 0px 0px 0px 2px rgba(94, 157, 180, 0.5);
39
-
40
+
40
41
  .hy-button__border {
41
42
  background: linear-gradient(
42
43
  90deg,
@@ -45,27 +46,22 @@
45
46
  rgba(94, 157, 180, 0.4) 100%
46
47
  );
47
48
  }
48
-
49
+
49
50
  .hy-button__inner {
50
51
  background: #003a48;
51
52
  box-shadow:
52
53
  inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
53
54
  inset 0 0 2px 0 rgba(0, 147, 157, 0.5);
54
55
  }
55
-
56
+
56
57
  .hy-button__text {
57
58
  color: #fff;
58
59
  }
59
-
60
+
60
61
  .hy-button__mask {
61
- background: radial-gradient(
62
- ellipse at center bottom,
63
- #7ebbd2 0%,
64
- rgb(17, 108, 114) 30%,
65
- transparent 60%
66
- );
62
+ background: radial-gradient(ellipse at center bottom, #7ebbd2 0%, rgb(17, 108, 114) 30%, transparent 60%);
67
63
  }
68
-
64
+
69
65
  &:hover .hy-button__inner {
70
66
  box-shadow:
71
67
  inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
@@ -73,7 +69,7 @@
73
69
  inset 0 0 5px 1px rgba(0, 138, 157, 0.5),
74
70
  inset 0 0 2px 0 rgba(0, 147, 157, 0.5);
75
71
  }
76
-
72
+
77
73
  &:disabled .hy-button__border,
78
74
  &.is-disabled .hy-button__border {
79
75
  background: linear-gradient(
@@ -83,7 +79,7 @@
83
79
  rgba(94, 157, 180, 0.18) 100%
84
80
  );
85
81
  }
86
-
82
+
87
83
  &:disabled .hy-button__inner,
88
84
  &.is-disabled .hy-button__inner {
89
85
  background: #3e5a64;
@@ -91,18 +87,18 @@
91
87
  inset 0 0 4px 1px rgba(0, 138, 157, 0.2),
92
88
  inset 0 0 2px 0 rgba(0, 147, 157, 0.16);
93
89
  }
94
-
90
+
95
91
  &:disabled .hy-button__text,
96
92
  &.is-disabled .hy-button__text {
97
93
  color: rgba(255, 255, 255, 0.68);
98
94
  }
99
95
  }
100
-
96
+
101
97
  &.hy-button_function {
102
98
  background: rgba(45, 242, 255, 0.32);
103
99
  border: 1px solid rgba(45, 242, 255, 1);
104
100
  box-shadow: 0px 0px 0px 2px rgba(45, 242, 255, 0.5);
105
-
101
+
106
102
  .hy-button__border {
107
103
  background: linear-gradient(
108
104
  90deg,
@@ -111,27 +107,22 @@
111
107
  rgba(45, 242, 255, 0.4) 100%
112
108
  );
113
109
  }
114
-
110
+
115
111
  .hy-button__inner {
116
112
  background: #003a48;
117
113
  box-shadow:
118
114
  inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
119
115
  inset 0 0 2px 0 rgba(159, 248, 255, 0.5);
120
116
  }
121
-
117
+
122
118
  .hy-button__text {
123
119
  color: #fff;
124
120
  }
125
-
121
+
126
122
  .hy-button__mask {
127
- background: radial-gradient(
128
- ellipse at center bottom,
129
- #2df2ff 0%,
130
- #1798a1 30%,
131
- transparent 60%
132
- );
123
+ background: radial-gradient(ellipse at center bottom, #2df2ff 0%, #1798a1 30%, transparent 60%);
133
124
  }
134
-
125
+
135
126
  &:hover .hy-button__inner {
136
127
  box-shadow:
137
128
  inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
@@ -139,7 +130,7 @@
139
130
  inset 0 0 5px 1px rgba(97, 248, 255, 0.5),
140
131
  inset 0 0 2px 0 rgba(159, 248, 255, 0.5);
141
132
  }
142
-
133
+
143
134
  &:disabled .hy-button__border,
144
135
  &.is-disabled .hy-button__border {
145
136
  background: linear-gradient(
@@ -149,7 +140,7 @@
149
140
  rgba(45, 242, 255, 0.18) 100%
150
141
  );
151
142
  }
152
-
143
+
153
144
  &:disabled .hy-button__inner,
154
145
  &.is-disabled .hy-button__inner {
155
146
  background: #10575c;
@@ -157,18 +148,18 @@
157
148
  inset 0 0 4px 1px rgba(97, 248, 255, 0.2),
158
149
  inset 0 0 2px 0 rgba(159, 248, 255, 0.16);
159
150
  }
160
-
151
+
161
152
  &:disabled .hy-button__text,
162
153
  &.is-disabled .hy-button__text {
163
154
  color: rgba(255, 255, 255, 0.68);
164
155
  }
165
156
  }
166
-
157
+
167
158
  &.hy-button_addTo {
168
159
  background: rgba(44, 232, 152, 0.32);
169
160
  border: 1px solid rgba(44, 232, 152, 1);
170
161
  box-shadow: 0px 0px 0px 2px rgba(44, 232, 152, 0.5);
171
-
162
+
172
163
  .hy-button__border {
173
164
  background: linear-gradient(
174
165
  90deg,
@@ -177,27 +168,22 @@
177
168
  rgba(171, 255, 185, 0.4) 100%
178
169
  );
179
170
  }
180
-
171
+
181
172
  .hy-button__inner {
182
173
  background: #004823;
183
174
  box-shadow:
184
175
  inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
185
176
  inset 0 0 2px 0 rgba(159, 255, 209, 0.5);
186
177
  }
187
-
178
+
188
179
  .hy-button__text {
189
180
  color: #fff;
190
181
  }
191
-
182
+
192
183
  .hy-button__mask {
193
- background: radial-gradient(
194
- ellipse at center bottom,
195
- #20e080 0%,
196
- #109060 30%,
197
- transparent 60%
198
- );
184
+ background: radial-gradient(ellipse at center bottom, #20e080 0%, #109060 30%, transparent 60%);
199
185
  }
200
-
186
+
201
187
  &:hover .hy-button__inner {
202
188
  box-shadow:
203
189
  inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
@@ -205,7 +191,7 @@
205
191
  inset 0 0 5px 1px rgba(97, 255, 179, 0.5),
206
192
  inset 0 0 2px 0 rgba(159, 255, 209, 0.5);
207
193
  }
208
-
194
+
209
195
  &:disabled .hy-button__border,
210
196
  &.is-disabled .hy-button__border {
211
197
  background: linear-gradient(
@@ -215,7 +201,7 @@
215
201
  rgba(171, 255, 185, 0.18) 100%
216
202
  );
217
203
  }
218
-
204
+
219
205
  &:disabled .hy-button__inner,
220
206
  &.is-disabled .hy-button__inner {
221
207
  background: #1d3d2d;
@@ -223,18 +209,18 @@
223
209
  inset 0 0 4px 1px rgba(97, 255, 179, 0.2),
224
210
  inset 0 0 2px 0 rgba(159, 255, 209, 0.16);
225
211
  }
226
-
212
+
227
213
  &:disabled .hy-button__text,
228
214
  &.is-disabled .hy-button__text {
229
215
  color: rgba(255, 255, 255, 0.68);
230
216
  }
231
217
  }
232
-
218
+
233
219
  &.hy-button_delete {
234
220
  background: rgba(255, 77, 77, 0.32);
235
221
  border: 1px solid rgba(255, 77, 77, 1);
236
222
  box-shadow: 0px 0px 0px 2px rgba(255, 77, 77, 0.5);
237
-
223
+
238
224
  .hy-button__border {
239
225
  background: linear-gradient(
240
226
  90deg,
@@ -243,27 +229,22 @@
243
229
  rgba(255, 77, 77, 0.4) 100%
244
230
  );
245
231
  }
246
-
232
+
247
233
  .hy-button__inner {
248
234
  background: #4f0000;
249
235
  box-shadow:
250
236
  inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
251
237
  inset 0 0 2px 0 rgba(255, 159, 159, 0.5);
252
238
  }
253
-
239
+
254
240
  .hy-button__text {
255
241
  color: #fff;
256
242
  }
257
-
243
+
258
244
  .hy-button__mask {
259
- background: radial-gradient(
260
- ellipse at center bottom,
261
- #ff0000 0%,
262
- #b41414 30%,
263
- transparent 60%
264
- );
245
+ background: radial-gradient(ellipse at center bottom, #ff0000 0%, #b41414 30%, transparent 60%);
265
246
  }
266
-
247
+
267
248
  &:hover .hy-button__inner {
268
249
  box-shadow:
269
250
  inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
@@ -271,7 +252,7 @@
271
252
  inset 0 0 5px 1px rgba(255, 97, 97, 0.5),
272
253
  inset 0 0 2px 0 rgba(255, 159, 159, 0.5);
273
254
  }
274
-
255
+
275
256
  &:disabled .hy-button__border,
276
257
  &.is-disabled .hy-button__border {
277
258
  background: linear-gradient(
@@ -281,7 +262,7 @@
281
262
  rgba(255, 77, 77, 0.18) 100%
282
263
  );
283
264
  }
284
-
265
+
285
266
  &:disabled .hy-button__inner,
286
267
  &.is-disabled .hy-button__inner {
287
268
  background: #4b0c0c;
@@ -289,7 +270,7 @@
289
270
  inset 0 0 4px 1px rgba(255, 97, 97, 0.2),
290
271
  inset 0 0 2px 0 rgba(255, 159, 159, 0.16);
291
272
  }
292
-
273
+
293
274
  &:disabled .hy-button__text,
294
275
  &.is-disabled .hy-button__text {
295
276
  color: rgba(255, 255, 255, 0.68);
@@ -300,7 +281,7 @@
300
281
  background: rgba(45, 255, 211, 0.32);
301
282
  border: 1px solid rgba(45, 255, 211, 1);
302
283
  box-shadow: 0px 0px 0px 2px rgba(45, 255, 211, 0.5);
303
-
284
+
304
285
  .hy-button__border {
305
286
  background: linear-gradient(
306
287
  90deg,
@@ -309,27 +290,22 @@
309
290
  rgba(45, 255, 211, 0.4) 100%
310
291
  );
311
292
  }
312
-
293
+
313
294
  .hy-button__inner {
314
295
  background: #002932;
315
296
  box-shadow:
316
297
  inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
317
298
  inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
318
299
  }
319
-
300
+
320
301
  .hy-button__text {
321
302
  color: #fff;
322
303
  }
323
-
304
+
324
305
  .hy-button__mask {
325
- background: radial-gradient(
326
- ellipse at center bottom,
327
- #2DFFD3 0%,
328
- #189177 30%,
329
- transparent 60%
330
- );
306
+ background: radial-gradient(ellipse at center bottom, #2dffd3 0%, #189177 30%, transparent 60%);
331
307
  }
332
-
308
+
333
309
  &:hover .hy-button__inner {
334
310
  box-shadow:
335
311
  inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
@@ -337,7 +313,7 @@
337
313
  inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
338
314
  inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
339
315
  }
340
-
316
+
341
317
  &:disabled .hy-button__border,
342
318
  &.is-disabled .hy-button__border {
343
319
  background: linear-gradient(
@@ -347,7 +323,7 @@
347
323
  rgba(45, 255, 211, 0.18) 100%
348
324
  );
349
325
  }
350
-
326
+
351
327
  &:disabled .hy-button__inner,
352
328
  &.is-disabled .hy-button__inner {
353
329
  background: #4b0c0c;
@@ -355,7 +331,7 @@
355
331
  inset 0 0 4px 1px rgba(45, 255, 211, 0.2),
356
332
  inset 0 0 2px 0 rgba(24, 145, 119, 0.16);
357
333
  }
358
-
334
+
359
335
  &:disabled .hy-button__text,
360
336
  &.is-disabled .hy-button__text {
361
337
  color: rgba(255, 255, 255, 0.68);
@@ -363,7 +339,6 @@
363
339
  }
364
340
  }
365
341
 
366
-
367
342
  .hy-button-text {
368
343
  --hy-button-text-color: rgba(var(--hy-auxiliary));
369
344
  --hy-button-font-size: 14px;
@@ -376,6 +351,7 @@
376
351
  background: none;
377
352
  border: none;
378
353
  cursor: pointer;
354
+ position: relative;
379
355
 
380
356
  &:not(.is-disabled) {
381
357
  &:active {
@@ -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),