hy-dispatch-ui-v3 0.2.62 → 0.2.64

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 (232) hide show
  1. package/dist/tailwind.css +4 -5
  2. package/es/api/device.mjs +1 -0
  3. package/es/api/index.mjs +1 -0
  4. package/es/api/sypct.mjs +1 -0
  5. package/es/api/task.mjs +1 -0
  6. package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
  7. package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
  8. package/es/bussiness/hyMapAearchPlace/index.mjs +1 -0
  9. package/es/bussiness/hyMapAearchPlace/js/index.mjs +39 -42
  10. package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +24 -5
  11. package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +2 -0
  12. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
  13. package/es/components/hyAudioPlayer/index.mjs +1 -0
  14. package/es/components/hyAudioPlayer/js/index.mjs +5 -1
  15. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +4 -0
  16. package/es/components/hyBatchUploadDialog/index.mjs +1 -0
  17. package/es/components/hyButton/button.vue.mjs +3 -2
  18. package/es/components/hyButton/index.mjs +1 -0
  19. package/es/components/hyButton/style/button.scss +9 -2
  20. package/es/components/hyConfigProvider/configProvider.vue.mjs +2 -1
  21. package/es/components/hyConfigProvider/index.mjs +1 -0
  22. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +4 -0
  23. package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
  24. package/es/components/hyConfirmDialog/index.mjs +1 -0
  25. package/es/components/hyCutter/cutter.vue.mjs +5 -2
  26. package/es/components/hyCutter/index.mjs +1 -0
  27. package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
  28. package/es/components/hyDatePicker/index.mjs +1 -0
  29. package/es/components/hyDialog/dialog.vue.mjs +99 -28
  30. package/es/components/hyDialog/index.mjs +1 -0
  31. package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
  32. package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
  33. package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
  34. package/es/components/hyForm/cpns/locationSelect.vue.mjs +5 -1
  35. package/es/components/hyForm/form.vue.mjs +9 -3
  36. package/es/components/hyForm/index.mjs +1 -0
  37. package/es/components/hyForm/js/index.mjs +3 -1
  38. package/es/components/hyForm/js/useAppForm.mjs +4 -2
  39. package/es/components/hyIcon/icon.vue.mjs +2 -1
  40. package/es/components/hyIcon/index.mjs +1 -0
  41. package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
  42. package/es/components/hyIconBox/index.mjs +1 -0
  43. package/es/components/hyInput/index.mjs +1 -0
  44. package/es/components/hyInput/input.vue.mjs +3 -1
  45. package/es/components/hyInput/inputSearch.vue.mjs +2 -1
  46. package/es/components/hyLoading/index.mjs +41 -0
  47. package/es/components/hyMap/index.mjs +1 -0
  48. package/es/components/hyMap/js/index.mjs +82 -0
  49. package/es/components/hyMap/map.vue.mjs +1 -0
  50. package/es/components/hyMenu/index.mjs +1 -0
  51. package/es/components/hyMenu/menu.vue.mjs +4 -0
  52. package/es/components/hyNoPermissions/index.mjs +1 -0
  53. package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
  54. package/es/components/hyNoPermissionsMap/index.mjs +1 -0
  55. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
  56. package/es/components/hyOrgCascader/index.mjs +1 -0
  57. package/es/components/hyOrgCascader/js/index.mjs +2 -0
  58. package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
  59. package/es/components/hyRadioGroup/index.mjs +1 -0
  60. package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
  61. package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
  62. package/es/components/hySearch/index.mjs +1 -0
  63. package/es/components/hySearch/js/index.mjs +4 -2
  64. package/es/components/hySearch/js/useAppSearch.mjs +4 -2
  65. package/es/components/hySearch/search.vue.mjs +3 -0
  66. package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
  67. package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
  68. package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
  69. package/es/components/hyTable/cpns/virtualTable.vue.mjs +27 -45
  70. package/es/components/hyTable/index.mjs +1 -0
  71. package/es/components/hyTable/js/index.mjs +80 -28
  72. package/es/components/hyTable/js/search.mjs +2 -0
  73. package/es/components/hyTable/js/useAppTable.mjs +9 -5
  74. package/es/components/hyTable/table.vue.mjs +16 -8
  75. package/es/components/hyTableActionButton/index.mjs +1 -0
  76. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +8 -7
  77. package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
  78. package/es/components/hyTableForm/index.mjs +1 -0
  79. package/es/components/hyTableForm/js/index.mjs +36 -0
  80. package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
  81. package/es/components/hyTableForm/tableForm.vue.mjs +4 -2
  82. package/es/components/hyTimePicker/index.mjs +1 -0
  83. package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
  84. package/es/components/hyTooltip/index.mjs +1 -0
  85. package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
  86. package/es/components/hyTree/index.mjs +1 -0
  87. package/es/components/hyTree/js/index.mjs +49 -14
  88. package/es/components/hyTree/tree.vue.mjs +13 -6
  89. package/es/components/hyUserAvatar/index.mjs +1 -0
  90. package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
  91. package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
  92. package/es/components/hyVideoPlayer/index.mjs +1 -0
  93. package/es/components/hyVideoPlayer/js/index.mjs +7 -2
  94. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
  95. package/es/components/index.mjs +1 -0
  96. package/es/hooks/useGlobalConfig.mjs +1 -1
  97. package/es/hooks/useLocale.mjs +4 -2
  98. package/es/hooks/useResizeHandler.mjs +1 -0
  99. package/es/hooks/useResizeObserver.mjs +1 -1
  100. package/es/index.mjs +6 -0
  101. package/es/locale/en.mjs +1 -2
  102. package/es/locale/zh_CN.mjs +1 -2
  103. package/es/make-installer.mjs +1 -0
  104. package/es/static/hy-svg-icons/hy-icon-ops-list-lod.js +14 -0
  105. package/es/utils/file.mjs +1 -0
  106. package/es/utils/form.mjs +2 -1
  107. package/es/utils/handler.mjs +2 -0
  108. package/es/utils/index.mjs +2 -0
  109. package/es/utils/input.mjs +1 -0
  110. package/es/utils/is.mjs +1 -0
  111. package/es/utils/map/hook/bigMap.mjs +3 -2
  112. package/es/utils/map/hook/gaode.mjs +2 -2
  113. package/es/utils/map/hook/leafletjs.mjs +7 -1
  114. package/es/utils/map/index.mjs +12 -0
  115. package/es/utils/map/js/webgis.mjs +4 -1
  116. package/es/utils/sharedContent.mjs +12 -0
  117. package/es/version.mjs +1 -1
  118. package/lib/api/device.js +1 -0
  119. package/lib/api/index.js +1 -0
  120. package/lib/api/sypct.js +1 -0
  121. package/lib/api/task.js +1 -0
  122. package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
  123. package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
  124. package/lib/bussiness/hyMapAearchPlace/index.js +1 -0
  125. package/lib/bussiness/hyMapAearchPlace/js/index.js +37 -40
  126. package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +23 -4
  127. package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +2 -0
  128. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
  129. package/lib/components/hyAudioPlayer/index.js +1 -0
  130. package/lib/components/hyAudioPlayer/js/index.js +5 -1
  131. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +4 -0
  132. package/lib/components/hyBatchUploadDialog/index.js +1 -0
  133. package/lib/components/hyButton/button.vue.js +2 -1
  134. package/lib/components/hyButton/index.js +1 -0
  135. package/lib/components/hyButton/style/button.scss +9 -2
  136. package/lib/components/hyConfigProvider/configProvider.vue.js +1 -0
  137. package/lib/components/hyConfigProvider/index.js +1 -0
  138. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +4 -0
  139. package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
  140. package/lib/components/hyConfirmDialog/index.js +1 -0
  141. package/lib/components/hyCutter/cutter.vue.js +3 -0
  142. package/lib/components/hyCutter/index.js +1 -0
  143. package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
  144. package/lib/components/hyDatePicker/index.js +1 -0
  145. package/lib/components/hyDialog/dialog.vue.js +97 -26
  146. package/lib/components/hyDialog/index.js +1 -0
  147. package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
  148. package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
  149. package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
  150. package/lib/components/hyForm/cpns/locationSelect.vue.js +5 -1
  151. package/lib/components/hyForm/form.vue.js +9 -3
  152. package/lib/components/hyForm/index.js +1 -0
  153. package/lib/components/hyForm/js/index.js +3 -1
  154. package/lib/components/hyForm/js/useAppForm.js +3 -1
  155. package/lib/components/hyIcon/icon.vue.js +1 -0
  156. package/lib/components/hyIcon/index.js +1 -0
  157. package/lib/components/hyIconBox/iconBox.vue.js +1 -0
  158. package/lib/components/hyIconBox/index.js +1 -0
  159. package/lib/components/hyInput/index.js +1 -0
  160. package/lib/components/hyInput/input.vue.js +2 -0
  161. package/lib/components/hyInput/inputSearch.vue.js +1 -0
  162. package/lib/components/hyLoading/index.js +47 -0
  163. package/lib/components/hyMap/index.js +1 -0
  164. package/lib/components/hyMap/js/index.js +82 -0
  165. package/lib/components/hyMap/map.vue.js +1 -0
  166. package/lib/components/hyMenu/index.js +1 -0
  167. package/lib/components/hyMenu/menu.vue.js +4 -0
  168. package/lib/components/hyNoPermissions/index.js +1 -0
  169. package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
  170. package/lib/components/hyNoPermissionsMap/index.js +1 -0
  171. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
  172. package/lib/components/hyOrgCascader/index.js +1 -0
  173. package/lib/components/hyOrgCascader/js/index.js +2 -0
  174. package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
  175. package/lib/components/hyRadioGroup/index.js +1 -0
  176. package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
  177. package/lib/components/hySearch/cpns/searchItem.vue.js +2 -0
  178. package/lib/components/hySearch/index.js +1 -0
  179. package/lib/components/hySearch/js/index.js +3 -1
  180. package/lib/components/hySearch/js/useAppSearch.js +4 -2
  181. package/lib/components/hySearch/search.vue.js +3 -0
  182. package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
  183. package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
  184. package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
  185. package/lib/components/hyTable/cpns/virtualTable.vue.js +25 -43
  186. package/lib/components/hyTable/index.js +1 -0
  187. package/lib/components/hyTable/js/index.js +79 -27
  188. package/lib/components/hyTable/js/search.js +2 -0
  189. package/lib/components/hyTable/js/useAppTable.js +8 -4
  190. package/lib/components/hyTable/table.vue.js +15 -7
  191. package/lib/components/hyTableActionButton/index.js +1 -0
  192. package/lib/components/hyTableActionButton/tableActionButton.vue.js +7 -6
  193. package/lib/components/hyTableForm/batchTableForm.vue.js +15 -12
  194. package/lib/components/hyTableForm/index.js +1 -0
  195. package/lib/components/hyTableForm/js/index.js +36 -0
  196. package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
  197. package/lib/components/hyTableForm/tableForm.vue.js +12 -10
  198. package/lib/components/hyTimePicker/index.js +1 -0
  199. package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
  200. package/lib/components/hyTooltip/index.js +1 -0
  201. package/lib/components/hyTooltip/tooltip.vue.js +2 -0
  202. package/lib/components/hyTree/index.js +1 -0
  203. package/lib/components/hyTree/js/index.js +48 -13
  204. package/lib/components/hyTree/tree.vue.js +13 -6
  205. package/lib/components/hyUserAvatar/index.js +1 -0
  206. package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
  207. package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
  208. package/lib/components/hyVideoPlayer/index.js +1 -0
  209. package/lib/components/hyVideoPlayer/js/index.js +7 -2
  210. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
  211. package/lib/components/index.js +56 -53
  212. package/lib/hooks/useLocale.js +3 -1
  213. package/lib/hooks/useResizeHandler.js +1 -0
  214. package/lib/index.js +70 -61
  215. package/lib/locale/en.js +1 -2
  216. package/lib/locale/zh_CN.js +1 -2
  217. package/lib/make-installer.js +1 -0
  218. package/lib/static/hy-svg-icons/hy-icon-ops-list-lod.js +14 -0
  219. package/lib/utils/file.js +1 -0
  220. package/lib/utils/form.js +1 -0
  221. package/lib/utils/handler.js +2 -0
  222. package/lib/utils/index.js +3 -0
  223. package/lib/utils/input.js +1 -0
  224. package/lib/utils/is.js +1 -0
  225. package/lib/utils/map/hook/bigMap.js +3 -2
  226. package/lib/utils/map/hook/gaode.js +1 -1
  227. package/lib/utils/map/hook/leafletjs.js +7 -1
  228. package/lib/utils/map/index.js +12 -0
  229. package/lib/utils/map/js/webgis.js +4 -1
  230. package/lib/utils/sharedContent.js +14 -0
  231. package/lib/version.js +1 -1
  232. package/package.json +2 -1
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var datePicker = require('./datePicker.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyDatePicker = handler.withInstall(datePicker.default);
@@ -4,8 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ require('../index.js');
8
+ require('../../hooks/index.js');
9
+ require('../../utils/index.js');
7
10
  var useLocale = require('../../hooks/useLocale.js');
8
11
  var index = require('../hyButton/index.js');
12
+ var is = require('../../utils/is.js');
9
13
  var index$1 = require('../hyIcon/index.js');
10
14
 
11
15
  import "./style/dialog.scss";
@@ -13,21 +17,22 @@ import "./style/dialog.scss";
13
17
  const __default__ = vue.defineComponent({
14
18
  name: "HyDialog"
15
19
  });
16
- const svg = `
17
- <path class="path" d="
18
- M 30 15
19
- L 28 17
20
- M 25.61 25.61
21
- A 15 15, 0, 0, 1, 15 30
22
- A 15 15, 0, 1, 1, 27.99 7.5
23
- L 15 15
24
- " style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
25
- `;
26
20
  const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
27
21
  props: /* @__PURE__ */ vue.mergeModels({
28
22
  title: { type: String, default: "\u6807\u9898" },
29
23
  titleAlign: { type: String, default: "default" },
30
24
  // default、center
25
+ titleBasicInfoList: {
26
+ type: Array,
27
+ default: () => {
28
+ return [
29
+ // {
30
+ // label: 'label',
31
+ // value: 'value',
32
+ // },
33
+ ];
34
+ }
35
+ },
31
36
  dialogType: {
32
37
  type: String,
33
38
  default: "default"
@@ -171,15 +176,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
171
176
  function setDragLevelIndex(initDragLevelIndex) {
172
177
  dragLevelIndex.value = initDragLevelIndex;
173
178
  if (minimized.value) runAnim();
174
- minimized.value = false;
175
- emits("onMinimized", minimized.value);
179
+ if (minimized.value !== false) {
180
+ minimized.value = false;
181
+ emits("onMinimized", {
182
+ title: props.title,
183
+ type: minimized.value
184
+ });
185
+ }
176
186
  }
177
187
  function hideToWorkspace() {
178
188
  runAnim(() => {
179
189
  dragLevelIndex.value = 1;
180
190
  });
181
191
  minimized.value = true;
182
- emits("onMinimized", minimized.value);
192
+ emits("onMinimized", {
193
+ title: props.title,
194
+ type: minimized.value
195
+ });
183
196
  }
184
197
  const dialogTestRef = vue.ref();
185
198
  function dialogMousedown(e) {
@@ -237,13 +250,77 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
237
250
  class: vue.normalizeClass(["box-border w-full border-0 border-b border-solid border-background-3 px-4 py-[10px] text-main text-sm font-bold flex justify-between items-center relative", { "!justify-center": __props.titleAlign === "center" }])
238
251
  },
239
252
  [
240
- vue.createElementVNode("div", { class: "flex-grow w-0 mr-2 over_one_line" }, [
253
+ vue.createElementVNode("div", { class: "flex-grow w-0 mr-2" }, [
241
254
  vue.renderSlot(_ctx.$slots, "title", {}, () => [
242
- vue.createTextVNode(
243
- vue.toDisplayString(__props.title),
244
- 1
245
- /* TEXT */
246
- )
255
+ vue.createElementVNode("div", { class: "flex items-center" }, [
256
+ vue.createElementVNode(
257
+ "div",
258
+ { class: "over_one_line" },
259
+ vue.toDisplayString(__props.title),
260
+ 1
261
+ /* TEXT */
262
+ ),
263
+ vue.renderSlot(_ctx.$slots, "title-basic-info", {}, () => [
264
+ __props.titleBasicInfoList.length !== 0 ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPopover), {
265
+ key: 0,
266
+ "show-after": 500,
267
+ placement: "bottom-start",
268
+ width: "200",
269
+ trigger: "hover"
270
+ }, {
271
+ reference: vue.withCtx(() => [
272
+ vue.createElementVNode("span", { class: "text-xs text-theme ml-2 flex items-center flex-shrink-0" }, [
273
+ vue.createVNode(vue.unref(index$1.HyIcon), {
274
+ "svg-name": "dispatch-linear-details",
275
+ class: "!w-3 !h-3 mr-1"
276
+ }),
277
+ vue.createElementVNode("span", null, "\u57FA\u7840\u4FE1\u606F")
278
+ ])
279
+ ]),
280
+ default: vue.withCtx(() => [
281
+ vue.createElementVNode("div", { class: "text-sm text-main" }, [
282
+ vue.createElementVNode("div", { class: "text-auxiliary h-[30px] flex items-center justify-center border-b border-border box-border text-xs" }, " \u5F53\u524D\u64CD\u4F5C\u5BF9\u8C61 "),
283
+ vue.createElementVNode("ul", { class: "py-2 max-h-[500px] overflow-auto" }, [
284
+ (vue.openBlock(true), vue.createElementBlock(
285
+ vue.Fragment,
286
+ null,
287
+ vue.renderList(__props.titleBasicInfoList, (basicInfoItem, index) => {
288
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
289
+ key: index,
290
+ class: "flex px-2 py-1 text-xs"
291
+ }, [
292
+ vue.createElementVNode(
293
+ "div",
294
+ { class: "flex-shrink-0 font-bold" },
295
+ vue.toDisplayString(basicInfoItem.label) + "\uFF1A ",
296
+ 1
297
+ /* TEXT */
298
+ ),
299
+ vue.createElementVNode(
300
+ "div",
301
+ { class: "break-all" },
302
+ vue.toDisplayString(basicInfoItem.value),
303
+ 1
304
+ /* TEXT */
305
+ )
306
+ ])), [
307
+ [
308
+ vue.vShow,
309
+ vue.unref(is.isFunction)(basicInfoItem.show) ? basicInfoItem.show() : true
310
+ ]
311
+ ]);
312
+ }),
313
+ 128
314
+ /* KEYED_FRAGMENT */
315
+ ))
316
+ ])
317
+ ])
318
+ ]),
319
+ _: 1
320
+ /* STABLE */
321
+ })) : vue.createCommentVNode("v-if", true)
322
+ ])
323
+ ])
247
324
  ])
248
325
  ]),
249
326
  vue.createElementVNode("div", { class: "text-lg cursor-pointer" }, [
@@ -267,13 +344,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
267
344
  )
268
345
  ]),
269
346
  default: vue.withCtx(() => [
270
- vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
271
- "element-loading-text": "\u52A0\u8F7D\u4E2D...",
272
- "element-loading-svg": svg,
273
- "element-loading-svg-view-box": "-10, -10, 50, 50",
274
- "element-loading-background": "rgba(0, 0, 0, 0.8)",
275
- class: "h-full flex flex-col text-main"
276
- }, [
347
+ vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", { class: "h-full flex flex-col text-main" }, [
277
348
  vue.renderSlot(_ctx.$slots, "before-content"),
278
349
  vue.renderSlot(_ctx.$slots, "content", {}, () => [
279
350
  vue.createElementVNode(
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var dialog = require('./dialog.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyDialog = handler.withInstall(dialog.default);
@@ -5,6 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
+ require('../../../hooks/index.js');
9
+ require('../../index.js');
10
+ require('../../../utils/index.js');
8
11
  var index = require('../js/index.js');
9
12
  var formItem = require('./formItem.vue.js');
10
13
  var useAppForm = require('../js/useAppForm.js');
@@ -63,9 +66,19 @@ const _sfc_main = {
63
66
  }
64
67
  });
65
68
  const containerRef = vue.useTemplateRef("containerRef");
66
- vue.ref(0);
67
- vue.ref(false);
68
- vue.ref(null);
69
+ const containerHeight = vue.ref(0);
70
+ const isExpand = vue.ref(false);
71
+ const isExpandHover = vue.ref(null);
72
+ function onExpandHandler(column) {
73
+ containerHeight.value = containerRef.value.clientHeight;
74
+ isExpand.value = !isExpand.value;
75
+ }
76
+ function onExpandMouseenter(column) {
77
+ isExpandHover.value = true;
78
+ }
79
+ function onExpandMouseleave(column) {
80
+ isExpandHover.value = false;
81
+ }
69
82
  const containerStyle = vue.computed(() => {
70
83
  const columnNum = is.isNumber(props.column.columnNum) && props.column.columnNum > 0 ? props.column.columnNum : is.isNumber(props.columnNum) && props.columnNum > 0 ? props.columnNum || 1 : 1;
71
84
  return {
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
+ require('../../../hooks/index.js');
9
+ require('../../../utils/index.js');
8
10
  var formItem = require('./formItem.vue.js');
9
11
  var useLocale = require('../../../hooks/useLocale.js');
10
12
  var is = require('../../../utils/is.js');
@@ -4,7 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ require('../../../utils/index.js');
8
+ require('../../index.js');
7
9
  var index = require('../js/index.js');
10
+ require('../../../hooks/index.js');
8
11
  var useLocale = require('../../../hooks/useLocale.js');
9
12
  var is = require('../../../utils/is.js');
10
13
  var form = require('../../../utils/form.js');
@@ -4,6 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ require('../../../hooks/index.js');
8
+ require('../../../utils/index.js');
9
+ require('../../index.js');
7
10
  var formItem = require('./formItem.vue.js');
8
11
  var useLocale = require('../../../hooks/useLocale.js');
9
12
  var is = require('../../../utils/is.js');
@@ -53,7 +56,7 @@ const _sfc_main = {
53
56
  default: false
54
57
  }
55
58
  },
56
- emits: ["setMapSize"],
59
+ emits: ["setMapSize", "complete"],
57
60
  setup(__props, { expose: __expose, emit: __emit }) {
58
61
  const props = __props;
59
62
  const emits = __emit;
@@ -209,6 +212,7 @@ const _sfc_main = {
209
212
  setMarker(res.latlng);
210
213
  throughCoordinatePosition(latlng.lng, latlng.lat);
211
214
  });
215
+ emits("complete");
212
216
  }
213
217
  function setMarker({ lat, lng }) {
214
218
  if (marker) {
@@ -4,6 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ require('@element-plus/icons-vue');
8
+ require('../../hooks/index.js');
9
+ require('../../utils/index.js');
7
10
  var formItem = require('./cpns/formItem.vue.js');
8
11
  var extraItem = require('./cpns/extraItem.vue.js');
9
12
  var arrayItem = require('./cpns/arrayItem.vue.js');
@@ -54,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
54
57
  // 'large' | 'default' | 'small'
55
58
  }
56
59
  },
57
- emits: ["on-allMapSelect"],
60
+ emits: ["on-allMapSelect", "complete"],
58
61
  setup(__props, { expose: __expose, emit: __emit }) {
59
62
  const emit = __emit;
60
63
  const props = __props;
@@ -82,6 +85,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
82
85
  allMapSelect.value = !allMapSelect.value;
83
86
  emit("on-allMapSelect", allMapSelect.value);
84
87
  }
88
+ function complete() {
89
+ emit("complete");
90
+ }
85
91
  __expose({
86
92
  validate: async (callback) => {
87
93
  await vue.nextTick();
@@ -132,7 +138,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
132
138
  rules: __props.rules,
133
139
  "label-position": "top",
134
140
  size: __props.size,
135
- class: "px-2",
136
141
  "hide-required-asterisk": ""
137
142
  }, _ctx.$attrs), {
138
143
  default: vue.withCtx(() => [
@@ -274,7 +279,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
274
279
  size: __props.size,
275
280
  style: vue.normalizeStyle(vue.unref(index.columnItemStyle)(props, column)),
276
281
  allMapSelect: allMapSelect.value,
277
- onSetMapSize: setMapSize
282
+ onSetMapSize: setMapSize,
283
+ onComplete: complete
278
284
  }, null, 8, ["model", "column", "rules", "columnNum", "loading", "disabled", "readonly", "size", "style", "allMapSelect"])) : vue.createCommentVNode("v-if", true)
279
285
  ],
280
286
  64
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var form = require('./form.vue.js');
6
+ require('../../utils/index.js');
6
7
  var useAppForm = require('./js/useAppForm.js');
7
8
  var handler = require('../../utils/handler.js');
8
9
 
@@ -1,8 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
- var is = require('../../../utils/is.js');
4
+ require('../../../utils/index.js');
5
+ require('../../../hooks/index.js');
5
6
  var handler = require('../../../utils/handler.js');
7
+ var is = require('../../../utils/is.js');
6
8
  var form = require('../../../utils/form.js');
7
9
  var useLocale = require('../../../hooks/useLocale.js');
8
10
 
@@ -1,9 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
+ require('../../../hooks/index.js');
5
+ require('../../../utils/index.js');
6
+ var form = require('../../../utils/form.js');
4
7
  var handler = require('../../../utils/handler.js');
5
8
  var is = require('../../../utils/is.js');
6
- var form = require('../../../utils/form.js');
7
9
 
8
10
  function appFormItemHandler(column = {}) {
9
11
  const label = form.genColumnDefaultLabel(column);
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
+ require('../../hooks/index.js');
6
7
  var useEnsureHyIcon = require('../../hooks/useEnsureHyIcon.js');
7
8
 
8
9
  import "./style/icon.scss";
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var icon = require('./icon.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyIcon = handler.withInstall(icon.default);
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ require('../index.js');
7
8
  var index = require('../hyIcon/index.js');
8
9
 
9
10
  import "./style/iconBox.scss";
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var iconBox = require('./iconBox.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyIconBox = handler.withInstall(iconBox.default);
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var input = require('./input.vue.js');
6
6
  var inputSearch = require('./inputSearch.vue.js');
7
+ require('../../utils/index.js');
7
8
  var handler = require('../../utils/handler.js');
8
9
 
9
10
  const HyInput = handler.withInstall(input.default);
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
+ require('../../utils/index.js');
7
8
  var form = require('../../utils/form.js');
8
9
 
9
10
  const __default__ = vue.defineComponent({
@@ -29,6 +30,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
29
30
  emits: /* @__PURE__ */ vue.mergeModels([], ["update:modelValue"]),
30
31
  setup(__props, { expose: __expose, emit: __emit }) {
31
32
  const props = __props;
33
+ const emits = __emit;
32
34
  const modelValue = vue.useModel(__props, "modelValue");
33
35
  const inputRef = vue.useTemplateRef("inputRef");
34
36
  const clearSpaceType = vue.computed(() => {
@@ -22,6 +22,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
22
22
  }),
23
23
  emits: /* @__PURE__ */ vue.mergeModels(["search"], ["update:modelValue"]),
24
24
  setup(__props, { expose: __expose, emit: __emit }) {
25
+ const props = __props;
25
26
  const emits = __emit;
26
27
  const modelValue = vue.useModel(__props, "modelValue");
27
28
  const inputRef = vue.useTemplateRef("inputRef");
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var elementPlus = require('element-plus');
6
+ require('../../utils/index.js');
7
+ require('../../hooks/index.js');
8
+ var sharedContent = require('../../utils/sharedContent.js');
9
+ var useLocale = require('../../hooks/useLocale.js');
10
+
11
+ const loadingConfig = {
12
+ svg: sharedContent.loadingSvg,
13
+ svgViewBox: "-10, -10, 50, 50",
14
+ background: "rgba(0, 0, 0, 0.8)"
15
+ };
16
+ const HyLoading = {
17
+ name: "HyLoading",
18
+ install: (app) => {
19
+ HyLoading.service._context = app._context;
20
+ HyLoading.directive._context = app._context;
21
+ app.directive("loading", HyLoading.directive);
22
+ app.config.globalProperties.$loading = HyLoading;
23
+ },
24
+ directive: {
25
+ ...elementPlus.ElLoading.directive,
26
+ mounted: function(el, binding, vnode, prevVnode) {
27
+ const { t } = useLocale.useLocale();
28
+ el.setAttribute("element-loading-text", `${t("hy.loading")}...`);
29
+ el.setAttribute("element-loading-svg", loadingConfig.svg);
30
+ el.setAttribute("element-loading-svg-view-box", loadingConfig.svgViewBox);
31
+ el.setAttribute("element-loading-background", loadingConfig.background);
32
+ elementPlus.ElLoading.directive.mounted.call(this, el, binding, vnode, prevVnode);
33
+ }
34
+ },
35
+ service: function(options = {}) {
36
+ const { t } = useLocale.useLocale();
37
+ return elementPlus.ElLoading.service.call(this, {
38
+ text: `${t("hy.loading")}...`,
39
+ ...loadingConfig,
40
+ ...options
41
+ });
42
+ }
43
+ };
44
+
45
+ exports.ElLoading = HyLoading;
46
+ exports.HyLoading = HyLoading;
47
+ exports.default = HyLoading;
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var map = require('./map.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyMap = handler.withInstall(map.default);
@@ -12,6 +12,88 @@ const useAppMapWrapper = (hy) => {
12
12
  const hyMap = null;
13
13
  const map = null;
14
14
  function newMap(mapType) {
15
+ const mapFilters = [
16
+ {
17
+ name: "\u6697\u9ED1\u56FE\u5C42",
18
+ filter: "grayscale(98%) invert(100%) sepia(20%) hue-rotate(180deg) saturate(1600%) brightness(80%) contrast(90%)"
19
+ },
20
+ {
21
+ name: "\u590D\u53E4\u98CE\u683C",
22
+ filter: "sepia(80%) saturate(200%) hue-rotate(-20deg) contrast(90%) brightness(90%)"
23
+ },
24
+ {
25
+ name: "\u84DD\u8272\u8C03",
26
+ filter: "grayscale(30%) sepia(10%) hue-rotate(180deg) saturate(200%) brightness(95%) contrast(105%)"
27
+ },
28
+ {
29
+ name: "\u519B\u4E8B\u98CE\u683C",
30
+ filter: "grayscale(40%) sepia(40%) hue-rotate(-40deg) saturate(150%) brightness(90%) contrast(110%)"
31
+ },
32
+ {
33
+ name: "\u9713\u8679\u98CE\u683C",
34
+ filter: "invert(100%) hue-rotate(180deg) saturate(2000%) brightness(110%) contrast(120%)"
35
+ },
36
+ {
37
+ name: "\u6C34\u5F69\u98CE\u683C",
38
+ filter: "blur(1px) brightness(105%) contrast(95%) saturate(120%)"
39
+ },
40
+ {
41
+ name: "\u9ED1\u767D\u9AD8\u5BF9\u6BD4\u5EA6",
42
+ filter: "grayscale(100%) contrast(130%) brightness(105%) saturate(120%)"
43
+ },
44
+ {
45
+ name: "\u9634\u5929\u98CE\u683C",
46
+ filter: "grayscale(30%) contrast(90%) brightness(95%) saturate(80%)"
47
+ },
48
+ {
49
+ name: "\u9633\u5149\u660E\u5A9A",
50
+ filter: "sepia(10%) saturate(120%) brightness(110%) contrast(105%)"
51
+ },
52
+ {
53
+ name: "\u591C\u95F4\u6A21\u5F0F",
54
+ filter: "grayscale(80%) invert(100%) sepia(30%) hue-rotate(180deg) saturate(200%) brightness(90%) contrast(95%)"
55
+ },
56
+ {
57
+ name: "\u6E29\u6696\u8272\u8C03",
58
+ filter: "sepia(40%) hue-rotate(-10deg) saturate(130%) brightness(105%) contrast(100%)"
59
+ },
60
+ {
61
+ name: "\u51B7\u8272\u8C03",
62
+ filter: "grayscale(20%) sepia(10%) hue-rotate(190deg) saturate(150%) brightness(105%) contrast(105%)"
63
+ },
64
+ {
65
+ name: "\u9AD8\u5BF9\u6BD4\u5EA6",
66
+ filter: "contrast(150%) brightness(105%) saturate(110%)"
67
+ },
68
+ {
69
+ name: "\u4F4E\u9971\u548C\u5EA6",
70
+ filter: "saturate(30%) brightness(105%) contrast(105%)"
71
+ },
72
+ {
73
+ name: "\u6DF1\u8910\u8272",
74
+ filter: "sepia(70%) saturate(150%) brightness(90%) contrast(105%)"
75
+ },
76
+ {
77
+ name: "\u9752\u7EFF\u8272",
78
+ filter: "hue-rotate(180deg) saturate(150%) brightness(105%) contrast(105%)"
79
+ },
80
+ {
81
+ name: "\u7D2B\u7EA2\u8272",
82
+ filter: "hue-rotate(270deg) saturate(200%) brightness(105%) contrast(105%)"
83
+ },
84
+ {
85
+ name: "\u67D4\u548C\u590D\u53E4",
86
+ filter: "sepia(50%) saturate(120%) contrast(90%) brightness(105%)"
87
+ },
88
+ {
89
+ name: "\u6DE1\u96C5",
90
+ filter: "saturate(80%) brightness(105%) contrast(95%)"
91
+ },
92
+ {
93
+ name: "\u5F3A\u70C8",
94
+ filter: "saturate(180%) brightness(105%) contrast(115%)"
95
+ }
96
+ ];
15
97
  hy.hyMap = new index.InitMap({
16
98
  ...mapConfig,
17
99
  mapType,
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
+ require('../../hooks/index.js');
6
7
  var index = require('./js/index.js');
7
8
  var useMixins = require('../../hooks/useMixins.js');
8
9
  var useMapConfig = require('../../hooks/useMapConfig.js');
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var menu = require('./menu.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyMenu = handler.withInstall(menu.default);
@@ -3,6 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
+ require('element-plus');
7
+ require('@element-plus/icons-vue');
8
+ require('../index.js');
6
9
  var index = require('../hyTooltip/index.js');
7
10
  var index$1 = require('../hyIcon/index.js');
8
11
 
@@ -31,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
31
34
  }),
32
35
  emits: /* @__PURE__ */ vue.mergeModels(["select", "open", "close"], ["update:expand"]),
33
36
  setup(__props, { expose: __expose, emit: __emit }) {
37
+ const props = __props;
34
38
  const emits = __emit;
35
39
  const expand = vue.useModel(__props, "expand");
36
40
  function onClickHandler(item) {
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var noPermissions = require('./noPermissions.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyNoPermissions = handler.withInstall(noPermissions.default);
@@ -3,6 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
+ require('../../hooks/index.js');
7
+ require('../index.js');
6
8
  var useLocale = require('../../hooks/useLocale.js');
7
9
  var index = require('../hyIcon/index.js');
8
10
 
@@ -20,6 +22,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
20
22
  },
21
23
  emits: [],
22
24
  setup(__props, { expose: __expose, emit: __emit }) {
25
+ const props = __props;
26
+ const emits = __emit;
23
27
  const { t } = useLocale.useLocale();
24
28
  __expose({});
25
29
  return (_ctx, _cache) => {
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var noPermissionsMap = require('./noPermissionsMap.vue.js');
6
+ require('../../utils/index.js');
6
7
  var handler = require('../../utils/handler.js');
7
8
 
8
9
  const HyNoPermissionsMap = handler.withInstall(noPermissionsMap.default);