@a2simcode/ui 0.0.242 → 0.0.244
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 +2 -0
- package/dist/simcode-ui.es.js +146 -133
- package/dist/simcode-ui.umd.js +2 -2
- 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/table-panel.ts +1 -1
- package/docs/components/meta/table.ts +4 -4
- 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,14 @@ var Dp = class {
|
|
|
5572
5572
|
wrapContainer = null;
|
|
5573
5573
|
container = null;
|
|
5574
5574
|
currentValue = null;
|
|
5575
|
+
currentCompType = "";
|
|
5576
|
+
readValueFromDom(e) {
|
|
5577
|
+
const t = e.querySelector('input, textarea, [contenteditable="true"]');
|
|
5578
|
+
if (t) {
|
|
5579
|
+
if (t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement) return t.value;
|
|
5580
|
+
if (t.isContentEditable) return t.textContent;
|
|
5581
|
+
}
|
|
5582
|
+
}
|
|
5575
5583
|
async onStart(e) {
|
|
5576
5584
|
const { value: t } = e;
|
|
5577
5585
|
await this.createElement(e) && t != null && this.setValue(t);
|
|
@@ -5590,7 +5598,9 @@ var Dp = class {
|
|
|
5590
5598
|
return await this.createEditor(e);
|
|
5591
5599
|
}
|
|
5592
5600
|
async createEditor(e) {
|
|
5593
|
-
const { container: t, referencePosition: n, col: a, row: o, table: i } = e
|
|
5601
|
+
const { container: t, referencePosition: n, col: a, row: o, table: i } = e;
|
|
5602
|
+
this.currentCompType = "";
|
|
5603
|
+
const r = i.getBodyField(a, o), l = i.options?.columns || [], c = this.findColumnByField(l, r), s = c?._compConfig || {}, d = L(i.getCellOriginRecord(a, o) || {});
|
|
5594
5604
|
if (!t) return !1;
|
|
5595
5605
|
let f = c?._compType;
|
|
5596
5606
|
if (d.value._compTypeByRender && d.value._compTypeByRender[r] && (f = d.value._compTypeByRender[r], !Vc(f)))
|
|
@@ -5602,7 +5612,7 @@ var Dp = class {
|
|
|
5602
5612
|
const g = c?.style?.textAlign;
|
|
5603
5613
|
u.style.display = "flex", u.style.alignItems = "center", u.style.justifyContent = g === "center" ? "center" : g === "right" ? "flex-end" : "flex-start", u.style.paddingLeft = g === "center" ? "0" : "11px";
|
|
5604
5614
|
}
|
|
5605
|
-
this.wrapContainer = u, this.container = t, this.container && this.container.appendChild(u), s.autoFocus = !0, this.currentValue = void 0;
|
|
5615
|
+
this.wrapContainer = u, this.container = t, this.container && this.container.appendChild(u), s.autoFocus = !0, this.currentValue = void 0, this.currentCompType = f;
|
|
5606
5616
|
const p = Ei(Fc, {
|
|
5607
5617
|
id: r,
|
|
5608
5618
|
type: f,
|
|
@@ -5613,7 +5623,7 @@ var Dp = class {
|
|
|
5613
5623
|
isTableCell: !0,
|
|
5614
5624
|
class: "j-comp-editor",
|
|
5615
5625
|
"onUpdate:modelValue": (g) => {
|
|
5616
|
-
this.currentValue = g;
|
|
5626
|
+
console.log("j-comp-editor", g), this.currentValue = g;
|
|
5617
5627
|
},
|
|
5618
5628
|
colNum: a,
|
|
5619
5629
|
rowNum: o
|
|
@@ -5621,6 +5631,10 @@ var Dp = class {
|
|
|
5621
5631
|
return p.appContext = i._getAppContext(), p.appContext.provides = i._getProvides(), Ti(p, u), n?.rect && this.adjustPosition(n.rect), !0;
|
|
5622
5632
|
}
|
|
5623
5633
|
getValue() {
|
|
5634
|
+
if (this.wrapContainer && this.currentCompType === "j-input") {
|
|
5635
|
+
const e = this.readValueFromDom(this.wrapContainer);
|
|
5636
|
+
e !== void 0 && (this.currentValue = e);
|
|
5637
|
+
}
|
|
5624
5638
|
return this.currentValue;
|
|
5625
5639
|
}
|
|
5626
5640
|
setValue(e) {
|
|
@@ -6617,13 +6631,13 @@ var Yp = /* @__PURE__ */ me({
|
|
|
6617
6631
|
return `#${(U << 16 | ne << 8 | se).toString(16).padStart(6, "0")}`;
|
|
6618
6632
|
}, zt = () => {
|
|
6619
6633
|
let I = T;
|
|
6620
|
-
o.isPage && (I =
|
|
6634
|
+
o.isPage && (I = Bt.value + T);
|
|
6621
6635
|
let $ = En(String(I)) || 0;
|
|
6622
6636
|
return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
|
|
6623
6637
|
}, Ca = (I) => {
|
|
6624
6638
|
let $ = (Y, oe, U, ne) => {
|
|
6625
6639
|
const se = ne.getRecordIndexByCell(oe, U);
|
|
6626
|
-
return o.isPage && !I ?
|
|
6640
|
+
return o.isPage && !I ? Bt.value + se + 1 : se + 1;
|
|
6627
6641
|
};
|
|
6628
6642
|
return I && ($ = (Y, oe, U, ne) => ne.getRecordIndexByCell(oe, U) + 1), {
|
|
6629
6643
|
field: "__sequence__",
|
|
@@ -6885,7 +6899,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
6885
6899
|
}
|
|
6886
6900
|
}
|
|
6887
6901
|
}, lt = () => y ? y.records : [];
|
|
6888
|
-
|
|
6902
|
+
At(() => {
|
|
6889
6903
|
de();
|
|
6890
6904
|
}), Do(() => {
|
|
6891
6905
|
Ce(), Q(), document.removeEventListener("wheel", qe);
|
|
@@ -6897,14 +6911,14 @@ var Yp = /* @__PURE__ */ me({
|
|
|
6897
6911
|
set(I) {
|
|
6898
6912
|
i("update:tablePage", I);
|
|
6899
6913
|
}
|
|
6900
|
-
}),
|
|
6914
|
+
}), Pt = L(0), Vt = H({
|
|
6901
6915
|
get() {
|
|
6902
|
-
return
|
|
6916
|
+
return Pt.value !== 0 ? Pt.value : o.pageSize;
|
|
6903
6917
|
},
|
|
6904
6918
|
set(I) {
|
|
6905
|
-
|
|
6919
|
+
Pt.value = I, i("update:pageSize", I);
|
|
6906
6920
|
}
|
|
6907
|
-
}),
|
|
6921
|
+
}), Bt = H(() => (Ut.value - 1) * Vt.value), qt = (I, $) => {
|
|
6908
6922
|
i("loadPageData", {
|
|
6909
6923
|
rows: $,
|
|
6910
6924
|
page: I
|
|
@@ -6987,9 +7001,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
6987
7001
|
y.renderWithRecreateCells();
|
|
6988
7002
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
6989
7003
|
}, hn = (I) => {
|
|
6990
|
-
i("rowChange", I),
|
|
6991
|
-
y.renderWithRecreateCells();
|
|
6992
|
-
});
|
|
7004
|
+
i("rowChange", I), y.renderWithRecreateCells();
|
|
6993
7005
|
}, Xt = (I) => {
|
|
6994
7006
|
if (!y) return;
|
|
6995
7007
|
const $ = Fe();
|
|
@@ -7291,7 +7303,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7291
7303
|
_top: 0
|
|
7292
7304
|
}), g = L(0), b = L(), x = L(48), w = L(0), m = L(0);
|
|
7293
7305
|
at(() => a.visible, (P) => {
|
|
7294
|
-
g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls &&
|
|
7306
|
+
g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls && Ot(() => {
|
|
7295
7307
|
typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = K));
|
|
7296
7308
|
});
|
|
7297
7309
|
}, { immediate: !0 });
|
|
@@ -7316,7 +7328,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7316
7328
|
}, A = () => {
|
|
7317
7329
|
o("ok", S, k);
|
|
7318
7330
|
}, j = () => {
|
|
7319
|
-
p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (z.value = 0,
|
|
7331
|
+
p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (z.value = 0, Ot(() => {
|
|
7320
7332
|
F();
|
|
7321
7333
|
})), o("closed");
|
|
7322
7334
|
}, z = H({
|
|
@@ -7327,11 +7339,11 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7327
7339
|
h.value = P, o("update:stepActive", P);
|
|
7328
7340
|
}
|
|
7329
7341
|
}), O = () => {
|
|
7330
|
-
z.value > 0 && z.value--,
|
|
7342
|
+
z.value > 0 && z.value--, Ot(() => {
|
|
7331
7343
|
F();
|
|
7332
7344
|
});
|
|
7333
7345
|
}, M = async () => {
|
|
7334
|
-
await E() && (z.value < a.steps.length - 1 && (z.value += 1),
|
|
7346
|
+
await E() && (z.value < a.steps.length - 1 && (z.value += 1), Ot(() => {
|
|
7335
7347
|
F();
|
|
7336
7348
|
}));
|
|
7337
7349
|
}, E = async () => {
|
|
@@ -7600,7 +7612,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7600
7612
|
}, x = () => {
|
|
7601
7613
|
o("ok", m, y);
|
|
7602
7614
|
}, w = () => {
|
|
7603
|
-
a.isStep && (g.value = 0,
|
|
7615
|
+
a.isStep && (g.value = 0, Ot(() => {
|
|
7604
7616
|
S();
|
|
7605
7617
|
})), o("closed");
|
|
7606
7618
|
}, m = (A) => {
|
|
@@ -7608,11 +7620,11 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7608
7620
|
}, y = () => {
|
|
7609
7621
|
c.value = !1;
|
|
7610
7622
|
}, C = () => {
|
|
7611
|
-
g.value > 0 && g.value--,
|
|
7623
|
+
g.value > 0 && g.value--, Ot(() => {
|
|
7612
7624
|
S();
|
|
7613
7625
|
});
|
|
7614
7626
|
}, v = async () => {
|
|
7615
|
-
await _() && (g.value < a.steps.length - 1 && (g.value += 1),
|
|
7627
|
+
await _() && (g.value < a.steps.length - 1 && (g.value += 1), Ot(() => {
|
|
7616
7628
|
S();
|
|
7617
7629
|
}));
|
|
7618
7630
|
}, _ = async () => {
|
|
@@ -7862,7 +7874,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7862
7874
|
}, f = () => {
|
|
7863
7875
|
r.value = !1;
|
|
7864
7876
|
}, u = () => {
|
|
7865
|
-
a.isStep && (C.value = 0,
|
|
7877
|
+
a.isStep && (C.value = 0, Ot(() => {
|
|
7866
7878
|
k();
|
|
7867
7879
|
})), i("closed");
|
|
7868
7880
|
}, h = () => {
|
|
@@ -7879,11 +7891,11 @@ var Yp = /* @__PURE__ */ me({
|
|
|
7879
7891
|
y.value = A, i("update:stepActive", A);
|
|
7880
7892
|
}
|
|
7881
7893
|
}), v = () => {
|
|
7882
|
-
C.value > 0 && C.value--,
|
|
7894
|
+
C.value > 0 && C.value--, Ot(() => {
|
|
7883
7895
|
k();
|
|
7884
7896
|
});
|
|
7885
7897
|
}, _ = async () => {
|
|
7886
|
-
await S() && (C.value < a.steps.length - 1 && (C.value += 1),
|
|
7898
|
+
await S() && (C.value < a.steps.length - 1 && (C.value += 1), Ot(() => {
|
|
7887
7899
|
k();
|
|
7888
7900
|
}));
|
|
7889
7901
|
}, S = async () => {
|
|
@@ -9064,7 +9076,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
9064
9076
|
};
|
|
9065
9077
|
return at(() => a.option, (p) => {
|
|
9066
9078
|
d(p);
|
|
9067
|
-
}, { deep: !0 }),
|
|
9079
|
+
}, { deep: !0 }), At(() => {
|
|
9068
9080
|
s();
|
|
9069
9081
|
}), $o(() => {
|
|
9070
9082
|
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 +9098,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
9086
9098
|
const n = e.__vccOpts || e;
|
|
9087
9099
|
for (const [a, o] of t) n[a] = o;
|
|
9088
9100
|
return n;
|
|
9089
|
-
}, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-
|
|
9101
|
+
}, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-37f9a80b"]]), sv = Se(lv), cv = ["innerHTML"], uv = {
|
|
9090
9102
|
key: 1,
|
|
9091
9103
|
class: "j-barcode-error"
|
|
9092
9104
|
}, dv = /* @__PURE__ */ me({
|
|
@@ -10077,7 +10089,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
10077
10089
|
},
|
|
10078
10090
|
setup(e, { expose: t }) {
|
|
10079
10091
|
const n = e, a = H(() => ({ ...n })), o = L(), i = L(null), r = H(() => n.options);
|
|
10080
|
-
|
|
10092
|
+
At(() => {
|
|
10081
10093
|
n.animation && l();
|
|
10082
10094
|
}), at(() => n.decimals, () => {
|
|
10083
10095
|
i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
|
|
@@ -10949,8 +10961,8 @@ var Yp = /* @__PURE__ */ me({
|
|
|
10949
10961
|
}));
|
|
10950
10962
|
}), at(() => a.mode, () => {
|
|
10951
10963
|
l && f();
|
|
10952
|
-
}),
|
|
10953
|
-
await
|
|
10964
|
+
}), At(async () => {
|
|
10965
|
+
await Ot(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
|
|
10954
10966
|
l && l.dispatch({ scrollIntoView: !0 });
|
|
10955
10967
|
}), p.observe(i.value));
|
|
10956
10968
|
}), $o(() => {
|
|
@@ -11396,7 +11408,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
11396
11408
|
setup(e, { emit: t }) {
|
|
11397
11409
|
const n = e, a = t, { activeMenu: o, theme: i } = Wo(), r = L(), l = L(0);
|
|
11398
11410
|
let c = null;
|
|
11399
|
-
|
|
11411
|
+
At(() => {
|
|
11400
11412
|
typeof window < "u" && window.ResizeObserver && r.value && (c = new ResizeObserver(() => {
|
|
11401
11413
|
r.value && (l.value = r.value.offsetWidth);
|
|
11402
11414
|
}), c.observe(r.value));
|
|
@@ -11961,7 +11973,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
11961
11973
|
}
|
|
11962
11974
|
}
|
|
11963
11975
|
];
|
|
11964
|
-
|
|
11976
|
+
At(() => {
|
|
11965
11977
|
c.value = o.searchFieldList, l.value = o.searchList;
|
|
11966
11978
|
});
|
|
11967
11979
|
const f = H(() => o.columns.filter((C) => !C.children?.length && !C.config?.isNotFilter).map((C) => ({
|
|
@@ -12513,16 +12525,16 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12513
12525
|
It.value = ht.value?.clientWidth || 0;
|
|
12514
12526
|
};
|
|
12515
12527
|
let fn;
|
|
12516
|
-
|
|
12517
|
-
|
|
12528
|
+
At(() => {
|
|
12529
|
+
Ot(Lt), fn = new ResizeObserver(() => {
|
|
12518
12530
|
Lt();
|
|
12519
12531
|
}), ht.value && fn.observe(ht.value);
|
|
12520
12532
|
}), Do(() => {
|
|
12521
12533
|
fn?.disconnect();
|
|
12522
12534
|
}), at(() => rn.value, () => {
|
|
12523
|
-
|
|
12535
|
+
Ot(Lt);
|
|
12524
12536
|
}, { deep: !0 }), at(Ge, () => {
|
|
12525
|
-
|
|
12537
|
+
Ot(Lt);
|
|
12526
12538
|
});
|
|
12527
12539
|
const Zn = H(() => {
|
|
12528
12540
|
const de = rn.value;
|
|
@@ -12549,15 +12561,15 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12549
12561
|
notLabel: !0
|
|
12550
12562
|
},
|
|
12551
12563
|
children: []
|
|
12552
|
-
},
|
|
12553
|
-
let
|
|
12564
|
+
}, Pt = 28, Vt = [];
|
|
12565
|
+
let Bt = 0, qt = null;
|
|
12554
12566
|
for (let $t = 0; $t < de.length; $t++) {
|
|
12555
12567
|
const hn = de[$t], Xt = Dt(hn, $t);
|
|
12556
|
-
let mn =
|
|
12568
|
+
let mn = Bt;
|
|
12557
12569
|
qt !== null && (mn += Xt === qt ? -1 : 8), mn += xe(hn);
|
|
12558
|
-
const Ga = de.length - ($t + 1) > 0 ? (mn > 0 ? 8 : 0) +
|
|
12570
|
+
const Ga = de.length - ($t + 1) > 0 ? (mn > 0 ? 8 : 0) + Pt : 0;
|
|
12559
12571
|
if (mn + Ga <= vt)
|
|
12560
|
-
Vt.push(hn),
|
|
12572
|
+
Vt.push(hn), Bt = mn, qt = Xt;
|
|
12561
12573
|
else break;
|
|
12562
12574
|
}
|
|
12563
12575
|
const Fe = de.slice(Vt.length);
|
|
@@ -12641,9 +12653,9 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12641
12653
|
if (b.value) xe = de;
|
|
12642
12654
|
else if (!i.rowKey) xe = de;
|
|
12643
12655
|
else {
|
|
12644
|
-
const lt = new Map(de.map((
|
|
12645
|
-
c.forEach((
|
|
12646
|
-
const Vt = C(
|
|
12656
|
+
const lt = new Map(de.map((Pt) => [C(Pt), Pt])), Ut = new Map(p.value.map((Pt) => [C(Pt), Pt]));
|
|
12657
|
+
c.forEach((Pt) => {
|
|
12658
|
+
const Vt = C(Pt);
|
|
12647
12659
|
lt.has(Vt) ? Ut.set(Vt, lt.get(Vt)) : Ut.delete(Vt);
|
|
12648
12660
|
}), xe = Array.from(Ut.values());
|
|
12649
12661
|
}
|
|
@@ -12665,7 +12677,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12665
12677
|
}, Pe = () => p.value || [], Le = (de) => {
|
|
12666
12678
|
p.value = de, l.value?.setSelection?.(de);
|
|
12667
12679
|
}, ot = () => l.value;
|
|
12668
|
-
return
|
|
12680
|
+
return At(async () => {
|
|
12669
12681
|
i.immediate && await Ca();
|
|
12670
12682
|
}), t({
|
|
12671
12683
|
refreshData: Ca,
|
|
@@ -12677,7 +12689,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12677
12689
|
},
|
|
12678
12690
|
getTableRef: ot
|
|
12679
12691
|
}), (de, Ce) => {
|
|
12680
|
-
const vt = V("j-buttons"), Dt = V("j-icon"), xe = V("el-popover"), lt = V("el-tooltip"), Ut = V("el-input"),
|
|
12692
|
+
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
12693
|
return R(), D("div", { class: We(["j-table-panel-wrapper", {
|
|
12682
12694
|
fullscreen: Ge.value,
|
|
12683
12695
|
"no-padding": e.noPadding || Ge.value
|
|
@@ -12744,7 +12756,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12744
12756
|
persistent: !1,
|
|
12745
12757
|
onHide: ln
|
|
12746
12758
|
}, {
|
|
12747
|
-
reference: q(() => [Z(
|
|
12759
|
+
reference: q(() => [Z(Pt, {
|
|
12748
12760
|
icon: "mdi:filter-outline",
|
|
12749
12761
|
label: "筛选",
|
|
12750
12762
|
type: "text",
|
|
@@ -12785,7 +12797,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12785
12797
|
trigger: "click",
|
|
12786
12798
|
onShow: Me
|
|
12787
12799
|
}, {
|
|
12788
|
-
reference: q(() => [Z(
|
|
12800
|
+
reference: q(() => [Z(Pt, {
|
|
12789
12801
|
class: We({ active: P.value.length > 0 }),
|
|
12790
12802
|
type: "text",
|
|
12791
12803
|
icon: "mdi:sort"
|
|
@@ -12815,7 +12827,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12815
12827
|
trigger: "click",
|
|
12816
12828
|
onShow: ie
|
|
12817
12829
|
}, {
|
|
12818
|
-
reference: q(() => [Z(
|
|
12830
|
+
reference: q(() => [Z(Pt, {
|
|
12819
12831
|
class: We({ active: ee.value }),
|
|
12820
12832
|
type: "text",
|
|
12821
12833
|
icon: "mdi:table-headers-eye"
|
|
@@ -12836,7 +12848,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12836
12848
|
placement: "bottom",
|
|
12837
12849
|
content: J(a)("刷新")
|
|
12838
12850
|
}, {
|
|
12839
|
-
default: q(() => [Z(
|
|
12851
|
+
default: q(() => [Z(Pt, {
|
|
12840
12852
|
type: "text",
|
|
12841
12853
|
icon: "mdi:refresh",
|
|
12842
12854
|
onClick: G
|
|
@@ -12848,7 +12860,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12848
12860
|
placement: "bottom",
|
|
12849
12861
|
content: Ge.value ? J(a)("退出全屏") : J(a)("全屏")
|
|
12850
12862
|
}, {
|
|
12851
|
-
default: q(() => [Z(
|
|
12863
|
+
default: q(() => [Z(Pt, {
|
|
12852
12864
|
type: "text",
|
|
12853
12865
|
icon: Ge.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
|
|
12854
12866
|
onClick: it
|
|
@@ -12885,7 +12897,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
12885
12897
|
"page-size",
|
|
12886
12898
|
"page-sizes",
|
|
12887
12899
|
"total"
|
|
12888
|
-
])])) : ae("", !0)], 2)) : (R(), N(
|
|
12900
|
+
])])) : ae("", !0)], 2)) : (R(), N(Bt, {
|
|
12889
12901
|
key: 1,
|
|
12890
12902
|
ref_key: "tableRef",
|
|
12891
12903
|
ref: l,
|
|
@@ -13145,7 +13157,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
13145
13157
|
d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({
|
|
13146
13158
|
type: "j-tree",
|
|
13147
13159
|
config: a
|
|
13148
|
-
}), d.value = !1,
|
|
13160
|
+
}), d.value = !1, Ot(() => {
|
|
13149
13161
|
a.afterLoadData && a.afterLoadData(g.value || []);
|
|
13150
13162
|
});
|
|
13151
13163
|
}, x = (O, M = !0) => {
|
|
@@ -13181,7 +13193,7 @@ var Yp = /* @__PURE__ */ me({
|
|
|
13181
13193
|
}, A = L(""), j = (O, M) => {
|
|
13182
13194
|
A.value = O ? M.value : "";
|
|
13183
13195
|
}, z = (O, M, E) => a.allowDrop ? a.allowDrop(O, M, E) : !(E == "inner" && !M.data.canInner);
|
|
13184
|
-
return
|
|
13196
|
+
return At(async () => {
|
|
13185
13197
|
(a.immediate && a.loadData || a.dataType || a.dataCode) && await b();
|
|
13186
13198
|
}), at(() => a.dataCode || a.dataType, () => {
|
|
13187
13199
|
b();
|
|
@@ -13548,11 +13560,11 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13548
13560
|
});
|
|
13549
13561
|
}, te = async (G, ve) => {
|
|
13550
13562
|
const re = ++E, le = b.value;
|
|
13551
|
-
b.value = !1, le && await
|
|
13563
|
+
b.value = !1, le && await Ot();
|
|
13552
13564
|
const be = !!ve;
|
|
13553
13565
|
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
13566
|
re === E && (z = Jt(O), M = !0);
|
|
13555
|
-
}), b.value = !0, await
|
|
13567
|
+
}), b.value = !0, await Ot(), await X(), a.config?.codeInit) {
|
|
13556
13568
|
const Pe = a.config.codeInit;
|
|
13557
13569
|
let Le;
|
|
13558
13570
|
F?.raw === Pe ? Le = F.obj : (Le = JSON.parse(Pe), F = {
|
|
@@ -13873,7 +13885,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13873
13885
|
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
13886
|
});
|
|
13875
13887
|
}, c = (w) => {
|
|
13876
|
-
a.value = !1, o.splice(0, o.length), jo(i), jo(r), l(w, o),
|
|
13888
|
+
a.value = !1, o.splice(0, o.length), jo(i), jo(r), l(w, o), Ot(() => {
|
|
13877
13889
|
a.value = !0;
|
|
13878
13890
|
});
|
|
13879
13891
|
};
|
|
@@ -14151,7 +14163,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14151
14163
|
}, y = (v) => {
|
|
14152
14164
|
o("rowChange", v);
|
|
14153
14165
|
};
|
|
14154
|
-
|
|
14166
|
+
At(() => {
|
|
14155
14167
|
if (!f.value || !h.value) return;
|
|
14156
14168
|
const v = h.value, { initSortable: _ } = Ch(v, {
|
|
14157
14169
|
handle: ".j-input-rows-drag",
|
|
@@ -14309,7 +14321,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14309
14321
|
data: void 0
|
|
14310
14322
|
});
|
|
14311
14323
|
}, p = async ({ checked: w }) => {
|
|
14312
|
-
s.value && w && (await
|
|
14324
|
+
s.value && w && (await Ot(), await g());
|
|
14313
14325
|
}, g = async () => {
|
|
14314
14326
|
if (!l.value) return;
|
|
14315
14327
|
const w = l.value.getSelection();
|
|
@@ -14584,6 +14596,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14584
14596
|
emits: ["update:modelValue", "change"],
|
|
14585
14597
|
setup(e, { emit: t }) {
|
|
14586
14598
|
const n = e, a = t, o = (s, d) => {
|
|
14599
|
+
if (s === void 0) return s;
|
|
14587
14600
|
const f = typeof d;
|
|
14588
14601
|
if (f === typeof s) return s;
|
|
14589
14602
|
if (f === "number") {
|
|
@@ -14612,7 +14625,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14612
14625
|
}), c = (s) => {
|
|
14613
14626
|
a("change", s);
|
|
14614
14627
|
};
|
|
14615
|
-
return
|
|
14628
|
+
return At(() => {
|
|
14616
14629
|
n.autoFocus && !n.readonly && setTimeout(() => {
|
|
14617
14630
|
const s = l.value === i.value ? r.value : i.value;
|
|
14618
14631
|
l.value = s, c(s);
|
|
@@ -14856,7 +14869,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14856
14869
|
}
|
|
14857
14870
|
return u;
|
|
14858
14871
|
};
|
|
14859
|
-
return
|
|
14872
|
+
return At(() => {
|
|
14860
14873
|
const f = {
|
|
14861
14874
|
placeholder: n.placeholder || "请输入内容...",
|
|
14862
14875
|
readOnly: n.readonly,
|
|
@@ -14984,7 +14997,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14984
14997
|
x(m);
|
|
14985
14998
|
} })), p.search(b));
|
|
14986
14999
|
}
|
|
14987
|
-
}),
|
|
15000
|
+
}), At(() => {
|
|
14988
15001
|
f();
|
|
14989
15002
|
}), (b, x) => (R(), D("div", {
|
|
14990
15003
|
class: "j-map",
|
|
@@ -15295,9 +15308,9 @@ function Tr(e, t) {
|
|
|
15295
15308
|
return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
|
|
15296
15309
|
}
|
|
15297
15310
|
function el(e, t, n) {
|
|
15298
|
-
|
|
15311
|
+
Ht(t) && (n = t, t = null), t || (t = {});
|
|
15299
15312
|
const a = Xe("path", t);
|
|
15300
|
-
return
|
|
15313
|
+
return Ht(n) && (a.dataset.cornerRadius = String(n)), Gc(a, e);
|
|
15301
15314
|
}
|
|
15302
15315
|
function Gc(e, t) {
|
|
15303
15316
|
return De(e, { d: Uo(A0(t, parseInt(e.dataset.cornerRadius, 10) || 0)) }), e;
|
|
@@ -15896,7 +15909,7 @@ function ou(e, t) {
|
|
|
15896
15909
|
var n = {};
|
|
15897
15910
|
return ye(e, function(a) {
|
|
15898
15911
|
var o = a;
|
|
15899
|
-
o.waypoints && (o = Dn(o)), !
|
|
15912
|
+
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
15913
|
}), n;
|
|
15901
15914
|
}
|
|
15902
15915
|
function J0(e) {
|
|
@@ -16022,7 +16035,7 @@ function iu(e, t, n, a, o) {
|
|
|
16022
16035
|
hints: {},
|
|
16023
16036
|
shape: f
|
|
16024
16037
|
}, d || {}), ye(s, function(h) {
|
|
16025
|
-
|
|
16038
|
+
Ht(h.x) || (h.x = 0), Ht(h.y) || (h.y = 0);
|
|
16026
16039
|
});
|
|
16027
16040
|
var u = Dn(_n(s, function(h) {
|
|
16028
16041
|
return !h.hidden;
|
|
@@ -17069,7 +17082,7 @@ function Hw(e, t) {
|
|
|
17069
17082
|
};
|
|
17070
17083
|
}
|
|
17071
17084
|
Gt.prototype.on = function(e, t, n, a, o, i) {
|
|
17072
|
-
if ((Ln(t) ||
|
|
17085
|
+
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
17086
|
ft(e) || (e = [e]);
|
|
17074
17087
|
var r = this._eventBus;
|
|
17075
17088
|
ye(e, function(l) {
|
|
@@ -17094,7 +17107,7 @@ Gt.prototype.revert = Kn("revert");
|
|
|
17094
17107
|
Gt.prototype.reverted = Kn("reverted");
|
|
17095
17108
|
function Kn(e) {
|
|
17096
17109
|
return function(n, a, o, i, r) {
|
|
17097
|
-
(Ln(n) ||
|
|
17110
|
+
(Ln(n) || Ht(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
|
|
17098
17111
|
};
|
|
17099
17112
|
}
|
|
17100
17113
|
var Ow = 250, Rs = 1400;
|
|
@@ -17425,7 +17438,7 @@ hl.$inject = ["modeling"];
|
|
|
17425
17438
|
hl.prototype.preExecute = function(e) {
|
|
17426
17439
|
var t = e.elements, n = e.parent, a = e.parentIndex, o = e.position, i = e.hints, r = this._modeling;
|
|
17427
17440
|
ye(t, function(d) {
|
|
17428
|
-
|
|
17441
|
+
Ht(d.x) || (d.x = 0), Ht(d.y) || (d.y = 0);
|
|
17429
17442
|
});
|
|
17430
17443
|
var l = Dn(_n(t, function(d) {
|
|
17431
17444
|
return !d.hidden;
|
|
@@ -17444,11 +17457,11 @@ hl.prototype.preExecute = function(e) {
|
|
|
17444
17457
|
var c = N0(t), s = {};
|
|
17445
17458
|
ye(t, function(d) {
|
|
17446
17459
|
if (nn(d)) {
|
|
17447
|
-
s[d.id] =
|
|
17460
|
+
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
17461
|
return;
|
|
17449
17462
|
}
|
|
17450
17463
|
var f = $e({}, i);
|
|
17451
|
-
c.indexOf(d) === -1 && (f.autoResize = !1), io(d) && (f = xf(f, ["attach"])), s[d.id] =
|
|
17464
|
+
c.indexOf(d) === -1 && (f.autoResize = !1), io(d) && (f = xf(f, ["attach"])), s[d.id] = Ht(a) ? r.createShape(d, Mi(d, [
|
|
17452
17465
|
"x",
|
|
17453
17466
|
"y",
|
|
17454
17467
|
"width",
|
|
@@ -19943,7 +19956,7 @@ var Yu = { myImporter: ["type", ma] }, Ju = (e) => {
|
|
|
19943
19956
|
const k = S.createRoot();
|
|
19944
19957
|
_.setRootElement(k), d();
|
|
19945
19958
|
};
|
|
19946
|
-
|
|
19959
|
+
At(() => {
|
|
19947
19960
|
u();
|
|
19948
19961
|
});
|
|
19949
19962
|
const h = (v) => {
|
|
@@ -21003,16 +21016,16 @@ function Ix() {
|
|
|
21003
21016
|
}), e;
|
|
21004
21017
|
}
|
|
21005
21018
|
var Lx = { scheduler: ["type", go] }, zx = "djs-element-hidden", _i = ".entry", Dx = 1e3, ac = 8, $x = 300;
|
|
21006
|
-
function
|
|
21019
|
+
function jt(e, t, n, a) {
|
|
21007
21020
|
this._canvas = e, this._elementRegistry = t, this._eventBus = n, this._scheduler = a, this._current = null, this._init();
|
|
21008
21021
|
}
|
|
21009
|
-
|
|
21022
|
+
jt.$inject = [
|
|
21010
21023
|
"canvas",
|
|
21011
21024
|
"elementRegistry",
|
|
21012
21025
|
"eventBus",
|
|
21013
21026
|
"scheduler"
|
|
21014
21027
|
];
|
|
21015
|
-
|
|
21028
|
+
jt.prototype._init = function() {
|
|
21016
21029
|
var e = this;
|
|
21017
21030
|
this._eventBus.on("selection.changed", function(t) {
|
|
21018
21031
|
var n = t.newSelection, a = n.length ? n.length === 1 ? n[0] : n : null;
|
|
@@ -21040,16 +21053,16 @@ Pt.prototype._init = function() {
|
|
|
21040
21053
|
}
|
|
21041
21054
|
}), this._container = this._createContainer();
|
|
21042
21055
|
};
|
|
21043
|
-
|
|
21056
|
+
jt.prototype._createContainer = function() {
|
|
21044
21057
|
var e = vn('<div class="djs-context-pad-parent"></div>');
|
|
21045
21058
|
return this._canvas.getContainer().appendChild(e), e;
|
|
21046
21059
|
};
|
|
21047
|
-
|
|
21060
|
+
jt.prototype.registerProvider = function(e, t) {
|
|
21048
21061
|
t || (t = e, e = Dx), this._eventBus.on("contextPad.getProviders", e, function(n) {
|
|
21049
21062
|
n.providers.push(t);
|
|
21050
21063
|
});
|
|
21051
21064
|
};
|
|
21052
|
-
|
|
21065
|
+
jt.prototype.getEntries = function(e) {
|
|
21053
21066
|
var t = this._getProviders(), n = ft(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
|
|
21054
21067
|
return ye(t, function(o) {
|
|
21055
21068
|
if (Ln(o[n])) {
|
|
@@ -21060,7 +21073,7 @@ Pt.prototype.getEntries = function(e) {
|
|
|
21060
21073
|
}
|
|
21061
21074
|
}), a;
|
|
21062
21075
|
};
|
|
21063
|
-
|
|
21076
|
+
jt.prototype.trigger = function(e, t, n) {
|
|
21064
21077
|
var a = this, o, i, r = t.delegateTarget || t.target;
|
|
21065
21078
|
if (!r) return t.preventDefault();
|
|
21066
21079
|
if (o = An(r, "data-action"), i = t.originalEvent || t, e === "mouseover") {
|
|
@@ -21074,7 +21087,7 @@ Pt.prototype.trigger = function(e, t, n) {
|
|
|
21074
21087
|
}
|
|
21075
21088
|
return this.triggerEntry(o, e, i, n);
|
|
21076
21089
|
};
|
|
21077
|
-
|
|
21090
|
+
jt.prototype.triggerEntry = function(e, t, n, a) {
|
|
21078
21091
|
if (this.isShown()) {
|
|
21079
21092
|
var o = this._current.target, i = this._current.entries[e];
|
|
21080
21093
|
if (i) {
|
|
@@ -21091,17 +21104,17 @@ Pt.prototype.triggerEntry = function(e, t, n, a) {
|
|
|
21091
21104
|
}
|
|
21092
21105
|
}
|
|
21093
21106
|
};
|
|
21094
|
-
|
|
21107
|
+
jt.prototype.open = function(e, t) {
|
|
21095
21108
|
!t && this.isOpen(e) || (this.close(), this._updateAndOpen(e));
|
|
21096
21109
|
};
|
|
21097
|
-
|
|
21110
|
+
jt.prototype._getProviders = function() {
|
|
21098
21111
|
var e = this._eventBus.createEvent({
|
|
21099
21112
|
type: "contextPad.getProviders",
|
|
21100
21113
|
providers: []
|
|
21101
21114
|
});
|
|
21102
21115
|
return this._eventBus.fire(e), e.providers;
|
|
21103
21116
|
};
|
|
21104
|
-
|
|
21117
|
+
jt.prototype._updateAndOpen = function(e) {
|
|
21105
21118
|
var t = this.getEntries(e), n = this._createHtml(e), a;
|
|
21106
21119
|
ye(t, function(o, i) {
|
|
21107
21120
|
var r = o.group || "default", l = vn(o.html || '<div class="entry" draggable="true"></div>'), c;
|
|
@@ -21112,7 +21125,7 @@ Pt.prototype._updateAndOpen = function(e) {
|
|
|
21112
21125
|
target: e
|
|
21113
21126
|
}, this._updatePosition(), this._updateVisibility(), this._eventBus.fire("contextPad.open", { current: this._current });
|
|
21114
21127
|
};
|
|
21115
|
-
|
|
21128
|
+
jt.prototype._createHtml = function(e) {
|
|
21116
21129
|
var t = this, n = vn('<div class="djs-context-pad"></div>');
|
|
21117
21130
|
return ia.bind(n, _i, "click", function(a) {
|
|
21118
21131
|
t.trigger("click", a);
|
|
@@ -21129,15 +21142,15 @@ Pt.prototype._createHtml = function(e) {
|
|
|
21129
21142
|
pad: n
|
|
21130
21143
|
}), n;
|
|
21131
21144
|
};
|
|
21132
|
-
|
|
21145
|
+
jt.prototype.getPad = function(e) {
|
|
21133
21146
|
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
21147
|
let t;
|
|
21135
21148
|
return this.isOpen() && Nx(this._current.target, e) ? t = this._current.html : t = this._createHtml(e), { html: t };
|
|
21136
21149
|
};
|
|
21137
|
-
|
|
21150
|
+
jt.prototype.close = function() {
|
|
21138
21151
|
this.isOpen() && (clearTimeout(this._timeout), this._container.innerHTML = "", this._eventBus.fire("contextPad.close", { current: this._current }), this._current = null);
|
|
21139
21152
|
};
|
|
21140
|
-
|
|
21153
|
+
jt.prototype.isOpen = function(e) {
|
|
21141
21154
|
var t = this._current;
|
|
21142
21155
|
if (!t) return !1;
|
|
21143
21156
|
if (!e) return !0;
|
|
@@ -21146,16 +21159,16 @@ Pt.prototype.isOpen = function(e) {
|
|
|
21146
21159
|
return n.includes(a);
|
|
21147
21160
|
}) : n === e;
|
|
21148
21161
|
};
|
|
21149
|
-
|
|
21162
|
+
jt.prototype.isShown = function() {
|
|
21150
21163
|
return this.isOpen() && un(this._current.html).has("open");
|
|
21151
21164
|
};
|
|
21152
|
-
|
|
21165
|
+
jt.prototype.show = function() {
|
|
21153
21166
|
this.isOpen() && (un(this._current.html).add("open"), this._updatePosition(), this._eventBus.fire("contextPad.show", { current: this._current }));
|
|
21154
21167
|
};
|
|
21155
|
-
|
|
21168
|
+
jt.prototype.hide = function() {
|
|
21156
21169
|
this.isOpen() && (un(this._current.html).remove("open"), this._eventBus.fire("contextPad.hide", { current: this._current }));
|
|
21157
21170
|
};
|
|
21158
|
-
|
|
21171
|
+
jt.prototype._getPosition = function(e) {
|
|
21159
21172
|
if (!ft(e) && nn(e)) {
|
|
21160
21173
|
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
21174
|
return {
|
|
@@ -21169,7 +21182,7 @@ Pt.prototype._getPosition = function(e) {
|
|
|
21169
21182
|
top: r.top - i.top
|
|
21170
21183
|
};
|
|
21171
21184
|
};
|
|
21172
|
-
|
|
21185
|
+
jt.prototype._updatePosition = function() {
|
|
21173
21186
|
const e = () => {
|
|
21174
21187
|
if (this.isOpen()) {
|
|
21175
21188
|
var t = this._current.html, n = this._getPosition(this._current.target);
|
|
@@ -21185,7 +21198,7 @@ Pt.prototype._updatePosition = function() {
|
|
|
21185
21198
|
};
|
|
21186
21199
|
this._scheduler.schedule(e, "ContextPad#_updatePosition");
|
|
21187
21200
|
};
|
|
21188
|
-
|
|
21201
|
+
jt.prototype._updateVisibility = function() {
|
|
21189
21202
|
const e = () => {
|
|
21190
21203
|
if (this.isOpen()) {
|
|
21191
21204
|
var t = this, n = this._current.target;
|
|
@@ -21196,7 +21209,7 @@ Pt.prototype._updateVisibility = function() {
|
|
|
21196
21209
|
};
|
|
21197
21210
|
this._scheduler.schedule(e, "ContextPad#_updateVisibility");
|
|
21198
21211
|
};
|
|
21199
|
-
|
|
21212
|
+
jt.prototype._getTargetBounds = function(e) {
|
|
21200
21213
|
var t = this;
|
|
21201
21214
|
return (ft(e) ? e : [e]).map(function(n) {
|
|
21202
21215
|
return t._canvas.getGraphics(n);
|
|
@@ -21230,7 +21243,7 @@ var Wx = {
|
|
|
21230
21243
|
Lx,
|
|
21231
21244
|
Hx
|
|
21232
21245
|
],
|
|
21233
|
-
contextPad: ["type",
|
|
21246
|
+
contextPad: ["type", jt]
|
|
21234
21247
|
}, Ux = 250;
|
|
21235
21248
|
function Ya(e) {
|
|
21236
21249
|
this._eventBus = e, this._tools = [], this._active = null;
|
|
@@ -21839,7 +21852,7 @@ var sC = {
|
|
|
21839
21852
|
move: ["type", dd],
|
|
21840
21853
|
movePreview: ["type", fd]
|
|
21841
21854
|
}, hd = ".djs-palette-toggle", pd = ".entry", cC = hd + ", " + pd, Dr = "djs-palette-", uC = "shown", $r = "open", pc = "two-column", dC = 1e3;
|
|
21842
|
-
function
|
|
21855
|
+
function Mt(e, t) {
|
|
21843
21856
|
this._eventBus = e, this._canvas = t;
|
|
21844
21857
|
var n = this;
|
|
21845
21858
|
e.on("tool-manager.update", function(a) {
|
|
@@ -21851,20 +21864,20 @@ function jt(e, t) {
|
|
|
21851
21864
|
n._diagramInitialized = !0, n._rebuild();
|
|
21852
21865
|
});
|
|
21853
21866
|
}
|
|
21854
|
-
|
|
21855
|
-
|
|
21867
|
+
Mt.$inject = ["eventBus", "canvas"];
|
|
21868
|
+
Mt.prototype.registerProvider = function(e, t) {
|
|
21856
21869
|
t || (t = e, e = dC), this._eventBus.on("palette.getProviders", e, function(n) {
|
|
21857
21870
|
n.providers.push(t);
|
|
21858
21871
|
}), this._rebuild();
|
|
21859
21872
|
};
|
|
21860
|
-
|
|
21873
|
+
Mt.prototype.getEntries = function() {
|
|
21861
21874
|
return this._getProviders().reduce(hC, {});
|
|
21862
21875
|
};
|
|
21863
|
-
|
|
21876
|
+
Mt.prototype._rebuild = function() {
|
|
21864
21877
|
this._diagramInitialized && this._getProviders().length && (this._container || this._init(), this._update());
|
|
21865
21878
|
};
|
|
21866
|
-
|
|
21867
|
-
var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = vn(
|
|
21879
|
+
Mt.prototype._init = function() {
|
|
21880
|
+
var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = vn(Mt.HTML_MARKUP);
|
|
21868
21881
|
n.appendChild(a), un(n).add(Dr + uC), ia.bind(a, cC, "click", function(o) {
|
|
21869
21882
|
var i = o.delegateTarget;
|
|
21870
21883
|
if (mf(i, hd)) return e.toggle();
|
|
@@ -21875,14 +21888,14 @@ jt.prototype._init = function() {
|
|
|
21875
21888
|
e.trigger("dragstart", o);
|
|
21876
21889
|
}), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", { container: a });
|
|
21877
21890
|
};
|
|
21878
|
-
|
|
21891
|
+
Mt.prototype._getProviders = function(e) {
|
|
21879
21892
|
var t = this._eventBus.createEvent({
|
|
21880
21893
|
type: "palette.getProviders",
|
|
21881
21894
|
providers: []
|
|
21882
21895
|
});
|
|
21883
21896
|
return this._eventBus.fire(t), t.providers;
|
|
21884
21897
|
};
|
|
21885
|
-
|
|
21898
|
+
Mt.prototype._toggleState = function(e) {
|
|
21886
21899
|
e = e || {};
|
|
21887
21900
|
var t = this._getParentContainer(), n = this._container, a = this._eventBus, o, i = un(n), r = un(t);
|
|
21888
21901
|
"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 +21903,7 @@ jt.prototype._toggleState = function(e) {
|
|
|
21890
21903
|
open: this.isOpen()
|
|
21891
21904
|
});
|
|
21892
21905
|
};
|
|
21893
|
-
|
|
21906
|
+
Mt.prototype._update = function() {
|
|
21894
21907
|
var e = en(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
|
|
21895
21908
|
_c(e), ye(t, function(n, a) {
|
|
21896
21909
|
var o = n.group || "default", i = en("[data-group=" + Tl(o) + "]", e);
|
|
@@ -21902,11 +21915,11 @@ jt.prototype._update = function() {
|
|
|
21902
21915
|
}
|
|
21903
21916
|
}), this.open();
|
|
21904
21917
|
};
|
|
21905
|
-
|
|
21918
|
+
Mt.prototype.trigger = function(e, t, n) {
|
|
21906
21919
|
var a, o, i = t.delegateTarget || t.target;
|
|
21907
21920
|
return i ? (a = An(i, "data-action"), o = t.originalEvent || t, this.triggerEntry(a, e, o, n)) : t.preventDefault();
|
|
21908
21921
|
};
|
|
21909
|
-
|
|
21922
|
+
Mt.prototype.triggerEntry = function(e, t, n, a) {
|
|
21910
21923
|
var o = this._entries[e], i;
|
|
21911
21924
|
if (o && (i = o.action, this._eventBus.fire("palette.trigger", {
|
|
21912
21925
|
entry: o,
|
|
@@ -21918,28 +21931,28 @@ jt.prototype.triggerEntry = function(e, t, n, a) {
|
|
|
21918
21931
|
n.preventDefault();
|
|
21919
21932
|
}
|
|
21920
21933
|
};
|
|
21921
|
-
|
|
21934
|
+
Mt.prototype._layoutChanged = function() {
|
|
21922
21935
|
this._toggleState({});
|
|
21923
21936
|
};
|
|
21924
|
-
|
|
21937
|
+
Mt.prototype._needsCollapse = function(e, t) {
|
|
21925
21938
|
return e < Object.keys(t).length * 46 + 50;
|
|
21926
21939
|
};
|
|
21927
|
-
|
|
21940
|
+
Mt.prototype.close = function() {
|
|
21928
21941
|
this._toggleState({
|
|
21929
21942
|
open: !1,
|
|
21930
21943
|
twoColumn: !1
|
|
21931
21944
|
});
|
|
21932
21945
|
};
|
|
21933
|
-
|
|
21946
|
+
Mt.prototype.open = function() {
|
|
21934
21947
|
this._toggleState({ open: !0 });
|
|
21935
21948
|
};
|
|
21936
|
-
|
|
21949
|
+
Mt.prototype.toggle = function() {
|
|
21937
21950
|
this.isOpen() ? this.close() : this.open();
|
|
21938
21951
|
};
|
|
21939
|
-
|
|
21952
|
+
Mt.prototype.isActiveTool = function(e) {
|
|
21940
21953
|
return e && this._activeTool === e;
|
|
21941
21954
|
};
|
|
21942
|
-
|
|
21955
|
+
Mt.prototype.updateToolHighlight = function(e) {
|
|
21943
21956
|
var t, n;
|
|
21944
21957
|
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
21958
|
var o = a.getAttribute("data-action");
|
|
@@ -21949,13 +21962,13 @@ jt.prototype.updateToolHighlight = function(e) {
|
|
|
21949
21962
|
}
|
|
21950
21963
|
});
|
|
21951
21964
|
};
|
|
21952
|
-
|
|
21965
|
+
Mt.prototype.isOpen = function() {
|
|
21953
21966
|
return un(this._container).has($r);
|
|
21954
21967
|
};
|
|
21955
|
-
|
|
21968
|
+
Mt.prototype._getParentContainer = function() {
|
|
21956
21969
|
return this._canvas.getContainer();
|
|
21957
21970
|
};
|
|
21958
|
-
|
|
21971
|
+
Mt.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
|
|
21959
21972
|
function fC(e, t) {
|
|
21960
21973
|
var n = un(e);
|
|
21961
21974
|
(ft(t) ? t : t.split(/\s+/g)).forEach(function(a) {
|
|
@@ -21970,7 +21983,7 @@ function hC(e, t) {
|
|
|
21970
21983
|
}
|
|
21971
21984
|
var pC = {
|
|
21972
21985
|
__init__: ["palette"],
|
|
21973
|
-
palette: ["type",
|
|
21986
|
+
palette: ["type", Mt]
|
|
21974
21987
|
};
|
|
21975
21988
|
function gd(e, t, n, a) {
|
|
21976
21989
|
e.on("element.changed", function(o) {
|
|
@@ -22008,7 +22021,7 @@ function yC(e, t, n) {
|
|
|
22008
22021
|
}
|
|
22009
22022
|
function Ci(e, t, n) {
|
|
22010
22023
|
var a = t[e], o = n.min && n.min[e], i = n.max && n.max[e];
|
|
22011
|
-
return
|
|
22024
|
+
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
22025
|
}
|
|
22013
22026
|
function mC(e, t) {
|
|
22014
22027
|
if (!t) return e;
|
|
@@ -22485,7 +22498,7 @@ Fn.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
|
22485
22498
|
return;
|
|
22486
22499
|
}
|
|
22487
22500
|
e.add("mid", no(a));
|
|
22488
|
-
}), !
|
|
22501
|
+
}), !Ht(t.x) || !Ht(t.y) || this._elementRegistry.get(t.id) && e.add("mid", no(t)), e;
|
|
22489
22502
|
};
|
|
22490
22503
|
Fn.prototype.getSnapTargets = function(e, t) {
|
|
22491
22504
|
return od(t).filter(function(n) {
|
|
@@ -22593,7 +22606,7 @@ xa.prototype.snap = function(e, t) {
|
|
|
22593
22606
|
xa.prototype._createLine = function(e) {
|
|
22594
22607
|
var t = this._canvas.getLayer("snap"), n = Xe("path");
|
|
22595
22608
|
return De(n, { d: "M0,0 L0,0" }), pt(n).add("djs-snap-line"), tt(t, n), { update: function(a) {
|
|
22596
|
-
|
|
22609
|
+
Ht(a) ? e === "horizontal" ? De(n, {
|
|
22597
22610
|
d: "M-100000," + a + " L+100000," + a,
|
|
22598
22611
|
display: ""
|
|
22599
22612
|
}) : De(n, {
|
|
@@ -23105,7 +23118,7 @@ var s1 = {
|
|
|
23105
23118
|
const z = j.createRoot();
|
|
23106
23119
|
A.setRootElement(z), d();
|
|
23107
23120
|
};
|
|
23108
|
-
|
|
23121
|
+
At(() => {
|
|
23109
23122
|
u();
|
|
23110
23123
|
});
|
|
23111
23124
|
const h = (T) => {
|