@a2simcode/ui 0.0.240 → 0.0.241

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 (356) hide show
  1. package/.cursor/skills/ui-component-helper/README.md +86 -86
  2. package/.cursor/skills/ui-component-helper/SKILL.md +115 -115
  3. package/LICENSE +53 -53
  4. package/README.md +156 -156
  5. package/dist/simcode-ui.es.js +147 -145
  6. package/dist/simcode-ui.umd.js +1 -1
  7. package/dist/stats.html +1 -1
  8. package/dist/ui.css +1 -1
  9. package/docs/components/autocomplete.md +89 -89
  10. package/docs/components/barcode.md +101 -101
  11. package/docs/components/button-select.md +24 -24
  12. package/docs/components/button.md +117 -117
  13. package/docs/components/buttons.md +119 -119
  14. package/docs/components/cascader-select.md +114 -114
  15. package/docs/components/checkbox.md +114 -114
  16. package/docs/components/code-mirror.md +85 -85
  17. package/docs/components/collapse.md +26 -26
  18. package/docs/components/comp.md +71 -71
  19. package/docs/components/count-up.md +24 -24
  20. package/docs/components/count.md +24 -24
  21. package/docs/components/data-panel.md +24 -24
  22. package/docs/components/date.md +76 -76
  23. package/docs/components/dialog-full.md +112 -112
  24. package/docs/components/dialog.md +127 -127
  25. package/docs/components/divider.md +24 -24
  26. package/docs/components/drawer.md +127 -127
  27. package/docs/components/dynamic-layer.md +118 -118
  28. package/docs/components/echarts.md +72 -72
  29. package/docs/components/editor.md +24 -24
  30. package/docs/components/form.md +87 -87
  31. package/docs/components/guid.md +39 -39
  32. package/docs/components/hpanel.md +24 -24
  33. package/docs/components/icon.md +56 -56
  34. package/docs/components/input-button.md +24 -24
  35. package/docs/components/input-code.md +24 -24
  36. package/docs/components/input-color.md +114 -114
  37. package/docs/components/input-layer.md +56 -56
  38. package/docs/components/input-rows.md +370 -370
  39. package/docs/components/input-tag.md +50 -50
  40. package/docs/components/input.md +129 -129
  41. package/docs/components/layer-form.md +61 -61
  42. package/docs/components/layer.md +127 -127
  43. package/docs/components/layout.md +132 -132
  44. package/docs/components/map.md +24 -24
  45. package/docs/components/menu.md +121 -121
  46. package/docs/components/meta/button.ts +212 -212
  47. package/docs/components/meta/buttons.ts +76 -76
  48. package/docs/components/meta/code-mirror.ts +108 -108
  49. package/docs/components/meta/comp.ts +236 -236
  50. package/docs/components/meta/date.ts +267 -267
  51. package/docs/components/meta/echarts.ts +64 -64
  52. package/docs/components/meta/form-item.ts +50 -50
  53. package/docs/components/meta/form.ts +181 -181
  54. package/docs/components/meta/input-button.ts +175 -165
  55. package/docs/components/meta/input-cards.ts +112 -112
  56. package/docs/components/meta/input-code.ts +161 -151
  57. package/docs/components/meta/input-color.ts +243 -243
  58. package/docs/components/meta/input-layer.ts +382 -382
  59. package/docs/components/meta/input-rows.ts +119 -119
  60. package/docs/components/meta/layer-form.ts +74 -74
  61. package/docs/components/meta/map.ts +68 -68
  62. package/docs/components/meta/panel.ts +152 -152
  63. package/docs/components/meta/radio.ts +55 -55
  64. package/docs/components/meta/select.ts +279 -279
  65. package/docs/components/meta/slider.ts +270 -270
  66. package/docs/components/meta/table-panel.ts +266 -260
  67. package/docs/components/meta/table.ts +403 -403
  68. package/docs/components/meta/tabs.ts +146 -146
  69. package/docs/components/meta/title.ts +91 -91
  70. package/docs/components/meta/tree-select.ts +199 -199
  71. package/docs/components/meta/tree.ts +219 -219
  72. package/docs/components/meta/vpanel.ts +19 -19
  73. package/docs/components/meta/workflow-viewer.ts +55 -55
  74. package/docs/components/number.md +124 -124
  75. package/docs/components/page.md +102 -102
  76. package/docs/components/panel.md +37 -37
  77. package/docs/components/radio.md +87 -87
  78. package/docs/components/rate.md +71 -71
  79. package/docs/components/select.md +133 -133
  80. package/docs/components/slider-captcha.md +41 -41
  81. package/docs/components/slider.md +101 -101
  82. package/docs/components/switch.md +90 -90
  83. package/docs/components/table-panel.md +282 -282
  84. package/docs/components/table.md +435 -435
  85. package/docs/components/tabs.md +26 -26
  86. package/docs/components/title.md +24 -24
  87. package/docs/components/tree.md +207 -207
  88. package/docs/components/upload.md +117 -117
  89. package/docs/components/workflow-viewer.md +21 -21
  90. package/docs/components/workflow.md +21 -21
  91. package/docs/examples/autocomplete/advanced.vue +35 -35
  92. package/docs/examples/autocomplete/basic.vue +32 -32
  93. package/docs/examples/autocomplete/clearable.vue +33 -33
  94. package/docs/examples/autocomplete/custom-template.vue +49 -49
  95. package/docs/examples/autocomplete/disabled.vue +33 -33
  96. package/docs/examples/autocomplete/icon.vue +37 -37
  97. package/docs/examples/barcode/all-types.vue +380 -380
  98. package/docs/examples/barcode/basic.vue +14 -14
  99. package/docs/examples/barcode/props-appearance.vue +243 -243
  100. package/docs/examples/barcode/props-geometry.vue +143 -143
  101. package/docs/examples/barcode/props-logic.vue +216 -216
  102. package/docs/examples/barcode/props-symbology.vue +199 -199
  103. package/docs/examples/barcode/props-text.vue +268 -268
  104. package/docs/examples/button/basic.vue +7 -7
  105. package/docs/examples/button/disabled.vue +42 -42
  106. package/docs/examples/button/loading.vue +6 -6
  107. package/docs/examples/button/shape.vue +7 -7
  108. package/docs/examples/button/size.vue +14 -14
  109. package/docs/examples/button/status.vue +34 -34
  110. package/docs/examples/button/type.vue +10 -10
  111. package/docs/examples/button-select/basic.vue +19 -19
  112. package/docs/examples/buttons/basic.vue +62 -62
  113. package/docs/examples/buttons/disabled.vue +36 -36
  114. package/docs/examples/buttons/dropdown.vue +63 -63
  115. package/docs/examples/buttons/group.vue +52 -52
  116. package/docs/examples/buttons/link.vue +47 -47
  117. package/docs/examples/buttons/popup.vue +39 -39
  118. package/docs/examples/buttons/size.vue +45 -45
  119. package/docs/examples/cascader-select/basic.vue +28 -28
  120. package/docs/examples/cascader-select/clearable.vue +34 -34
  121. package/docs/examples/cascader-select/disabled.vue +43 -43
  122. package/docs/examples/cascader-select/filterable.vue +37 -37
  123. package/docs/examples/cascader-select/methods.vue +84 -84
  124. package/docs/examples/cascader-select/multiple.vue +38 -38
  125. package/docs/examples/cascader-select/slot.vue +45 -45
  126. package/docs/examples/checkbox/basic.vue +18 -18
  127. package/docs/examples/checkbox/button.vue +19 -19
  128. package/docs/examples/checkbox/color.vue +25 -25
  129. package/docs/examples/checkbox/disabled.vue +17 -17
  130. package/docs/examples/checkbox/min-max.vue +20 -20
  131. package/docs/examples/checkbox/mixed.vue +56 -56
  132. package/docs/examples/checkbox/size.vue +28 -28
  133. package/docs/examples/code-mirror/basic.vue +11 -11
  134. package/docs/examples/code-mirror/events.vue +42 -42
  135. package/docs/examples/code-mirror/height.vue +25 -25
  136. package/docs/examples/code-mirror/mode.vue +33 -33
  137. package/docs/examples/code-mirror/readonly.vue +14 -14
  138. package/docs/examples/collapse/basic.vue +82 -82
  139. package/docs/examples/comp/basic.vue +7 -7
  140. package/docs/examples/comp/collapse.vue +38 -38
  141. package/docs/examples/comp/tabs.vue +38 -38
  142. package/docs/examples/count/basic.vue +101 -101
  143. package/docs/examples/count-up/basic.vue +89 -89
  144. package/docs/examples/data-panel/basic.vue +110 -110
  145. package/docs/examples/date/basic.vue +73 -73
  146. package/docs/examples/date/default-value.vue +59 -59
  147. package/docs/examples/date/format.vue +75 -75
  148. package/docs/examples/date/range.vue +66 -66
  149. package/docs/examples/date/types.vue +79 -79
  150. package/docs/examples/decorated-title/basic.vue +31 -31
  151. package/docs/examples/dialog/basic.vue +36 -36
  152. package/docs/examples/dialog/custom-buttons.vue +44 -44
  153. package/docs/examples/dialog/fullscreen.vue +23 -23
  154. package/docs/examples/dialog/no-mask.vue +17 -17
  155. package/docs/examples/dialog/size.vue +44 -44
  156. package/docs/examples/dialog/steps.vue +57 -57
  157. package/docs/examples/dialog-full/basic.vue +29 -29
  158. package/docs/examples/dialog-full/custom-buttons.vue +45 -45
  159. package/docs/examples/dialog-full/no-buttons.vue +18 -18
  160. package/docs/examples/dialog-full/no-header.vue +27 -27
  161. package/docs/examples/dialog-full/steps.vue +71 -71
  162. package/docs/examples/divider/basic.vue +52 -52
  163. package/docs/examples/drawer/basic.vue +35 -35
  164. package/docs/examples/drawer/custom-buttons.vue +34 -34
  165. package/docs/examples/drawer/direction.vue +47 -47
  166. package/docs/examples/drawer/mask.vue +36 -36
  167. package/docs/examples/drawer/no-buttons.vue +20 -20
  168. package/docs/examples/drawer/size.vue +28 -28
  169. package/docs/examples/dynamic-layer/basic.vue +33 -33
  170. package/docs/examples/dynamic-layer/custom-buttons.vue +43 -43
  171. package/docs/examples/dynamic-layer/form.vue +73 -73
  172. package/docs/examples/dynamic-layer/steps.vue +52 -52
  173. package/docs/examples/dynamic-layer/types.vue +40 -40
  174. package/docs/examples/echarts/basic.vue +31 -31
  175. package/docs/examples/echarts/dynamic.vue +43 -43
  176. package/docs/examples/echarts/line.vue +46 -46
  177. package/docs/examples/echarts/pie.vue +44 -44
  178. package/docs/examples/editor/basic.vue +15 -15
  179. package/docs/examples/form/basic.vue +663 -663
  180. package/docs/examples/form/init.vue +76 -76
  181. package/docs/examples/form/master-detail.vue +203 -203
  182. package/docs/examples/form/rule-format.vue +179 -179
  183. package/docs/examples/form/view-table.vue +378 -378
  184. package/docs/examples/guid/basic.vue +10 -10
  185. package/docs/examples/guid/size.vue +13 -13
  186. package/docs/examples/hpanel/basic.vue +79 -79
  187. package/docs/examples/icon/basic.vue +9 -9
  188. package/docs/examples/icon/rotate-flip.vue +9 -9
  189. package/docs/examples/icon/size.vue +7 -7
  190. package/docs/examples/input/basic.vue +10 -10
  191. package/docs/examples/input/clearable.vue +12 -12
  192. package/docs/examples/input/disabled.vue +6 -6
  193. package/docs/examples/input/icon.vue +23 -23
  194. package/docs/examples/input/password.vue +18 -18
  195. package/docs/examples/input/size.vue +13 -13
  196. package/docs/examples/input/textarea.vue +25 -25
  197. package/docs/examples/input/word-limit.vue +28 -28
  198. package/docs/examples/input-button/basic.vue +33 -33
  199. package/docs/examples/input-cards/basic.vue +79 -79
  200. package/docs/examples/input-code/basic.vue +29 -29
  201. package/docs/examples/input-color/basic.vue +10 -10
  202. package/docs/examples/input-color/disabled.vue +13 -13
  203. package/docs/examples/input-color/format.vue +17 -17
  204. package/docs/examples/input-color/no-alpha.vue +13 -13
  205. package/docs/examples/input-color/only-button.vue +15 -15
  206. package/docs/examples/input-color/predefine.vue +31 -31
  207. package/docs/examples/input-color/size.vue +15 -15
  208. package/docs/examples/input-layer/basic.vue +85 -85
  209. package/docs/examples/input-layer/render-vnode-page.vue +160 -160
  210. package/docs/examples/input-layer/render-vnode.vue +127 -127
  211. package/docs/examples/input-rows/basic.vue +73 -73
  212. package/docs/examples/input-rows/drag.vue +48 -48
  213. package/docs/examples/input-rows/layer-form.vue +85 -85
  214. package/docs/examples/input-rows/nested.vue +91 -91
  215. package/docs/examples/input-tag/basic.vue +27 -27
  216. package/docs/examples/input-tag/colors.vue +23 -23
  217. package/docs/examples/input-tag/readonly.vue +17 -17
  218. package/docs/examples/layer/basic.vue +43 -43
  219. package/docs/examples/layer/custom-buttons.vue +61 -61
  220. package/docs/examples/layer/drawer.vue +37 -37
  221. package/docs/examples/layer/full.vue +38 -38
  222. package/docs/examples/layer/modal.vue +34 -34
  223. package/docs/examples/layer/steps.vue +46 -46
  224. package/docs/examples/layer-form/basic.vue +76 -76
  225. package/docs/examples/layer-form/config.vue +82 -82
  226. package/docs/examples/layer-form/size.vue +72 -72
  227. package/docs/examples/layout/basic.vue +36 -36
  228. package/docs/examples/layout/custom-size.vue +50 -50
  229. package/docs/examples/layout/disable-move.vue +37 -37
  230. package/docs/examples/layout/hide-mid-when-narrow.vue +96 -96
  231. package/docs/examples/layout/min-size.vue +73 -73
  232. package/docs/examples/layout/percent-size.vue +80 -80
  233. package/docs/examples/layout/simple.vue +22 -22
  234. package/docs/examples/layout/top-side.vue +34 -34
  235. package/docs/examples/map/basic.vue +22 -22
  236. package/docs/examples/menu/basic.vue +58 -58
  237. package/docs/examples/menu/collapsed.vue +49 -49
  238. package/docs/examples/menu/horizontal.vue +44 -44
  239. package/docs/examples/menu/selection-test.vue +104 -104
  240. package/docs/examples/menu/theme.vue +46 -46
  241. package/docs/examples/menu/vertical.vue +46 -46
  242. package/docs/examples/number/advanced.vue +143 -143
  243. package/docs/examples/number/basic.vue +63 -63
  244. package/docs/examples/number/disabled.vue +49 -49
  245. package/docs/examples/number/size.vue +42 -42
  246. package/docs/examples/number/slots.vue +123 -123
  247. package/docs/examples/number/step-strictly.vue +41 -41
  248. package/docs/examples/number/step.vue +47 -47
  249. package/docs/examples/page/basic.vue +41 -41
  250. package/docs/examples/page/code-table-model.vue +428 -428
  251. package/docs/examples/page/dept-user-management.vue +211 -211
  252. package/docs/examples/page/init.vue +87 -87
  253. package/docs/examples/page/log.vue +453 -453
  254. package/docs/examples/page/user-management.vue +313 -313
  255. package/docs/examples/panel/tool-buttons.vue +18 -18
  256. package/docs/examples/radio/basic.vue +17 -17
  257. package/docs/examples/radio/button.vue +17 -17
  258. package/docs/examples/radio/color.vue +18 -18
  259. package/docs/examples/radio/disabled.vue +17 -17
  260. package/docs/examples/radio/size.vue +29 -29
  261. package/docs/examples/rate/basic.vue +24 -24
  262. package/docs/examples/rate/half.vue +24 -24
  263. package/docs/examples/rate/readonly.vue +11 -11
  264. package/docs/examples/rate/text.vue +37 -37
  265. package/docs/examples/select/basic.vue +16 -16
  266. package/docs/examples/select/clearable.vue +22 -22
  267. package/docs/examples/select/disabled.vue +31 -31
  268. package/docs/examples/select/filterable.vue +24 -24
  269. package/docs/examples/select/group.vue +23 -23
  270. package/docs/examples/select/icon.vue +16 -16
  271. package/docs/examples/select/multiple.vue +18 -18
  272. package/docs/examples/select/size.vue +39 -39
  273. package/docs/examples/slider/basic.vue +42 -42
  274. package/docs/examples/slider/disabled.vue +17 -17
  275. package/docs/examples/slider/marks.vue +30 -30
  276. package/docs/examples/slider/size.vue +37 -37
  277. package/docs/examples/slider/tooltip.vue +36 -36
  278. package/docs/examples/slider/vertical.vue +26 -26
  279. package/docs/examples/slider-captcha/basic.vue +44 -44
  280. package/docs/examples/slider-captcha/custom.vue +48 -48
  281. package/docs/examples/switch/basic.vue +16 -16
  282. package/docs/examples/switch/disabled.vue +13 -13
  283. package/docs/examples/switch/loading.vue +13 -13
  284. package/docs/examples/switch/size.vue +15 -15
  285. package/docs/examples/switch/text.vue +13 -13
  286. package/docs/examples/table/action-filter.vue +126 -126
  287. package/docs/examples/table/actions.vue +116 -116
  288. package/docs/examples/table/add-row.vue +103 -103
  289. package/docs/examples/table/basic.vue +168 -168
  290. package/docs/examples/table/checkbox-layout.vue +68 -68
  291. package/docs/examples/table/custom-layout.vue +115 -115
  292. package/docs/examples/table/dynamic-type.vue +73 -73
  293. package/docs/examples/table/editable.vue +262 -262
  294. package/docs/examples/table/field-selection.vue +87 -87
  295. package/docs/examples/table/frozen-column.vue +140 -140
  296. package/docs/examples/table/height-mode.vue +99 -99
  297. package/docs/examples/table/icon.vue +85 -85
  298. package/docs/examples/table/layer-form.vue +133 -133
  299. package/docs/examples/table/link.vue +66 -66
  300. package/docs/examples/table/multiple-disabled.vue +112 -112
  301. package/docs/examples/table/multiple.vue +188 -188
  302. package/docs/examples/table/pagination.vue +151 -151
  303. package/docs/examples/table/row-drag.vue +67 -67
  304. package/docs/examples/table/single-selection.vue +64 -64
  305. package/docs/examples/table/sub-table-lazy.vue +97 -97
  306. package/docs/examples/table/sub-table.vue +103 -103
  307. package/docs/examples/table/tag.vue +43 -43
  308. package/docs/examples/table/tree-column.vue +119 -119
  309. package/docs/examples/table/tree-data.vue +141 -141
  310. package/docs/examples/table/tree-default-expand-all.vue +60 -60
  311. package/docs/examples/table/tree-lazy.vue +80 -80
  312. package/docs/examples/table/tree-set-selection.vue +75 -75
  313. package/docs/examples/table-panel/basic.vue +229 -229
  314. package/docs/examples/table-panel/batch-operations.vue +286 -286
  315. package/docs/examples/table-panel/button-visibility.vue +88 -88
  316. package/docs/examples/table-panel/filter.vue +219 -219
  317. package/docs/examples/table-panel/get-selection.vue +111 -111
  318. package/docs/examples/table-panel/mask.vue +151 -151
  319. package/docs/examples/table-panel/model-value.vue +87 -87
  320. package/docs/examples/table-panel/multiple-selection.vue +243 -243
  321. package/docs/examples/table-panel/pagination.vue +133 -133
  322. package/docs/examples/table-panel/search-list.vue +207 -207
  323. package/docs/examples/table-panel/sub-table-lazy.vue +118 -118
  324. package/docs/examples/table-panel/tree-parent-key.vue +67 -67
  325. package/docs/examples/tabs/basic.vue +98 -98
  326. package/docs/examples/time/base.vue +67 -67
  327. package/docs/examples/title/basic.vue +87 -87
  328. package/docs/examples/tree/accordion.vue +46 -46
  329. package/docs/examples/tree/basic.vue +50 -50
  330. package/docs/examples/tree/buttons.vue +53 -53
  331. package/docs/examples/tree/checkable.vue +52 -52
  332. package/docs/examples/tree/custom-keys.vue +39 -39
  333. package/docs/examples/tree/default-expanded.vue +52 -52
  334. package/docs/examples/tree/draggable.vue +29 -29
  335. package/docs/examples/tree/expand-on-click.vue +39 -39
  336. package/docs/examples/tree/flat-data.vue +20 -20
  337. package/docs/examples/tree/icon.vue +40 -40
  338. package/docs/examples/tree/load-data.vue +37 -37
  339. package/docs/examples/tree/methods.vue +74 -74
  340. package/docs/examples/tree/theme.vue +33 -33
  341. package/docs/examples/tree-select/basic.vue +47 -47
  342. package/docs/examples/upload/accept.vue +31 -31
  343. package/docs/examples/upload/basic.vue +12 -12
  344. package/docs/examples/upload/drag.vue +11 -11
  345. package/docs/examples/upload/image.vue +17 -17
  346. package/docs/examples/upload/limit.vue +20 -20
  347. package/docs/examples/upload/multiple.vue +17 -17
  348. package/docs/examples/upload/readonly.vue +17 -17
  349. package/docs/examples/utils/cipher.vue +160 -160
  350. package/docs/examples/utils/common.vue +153 -153
  351. package/docs/examples/utils/date.vue +56 -56
  352. package/docs/examples/utils/dom.vue +52 -52
  353. package/docs/examples/utils/is.vue +70 -70
  354. package/docs/examples/workflow/basic.vue +265 -265
  355. package/docs/examples/workflow-viewer/basic.vue +248 -248
  356. package/package.json +23 -23
@@ -1,4 +1,4 @@
1
- import { Fragment as Me, computed as H, createBlock as N, createCommentVNode as ne, createElementBlock as D, createElementVNode as B, createSlots as Yn, createTextVNode as Wn, createVNode as Z, defineComponent as ye, getCurrentInstance as mc, guardReactiveProps as Lo, h as Ei, inject as jd, mergeModels as Ho, mergeProps as Ue, nextTick as Ht, normalizeClass as We, normalizeProps as ja, normalizeStyle as ce, onBeforeUnmount as zo, onMounted as Et, onUnmounted as Do, openBlock as R, provide as Pd, reactive as ra, ref as L, render as Ti, renderList as Ie, renderSlot as et, resolveComponent as V, resolveDirective as $o, resolveDynamicComponent as Ba, shallowRef as Fo, toDisplayString as xe, unref as J, useModel as Oo, useSlots as Bd, useTemplateRef as Aa, vShow as br, watch as it, watchEffect as bc, withCtx as q, withDirectives as la, withKeys as wr, withModifiers as Xt } from "vue";
1
+ import { Fragment as Me, computed as H, createBlock as N, createCommentVNode as ne, createElementBlock as D, createElementVNode as B, createSlots as Yn, createTextVNode as Wn, createVNode as Z, defineComponent as ye, getCurrentInstance as mc, guardReactiveProps as Lo, h as Ei, inject as jd, mergeModels as Ho, mergeProps as Ue, nextTick as Et, normalizeClass as We, normalizeProps as ja, normalizeStyle as ce, onBeforeUnmount as zo, onMounted as Tt, onUnmounted as Do, openBlock as R, provide as Pd, reactive as ra, ref as L, render as Ti, renderList as Ie, renderSlot as et, resolveComponent as V, resolveDirective as $o, resolveDynamicComponent as Ba, shallowRef as Fo, toDisplayString as xe, unref as J, useModel as Oo, useSlots as Bd, useTemplateRef as Aa, vShow as br, watch as it, watchEffect as bc, withCtx as q, withDirectives as la, withKeys as wr, withModifiers as Xt } from "vue";
2
2
  import { Icon as zl, getIcon as Ta } from "@iconify/vue";
3
3
  import eo from "dayjs";
4
4
  import Hd from "sortablejs";
@@ -29,7 +29,7 @@ import gf from "async-validator";
29
29
  import { createEditor as vf, createToolbar as yf } from "@wangeditor/editor";
30
30
  import wc from "diagram-js";
31
31
  import { assignStyle as Vi, attr as Rn, classes as sn, clear as _c, closest as Nr, delegate as aa, domify as fn, event as ut, matches as mf, query as Zt, queryAll as _r, remove as xr } from "min-dom";
32
- import { assign as De, bind as Wr, debounce as bf, every as Ur, filter as mn, find as On, flatten as wf, forEach as ge, groupBy as Yr, has as xc, isArray as ft, isDefined as kn, isFunction as In, isNil as $l, isNumber as Bt, isObject as bn, isString as Cr, isUndefined as _f, map as Vo, matchPattern as Ai, omit as xf, pick as Mi, reduce as Sr, size as Cf, some as Sf, sortBy as Io, uniqueBy as kf, values as Jr, without as Rf } from "min-dash";
32
+ import { assign as De, bind as Wr, debounce as bf, every as Ur, filter as mn, find as On, flatten as wf, forEach as ge, groupBy as Yr, has as xc, isArray as ft, isDefined as kn, isFunction as In, isNil as $l, isNumber as Ht, isObject as bn, isString as Cr, isUndefined as _f, map as Vo, matchPattern as Ai, omit as xf, pick as Mi, reduce as Sr, size as Cf, some as Sf, sortBy as Io, uniqueBy as kf, values as Jr, without as Rf } from "min-dash";
33
33
  import { append as tt, attr as ze, classes as pt, clear as Gr, clone as Cc, create as Xe, createTransform as Ao, remove as yn, transform as Kr } from "tiny-svg";
34
34
  import Ha from "inherits";
35
35
  import Ef from "diagram-js-direct-editing";
@@ -1429,8 +1429,8 @@ var nh = /* @__PURE__ */ cn(((e, t) => {
1429
1429
  var Zn = f[ht - 15], gt = Zn.high, Gt = Zn.low, rn = (gt >>> 1 | Gt << 31) ^ (gt >>> 8 | Gt << 24) ^ gt >>> 7, En = (Gt >>> 1 | gt << 31) ^ (Gt >>> 8 | gt << 24) ^ (Gt >>> 7 | gt << 25), Fn = f[ht - 2], Nt = Fn.high, Lt = Fn.low, _a = (Nt >>> 19 | Lt << 13) ^ (Nt << 3 | Lt >>> 29) ^ Nt >>> 6, G = (Lt >>> 19 | Nt << 13) ^ (Lt << 3 | Nt >>> 29) ^ (Lt >>> 6 | Nt << 26), pe = f[ht - 7], re = pe.high, le = pe.low, me = f[ht - 16], Be = me.high, Le = me.low;
1430
1430
  Ot = En + le, It = rn + re + (Ot >>> 0 < En >>> 0 ? 1 : 0), Ot = Ot + G, It = It + _a + (Ot >>> 0 < G >>> 0 ? 1 : 0), Ot = Ot + Le, It = It + Be + (Ot >>> 0 < Le >>> 0 ? 1 : 0), un.high = It, un.low = Ot;
1431
1431
  }
1432
- var at = ie & Ge ^ ~ie & Qe, xt = Re & rt ^ ~Re & nn, de = P & qe ^ P & Ze ^ qe & Ze, Se = je & Pe ^ je & te ^ Pe & te, vt = (P >>> 28 | je << 4) ^ (P << 30 | je >>> 2) ^ (P << 25 | je >>> 7), zt = (je >>> 28 | P << 4) ^ (je << 30 | P >>> 2) ^ (je << 25 | P >>> 7), Ce = (ie >>> 14 | Re << 18) ^ (ie >>> 18 | Re << 14) ^ (ie << 23 | Re >>> 9), lt = (Re >>> 14 | ie << 18) ^ (Re >>> 18 | ie << 14) ^ (Re << 23 | ie >>> 9), Wt = d[ht], Mt = Wt.high, Ft = Wt.low, jt = on + lt, Kt = an + Ce + (jt >>> 0 < on >>> 0 ? 1 : 0), jt = jt + xt, Kt = Kt + at + (jt >>> 0 < xt >>> 0 ? 1 : 0), jt = jt + Ft, Kt = Kt + Mt + (jt >>> 0 < Ft >>> 0 ? 1 : 0), jt = jt + Ot, Kt = Kt + It + (jt >>> 0 < Ot >>> 0 ? 1 : 0), $e = zt + Se, hn = vt + de + ($e >>> 0 < zt >>> 0 ? 1 : 0);
1433
- an = Qe, on = nn, Qe = Ge, nn = rt, Ge = ie, rt = Re, Re = ee + jt | 0, ie = Oe + Kt + (Re >>> 0 < ee >>> 0 ? 1 : 0) | 0, Oe = Ze, ee = te, Ze = qe, te = Pe, qe = P, Pe = je, je = jt + $e | 0, P = Kt + hn + (je >>> 0 < jt >>> 0 ? 1 : 0) | 0;
1432
+ var at = ie & Ge ^ ~ie & Qe, xt = Re & rt ^ ~Re & nn, de = P & qe ^ P & Ze ^ qe & Ze, Se = je & Pe ^ je & te ^ Pe & te, vt = (P >>> 28 | je << 4) ^ (P << 30 | je >>> 2) ^ (P << 25 | je >>> 7), zt = (je >>> 28 | P << 4) ^ (je << 30 | P >>> 2) ^ (je << 25 | P >>> 7), Ce = (ie >>> 14 | Re << 18) ^ (ie >>> 18 | Re << 14) ^ (ie << 23 | Re >>> 9), lt = (Re >>> 14 | ie << 18) ^ (Re >>> 18 | ie << 14) ^ (Re << 23 | ie >>> 9), Wt = d[ht], jt = Wt.high, Ft = Wt.low, Pt = on + lt, Kt = an + Ce + (Pt >>> 0 < on >>> 0 ? 1 : 0), Pt = Pt + xt, Kt = Kt + at + (Pt >>> 0 < xt >>> 0 ? 1 : 0), Pt = Pt + Ft, Kt = Kt + jt + (Pt >>> 0 < Ft >>> 0 ? 1 : 0), Pt = Pt + Ot, Kt = Kt + It + (Pt >>> 0 < Ot >>> 0 ? 1 : 0), $e = zt + Se, hn = vt + de + ($e >>> 0 < zt >>> 0 ? 1 : 0);
1433
+ an = Qe, on = nn, Qe = Ge, nn = rt, Ge = ie, rt = Re, Re = ee + Pt | 0, ie = Oe + Kt + (Re >>> 0 < ee >>> 0 ? 1 : 0) | 0, Oe = Ze, ee = te, Ze = qe, te = Pe, qe = P, Pe = je, je = Pt + $e | 0, P = Kt + hn + (je >>> 0 < Pt >>> 0 ? 1 : 0) | 0;
1434
1434
  }
1435
1435
  k = b.low = k + je, b.high = S + P + (k >>> 0 < je >>> 0 ? 1 : 0), A = x.low = A + Pe, x.high = T + qe + (A >>> 0 < Pe >>> 0 ? 1 : 0), z = w.low = z + te, w.high = j + Ze + (z >>> 0 < te >>> 0 ? 1 : 0), M = m.low = M + ee, m.high = O + Oe + (M >>> 0 < ee >>> 0 ? 1 : 0), F = y.low = F + Re, y.high = E + ie + (F >>> 0 < Re >>> 0 ? 1 : 0), ue = C.low = ue + rt, C.high = X + Ge + (ue >>> 0 < rt >>> 0 ? 1 : 0), U = v.low = U + nn, v.high = _e + Qe + (U >>> 0 < nn >>> 0 ? 1 : 0), Q = _.low = Q + on, _.high = K + an + (Q >>> 0 < on >>> 0 ? 1 : 0);
1436
1436
  },
@@ -1535,7 +1535,7 @@ var nh = /* @__PURE__ */ cn(((e, t) => {
1535
1535
  }, lS = (e, t) => Hc(e, t).toString(Pi);
1536
1536
  function Ch(e, t) {
1537
1537
  function n() {
1538
- Ht(() => {
1538
+ Et(() => {
1539
1539
  e = J(e), e && Hd.create(e, {
1540
1540
  animation: 100,
1541
1541
  delay: 400,
@@ -1728,7 +1728,7 @@ var Hh = /* @__PURE__ */ ye({
1728
1728
  }, 100);
1729
1729
  }
1730
1730
  }, k = (z) => {
1731
- u.value = z?.name, a.value = z?.width || 600, o.value = z?.height || 400, i.value = z?.hasBtns !== !1, r.value = z?.hasSaveBtn !== !1, l.value = z?.hasHeader !== !1, z?.destroyOnClose !== !1 && (d.value = !0), h.value = z?.config || {}, c.value = z?.btnText || "保存", y = z?.afterOk || null, C = z?.afterClose || null, v = z?.afterCancel || null, n.value.open(z.title, z.type, z.subtitle), Ht(async () => {
1731
+ u.value = z?.name, a.value = z?.width || 600, o.value = z?.height || 400, i.value = z?.hasBtns !== !1, r.value = z?.hasSaveBtn !== !1, l.value = z?.hasHeader !== !1, z?.destroyOnClose !== !1 && (d.value = !0), h.value = z?.config || {}, c.value = z?.btnText || "保存", y = z?.afterOk || null, C = z?.afterClose || null, v = z?.afterCancel || null, n.value.open(z.title, z.type, z.subtitle), Et(async () => {
1732
1732
  n.value.showLoading("加载中"), await S(z.param || {});
1733
1733
  });
1734
1734
  }, T = async () => {
@@ -1999,7 +1999,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
1999
1999
  }, d = (f) => {
2000
2000
  a("change", f);
2001
2001
  };
2002
- return Et(() => {
2002
+ return Tt(() => {
2003
2003
  n.autoFocus && !n.readonly && o.value.focus();
2004
2004
  }), (f, u) => {
2005
2005
  const h = V("j-icon"), p = V("el-input");
@@ -2653,7 +2653,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
2653
2653
  });
2654
2654
  }
2655
2655
  };
2656
- return Et(() => {
2656
+ return Tt(() => {
2657
2657
  n.autoFocus && !n.readonly && setTimeout(() => {
2658
2658
  o.value.toggleMenu();
2659
2659
  }, 50);
@@ -2862,7 +2862,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
2862
2862
  disabled: "disabled",
2863
2863
  leaf: "leaf"
2864
2864
  }));
2865
- return Et(() => {
2865
+ return Tt(() => {
2866
2866
  a.autoFocus && !a.readonly && setTimeout(() => {
2867
2867
  o.value.togglePopperVisible();
2868
2868
  }, 50);
@@ -3072,7 +3072,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
3072
3072
  focus: () => {
3073
3073
  o.value?.focus();
3074
3074
  }
3075
- }), Et(() => {
3075
+ }), Tt(() => {
3076
3076
  a.autoFocus && !a.readonly && o.value?.focus();
3077
3077
  }), (u, h) => {
3078
3078
  const p = V("j-icon"), g = V("el-input-number");
@@ -3247,7 +3247,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
3247
3247
  blur: () => {
3248
3248
  o.value?.blur();
3249
3249
  }
3250
- }), Et(() => {
3250
+ }), Tt(() => {
3251
3251
  a.autoFocus && !a.readonly && setTimeout(() => {
3252
3252
  o.value.focus();
3253
3253
  }, 50);
@@ -3512,7 +3512,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
3512
3512
  d.value = s.value - O - M < t.midMinWidth;
3513
3513
  };
3514
3514
  let z = null;
3515
- return Et(() => {
3515
+ return Tt(() => {
3516
3516
  t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (j(), z = new ResizeObserver(() => {
3517
3517
  j();
3518
3518
  }), z.observe(a.value));
@@ -5531,7 +5531,7 @@ var Dp = class {
5531
5531
  };
5532
5532
  return it([() => n.id, () => P.value], () => {
5533
5533
  Ze();
5534
- }, { immediate: !0 }), Et(() => {
5534
+ }, { immediate: !0 }), Tt(() => {
5535
5535
  n.id && h && h(n.id), n.id && x && x(n.id);
5536
5536
  }), zo(() => {
5537
5537
  Pe();
@@ -6007,10 +6007,10 @@ var Yp = /* @__PURE__ */ ye({
6007
6007
  flexWrap: "nowrap"
6008
6008
  });
6009
6009
  if (Ve.forEach((we, ot) => {
6010
- const Ne = we.config?.disabled === !0, Pt = Ne ? "#c9cdd4" : we.config?.status === "danger" ? "#f53f3f" : "#165dff", gn = new Y({
6010
+ const Ne = we.config?.disabled === !0, Bt = Ne ? "#c9cdd4" : we.config?.status === "danger" ? "#f53f3f" : "#165dff", gn = new Y({
6011
6011
  text: we.label,
6012
6012
  fontSize: 14,
6013
- fill: Pt,
6013
+ fill: Bt,
6014
6014
  boundsPadding: [
6015
6015
  0,
6016
6016
  12,
@@ -6025,9 +6025,9 @@ var Yp = /* @__PURE__ */ ye({
6025
6025
  openLayer: h
6026
6026
  });
6027
6027
  }), gn.addEventListener("mouseenter", (Tn) => {
6028
- Ne || (Tn.target.setAttribute("fill", Nt(Pt, -20)), be.scenegraph.stage.renderNextFrame());
6028
+ Ne || (Tn.target.setAttribute("fill", Nt(Bt, -20)), be.scenegraph.stage.renderNextFrame());
6029
6029
  }), gn.addEventListener("mouseleave", (Tn) => {
6030
- Ne || (Tn.target.setAttribute("fill", Pt), be.scenegraph.stage.renderNextFrame());
6030
+ Ne || (Tn.target.setAttribute("fill", Bt), be.scenegraph.stage.renderNextFrame());
6031
6031
  }), yt.add(gn);
6032
6032
  }), Fe && ct.length > 0) {
6033
6033
  const we = "#1677ff", ot = new Y({
@@ -6044,8 +6044,8 @@ var Yp = /* @__PURE__ */ ye({
6044
6044
  });
6045
6045
  ot.addEventListener("mouseenter", (Ne) => {
6046
6046
  Ne.target.setAttribute("fill", Nt(we, -20)), be.scenegraph.stage.renderNextFrame();
6047
- const Pt = m.value?.getBoundingClientRect();
6048
- Pt && _e(ct, Ee, Ke, Ne.canvasX + Pt.left - 64, Ne.canvasY + Pt.top + 8), ue = !0, Q();
6047
+ const Bt = m.value?.getBoundingClientRect();
6048
+ Bt && _e(ct, Ee, Ke, Ne.canvasX + Bt.left - 64, Ne.canvasY + Bt.top + 8), ue = !0, Q();
6049
6049
  }), ot.addEventListener("mouseleave", (Ne) => {
6050
6050
  Ne.target.setAttribute("fill", we), be.scenegraph.stage.renderNextFrame(), ue = !1, K();
6051
6051
  }), yt.add(ot);
@@ -6142,19 +6142,19 @@ var Yp = /* @__PURE__ */ ye({
6142
6142
  formData: r || {},
6143
6143
  getTableData: lt,
6144
6144
  row: he
6145
- }) || {}, Ae = Number(be.min) || 0, He = Number(be.max) || 100, Ee = Number(Y) || 0, Ke = He - Ae, Ye = Ke === 0 ? 0 : Math.max(0, Math.min(100, (Ee - Ae) / Ke * 100)), Te = 4, Fe = 8, Ve = 8, ct = (oe.height - Te) / 2, yt = String(Ee), we = Sn(yt) || 0, ot = Fe, Ne = ct, Pt = oe.width - Fe * 2 - we - Ve, gn = Pt * Ye / 100, Tn = [], yo = (Ut, qt, kt) => {
6145
+ }) || {}, Ae = Number(be.min) || 0, He = Number(be.max) || 100, Ee = Number(Y) || 0, Ke = He - Ae, Ye = Ke === 0 ? 0 : Math.max(0, Math.min(100, (Ee - Ae) / Ke * 100)), Te = 4, Fe = 8, Ve = 8, ct = (oe.height - Te) / 2, yt = String(Ee), we = Sn(yt) || 0, ot = Fe, Ne = ct, Bt = oe.width - Fe * 2 - we - Ve, gn = Bt * Ye / 100, Tn = [], yo = (Ut, qt, kt) => {
6146
6146
  const nt = Math.min(kt, qt / 2, Ut / 2);
6147
6147
  return `M ${nt} 0 L ${Ut - nt} 0 Q ${Ut} 0 ${Ut} ${nt} L ${Ut} ${qt - nt} Q ${Ut} ${qt} ${Ut - nt} ${qt} L ${nt} ${qt} Q 0 ${qt} 0 ${qt - nt} L 0 ${nt} Q 0 0 ${nt} 0 Z`;
6148
6148
  }, An = (Ut, qt, kt) => {
6149
6149
  const nt = Math.min(kt, qt / 2, Ut / 2);
6150
6150
  return Ut <= nt * 2 ? yo(Ut, qt, kt) : `M ${nt} 0 L ${Ut} 0 L ${Ut} ${qt} L ${nt} ${qt} Q 0 ${qt} 0 ${qt - nt} L 0 ${nt} Q 0 0 ${nt} 0 Z`;
6151
- }, mo = yo(Pt, Te, Te / 2);
6151
+ }, mo = yo(Bt, Te, Te / 2);
6152
6152
  if (Tn.push({
6153
6153
  type: "icon",
6154
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Pt}" height="${Te}" viewBox="0 0 ${Pt} ${Te}"><path d="${mo}" fill="#e5e6eb"/></svg>`,
6154
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Bt}" height="${Te}" viewBox="0 0 ${Bt} ${Te}"><path d="${mo}" fill="#e5e6eb"/></svg>`,
6155
6155
  x: ot,
6156
6156
  y: Ne,
6157
- width: Pt,
6157
+ width: Bt,
6158
6158
  height: Te
6159
6159
  }), gn > 0) {
6160
6160
  const Ut = An(gn, Te, Te / 2);
@@ -6167,7 +6167,7 @@ var Yp = /* @__PURE__ */ ye({
6167
6167
  height: Te
6168
6168
  });
6169
6169
  }
6170
- const ri = ot + Pt + Ve, li = oe.height / 2;
6170
+ const ri = ot + Bt + Ve, li = oe.height / 2;
6171
6171
  return Tn.push({
6172
6172
  type: "text",
6173
6173
  text: yt,
@@ -6262,12 +6262,12 @@ var Yp = /* @__PURE__ */ ye({
6262
6262
  };
6263
6263
  const Ye = 14, Te = 28, Fe = 2, Ve = 12, ct = 8, yt = 6;
6264
6264
  let we = 8, ot = Math.max(0, oe.width - we * 2), Ne = Math.max(0, ot - Ve * 2);
6265
- const Pt = [], gn = (kt) => {
6265
+ const Bt = [], gn = (kt) => {
6266
6266
  const nt = Sn(Qe(kt, Ne)) || 0;
6267
6267
  return Math.min(ot, nt + Ve * 2);
6268
6268
  }, Tn = (kt, nt, Mn, jn, Pn) => {
6269
6269
  const xa = Qe(Mn, Ne), Ca = rt(xa), si = Sn(xa) || 0, Ja = Math.min(ot, si + Ve * 2), Ed = jn || "#f2f3f5", Td = Pn || "#1d2129", Ad = Te / 2 + Ye * 0.35, Md = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ja}" height="${Te}" viewBox="0 0 ${Ja} ${Te}"><rect x="0" y="0" width="${Ja}" height="${Te}" rx="${Fe}" ry="${Fe}" fill="${Ed}"/><text x="${Ja / 2}" y="${Ad}" text-anchor="middle" font-size="${Ye}" fill="${Td}">${Ca}</text></svg>`;
6270
- return Pt.push({
6270
+ return Bt.push({
6271
6271
  type: "icon",
6272
6272
  svg: Md,
6273
6273
  x: kt,
@@ -6314,7 +6314,7 @@ var Yp = /* @__PURE__ */ ye({
6314
6314
  }
6315
6315
  const qt = Math.min(oe.width, Math.max(0, ...An.map((kt) => kt.lineWidth)) + we * 2);
6316
6316
  return {
6317
- elements: Pt,
6317
+ elements: Bt,
6318
6318
  expectedHeight: Math.max(xn, ri),
6319
6319
  expectedWidth: qt
6320
6320
  };
@@ -6440,7 +6440,7 @@ var Yp = /* @__PURE__ */ ye({
6440
6440
  }, un = (I) => {
6441
6441
  const { table: $, row: Y, col: oe, rect: W } = I, { height: ae, width: se } = W ?? $.getCellRect(oe, Y), { Group: ve, CheckBox: fe } = Je.CustomLayout, he = $.getBodyField(oe, Y), be = gt($.options?.columns || [], he), Ae = $.getCellOriginRecord(oe, Y) || {}, He = be?.style?.textAlign === "right" ? "flex-end" : be?.style?.textAlign === "center" ? "center" : "flex-start", Ee = be?.style?.textAlign === "right" ? "flex-end" : be?.style?.textAlign === "center" ? "center" : "flex-start", Ke = (yt, we) => {
6442
6442
  const ot = Ae?.[he];
6443
- Ae[he] = (Array.isArray(ot) ? ot : []).map((Ne, Pt) => Pt !== yt ? Ne : Ne && typeof Ne == "object" ? {
6443
+ Ae[he] = (Array.isArray(ot) ? ot : []).map((Ne, Bt) => Bt !== yt ? Ne : Ne && typeof Ne == "object" ? {
6444
6444
  ...Ne,
6445
6445
  ...we
6446
6446
  } : { ...we });
@@ -6491,8 +6491,8 @@ var Yp = /* @__PURE__ */ ye({
6491
6491
  ]
6492
6492
  });
6493
6493
  Ne.render?.(), ct.add(Ne), Ne.addEventListener("checkbox_state_change", () => {
6494
- const Pt = !!Ne.attribute?.checked;
6495
- Ke(yt, { checked: Pt }), Ye();
6494
+ const Bt = !!Ne.attribute?.checked;
6495
+ Ke(yt, { checked: Bt }), Ye();
6496
6496
  });
6497
6497
  }
6498
6498
  return {
@@ -6604,13 +6604,13 @@ var Yp = /* @__PURE__ */ ye({
6604
6604
  return `#${(W << 16 | ae << 8 | se).toString(16).padStart(6, "0")}`;
6605
6605
  }, Lt = () => {
6606
6606
  let I = T;
6607
- o.isPage && (I = jt.value + T);
6607
+ o.isPage && (I = Pt.value + T);
6608
6608
  let $ = Sn(String(I)) || 0;
6609
6609
  return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
6610
6610
  }, _a = (I) => {
6611
6611
  let $ = (Y, oe, W, ae) => {
6612
6612
  const se = ae.getRecordIndexByCell(oe, W);
6613
- return o.isPage && !I ? jt.value + se + 1 : se + 1;
6613
+ return o.isPage && !I ? Pt.value + se + 1 : se + 1;
6614
6614
  };
6615
6615
  return I && ($ = (Y, oe, W, ae) => ae.getRecordIndexByCell(oe, W) + 1), {
6616
6616
  field: "__sequence__",
@@ -6872,7 +6872,7 @@ var Yp = /* @__PURE__ */ ye({
6872
6872
  }
6873
6873
  }
6874
6874
  }, lt = () => y ? y.records : [];
6875
- Et(() => {
6875
+ Tt(() => {
6876
6876
  de();
6877
6877
  }), zo(() => {
6878
6878
  Se(), Q(), document.removeEventListener("wheel", qe);
@@ -6884,14 +6884,14 @@ var Yp = /* @__PURE__ */ ye({
6884
6884
  set(I) {
6885
6885
  i("update:tablePage", I);
6886
6886
  }
6887
- }), Mt = L(0), Ft = H({
6887
+ }), jt = L(0), Ft = H({
6888
6888
  get() {
6889
- return Mt.value !== 0 ? Mt.value : o.pageSize;
6889
+ return jt.value !== 0 ? jt.value : o.pageSize;
6890
6890
  },
6891
6891
  set(I) {
6892
- Mt.value = I, i("update:pageSize", I);
6892
+ jt.value = I, i("update:pageSize", I);
6893
6893
  }
6894
- }), jt = H(() => (Wt.value - 1) * Ft.value), Kt = (I, $) => {
6894
+ }), Pt = H(() => (Wt.value - 1) * Ft.value), Kt = (I, $) => {
6895
6895
  i("loadPageData", {
6896
6896
  rows: $,
6897
6897
  page: I
@@ -6974,7 +6974,9 @@ var Yp = /* @__PURE__ */ ye({
6974
6974
  y.renderWithRecreateCells();
6975
6975
  } else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
6976
6976
  }, dn = (I) => {
6977
- i("rowChange", I), y.renderWithRecreateCells();
6977
+ i("rowChange", I), Et(() => {
6978
+ y.renderWithRecreateCells();
6979
+ });
6978
6980
  }, Qt = (I) => {
6979
6981
  if (!y) return;
6980
6982
  const $ = $e();
@@ -7274,7 +7276,7 @@ var Yp = /* @__PURE__ */ ye({
7274
7276
  _top: 0
7275
7277
  }), g = L(0), b = L(), x = L(48), w = L(0), m = L(0);
7276
7278
  it(() => a.visible, (P) => {
7277
- g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls && Ht(() => {
7279
+ g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls && Et(() => {
7278
7280
  typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = K));
7279
7281
  });
7280
7282
  }, { immediate: !0 });
@@ -7299,7 +7301,7 @@ var Yp = /* @__PURE__ */ ye({
7299
7301
  }, A = () => {
7300
7302
  o("ok", S, k);
7301
7303
  }, j = () => {
7302
- p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (z.value = 0, Ht(() => {
7304
+ p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (z.value = 0, Et(() => {
7303
7305
  F();
7304
7306
  })), o("closed");
7305
7307
  }, z = H({
@@ -7310,11 +7312,11 @@ var Yp = /* @__PURE__ */ ye({
7310
7312
  h.value = P, o("update:stepActive", P);
7311
7313
  }
7312
7314
  }), O = () => {
7313
- z.value > 0 && z.value--, Ht(() => {
7315
+ z.value > 0 && z.value--, Et(() => {
7314
7316
  F();
7315
7317
  });
7316
7318
  }, M = async () => {
7317
- await E() && (z.value < a.steps.length - 1 && (z.value += 1), Ht(() => {
7319
+ await E() && (z.value < a.steps.length - 1 && (z.value += 1), Et(() => {
7318
7320
  F();
7319
7321
  }));
7320
7322
  }, E = async () => {
@@ -7583,7 +7585,7 @@ var Yp = /* @__PURE__ */ ye({
7583
7585
  }, x = () => {
7584
7586
  o("ok", m, y);
7585
7587
  }, w = () => {
7586
- a.isStep && (g.value = 0, Ht(() => {
7588
+ a.isStep && (g.value = 0, Et(() => {
7587
7589
  S();
7588
7590
  })), o("closed");
7589
7591
  }, m = (A) => {
@@ -7591,11 +7593,11 @@ var Yp = /* @__PURE__ */ ye({
7591
7593
  }, y = () => {
7592
7594
  c.value = !1;
7593
7595
  }, C = () => {
7594
- g.value > 0 && g.value--, Ht(() => {
7596
+ g.value > 0 && g.value--, Et(() => {
7595
7597
  S();
7596
7598
  });
7597
7599
  }, v = async () => {
7598
- await _() && (g.value < a.steps.length - 1 && (g.value += 1), Ht(() => {
7600
+ await _() && (g.value < a.steps.length - 1 && (g.value += 1), Et(() => {
7599
7601
  S();
7600
7602
  }));
7601
7603
  }, _ = async () => {
@@ -7845,7 +7847,7 @@ var Yp = /* @__PURE__ */ ye({
7845
7847
  }, f = () => {
7846
7848
  r.value = !1;
7847
7849
  }, u = () => {
7848
- a.isStep && (C.value = 0, Ht(() => {
7850
+ a.isStep && (C.value = 0, Et(() => {
7849
7851
  k();
7850
7852
  })), i("closed");
7851
7853
  }, h = () => {
@@ -7862,11 +7864,11 @@ var Yp = /* @__PURE__ */ ye({
7862
7864
  y.value = A, i("update:stepActive", A);
7863
7865
  }
7864
7866
  }), v = () => {
7865
- C.value > 0 && C.value--, Ht(() => {
7867
+ C.value > 0 && C.value--, Et(() => {
7866
7868
  k();
7867
7869
  });
7868
7870
  }, _ = async () => {
7869
- await S() && (C.value < a.steps.length - 1 && (C.value += 1), Ht(() => {
7871
+ await S() && (C.value < a.steps.length - 1 && (C.value += 1), Et(() => {
7870
7872
  k();
7871
7873
  }));
7872
7874
  }, S = async () => {
@@ -9047,7 +9049,7 @@ var Yp = /* @__PURE__ */ ye({
9047
9049
  };
9048
9050
  return it(() => a.option, (p) => {
9049
9051
  d(p);
9050
- }, { deep: !0 }), Et(() => {
9052
+ }, { deep: !0 }), Tt(() => {
9051
9053
  s();
9052
9054
  }), Do(() => {
9053
9055
  c && clearTimeout(c), l && i.value && (l.unobserve(i.value), l.disconnect(), l = null), r.value && (r.value.dispose(), r.value = void 0);
@@ -9069,7 +9071,7 @@ var Yp = /* @__PURE__ */ ye({
9069
9071
  const n = e.__vccOpts || e;
9070
9072
  for (const [a, o] of t) n[a] = o;
9071
9073
  return n;
9072
- }, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-69ad659b"]]), sv = ke(lv), cv = ["innerHTML"], uv = {
9074
+ }, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-37f9a80b"]]), sv = ke(lv), cv = ["innerHTML"], uv = {
9073
9075
  key: 1,
9074
9076
  class: "j-barcode-error"
9075
9077
  }, dv = /* @__PURE__ */ ye({
@@ -10060,7 +10062,7 @@ var Yp = /* @__PURE__ */ ye({
10060
10062
  },
10061
10063
  setup(e, { expose: t }) {
10062
10064
  const n = e, a = H(() => ({ ...n })), o = L(), i = L(null), r = H(() => n.options);
10063
- Et(() => {
10065
+ Tt(() => {
10064
10066
  n.animation && l();
10065
10067
  }), it(() => n.decimals, () => {
10066
10068
  i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
@@ -10932,8 +10934,8 @@ var Yp = /* @__PURE__ */ ye({
10932
10934
  }));
10933
10935
  }), it(() => a.mode, () => {
10934
10936
  l && f();
10935
- }), Et(async () => {
10936
- await Ht(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
10937
+ }), Tt(async () => {
10938
+ await Et(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
10937
10939
  l && l.dispatch({ scrollIntoView: !0 });
10938
10940
  }), p.observe(i.value));
10939
10941
  }), Do(() => {
@@ -11379,7 +11381,7 @@ var Yp = /* @__PURE__ */ ye({
11379
11381
  setup(e, { emit: t }) {
11380
11382
  const n = e, a = t, { activeMenu: o, theme: i } = No(), r = L(), l = L(0);
11381
11383
  let c = null;
11382
- Et(() => {
11384
+ Tt(() => {
11383
11385
  typeof window < "u" && window.ResizeObserver && r.value && (c = new ResizeObserver(() => {
11384
11386
  r.value && (l.value = r.value.offsetWidth);
11385
11387
  }), c.observe(r.value));
@@ -11944,7 +11946,7 @@ var Yp = /* @__PURE__ */ ye({
11944
11946
  }
11945
11947
  }
11946
11948
  ];
11947
- Et(() => {
11949
+ Tt(() => {
11948
11950
  c.value = o.searchFieldList, l.value = o.searchList;
11949
11951
  });
11950
11952
  const f = H(() => o.columns.filter((C) => !C.children?.length && !C.config?.isNotFilter).map((C) => ({
@@ -12492,16 +12494,16 @@ var Yp = /* @__PURE__ */ ye({
12492
12494
  Ot.value = ht.value?.clientWidth || 0;
12493
12495
  };
12494
12496
  let un;
12495
- Et(() => {
12496
- Ht(It), un = new ResizeObserver(() => {
12497
+ Tt(() => {
12498
+ Et(It), un = new ResizeObserver(() => {
12497
12499
  It();
12498
12500
  }), ht.value && un.observe(ht.value);
12499
12501
  }), zo(() => {
12500
12502
  un?.disconnect();
12501
12503
  }), it(() => on.value, () => {
12502
- Ht(It);
12504
+ Et(It);
12503
12505
  }, { deep: !0 }), it(Ge, () => {
12504
- Ht(It);
12506
+ Et(It);
12505
12507
  });
12506
12508
  const Zn = H(() => {
12507
12509
  const de = on.value;
@@ -12528,15 +12530,15 @@ var Yp = /* @__PURE__ */ ye({
12528
12530
  notLabel: !0
12529
12531
  },
12530
12532
  children: []
12531
- }, Mt = 28, Ft = [];
12532
- let jt = 0, Kt = null;
12533
+ }, jt = 28, Ft = [];
12534
+ let Pt = 0, Kt = null;
12533
12535
  for (let Dt = 0; Dt < de.length; Dt++) {
12534
12536
  const dn = de[Dt], Qt = zt(dn, Dt);
12535
- let pn = jt;
12537
+ let pn = Pt;
12536
12538
  Kt !== null && (pn += Qt === Kt ? -1 : 8), pn += Ce(dn);
12537
- const Ua = de.length - (Dt + 1) > 0 ? (pn > 0 ? 8 : 0) + Mt : 0;
12539
+ const Ua = de.length - (Dt + 1) > 0 ? (pn > 0 ? 8 : 0) + jt : 0;
12538
12540
  if (pn + Ua <= vt)
12539
- Ft.push(dn), jt = pn, Kt = Qt;
12541
+ Ft.push(dn), Pt = pn, Kt = Qt;
12540
12542
  else break;
12541
12543
  }
12542
12544
  const $e = de.slice(Ft.length);
@@ -12620,9 +12622,9 @@ var Yp = /* @__PURE__ */ ye({
12620
12622
  if (b.value) Ce = de;
12621
12623
  else if (!i.rowKey) Ce = de;
12622
12624
  else {
12623
- const lt = new Map(de.map((Mt) => [C(Mt), Mt])), Wt = new Map(p.value.map((Mt) => [C(Mt), Mt]));
12624
- c.forEach((Mt) => {
12625
- const Ft = C(Mt);
12625
+ const lt = new Map(de.map((jt) => [C(jt), jt])), Wt = new Map(p.value.map((jt) => [C(jt), jt]));
12626
+ c.forEach((jt) => {
12627
+ const Ft = C(jt);
12626
12628
  lt.has(Ft) ? Wt.set(Ft, lt.get(Ft)) : Wt.delete(Ft);
12627
12629
  }), Ce = Array.from(Wt.values());
12628
12630
  }
@@ -12644,7 +12646,7 @@ var Yp = /* @__PURE__ */ ye({
12644
12646
  }, Be = () => p.value || [], Le = (de) => {
12645
12647
  p.value = de, l.value?.setSelection?.(de);
12646
12648
  }, at = () => l.value;
12647
- return Et(async () => {
12649
+ return Tt(async () => {
12648
12650
  i.immediate && await _a();
12649
12651
  }), t({
12650
12652
  refreshData: _a,
@@ -12656,7 +12658,7 @@ var Yp = /* @__PURE__ */ ye({
12656
12658
  },
12657
12659
  getTableRef: at
12658
12660
  }), (de, Se) => {
12659
- const vt = V("j-buttons"), zt = V("j-icon"), Ce = V("el-popover"), lt = V("el-tooltip"), Wt = V("el-input"), Mt = V("j-button"), Ft = V("el-pagination"), jt = V("j-table"), Kt = $o("loading");
12661
+ const vt = V("j-buttons"), zt = V("j-icon"), Ce = V("el-popover"), lt = V("el-tooltip"), Wt = V("el-input"), jt = V("j-button"), Ft = V("el-pagination"), Pt = V("j-table"), Kt = $o("loading");
12660
12662
  return R(), D("div", { class: We(["j-table-panel-wrapper", {
12661
12663
  fullscreen: Ge.value,
12662
12664
  "no-padding": e.noPadding || Ge.value
@@ -12723,7 +12725,7 @@ var Yp = /* @__PURE__ */ ye({
12723
12725
  persistent: !1,
12724
12726
  onHide: rn
12725
12727
  }, {
12726
- reference: q(() => [Z(Mt, {
12728
+ reference: q(() => [Z(jt, {
12727
12729
  icon: "mdi:filter-outline",
12728
12730
  label: "筛选",
12729
12731
  type: "text",
@@ -12764,7 +12766,7 @@ var Yp = /* @__PURE__ */ ye({
12764
12766
  trigger: "click",
12765
12767
  onShow: je
12766
12768
  }, {
12767
- reference: q(() => [Z(Mt, {
12769
+ reference: q(() => [Z(jt, {
12768
12770
  class: We({ active: P.value.length > 0 }),
12769
12771
  type: "text",
12770
12772
  icon: "mdi:sort"
@@ -12794,7 +12796,7 @@ var Yp = /* @__PURE__ */ ye({
12794
12796
  trigger: "click",
12795
12797
  onShow: ie
12796
12798
  }, {
12797
- reference: q(() => [Z(Mt, {
12799
+ reference: q(() => [Z(jt, {
12798
12800
  class: We({ active: ee.value }),
12799
12801
  type: "text",
12800
12802
  icon: "mdi:table-headers-eye"
@@ -12815,7 +12817,7 @@ var Yp = /* @__PURE__ */ ye({
12815
12817
  placement: "bottom",
12816
12818
  content: J(a)("刷新")
12817
12819
  }, {
12818
- default: q(() => [Z(Mt, {
12820
+ default: q(() => [Z(jt, {
12819
12821
  type: "text",
12820
12822
  icon: "mdi:refresh",
12821
12823
  onClick: G
@@ -12827,7 +12829,7 @@ var Yp = /* @__PURE__ */ ye({
12827
12829
  placement: "bottom",
12828
12830
  content: Ge.value ? J(a)("退出全屏") : J(a)("全屏")
12829
12831
  }, {
12830
- default: q(() => [Z(Mt, {
12832
+ default: q(() => [Z(jt, {
12831
12833
  type: "text",
12832
12834
  icon: Ge.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
12833
12835
  onClick: rt
@@ -12864,7 +12866,7 @@ var Yp = /* @__PURE__ */ ye({
12864
12866
  "page-size",
12865
12867
  "page-sizes",
12866
12868
  "total"
12867
- ])])) : ne("", !0)], 2)) : (R(), N(jt, {
12869
+ ])])) : ne("", !0)], 2)) : (R(), N(Pt, {
12868
12870
  key: 1,
12869
12871
  ref_key: "tableRef",
12870
12872
  ref: l,
@@ -13122,7 +13124,7 @@ var Yp = /* @__PURE__ */ ye({
13122
13124
  d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({
13123
13125
  type: "j-tree",
13124
13126
  config: a
13125
- }), d.value = !1, Ht(() => {
13127
+ }), d.value = !1, Et(() => {
13126
13128
  a.afterLoadData && a.afterLoadData(g.value || []);
13127
13129
  });
13128
13130
  }, x = (O, M = !0) => {
@@ -13158,7 +13160,7 @@ var Yp = /* @__PURE__ */ ye({
13158
13160
  }, A = L(""), j = (O, M) => {
13159
13161
  A.value = O ? M.value : "";
13160
13162
  }, z = (O, M, E) => a.allowDrop ? a.allowDrop(O, M, E) : !(E == "inner" && !M.data.canInner);
13161
- return Et(async () => {
13163
+ return Tt(async () => {
13162
13164
  (a.immediate && a.loadData || a.dataType || a.dataCode) && await b();
13163
13165
  }), it(() => a.dataCode || a.dataType, () => {
13164
13166
  b();
@@ -13525,11 +13527,11 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13525
13527
  });
13526
13528
  }, te = async (G, pe) => {
13527
13529
  const re = ++E, le = b.value;
13528
- b.value = !1, le && await Ht();
13530
+ b.value = !1, le && await Et();
13529
13531
  const me = !!pe;
13530
13532
  if (S.length = 0, T = /* @__PURE__ */ Object.create(null), A = /* @__PURE__ */ Object.create(null), j = [], je = pe, Mo(v), Mo(k), me && qe(pe, ""), Ze(G, S, me), O = _e(), M = !1, z = O, ue(() => {
13531
13533
  re === E && (z = Yt(O), M = !0);
13532
- }), b.value = !0, await Ht(), await X(), a.config?.codeInit) {
13534
+ }), b.value = !0, await Et(), await X(), a.config?.codeInit) {
13533
13535
  const Be = a.config.codeInit;
13534
13536
  let Le;
13535
13537
  F?.raw === Be ? Le = F.obj : (Le = JSON.parse(Be), F = {
@@ -13850,7 +13852,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13850
13852
  i[y.id] = C, C.config = [], ji(C.config, y.config || {}, ["defaultValue"]), y?.config?.defaultValue !== void 0 && (r[y.id] = y.config.defaultValue), m.push(C), v && v.length > 0 && (C.children = [], l(v, C.children));
13851
13853
  });
13852
13854
  }, c = (w) => {
13853
- a.value = !1, o.splice(0, o.length), Mo(i), Mo(r), l(w, o), Ht(() => {
13855
+ a.value = !1, o.splice(0, o.length), Mo(i), Mo(r), l(w, o), Et(() => {
13854
13856
  a.value = !0;
13855
13857
  });
13856
13858
  };
@@ -14128,7 +14130,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14128
14130
  }, y = (v) => {
14129
14131
  o("rowChange", v);
14130
14132
  };
14131
- Et(() => {
14133
+ Tt(() => {
14132
14134
  if (!f.value || !h.value) return;
14133
14135
  const v = h.value, { initSortable: _ } = Ch(v, {
14134
14136
  handle: ".j-input-rows-drag",
@@ -14286,7 +14288,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14286
14288
  data: void 0
14287
14289
  });
14288
14290
  }, p = async ({ checked: w }) => {
14289
- s.value && w && (await Ht(), await g());
14291
+ s.value && w && (await Et(), await g());
14290
14292
  }, g = async () => {
14291
14293
  if (!l.value) return;
14292
14294
  const w = l.value.getSelection();
@@ -14589,7 +14591,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14589
14591
  }), c = (s) => {
14590
14592
  a("change", s);
14591
14593
  };
14592
- return Et(() => {
14594
+ return Tt(() => {
14593
14595
  n.autoFocus && !n.readonly && setTimeout(() => {
14594
14596
  const s = l.value === i.value ? r.value : i.value;
14595
14597
  l.value = s, c(s);
@@ -14833,7 +14835,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14833
14835
  }
14834
14836
  return u;
14835
14837
  };
14836
- return Et(() => {
14838
+ return Tt(() => {
14837
14839
  const f = {
14838
14840
  placeholder: n.placeholder || "请输入内容...",
14839
14841
  readOnly: n.readonly,
@@ -14961,7 +14963,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14961
14963
  x(m);
14962
14964
  } })), p.search(b));
14963
14965
  }
14964
- }), Et(() => {
14966
+ }), Tt(() => {
14965
14967
  f();
14966
14968
  }), (b, x) => (R(), D("div", {
14967
14969
  class: "j-map",
@@ -15272,9 +15274,9 @@ function Tr(e, t) {
15272
15274
  return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
15273
15275
  }
15274
15276
  function el(e, t, n) {
15275
- Bt(t) && (n = t, t = null), t || (t = {});
15277
+ Ht(t) && (n = t, t = null), t || (t = {});
15276
15278
  const a = Xe("path", t);
15277
- return Bt(n) && (a.dataset.cornerRadius = String(n)), Gc(a, e);
15279
+ return Ht(n) && (a.dataset.cornerRadius = String(n)), Gc(a, e);
15278
15280
  }
15279
15281
  function Gc(e, t) {
15280
15282
  return ze(e, { d: Wo(A0(t, parseInt(e.dataset.cornerRadius, 10) || 0)) }), e;
@@ -15873,7 +15875,7 @@ function ou(e, t) {
15873
15875
  var n = {};
15874
15876
  return ge(e, function(a) {
15875
15877
  var o = a;
15876
- o.waypoints && (o = zn(o)), !Bt(t.y) && o.x > t.x && (n[a.id] = a), !Bt(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Bt(t.width) && Bt(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Bt(t.width) || !Bt(t.height)) && (n[a.id] = a);
15878
+ o.waypoints && (o = zn(o)), !Ht(t.y) && o.x > t.x && (n[a.id] = a), !Ht(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Ht(t.width) && Ht(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Ht(t.width) || !Ht(t.height)) && (n[a.id] = a);
15877
15879
  }), n;
15878
15880
  }
15879
15881
  function J0(e) {
@@ -15999,7 +16001,7 @@ function iu(e, t, n, a, o) {
15999
16001
  hints: {},
16000
16002
  shape: f
16001
16003
  }, d || {}), ge(s, function(h) {
16002
- Bt(h.x) || (h.x = 0), Bt(h.y) || (h.y = 0);
16004
+ Ht(h.x) || (h.x = 0), Ht(h.y) || (h.y = 0);
16003
16005
  });
16004
16006
  var u = zn(mn(s, function(h) {
16005
16007
  return !h.hidden;
@@ -17046,7 +17048,7 @@ function Hw(e, t) {
17046
17048
  };
17047
17049
  }
17048
17050
  Jt.prototype.on = function(e, t, n, a, o, i) {
17049
- if ((In(t) || Bt(t)) && (i = o, o = a, a = n, n = t, t = null), In(n) && (i = o, o = a, a = n, n = Bw), bn(o) && (i = o, o = !1), !In(a)) throw new Error("handlerFn must be a function");
17051
+ if ((In(t) || Ht(t)) && (i = o, o = a, a = n, n = t, t = null), In(n) && (i = o, o = a, a = n, n = Bw), bn(o) && (i = o, o = !1), !In(a)) throw new Error("handlerFn must be a function");
17050
17052
  ft(e) || (e = [e]);
17051
17053
  var r = this._eventBus;
17052
17054
  ge(e, function(l) {
@@ -17071,7 +17073,7 @@ Jt.prototype.revert = Kn("revert");
17071
17073
  Jt.prototype.reverted = Kn("reverted");
17072
17074
  function Kn(e) {
17073
17075
  return function(n, a, o, i, r) {
17074
- (In(n) || Bt(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
17076
+ (In(n) || Ht(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
17075
17077
  };
17076
17078
  }
17077
17079
  var Ow = 250, Rs = 1400;
@@ -17402,7 +17404,7 @@ hl.$inject = ["modeling"];
17402
17404
  hl.prototype.preExecute = function(e) {
17403
17405
  var t = e.elements, n = e.parent, a = e.parentIndex, o = e.position, i = e.hints, r = this._modeling;
17404
17406
  ge(t, function(d) {
17405
- Bt(d.x) || (d.x = 0), Bt(d.y) || (d.y = 0);
17407
+ Ht(d.x) || (d.x = 0), Ht(d.y) || (d.y = 0);
17406
17408
  });
17407
17409
  var l = zn(mn(t, function(d) {
17408
17410
  return !d.hidden;
@@ -17421,11 +17423,11 @@ hl.prototype.preExecute = function(e) {
17421
17423
  var c = N0(t), s = {};
17422
17424
  ge(t, function(d) {
17423
17425
  if (tn(d)) {
17424
- s[d.id] = Bt(a) ? r.createConnection(s[d.source.id], s[d.target.id], a, d, d.parent || n, i) : r.createConnection(s[d.source.id], s[d.target.id], d, d.parent || n, i);
17426
+ s[d.id] = Ht(a) ? r.createConnection(s[d.source.id], s[d.target.id], a, d, d.parent || n, i) : r.createConnection(s[d.source.id], s[d.target.id], d, d.parent || n, i);
17425
17427
  return;
17426
17428
  }
17427
17429
  var f = De({}, i);
17428
- c.indexOf(d) === -1 && (f.autoResize = !1), no(d) && (f = xf(f, ["attach"])), s[d.id] = Bt(a) ? r.createShape(d, Mi(d, [
17430
+ c.indexOf(d) === -1 && (f.autoResize = !1), no(d) && (f = xf(f, ["attach"])), s[d.id] = Ht(a) ? r.createShape(d, Mi(d, [
17429
17431
  "x",
17430
17432
  "y",
17431
17433
  "width",
@@ -19920,7 +19922,7 @@ var Yu = { myImporter: ["type", va] }, Ju = (e) => {
19920
19922
  const k = S.createRoot();
19921
19923
  _.setRootElement(k), d();
19922
19924
  };
19923
- Et(() => {
19925
+ Tt(() => {
19924
19926
  u();
19925
19927
  });
19926
19928
  const h = (v) => {
@@ -20980,16 +20982,16 @@ function Ix() {
20980
20982
  }), e;
20981
20983
  }
20982
20984
  var Lx = { scheduler: ["type", fo] }, zx = "djs-element-hidden", _i = ".entry", Dx = 1e3, ac = 8, $x = 300;
20983
- function At(e, t, n, a) {
20985
+ function Mt(e, t, n, a) {
20984
20986
  this._canvas = e, this._elementRegistry = t, this._eventBus = n, this._scheduler = a, this._current = null, this._init();
20985
20987
  }
20986
- At.$inject = [
20988
+ Mt.$inject = [
20987
20989
  "canvas",
20988
20990
  "elementRegistry",
20989
20991
  "eventBus",
20990
20992
  "scheduler"
20991
20993
  ];
20992
- At.prototype._init = function() {
20994
+ Mt.prototype._init = function() {
20993
20995
  var e = this;
20994
20996
  this._eventBus.on("selection.changed", function(t) {
20995
20997
  var n = t.newSelection, a = n.length ? n.length === 1 ? n[0] : n : null;
@@ -21017,16 +21019,16 @@ At.prototype._init = function() {
21017
21019
  }
21018
21020
  }), this._container = this._createContainer();
21019
21021
  };
21020
- At.prototype._createContainer = function() {
21022
+ Mt.prototype._createContainer = function() {
21021
21023
  var e = fn('<div class="djs-context-pad-parent"></div>');
21022
21024
  return this._canvas.getContainer().appendChild(e), e;
21023
21025
  };
21024
- At.prototype.registerProvider = function(e, t) {
21026
+ Mt.prototype.registerProvider = function(e, t) {
21025
21027
  t || (t = e, e = Dx), this._eventBus.on("contextPad.getProviders", e, function(n) {
21026
21028
  n.providers.push(t);
21027
21029
  });
21028
21030
  };
21029
- At.prototype.getEntries = function(e) {
21031
+ Mt.prototype.getEntries = function(e) {
21030
21032
  var t = this._getProviders(), n = ft(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
21031
21033
  return ge(t, function(o) {
21032
21034
  if (In(o[n])) {
@@ -21037,7 +21039,7 @@ At.prototype.getEntries = function(e) {
21037
21039
  }
21038
21040
  }), a;
21039
21041
  };
21040
- At.prototype.trigger = function(e, t, n) {
21042
+ Mt.prototype.trigger = function(e, t, n) {
21041
21043
  var a = this, o, i, r = t.delegateTarget || t.target;
21042
21044
  if (!r) return t.preventDefault();
21043
21045
  if (o = Rn(r, "data-action"), i = t.originalEvent || t, e === "mouseover") {
@@ -21051,7 +21053,7 @@ At.prototype.trigger = function(e, t, n) {
21051
21053
  }
21052
21054
  return this.triggerEntry(o, e, i, n);
21053
21055
  };
21054
- At.prototype.triggerEntry = function(e, t, n, a) {
21056
+ Mt.prototype.triggerEntry = function(e, t, n, a) {
21055
21057
  if (this.isShown()) {
21056
21058
  var o = this._current.target, i = this._current.entries[e];
21057
21059
  if (i) {
@@ -21068,17 +21070,17 @@ At.prototype.triggerEntry = function(e, t, n, a) {
21068
21070
  }
21069
21071
  }
21070
21072
  };
21071
- At.prototype.open = function(e, t) {
21073
+ Mt.prototype.open = function(e, t) {
21072
21074
  !t && this.isOpen(e) || (this.close(), this._updateAndOpen(e));
21073
21075
  };
21074
- At.prototype._getProviders = function() {
21076
+ Mt.prototype._getProviders = function() {
21075
21077
  var e = this._eventBus.createEvent({
21076
21078
  type: "contextPad.getProviders",
21077
21079
  providers: []
21078
21080
  });
21079
21081
  return this._eventBus.fire(e), e.providers;
21080
21082
  };
21081
- At.prototype._updateAndOpen = function(e) {
21083
+ Mt.prototype._updateAndOpen = function(e) {
21082
21084
  var t = this.getEntries(e), n = this._createHtml(e), a;
21083
21085
  ge(t, function(o, i) {
21084
21086
  var r = o.group || "default", l = fn(o.html || '<div class="entry" draggable="true"></div>'), c;
@@ -21089,7 +21091,7 @@ At.prototype._updateAndOpen = function(e) {
21089
21091
  target: e
21090
21092
  }, this._updatePosition(), this._updateVisibility(), this._eventBus.fire("contextPad.open", { current: this._current });
21091
21093
  };
21092
- At.prototype._createHtml = function(e) {
21094
+ Mt.prototype._createHtml = function(e) {
21093
21095
  var t = this, n = fn('<div class="djs-context-pad"></div>');
21094
21096
  return aa.bind(n, _i, "click", function(a) {
21095
21097
  t.trigger("click", a);
@@ -21106,15 +21108,15 @@ At.prototype._createHtml = function(e) {
21106
21108
  pad: n
21107
21109
  }), n;
21108
21110
  };
21109
- At.prototype.getPad = function(e) {
21111
+ Mt.prototype.getPad = function(e) {
21110
21112
  console.warn(/* @__PURE__ */ new Error("ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888"));
21111
21113
  let t;
21112
21114
  return this.isOpen() && Nx(this._current.target, e) ? t = this._current.html : t = this._createHtml(e), { html: t };
21113
21115
  };
21114
- At.prototype.close = function() {
21116
+ Mt.prototype.close = function() {
21115
21117
  this.isOpen() && (clearTimeout(this._timeout), this._container.innerHTML = "", this._eventBus.fire("contextPad.close", { current: this._current }), this._current = null);
21116
21118
  };
21117
- At.prototype.isOpen = function(e) {
21119
+ Mt.prototype.isOpen = function(e) {
21118
21120
  var t = this._current;
21119
21121
  if (!t) return !1;
21120
21122
  if (!e) return !0;
@@ -21123,16 +21125,16 @@ At.prototype.isOpen = function(e) {
21123
21125
  return n.includes(a);
21124
21126
  }) : n === e;
21125
21127
  };
21126
- At.prototype.isShown = function() {
21128
+ Mt.prototype.isShown = function() {
21127
21129
  return this.isOpen() && sn(this._current.html).has("open");
21128
21130
  };
21129
- At.prototype.show = function() {
21131
+ Mt.prototype.show = function() {
21130
21132
  this.isOpen() && (sn(this._current.html).add("open"), this._updatePosition(), this._eventBus.fire("contextPad.show", { current: this._current }));
21131
21133
  };
21132
- At.prototype.hide = function() {
21134
+ Mt.prototype.hide = function() {
21133
21135
  this.isOpen() && (sn(this._current.html).remove("open"), this._eventBus.fire("contextPad.hide", { current: this._current }));
21134
21136
  };
21135
- At.prototype._getPosition = function(e) {
21137
+ Mt.prototype._getPosition = function(e) {
21136
21138
  if (!ft(e) && tn(e)) {
21137
21139
  var t = this._canvas.viewbox(), n = Vx(e), a = n.x * t.scale - t.x * t.scale, o = n.y * t.scale - t.y * t.scale;
21138
21140
  return {
@@ -21146,7 +21148,7 @@ At.prototype._getPosition = function(e) {
21146
21148
  top: r.top - i.top
21147
21149
  };
21148
21150
  };
21149
- At.prototype._updatePosition = function() {
21151
+ Mt.prototype._updatePosition = function() {
21150
21152
  const e = () => {
21151
21153
  if (this.isOpen()) {
21152
21154
  var t = this._current.html, n = this._getPosition(this._current.target);
@@ -21162,7 +21164,7 @@ At.prototype._updatePosition = function() {
21162
21164
  };
21163
21165
  this._scheduler.schedule(e, "ContextPad#_updatePosition");
21164
21166
  };
21165
- At.prototype._updateVisibility = function() {
21167
+ Mt.prototype._updateVisibility = function() {
21166
21168
  const e = () => {
21167
21169
  if (this.isOpen()) {
21168
21170
  var t = this, n = this._current.target;
@@ -21173,7 +21175,7 @@ At.prototype._updateVisibility = function() {
21173
21175
  };
21174
21176
  this._scheduler.schedule(e, "ContextPad#_updateVisibility");
21175
21177
  };
21176
- At.prototype._getTargetBounds = function(e) {
21178
+ Mt.prototype._getTargetBounds = function(e) {
21177
21179
  var t = this;
21178
21180
  return (ft(e) ? e : [e]).map(function(n) {
21179
21181
  return t._canvas.getGraphics(n);
@@ -21207,7 +21209,7 @@ var Wx = {
21207
21209
  Lx,
21208
21210
  Hx
21209
21211
  ],
21210
- contextPad: ["type", At]
21212
+ contextPad: ["type", Mt]
21211
21213
  }, Ux = 250;
21212
21214
  function Na(e) {
21213
21215
  this._eventBus = e, this._tools = [], this._active = null;
@@ -21816,7 +21818,7 @@ var sC = {
21816
21818
  move: ["type", dd],
21817
21819
  movePreview: ["type", fd]
21818
21820
  }, hd = ".djs-palette-toggle", pd = ".entry", cC = hd + ", " + pd, Dr = "djs-palette-", uC = "shown", $r = "open", pc = "two-column", dC = 1e3;
21819
- function Tt(e, t) {
21821
+ function At(e, t) {
21820
21822
  this._eventBus = e, this._canvas = t;
21821
21823
  var n = this;
21822
21824
  e.on("tool-manager.update", function(a) {
@@ -21828,20 +21830,20 @@ function Tt(e, t) {
21828
21830
  n._diagramInitialized = !0, n._rebuild();
21829
21831
  });
21830
21832
  }
21831
- Tt.$inject = ["eventBus", "canvas"];
21832
- Tt.prototype.registerProvider = function(e, t) {
21833
+ At.$inject = ["eventBus", "canvas"];
21834
+ At.prototype.registerProvider = function(e, t) {
21833
21835
  t || (t = e, e = dC), this._eventBus.on("palette.getProviders", e, function(n) {
21834
21836
  n.providers.push(t);
21835
21837
  }), this._rebuild();
21836
21838
  };
21837
- Tt.prototype.getEntries = function() {
21839
+ At.prototype.getEntries = function() {
21838
21840
  return this._getProviders().reduce(hC, {});
21839
21841
  };
21840
- Tt.prototype._rebuild = function() {
21842
+ At.prototype._rebuild = function() {
21841
21843
  this._diagramInitialized && this._getProviders().length && (this._container || this._init(), this._update());
21842
21844
  };
21843
- Tt.prototype._init = function() {
21844
- var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = fn(Tt.HTML_MARKUP);
21845
+ At.prototype._init = function() {
21846
+ var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = fn(At.HTML_MARKUP);
21845
21847
  n.appendChild(a), sn(n).add(Dr + uC), aa.bind(a, cC, "click", function(o) {
21846
21848
  var i = o.delegateTarget;
21847
21849
  if (mf(i, hd)) return e.toggle();
@@ -21852,14 +21854,14 @@ Tt.prototype._init = function() {
21852
21854
  e.trigger("dragstart", o);
21853
21855
  }), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", { container: a });
21854
21856
  };
21855
- Tt.prototype._getProviders = function(e) {
21857
+ At.prototype._getProviders = function(e) {
21856
21858
  var t = this._eventBus.createEvent({
21857
21859
  type: "palette.getProviders",
21858
21860
  providers: []
21859
21861
  });
21860
21862
  return this._eventBus.fire(t), t.providers;
21861
21863
  };
21862
- Tt.prototype._toggleState = function(e) {
21864
+ At.prototype._toggleState = function(e) {
21863
21865
  e = e || {};
21864
21866
  var t = this._getParentContainer(), n = this._container, a = this._eventBus, o, i = sn(n), r = sn(t);
21865
21867
  "twoColumn" in e ? o = e.twoColumn : o = this._needsCollapse(t.clientHeight, this._entries || {}), i.toggle(pc, o), r.toggle(Dr + pc, o), "open" in e && (i.toggle($r, e.open), r.toggle(Dr + $r, e.open)), a.fire("palette.changed", {
@@ -21867,7 +21869,7 @@ Tt.prototype._toggleState = function(e) {
21867
21869
  open: this.isOpen()
21868
21870
  });
21869
21871
  };
21870
- Tt.prototype._update = function() {
21872
+ At.prototype._update = function() {
21871
21873
  var e = Zt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
21872
21874
  _c(e), ge(t, function(n, a) {
21873
21875
  var o = n.group || "default", i = Zt("[data-group=" + Tl(o) + "]", e);
@@ -21879,11 +21881,11 @@ Tt.prototype._update = function() {
21879
21881
  }
21880
21882
  }), this.open();
21881
21883
  };
21882
- Tt.prototype.trigger = function(e, t, n) {
21884
+ At.prototype.trigger = function(e, t, n) {
21883
21885
  var a, o, i = t.delegateTarget || t.target;
21884
21886
  return i ? (a = Rn(i, "data-action"), o = t.originalEvent || t, this.triggerEntry(a, e, o, n)) : t.preventDefault();
21885
21887
  };
21886
- Tt.prototype.triggerEntry = function(e, t, n, a) {
21888
+ At.prototype.triggerEntry = function(e, t, n, a) {
21887
21889
  var o = this._entries[e], i;
21888
21890
  if (o && (i = o.action, this._eventBus.fire("palette.trigger", {
21889
21891
  entry: o,
@@ -21895,28 +21897,28 @@ Tt.prototype.triggerEntry = function(e, t, n, a) {
21895
21897
  n.preventDefault();
21896
21898
  }
21897
21899
  };
21898
- Tt.prototype._layoutChanged = function() {
21900
+ At.prototype._layoutChanged = function() {
21899
21901
  this._toggleState({});
21900
21902
  };
21901
- Tt.prototype._needsCollapse = function(e, t) {
21903
+ At.prototype._needsCollapse = function(e, t) {
21902
21904
  return e < Object.keys(t).length * 46 + 50;
21903
21905
  };
21904
- Tt.prototype.close = function() {
21906
+ At.prototype.close = function() {
21905
21907
  this._toggleState({
21906
21908
  open: !1,
21907
21909
  twoColumn: !1
21908
21910
  });
21909
21911
  };
21910
- Tt.prototype.open = function() {
21912
+ At.prototype.open = function() {
21911
21913
  this._toggleState({ open: !0 });
21912
21914
  };
21913
- Tt.prototype.toggle = function() {
21915
+ At.prototype.toggle = function() {
21914
21916
  this.isOpen() ? this.close() : this.open();
21915
21917
  };
21916
- Tt.prototype.isActiveTool = function(e) {
21918
+ At.prototype.isActiveTool = function(e) {
21917
21919
  return e && this._activeTool === e;
21918
21920
  };
21919
- Tt.prototype.updateToolHighlight = function(e) {
21921
+ At.prototype.updateToolHighlight = function(e) {
21920
21922
  var t, n;
21921
21923
  this._toolsContainer || (t = Zt(".djs-palette-entries", this._container), this._toolsContainer = Zt("[data-group=tools]", t)), n = this._toolsContainer, ge(n.children, function(a) {
21922
21924
  var o = a.getAttribute("data-action");
@@ -21926,13 +21928,13 @@ Tt.prototype.updateToolHighlight = function(e) {
21926
21928
  }
21927
21929
  });
21928
21930
  };
21929
- Tt.prototype.isOpen = function() {
21931
+ At.prototype.isOpen = function() {
21930
21932
  return sn(this._container).has($r);
21931
21933
  };
21932
- Tt.prototype._getParentContainer = function() {
21934
+ At.prototype._getParentContainer = function() {
21933
21935
  return this._canvas.getContainer();
21934
21936
  };
21935
- Tt.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
21937
+ At.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
21936
21938
  function fC(e, t) {
21937
21939
  var n = sn(e);
21938
21940
  (ft(t) ? t : t.split(/\s+/g)).forEach(function(a) {
@@ -21947,7 +21949,7 @@ function hC(e, t) {
21947
21949
  }
21948
21950
  var pC = {
21949
21951
  __init__: ["palette"],
21950
- palette: ["type", Tt]
21952
+ palette: ["type", At]
21951
21953
  };
21952
21954
  function gd(e, t, n, a) {
21953
21955
  e.on("element.changed", function(o) {
@@ -21985,7 +21987,7 @@ function yC(e, t, n) {
21985
21987
  }
21986
21988
  function Ci(e, t, n) {
21987
21989
  var a = t[e], o = n.min && n.min[e], i = n.max && n.max[e];
21988
- return Bt(o) && (a = (/top|left/.test(e) ? Fi : $i)(a, o)), Bt(i) && (a = (/top|left/.test(e) ? $i : Fi)(a, i)), a;
21990
+ return Ht(o) && (a = (/top|left/.test(e) ? Fi : $i)(a, o)), Ht(i) && (a = (/top|left/.test(e) ? $i : Fi)(a, i)), a;
21989
21991
  }
21990
21992
  function mC(e, t) {
21991
21993
  if (!t) return e;
@@ -22462,7 +22464,7 @@ $n.prototype.addSnapTargetPoints = function(e, t, n) {
22462
22464
  return;
22463
22465
  }
22464
22466
  e.add("mid", Qa(a));
22465
- }), !Bt(t.x) || !Bt(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Qa(t)), e;
22467
+ }), !Ht(t.x) || !Ht(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Qa(t)), e;
22466
22468
  };
22467
22469
  $n.prototype.getSnapTargets = function(e, t) {
22468
22470
  return od(t).filter(function(n) {
@@ -22570,7 +22572,7 @@ wa.prototype.snap = function(e, t) {
22570
22572
  wa.prototype._createLine = function(e) {
22571
22573
  var t = this._canvas.getLayer("snap"), n = Xe("path");
22572
22574
  return ze(n, { d: "M0,0 L0,0" }), pt(n).add("djs-snap-line"), tt(t, n), { update: function(a) {
22573
- Bt(a) ? e === "horizontal" ? ze(n, {
22575
+ Ht(a) ? e === "horizontal" ? ze(n, {
22574
22576
  d: "M-100000," + a + " L+100000," + a,
22575
22577
  display: ""
22576
22578
  }) : ze(n, {
@@ -23082,7 +23084,7 @@ var s1 = {
23082
23084
  const z = j.createRoot();
23083
23085
  A.setRootElement(z), d();
23084
23086
  };
23085
- Et(() => {
23087
+ Tt(() => {
23086
23088
  u();
23087
23089
  });
23088
23090
  const h = (T) => {