@a2simcode/ui 0.0.242 → 0.0.243
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.
- package/.cursor/skills/ui-component-helper/README.md +86 -86
- package/.cursor/skills/ui-component-helper/SKILL.md +115 -115
- package/LICENSE +53 -53
- package/README.md +156 -156
- package/dist/components/table/src/editors/j-comp-editor.d.ts +1 -0
- package/dist/simcode-ui.es.js +140 -131
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/components/autocomplete.md +89 -89
- package/docs/components/barcode.md +101 -101
- package/docs/components/button-select.md +24 -24
- package/docs/components/button.md +117 -117
- package/docs/components/buttons.md +119 -119
- package/docs/components/cascader-select.md +114 -114
- package/docs/components/checkbox.md +114 -114
- package/docs/components/code-mirror.md +85 -85
- package/docs/components/collapse.md +26 -26
- package/docs/components/comp.md +71 -71
- package/docs/components/count-up.md +24 -24
- package/docs/components/count.md +24 -24
- package/docs/components/data-panel.md +24 -24
- package/docs/components/date.md +76 -76
- package/docs/components/dialog-full.md +112 -112
- package/docs/components/dialog.md +127 -127
- package/docs/components/divider.md +24 -24
- package/docs/components/drawer.md +127 -127
- package/docs/components/dynamic-layer.md +118 -118
- package/docs/components/echarts.md +72 -72
- package/docs/components/editor.md +24 -24
- package/docs/components/form.md +87 -87
- package/docs/components/guid.md +39 -39
- package/docs/components/hpanel.md +24 -24
- package/docs/components/icon.md +56 -56
- package/docs/components/input-button.md +24 -24
- package/docs/components/input-code.md +24 -24
- package/docs/components/input-color.md +114 -114
- package/docs/components/input-layer.md +56 -56
- package/docs/components/input-rows.md +370 -370
- package/docs/components/input-tag.md +50 -50
- package/docs/components/input.md +129 -129
- package/docs/components/layer-form.md +61 -61
- package/docs/components/layer.md +127 -127
- package/docs/components/layout.md +132 -132
- package/docs/components/map.md +24 -24
- package/docs/components/menu.md +121 -121
- package/docs/components/meta/button.ts +212 -212
- package/docs/components/meta/buttons.ts +76 -76
- package/docs/components/meta/code-mirror.ts +108 -108
- package/docs/components/meta/comp.ts +236 -236
- package/docs/components/meta/date.ts +267 -267
- package/docs/components/meta/echarts.ts +64 -64
- package/docs/components/meta/form-item.ts +50 -50
- package/docs/components/meta/form.ts +181 -181
- package/docs/components/meta/input-button.ts +175 -175
- package/docs/components/meta/input-cards.ts +112 -112
- package/docs/components/meta/input-code.ts +161 -161
- package/docs/components/meta/input-color.ts +243 -243
- package/docs/components/meta/input-layer.ts +382 -382
- package/docs/components/meta/input-rows.ts +119 -119
- package/docs/components/meta/layer-form.ts +74 -74
- package/docs/components/meta/map.ts +68 -68
- package/docs/components/meta/panel.ts +152 -152
- package/docs/components/meta/radio.ts +55 -55
- package/docs/components/meta/select.ts +279 -279
- package/docs/components/meta/slider.ts +270 -270
- package/docs/components/meta/tabs.ts +146 -146
- package/docs/components/meta/title.ts +91 -91
- package/docs/components/meta/tree-select.ts +199 -199
- package/docs/components/meta/tree.ts +219 -219
- package/docs/components/meta/vpanel.ts +19 -19
- package/docs/components/meta/workflow-viewer.ts +55 -55
- package/docs/components/number.md +124 -124
- package/docs/components/page.md +102 -102
- package/docs/components/panel.md +37 -37
- package/docs/components/radio.md +87 -87
- package/docs/components/rate.md +71 -71
- package/docs/components/select.md +133 -133
- package/docs/components/slider-captcha.md +41 -41
- package/docs/components/slider.md +101 -101
- package/docs/components/switch.md +90 -90
- package/docs/components/table-panel.md +297 -297
- package/docs/components/table.md +450 -450
- package/docs/components/tabs.md +26 -26
- package/docs/components/title.md +24 -24
- package/docs/components/tree.md +207 -207
- package/docs/components/upload.md +117 -117
- package/docs/components/workflow-viewer.md +21 -21
- package/docs/components/workflow.md +21 -21
- package/docs/examples/autocomplete/advanced.vue +35 -35
- package/docs/examples/autocomplete/basic.vue +32 -32
- package/docs/examples/autocomplete/clearable.vue +33 -33
- package/docs/examples/autocomplete/custom-template.vue +49 -49
- package/docs/examples/autocomplete/disabled.vue +33 -33
- package/docs/examples/autocomplete/icon.vue +37 -37
- package/docs/examples/barcode/all-types.vue +380 -380
- package/docs/examples/barcode/basic.vue +14 -14
- package/docs/examples/barcode/props-appearance.vue +243 -243
- package/docs/examples/barcode/props-geometry.vue +143 -143
- package/docs/examples/barcode/props-logic.vue +216 -216
- package/docs/examples/barcode/props-symbology.vue +199 -199
- package/docs/examples/barcode/props-text.vue +268 -268
- package/docs/examples/button/basic.vue +7 -7
- package/docs/examples/button/disabled.vue +42 -42
- package/docs/examples/button/loading.vue +6 -6
- package/docs/examples/button/shape.vue +7 -7
- package/docs/examples/button/size.vue +14 -14
- package/docs/examples/button/status.vue +34 -34
- package/docs/examples/button/type.vue +10 -10
- package/docs/examples/button-select/basic.vue +19 -19
- package/docs/examples/buttons/basic.vue +62 -62
- package/docs/examples/buttons/disabled.vue +36 -36
- package/docs/examples/buttons/dropdown.vue +63 -63
- package/docs/examples/buttons/group.vue +52 -52
- package/docs/examples/buttons/link.vue +47 -47
- package/docs/examples/buttons/popup.vue +39 -39
- package/docs/examples/buttons/size.vue +45 -45
- package/docs/examples/cascader-select/basic.vue +28 -28
- package/docs/examples/cascader-select/clearable.vue +34 -34
- package/docs/examples/cascader-select/disabled.vue +43 -43
- package/docs/examples/cascader-select/filterable.vue +37 -37
- package/docs/examples/cascader-select/methods.vue +84 -84
- package/docs/examples/cascader-select/multiple.vue +38 -38
- package/docs/examples/cascader-select/slot.vue +45 -45
- package/docs/examples/checkbox/basic.vue +18 -18
- package/docs/examples/checkbox/button.vue +19 -19
- package/docs/examples/checkbox/color.vue +25 -25
- package/docs/examples/checkbox/disabled.vue +17 -17
- package/docs/examples/checkbox/min-max.vue +20 -20
- package/docs/examples/checkbox/mixed.vue +56 -56
- package/docs/examples/checkbox/size.vue +28 -28
- package/docs/examples/code-mirror/basic.vue +11 -11
- package/docs/examples/code-mirror/events.vue +42 -42
- package/docs/examples/code-mirror/height.vue +25 -25
- package/docs/examples/code-mirror/mode.vue +33 -33
- package/docs/examples/code-mirror/readonly.vue +14 -14
- package/docs/examples/collapse/basic.vue +82 -82
- package/docs/examples/comp/basic.vue +7 -7
- package/docs/examples/comp/collapse.vue +38 -38
- package/docs/examples/comp/tabs.vue +38 -38
- package/docs/examples/count/basic.vue +101 -101
- package/docs/examples/count-up/basic.vue +89 -89
- package/docs/examples/data-panel/basic.vue +110 -110
- package/docs/examples/date/basic.vue +73 -73
- package/docs/examples/date/default-value.vue +59 -59
- package/docs/examples/date/format.vue +75 -75
- package/docs/examples/date/range.vue +66 -66
- package/docs/examples/date/types.vue +79 -79
- package/docs/examples/decorated-title/basic.vue +31 -31
- package/docs/examples/dialog/basic.vue +36 -36
- package/docs/examples/dialog/custom-buttons.vue +44 -44
- package/docs/examples/dialog/fullscreen.vue +23 -23
- package/docs/examples/dialog/no-mask.vue +17 -17
- package/docs/examples/dialog/size.vue +44 -44
- package/docs/examples/dialog/steps.vue +57 -57
- package/docs/examples/dialog-full/basic.vue +29 -29
- package/docs/examples/dialog-full/custom-buttons.vue +45 -45
- package/docs/examples/dialog-full/no-buttons.vue +18 -18
- package/docs/examples/dialog-full/no-header.vue +27 -27
- package/docs/examples/dialog-full/steps.vue +71 -71
- package/docs/examples/divider/basic.vue +52 -52
- package/docs/examples/drawer/basic.vue +35 -35
- package/docs/examples/drawer/custom-buttons.vue +34 -34
- package/docs/examples/drawer/direction.vue +47 -47
- package/docs/examples/drawer/mask.vue +36 -36
- package/docs/examples/drawer/no-buttons.vue +20 -20
- package/docs/examples/drawer/size.vue +28 -28
- package/docs/examples/dynamic-layer/basic.vue +33 -33
- package/docs/examples/dynamic-layer/custom-buttons.vue +43 -43
- package/docs/examples/dynamic-layer/form.vue +73 -73
- package/docs/examples/dynamic-layer/steps.vue +52 -52
- package/docs/examples/dynamic-layer/types.vue +40 -40
- package/docs/examples/echarts/basic.vue +31 -31
- package/docs/examples/echarts/dynamic.vue +43 -43
- package/docs/examples/echarts/line.vue +46 -46
- package/docs/examples/echarts/pie.vue +44 -44
- package/docs/examples/editor/basic.vue +15 -15
- package/docs/examples/form/basic.vue +663 -663
- package/docs/examples/form/init.vue +76 -76
- package/docs/examples/form/master-detail.vue +203 -203
- package/docs/examples/form/rule-format.vue +179 -179
- package/docs/examples/form/view-table.vue +378 -378
- package/docs/examples/guid/basic.vue +10 -10
- package/docs/examples/guid/size.vue +13 -13
- package/docs/examples/hpanel/basic.vue +79 -79
- package/docs/examples/icon/basic.vue +9 -9
- package/docs/examples/icon/rotate-flip.vue +9 -9
- package/docs/examples/icon/size.vue +7 -7
- package/docs/examples/input/basic.vue +10 -10
- package/docs/examples/input/clearable.vue +12 -12
- package/docs/examples/input/disabled.vue +6 -6
- package/docs/examples/input/icon.vue +23 -23
- package/docs/examples/input/password.vue +18 -18
- package/docs/examples/input/size.vue +13 -13
- package/docs/examples/input/textarea.vue +25 -25
- package/docs/examples/input/word-limit.vue +28 -28
- package/docs/examples/input-button/basic.vue +33 -33
- package/docs/examples/input-cards/basic.vue +79 -79
- package/docs/examples/input-code/basic.vue +29 -29
- package/docs/examples/input-color/basic.vue +10 -10
- package/docs/examples/input-color/disabled.vue +13 -13
- package/docs/examples/input-color/format.vue +17 -17
- package/docs/examples/input-color/no-alpha.vue +13 -13
- package/docs/examples/input-color/only-button.vue +15 -15
- package/docs/examples/input-color/predefine.vue +31 -31
- package/docs/examples/input-color/size.vue +15 -15
- package/docs/examples/input-layer/basic.vue +85 -85
- package/docs/examples/input-layer/render-vnode-page.vue +160 -160
- package/docs/examples/input-layer/render-vnode.vue +127 -127
- package/docs/examples/input-rows/basic.vue +73 -73
- package/docs/examples/input-rows/drag.vue +48 -48
- package/docs/examples/input-rows/layer-form.vue +85 -85
- package/docs/examples/input-rows/nested.vue +91 -91
- package/docs/examples/input-tag/basic.vue +27 -27
- package/docs/examples/input-tag/colors.vue +23 -23
- package/docs/examples/input-tag/readonly.vue +17 -17
- package/docs/examples/layer/basic.vue +43 -43
- package/docs/examples/layer/custom-buttons.vue +61 -61
- package/docs/examples/layer/drawer.vue +37 -37
- package/docs/examples/layer/full.vue +38 -38
- package/docs/examples/layer/modal.vue +34 -34
- package/docs/examples/layer/steps.vue +46 -46
- package/docs/examples/layer-form/basic.vue +76 -76
- package/docs/examples/layer-form/config.vue +82 -82
- package/docs/examples/layer-form/size.vue +72 -72
- package/docs/examples/layout/basic.vue +36 -36
- package/docs/examples/layout/custom-size.vue +50 -50
- package/docs/examples/layout/disable-move.vue +37 -37
- package/docs/examples/layout/hide-mid-when-narrow.vue +96 -96
- package/docs/examples/layout/min-size.vue +73 -73
- package/docs/examples/layout/percent-size.vue +80 -80
- package/docs/examples/layout/simple.vue +22 -22
- package/docs/examples/layout/top-side.vue +34 -34
- package/docs/examples/map/basic.vue +22 -22
- package/docs/examples/menu/basic.vue +58 -58
- package/docs/examples/menu/collapsed.vue +49 -49
- package/docs/examples/menu/horizontal.vue +44 -44
- package/docs/examples/menu/selection-test.vue +104 -104
- package/docs/examples/menu/theme.vue +46 -46
- package/docs/examples/menu/vertical.vue +46 -46
- package/docs/examples/number/advanced.vue +143 -143
- package/docs/examples/number/basic.vue +63 -63
- package/docs/examples/number/disabled.vue +49 -49
- package/docs/examples/number/size.vue +42 -42
- package/docs/examples/number/slots.vue +123 -123
- package/docs/examples/number/step-strictly.vue +41 -41
- package/docs/examples/number/step.vue +47 -47
- package/docs/examples/page/basic.vue +41 -41
- package/docs/examples/page/code-table-model.vue +428 -428
- package/docs/examples/page/dept-user-management.vue +211 -211
- package/docs/examples/page/init.vue +87 -87
- package/docs/examples/page/log.vue +453 -453
- package/docs/examples/page/user-management.vue +313 -313
- package/docs/examples/panel/tool-buttons.vue +18 -18
- package/docs/examples/radio/basic.vue +17 -17
- package/docs/examples/radio/button.vue +17 -17
- package/docs/examples/radio/color.vue +18 -18
- package/docs/examples/radio/disabled.vue +17 -17
- package/docs/examples/radio/size.vue +29 -29
- package/docs/examples/rate/basic.vue +24 -24
- package/docs/examples/rate/half.vue +24 -24
- package/docs/examples/rate/readonly.vue +11 -11
- package/docs/examples/rate/text.vue +37 -37
- package/docs/examples/select/basic.vue +16 -16
- package/docs/examples/select/clearable.vue +22 -22
- package/docs/examples/select/disabled.vue +31 -31
- package/docs/examples/select/filterable.vue +24 -24
- package/docs/examples/select/group.vue +23 -23
- package/docs/examples/select/icon.vue +16 -16
- package/docs/examples/select/multiple.vue +18 -18
- package/docs/examples/select/size.vue +39 -39
- package/docs/examples/slider/basic.vue +42 -42
- package/docs/examples/slider/disabled.vue +17 -17
- package/docs/examples/slider/marks.vue +30 -30
- package/docs/examples/slider/size.vue +37 -37
- package/docs/examples/slider/tooltip.vue +36 -36
- package/docs/examples/slider/vertical.vue +26 -26
- package/docs/examples/slider-captcha/basic.vue +44 -44
- package/docs/examples/slider-captcha/custom.vue +48 -48
- package/docs/examples/switch/basic.vue +16 -16
- package/docs/examples/switch/disabled.vue +13 -13
- package/docs/examples/switch/loading.vue +13 -13
- package/docs/examples/switch/size.vue +15 -15
- package/docs/examples/switch/text.vue +13 -13
- package/docs/examples/table/action-filter.vue +126 -126
- package/docs/examples/table/actions.vue +116 -116
- package/docs/examples/table/add-row.vue +103 -103
- package/docs/examples/table/basic.vue +168 -168
- package/docs/examples/table/checkbox-layout.vue +68 -68
- package/docs/examples/table/column-filter.vue +96 -96
- package/docs/examples/table/custom-layout.vue +115 -115
- package/docs/examples/table/dynamic-type.vue +73 -73
- package/docs/examples/table/editable.vue +262 -262
- package/docs/examples/table/field-selection.vue +87 -87
- package/docs/examples/table/frozen-column.vue +140 -140
- package/docs/examples/table/height-mode.vue +99 -99
- package/docs/examples/table/icon.vue +85 -85
- package/docs/examples/table/layer-form.vue +133 -133
- package/docs/examples/table/link.vue +66 -66
- package/docs/examples/table/multiple-disabled.vue +112 -112
- package/docs/examples/table/multiple.vue +188 -188
- package/docs/examples/table/pagination.vue +151 -151
- package/docs/examples/table/row-drag.vue +67 -67
- package/docs/examples/table/single-selection.vue +64 -64
- package/docs/examples/table/sub-table-lazy.vue +97 -97
- package/docs/examples/table/sub-table.vue +103 -103
- package/docs/examples/table/tag.vue +43 -43
- package/docs/examples/table/tree-column.vue +119 -119
- package/docs/examples/table/tree-data.vue +141 -141
- package/docs/examples/table/tree-default-expand-all.vue +60 -60
- package/docs/examples/table/tree-lazy.vue +80 -80
- package/docs/examples/table/tree-set-selection.vue +75 -75
- package/docs/examples/table-panel/basic.vue +229 -229
- package/docs/examples/table-panel/batch-operations.vue +286 -286
- package/docs/examples/table-panel/button-visibility.vue +88 -88
- package/docs/examples/table-panel/column-filter.vue +116 -116
- package/docs/examples/table-panel/filter.vue +219 -219
- package/docs/examples/table-panel/get-selection.vue +111 -111
- package/docs/examples/table-panel/mask.vue +151 -151
- package/docs/examples/table-panel/model-value.vue +87 -87
- package/docs/examples/table-panel/multiple-selection.vue +243 -243
- package/docs/examples/table-panel/pagination.vue +133 -133
- package/docs/examples/table-panel/search-list.vue +207 -207
- package/docs/examples/table-panel/sub-table-lazy.vue +118 -118
- package/docs/examples/table-panel/tree-parent-key.vue +67 -67
- package/docs/examples/tabs/basic.vue +98 -98
- package/docs/examples/time/base.vue +67 -67
- package/docs/examples/title/basic.vue +87 -87
- package/docs/examples/tree/accordion.vue +46 -46
- package/docs/examples/tree/basic.vue +50 -50
- package/docs/examples/tree/buttons.vue +53 -53
- package/docs/examples/tree/checkable.vue +52 -52
- package/docs/examples/tree/custom-keys.vue +39 -39
- package/docs/examples/tree/default-expanded.vue +52 -52
- package/docs/examples/tree/draggable.vue +29 -29
- package/docs/examples/tree/expand-on-click.vue +39 -39
- package/docs/examples/tree/flat-data.vue +20 -20
- package/docs/examples/tree/icon.vue +40 -40
- package/docs/examples/tree/load-data.vue +37 -37
- package/docs/examples/tree/methods.vue +74 -74
- package/docs/examples/tree/theme.vue +33 -33
- package/docs/examples/tree-select/basic.vue +47 -47
- package/docs/examples/upload/accept.vue +31 -31
- package/docs/examples/upload/basic.vue +12 -12
- package/docs/examples/upload/drag.vue +11 -11
- package/docs/examples/upload/image.vue +17 -17
- package/docs/examples/upload/limit.vue +20 -20
- package/docs/examples/upload/multiple.vue +17 -17
- package/docs/examples/upload/readonly.vue +17 -17
- package/docs/examples/utils/cipher.vue +160 -160
- package/docs/examples/utils/common.vue +153 -153
- package/docs/examples/utils/date.vue +56 -56
- package/docs/examples/utils/dom.vue +52 -52
- package/docs/examples/utils/is.vue +70 -70
- package/docs/examples/workflow/basic.vue +265 -265
- package/docs/examples/workflow-viewer/basic.vue +248 -248
- package/package.json +23 -23
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as Te, computed as H, createBlock as N, createCommentVNode as ae, createElementBlock as D, createElementVNode as B, createSlots as Yn, createTextVNode as Wn, createVNode as Z, defineComponent as me, getCurrentInstance as mc, guardReactiveProps as zo, h as Ei, inject as jd, mergeModels as Oo, mergeProps as Ue, nextTick as
|
|
1
|
+
import { Fragment as Te, computed as H, createBlock as N, createCommentVNode as ae, createElementBlock as D, createElementVNode as B, createSlots as Yn, createTextVNode as Wn, createVNode as Z, defineComponent as me, getCurrentInstance as mc, guardReactiveProps as zo, h as Ei, 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 Ti, 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 Vi, 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
|
|
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 Ai, omit as xf, pick as Mi, 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 = P & qe ^ P & Ze ^ qe & Ze, Ce = Me & je ^ Me & te ^ je & te, vt = (P >>> 28 | Me << 4) ^ (P << 30 | Me >>> 2) ^ (P << 25 | Me >>> 7), Dt = (Me >>> 28 | P << 4) ^ (Me << 30 | P >>> 2) ^ (Me << 25 | P >>> 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],
|
|
1433
|
-
on = Qe, rn = an, Qe = Ge, an = it, Ge = ie, it = ke, ke = ee +
|
|
1432
|
+
var ot = ie & Ge ^ ~ie & Qe, Ct = ke & it ^ ~ke & an, de = P & qe ^ P & Ze ^ qe & Ze, Ce = Me & je ^ Me & te ^ je & te, vt = (P >>> 28 | Me << 4) ^ (P << 30 | Me >>> 2) ^ (P << 25 | Me >>> 7), Dt = (Me >>> 28 | P << 4) ^ (Me << 30 | P >>> 2) ^ (Me << 25 | P >>> 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 = P, je = Me, Me = Bt + Fe | 0, P = qt + yn + (Me >>> 0 < Bt >>> 0 ? 1 : 0) | 0;
|
|
1434
1434
|
}
|
|
1435
1435
|
k = b.low = k + Me, b.high = S + P + (k >>> 0 < Me >>> 0 ? 1 : 0), A = x.low = A + je, x.high = T + qe + (A >>> 0 < je >>> 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 + ke, y.high = E + ie + (F >>> 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(Pi);
|
|
1536
1536
|
function Ch(e, t) {
|
|
1537
1537
|
function n() {
|
|
1538
|
-
|
|
1538
|
+
Ot(() => {
|
|
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 = (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),
|
|
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), Ot(async () => {
|
|
1732
1732
|
n.value.showLoading("加载中"), await S(z.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
|
|
2002
|
+
return At(() => {
|
|
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
|
|
2656
|
+
return At(() => {
|
|
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
|
|
2865
|
+
return At(() => {
|
|
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
|
-
}),
|
|
3075
|
+
}), At(() => {
|
|
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
|
-
}),
|
|
3250
|
+
}), At(() => {
|
|
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 - O - M < t.midMinWidth;
|
|
3513
3513
|
};
|
|
3514
3514
|
let z = null;
|
|
3515
|
-
return
|
|
3515
|
+
return At(() => {
|
|
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 at([() => n.id, () => P.value], () => {
|
|
5533
5533
|
Ze();
|
|
5534
|
-
}, { immediate: !0 }),
|
|
5534
|
+
}, { immediate: !0 }), At(() => {
|
|
5535
5535
|
n.id && h && h(n.id), n.id && x && x(n.id);
|
|
5536
5536
|
}), Do(() => {
|
|
5537
5537
|
je();
|
|
@@ -5572,6 +5572,13 @@ var Dp = class {
|
|
|
5572
5572
|
wrapContainer = null;
|
|
5573
5573
|
container = null;
|
|
5574
5574
|
currentValue = null;
|
|
5575
|
+
readValueFromDom(e) {
|
|
5576
|
+
const t = e.querySelector('input, textarea, [contenteditable="true"]');
|
|
5577
|
+
if (t) {
|
|
5578
|
+
if (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) return t.value;
|
|
5579
|
+
if (t.isContentEditable) return t.textContent;
|
|
5580
|
+
}
|
|
5581
|
+
}
|
|
5575
5582
|
async onStart(e) {
|
|
5576
5583
|
const { value: t } = e;
|
|
5577
5584
|
await this.createElement(e) && t != null && this.setValue(t);
|
|
@@ -5613,7 +5620,7 @@ var Dp = class {
|
|
|
5613
5620
|
isTableCell: !0,
|
|
5614
5621
|
class: "j-comp-editor",
|
|
5615
5622
|
"onUpdate:modelValue": (g) => {
|
|
5616
|
-
this.currentValue = g;
|
|
5623
|
+
console.log("j-comp-editor", g), this.currentValue = g;
|
|
5617
5624
|
},
|
|
5618
5625
|
colNum: a,
|
|
5619
5626
|
rowNum: o
|
|
@@ -5621,6 +5628,10 @@ var Dp = class {
|
|
|
5621
5628
|
return p.appContext = i._getAppContext(), p.appContext.provides = i._getProvides(), Ti(p, u), n?.rect && this.adjustPosition(n.rect), !0;
|
|
5622
5629
|
}
|
|
5623
5630
|
getValue() {
|
|
5631
|
+
if (this.wrapContainer) {
|
|
5632
|
+
const e = this.readValueFromDom(this.wrapContainer);
|
|
5633
|
+
e !== void 0 && (this.currentValue = e);
|
|
5634
|
+
}
|
|
5624
5635
|
return this.currentValue;
|
|
5625
5636
|
}
|
|
5626
5637
|
setValue(e) {
|
|
@@ -6617,13 +6628,13 @@ var Yp = /* @__PURE__ */ me({
|
|
|
6617
6628
|
return `#${(U << 16 | ne << 8 | se).toString(16).padStart(6, "0")}`;
|
|
6618
6629
|
}, zt = () => {
|
|
6619
6630
|
let I = T;
|
|
6620
|
-
o.isPage && (I =
|
|
6631
|
+
o.isPage && (I = Bt.value + T);
|
|
6621
6632
|
let $ = En(String(I)) || 0;
|
|
6622
6633
|
return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
|
|
6623
6634
|
}, Ca = (I) => {
|
|
6624
6635
|
let $ = (Y, oe, U, ne) => {
|
|
6625
6636
|
const se = ne.getRecordIndexByCell(oe, U);
|
|
6626
|
-
return o.isPage && !I ?
|
|
6637
|
+
return o.isPage && !I ? Bt.value + se + 1 : se + 1;
|
|
6627
6638
|
};
|
|
6628
6639
|
return I && ($ = (Y, oe, U, ne) => ne.getRecordIndexByCell(oe, U) + 1), {
|
|
6629
6640
|
field: "__sequence__",
|
|
@@ -6885,7 +6896,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
6885
6896
|
}
|
|
6886
6897
|
}
|
|
6887
6898
|
}, lt = () => y ? y.records : [];
|
|
6888
|
-
|
|
6899
|
+
At(() => {
|
|
6889
6900
|
de();
|
|
6890
6901
|
}), Do(() => {
|
|
6891
6902
|
Ce(), Q(), document.removeEventListener("wheel", qe);
|
|
@@ -6897,14 +6908,14 @@ var Yp = /* @__PURE__ */ me({
|
|
|
6897
6908
|
set(I) {
|
|
6898
6909
|
i("update:tablePage", I);
|
|
6899
6910
|
}
|
|
6900
|
-
}),
|
|
6911
|
+
}), Pt = L(0), Vt = H({
|
|
6901
6912
|
get() {
|
|
6902
|
-
return
|
|
6913
|
+
return Pt.value !== 0 ? Pt.value : o.pageSize;
|
|
6903
6914
|
},
|
|
6904
6915
|
set(I) {
|
|
6905
|
-
|
|
6916
|
+
Pt.value = I, i("update:pageSize", I);
|
|
6906
6917
|
}
|
|
6907
|
-
}),
|
|
6918
|
+
}), Bt = H(() => (Ut.value - 1) * Vt.value), qt = (I, $) => {
|
|
6908
6919
|
i("loadPageData", {
|
|
6909
6920
|
rows: $,
|
|
6910
6921
|
page: I
|
|
@@ -6987,9 +6998,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
6987
6998
|
y.renderWithRecreateCells();
|
|
6988
6999
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
6989
7000
|
}, hn = (I) => {
|
|
6990
|
-
i("rowChange", I),
|
|
6991
|
-
y.renderWithRecreateCells();
|
|
6992
|
-
});
|
|
7001
|
+
i("rowChange", I), y.renderWithRecreateCells();
|
|
6993
7002
|
}, Xt = (I) => {
|
|
6994
7003
|
if (!y) return;
|
|
6995
7004
|
const $ = Fe();
|
|
@@ -7291,7 +7300,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7291
7300
|
_top: 0
|
|
7292
7301
|
}), g = L(0), b = L(), x = L(48), w = L(0), m = L(0);
|
|
7293
7302
|
at(() => a.visible, (P) => {
|
|
7294
|
-
g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls &&
|
|
7303
|
+
g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls && Ot(() => {
|
|
7295
7304
|
typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = K));
|
|
7296
7305
|
});
|
|
7297
7306
|
}, { immediate: !0 });
|
|
@@ -7316,7 +7325,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7316
7325
|
}, A = () => {
|
|
7317
7326
|
o("ok", S, k);
|
|
7318
7327
|
}, j = () => {
|
|
7319
|
-
p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (z.value = 0,
|
|
7328
|
+
p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (z.value = 0, Ot(() => {
|
|
7320
7329
|
F();
|
|
7321
7330
|
})), o("closed");
|
|
7322
7331
|
}, z = H({
|
|
@@ -7327,11 +7336,11 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7327
7336
|
h.value = P, o("update:stepActive", P);
|
|
7328
7337
|
}
|
|
7329
7338
|
}), O = () => {
|
|
7330
|
-
z.value > 0 && z.value--,
|
|
7339
|
+
z.value > 0 && z.value--, Ot(() => {
|
|
7331
7340
|
F();
|
|
7332
7341
|
});
|
|
7333
7342
|
}, M = async () => {
|
|
7334
|
-
await E() && (z.value < a.steps.length - 1 && (z.value += 1),
|
|
7343
|
+
await E() && (z.value < a.steps.length - 1 && (z.value += 1), Ot(() => {
|
|
7335
7344
|
F();
|
|
7336
7345
|
}));
|
|
7337
7346
|
}, E = async () => {
|
|
@@ -7600,7 +7609,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7600
7609
|
}, x = () => {
|
|
7601
7610
|
o("ok", m, y);
|
|
7602
7611
|
}, w = () => {
|
|
7603
|
-
a.isStep && (g.value = 0,
|
|
7612
|
+
a.isStep && (g.value = 0, Ot(() => {
|
|
7604
7613
|
S();
|
|
7605
7614
|
})), o("closed");
|
|
7606
7615
|
}, m = (A) => {
|
|
@@ -7608,11 +7617,11 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7608
7617
|
}, y = () => {
|
|
7609
7618
|
c.value = !1;
|
|
7610
7619
|
}, C = () => {
|
|
7611
|
-
g.value > 0 && g.value--,
|
|
7620
|
+
g.value > 0 && g.value--, Ot(() => {
|
|
7612
7621
|
S();
|
|
7613
7622
|
});
|
|
7614
7623
|
}, v = async () => {
|
|
7615
|
-
await _() && (g.value < a.steps.length - 1 && (g.value += 1),
|
|
7624
|
+
await _() && (g.value < a.steps.length - 1 && (g.value += 1), Ot(() => {
|
|
7616
7625
|
S();
|
|
7617
7626
|
}));
|
|
7618
7627
|
}, _ = async () => {
|
|
@@ -7862,7 +7871,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7862
7871
|
}, f = () => {
|
|
7863
7872
|
r.value = !1;
|
|
7864
7873
|
}, u = () => {
|
|
7865
|
-
a.isStep && (C.value = 0,
|
|
7874
|
+
a.isStep && (C.value = 0, Ot(() => {
|
|
7866
7875
|
k();
|
|
7867
7876
|
})), i("closed");
|
|
7868
7877
|
}, h = () => {
|
|
@@ -7879,11 +7888,11 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7879
7888
|
y.value = A, i("update:stepActive", A);
|
|
7880
7889
|
}
|
|
7881
7890
|
}), v = () => {
|
|
7882
|
-
C.value > 0 && C.value--,
|
|
7891
|
+
C.value > 0 && C.value--, Ot(() => {
|
|
7883
7892
|
k();
|
|
7884
7893
|
});
|
|
7885
7894
|
}, _ = async () => {
|
|
7886
|
-
await S() && (C.value < a.steps.length - 1 && (C.value += 1),
|
|
7895
|
+
await S() && (C.value < a.steps.length - 1 && (C.value += 1), Ot(() => {
|
|
7887
7896
|
k();
|
|
7888
7897
|
}));
|
|
7889
7898
|
}, S = async () => {
|
|
@@ -9064,7 +9073,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
9064
9073
|
};
|
|
9065
9074
|
return at(() => a.option, (p) => {
|
|
9066
9075
|
d(p);
|
|
9067
|
-
}, { deep: !0 }),
|
|
9076
|
+
}, { deep: !0 }), At(() => {
|
|
9068
9077
|
s();
|
|
9069
9078
|
}), $o(() => {
|
|
9070
9079
|
c && clearTimeout(c), l && i.value && (l.unobserve(i.value), l.disconnect(), l = null), r.value && (r.value.dispose(), r.value = void 0);
|
|
@@ -9086,7 +9095,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
9086
9095
|
const n = e.__vccOpts || e;
|
|
9087
9096
|
for (const [a, o] of t) n[a] = o;
|
|
9088
9097
|
return n;
|
|
9089
|
-
}, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-
|
|
9098
|
+
}, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-37f9a80b"]]), sv = Se(lv), cv = ["innerHTML"], uv = {
|
|
9090
9099
|
key: 1,
|
|
9091
9100
|
class: "j-barcode-error"
|
|
9092
9101
|
}, dv = /* @__PURE__ */ me({
|
|
@@ -10077,7 +10086,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
10077
10086
|
},
|
|
10078
10087
|
setup(e, { expose: t }) {
|
|
10079
10088
|
const n = e, a = H(() => ({ ...n })), o = L(), i = L(null), r = H(() => n.options);
|
|
10080
|
-
|
|
10089
|
+
At(() => {
|
|
10081
10090
|
n.animation && l();
|
|
10082
10091
|
}), at(() => n.decimals, () => {
|
|
10083
10092
|
i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
|
|
@@ -10949,8 +10958,8 @@ var Yp = /* @__PURE__ */ me({
|
|
|
10949
10958
|
}));
|
|
10950
10959
|
}), at(() => a.mode, () => {
|
|
10951
10960
|
l && f();
|
|
10952
|
-
}),
|
|
10953
|
-
await
|
|
10961
|
+
}), At(async () => {
|
|
10962
|
+
await Ot(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
|
|
10954
10963
|
l && l.dispatch({ scrollIntoView: !0 });
|
|
10955
10964
|
}), p.observe(i.value));
|
|
10956
10965
|
}), $o(() => {
|
|
@@ -11396,7 +11405,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
11396
11405
|
setup(e, { emit: t }) {
|
|
11397
11406
|
const n = e, a = t, { activeMenu: o, theme: i } = Wo(), r = L(), l = L(0);
|
|
11398
11407
|
let c = null;
|
|
11399
|
-
|
|
11408
|
+
At(() => {
|
|
11400
11409
|
typeof window < "u" && window.ResizeObserver && r.value && (c = new ResizeObserver(() => {
|
|
11401
11410
|
r.value && (l.value = r.value.offsetWidth);
|
|
11402
11411
|
}), c.observe(r.value));
|
|
@@ -11961,7 +11970,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
11961
11970
|
}
|
|
11962
11971
|
}
|
|
11963
11972
|
];
|
|
11964
|
-
|
|
11973
|
+
At(() => {
|
|
11965
11974
|
c.value = o.searchFieldList, l.value = o.searchList;
|
|
11966
11975
|
});
|
|
11967
11976
|
const f = H(() => o.columns.filter((C) => !C.children?.length && !C.config?.isNotFilter).map((C) => ({
|
|
@@ -12513,16 +12522,16 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12513
12522
|
It.value = ht.value?.clientWidth || 0;
|
|
12514
12523
|
};
|
|
12515
12524
|
let fn;
|
|
12516
|
-
|
|
12517
|
-
|
|
12525
|
+
At(() => {
|
|
12526
|
+
Ot(Lt), fn = new ResizeObserver(() => {
|
|
12518
12527
|
Lt();
|
|
12519
12528
|
}), ht.value && fn.observe(ht.value);
|
|
12520
12529
|
}), Do(() => {
|
|
12521
12530
|
fn?.disconnect();
|
|
12522
12531
|
}), at(() => rn.value, () => {
|
|
12523
|
-
|
|
12532
|
+
Ot(Lt);
|
|
12524
12533
|
}, { deep: !0 }), at(Ge, () => {
|
|
12525
|
-
|
|
12534
|
+
Ot(Lt);
|
|
12526
12535
|
});
|
|
12527
12536
|
const Zn = H(() => {
|
|
12528
12537
|
const de = rn.value;
|
|
@@ -12549,15 +12558,15 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12549
12558
|
notLabel: !0
|
|
12550
12559
|
},
|
|
12551
12560
|
children: []
|
|
12552
|
-
},
|
|
12553
|
-
let
|
|
12561
|
+
}, Pt = 28, Vt = [];
|
|
12562
|
+
let Bt = 0, qt = null;
|
|
12554
12563
|
for (let $t = 0; $t < de.length; $t++) {
|
|
12555
12564
|
const hn = de[$t], Xt = Dt(hn, $t);
|
|
12556
|
-
let mn =
|
|
12565
|
+
let mn = Bt;
|
|
12557
12566
|
qt !== null && (mn += Xt === qt ? -1 : 8), mn += xe(hn);
|
|
12558
|
-
const Ga = de.length - ($t + 1) > 0 ? (mn > 0 ? 8 : 0) +
|
|
12567
|
+
const Ga = de.length - ($t + 1) > 0 ? (mn > 0 ? 8 : 0) + Pt : 0;
|
|
12559
12568
|
if (mn + Ga <= vt)
|
|
12560
|
-
Vt.push(hn),
|
|
12569
|
+
Vt.push(hn), Bt = mn, qt = Xt;
|
|
12561
12570
|
else break;
|
|
12562
12571
|
}
|
|
12563
12572
|
const Fe = de.slice(Vt.length);
|
|
@@ -12641,9 +12650,9 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12641
12650
|
if (b.value) xe = de;
|
|
12642
12651
|
else if (!i.rowKey) xe = de;
|
|
12643
12652
|
else {
|
|
12644
|
-
const lt = new Map(de.map((
|
|
12645
|
-
c.forEach((
|
|
12646
|
-
const Vt = C(
|
|
12653
|
+
const lt = new Map(de.map((Pt) => [C(Pt), Pt])), Ut = new Map(p.value.map((Pt) => [C(Pt), Pt]));
|
|
12654
|
+
c.forEach((Pt) => {
|
|
12655
|
+
const Vt = C(Pt);
|
|
12647
12656
|
lt.has(Vt) ? Ut.set(Vt, lt.get(Vt)) : Ut.delete(Vt);
|
|
12648
12657
|
}), xe = Array.from(Ut.values());
|
|
12649
12658
|
}
|
|
@@ -12665,7 +12674,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12665
12674
|
}, Pe = () => p.value || [], Le = (de) => {
|
|
12666
12675
|
p.value = de, l.value?.setSelection?.(de);
|
|
12667
12676
|
}, ot = () => l.value;
|
|
12668
|
-
return
|
|
12677
|
+
return At(async () => {
|
|
12669
12678
|
i.immediate && await Ca();
|
|
12670
12679
|
}), t({
|
|
12671
12680
|
refreshData: Ca,
|
|
@@ -12677,7 +12686,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12677
12686
|
},
|
|
12678
12687
|
getTableRef: ot
|
|
12679
12688
|
}), (de, Ce) => {
|
|
12680
|
-
const vt = V("j-buttons"), Dt = V("j-icon"), xe = V("el-popover"), lt = V("el-tooltip"), Ut = V("el-input"),
|
|
12689
|
+
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");
|
|
12681
12690
|
return R(), D("div", { class: We(["j-table-panel-wrapper", {
|
|
12682
12691
|
fullscreen: Ge.value,
|
|
12683
12692
|
"no-padding": e.noPadding || Ge.value
|
|
@@ -12744,7 +12753,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12744
12753
|
persistent: !1,
|
|
12745
12754
|
onHide: ln
|
|
12746
12755
|
}, {
|
|
12747
|
-
reference: q(() => [Z(
|
|
12756
|
+
reference: q(() => [Z(Pt, {
|
|
12748
12757
|
icon: "mdi:filter-outline",
|
|
12749
12758
|
label: "筛选",
|
|
12750
12759
|
type: "text",
|
|
@@ -12785,7 +12794,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12785
12794
|
trigger: "click",
|
|
12786
12795
|
onShow: Me
|
|
12787
12796
|
}, {
|
|
12788
|
-
reference: q(() => [Z(
|
|
12797
|
+
reference: q(() => [Z(Pt, {
|
|
12789
12798
|
class: We({ active: P.value.length > 0 }),
|
|
12790
12799
|
type: "text",
|
|
12791
12800
|
icon: "mdi:sort"
|
|
@@ -12815,7 +12824,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12815
12824
|
trigger: "click",
|
|
12816
12825
|
onShow: ie
|
|
12817
12826
|
}, {
|
|
12818
|
-
reference: q(() => [Z(
|
|
12827
|
+
reference: q(() => [Z(Pt, {
|
|
12819
12828
|
class: We({ active: ee.value }),
|
|
12820
12829
|
type: "text",
|
|
12821
12830
|
icon: "mdi:table-headers-eye"
|
|
@@ -12836,7 +12845,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12836
12845
|
placement: "bottom",
|
|
12837
12846
|
content: J(a)("刷新")
|
|
12838
12847
|
}, {
|
|
12839
|
-
default: q(() => [Z(
|
|
12848
|
+
default: q(() => [Z(Pt, {
|
|
12840
12849
|
type: "text",
|
|
12841
12850
|
icon: "mdi:refresh",
|
|
12842
12851
|
onClick: G
|
|
@@ -12848,7 +12857,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12848
12857
|
placement: "bottom",
|
|
12849
12858
|
content: Ge.value ? J(a)("退出全屏") : J(a)("全屏")
|
|
12850
12859
|
}, {
|
|
12851
|
-
default: q(() => [Z(
|
|
12860
|
+
default: q(() => [Z(Pt, {
|
|
12852
12861
|
type: "text",
|
|
12853
12862
|
icon: Ge.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
|
|
12854
12863
|
onClick: it
|
|
@@ -12885,7 +12894,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12885
12894
|
"page-size",
|
|
12886
12895
|
"page-sizes",
|
|
12887
12896
|
"total"
|
|
12888
|
-
])])) : ae("", !0)], 2)) : (R(), N(
|
|
12897
|
+
])])) : ae("", !0)], 2)) : (R(), N(Bt, {
|
|
12889
12898
|
key: 1,
|
|
12890
12899
|
ref_key: "tableRef",
|
|
12891
12900
|
ref: l,
|
|
@@ -13145,7 +13154,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
13145
13154
|
d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({
|
|
13146
13155
|
type: "j-tree",
|
|
13147
13156
|
config: a
|
|
13148
|
-
}), d.value = !1,
|
|
13157
|
+
}), d.value = !1, Ot(() => {
|
|
13149
13158
|
a.afterLoadData && a.afterLoadData(g.value || []);
|
|
13150
13159
|
});
|
|
13151
13160
|
}, x = (O, M = !0) => {
|
|
@@ -13181,7 +13190,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
13181
13190
|
}, A = L(""), j = (O, M) => {
|
|
13182
13191
|
A.value = O ? M.value : "";
|
|
13183
13192
|
}, z = (O, M, E) => a.allowDrop ? a.allowDrop(O, M, E) : !(E == "inner" && !M.data.canInner);
|
|
13184
|
-
return
|
|
13193
|
+
return At(async () => {
|
|
13185
13194
|
(a.immediate && a.loadData || a.dataType || a.dataCode) && await b();
|
|
13186
13195
|
}), at(() => a.dataCode || a.dataType, () => {
|
|
13187
13196
|
b();
|
|
@@ -13548,11 +13557,11 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13548
13557
|
});
|
|
13549
13558
|
}, te = async (G, ve) => {
|
|
13550
13559
|
const re = ++E, le = b.value;
|
|
13551
|
-
b.value = !1, le && await
|
|
13560
|
+
b.value = !1, le && await Ot();
|
|
13552
13561
|
const be = !!ve;
|
|
13553
13562
|
if (S.length = 0, T = /* @__PURE__ */ Object.create(null), A = /* @__PURE__ */ Object.create(null), j = [], Me = ve, jo(v), jo(k), be && qe(ve, ""), Ze(G, S, be), O = we(), M = !1, z = O, ue(() => {
|
|
13554
13563
|
re === E && (z = Jt(O), M = !0);
|
|
13555
|
-
}), b.value = !0, await
|
|
13564
|
+
}), b.value = !0, await Ot(), await X(), a.config?.codeInit) {
|
|
13556
13565
|
const Pe = a.config.codeInit;
|
|
13557
13566
|
let Le;
|
|
13558
13567
|
F?.raw === Pe ? Le = F.obj : (Le = JSON.parse(Pe), F = {
|
|
@@ -13873,7 +13882,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13873
13882
|
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));
|
|
13874
13883
|
});
|
|
13875
13884
|
}, c = (w) => {
|
|
13876
|
-
a.value = !1, o.splice(0, o.length), jo(i), jo(r), l(w, o),
|
|
13885
|
+
a.value = !1, o.splice(0, o.length), jo(i), jo(r), l(w, o), Ot(() => {
|
|
13877
13886
|
a.value = !0;
|
|
13878
13887
|
});
|
|
13879
13888
|
};
|
|
@@ -14151,7 +14160,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14151
14160
|
}, y = (v) => {
|
|
14152
14161
|
o("rowChange", v);
|
|
14153
14162
|
};
|
|
14154
|
-
|
|
14163
|
+
At(() => {
|
|
14155
14164
|
if (!f.value || !h.value) return;
|
|
14156
14165
|
const v = h.value, { initSortable: _ } = Ch(v, {
|
|
14157
14166
|
handle: ".j-input-rows-drag",
|
|
@@ -14309,7 +14318,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14309
14318
|
data: void 0
|
|
14310
14319
|
});
|
|
14311
14320
|
}, p = async ({ checked: w }) => {
|
|
14312
|
-
s.value && w && (await
|
|
14321
|
+
s.value && w && (await Ot(), await g());
|
|
14313
14322
|
}, g = async () => {
|
|
14314
14323
|
if (!l.value) return;
|
|
14315
14324
|
const w = l.value.getSelection();
|
|
@@ -14612,7 +14621,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14612
14621
|
}), c = (s) => {
|
|
14613
14622
|
a("change", s);
|
|
14614
14623
|
};
|
|
14615
|
-
return
|
|
14624
|
+
return At(() => {
|
|
14616
14625
|
n.autoFocus && !n.readonly && setTimeout(() => {
|
|
14617
14626
|
const s = l.value === i.value ? r.value : i.value;
|
|
14618
14627
|
l.value = s, c(s);
|
|
@@ -14856,7 +14865,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14856
14865
|
}
|
|
14857
14866
|
return u;
|
|
14858
14867
|
};
|
|
14859
|
-
return
|
|
14868
|
+
return At(() => {
|
|
14860
14869
|
const f = {
|
|
14861
14870
|
placeholder: n.placeholder || "请输入内容...",
|
|
14862
14871
|
readOnly: n.readonly,
|
|
@@ -14984,7 +14993,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14984
14993
|
x(m);
|
|
14985
14994
|
} })), p.search(b));
|
|
14986
14995
|
}
|
|
14987
|
-
}),
|
|
14996
|
+
}), At(() => {
|
|
14988
14997
|
f();
|
|
14989
14998
|
}), (b, x) => (R(), D("div", {
|
|
14990
14999
|
class: "j-map",
|
|
@@ -15295,9 +15304,9 @@ function Tr(e, t) {
|
|
|
15295
15304
|
return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
|
|
15296
15305
|
}
|
|
15297
15306
|
function el(e, t, n) {
|
|
15298
|
-
|
|
15307
|
+
Ht(t) && (n = t, t = null), t || (t = {});
|
|
15299
15308
|
const a = Xe("path", t);
|
|
15300
|
-
return
|
|
15309
|
+
return Ht(n) && (a.dataset.cornerRadius = String(n)), Gc(a, e);
|
|
15301
15310
|
}
|
|
15302
15311
|
function Gc(e, t) {
|
|
15303
15312
|
return De(e, { d: Uo(A0(t, parseInt(e.dataset.cornerRadius, 10) || 0)) }), e;
|
|
@@ -15896,7 +15905,7 @@ function ou(e, t) {
|
|
|
15896
15905
|
var n = {};
|
|
15897
15906
|
return ye(e, function(a) {
|
|
15898
15907
|
var o = a;
|
|
15899
|
-
o.waypoints && (o = Dn(o)), !
|
|
15908
|
+
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);
|
|
15900
15909
|
}), n;
|
|
15901
15910
|
}
|
|
15902
15911
|
function J0(e) {
|
|
@@ -16022,7 +16031,7 @@ function iu(e, t, n, a, o) {
|
|
|
16022
16031
|
hints: {},
|
|
16023
16032
|
shape: f
|
|
16024
16033
|
}, d || {}), ye(s, function(h) {
|
|
16025
|
-
|
|
16034
|
+
Ht(h.x) || (h.x = 0), Ht(h.y) || (h.y = 0);
|
|
16026
16035
|
});
|
|
16027
16036
|
var u = Dn(_n(s, function(h) {
|
|
16028
16037
|
return !h.hidden;
|
|
@@ -17069,7 +17078,7 @@ function Hw(e, t) {
|
|
|
17069
17078
|
};
|
|
17070
17079
|
}
|
|
17071
17080
|
Gt.prototype.on = function(e, t, n, a, o, i) {
|
|
17072
|
-
if ((Ln(t) ||
|
|
17081
|
+
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");
|
|
17073
17082
|
ft(e) || (e = [e]);
|
|
17074
17083
|
var r = this._eventBus;
|
|
17075
17084
|
ye(e, function(l) {
|
|
@@ -17094,7 +17103,7 @@ Gt.prototype.revert = Kn("revert");
|
|
|
17094
17103
|
Gt.prototype.reverted = Kn("reverted");
|
|
17095
17104
|
function Kn(e) {
|
|
17096
17105
|
return function(n, a, o, i, r) {
|
|
17097
|
-
(Ln(n) ||
|
|
17106
|
+
(Ln(n) || Ht(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
|
|
17098
17107
|
};
|
|
17099
17108
|
}
|
|
17100
17109
|
var Ow = 250, Rs = 1400;
|
|
@@ -17425,7 +17434,7 @@ hl.$inject = ["modeling"];
|
|
|
17425
17434
|
hl.prototype.preExecute = function(e) {
|
|
17426
17435
|
var t = e.elements, n = e.parent, a = e.parentIndex, o = e.position, i = e.hints, r = this._modeling;
|
|
17427
17436
|
ye(t, function(d) {
|
|
17428
|
-
|
|
17437
|
+
Ht(d.x) || (d.x = 0), Ht(d.y) || (d.y = 0);
|
|
17429
17438
|
});
|
|
17430
17439
|
var l = Dn(_n(t, function(d) {
|
|
17431
17440
|
return !d.hidden;
|
|
@@ -17444,11 +17453,11 @@ hl.prototype.preExecute = function(e) {
|
|
|
17444
17453
|
var c = N0(t), s = {};
|
|
17445
17454
|
ye(t, function(d) {
|
|
17446
17455
|
if (nn(d)) {
|
|
17447
|
-
s[d.id] =
|
|
17456
|
+
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);
|
|
17448
17457
|
return;
|
|
17449
17458
|
}
|
|
17450
17459
|
var f = $e({}, i);
|
|
17451
|
-
c.indexOf(d) === -1 && (f.autoResize = !1), io(d) && (f = xf(f, ["attach"])), s[d.id] =
|
|
17460
|
+
c.indexOf(d) === -1 && (f.autoResize = !1), io(d) && (f = xf(f, ["attach"])), s[d.id] = Ht(a) ? r.createShape(d, Mi(d, [
|
|
17452
17461
|
"x",
|
|
17453
17462
|
"y",
|
|
17454
17463
|
"width",
|
|
@@ -19943,7 +19952,7 @@ var Yu = { myImporter: ["type", ma] }, Ju = (e) => {
|
|
|
19943
19952
|
const k = S.createRoot();
|
|
19944
19953
|
_.setRootElement(k), d();
|
|
19945
19954
|
};
|
|
19946
|
-
|
|
19955
|
+
At(() => {
|
|
19947
19956
|
u();
|
|
19948
19957
|
});
|
|
19949
19958
|
const h = (v) => {
|
|
@@ -21003,16 +21012,16 @@ function Ix() {
|
|
|
21003
21012
|
}), e;
|
|
21004
21013
|
}
|
|
21005
21014
|
var Lx = { scheduler: ["type", go] }, zx = "djs-element-hidden", _i = ".entry", Dx = 1e3, ac = 8, $x = 300;
|
|
21006
|
-
function
|
|
21015
|
+
function jt(e, t, n, a) {
|
|
21007
21016
|
this._canvas = e, this._elementRegistry = t, this._eventBus = n, this._scheduler = a, this._current = null, this._init();
|
|
21008
21017
|
}
|
|
21009
|
-
|
|
21018
|
+
jt.$inject = [
|
|
21010
21019
|
"canvas",
|
|
21011
21020
|
"elementRegistry",
|
|
21012
21021
|
"eventBus",
|
|
21013
21022
|
"scheduler"
|
|
21014
21023
|
];
|
|
21015
|
-
|
|
21024
|
+
jt.prototype._init = function() {
|
|
21016
21025
|
var e = this;
|
|
21017
21026
|
this._eventBus.on("selection.changed", function(t) {
|
|
21018
21027
|
var n = t.newSelection, a = n.length ? n.length === 1 ? n[0] : n : null;
|
|
@@ -21040,16 +21049,16 @@ Pt.prototype._init = function() {
|
|
|
21040
21049
|
}
|
|
21041
21050
|
}), this._container = this._createContainer();
|
|
21042
21051
|
};
|
|
21043
|
-
|
|
21052
|
+
jt.prototype._createContainer = function() {
|
|
21044
21053
|
var e = vn('<div class="djs-context-pad-parent"></div>');
|
|
21045
21054
|
return this._canvas.getContainer().appendChild(e), e;
|
|
21046
21055
|
};
|
|
21047
|
-
|
|
21056
|
+
jt.prototype.registerProvider = function(e, t) {
|
|
21048
21057
|
t || (t = e, e = Dx), this._eventBus.on("contextPad.getProviders", e, function(n) {
|
|
21049
21058
|
n.providers.push(t);
|
|
21050
21059
|
});
|
|
21051
21060
|
};
|
|
21052
|
-
|
|
21061
|
+
jt.prototype.getEntries = function(e) {
|
|
21053
21062
|
var t = this._getProviders(), n = ft(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
|
|
21054
21063
|
return ye(t, function(o) {
|
|
21055
21064
|
if (Ln(o[n])) {
|
|
@@ -21060,7 +21069,7 @@ Pt.prototype.getEntries = function(e) {
|
|
|
21060
21069
|
}
|
|
21061
21070
|
}), a;
|
|
21062
21071
|
};
|
|
21063
|
-
|
|
21072
|
+
jt.prototype.trigger = function(e, t, n) {
|
|
21064
21073
|
var a = this, o, i, r = t.delegateTarget || t.target;
|
|
21065
21074
|
if (!r) return t.preventDefault();
|
|
21066
21075
|
if (o = An(r, "data-action"), i = t.originalEvent || t, e === "mouseover") {
|
|
@@ -21074,7 +21083,7 @@ Pt.prototype.trigger = function(e, t, n) {
|
|
|
21074
21083
|
}
|
|
21075
21084
|
return this.triggerEntry(o, e, i, n);
|
|
21076
21085
|
};
|
|
21077
|
-
|
|
21086
|
+
jt.prototype.triggerEntry = function(e, t, n, a) {
|
|
21078
21087
|
if (this.isShown()) {
|
|
21079
21088
|
var o = this._current.target, i = this._current.entries[e];
|
|
21080
21089
|
if (i) {
|
|
@@ -21091,17 +21100,17 @@ Pt.prototype.triggerEntry = function(e, t, n, a) {
|
|
|
21091
21100
|
}
|
|
21092
21101
|
}
|
|
21093
21102
|
};
|
|
21094
|
-
|
|
21103
|
+
jt.prototype.open = function(e, t) {
|
|
21095
21104
|
!t && this.isOpen(e) || (this.close(), this._updateAndOpen(e));
|
|
21096
21105
|
};
|
|
21097
|
-
|
|
21106
|
+
jt.prototype._getProviders = function() {
|
|
21098
21107
|
var e = this._eventBus.createEvent({
|
|
21099
21108
|
type: "contextPad.getProviders",
|
|
21100
21109
|
providers: []
|
|
21101
21110
|
});
|
|
21102
21111
|
return this._eventBus.fire(e), e.providers;
|
|
21103
21112
|
};
|
|
21104
|
-
|
|
21113
|
+
jt.prototype._updateAndOpen = function(e) {
|
|
21105
21114
|
var t = this.getEntries(e), n = this._createHtml(e), a;
|
|
21106
21115
|
ye(t, function(o, i) {
|
|
21107
21116
|
var r = o.group || "default", l = vn(o.html || '<div class="entry" draggable="true"></div>'), c;
|
|
@@ -21112,7 +21121,7 @@ Pt.prototype._updateAndOpen = function(e) {
|
|
|
21112
21121
|
target: e
|
|
21113
21122
|
}, this._updatePosition(), this._updateVisibility(), this._eventBus.fire("contextPad.open", { current: this._current });
|
|
21114
21123
|
};
|
|
21115
|
-
|
|
21124
|
+
jt.prototype._createHtml = function(e) {
|
|
21116
21125
|
var t = this, n = vn('<div class="djs-context-pad"></div>');
|
|
21117
21126
|
return ia.bind(n, _i, "click", function(a) {
|
|
21118
21127
|
t.trigger("click", a);
|
|
@@ -21129,15 +21138,15 @@ Pt.prototype._createHtml = function(e) {
|
|
|
21129
21138
|
pad: n
|
|
21130
21139
|
}), n;
|
|
21131
21140
|
};
|
|
21132
|
-
|
|
21141
|
+
jt.prototype.getPad = function(e) {
|
|
21133
21142
|
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"));
|
|
21134
21143
|
let t;
|
|
21135
21144
|
return this.isOpen() && Nx(this._current.target, e) ? t = this._current.html : t = this._createHtml(e), { html: t };
|
|
21136
21145
|
};
|
|
21137
|
-
|
|
21146
|
+
jt.prototype.close = function() {
|
|
21138
21147
|
this.isOpen() && (clearTimeout(this._timeout), this._container.innerHTML = "", this._eventBus.fire("contextPad.close", { current: this._current }), this._current = null);
|
|
21139
21148
|
};
|
|
21140
|
-
|
|
21149
|
+
jt.prototype.isOpen = function(e) {
|
|
21141
21150
|
var t = this._current;
|
|
21142
21151
|
if (!t) return !1;
|
|
21143
21152
|
if (!e) return !0;
|
|
@@ -21146,16 +21155,16 @@ Pt.prototype.isOpen = function(e) {
|
|
|
21146
21155
|
return n.includes(a);
|
|
21147
21156
|
}) : n === e;
|
|
21148
21157
|
};
|
|
21149
|
-
|
|
21158
|
+
jt.prototype.isShown = function() {
|
|
21150
21159
|
return this.isOpen() && un(this._current.html).has("open");
|
|
21151
21160
|
};
|
|
21152
|
-
|
|
21161
|
+
jt.prototype.show = function() {
|
|
21153
21162
|
this.isOpen() && (un(this._current.html).add("open"), this._updatePosition(), this._eventBus.fire("contextPad.show", { current: this._current }));
|
|
21154
21163
|
};
|
|
21155
|
-
|
|
21164
|
+
jt.prototype.hide = function() {
|
|
21156
21165
|
this.isOpen() && (un(this._current.html).remove("open"), this._eventBus.fire("contextPad.hide", { current: this._current }));
|
|
21157
21166
|
};
|
|
21158
|
-
|
|
21167
|
+
jt.prototype._getPosition = function(e) {
|
|
21159
21168
|
if (!ft(e) && nn(e)) {
|
|
21160
21169
|
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;
|
|
21161
21170
|
return {
|
|
@@ -21169,7 +21178,7 @@ Pt.prototype._getPosition = function(e) {
|
|
|
21169
21178
|
top: r.top - i.top
|
|
21170
21179
|
};
|
|
21171
21180
|
};
|
|
21172
|
-
|
|
21181
|
+
jt.prototype._updatePosition = function() {
|
|
21173
21182
|
const e = () => {
|
|
21174
21183
|
if (this.isOpen()) {
|
|
21175
21184
|
var t = this._current.html, n = this._getPosition(this._current.target);
|
|
@@ -21185,7 +21194,7 @@ Pt.prototype._updatePosition = function() {
|
|
|
21185
21194
|
};
|
|
21186
21195
|
this._scheduler.schedule(e, "ContextPad#_updatePosition");
|
|
21187
21196
|
};
|
|
21188
|
-
|
|
21197
|
+
jt.prototype._updateVisibility = function() {
|
|
21189
21198
|
const e = () => {
|
|
21190
21199
|
if (this.isOpen()) {
|
|
21191
21200
|
var t = this, n = this._current.target;
|
|
@@ -21196,7 +21205,7 @@ Pt.prototype._updateVisibility = function() {
|
|
|
21196
21205
|
};
|
|
21197
21206
|
this._scheduler.schedule(e, "ContextPad#_updateVisibility");
|
|
21198
21207
|
};
|
|
21199
|
-
|
|
21208
|
+
jt.prototype._getTargetBounds = function(e) {
|
|
21200
21209
|
var t = this;
|
|
21201
21210
|
return (ft(e) ? e : [e]).map(function(n) {
|
|
21202
21211
|
return t._canvas.getGraphics(n);
|
|
@@ -21230,7 +21239,7 @@ var Wx = {
|
|
|
21230
21239
|
Lx,
|
|
21231
21240
|
Hx
|
|
21232
21241
|
],
|
|
21233
|
-
contextPad: ["type",
|
|
21242
|
+
contextPad: ["type", jt]
|
|
21234
21243
|
}, Ux = 250;
|
|
21235
21244
|
function Ya(e) {
|
|
21236
21245
|
this._eventBus = e, this._tools = [], this._active = null;
|
|
@@ -21839,7 +21848,7 @@ var sC = {
|
|
|
21839
21848
|
move: ["type", dd],
|
|
21840
21849
|
movePreview: ["type", fd]
|
|
21841
21850
|
}, hd = ".djs-palette-toggle", pd = ".entry", cC = hd + ", " + pd, Dr = "djs-palette-", uC = "shown", $r = "open", pc = "two-column", dC = 1e3;
|
|
21842
|
-
function
|
|
21851
|
+
function Mt(e, t) {
|
|
21843
21852
|
this._eventBus = e, this._canvas = t;
|
|
21844
21853
|
var n = this;
|
|
21845
21854
|
e.on("tool-manager.update", function(a) {
|
|
@@ -21851,20 +21860,20 @@ function jt(e, t) {
|
|
|
21851
21860
|
n._diagramInitialized = !0, n._rebuild();
|
|
21852
21861
|
});
|
|
21853
21862
|
}
|
|
21854
|
-
|
|
21855
|
-
|
|
21863
|
+
Mt.$inject = ["eventBus", "canvas"];
|
|
21864
|
+
Mt.prototype.registerProvider = function(e, t) {
|
|
21856
21865
|
t || (t = e, e = dC), this._eventBus.on("palette.getProviders", e, function(n) {
|
|
21857
21866
|
n.providers.push(t);
|
|
21858
21867
|
}), this._rebuild();
|
|
21859
21868
|
};
|
|
21860
|
-
|
|
21869
|
+
Mt.prototype.getEntries = function() {
|
|
21861
21870
|
return this._getProviders().reduce(hC, {});
|
|
21862
21871
|
};
|
|
21863
|
-
|
|
21872
|
+
Mt.prototype._rebuild = function() {
|
|
21864
21873
|
this._diagramInitialized && this._getProviders().length && (this._container || this._init(), this._update());
|
|
21865
21874
|
};
|
|
21866
|
-
|
|
21867
|
-
var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = vn(
|
|
21875
|
+
Mt.prototype._init = function() {
|
|
21876
|
+
var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = vn(Mt.HTML_MARKUP);
|
|
21868
21877
|
n.appendChild(a), un(n).add(Dr + uC), ia.bind(a, cC, "click", function(o) {
|
|
21869
21878
|
var i = o.delegateTarget;
|
|
21870
21879
|
if (mf(i, hd)) return e.toggle();
|
|
@@ -21875,14 +21884,14 @@ jt.prototype._init = function() {
|
|
|
21875
21884
|
e.trigger("dragstart", o);
|
|
21876
21885
|
}), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", { container: a });
|
|
21877
21886
|
};
|
|
21878
|
-
|
|
21887
|
+
Mt.prototype._getProviders = function(e) {
|
|
21879
21888
|
var t = this._eventBus.createEvent({
|
|
21880
21889
|
type: "palette.getProviders",
|
|
21881
21890
|
providers: []
|
|
21882
21891
|
});
|
|
21883
21892
|
return this._eventBus.fire(t), t.providers;
|
|
21884
21893
|
};
|
|
21885
|
-
|
|
21894
|
+
Mt.prototype._toggleState = function(e) {
|
|
21886
21895
|
e = e || {};
|
|
21887
21896
|
var t = this._getParentContainer(), n = this._container, a = this._eventBus, o, i = un(n), r = un(t);
|
|
21888
21897
|
"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", {
|
|
@@ -21890,7 +21899,7 @@ jt.prototype._toggleState = function(e) {
|
|
|
21890
21899
|
open: this.isOpen()
|
|
21891
21900
|
});
|
|
21892
21901
|
};
|
|
21893
|
-
|
|
21902
|
+
Mt.prototype._update = function() {
|
|
21894
21903
|
var e = en(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
|
|
21895
21904
|
_c(e), ye(t, function(n, a) {
|
|
21896
21905
|
var o = n.group || "default", i = en("[data-group=" + Tl(o) + "]", e);
|
|
@@ -21902,11 +21911,11 @@ jt.prototype._update = function() {
|
|
|
21902
21911
|
}
|
|
21903
21912
|
}), this.open();
|
|
21904
21913
|
};
|
|
21905
|
-
|
|
21914
|
+
Mt.prototype.trigger = function(e, t, n) {
|
|
21906
21915
|
var a, o, i = t.delegateTarget || t.target;
|
|
21907
21916
|
return i ? (a = An(i, "data-action"), o = t.originalEvent || t, this.triggerEntry(a, e, o, n)) : t.preventDefault();
|
|
21908
21917
|
};
|
|
21909
|
-
|
|
21918
|
+
Mt.prototype.triggerEntry = function(e, t, n, a) {
|
|
21910
21919
|
var o = this._entries[e], i;
|
|
21911
21920
|
if (o && (i = o.action, this._eventBus.fire("palette.trigger", {
|
|
21912
21921
|
entry: o,
|
|
@@ -21918,28 +21927,28 @@ jt.prototype.triggerEntry = function(e, t, n, a) {
|
|
|
21918
21927
|
n.preventDefault();
|
|
21919
21928
|
}
|
|
21920
21929
|
};
|
|
21921
|
-
|
|
21930
|
+
Mt.prototype._layoutChanged = function() {
|
|
21922
21931
|
this._toggleState({});
|
|
21923
21932
|
};
|
|
21924
|
-
|
|
21933
|
+
Mt.prototype._needsCollapse = function(e, t) {
|
|
21925
21934
|
return e < Object.keys(t).length * 46 + 50;
|
|
21926
21935
|
};
|
|
21927
|
-
|
|
21936
|
+
Mt.prototype.close = function() {
|
|
21928
21937
|
this._toggleState({
|
|
21929
21938
|
open: !1,
|
|
21930
21939
|
twoColumn: !1
|
|
21931
21940
|
});
|
|
21932
21941
|
};
|
|
21933
|
-
|
|
21942
|
+
Mt.prototype.open = function() {
|
|
21934
21943
|
this._toggleState({ open: !0 });
|
|
21935
21944
|
};
|
|
21936
|
-
|
|
21945
|
+
Mt.prototype.toggle = function() {
|
|
21937
21946
|
this.isOpen() ? this.close() : this.open();
|
|
21938
21947
|
};
|
|
21939
|
-
|
|
21948
|
+
Mt.prototype.isActiveTool = function(e) {
|
|
21940
21949
|
return e && this._activeTool === e;
|
|
21941
21950
|
};
|
|
21942
|
-
|
|
21951
|
+
Mt.prototype.updateToolHighlight = function(e) {
|
|
21943
21952
|
var t, n;
|
|
21944
21953
|
this._toolsContainer || (t = en(".djs-palette-entries", this._container), this._toolsContainer = en("[data-group=tools]", t)), n = this._toolsContainer, ye(n.children, function(a) {
|
|
21945
21954
|
var o = a.getAttribute("data-action");
|
|
@@ -21949,13 +21958,13 @@ jt.prototype.updateToolHighlight = function(e) {
|
|
|
21949
21958
|
}
|
|
21950
21959
|
});
|
|
21951
21960
|
};
|
|
21952
|
-
|
|
21961
|
+
Mt.prototype.isOpen = function() {
|
|
21953
21962
|
return un(this._container).has($r);
|
|
21954
21963
|
};
|
|
21955
|
-
|
|
21964
|
+
Mt.prototype._getParentContainer = function() {
|
|
21956
21965
|
return this._canvas.getContainer();
|
|
21957
21966
|
};
|
|
21958
|
-
|
|
21967
|
+
Mt.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
|
|
21959
21968
|
function fC(e, t) {
|
|
21960
21969
|
var n = un(e);
|
|
21961
21970
|
(ft(t) ? t : t.split(/\s+/g)).forEach(function(a) {
|
|
@@ -21970,7 +21979,7 @@ function hC(e, t) {
|
|
|
21970
21979
|
}
|
|
21971
21980
|
var pC = {
|
|
21972
21981
|
__init__: ["palette"],
|
|
21973
|
-
palette: ["type",
|
|
21982
|
+
palette: ["type", Mt]
|
|
21974
21983
|
};
|
|
21975
21984
|
function gd(e, t, n, a) {
|
|
21976
21985
|
e.on("element.changed", function(o) {
|
|
@@ -22008,7 +22017,7 @@ function yC(e, t, n) {
|
|
|
22008
22017
|
}
|
|
22009
22018
|
function Ci(e, t, n) {
|
|
22010
22019
|
var a = t[e], o = n.min && n.min[e], i = n.max && n.max[e];
|
|
22011
|
-
return
|
|
22020
|
+
return Ht(o) && (a = (/top|left/.test(e) ? Fi : $i)(a, o)), Ht(i) && (a = (/top|left/.test(e) ? $i : Fi)(a, i)), a;
|
|
22012
22021
|
}
|
|
22013
22022
|
function mC(e, t) {
|
|
22014
22023
|
if (!t) return e;
|
|
@@ -22485,7 +22494,7 @@ Fn.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
|
22485
22494
|
return;
|
|
22486
22495
|
}
|
|
22487
22496
|
e.add("mid", no(a));
|
|
22488
|
-
}), !
|
|
22497
|
+
}), !Ht(t.x) || !Ht(t.y) || this._elementRegistry.get(t.id) && e.add("mid", no(t)), e;
|
|
22489
22498
|
};
|
|
22490
22499
|
Fn.prototype.getSnapTargets = function(e, t) {
|
|
22491
22500
|
return od(t).filter(function(n) {
|
|
@@ -22593,7 +22602,7 @@ xa.prototype.snap = function(e, t) {
|
|
|
22593
22602
|
xa.prototype._createLine = function(e) {
|
|
22594
22603
|
var t = this._canvas.getLayer("snap"), n = Xe("path");
|
|
22595
22604
|
return De(n, { d: "M0,0 L0,0" }), pt(n).add("djs-snap-line"), tt(t, n), { update: function(a) {
|
|
22596
|
-
|
|
22605
|
+
Ht(a) ? e === "horizontal" ? De(n, {
|
|
22597
22606
|
d: "M-100000," + a + " L+100000," + a,
|
|
22598
22607
|
display: ""
|
|
22599
22608
|
}) : De(n, {
|
|
@@ -23105,7 +23114,7 @@ var s1 = {
|
|
|
23105
23114
|
const z = j.createRoot();
|
|
23106
23115
|
A.setRootElement(z), d();
|
|
23107
23116
|
};
|
|
23108
|
-
|
|
23117
|
+
At(() => {
|
|
23109
23118
|
u();
|
|
23110
23119
|
});
|
|
23111
23120
|
const h = (T) => {
|