@a2simcode/ui 0.0.246 → 0.0.248

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 (358) 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 +128 -128
  6. package/dist/simcode-ui.umd.js +2 -2
  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 -175
  55. package/docs/components/meta/input-cards.ts +112 -112
  56. package/docs/components/meta/input-code.ts +161 -161
  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 +272 -272
  67. package/docs/components/meta/table.ts +409 -409
  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 +297 -297
  84. package/docs/components/table.md +450 -450
  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/column-filter.vue +96 -96
  292. package/docs/examples/table/custom-layout.vue +115 -115
  293. package/docs/examples/table/dynamic-type.vue +73 -73
  294. package/docs/examples/table/editable.vue +262 -262
  295. package/docs/examples/table/field-selection.vue +87 -87
  296. package/docs/examples/table/frozen-column.vue +140 -140
  297. package/docs/examples/table/height-mode.vue +99 -99
  298. package/docs/examples/table/icon.vue +85 -85
  299. package/docs/examples/table/layer-form.vue +133 -133
  300. package/docs/examples/table/link.vue +66 -66
  301. package/docs/examples/table/multiple-disabled.vue +112 -112
  302. package/docs/examples/table/multiple.vue +188 -188
  303. package/docs/examples/table/pagination.vue +151 -151
  304. package/docs/examples/table/row-drag.vue +67 -67
  305. package/docs/examples/table/single-selection.vue +64 -64
  306. package/docs/examples/table/sub-table-lazy.vue +97 -97
  307. package/docs/examples/table/sub-table.vue +103 -103
  308. package/docs/examples/table/tag.vue +43 -43
  309. package/docs/examples/table/tree-column.vue +119 -119
  310. package/docs/examples/table/tree-data.vue +141 -141
  311. package/docs/examples/table/tree-default-expand-all.vue +60 -60
  312. package/docs/examples/table/tree-lazy.vue +80 -80
  313. package/docs/examples/table/tree-set-selection.vue +75 -75
  314. package/docs/examples/table-panel/basic.vue +229 -229
  315. package/docs/examples/table-panel/batch-operations.vue +286 -286
  316. package/docs/examples/table-panel/button-visibility.vue +88 -88
  317. package/docs/examples/table-panel/column-filter.vue +116 -116
  318. package/docs/examples/table-panel/filter.vue +219 -219
  319. package/docs/examples/table-panel/get-selection.vue +111 -111
  320. package/docs/examples/table-panel/mask.vue +151 -151
  321. package/docs/examples/table-panel/model-value.vue +87 -87
  322. package/docs/examples/table-panel/multiple-selection.vue +243 -243
  323. package/docs/examples/table-panel/pagination.vue +133 -133
  324. package/docs/examples/table-panel/search-list.vue +207 -207
  325. package/docs/examples/table-panel/sub-table-lazy.vue +118 -118
  326. package/docs/examples/table-panel/tree-parent-key.vue +67 -67
  327. package/docs/examples/tabs/basic.vue +98 -98
  328. package/docs/examples/time/base.vue +67 -67
  329. package/docs/examples/title/basic.vue +87 -87
  330. package/docs/examples/tree/accordion.vue +46 -46
  331. package/docs/examples/tree/basic.vue +50 -50
  332. package/docs/examples/tree/buttons.vue +53 -53
  333. package/docs/examples/tree/checkable.vue +52 -52
  334. package/docs/examples/tree/custom-keys.vue +39 -39
  335. package/docs/examples/tree/default-expanded.vue +52 -52
  336. package/docs/examples/tree/draggable.vue +29 -29
  337. package/docs/examples/tree/expand-on-click.vue +39 -39
  338. package/docs/examples/tree/flat-data.vue +20 -20
  339. package/docs/examples/tree/icon.vue +40 -40
  340. package/docs/examples/tree/load-data.vue +37 -37
  341. package/docs/examples/tree/methods.vue +74 -74
  342. package/docs/examples/tree/theme.vue +33 -33
  343. package/docs/examples/tree-select/basic.vue +47 -47
  344. package/docs/examples/upload/accept.vue +31 -31
  345. package/docs/examples/upload/basic.vue +12 -12
  346. package/docs/examples/upload/drag.vue +11 -11
  347. package/docs/examples/upload/image.vue +17 -17
  348. package/docs/examples/upload/limit.vue +20 -20
  349. package/docs/examples/upload/multiple.vue +17 -17
  350. package/docs/examples/upload/readonly.vue +17 -17
  351. package/docs/examples/utils/cipher.vue +160 -160
  352. package/docs/examples/utils/common.vue +153 -153
  353. package/docs/examples/utils/date.vue +56 -56
  354. package/docs/examples/utils/dom.vue +52 -52
  355. package/docs/examples/utils/is.vue +70 -70
  356. package/docs/examples/workflow/basic.vue +265 -265
  357. package/docs/examples/workflow-viewer/basic.vue +248 -248
  358. package/package.json +23 -23
@@ -1,4 +1,4 @@
1
- import { Fragment as Te, computed as O, createBlock as N, createCommentVNode as ae, createElementBlock as z, createElementVNode as H, createSlots as Yn, createTextVNode as Wn, createVNode as Z, defineComponent as me, getCurrentInstance as mc, guardReactiveProps as zo, h as Ti, inject as jd, mergeModels as Oo, mergeProps as Ue, nextTick as Ot, normalizeClass as We, normalizeProps as Ha, normalizeStyle as ce, onBeforeUnmount as Do, onMounted as At, onUnmounted as $o, openBlock as R, provide as Pd, reactive as sa, ref as L, render as Ai, renderList as Ie, renderSlot as et, resolveComponent as V, resolveDirective as Fo, resolveDynamicComponent as Ia, shallowRef as Vo, toDisplayString as _e, unref as J, useModel as Io, useSlots as Bd, useTemplateRef as Pa, vShow as br, watch as at, watchEffect as bc, withCtx as q, withDirectives as ca, withKeys as wr, withModifiers as Qt } from "vue";
1
+ import { Fragment as Te, computed as O, createBlock as N, createCommentVNode as ae, createElementBlock as z, createElementVNode as H, createSlots as Yn, createTextVNode as Wn, createVNode as Z, defineComponent as me, getCurrentInstance as mc, guardReactiveProps as zo, h as Ti, inject as jd, mergeModels as Oo, mergeProps as Ue, nextTick as At, normalizeClass as We, normalizeProps as Ha, normalizeStyle as ce, onBeforeUnmount as Do, onMounted as Mt, onUnmounted as $o, openBlock as R, provide as Pd, reactive as sa, ref as L, render as Ai, renderList as Ie, renderSlot as et, resolveComponent as V, resolveDirective as Fo, resolveDynamicComponent as Ia, shallowRef as Vo, toDisplayString as _e, unref as J, useModel as Io, useSlots as Bd, useTemplateRef as Pa, vShow as br, watch as at, watchEffect as bc, withCtx as q, withDirectives as ca, withKeys as wr, withModifiers as Qt } from "vue";
2
2
  import { Icon as zl, getIcon as ja } from "@iconify/vue";
3
3
  import ao 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 Ni, attr as An, classes as un, clear as _c, closest as Nr, delegate as ia, domify as vn, event as ut, matches as mf, query as en, queryAll as _r, remove as xr } from "min-dom";
32
- import { assign as $e, bind as Wr, debounce as bf, every as Ur, filter as _n, find as In, flatten as wf, forEach as ye, groupBy as Yr, has as xc, isArray as ft, isDefined as Tn, isFunction as Ln, isNil as $l, isNumber as Ht, isObject as xn, isString as Cr, isUndefined as _f, map as No, matchPattern as Mi, omit as xf, pick as ji, reduce as Sr, size as Cf, some as Sf, sortBy as Lo, uniqueBy as kf, values as Jr, without as Rf } from "min-dash";
32
+ import { assign as $e, bind as Wr, debounce as bf, every as Ur, filter as _n, find as In, flatten as wf, forEach as ye, groupBy as Yr, has as xc, isArray as ft, isDefined as Tn, isFunction as Ln, isNil as $l, isNumber as Ot, isObject as xn, isString as Cr, isUndefined as _f, map as No, matchPattern as Mi, omit as xf, pick as ji, reduce as Sr, size as Cf, some as Sf, sortBy as Lo, uniqueBy as kf, values as Jr, without as Rf } from "min-dash";
33
33
  import { append as tt, attr as De, classes as pt, clear as Gr, clone as Cc, create as Xe, createTransform as Mo, remove as wn, transform as Kr } from "tiny-svg";
34
34
  import La from "inherits";
35
35
  import Ef from "diagram-js-direct-editing";
@@ -1429,8 +1429,8 @@ var nh = /* @__PURE__ */ dn(((e, t) => {
1429
1429
  var Zn = f[ht - 15], gt = Zn.high, Kt = Zn.low, ln = (gt >>> 1 | Kt << 31) ^ (gt >>> 8 | Kt << 24) ^ gt >>> 7, Mn = (Kt >>> 1 | gt << 31) ^ (Kt >>> 8 | gt << 24) ^ (Kt >>> 7 | gt << 25), Qn = f[ht - 2], Wt = Qn.high, zt = Qn.low, Ca = (Wt >>> 19 | zt << 13) ^ (Wt << 3 | zt >>> 29) ^ Wt >>> 6, G = (zt >>> 19 | Wt << 13) ^ (zt << 3 | Wt >>> 29) ^ (zt >>> 6 | Wt << 26), ve = f[ht - 7], re = ve.high, le = ve.low, be = f[ht - 16], Pe = be.high, Le = be.low;
1430
1430
  It = Mn + le, Lt = ln + re + (It >>> 0 < Mn >>> 0 ? 1 : 0), It = It + G, Lt = Lt + Ca + (It >>> 0 < G >>> 0 ? 1 : 0), It = It + Le, Lt = Lt + Pe + (It >>> 0 < Le >>> 0 ? 1 : 0), fn.high = Lt, fn.low = It;
1431
1431
  }
1432
- var ot = ie & Ge ^ ~ie & Qe, Ct = ke & it ^ ~ke & an, de = B & qe ^ B & Ze ^ qe & Ze, Ce = Me & je ^ Me & te ^ je & te, vt = (B >>> 28 | Me << 4) ^ (B << 30 | Me >>> 2) ^ (B << 25 | Me >>> 7), Dt = (Me >>> 28 | B << 4) ^ (Me << 30 | B >>> 2) ^ (Me << 25 | B >>> 7), xe = (ie >>> 14 | ke << 18) ^ (ie >>> 18 | ke << 14) ^ (ie << 23 | ke >>> 9), lt = (ke >>> 14 | ie << 18) ^ (ke >>> 18 | ie << 14) ^ (ke << 23 | ie >>> 9), Ut = d[ht], Pt = Ut.high, Vt = Ut.low, Bt = rn + lt, qt = on + xe + (Bt >>> 0 < rn >>> 0 ? 1 : 0), Bt = Bt + Ct, qt = qt + ot + (Bt >>> 0 < Ct >>> 0 ? 1 : 0), Bt = Bt + Vt, qt = qt + Pt + (Bt >>> 0 < Vt >>> 0 ? 1 : 0), Bt = Bt + It, qt = qt + Lt + (Bt >>> 0 < It >>> 0 ? 1 : 0), Fe = Dt + Ce, yn = vt + de + (Fe >>> 0 < Dt >>> 0 ? 1 : 0);
1433
- on = Qe, rn = an, Qe = Ge, an = it, Ge = ie, it = ke, ke = ee + Bt | 0, ie = Oe + qt + (ke >>> 0 < ee >>> 0 ? 1 : 0) | 0, Oe = Ze, ee = te, Ze = qe, te = je, qe = B, je = Me, Me = Bt + Fe | 0, B = qt + yn + (Me >>> 0 < Bt >>> 0 ? 1 : 0) | 0;
1432
+ var ot = ie & Ge ^ ~ie & Qe, Ct = ke & it ^ ~ke & an, de = B & qe ^ B & Ze ^ qe & Ze, Ce = Me & je ^ Me & te ^ je & te, vt = (B >>> 28 | Me << 4) ^ (B << 30 | Me >>> 2) ^ (B << 25 | Me >>> 7), Dt = (Me >>> 28 | B << 4) ^ (Me << 30 | B >>> 2) ^ (Me << 25 | B >>> 7), xe = (ie >>> 14 | ke << 18) ^ (ie >>> 18 | ke << 14) ^ (ie << 23 | ke >>> 9), lt = (ke >>> 14 | ie << 18) ^ (ke >>> 18 | ie << 14) ^ (ke << 23 | ie >>> 9), Ut = d[ht], Bt = Ut.high, Vt = Ut.low, Ht = rn + lt, qt = on + xe + (Ht >>> 0 < rn >>> 0 ? 1 : 0), Ht = Ht + Ct, qt = qt + ot + (Ht >>> 0 < Ct >>> 0 ? 1 : 0), Ht = Ht + Vt, qt = qt + Bt + (Ht >>> 0 < Vt >>> 0 ? 1 : 0), Ht = Ht + It, qt = qt + Lt + (Ht >>> 0 < It >>> 0 ? 1 : 0), Fe = Dt + Ce, yn = vt + de + (Fe >>> 0 < Dt >>> 0 ? 1 : 0);
1433
+ on = Qe, rn = an, Qe = Ge, an = it, Ge = ie, it = ke, ke = ee + Ht | 0, ie = Oe + qt + (ke >>> 0 < ee >>> 0 ? 1 : 0) | 0, Oe = Ze, ee = te, Ze = qe, te = je, qe = B, je = Me, Me = Ht + Fe | 0, B = qt + yn + (Me >>> 0 < Ht >>> 0 ? 1 : 0) | 0;
1434
1434
  }
1435
1435
  k = b.low = k + Me, b.high = S + B + (k >>> 0 < Me >>> 0 ? 1 : 0), A = x.low = A + je, x.high = T + qe + (A >>> 0 < je >>> 0 ? 1 : 0), $ = w.low = $ + te, w.high = P + Ze + ($ >>> 0 < te >>> 0 ? 1 : 0), M = m.low = M + ee, m.high = j + Oe + (M >>> 0 < ee >>> 0 ? 1 : 0), D = y.low = D + ke, y.high = E + ie + (D >>> 0 < ke >>> 0 ? 1 : 0), ue = C.low = ue + it, C.high = X + Ge + (ue >>> 0 < it >>> 0 ? 1 : 0), W = v.low = W + an, v.high = we + Qe + (W >>> 0 < an >>> 0 ? 1 : 0), Q = _.low = Q + rn, _.high = K + on + (Q >>> 0 < rn >>> 0 ? 1 : 0);
1436
1436
  },
@@ -1535,7 +1535,7 @@ var nh = /* @__PURE__ */ dn(((e, t) => {
1535
1535
  }, lS = (e, t) => Hc(e, t).toString(Bi);
1536
1536
  function Ch(e, t) {
1537
1537
  function n() {
1538
- Ot(() => {
1538
+ At(() => {
1539
1539
  e = J(e), e && Hd.create(e, {
1540
1540
  animation: 100,
1541
1541
  delay: 400,
@@ -1728,7 +1728,7 @@ var Hh = /* @__PURE__ */ me({
1728
1728
  }, 100);
1729
1729
  }
1730
1730
  }, k = ($) => {
1731
- u.value = $?.name, a.value = $?.width || 600, o.value = $?.height || 400, i.value = $?.hasBtns !== !1, r.value = $?.hasSaveBtn !== !1, l.value = $?.hasHeader !== !1, $?.destroyOnClose !== !1 && (d.value = !0), h.value = $?.config || {}, c.value = $?.btnText || "保存", y = $?.afterOk || null, C = $?.afterClose || null, v = $?.afterCancel || null, n.value.open($.title, $.type, $.subtitle), Ot(async () => {
1731
+ u.value = $?.name, a.value = $?.width || 600, o.value = $?.height || 400, i.value = $?.hasBtns !== !1, r.value = $?.hasSaveBtn !== !1, l.value = $?.hasHeader !== !1, $?.destroyOnClose !== !1 && (d.value = !0), h.value = $?.config || {}, c.value = $?.btnText || "保存", y = $?.afterOk || null, C = $?.afterClose || null, v = $?.afterCancel || null, n.value.open($.title, $.type, $.subtitle), At(async () => {
1732
1732
  n.value.showLoading("加载中"), await S($.param || {});
1733
1733
  });
1734
1734
  }, T = async () => {
@@ -1999,7 +1999,7 @@ var Ih = Se(zc), Lh = /* @__PURE__ */ me({
1999
1999
  }, d = (f) => {
2000
2000
  a("change", f);
2001
2001
  };
2002
- return At(() => {
2002
+ return Mt(() => {
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 = Se(zc), Lh = /* @__PURE__ */ me({
2653
2653
  });
2654
2654
  }
2655
2655
  };
2656
- return At(() => {
2656
+ return Mt(() => {
2657
2657
  n.autoFocus && !n.readonly && setTimeout(() => {
2658
2658
  o.value.toggleMenu();
2659
2659
  }, 50);
@@ -2862,7 +2862,7 @@ var Ih = Se(zc), Lh = /* @__PURE__ */ me({
2862
2862
  disabled: "disabled",
2863
2863
  leaf: "leaf"
2864
2864
  }));
2865
- return At(() => {
2865
+ return Mt(() => {
2866
2866
  a.autoFocus && !a.readonly && setTimeout(() => {
2867
2867
  o.value.togglePopperVisible();
2868
2868
  }, 50);
@@ -3072,7 +3072,7 @@ var Ih = Se(zc), Lh = /* @__PURE__ */ me({
3072
3072
  focus: () => {
3073
3073
  o.value?.focus();
3074
3074
  }
3075
- }), At(() => {
3075
+ }), Mt(() => {
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 = Se(zc), Lh = /* @__PURE__ */ me({
3247
3247
  blur: () => {
3248
3248
  o.value?.blur();
3249
3249
  }
3250
- }), At(() => {
3250
+ }), Mt(() => {
3251
3251
  a.autoFocus && !a.readonly && setTimeout(() => {
3252
3252
  o.value.focus();
3253
3253
  }, 50);
@@ -3512,7 +3512,7 @@ var Ih = Se(zc), Lh = /* @__PURE__ */ me({
3512
3512
  d.value = s.value - j - M < t.midMinWidth;
3513
3513
  };
3514
3514
  let $ = null;
3515
- return At(() => {
3515
+ return Mt(() => {
3516
3516
  t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (P(), $ = new ResizeObserver(() => {
3517
3517
  P();
3518
3518
  }), $.observe(a.value));
@@ -5531,7 +5531,7 @@ var Dp = class {
5531
5531
  };
5532
5532
  return at([() => n.id, () => B.value], () => {
5533
5533
  Ze();
5534
- }, { immediate: !0 }), At(() => {
5534
+ }, { immediate: !0 }), Mt(() => {
5535
5535
  n.id && h && h(n.id), n.id && x && x(n.id);
5536
5536
  }), Do(() => {
5537
5537
  je();
@@ -6631,13 +6631,13 @@ var Yp = /* @__PURE__ */ me({
6631
6631
  return `#${(U << 16 | ne << 8 | se).toString(16).padStart(6, "0")}`;
6632
6632
  }, zt = () => {
6633
6633
  let I = T;
6634
- o.isPage && (I = Bt.value + T);
6634
+ o.isPage && (I = Ht.value + T);
6635
6635
  let F = En(String(I)) || 0;
6636
6636
  return o.subColumns && o.subColumns.length > 0 && (F = F + 32), Math.max(45, F + 18);
6637
6637
  }, Ca = (I) => {
6638
6638
  let F = (Y, oe, U, ne) => {
6639
6639
  const se = ne.getRecordIndexByCell(oe, U);
6640
- return o.isPage && !I ? Bt.value + se + 1 : se + 1;
6640
+ return o.isPage && !I ? Ht.value + se + 1 : se + 1;
6641
6641
  };
6642
6642
  return I && (F = (Y, oe, U, ne) => ne.getRecordIndexByCell(oe, U) + 1), {
6643
6643
  field: "__sequence__",
@@ -6900,7 +6900,7 @@ var Yp = /* @__PURE__ */ me({
6900
6900
  o.heightMode === "auto" && (x.value = y.getAllRowsHeight());
6901
6901
  }
6902
6902
  }, lt = () => y ? y.records : [];
6903
- At(() => {
6903
+ Mt(() => {
6904
6904
  de();
6905
6905
  }), Do(() => {
6906
6906
  Ce(), Q(), document.removeEventListener("wheel", qe);
@@ -6912,14 +6912,14 @@ var Yp = /* @__PURE__ */ me({
6912
6912
  set(I) {
6913
6913
  i("update:tablePage", I);
6914
6914
  }
6915
- }), Pt = L(0), Vt = O({
6915
+ }), Bt = L(0), Vt = O({
6916
6916
  get() {
6917
- return Pt.value !== 0 ? Pt.value : o.pageSize;
6917
+ return Bt.value !== 0 ? Bt.value : o.pageSize;
6918
6918
  },
6919
6919
  set(I) {
6920
- Pt.value = I, i("update:pageSize", I);
6920
+ Bt.value = I, i("update:pageSize", I);
6921
6921
  }
6922
- }), Bt = O(() => (Ut.value - 1) * Vt.value), qt = (I, F) => {
6922
+ }), Ht = O(() => (Ut.value - 1) * Vt.value), qt = (I, F) => {
6923
6923
  i("loadPageData", {
6924
6924
  rows: F,
6925
6925
  page: I
@@ -7304,7 +7304,7 @@ var Yp = /* @__PURE__ */ me({
7304
7304
  _top: 0
7305
7305
  }), g = L(0), b = L(), x = L(48), w = L(0), m = L(0);
7306
7306
  at(() => a.visible, (B) => {
7307
- g.value = 1, g.value = 0, r.value = B, B === !0 && a.zoomControls && Ot(() => {
7307
+ g.value = 1, g.value = 0, r.value = B, B === !0 && a.zoomControls && At(() => {
7308
7308
  typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = K));
7309
7309
  });
7310
7310
  }, { immediate: !0 });
@@ -7329,7 +7329,7 @@ var Yp = /* @__PURE__ */ me({
7329
7329
  }, A = () => {
7330
7330
  o("ok", S, k);
7331
7331
  }, P = () => {
7332
- p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && ($.value = 0, Ot(() => {
7332
+ p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && ($.value = 0, At(() => {
7333
7333
  D();
7334
7334
  })), o("closed");
7335
7335
  }, $ = O({
@@ -7340,11 +7340,11 @@ var Yp = /* @__PURE__ */ me({
7340
7340
  h.value = B, o("update:stepActive", B);
7341
7341
  }
7342
7342
  }), j = () => {
7343
- $.value > 0 && $.value--, Ot(() => {
7343
+ $.value > 0 && $.value--, At(() => {
7344
7344
  D();
7345
7345
  });
7346
7346
  }, M = async () => {
7347
- await E() && ($.value < a.steps.length - 1 && ($.value += 1), Ot(() => {
7347
+ await E() && ($.value < a.steps.length - 1 && ($.value += 1), At(() => {
7348
7348
  D();
7349
7349
  }));
7350
7350
  }, E = async () => {
@@ -7613,7 +7613,7 @@ var Yp = /* @__PURE__ */ me({
7613
7613
  }, x = () => {
7614
7614
  o("ok", m, y);
7615
7615
  }, w = () => {
7616
- a.isStep && (g.value = 0, Ot(() => {
7616
+ a.isStep && (g.value = 0, At(() => {
7617
7617
  S();
7618
7618
  })), o("closed");
7619
7619
  }, m = (A) => {
@@ -7621,11 +7621,11 @@ var Yp = /* @__PURE__ */ me({
7621
7621
  }, y = () => {
7622
7622
  c.value = !1;
7623
7623
  }, C = () => {
7624
- g.value > 0 && g.value--, Ot(() => {
7624
+ g.value > 0 && g.value--, At(() => {
7625
7625
  S();
7626
7626
  });
7627
7627
  }, v = async () => {
7628
- await _() && (g.value < a.steps.length - 1 && (g.value += 1), Ot(() => {
7628
+ await _() && (g.value < a.steps.length - 1 && (g.value += 1), At(() => {
7629
7629
  S();
7630
7630
  }));
7631
7631
  }, _ = async () => {
@@ -7875,7 +7875,7 @@ var Yp = /* @__PURE__ */ me({
7875
7875
  }, f = () => {
7876
7876
  r.value = !1;
7877
7877
  }, u = () => {
7878
- a.isStep && (C.value = 0, Ot(() => {
7878
+ a.isStep && (C.value = 0, At(() => {
7879
7879
  k();
7880
7880
  })), i("closed");
7881
7881
  }, h = () => {
@@ -7892,11 +7892,11 @@ var Yp = /* @__PURE__ */ me({
7892
7892
  y.value = A, i("update:stepActive", A);
7893
7893
  }
7894
7894
  }), v = () => {
7895
- C.value > 0 && C.value--, Ot(() => {
7895
+ C.value > 0 && C.value--, At(() => {
7896
7896
  k();
7897
7897
  });
7898
7898
  }, _ = async () => {
7899
- await S() && (C.value < a.steps.length - 1 && (C.value += 1), Ot(() => {
7899
+ await S() && (C.value < a.steps.length - 1 && (C.value += 1), At(() => {
7900
7900
  k();
7901
7901
  }));
7902
7902
  }, S = async () => {
@@ -9077,7 +9077,7 @@ var Yp = /* @__PURE__ */ me({
9077
9077
  };
9078
9078
  return at(() => a.option, (p) => {
9079
9079
  d(p);
9080
- }, { deep: !0 }), At(() => {
9080
+ }, { deep: !0 }), Mt(() => {
9081
9081
  s();
9082
9082
  }), $o(() => {
9083
9083
  c && clearTimeout(c), l && i.value && (l.unobserve(i.value), l.disconnect(), l = null), r.value && (r.value.dispose(), r.value = void 0);
@@ -9099,7 +9099,7 @@ var Yp = /* @__PURE__ */ me({
9099
9099
  const n = e.__vccOpts || e;
9100
9100
  for (const [a, o] of t) n[a] = o;
9101
9101
  return n;
9102
- }, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-69ad659b"]]), sv = Se(lv), cv = ["innerHTML"], uv = {
9102
+ }, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-37f9a80b"]]), sv = Se(lv), cv = ["innerHTML"], uv = {
9103
9103
  key: 1,
9104
9104
  class: "j-barcode-error"
9105
9105
  }, dv = /* @__PURE__ */ me({
@@ -10090,7 +10090,7 @@ var Yp = /* @__PURE__ */ me({
10090
10090
  },
10091
10091
  setup(e, { expose: t }) {
10092
10092
  const n = e, a = O(() => ({ ...n })), o = L(), i = L(null), r = O(() => n.options);
10093
- At(() => {
10093
+ Mt(() => {
10094
10094
  n.animation && l();
10095
10095
  }), at(() => n.decimals, () => {
10096
10096
  i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
@@ -10962,8 +10962,8 @@ var Yp = /* @__PURE__ */ me({
10962
10962
  }));
10963
10963
  }), at(() => a.mode, () => {
10964
10964
  l && f();
10965
- }), At(async () => {
10966
- await Ot(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
10965
+ }), Mt(async () => {
10966
+ await At(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
10967
10967
  l && l.dispatch({ scrollIntoView: !0 });
10968
10968
  }), p.observe(i.value));
10969
10969
  }), $o(() => {
@@ -11409,7 +11409,7 @@ var Yp = /* @__PURE__ */ me({
11409
11409
  setup(e, { emit: t }) {
11410
11410
  const n = e, a = t, { activeMenu: o, theme: i } = Uo(), r = L(), l = L(0);
11411
11411
  let c = null;
11412
- At(() => {
11412
+ Mt(() => {
11413
11413
  typeof window < "u" && window.ResizeObserver && r.value && (c = new ResizeObserver(() => {
11414
11414
  r.value && (l.value = r.value.offsetWidth);
11415
11415
  }), c.observe(r.value));
@@ -11974,7 +11974,7 @@ var Yp = /* @__PURE__ */ me({
11974
11974
  }
11975
11975
  }
11976
11976
  ];
11977
- At(() => {
11977
+ Mt(() => {
11978
11978
  c.value = o.searchFieldList, l.value = o.searchList;
11979
11979
  });
11980
11980
  const f = O(() => o.columns.filter((C) => !C.children?.length && !C.config?.isNotFilter).map((C) => ({
@@ -12002,7 +12002,7 @@ var Yp = /* @__PURE__ */ me({
12002
12002
  }, w = () => c.value, m = Vo();
12003
12003
  return t({
12004
12004
  getSearchFields: w,
12005
- getFixedSearchData: () => m.value?.getFormData() || {}
12005
+ getFixedSearchData: () => m.value?.getFormData(!1) || {}
12006
12006
  }), (C, v) => {
12007
12007
  const _ = V("j-icon"), S = V("j-form"), k = V("j-select"), T = V("j-button-select"), A = V("j-button"), P = V("j-input-rows"), $ = V("el-tooltip");
12008
12008
  return R(), z("div", { class: We(["j-filter-panel", { "is-pin": r.value }]) }, [
@@ -12526,16 +12526,16 @@ var Yp = /* @__PURE__ */ me({
12526
12526
  It.value = ht.value?.clientWidth || 0;
12527
12527
  };
12528
12528
  let fn;
12529
- At(() => {
12530
- Ot(Lt), fn = new ResizeObserver(() => {
12529
+ Mt(() => {
12530
+ At(Lt), fn = new ResizeObserver(() => {
12531
12531
  Lt();
12532
12532
  }), ht.value && fn.observe(ht.value);
12533
12533
  }), Do(() => {
12534
12534
  fn?.disconnect();
12535
12535
  }), at(() => rn.value, () => {
12536
- Ot(Lt);
12536
+ At(Lt);
12537
12537
  }, { deep: !0 }), at(Ge, () => {
12538
- Ot(Lt);
12538
+ At(Lt);
12539
12539
  });
12540
12540
  const Zn = O(() => {
12541
12541
  const de = rn.value;
@@ -12562,15 +12562,15 @@ var Yp = /* @__PURE__ */ me({
12562
12562
  notLabel: !0
12563
12563
  },
12564
12564
  children: []
12565
- }, Pt = 28, Vt = [];
12566
- let Bt = 0, qt = null;
12565
+ }, Bt = 28, Vt = [];
12566
+ let Ht = 0, qt = null;
12567
12567
  for (let $t = 0; $t < de.length; $t++) {
12568
12568
  const hn = de[$t], Xt = Dt(hn, $t);
12569
- let mn = Bt;
12569
+ let mn = Ht;
12570
12570
  qt !== null && (mn += Xt === qt ? -1 : 8), mn += xe(hn);
12571
- const Ga = de.length - ($t + 1) > 0 ? (mn > 0 ? 8 : 0) + Pt : 0;
12571
+ const Ga = de.length - ($t + 1) > 0 ? (mn > 0 ? 8 : 0) + Bt : 0;
12572
12572
  if (mn + Ga <= vt)
12573
- Vt.push(hn), Bt = mn, qt = Xt;
12573
+ Vt.push(hn), Ht = mn, qt = Xt;
12574
12574
  else break;
12575
12575
  }
12576
12576
  const Fe = de.slice(Vt.length);
@@ -12654,9 +12654,9 @@ var Yp = /* @__PURE__ */ me({
12654
12654
  if (b.value) xe = de;
12655
12655
  else if (!i.rowKey) xe = de;
12656
12656
  else {
12657
- const lt = new Map(de.map((Pt) => [C(Pt), Pt])), Ut = new Map(p.value.map((Pt) => [C(Pt), Pt]));
12658
- c.forEach((Pt) => {
12659
- const Vt = C(Pt);
12657
+ const lt = new Map(de.map((Bt) => [C(Bt), Bt])), Ut = new Map(p.value.map((Bt) => [C(Bt), Bt]));
12658
+ c.forEach((Bt) => {
12659
+ const Vt = C(Bt);
12660
12660
  lt.has(Vt) ? Ut.set(Vt, lt.get(Vt)) : Ut.delete(Vt);
12661
12661
  }), xe = Array.from(Ut.values());
12662
12662
  }
@@ -12678,7 +12678,7 @@ var Yp = /* @__PURE__ */ me({
12678
12678
  }, Pe = () => p.value || [], Le = (de) => {
12679
12679
  p.value = de, l.value?.setSelection?.(de);
12680
12680
  }, ot = () => l.value;
12681
- return At(async () => {
12681
+ return Mt(async () => {
12682
12682
  i.immediate && await Ca();
12683
12683
  }), t({
12684
12684
  refreshData: Ca,
@@ -12690,7 +12690,7 @@ var Yp = /* @__PURE__ */ me({
12690
12690
  },
12691
12691
  getTableRef: ot
12692
12692
  }), (de, Ce) => {
12693
- const vt = V("j-buttons"), Dt = V("j-icon"), xe = V("el-popover"), lt = V("el-tooltip"), Ut = V("el-input"), Pt = V("j-button"), Vt = V("el-pagination"), Bt = V("j-table"), qt = Fo("loading");
12693
+ const vt = V("j-buttons"), Dt = V("j-icon"), xe = V("el-popover"), lt = V("el-tooltip"), Ut = V("el-input"), Bt = V("j-button"), Vt = V("el-pagination"), Ht = V("j-table"), qt = Fo("loading");
12694
12694
  return R(), z("div", { class: We(["j-table-panel-wrapper", {
12695
12695
  fullscreen: Ge.value,
12696
12696
  "no-padding": e.noPadding || Ge.value
@@ -12757,7 +12757,7 @@ var Yp = /* @__PURE__ */ me({
12757
12757
  persistent: !1,
12758
12758
  onHide: ln
12759
12759
  }, {
12760
- reference: q(() => [Z(Pt, {
12760
+ reference: q(() => [Z(Bt, {
12761
12761
  icon: "mdi:filter-outline",
12762
12762
  label: "筛选",
12763
12763
  type: "text",
@@ -12798,7 +12798,7 @@ var Yp = /* @__PURE__ */ me({
12798
12798
  trigger: "click",
12799
12799
  onShow: Me
12800
12800
  }, {
12801
- reference: q(() => [Z(Pt, {
12801
+ reference: q(() => [Z(Bt, {
12802
12802
  class: We({ active: B.value.length > 0 }),
12803
12803
  type: "text",
12804
12804
  icon: "mdi:sort"
@@ -12828,7 +12828,7 @@ var Yp = /* @__PURE__ */ me({
12828
12828
  trigger: "click",
12829
12829
  onShow: ie
12830
12830
  }, {
12831
- reference: q(() => [Z(Pt, {
12831
+ reference: q(() => [Z(Bt, {
12832
12832
  class: We({ active: ee.value }),
12833
12833
  type: "text",
12834
12834
  icon: "mdi:table-headers-eye"
@@ -12849,7 +12849,7 @@ var Yp = /* @__PURE__ */ me({
12849
12849
  placement: "bottom",
12850
12850
  content: J(a)("刷新")
12851
12851
  }, {
12852
- default: q(() => [Z(Pt, {
12852
+ default: q(() => [Z(Bt, {
12853
12853
  type: "text",
12854
12854
  icon: "mdi:refresh",
12855
12855
  onClick: G
@@ -12861,7 +12861,7 @@ var Yp = /* @__PURE__ */ me({
12861
12861
  placement: "bottom",
12862
12862
  content: Ge.value ? J(a)("退出全屏") : J(a)("全屏")
12863
12863
  }, {
12864
- default: q(() => [Z(Pt, {
12864
+ default: q(() => [Z(Bt, {
12865
12865
  type: "text",
12866
12866
  icon: Ge.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
12867
12867
  onClick: it
@@ -12898,7 +12898,7 @@ var Yp = /* @__PURE__ */ me({
12898
12898
  "page-size",
12899
12899
  "page-sizes",
12900
12900
  "total"
12901
- ])])) : ae("", !0)], 2)) : (R(), N(Bt, {
12901
+ ])])) : ae("", !0)], 2)) : (R(), N(Ht, {
12902
12902
  key: 1,
12903
12903
  ref_key: "tableRef",
12904
12904
  ref: l,
@@ -13158,7 +13158,7 @@ var Yp = /* @__PURE__ */ me({
13158
13158
  d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({
13159
13159
  type: "j-tree",
13160
13160
  config: a
13161
- }), d.value = !1, Ot(() => {
13161
+ }), d.value = !1, At(() => {
13162
13162
  a.afterLoadData && a.afterLoadData(g.value || []);
13163
13163
  });
13164
13164
  }, x = (j, M = !0) => {
@@ -13194,7 +13194,7 @@ var Yp = /* @__PURE__ */ me({
13194
13194
  }, A = L(""), P = (j, M) => {
13195
13195
  A.value = j ? M.value : "";
13196
13196
  }, $ = (j, M, E) => a.allowDrop ? a.allowDrop(j, M, E) : !(E == "inner" && !M.data.canInner);
13197
- return At(async () => {
13197
+ return Mt(async () => {
13198
13198
  (a.immediate && a.loadData || a.dataType || a.dataCode) && await b();
13199
13199
  }), at(() => a.dataCode || a.dataType, () => {
13200
13200
  b();
@@ -13561,11 +13561,11 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13561
13561
  });
13562
13562
  }, te = async (G, ve) => {
13563
13563
  const re = ++E, le = b.value;
13564
- b.value = !1, le && await Ot();
13564
+ b.value = !1, le && await At();
13565
13565
  const be = !!ve;
13566
13566
  if (S.length = 0, T = /* @__PURE__ */ Object.create(null), A = /* @__PURE__ */ Object.create(null), P = [], Me = ve, jo(v), jo(k), be && qe(ve, ""), Ze(G, S, be), j = we(), M = !1, $ = j, ue(() => {
13567
13567
  re === E && ($ = Jt(j), M = !0);
13568
- }), b.value = !0, await Ot(), await X(), a.config?.codeInit) {
13568
+ }), await At(), b.value = !0, await At(), await X(), a.config?.codeInit) {
13569
13569
  const Pe = a.config.codeInit;
13570
13570
  let Le;
13571
13571
  D?.raw === Pe ? Le = D.obj : (Le = JSON.parse(Pe), D = {
@@ -13886,7 +13886,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
13886
13886
  i[y.id] = C, C.config = [], Pi(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));
13887
13887
  });
13888
13888
  }, c = (w) => {
13889
- a.value = !1, o.splice(0, o.length), jo(i), jo(r), l(w, o), Ot(() => {
13889
+ a.value = !1, o.splice(0, o.length), jo(i), jo(r), l(w, o), At(() => {
13890
13890
  a.value = !0;
13891
13891
  });
13892
13892
  };
@@ -14164,7 +14164,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14164
14164
  }, y = (v) => {
14165
14165
  o("rowChange", v);
14166
14166
  };
14167
- At(() => {
14167
+ Mt(() => {
14168
14168
  if (!f.value || !h.value) return;
14169
14169
  const v = h.value, { initSortable: _ } = Ch(v, {
14170
14170
  handle: ".j-input-rows-drag",
@@ -14322,7 +14322,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14322
14322
  data: void 0
14323
14323
  });
14324
14324
  }, p = async ({ checked: w }) => {
14325
- s.value && w && (await Ot(), await g());
14325
+ s.value && w && (await At(), await g());
14326
14326
  }, g = async () => {
14327
14327
  if (!l.value) return;
14328
14328
  const w = l.value.getSelection();
@@ -14626,7 +14626,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14626
14626
  }), c = (s) => {
14627
14627
  a("change", s);
14628
14628
  };
14629
- return At(() => {
14629
+ return Mt(() => {
14630
14630
  n.autoFocus && !n.readonly && setTimeout(() => {
14631
14631
  const s = l.value === i.value ? r.value : i.value;
14632
14632
  l.value = s, c(s);
@@ -14870,7 +14870,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14870
14870
  }
14871
14871
  return u;
14872
14872
  };
14873
- return At(() => {
14873
+ return Mt(() => {
14874
14874
  const f = {
14875
14875
  placeholder: n.placeholder || "请输入内容...",
14876
14876
  readOnly: n.readonly,
@@ -14998,7 +14998,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
14998
14998
  x(m);
14999
14999
  } })), p.search(b));
15000
15000
  }
15001
- }), At(() => {
15001
+ }), Mt(() => {
15002
15002
  f();
15003
15003
  }), (b, x) => (R(), z("div", {
15004
15004
  class: "j-map",
@@ -15309,9 +15309,9 @@ function Tr(e, t) {
15309
15309
  return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
15310
15310
  }
15311
15311
  function el(e, t, n) {
15312
- Ht(t) && (n = t, t = null), t || (t = {});
15312
+ Ot(t) && (n = t, t = null), t || (t = {});
15313
15313
  const a = Xe("path", t);
15314
- return Ht(n) && (a.dataset.cornerRadius = String(n)), Gc(a, e);
15314
+ return Ot(n) && (a.dataset.cornerRadius = String(n)), Gc(a, e);
15315
15315
  }
15316
15316
  function Gc(e, t) {
15317
15317
  return De(e, { d: Yo(A0(t, parseInt(e.dataset.cornerRadius, 10) || 0)) }), e;
@@ -15910,7 +15910,7 @@ function ou(e, t) {
15910
15910
  var n = {};
15911
15911
  return ye(e, function(a) {
15912
15912
  var o = a;
15913
- o.waypoints && (o = Dn(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);
15913
+ o.waypoints && (o = Dn(o)), !Ot(t.y) && o.x > t.x && (n[a.id] = a), !Ot(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Ot(t.width) && Ot(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Ot(t.width) || !Ot(t.height)) && (n[a.id] = a);
15914
15914
  }), n;
15915
15915
  }
15916
15916
  function J0(e) {
@@ -16036,7 +16036,7 @@ function iu(e, t, n, a, o) {
16036
16036
  hints: {},
16037
16037
  shape: f
16038
16038
  }, d || {}), ye(s, function(h) {
16039
- Ht(h.x) || (h.x = 0), Ht(h.y) || (h.y = 0);
16039
+ Ot(h.x) || (h.x = 0), Ot(h.y) || (h.y = 0);
16040
16040
  });
16041
16041
  var u = Dn(_n(s, function(h) {
16042
16042
  return !h.hidden;
@@ -17083,7 +17083,7 @@ function Hw(e, t) {
17083
17083
  };
17084
17084
  }
17085
17085
  Gt.prototype.on = function(e, t, n, a, o, i) {
17086
- if ((Ln(t) || Ht(t)) && (i = o, o = a, a = n, n = t, t = null), Ln(n) && (i = o, o = a, a = n, n = Bw), xn(o) && (i = o, o = !1), !Ln(a)) throw new Error("handlerFn must be a function");
17086
+ if ((Ln(t) || Ot(t)) && (i = o, o = a, a = n, n = t, t = null), Ln(n) && (i = o, o = a, a = n, n = Bw), xn(o) && (i = o, o = !1), !Ln(a)) throw new Error("handlerFn must be a function");
17087
17087
  ft(e) || (e = [e]);
17088
17088
  var r = this._eventBus;
17089
17089
  ye(e, function(l) {
@@ -17108,7 +17108,7 @@ Gt.prototype.revert = Kn("revert");
17108
17108
  Gt.prototype.reverted = Kn("reverted");
17109
17109
  function Kn(e) {
17110
17110
  return function(n, a, o, i, r) {
17111
- (Ln(n) || Ht(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
17111
+ (Ln(n) || Ot(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
17112
17112
  };
17113
17113
  }
17114
17114
  var Ow = 250, Rs = 1400;
@@ -17439,7 +17439,7 @@ hl.$inject = ["modeling"];
17439
17439
  hl.prototype.preExecute = function(e) {
17440
17440
  var t = e.elements, n = e.parent, a = e.parentIndex, o = e.position, i = e.hints, r = this._modeling;
17441
17441
  ye(t, function(d) {
17442
- Ht(d.x) || (d.x = 0), Ht(d.y) || (d.y = 0);
17442
+ Ot(d.x) || (d.x = 0), Ot(d.y) || (d.y = 0);
17443
17443
  });
17444
17444
  var l = Dn(_n(t, function(d) {
17445
17445
  return !d.hidden;
@@ -17458,11 +17458,11 @@ hl.prototype.preExecute = function(e) {
17458
17458
  var c = N0(t), s = {};
17459
17459
  ye(t, function(d) {
17460
17460
  if (nn(d)) {
17461
- 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);
17461
+ s[d.id] = Ot(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);
17462
17462
  return;
17463
17463
  }
17464
17464
  var f = $e({}, i);
17465
- c.indexOf(d) === -1 && (f.autoResize = !1), io(d) && (f = xf(f, ["attach"])), s[d.id] = Ht(a) ? r.createShape(d, ji(d, [
17465
+ c.indexOf(d) === -1 && (f.autoResize = !1), io(d) && (f = xf(f, ["attach"])), s[d.id] = Ot(a) ? r.createShape(d, ji(d, [
17466
17466
  "x",
17467
17467
  "y",
17468
17468
  "width",
@@ -19957,7 +19957,7 @@ var Yu = { myImporter: ["type", ma] }, Ju = (e) => {
19957
19957
  const k = S.createRoot();
19958
19958
  _.setRootElement(k), d();
19959
19959
  };
19960
- At(() => {
19960
+ Mt(() => {
19961
19961
  u();
19962
19962
  });
19963
19963
  const h = (v) => {
@@ -21017,16 +21017,16 @@ function Ix() {
21017
21017
  }), e;
21018
21018
  }
21019
21019
  var Lx = { scheduler: ["type", go] }, zx = "djs-element-hidden", xi = ".entry", Dx = 1e3, ac = 8, $x = 300;
21020
- function jt(e, t, n, a) {
21020
+ function Pt(e, t, n, a) {
21021
21021
  this._canvas = e, this._elementRegistry = t, this._eventBus = n, this._scheduler = a, this._current = null, this._init();
21022
21022
  }
21023
- jt.$inject = [
21023
+ Pt.$inject = [
21024
21024
  "canvas",
21025
21025
  "elementRegistry",
21026
21026
  "eventBus",
21027
21027
  "scheduler"
21028
21028
  ];
21029
- jt.prototype._init = function() {
21029
+ Pt.prototype._init = function() {
21030
21030
  var e = this;
21031
21031
  this._eventBus.on("selection.changed", function(t) {
21032
21032
  var n = t.newSelection, a = n.length ? n.length === 1 ? n[0] : n : null;
@@ -21054,16 +21054,16 @@ jt.prototype._init = function() {
21054
21054
  }
21055
21055
  }), this._container = this._createContainer();
21056
21056
  };
21057
- jt.prototype._createContainer = function() {
21057
+ Pt.prototype._createContainer = function() {
21058
21058
  var e = vn('<div class="djs-context-pad-parent"></div>');
21059
21059
  return this._canvas.getContainer().appendChild(e), e;
21060
21060
  };
21061
- jt.prototype.registerProvider = function(e, t) {
21061
+ Pt.prototype.registerProvider = function(e, t) {
21062
21062
  t || (t = e, e = Dx), this._eventBus.on("contextPad.getProviders", e, function(n) {
21063
21063
  n.providers.push(t);
21064
21064
  });
21065
21065
  };
21066
- jt.prototype.getEntries = function(e) {
21066
+ Pt.prototype.getEntries = function(e) {
21067
21067
  var t = this._getProviders(), n = ft(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
21068
21068
  return ye(t, function(o) {
21069
21069
  if (Ln(o[n])) {
@@ -21074,7 +21074,7 @@ jt.prototype.getEntries = function(e) {
21074
21074
  }
21075
21075
  }), a;
21076
21076
  };
21077
- jt.prototype.trigger = function(e, t, n) {
21077
+ Pt.prototype.trigger = function(e, t, n) {
21078
21078
  var a = this, o, i, r = t.delegateTarget || t.target;
21079
21079
  if (!r) return t.preventDefault();
21080
21080
  if (o = An(r, "data-action"), i = t.originalEvent || t, e === "mouseover") {
@@ -21088,7 +21088,7 @@ jt.prototype.trigger = function(e, t, n) {
21088
21088
  }
21089
21089
  return this.triggerEntry(o, e, i, n);
21090
21090
  };
21091
- jt.prototype.triggerEntry = function(e, t, n, a) {
21091
+ Pt.prototype.triggerEntry = function(e, t, n, a) {
21092
21092
  if (this.isShown()) {
21093
21093
  var o = this._current.target, i = this._current.entries[e];
21094
21094
  if (i) {
@@ -21105,17 +21105,17 @@ jt.prototype.triggerEntry = function(e, t, n, a) {
21105
21105
  }
21106
21106
  }
21107
21107
  };
21108
- jt.prototype.open = function(e, t) {
21108
+ Pt.prototype.open = function(e, t) {
21109
21109
  !t && this.isOpen(e) || (this.close(), this._updateAndOpen(e));
21110
21110
  };
21111
- jt.prototype._getProviders = function() {
21111
+ Pt.prototype._getProviders = function() {
21112
21112
  var e = this._eventBus.createEvent({
21113
21113
  type: "contextPad.getProviders",
21114
21114
  providers: []
21115
21115
  });
21116
21116
  return this._eventBus.fire(e), e.providers;
21117
21117
  };
21118
- jt.prototype._updateAndOpen = function(e) {
21118
+ Pt.prototype._updateAndOpen = function(e) {
21119
21119
  var t = this.getEntries(e), n = this._createHtml(e), a;
21120
21120
  ye(t, function(o, i) {
21121
21121
  var r = o.group || "default", l = vn(o.html || '<div class="entry" draggable="true"></div>'), c;
@@ -21126,7 +21126,7 @@ jt.prototype._updateAndOpen = function(e) {
21126
21126
  target: e
21127
21127
  }, this._updatePosition(), this._updateVisibility(), this._eventBus.fire("contextPad.open", { current: this._current });
21128
21128
  };
21129
- jt.prototype._createHtml = function(e) {
21129
+ Pt.prototype._createHtml = function(e) {
21130
21130
  var t = this, n = vn('<div class="djs-context-pad"></div>');
21131
21131
  return ia.bind(n, xi, "click", function(a) {
21132
21132
  t.trigger("click", a);
@@ -21143,15 +21143,15 @@ jt.prototype._createHtml = function(e) {
21143
21143
  pad: n
21144
21144
  }), n;
21145
21145
  };
21146
- jt.prototype.getPad = function(e) {
21146
+ Pt.prototype.getPad = function(e) {
21147
21147
  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"));
21148
21148
  let t;
21149
21149
  return this.isOpen() && Nx(this._current.target, e) ? t = this._current.html : t = this._createHtml(e), { html: t };
21150
21150
  };
21151
- jt.prototype.close = function() {
21151
+ Pt.prototype.close = function() {
21152
21152
  this.isOpen() && (clearTimeout(this._timeout), this._container.innerHTML = "", this._eventBus.fire("contextPad.close", { current: this._current }), this._current = null);
21153
21153
  };
21154
- jt.prototype.isOpen = function(e) {
21154
+ Pt.prototype.isOpen = function(e) {
21155
21155
  var t = this._current;
21156
21156
  if (!t) return !1;
21157
21157
  if (!e) return !0;
@@ -21160,16 +21160,16 @@ jt.prototype.isOpen = function(e) {
21160
21160
  return n.includes(a);
21161
21161
  }) : n === e;
21162
21162
  };
21163
- jt.prototype.isShown = function() {
21163
+ Pt.prototype.isShown = function() {
21164
21164
  return this.isOpen() && un(this._current.html).has("open");
21165
21165
  };
21166
- jt.prototype.show = function() {
21166
+ Pt.prototype.show = function() {
21167
21167
  this.isOpen() && (un(this._current.html).add("open"), this._updatePosition(), this._eventBus.fire("contextPad.show", { current: this._current }));
21168
21168
  };
21169
- jt.prototype.hide = function() {
21169
+ Pt.prototype.hide = function() {
21170
21170
  this.isOpen() && (un(this._current.html).remove("open"), this._eventBus.fire("contextPad.hide", { current: this._current }));
21171
21171
  };
21172
- jt.prototype._getPosition = function(e) {
21172
+ Pt.prototype._getPosition = function(e) {
21173
21173
  if (!ft(e) && nn(e)) {
21174
21174
  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;
21175
21175
  return {
@@ -21183,7 +21183,7 @@ jt.prototype._getPosition = function(e) {
21183
21183
  top: r.top - i.top
21184
21184
  };
21185
21185
  };
21186
- jt.prototype._updatePosition = function() {
21186
+ Pt.prototype._updatePosition = function() {
21187
21187
  const e = () => {
21188
21188
  if (this.isOpen()) {
21189
21189
  var t = this._current.html, n = this._getPosition(this._current.target);
@@ -21199,7 +21199,7 @@ jt.prototype._updatePosition = function() {
21199
21199
  };
21200
21200
  this._scheduler.schedule(e, "ContextPad#_updatePosition");
21201
21201
  };
21202
- jt.prototype._updateVisibility = function() {
21202
+ Pt.prototype._updateVisibility = function() {
21203
21203
  const e = () => {
21204
21204
  if (this.isOpen()) {
21205
21205
  var t = this, n = this._current.target;
@@ -21210,7 +21210,7 @@ jt.prototype._updateVisibility = function() {
21210
21210
  };
21211
21211
  this._scheduler.schedule(e, "ContextPad#_updateVisibility");
21212
21212
  };
21213
- jt.prototype._getTargetBounds = function(e) {
21213
+ Pt.prototype._getTargetBounds = function(e) {
21214
21214
  var t = this;
21215
21215
  return (ft(e) ? e : [e]).map(function(n) {
21216
21216
  return t._canvas.getGraphics(n);
@@ -21244,7 +21244,7 @@ var Wx = {
21244
21244
  Lx,
21245
21245
  Hx
21246
21246
  ],
21247
- contextPad: ["type", jt]
21247
+ contextPad: ["type", Pt]
21248
21248
  }, Ux = 250;
21249
21249
  function Ya(e) {
21250
21250
  this._eventBus = e, this._tools = [], this._active = null;
@@ -21853,7 +21853,7 @@ var sC = {
21853
21853
  move: ["type", dd],
21854
21854
  movePreview: ["type", fd]
21855
21855
  }, hd = ".djs-palette-toggle", pd = ".entry", cC = hd + ", " + pd, Dr = "djs-palette-", uC = "shown", $r = "open", pc = "two-column", dC = 1e3;
21856
- function Mt(e, t) {
21856
+ function jt(e, t) {
21857
21857
  this._eventBus = e, this._canvas = t;
21858
21858
  var n = this;
21859
21859
  e.on("tool-manager.update", function(a) {
@@ -21865,20 +21865,20 @@ function Mt(e, t) {
21865
21865
  n._diagramInitialized = !0, n._rebuild();
21866
21866
  });
21867
21867
  }
21868
- Mt.$inject = ["eventBus", "canvas"];
21869
- Mt.prototype.registerProvider = function(e, t) {
21868
+ jt.$inject = ["eventBus", "canvas"];
21869
+ jt.prototype.registerProvider = function(e, t) {
21870
21870
  t || (t = e, e = dC), this._eventBus.on("palette.getProviders", e, function(n) {
21871
21871
  n.providers.push(t);
21872
21872
  }), this._rebuild();
21873
21873
  };
21874
- Mt.prototype.getEntries = function() {
21874
+ jt.prototype.getEntries = function() {
21875
21875
  return this._getProviders().reduce(hC, {});
21876
21876
  };
21877
- Mt.prototype._rebuild = function() {
21877
+ jt.prototype._rebuild = function() {
21878
21878
  this._diagramInitialized && this._getProviders().length && (this._container || this._init(), this._update());
21879
21879
  };
21880
- Mt.prototype._init = function() {
21881
- var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = vn(Mt.HTML_MARKUP);
21880
+ jt.prototype._init = function() {
21881
+ var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = vn(jt.HTML_MARKUP);
21882
21882
  n.appendChild(a), un(n).add(Dr + uC), ia.bind(a, cC, "click", function(o) {
21883
21883
  var i = o.delegateTarget;
21884
21884
  if (mf(i, hd)) return e.toggle();
@@ -21889,14 +21889,14 @@ Mt.prototype._init = function() {
21889
21889
  e.trigger("dragstart", o);
21890
21890
  }), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", { container: a });
21891
21891
  };
21892
- Mt.prototype._getProviders = function(e) {
21892
+ jt.prototype._getProviders = function(e) {
21893
21893
  var t = this._eventBus.createEvent({
21894
21894
  type: "palette.getProviders",
21895
21895
  providers: []
21896
21896
  });
21897
21897
  return this._eventBus.fire(t), t.providers;
21898
21898
  };
21899
- Mt.prototype._toggleState = function(e) {
21899
+ jt.prototype._toggleState = function(e) {
21900
21900
  e = e || {};
21901
21901
  var t = this._getParentContainer(), n = this._container, a = this._eventBus, o, i = un(n), r = un(t);
21902
21902
  "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", {
@@ -21904,7 +21904,7 @@ Mt.prototype._toggleState = function(e) {
21904
21904
  open: this.isOpen()
21905
21905
  });
21906
21906
  };
21907
- Mt.prototype._update = function() {
21907
+ jt.prototype._update = function() {
21908
21908
  var e = en(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
21909
21909
  _c(e), ye(t, function(n, a) {
21910
21910
  var o = n.group || "default", i = en("[data-group=" + Tl(o) + "]", e);
@@ -21916,11 +21916,11 @@ Mt.prototype._update = function() {
21916
21916
  }
21917
21917
  }), this.open();
21918
21918
  };
21919
- Mt.prototype.trigger = function(e, t, n) {
21919
+ jt.prototype.trigger = function(e, t, n) {
21920
21920
  var a, o, i = t.delegateTarget || t.target;
21921
21921
  return i ? (a = An(i, "data-action"), o = t.originalEvent || t, this.triggerEntry(a, e, o, n)) : t.preventDefault();
21922
21922
  };
21923
- Mt.prototype.triggerEntry = function(e, t, n, a) {
21923
+ jt.prototype.triggerEntry = function(e, t, n, a) {
21924
21924
  var o = this._entries[e], i;
21925
21925
  if (o && (i = o.action, this._eventBus.fire("palette.trigger", {
21926
21926
  entry: o,
@@ -21932,28 +21932,28 @@ Mt.prototype.triggerEntry = function(e, t, n, a) {
21932
21932
  n.preventDefault();
21933
21933
  }
21934
21934
  };
21935
- Mt.prototype._layoutChanged = function() {
21935
+ jt.prototype._layoutChanged = function() {
21936
21936
  this._toggleState({});
21937
21937
  };
21938
- Mt.prototype._needsCollapse = function(e, t) {
21938
+ jt.prototype._needsCollapse = function(e, t) {
21939
21939
  return e < Object.keys(t).length * 46 + 50;
21940
21940
  };
21941
- Mt.prototype.close = function() {
21941
+ jt.prototype.close = function() {
21942
21942
  this._toggleState({
21943
21943
  open: !1,
21944
21944
  twoColumn: !1
21945
21945
  });
21946
21946
  };
21947
- Mt.prototype.open = function() {
21947
+ jt.prototype.open = function() {
21948
21948
  this._toggleState({ open: !0 });
21949
21949
  };
21950
- Mt.prototype.toggle = function() {
21950
+ jt.prototype.toggle = function() {
21951
21951
  this.isOpen() ? this.close() : this.open();
21952
21952
  };
21953
- Mt.prototype.isActiveTool = function(e) {
21953
+ jt.prototype.isActiveTool = function(e) {
21954
21954
  return e && this._activeTool === e;
21955
21955
  };
21956
- Mt.prototype.updateToolHighlight = function(e) {
21956
+ jt.prototype.updateToolHighlight = function(e) {
21957
21957
  var t, n;
21958
21958
  this._toolsContainer || (t = en(".djs-palette-entries", this._container), this._toolsContainer = en("[data-group=tools]", t)), n = this._toolsContainer, ye(n.children, function(a) {
21959
21959
  var o = a.getAttribute("data-action");
@@ -21963,13 +21963,13 @@ Mt.prototype.updateToolHighlight = function(e) {
21963
21963
  }
21964
21964
  });
21965
21965
  };
21966
- Mt.prototype.isOpen = function() {
21966
+ jt.prototype.isOpen = function() {
21967
21967
  return un(this._container).has($r);
21968
21968
  };
21969
- Mt.prototype._getParentContainer = function() {
21969
+ jt.prototype._getParentContainer = function() {
21970
21970
  return this._canvas.getContainer();
21971
21971
  };
21972
- Mt.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
21972
+ jt.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
21973
21973
  function fC(e, t) {
21974
21974
  var n = un(e);
21975
21975
  (ft(t) ? t : t.split(/\s+/g)).forEach(function(a) {
@@ -21984,7 +21984,7 @@ function hC(e, t) {
21984
21984
  }
21985
21985
  var pC = {
21986
21986
  __init__: ["palette"],
21987
- palette: ["type", Mt]
21987
+ palette: ["type", jt]
21988
21988
  };
21989
21989
  function gd(e, t, n, a) {
21990
21990
  e.on("element.changed", function(o) {
@@ -22022,7 +22022,7 @@ function yC(e, t, n) {
22022
22022
  }
22023
22023
  function Si(e, t, n) {
22024
22024
  var a = t[e], o = n.min && n.min[e], i = n.max && n.max[e];
22025
- return Ht(o) && (a = (/top|left/.test(e) ? Vi : Fi)(a, o)), Ht(i) && (a = (/top|left/.test(e) ? Fi : Vi)(a, i)), a;
22025
+ return Ot(o) && (a = (/top|left/.test(e) ? Vi : Fi)(a, o)), Ot(i) && (a = (/top|left/.test(e) ? Fi : Vi)(a, i)), a;
22026
22026
  }
22027
22027
  function mC(e, t) {
22028
22028
  if (!t) return e;
@@ -22499,7 +22499,7 @@ Fn.prototype.addSnapTargetPoints = function(e, t, n) {
22499
22499
  return;
22500
22500
  }
22501
22501
  e.add("mid", no(a));
22502
- }), !Ht(t.x) || !Ht(t.y) || this._elementRegistry.get(t.id) && e.add("mid", no(t)), e;
22502
+ }), !Ot(t.x) || !Ot(t.y) || this._elementRegistry.get(t.id) && e.add("mid", no(t)), e;
22503
22503
  };
22504
22504
  Fn.prototype.getSnapTargets = function(e, t) {
22505
22505
  return od(t).filter(function(n) {
@@ -22607,7 +22607,7 @@ xa.prototype.snap = function(e, t) {
22607
22607
  xa.prototype._createLine = function(e) {
22608
22608
  var t = this._canvas.getLayer("snap"), n = Xe("path");
22609
22609
  return De(n, { d: "M0,0 L0,0" }), pt(n).add("djs-snap-line"), tt(t, n), { update: function(a) {
22610
- Ht(a) ? e === "horizontal" ? De(n, {
22610
+ Ot(a) ? e === "horizontal" ? De(n, {
22611
22611
  d: "M-100000," + a + " L+100000," + a,
22612
22612
  display: ""
22613
22613
  }) : De(n, {
@@ -23119,7 +23119,7 @@ var s1 = {
23119
23119
  const $ = P.createRoot();
23120
23120
  A.setRootElement($), d();
23121
23121
  };
23122
- At(() => {
23122
+ Mt(() => {
23123
23123
  u();
23124
23124
  });
23125
23125
  const h = (T) => {