@a2simcode/ui 0.0.239 → 0.0.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/inject-provide.d.ts +1 -1
- package/dist/simcode-ui.es.js +340 -338
- 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 -165
- package/docs/components/meta/input-cards.ts +112 -112
- package/docs/components/meta/input-code.ts +161 -151
- 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 +266 -260
- package/docs/components/meta/table.ts +403 -403
- 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 +282 -282
- package/docs/components/table.md +435 -435
- 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/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/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 Me, computed as H, createBlock as N, createCommentVNode as ne, createElementBlock as D, createElementVNode as B, createSlots as Yn, createTextVNode as Wn, createVNode as Z, defineComponent as ye, getCurrentInstance as mc, guardReactiveProps as
|
|
1
|
+
import { Fragment as Me, computed as H, createBlock as N, createCommentVNode as ne, createElementBlock as D, createElementVNode as B, createSlots as Yn, createTextVNode as Wn, createVNode as Z, defineComponent as ye, getCurrentInstance as mc, guardReactiveProps as Lo, h as Ei, inject as jd, mergeModels as Ho, mergeProps as Ue, nextTick as Et, normalizeClass as We, normalizeProps as ja, normalizeStyle as ce, onBeforeUnmount as zo, onMounted as Tt, onUnmounted as Do, openBlock as R, provide as Pd, reactive as ra, ref as L, render as Ti, renderList as Ie, renderSlot as et, resolveComponent as V, resolveDirective as $o, resolveDynamicComponent as Ba, shallowRef as Fo, toDisplayString as xe, unref as J, useModel as Oo, useSlots as Bd, useTemplateRef as Aa, vShow as br, watch as it, watchEffect as bc, withCtx as q, withDirectives as la, withKeys as wr, withModifiers as Xt } from "vue";
|
|
2
2
|
import { Icon as zl, getIcon as Ta } from "@iconify/vue";
|
|
3
3
|
import eo from "dayjs";
|
|
4
4
|
import Hd from "sortablejs";
|
|
@@ -29,8 +29,8 @@ import gf from "async-validator";
|
|
|
29
29
|
import { createEditor as vf, createToolbar as yf } from "@wangeditor/editor";
|
|
30
30
|
import wc from "diagram-js";
|
|
31
31
|
import { assignStyle as Vi, attr as Rn, classes as sn, clear as _c, closest as Nr, delegate as aa, domify as fn, event as ut, matches as mf, query as Zt, queryAll as _r, remove as xr } from "min-dom";
|
|
32
|
-
import { assign as De, bind as Wr, debounce as bf, every as Ur, filter as mn, find as On, flatten as wf, forEach as ge, groupBy as Yr, has as xc, isArray as ft, isDefined as kn, isFunction as In, isNil as $l, isNumber as
|
|
33
|
-
import { append as tt, attr as ze, classes as pt, clear as Gr, clone as Cc, create as Xe, createTransform as
|
|
32
|
+
import { assign as De, bind as Wr, debounce as bf, every as Ur, filter as mn, find as On, flatten as wf, forEach as ge, groupBy as Yr, has as xc, isArray as ft, isDefined as kn, isFunction as In, isNil as $l, isNumber as Ht, isObject as bn, isString as Cr, isUndefined as _f, map as Vo, matchPattern as Ai, omit as xf, pick as Mi, reduce as Sr, size as Cf, some as Sf, sortBy as Io, uniqueBy as kf, values as Jr, without as Rf } from "min-dash";
|
|
33
|
+
import { append as tt, attr as ze, classes as pt, clear as Gr, clone as Cc, create as Xe, createTransform as Ao, remove as yn, transform as Kr } from "tiny-svg";
|
|
34
34
|
import Ha from "inherits";
|
|
35
35
|
import Ef from "diagram-js-direct-editing";
|
|
36
36
|
var Tf = Object.create, Sc = Object.defineProperty, Af = Object.getOwnPropertyDescriptor, Mf = Object.getOwnPropertyNames, jf = Object.getPrototypeOf, Pf = Object.prototype.hasOwnProperty, cn = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Bf = (e, t, n, a) => {
|
|
@@ -157,7 +157,7 @@ var en = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
157
157
|
setup(e, { expose: t, emit: n }) {
|
|
158
158
|
const a = e, o = n, i = (u) => {
|
|
159
159
|
a.isNotStopClick || u.stopPropagation(), !d.value && !a.disabled && (o("click", u), a.href && window.open(a.href, a.target ? a.target : "_self"));
|
|
160
|
-
}, r =
|
|
160
|
+
}, r = Fo(null), l = () => {
|
|
161
161
|
r.value?.focus();
|
|
162
162
|
}, c = () => {
|
|
163
163
|
r.value?.blur();
|
|
@@ -219,7 +219,7 @@ var en = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
219
219
|
], 10, Lf));
|
|
220
220
|
}
|
|
221
221
|
}), $f = Df, Ff = ke($f);
|
|
222
|
-
function
|
|
222
|
+
function Mo(e) {
|
|
223
223
|
Object.keys(e || {}).forEach((t) => {
|
|
224
224
|
delete e[t];
|
|
225
225
|
});
|
|
@@ -1429,8 +1429,8 @@ var nh = /* @__PURE__ */ cn(((e, t) => {
|
|
|
1429
1429
|
var Zn = f[ht - 15], gt = Zn.high, Gt = Zn.low, rn = (gt >>> 1 | Gt << 31) ^ (gt >>> 8 | Gt << 24) ^ gt >>> 7, En = (Gt >>> 1 | gt << 31) ^ (Gt >>> 8 | gt << 24) ^ (Gt >>> 7 | gt << 25), Fn = f[ht - 2], Nt = Fn.high, Lt = Fn.low, _a = (Nt >>> 19 | Lt << 13) ^ (Nt << 3 | Lt >>> 29) ^ Nt >>> 6, G = (Lt >>> 19 | Nt << 13) ^ (Lt << 3 | Nt >>> 29) ^ (Lt >>> 6 | Nt << 26), pe = f[ht - 7], re = pe.high, le = pe.low, me = f[ht - 16], Be = me.high, Le = me.low;
|
|
1430
1430
|
Ot = En + le, It = rn + re + (Ot >>> 0 < En >>> 0 ? 1 : 0), Ot = Ot + G, It = It + _a + (Ot >>> 0 < G >>> 0 ? 1 : 0), Ot = Ot + Le, It = It + Be + (Ot >>> 0 < Le >>> 0 ? 1 : 0), un.high = It, un.low = Ot;
|
|
1431
1431
|
}
|
|
1432
|
-
var at = ie & Ge ^ ~ie & Qe, xt = Re & rt ^ ~Re & nn, de = P & qe ^ P & Ze ^ qe & Ze, Se = je & Pe ^ je & te ^ Pe & te, vt = (P >>> 28 | je << 4) ^ (P << 30 | je >>> 2) ^ (P << 25 | je >>> 7), zt = (je >>> 28 | P << 4) ^ (je << 30 | P >>> 2) ^ (je << 25 | P >>> 7), Ce = (ie >>> 14 | Re << 18) ^ (ie >>> 18 | Re << 14) ^ (ie << 23 | Re >>> 9), lt = (Re >>> 14 | ie << 18) ^ (Re >>> 18 | ie << 14) ^ (Re << 23 | ie >>> 9), Wt = d[ht],
|
|
1433
|
-
an = Qe, on = nn, Qe = Ge, nn = rt, Ge = ie, rt = Re, Re = ee +
|
|
1432
|
+
var at = ie & Ge ^ ~ie & Qe, xt = Re & rt ^ ~Re & nn, de = P & qe ^ P & Ze ^ qe & Ze, Se = je & Pe ^ je & te ^ Pe & te, vt = (P >>> 28 | je << 4) ^ (P << 30 | je >>> 2) ^ (P << 25 | je >>> 7), zt = (je >>> 28 | P << 4) ^ (je << 30 | P >>> 2) ^ (je << 25 | P >>> 7), Ce = (ie >>> 14 | Re << 18) ^ (ie >>> 18 | Re << 14) ^ (ie << 23 | Re >>> 9), lt = (Re >>> 14 | ie << 18) ^ (Re >>> 18 | ie << 14) ^ (Re << 23 | ie >>> 9), Wt = d[ht], jt = Wt.high, Ft = Wt.low, Pt = on + lt, Kt = an + Ce + (Pt >>> 0 < on >>> 0 ? 1 : 0), Pt = Pt + xt, Kt = Kt + at + (Pt >>> 0 < xt >>> 0 ? 1 : 0), Pt = Pt + Ft, Kt = Kt + jt + (Pt >>> 0 < Ft >>> 0 ? 1 : 0), Pt = Pt + Ot, Kt = Kt + It + (Pt >>> 0 < Ot >>> 0 ? 1 : 0), $e = zt + Se, hn = vt + de + ($e >>> 0 < zt >>> 0 ? 1 : 0);
|
|
1433
|
+
an = Qe, on = nn, Qe = Ge, nn = rt, Ge = ie, rt = Re, Re = ee + Pt | 0, ie = Oe + Kt + (Re >>> 0 < ee >>> 0 ? 1 : 0) | 0, Oe = Ze, ee = te, Ze = qe, te = Pe, qe = P, Pe = je, je = Pt + $e | 0, P = Kt + hn + (je >>> 0 < Pt >>> 0 ? 1 : 0) | 0;
|
|
1434
1434
|
}
|
|
1435
1435
|
k = b.low = k + je, b.high = S + P + (k >>> 0 < je >>> 0 ? 1 : 0), A = x.low = A + Pe, x.high = T + qe + (A >>> 0 < Pe >>> 0 ? 1 : 0), z = w.low = z + te, w.high = j + Ze + (z >>> 0 < te >>> 0 ? 1 : 0), M = m.low = M + ee, m.high = O + Oe + (M >>> 0 < ee >>> 0 ? 1 : 0), F = y.low = F + Re, y.high = E + ie + (F >>> 0 < Re >>> 0 ? 1 : 0), ue = C.low = ue + rt, C.high = X + Ge + (ue >>> 0 < rt >>> 0 ? 1 : 0), U = v.low = U + nn, v.high = _e + Qe + (U >>> 0 < nn >>> 0 ? 1 : 0), Q = _.low = Q + on, _.high = K + an + (Q >>> 0 < on >>> 0 ? 1 : 0);
|
|
1436
1436
|
},
|
|
@@ -1472,12 +1472,12 @@ var nh = /* @__PURE__ */ cn(((e, t) => {
|
|
|
1472
1472
|
decrypt(e) {
|
|
1473
1473
|
return Hc(e, this.key, this.getOptions).toString(Pi);
|
|
1474
1474
|
}
|
|
1475
|
-
}, mh = class
|
|
1475
|
+
}, mh = class ko {
|
|
1476
1476
|
static instance;
|
|
1477
1477
|
constructor() {
|
|
1478
1478
|
}
|
|
1479
1479
|
static getInstance() {
|
|
1480
|
-
return
|
|
1480
|
+
return ko.instance || (ko.instance = new ko()), ko.instance;
|
|
1481
1481
|
}
|
|
1482
1482
|
encrypt(t) {
|
|
1483
1483
|
return Pi.parse(t).toString(Nl.default);
|
|
@@ -1485,32 +1485,32 @@ var nh = /* @__PURE__ */ cn(((e, t) => {
|
|
|
1485
1485
|
decrypt(t) {
|
|
1486
1486
|
return Nl.default.parse(t).toString(Pi);
|
|
1487
1487
|
}
|
|
1488
|
-
}, bh = class
|
|
1488
|
+
}, bh = class Ro {
|
|
1489
1489
|
static instance;
|
|
1490
1490
|
constructor() {
|
|
1491
1491
|
}
|
|
1492
1492
|
static getInstance() {
|
|
1493
|
-
return
|
|
1493
|
+
return Ro.instance || (Ro.instance = new Ro()), Ro.instance;
|
|
1494
1494
|
}
|
|
1495
1495
|
hash(t) {
|
|
1496
1496
|
return (0, hh.default)(t).toString();
|
|
1497
1497
|
}
|
|
1498
|
-
}, wh = class
|
|
1498
|
+
}, wh = class Eo {
|
|
1499
1499
|
static instance;
|
|
1500
1500
|
constructor() {
|
|
1501
1501
|
}
|
|
1502
1502
|
static getInstance() {
|
|
1503
|
-
return
|
|
1503
|
+
return Eo.instance || (Eo.instance = new Eo()), Eo.instance;
|
|
1504
1504
|
}
|
|
1505
1505
|
hash(t) {
|
|
1506
1506
|
return (0, ph.default)(t).toString();
|
|
1507
1507
|
}
|
|
1508
|
-
}, _h = class
|
|
1508
|
+
}, _h = class To {
|
|
1509
1509
|
static instance;
|
|
1510
1510
|
constructor() {
|
|
1511
1511
|
}
|
|
1512
1512
|
static getInstance() {
|
|
1513
|
-
return
|
|
1513
|
+
return To.instance || (To.instance = new To()), To.instance;
|
|
1514
1514
|
}
|
|
1515
1515
|
hash(t) {
|
|
1516
1516
|
return (0, gh.default)(t).toString();
|
|
@@ -1535,7 +1535,7 @@ var nh = /* @__PURE__ */ cn(((e, t) => {
|
|
|
1535
1535
|
}, lS = (e, t) => Hc(e, t).toString(Pi);
|
|
1536
1536
|
function Ch(e, t) {
|
|
1537
1537
|
function n() {
|
|
1538
|
-
|
|
1538
|
+
Et(() => {
|
|
1539
1539
|
e = J(e), e && Hd.create(e, {
|
|
1540
1540
|
animation: 100,
|
|
1541
1541
|
delay: 400,
|
|
@@ -1644,7 +1644,7 @@ function Ic(e) {
|
|
|
1644
1644
|
function Ni() {
|
|
1645
1645
|
return Jn(Vt.TABLE_PROVIDE, {});
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function ao(e) {
|
|
1648
1648
|
Gn(Vt.TABLE_PROVIDE, e);
|
|
1649
1649
|
}
|
|
1650
1650
|
function kh() {
|
|
@@ -1687,7 +1687,7 @@ var Hh = /* @__PURE__ */ ye({
|
|
|
1687
1687
|
name: "JDynamicLayer",
|
|
1688
1688
|
__name: "dynamic-layer",
|
|
1689
1689
|
setup(e, { expose: t }) {
|
|
1690
|
-
const n = L(), a = L(600), o = L(400), i = L(!0), r = L(!0), l = L(!0), c = L(""), s = L([]), d = L(!0), f = L(), u =
|
|
1690
|
+
const n = L(), a = L(600), o = L(400), i = L(!0), r = L(!0), l = L(!0), c = L(""), s = L([]), d = L(!0), f = L(), u = Fo(), h = L(), { getPageName: p } = Ah(), g = () => {
|
|
1691
1691
|
const z = p();
|
|
1692
1692
|
return z || (typeof u.value == "string" ? u.value : "");
|
|
1693
1693
|
}, b = L(!1), x = L([]), w = async (z) => {
|
|
@@ -1728,7 +1728,7 @@ var Hh = /* @__PURE__ */ ye({
|
|
|
1728
1728
|
}, 100);
|
|
1729
1729
|
}
|
|
1730
1730
|
}, k = (z) => {
|
|
1731
|
-
u.value = z?.name, a.value = z?.width || 600, o.value = z?.height || 400, i.value = z?.hasBtns !== !1, r.value = z?.hasSaveBtn !== !1, l.value = z?.hasHeader !== !1, z?.destroyOnClose !== !1 && (d.value = !0), h.value = z?.config || {}, c.value = z?.btnText || "保存", y = z?.afterOk || null, C = z?.afterClose || null, v = z?.afterCancel || null, n.value.open(z.title, z.type, z.subtitle),
|
|
1731
|
+
u.value = z?.name, a.value = z?.width || 600, o.value = z?.height || 400, i.value = z?.hasBtns !== !1, r.value = z?.hasSaveBtn !== !1, l.value = z?.hasHeader !== !1, z?.destroyOnClose !== !1 && (d.value = !0), h.value = z?.config || {}, c.value = z?.btnText || "保存", y = z?.afterOk || null, C = z?.afterClose || null, v = z?.afterCancel || null, n.value.open(z.title, z.type, z.subtitle), Et(async () => {
|
|
1732
1732
|
n.value.showLoading("加载中"), await S(z.param || {});
|
|
1733
1733
|
});
|
|
1734
1734
|
}, T = async () => {
|
|
@@ -1790,7 +1790,7 @@ var Hh = /* @__PURE__ */ ye({
|
|
|
1790
1790
|
i && i(), Ti(null, a);
|
|
1791
1791
|
}, o.component && o.component.exposed && o.component.exposed.open(e);
|
|
1792
1792
|
};
|
|
1793
|
-
function
|
|
1793
|
+
function oo() {
|
|
1794
1794
|
const e = mc(), t = e?.appContext, n = e?.provides;
|
|
1795
1795
|
return { openLayer: (o) => {
|
|
1796
1796
|
Oh(o, t, n);
|
|
@@ -1819,7 +1819,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
|
|
|
1819
1819
|
s.groupId = s.groupId || qr(), i[s.groupId] = i[s.groupId] || [], i[s.groupId].push(s);
|
|
1820
1820
|
}
|
|
1821
1821
|
return i;
|
|
1822
|
-
}), { openLayer: a } =
|
|
1822
|
+
}), { openLayer: a } = oo(), o = (i) => {
|
|
1823
1823
|
i.config?.disabled || i.click && i.click({ openLayer: a });
|
|
1824
1824
|
};
|
|
1825
1825
|
return (i, r) => {
|
|
@@ -1999,7 +1999,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
|
|
|
1999
1999
|
}, d = (f) => {
|
|
2000
2000
|
a("change", f);
|
|
2001
2001
|
};
|
|
2002
|
-
return
|
|
2002
|
+
return Tt(() => {
|
|
2003
2003
|
n.autoFocus && !n.readonly && o.value.focus();
|
|
2004
2004
|
}), (f, u) => {
|
|
2005
2005
|
const h = V("j-icon"), p = V("el-input");
|
|
@@ -2653,7 +2653,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
|
|
|
2653
2653
|
});
|
|
2654
2654
|
}
|
|
2655
2655
|
};
|
|
2656
|
-
return
|
|
2656
|
+
return Tt(() => {
|
|
2657
2657
|
n.autoFocus && !n.readonly && setTimeout(() => {
|
|
2658
2658
|
o.value.toggleMenu();
|
|
2659
2659
|
}, 50);
|
|
@@ -2862,7 +2862,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
|
|
|
2862
2862
|
disabled: "disabled",
|
|
2863
2863
|
leaf: "leaf"
|
|
2864
2864
|
}));
|
|
2865
|
-
return
|
|
2865
|
+
return Tt(() => {
|
|
2866
2866
|
a.autoFocus && !a.readonly && setTimeout(() => {
|
|
2867
2867
|
o.value.togglePopperVisible();
|
|
2868
2868
|
}, 50);
|
|
@@ -3072,7 +3072,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
|
|
|
3072
3072
|
focus: () => {
|
|
3073
3073
|
o.value?.focus();
|
|
3074
3074
|
}
|
|
3075
|
-
}),
|
|
3075
|
+
}), Tt(() => {
|
|
3076
3076
|
a.autoFocus && !a.readonly && o.value?.focus();
|
|
3077
3077
|
}), (u, h) => {
|
|
3078
3078
|
const p = V("j-icon"), g = V("el-input-number");
|
|
@@ -3247,7 +3247,7 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
|
|
|
3247
3247
|
blur: () => {
|
|
3248
3248
|
o.value?.blur();
|
|
3249
3249
|
}
|
|
3250
|
-
}),
|
|
3250
|
+
}), Tt(() => {
|
|
3251
3251
|
a.autoFocus && !a.readonly && setTimeout(() => {
|
|
3252
3252
|
o.value.focus();
|
|
3253
3253
|
}, 50);
|
|
@@ -3512,11 +3512,11 @@ var Ih = ke(zc), Lh = /* @__PURE__ */ ye({
|
|
|
3512
3512
|
d.value = s.value - O - M < t.midMinWidth;
|
|
3513
3513
|
};
|
|
3514
3514
|
let z = null;
|
|
3515
|
-
return
|
|
3515
|
+
return Tt(() => {
|
|
3516
3516
|
t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (j(), z = new ResizeObserver(() => {
|
|
3517
3517
|
j();
|
|
3518
3518
|
}), z.observe(a.value));
|
|
3519
|
-
}),
|
|
3519
|
+
}), Do(() => {
|
|
3520
3520
|
z && z.disconnect();
|
|
3521
3521
|
}), (O, M) => (R(), D("div", {
|
|
3522
3522
|
ref_key: "layout",
|
|
@@ -3622,7 +3622,7 @@ function ln(e, t) {
|
|
|
3622
3622
|
return ((n = wt(e).originalRowHeights) === null || n === void 0 ? void 0 : n.get(t)) || 0;
|
|
3623
3623
|
}
|
|
3624
3624
|
var Yl = /* @__PURE__ */ new WeakMap();
|
|
3625
|
-
function
|
|
3625
|
+
function jo(e, t) {
|
|
3626
3626
|
let n = Yl.get(e);
|
|
3627
3627
|
if (n || (n = /* @__PURE__ */ new Map(), Yl.set(e, n)), n.has(t)) return n.get(t);
|
|
3628
3628
|
for (let a = 0; a < e.colCount; a++) if (e.getHeaderField(a, 0) === t) return n.set(t, a), a;
|
|
@@ -4059,12 +4059,12 @@ var jp = class {
|
|
|
4059
4059
|
if (!e.stateManager) return;
|
|
4060
4060
|
const n = t?.headerCheckedState || e.stateManager.headerCheckedState, a = t?.checkedState || {};
|
|
4061
4061
|
Object.keys(n).forEach(((o) => {
|
|
4062
|
-
const i = n[o], r =
|
|
4062
|
+
const i = n[o], r = jo(e, o);
|
|
4063
4063
|
r !== -1 && e.isHeader(r, 0) && e.scenegraph.updateHeaderCheckboxCellState(r, 0, i);
|
|
4064
4064
|
})), t?.checkedState ? Object.keys(a).forEach(((o) => {
|
|
4065
4065
|
const i = a[o], r = Number(o);
|
|
4066
4066
|
Object.keys(i).forEach(((l) => {
|
|
4067
|
-
const c = i[l], s =
|
|
4067
|
+
const c = i[l], s = jo(e, l);
|
|
4068
4068
|
if (s !== -1) {
|
|
4069
4069
|
for (let d = e.columnHeaderLevelCount; d < e.rowCount; d++) if (e.getRecordIndexByCell(s, d) === r) {
|
|
4070
4070
|
Bi(s, d, c, e);
|
|
@@ -4075,7 +4075,7 @@ var jp = class {
|
|
|
4075
4075
|
})) : e.stateManager.checkedState.forEach(((o, i) => {
|
|
4076
4076
|
const r = Number(i);
|
|
4077
4077
|
Object.keys(o).forEach(((l) => {
|
|
4078
|
-
const c = o[l], s =
|
|
4078
|
+
const c = o[l], s = jo(e, l);
|
|
4079
4079
|
if (s !== -1) {
|
|
4080
4080
|
for (let d = e.columnHeaderLevelCount; d < e.rowCount; d++) if (e.getRecordIndexByCell(s, d) === r) {
|
|
4081
4081
|
Bi(s, d, c, e);
|
|
@@ -4883,7 +4883,7 @@ function zp(e, t, n, a) {
|
|
|
4883
4883
|
let i = !1;
|
|
4884
4884
|
const r = t.stateManager.headerCheckedState[a];
|
|
4885
4885
|
r !== void 0 && (i = r);
|
|
4886
|
-
const l =
|
|
4886
|
+
const l = jo(e, a);
|
|
4887
4887
|
if (l !== -1 && e.stateManager && (e.stateManager.setCheckedState(l, o, a, i), e.getCellType(l, o) === "checkbox" && Bi(l, o, i, e), e.internalProps.enableCheckboxCascade)) {
|
|
4888
4888
|
const c = e.stateManager.headerCheckedState[a], s = e.stateManager.updateHeaderCheckedState(a, l, 0);
|
|
4889
4889
|
c !== s && e.isHeader(l, 0) && e.scenegraph.updateHeaderCheckboxCellState(l, 0, s);
|
|
@@ -4897,7 +4897,7 @@ function Jl(e, t, n) {
|
|
|
4897
4897
|
let l = e.stateManager.checkedState.get(r);
|
|
4898
4898
|
l || (l = {}, e.stateManager.checkedState.set(r, l)), l[t] = n;
|
|
4899
4899
|
}));
|
|
4900
|
-
const a =
|
|
4900
|
+
const a = jo(e, t);
|
|
4901
4901
|
if (a >= 0) {
|
|
4902
4902
|
e.scenegraph.updateHeaderCheckboxCellState(a, 0, n);
|
|
4903
4903
|
for (let o = e.columnHeaderLevelCount; o < e.rowCount; o++) Bi(a, o, n, e);
|
|
@@ -5310,7 +5310,7 @@ var Dp = class {
|
|
|
5310
5310
|
error: J(d)(y.value),
|
|
5311
5311
|
class: We(`${u.value}-form-item`)
|
|
5312
5312
|
}, {
|
|
5313
|
-
default: q(() => [Z(_, ja(
|
|
5313
|
+
default: q(() => [Z(_, ja(Lo(g.value)), null, 16)]),
|
|
5314
5314
|
_: 1
|
|
5315
5315
|
}, 8, [
|
|
5316
5316
|
"label",
|
|
@@ -5387,7 +5387,7 @@ var Dp = class {
|
|
|
5387
5387
|
emits: ["update:modelValue", "change"],
|
|
5388
5388
|
setup(e, { emit: t }) {
|
|
5389
5389
|
const n = e, a = t, { useData: o } = mt(), { loadDataByComp: i, getDataByComp: r, getLabel: l } = o(), { contextType: c } = kh(), { formData: s, formChange: d, gutter: f, runFlow: u, runFlowByNotRunActions: h } = Ia(), p = H(() => f?.value || 16), { registerMethod: g, runFlow: b, runFlowByNotRunActions: x } = Ph(), { getTableData: w, row: m, rowChange: y, pRowData: C } = Ni(), v = n.row || m;
|
|
5390
|
-
|
|
5390
|
+
ao({
|
|
5391
5391
|
getTableData: w,
|
|
5392
5392
|
row: v,
|
|
5393
5393
|
rowChange: y,
|
|
@@ -5531,9 +5531,9 @@ var Dp = class {
|
|
|
5531
5531
|
};
|
|
5532
5532
|
return it([() => n.id, () => P.value], () => {
|
|
5533
5533
|
Ze();
|
|
5534
|
-
}, { immediate: !0 }),
|
|
5534
|
+
}, { immediate: !0 }), Tt(() => {
|
|
5535
5535
|
n.id && h && h(n.id), n.id && x && x(n.id);
|
|
5536
|
-
}),
|
|
5536
|
+
}), zo(() => {
|
|
5537
5537
|
Pe();
|
|
5538
5538
|
}), (te, Oe) => {
|
|
5539
5539
|
const ee = V("JComp"), ie = V("el-row");
|
|
@@ -5751,7 +5751,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
5751
5751
|
},
|
|
5752
5752
|
setup(e) {
|
|
5753
5753
|
const t = e;
|
|
5754
|
-
return
|
|
5754
|
+
return ao({
|
|
5755
5755
|
...Ni(),
|
|
5756
5756
|
row: t.rowData
|
|
5757
5757
|
}), (n, a) => (R(), N(Nc, {
|
|
@@ -5909,7 +5909,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
5909
5909
|
"change"
|
|
5910
5910
|
],
|
|
5911
5911
|
setup(e, { expose: t, emit: n }) {
|
|
5912
|
-
const a = mc(), o = e, i = n, { formData: r } = Ia(), { useData: l, t: c } = mt(), { getLabel: s, getCode: d, loadDataState: f, getObjectList: u } = l(), { openLayer: h } =
|
|
5912
|
+
const a = mc(), o = e, i = n, { formData: r } = Ia(), { useData: l, t: c } = mt(), { getLabel: s, getCode: d, loadDataState: f, getObjectList: u } = l(), { openLayer: h } = oo(), p = H(() => o.heightMode === "auto" ? { height: "auto" } : {}), g = ra({}), b = () => {
|
|
5913
5913
|
Object.keys(g).forEach((I) => {
|
|
5914
5914
|
delete g[I];
|
|
5915
5915
|
});
|
|
@@ -6007,10 +6007,10 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6007
6007
|
flexWrap: "nowrap"
|
|
6008
6008
|
});
|
|
6009
6009
|
if (Ve.forEach((we, ot) => {
|
|
6010
|
-
const Ne = we.config?.disabled === !0,
|
|
6010
|
+
const Ne = we.config?.disabled === !0, Bt = Ne ? "#c9cdd4" : we.config?.status === "danger" ? "#f53f3f" : "#165dff", gn = new Y({
|
|
6011
6011
|
text: we.label,
|
|
6012
6012
|
fontSize: 14,
|
|
6013
|
-
fill:
|
|
6013
|
+
fill: Bt,
|
|
6014
6014
|
boundsPadding: [
|
|
6015
6015
|
0,
|
|
6016
6016
|
12,
|
|
@@ -6025,9 +6025,9 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6025
6025
|
openLayer: h
|
|
6026
6026
|
});
|
|
6027
6027
|
}), gn.addEventListener("mouseenter", (Tn) => {
|
|
6028
|
-
Ne || (Tn.target.setAttribute("fill", Nt(
|
|
6028
|
+
Ne || (Tn.target.setAttribute("fill", Nt(Bt, -20)), be.scenegraph.stage.renderNextFrame());
|
|
6029
6029
|
}), gn.addEventListener("mouseleave", (Tn) => {
|
|
6030
|
-
Ne || (Tn.target.setAttribute("fill",
|
|
6030
|
+
Ne || (Tn.target.setAttribute("fill", Bt), be.scenegraph.stage.renderNextFrame());
|
|
6031
6031
|
}), yt.add(gn);
|
|
6032
6032
|
}), Fe && ct.length > 0) {
|
|
6033
6033
|
const we = "#1677ff", ot = new Y({
|
|
@@ -6044,8 +6044,8 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6044
6044
|
});
|
|
6045
6045
|
ot.addEventListener("mouseenter", (Ne) => {
|
|
6046
6046
|
Ne.target.setAttribute("fill", Nt(we, -20)), be.scenegraph.stage.renderNextFrame();
|
|
6047
|
-
const
|
|
6048
|
-
|
|
6047
|
+
const Bt = m.value?.getBoundingClientRect();
|
|
6048
|
+
Bt && _e(ct, Ee, Ke, Ne.canvasX + Bt.left - 64, Ne.canvasY + Bt.top + 8), ue = !0, Q();
|
|
6049
6049
|
}), ot.addEventListener("mouseleave", (Ne) => {
|
|
6050
6050
|
Ne.target.setAttribute("fill", we), be.scenegraph.stage.renderNextFrame(), ue = !1, K();
|
|
6051
6051
|
}), yt.add(ot);
|
|
@@ -6142,19 +6142,19 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6142
6142
|
formData: r || {},
|
|
6143
6143
|
getTableData: lt,
|
|
6144
6144
|
row: he
|
|
6145
|
-
}) || {}, Ae = Number(be.min) || 0, He = Number(be.max) || 100, Ee = Number(Y) || 0, Ke = He - Ae, Ye = Ke === 0 ? 0 : Math.max(0, Math.min(100, (Ee - Ae) / Ke * 100)), Te = 4, Fe = 8, Ve = 8, ct = (oe.height - Te) / 2, yt = String(Ee), we = Sn(yt) || 0, ot = Fe, Ne = ct,
|
|
6145
|
+
}) || {}, Ae = Number(be.min) || 0, He = Number(be.max) || 100, Ee = Number(Y) || 0, Ke = He - Ae, Ye = Ke === 0 ? 0 : Math.max(0, Math.min(100, (Ee - Ae) / Ke * 100)), Te = 4, Fe = 8, Ve = 8, ct = (oe.height - Te) / 2, yt = String(Ee), we = Sn(yt) || 0, ot = Fe, Ne = ct, Bt = oe.width - Fe * 2 - we - Ve, gn = Bt * Ye / 100, Tn = [], yo = (Ut, qt, kt) => {
|
|
6146
6146
|
const nt = Math.min(kt, qt / 2, Ut / 2);
|
|
6147
6147
|
return `M ${nt} 0 L ${Ut - nt} 0 Q ${Ut} 0 ${Ut} ${nt} L ${Ut} ${qt - nt} Q ${Ut} ${qt} ${Ut - nt} ${qt} L ${nt} ${qt} Q 0 ${qt} 0 ${qt - nt} L 0 ${nt} Q 0 0 ${nt} 0 Z`;
|
|
6148
6148
|
}, An = (Ut, qt, kt) => {
|
|
6149
6149
|
const nt = Math.min(kt, qt / 2, Ut / 2);
|
|
6150
|
-
return Ut <= nt * 2 ?
|
|
6151
|
-
},
|
|
6150
|
+
return Ut <= nt * 2 ? yo(Ut, qt, kt) : `M ${nt} 0 L ${Ut} 0 L ${Ut} ${qt} L ${nt} ${qt} Q 0 ${qt} 0 ${qt - nt} L 0 ${nt} Q 0 0 ${nt} 0 Z`;
|
|
6151
|
+
}, mo = yo(Bt, Te, Te / 2);
|
|
6152
6152
|
if (Tn.push({
|
|
6153
6153
|
type: "icon",
|
|
6154
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
6154
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Bt}" height="${Te}" viewBox="0 0 ${Bt} ${Te}"><path d="${mo}" fill="#e5e6eb"/></svg>`,
|
|
6155
6155
|
x: ot,
|
|
6156
6156
|
y: Ne,
|
|
6157
|
-
width:
|
|
6157
|
+
width: Bt,
|
|
6158
6158
|
height: Te
|
|
6159
6159
|
}), gn > 0) {
|
|
6160
6160
|
const Ut = An(gn, Te, Te / 2);
|
|
@@ -6167,7 +6167,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6167
6167
|
height: Te
|
|
6168
6168
|
});
|
|
6169
6169
|
}
|
|
6170
|
-
const ri = ot +
|
|
6170
|
+
const ri = ot + Bt + Ve, li = oe.height / 2;
|
|
6171
6171
|
return Tn.push({
|
|
6172
6172
|
type: "text",
|
|
6173
6173
|
text: yt,
|
|
@@ -6262,12 +6262,12 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6262
6262
|
};
|
|
6263
6263
|
const Ye = 14, Te = 28, Fe = 2, Ve = 12, ct = 8, yt = 6;
|
|
6264
6264
|
let we = 8, ot = Math.max(0, oe.width - we * 2), Ne = Math.max(0, ot - Ve * 2);
|
|
6265
|
-
const
|
|
6265
|
+
const Bt = [], gn = (kt) => {
|
|
6266
6266
|
const nt = Sn(Qe(kt, Ne)) || 0;
|
|
6267
6267
|
return Math.min(ot, nt + Ve * 2);
|
|
6268
6268
|
}, Tn = (kt, nt, Mn, jn, Pn) => {
|
|
6269
6269
|
const xa = Qe(Mn, Ne), Ca = rt(xa), si = Sn(xa) || 0, Ja = Math.min(ot, si + Ve * 2), Ed = jn || "#f2f3f5", Td = Pn || "#1d2129", Ad = Te / 2 + Ye * 0.35, Md = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ja}" height="${Te}" viewBox="0 0 ${Ja} ${Te}"><rect x="0" y="0" width="${Ja}" height="${Te}" rx="${Fe}" ry="${Fe}" fill="${Ed}"/><text x="${Ja / 2}" y="${Ad}" text-anchor="middle" font-size="${Ye}" fill="${Td}">${Ca}</text></svg>`;
|
|
6270
|
-
return
|
|
6270
|
+
return Bt.push({
|
|
6271
6271
|
type: "icon",
|
|
6272
6272
|
svg: Md,
|
|
6273
6273
|
x: kt,
|
|
@@ -6275,7 +6275,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6275
6275
|
width: Ja,
|
|
6276
6276
|
height: Te
|
|
6277
6277
|
}), { tagWidth: Ja };
|
|
6278
|
-
},
|
|
6278
|
+
}, yo = () => {
|
|
6279
6279
|
const kt = [];
|
|
6280
6280
|
let nt = [], Mn = 0;
|
|
6281
6281
|
for (let jn = 0; jn < Ke.length; jn++) {
|
|
@@ -6298,11 +6298,11 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6298
6298
|
needsWrap: kt.length > 1
|
|
6299
6299
|
};
|
|
6300
6300
|
};
|
|
6301
|
-
let { lines: An, needsWrap:
|
|
6302
|
-
we !== 0 &&
|
|
6301
|
+
let { lines: An, needsWrap: mo } = yo();
|
|
6302
|
+
we !== 0 && mo && (we = 0, ot = Math.max(0, oe.width - we * 2), Ne = Math.max(0, ot - Ve * 2), { lines: An, needsWrap: mo } = yo());
|
|
6303
6303
|
const ri = An.length * Te + (An.length > 1 ? (An.length - 1) * yt : 0);
|
|
6304
6304
|
let li = Math.max(0, (oe.height - ri) / 2);
|
|
6305
|
-
const Ut =
|
|
6305
|
+
const Ut = mo;
|
|
6306
6306
|
for (let kt = 0; kt < An.length; kt++) {
|
|
6307
6307
|
const nt = An[kt];
|
|
6308
6308
|
let Mn = Ut ? we : He === "center" ? we + Math.max(0, (ot - nt.lineWidth) / 2) : He === "right" ? we + Math.max(0, ot - nt.lineWidth) : we;
|
|
@@ -6314,7 +6314,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6314
6314
|
}
|
|
6315
6315
|
const qt = Math.min(oe.width, Math.max(0, ...An.map((kt) => kt.lineWidth)) + we * 2);
|
|
6316
6316
|
return {
|
|
6317
|
-
elements:
|
|
6317
|
+
elements: Bt,
|
|
6318
6318
|
expectedHeight: Math.max(xn, ri),
|
|
6319
6319
|
expectedWidth: qt
|
|
6320
6320
|
};
|
|
@@ -6440,7 +6440,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6440
6440
|
}, un = (I) => {
|
|
6441
6441
|
const { table: $, row: Y, col: oe, rect: W } = I, { height: ae, width: se } = W ?? $.getCellRect(oe, Y), { Group: ve, CheckBox: fe } = Je.CustomLayout, he = $.getBodyField(oe, Y), be = gt($.options?.columns || [], he), Ae = $.getCellOriginRecord(oe, Y) || {}, He = be?.style?.textAlign === "right" ? "flex-end" : be?.style?.textAlign === "center" ? "center" : "flex-start", Ee = be?.style?.textAlign === "right" ? "flex-end" : be?.style?.textAlign === "center" ? "center" : "flex-start", Ke = (yt, we) => {
|
|
6442
6442
|
const ot = Ae?.[he];
|
|
6443
|
-
Ae[he] = (Array.isArray(ot) ? ot : []).map((Ne,
|
|
6443
|
+
Ae[he] = (Array.isArray(ot) ? ot : []).map((Ne, Bt) => Bt !== yt ? Ne : Ne && typeof Ne == "object" ? {
|
|
6444
6444
|
...Ne,
|
|
6445
6445
|
...we
|
|
6446
6446
|
} : { ...we });
|
|
@@ -6491,8 +6491,8 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6491
6491
|
]
|
|
6492
6492
|
});
|
|
6493
6493
|
Ne.render?.(), ct.add(Ne), Ne.addEventListener("checkbox_state_change", () => {
|
|
6494
|
-
const
|
|
6495
|
-
Ke(yt, { checked:
|
|
6494
|
+
const Bt = !!Ne.attribute?.checked;
|
|
6495
|
+
Ke(yt, { checked: Bt }), Ye();
|
|
6496
6496
|
});
|
|
6497
6497
|
}
|
|
6498
6498
|
return {
|
|
@@ -6604,13 +6604,13 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6604
6604
|
return `#${(W << 16 | ae << 8 | se).toString(16).padStart(6, "0")}`;
|
|
6605
6605
|
}, Lt = () => {
|
|
6606
6606
|
let I = T;
|
|
6607
|
-
o.isPage && (I =
|
|
6607
|
+
o.isPage && (I = Pt.value + T);
|
|
6608
6608
|
let $ = Sn(String(I)) || 0;
|
|
6609
6609
|
return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
|
|
6610
6610
|
}, _a = (I) => {
|
|
6611
6611
|
let $ = (Y, oe, W, ae) => {
|
|
6612
6612
|
const se = ae.getRecordIndexByCell(oe, W);
|
|
6613
|
-
return o.isPage && !I ?
|
|
6613
|
+
return o.isPage && !I ? Pt.value + se + 1 : se + 1;
|
|
6614
6614
|
};
|
|
6615
6615
|
return I && ($ = (Y, oe, W, ae) => ae.getRecordIndexByCell(oe, W) + 1), {
|
|
6616
6616
|
field: "__sequence__",
|
|
@@ -6872,9 +6872,9 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6872
6872
|
}
|
|
6873
6873
|
}
|
|
6874
6874
|
}, lt = () => y ? y.records : [];
|
|
6875
|
-
|
|
6875
|
+
Tt(() => {
|
|
6876
6876
|
de();
|
|
6877
|
-
}),
|
|
6877
|
+
}), zo(() => {
|
|
6878
6878
|
Se(), Q(), document.removeEventListener("wheel", qe);
|
|
6879
6879
|
});
|
|
6880
6880
|
const Wt = H({
|
|
@@ -6884,14 +6884,14 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6884
6884
|
set(I) {
|
|
6885
6885
|
i("update:tablePage", I);
|
|
6886
6886
|
}
|
|
6887
|
-
}),
|
|
6887
|
+
}), jt = L(0), Ft = H({
|
|
6888
6888
|
get() {
|
|
6889
|
-
return
|
|
6889
|
+
return jt.value !== 0 ? jt.value : o.pageSize;
|
|
6890
6890
|
},
|
|
6891
6891
|
set(I) {
|
|
6892
|
-
|
|
6892
|
+
jt.value = I, i("update:pageSize", I);
|
|
6893
6893
|
}
|
|
6894
|
-
}),
|
|
6894
|
+
}), Pt = H(() => (Wt.value - 1) * Ft.value), Kt = (I, $) => {
|
|
6895
6895
|
i("loadPageData", {
|
|
6896
6896
|
rows: $,
|
|
6897
6897
|
page: I
|
|
@@ -6974,7 +6974,9 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
6974
6974
|
y.renderWithRecreateCells();
|
|
6975
6975
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
6976
6976
|
}, dn = (I) => {
|
|
6977
|
-
i("rowChange", I),
|
|
6977
|
+
i("rowChange", I), Et(() => {
|
|
6978
|
+
y.renderWithRecreateCells();
|
|
6979
|
+
});
|
|
6978
6980
|
}, Qt = (I) => {
|
|
6979
6981
|
if (!y) return;
|
|
6980
6982
|
const $ = $e();
|
|
@@ -7076,7 +7078,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7076
7078
|
Qt();
|
|
7077
7079
|
}), it(() => o.actions, () => {
|
|
7078
7080
|
Qt();
|
|
7079
|
-
}, { deep: !0 }),
|
|
7081
|
+
}, { deep: !0 }), ao({
|
|
7080
7082
|
getTableData: lt,
|
|
7081
7083
|
rowChange: dn
|
|
7082
7084
|
}), t({
|
|
@@ -7274,7 +7276,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7274
7276
|
_top: 0
|
|
7275
7277
|
}), g = L(0), b = L(), x = L(48), w = L(0), m = L(0);
|
|
7276
7278
|
it(() => a.visible, (P) => {
|
|
7277
|
-
g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls &&
|
|
7279
|
+
g.value = 1, g.value = 0, r.value = P, P === !0 && a.zoomControls && Et(() => {
|
|
7278
7280
|
typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = K));
|
|
7279
7281
|
});
|
|
7280
7282
|
}, { immediate: !0 });
|
|
@@ -7299,7 +7301,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7299
7301
|
}, A = () => {
|
|
7300
7302
|
o("ok", S, k);
|
|
7301
7303
|
}, j = () => {
|
|
7302
|
-
p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (z.value = 0,
|
|
7304
|
+
p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (z.value = 0, Et(() => {
|
|
7303
7305
|
F();
|
|
7304
7306
|
})), o("closed");
|
|
7305
7307
|
}, z = H({
|
|
@@ -7310,11 +7312,11 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7310
7312
|
h.value = P, o("update:stepActive", P);
|
|
7311
7313
|
}
|
|
7312
7314
|
}), O = () => {
|
|
7313
|
-
z.value > 0 && z.value--,
|
|
7315
|
+
z.value > 0 && z.value--, Et(() => {
|
|
7314
7316
|
F();
|
|
7315
7317
|
});
|
|
7316
7318
|
}, M = async () => {
|
|
7317
|
-
await E() && (z.value < a.steps.length - 1 && (z.value += 1),
|
|
7319
|
+
await E() && (z.value < a.steps.length - 1 && (z.value += 1), Et(() => {
|
|
7318
7320
|
F();
|
|
7319
7321
|
}));
|
|
7320
7322
|
}, E = async () => {
|
|
@@ -7583,7 +7585,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7583
7585
|
}, x = () => {
|
|
7584
7586
|
o("ok", m, y);
|
|
7585
7587
|
}, w = () => {
|
|
7586
|
-
a.isStep && (g.value = 0,
|
|
7588
|
+
a.isStep && (g.value = 0, Et(() => {
|
|
7587
7589
|
S();
|
|
7588
7590
|
})), o("closed");
|
|
7589
7591
|
}, m = (A) => {
|
|
@@ -7591,11 +7593,11 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7591
7593
|
}, y = () => {
|
|
7592
7594
|
c.value = !1;
|
|
7593
7595
|
}, C = () => {
|
|
7594
|
-
g.value > 0 && g.value--,
|
|
7596
|
+
g.value > 0 && g.value--, Et(() => {
|
|
7595
7597
|
S();
|
|
7596
7598
|
});
|
|
7597
7599
|
}, v = async () => {
|
|
7598
|
-
await _() && (g.value < a.steps.length - 1 && (g.value += 1),
|
|
7600
|
+
await _() && (g.value < a.steps.length - 1 && (g.value += 1), Et(() => {
|
|
7599
7601
|
S();
|
|
7600
7602
|
}));
|
|
7601
7603
|
}, _ = async () => {
|
|
@@ -7626,7 +7628,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7626
7628
|
showLoading: m,
|
|
7627
7629
|
hideLoading: y
|
|
7628
7630
|
}), (A, j) => {
|
|
7629
|
-
const z = V("el-step"), O = V("el-steps"), M = V("j-button"), E = V("el-space"), F = V("el-divider"), X = V("el-dialog"), ue =
|
|
7631
|
+
const z = V("el-step"), O = V("el-steps"), M = V("j-button"), E = V("el-space"), F = V("el-divider"), X = V("el-dialog"), ue = $o("loading");
|
|
7630
7632
|
return R(), N(X, {
|
|
7631
7633
|
modelValue: l.value,
|
|
7632
7634
|
"onUpdate:modelValue": j[0] || (j[0] = (_e) => l.value = _e),
|
|
@@ -7845,7 +7847,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7845
7847
|
}, f = () => {
|
|
7846
7848
|
r.value = !1;
|
|
7847
7849
|
}, u = () => {
|
|
7848
|
-
a.isStep && (C.value = 0,
|
|
7850
|
+
a.isStep && (C.value = 0, Et(() => {
|
|
7849
7851
|
k();
|
|
7850
7852
|
})), i("closed");
|
|
7851
7853
|
}, h = () => {
|
|
@@ -7862,11 +7864,11 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7862
7864
|
y.value = A, i("update:stepActive", A);
|
|
7863
7865
|
}
|
|
7864
7866
|
}), v = () => {
|
|
7865
|
-
C.value > 0 && C.value--,
|
|
7867
|
+
C.value > 0 && C.value--, Et(() => {
|
|
7866
7868
|
k();
|
|
7867
7869
|
});
|
|
7868
7870
|
}, _ = async () => {
|
|
7869
|
-
await S() && (C.value < a.steps.length - 1 && (C.value += 1),
|
|
7871
|
+
await S() && (C.value < a.steps.length - 1 && (C.value += 1), Et(() => {
|
|
7870
7872
|
k();
|
|
7871
7873
|
}));
|
|
7872
7874
|
}, S = async () => {
|
|
@@ -7895,7 +7897,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
7895
7897
|
showLoading: d,
|
|
7896
7898
|
hideLoading: f
|
|
7897
7899
|
}), (A, j) => {
|
|
7898
|
-
const z = V("el-input"), O = V("j-button"), M = V("el-space"), E = V("el-step"), F = V("el-steps"), X = V("el-drawer"), ue =
|
|
7900
|
+
const z = V("el-input"), O = V("j-button"), M = V("el-space"), E = V("el-step"), F = V("el-steps"), X = V("el-drawer"), ue = $o("loading");
|
|
7899
7901
|
return R(), N(X, {
|
|
7900
7902
|
modelValue: s.value,
|
|
7901
7903
|
"onUpdate:modelValue": j[0] || (j[0] = (_e) => s.value = _e),
|
|
@@ -8894,7 +8896,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
8894
8896
|
return o && o(`当前限制选择${n.limit}个文件`), !1;
|
|
8895
8897
|
};
|
|
8896
8898
|
return (ee, ie) => {
|
|
8897
|
-
const Re = V("j-icon"), Ge = V("el-popover"), rt = V("j-button"), Qe = V("el-upload"), nn = V("el-text"), an = V("j-dialog-full"), on =
|
|
8899
|
+
const Re = V("j-icon"), Ge = V("el-popover"), rt = V("j-button"), Qe = V("el-upload"), nn = V("el-text"), an = V("j-dialog-full"), on = $o("loading");
|
|
8898
8900
|
return R(), D("div", Gg, [
|
|
8899
8901
|
Z(Qe, {
|
|
8900
8902
|
action: "",
|
|
@@ -9032,7 +9034,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
9032
9034
|
},
|
|
9033
9035
|
emits: ["click", "ready"],
|
|
9034
9036
|
setup(e, { expose: t, emit: n }) {
|
|
9035
|
-
const a = e, o = n, i = L(), r =
|
|
9037
|
+
const a = e, o = n, i = L(), r = Fo();
|
|
9036
9038
|
let l = null, c = null;
|
|
9037
9039
|
const s = async () => {
|
|
9038
9040
|
i.value && (r.value = Id.init(i.value, a.theme, a.initOptions), d(a.option), r.value && r.value.on("click", (p) => {
|
|
@@ -9047,9 +9049,9 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
9047
9049
|
};
|
|
9048
9050
|
return it(() => a.option, (p) => {
|
|
9049
9051
|
d(p);
|
|
9050
|
-
}, { deep: !0 }),
|
|
9052
|
+
}, { deep: !0 }), Tt(() => {
|
|
9051
9053
|
s();
|
|
9052
|
-
}),
|
|
9054
|
+
}), Do(() => {
|
|
9053
9055
|
c && clearTimeout(c), l && i.value && (l.unobserve(i.value), l.disconnect(), l = null), r.value && (r.value.dispose(), r.value = void 0);
|
|
9054
9056
|
}), t({
|
|
9055
9057
|
getInstance: () => r.value,
|
|
@@ -9069,7 +9071,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
9069
9071
|
const n = e.__vccOpts || e;
|
|
9070
9072
|
for (const [a, o] of t) n[a] = o;
|
|
9071
9073
|
return n;
|
|
9072
|
-
}, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-
|
|
9074
|
+
}, lv = /* @__PURE__ */ rv(iv, [["__scopeId", "data-v-37f9a80b"]]), sv = ke(lv), cv = ["innerHTML"], uv = {
|
|
9073
9075
|
key: 1,
|
|
9074
9076
|
class: "j-barcode-error"
|
|
9075
9077
|
}, dv = /* @__PURE__ */ ye({
|
|
@@ -10060,7 +10062,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
10060
10062
|
},
|
|
10061
10063
|
setup(e, { expose: t }) {
|
|
10062
10064
|
const n = e, a = H(() => ({ ...n })), o = L(), i = L(null), r = H(() => n.options);
|
|
10063
|
-
|
|
10065
|
+
Tt(() => {
|
|
10064
10066
|
n.animation && l();
|
|
10065
10067
|
}), it(() => n.decimals, () => {
|
|
10066
10068
|
i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
|
|
@@ -10072,9 +10074,9 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
10072
10074
|
n.callback?.(i.value);
|
|
10073
10075
|
}));
|
|
10074
10076
|
};
|
|
10075
|
-
return
|
|
10077
|
+
return Do(() => {
|
|
10076
10078
|
i.value = null;
|
|
10077
|
-
}),
|
|
10079
|
+
}), zo(() => {
|
|
10078
10080
|
i.value = null;
|
|
10079
10081
|
}), t({
|
|
10080
10082
|
myProps: a,
|
|
@@ -10932,11 +10934,11 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
10932
10934
|
}));
|
|
10933
10935
|
}), it(() => a.mode, () => {
|
|
10934
10936
|
l && f();
|
|
10935
|
-
}),
|
|
10936
|
-
await
|
|
10937
|
+
}), Tt(async () => {
|
|
10938
|
+
await Et(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
|
|
10937
10939
|
l && l.dispatch({ scrollIntoView: !0 });
|
|
10938
10940
|
}), p.observe(i.value));
|
|
10939
|
-
}),
|
|
10941
|
+
}), Do(() => {
|
|
10940
10942
|
p && i.value && (p.unobserve(i.value), p.disconnect(), p = null), l && (l.destroy(), l = null);
|
|
10941
10943
|
}), t({ sqlFormatter: h }), (g, b) => (R(), D("div", {
|
|
10942
10944
|
ref_key: "codeWraperRef",
|
|
@@ -11062,7 +11064,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11062
11064
|
}), em = Qy, tm = /* @__PURE__ */ ye({
|
|
11063
11065
|
name: "JSliderCaptcha",
|
|
11064
11066
|
__name: "slider-captcha",
|
|
11065
|
-
props: /* @__PURE__ */
|
|
11067
|
+
props: /* @__PURE__ */ Ho({
|
|
11066
11068
|
class: {},
|
|
11067
11069
|
actionStyle: { default: () => ({}) },
|
|
11068
11070
|
barStyle: { default: () => ({}) },
|
|
@@ -11077,14 +11079,14 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11077
11079
|
},
|
|
11078
11080
|
modelModifiers: {}
|
|
11079
11081
|
}),
|
|
11080
|
-
emits: /* @__PURE__ */
|
|
11082
|
+
emits: /* @__PURE__ */ Ho([
|
|
11081
11083
|
"end",
|
|
11082
11084
|
"move",
|
|
11083
11085
|
"start",
|
|
11084
11086
|
"success"
|
|
11085
11087
|
], ["update:modelValue"]),
|
|
11086
11088
|
setup(e, { emit: t }) {
|
|
11087
|
-
const n = e, a = t, o =
|
|
11089
|
+
const n = e, a = t, o = Oo(e, "modelValue"), i = ra({
|
|
11088
11090
|
endTime: 0,
|
|
11089
11091
|
isMoving: !1,
|
|
11090
11092
|
isPassing: !1,
|
|
@@ -11206,7 +11208,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11206
11208
|
"max-height": "calc(100vh - 80px)",
|
|
11207
11209
|
"border-radius": "8px"
|
|
11208
11210
|
}
|
|
11209
|
-
}, J(u)), [B("div", ja(
|
|
11211
|
+
}, J(u)), [B("div", ja(Lo(J(h))), [(R(!0), D(Me, null, Ie(J(f), (b) => (R(), N(Wi, {
|
|
11210
11212
|
key: b.data.value,
|
|
11211
11213
|
"parent-actives": J(r)?.pid?.split(".") || [],
|
|
11212
11214
|
item: b.data,
|
|
@@ -11351,7 +11353,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11351
11353
|
return (d, f) => (R(), D("div", Ue({ class: ["j-menu", {
|
|
11352
11354
|
collapsed: e.collapsed,
|
|
11353
11355
|
"j-menu-dark": J(i) === "dark"
|
|
11354
|
-
}] }, J(c)), [B("div", ja(
|
|
11356
|
+
}] }, J(c)), [B("div", ja(Lo(J(s))), [(R(!0), D(Me, null, Ie(J(l), (u) => (R(), N(Wi, {
|
|
11355
11357
|
key: u.data.value,
|
|
11356
11358
|
"parent-actives": J(o)?.pid?.split(".") || [],
|
|
11357
11359
|
item: u.data,
|
|
@@ -11379,7 +11381,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11379
11381
|
setup(e, { emit: t }) {
|
|
11380
11382
|
const n = e, a = t, { activeMenu: o, theme: i } = No(), r = L(), l = L(0);
|
|
11381
11383
|
let c = null;
|
|
11382
|
-
|
|
11384
|
+
Tt(() => {
|
|
11383
11385
|
typeof window < "u" && window.ResizeObserver && r.value && (c = new ResizeObserver(() => {
|
|
11384
11386
|
r.value && (l.value = r.value.offsetWidth);
|
|
11385
11387
|
}), c.observe(r.value));
|
|
@@ -11414,7 +11416,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11414
11416
|
}), u = (h) => {
|
|
11415
11417
|
a("click", h);
|
|
11416
11418
|
};
|
|
11417
|
-
return Th({ getHMoreMenus: d }),
|
|
11419
|
+
return Th({ getHMoreMenus: d }), Do(() => {
|
|
11418
11420
|
c && r.value && (c.unobserve(r.value), c.disconnect(), c = null);
|
|
11419
11421
|
}), (h, p) => (R(), D("div", {
|
|
11420
11422
|
ref_key: "menuRef",
|
|
@@ -11449,7 +11451,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11449
11451
|
}), n.menuList)), c = H(() => o.value?.pid?.split(".") || []), s = (h) => {
|
|
11450
11452
|
a("click", h);
|
|
11451
11453
|
}, { list: d, containerProps: f, wrapperProps: u } = Vr(l, { itemHeight: 96 });
|
|
11452
|
-
return (h, p) => (R(), D("div", Ue({ class: ["j-menu-vertical", { "j-menu-dark": J(i) === "dark" }] }, J(f)), [B("div", ja(
|
|
11454
|
+
return (h, p) => (R(), D("div", Ue({ class: ["j-menu-vertical", { "j-menu-dark": J(i) === "dark" }] }, J(f)), [B("div", ja(Lo(J(u))), [(R(!0), D(Me, null, Ie(J(d), (g) => (R(), N(Wi, {
|
|
11453
11455
|
key: g.data.value,
|
|
11454
11456
|
"parent-actives": c.value,
|
|
11455
11457
|
item: g.data,
|
|
@@ -11583,7 +11585,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11583
11585
|
}, Cm = /* @__PURE__ */ ye({
|
|
11584
11586
|
name: "JKeywordPanel",
|
|
11585
11587
|
__name: "keyword-panel",
|
|
11586
|
-
props: /* @__PURE__ */
|
|
11588
|
+
props: /* @__PURE__ */ Ho({ columns: {
|
|
11587
11589
|
type: Array,
|
|
11588
11590
|
default: () => []
|
|
11589
11591
|
} }, {
|
|
@@ -11594,7 +11596,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11594
11596
|
}),
|
|
11595
11597
|
emits: ["update:checkAll", "update:checkFields"],
|
|
11596
11598
|
setup(e, { expose: t }) {
|
|
11597
|
-
const { t: n } = mt(), a = e, o =
|
|
11599
|
+
const { t: n } = mt(), a = e, o = Oo(e, "checkAll"), i = Oo(e, "checkFields"), r = L(!1), l = L(""), c = H(() => a.columns.filter((u) => u.config?.filter?.isSearchKeyword ? l.value ? u.config?.label?.indexOf(l.value) != -1 : !0 : !1).map((u) => ({
|
|
11598
11600
|
label: u.config?.label,
|
|
11599
11601
|
value: u.id
|
|
11600
11602
|
}))), s = () => {
|
|
@@ -11651,7 +11653,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11651
11653
|
}, Tm = { class: "relation" }, Am = { style: { width: "72px" } }, Mm = { class: "btn-wrapper" }, jm = { class: "field-wrapper" }, Pm = { class: "buttons" }, Bm = /* @__PURE__ */ ye({
|
|
11652
11654
|
name: "JFilterPanel",
|
|
11653
11655
|
__name: "filter-panel",
|
|
11654
|
-
props: /* @__PURE__ */
|
|
11656
|
+
props: /* @__PURE__ */ Ho({
|
|
11655
11657
|
columns: {
|
|
11656
11658
|
type: Array,
|
|
11657
11659
|
default: () => []
|
|
@@ -11670,9 +11672,9 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11670
11672
|
isPin: { default: !1 },
|
|
11671
11673
|
isPinModifiers: {}
|
|
11672
11674
|
}),
|
|
11673
|
-
emits: /* @__PURE__ */
|
|
11675
|
+
emits: /* @__PURE__ */ Ho(["filter", "close"], ["update:relation", "update:isPin"]),
|
|
11674
11676
|
setup(e, { expose: t, emit: n }) {
|
|
11675
|
-
const { t: a } = mt(), o = e, i =
|
|
11677
|
+
const { t: a } = mt(), o = e, i = Oo(e, "relation"), r = Oo(e, "isPin"), l = L([]), c = L([]), s = () => {
|
|
11676
11678
|
r.value = !r.value;
|
|
11677
11679
|
}, d = [
|
|
11678
11680
|
{
|
|
@@ -11944,7 +11946,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11944
11946
|
}
|
|
11945
11947
|
}
|
|
11946
11948
|
];
|
|
11947
|
-
|
|
11949
|
+
Tt(() => {
|
|
11948
11950
|
c.value = o.searchFieldList, l.value = o.searchList;
|
|
11949
11951
|
});
|
|
11950
11952
|
const f = H(() => o.columns.filter((C) => !C.children?.length && !C.config?.isNotFilter).map((C) => ({
|
|
@@ -11969,7 +11971,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
11969
11971
|
c.value.forEach((C) => {
|
|
11970
11972
|
C.value = void 0;
|
|
11971
11973
|
}), p("filter");
|
|
11972
|
-
}, w = () => c.value, m =
|
|
11974
|
+
}, w = () => c.value, m = Fo();
|
|
11973
11975
|
return t({
|
|
11974
11976
|
getSearchFields: w,
|
|
11975
11977
|
getFixedSearchData: () => m.value?.getFormData() || {}
|
|
@@ -12405,7 +12407,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12405
12407
|
},
|
|
12406
12408
|
emits: ["select", "ready"],
|
|
12407
12409
|
setup(e, { expose: t, emit: n }) {
|
|
12408
|
-
const { t: a } = mt(), { openLayer: o } =
|
|
12410
|
+
const { t: a } = mt(), { openLayer: o } = oo(), i = e, r = n;
|
|
12409
12411
|
i.isMultiple && !i.rowKey && console.warn("rowKey is required when isMultiple is true");
|
|
12410
12412
|
const l = L();
|
|
12411
12413
|
let c = [];
|
|
@@ -12492,16 +12494,16 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12492
12494
|
Ot.value = ht.value?.clientWidth || 0;
|
|
12493
12495
|
};
|
|
12494
12496
|
let un;
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
+
Tt(() => {
|
|
12498
|
+
Et(It), un = new ResizeObserver(() => {
|
|
12497
12499
|
It();
|
|
12498
12500
|
}), ht.value && un.observe(ht.value);
|
|
12499
|
-
}),
|
|
12501
|
+
}), zo(() => {
|
|
12500
12502
|
un?.disconnect();
|
|
12501
12503
|
}), it(() => on.value, () => {
|
|
12502
|
-
|
|
12504
|
+
Et(It);
|
|
12503
12505
|
}, { deep: !0 }), it(Ge, () => {
|
|
12504
|
-
|
|
12506
|
+
Et(It);
|
|
12505
12507
|
});
|
|
12506
12508
|
const Zn = H(() => {
|
|
12507
12509
|
const de = on.value;
|
|
@@ -12528,15 +12530,15 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12528
12530
|
notLabel: !0
|
|
12529
12531
|
},
|
|
12530
12532
|
children: []
|
|
12531
|
-
},
|
|
12532
|
-
let
|
|
12533
|
+
}, jt = 28, Ft = [];
|
|
12534
|
+
let Pt = 0, Kt = null;
|
|
12533
12535
|
for (let Dt = 0; Dt < de.length; Dt++) {
|
|
12534
12536
|
const dn = de[Dt], Qt = zt(dn, Dt);
|
|
12535
|
-
let pn =
|
|
12537
|
+
let pn = Pt;
|
|
12536
12538
|
Kt !== null && (pn += Qt === Kt ? -1 : 8), pn += Ce(dn);
|
|
12537
|
-
const Ua = de.length - (Dt + 1) > 0 ? (pn > 0 ? 8 : 0) +
|
|
12539
|
+
const Ua = de.length - (Dt + 1) > 0 ? (pn > 0 ? 8 : 0) + jt : 0;
|
|
12538
12540
|
if (pn + Ua <= vt)
|
|
12539
|
-
Ft.push(dn),
|
|
12541
|
+
Ft.push(dn), Pt = pn, Kt = Qt;
|
|
12540
12542
|
else break;
|
|
12541
12543
|
}
|
|
12542
12544
|
const $e = de.slice(Ft.length);
|
|
@@ -12620,9 +12622,9 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12620
12622
|
if (b.value) Ce = de;
|
|
12621
12623
|
else if (!i.rowKey) Ce = de;
|
|
12622
12624
|
else {
|
|
12623
|
-
const lt = new Map(de.map((
|
|
12624
|
-
c.forEach((
|
|
12625
|
-
const Ft = C(
|
|
12625
|
+
const lt = new Map(de.map((jt) => [C(jt), jt])), Wt = new Map(p.value.map((jt) => [C(jt), jt]));
|
|
12626
|
+
c.forEach((jt) => {
|
|
12627
|
+
const Ft = C(jt);
|
|
12626
12628
|
lt.has(Ft) ? Wt.set(Ft, lt.get(Ft)) : Wt.delete(Ft);
|
|
12627
12629
|
}), Ce = Array.from(Wt.values());
|
|
12628
12630
|
}
|
|
@@ -12644,7 +12646,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12644
12646
|
}, Be = () => p.value || [], Le = (de) => {
|
|
12645
12647
|
p.value = de, l.value?.setSelection?.(de);
|
|
12646
12648
|
}, at = () => l.value;
|
|
12647
|
-
return
|
|
12649
|
+
return Tt(async () => {
|
|
12648
12650
|
i.immediate && await _a();
|
|
12649
12651
|
}), t({
|
|
12650
12652
|
refreshData: _a,
|
|
@@ -12656,7 +12658,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12656
12658
|
},
|
|
12657
12659
|
getTableRef: at
|
|
12658
12660
|
}), (de, Se) => {
|
|
12659
|
-
const vt = V("j-buttons"), zt = V("j-icon"), Ce = V("el-popover"), lt = V("el-tooltip"), Wt = V("el-input"),
|
|
12661
|
+
const vt = V("j-buttons"), zt = V("j-icon"), Ce = V("el-popover"), lt = V("el-tooltip"), Wt = V("el-input"), jt = V("j-button"), Ft = V("el-pagination"), Pt = V("j-table"), Kt = $o("loading");
|
|
12660
12662
|
return R(), D("div", { class: We(["j-table-panel-wrapper", {
|
|
12661
12663
|
fullscreen: Ge.value,
|
|
12662
12664
|
"no-padding": e.noPadding || Ge.value
|
|
@@ -12723,7 +12725,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12723
12725
|
persistent: !1,
|
|
12724
12726
|
onHide: rn
|
|
12725
12727
|
}, {
|
|
12726
|
-
reference: q(() => [Z(
|
|
12728
|
+
reference: q(() => [Z(jt, {
|
|
12727
12729
|
icon: "mdi:filter-outline",
|
|
12728
12730
|
label: "筛选",
|
|
12729
12731
|
type: "text",
|
|
@@ -12764,7 +12766,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12764
12766
|
trigger: "click",
|
|
12765
12767
|
onShow: je
|
|
12766
12768
|
}, {
|
|
12767
|
-
reference: q(() => [Z(
|
|
12769
|
+
reference: q(() => [Z(jt, {
|
|
12768
12770
|
class: We({ active: P.value.length > 0 }),
|
|
12769
12771
|
type: "text",
|
|
12770
12772
|
icon: "mdi:sort"
|
|
@@ -12794,7 +12796,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12794
12796
|
trigger: "click",
|
|
12795
12797
|
onShow: ie
|
|
12796
12798
|
}, {
|
|
12797
|
-
reference: q(() => [Z(
|
|
12799
|
+
reference: q(() => [Z(jt, {
|
|
12798
12800
|
class: We({ active: ee.value }),
|
|
12799
12801
|
type: "text",
|
|
12800
12802
|
icon: "mdi:table-headers-eye"
|
|
@@ -12815,7 +12817,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12815
12817
|
placement: "bottom",
|
|
12816
12818
|
content: J(a)("刷新")
|
|
12817
12819
|
}, {
|
|
12818
|
-
default: q(() => [Z(
|
|
12820
|
+
default: q(() => [Z(jt, {
|
|
12819
12821
|
type: "text",
|
|
12820
12822
|
icon: "mdi:refresh",
|
|
12821
12823
|
onClick: G
|
|
@@ -12827,7 +12829,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12827
12829
|
placement: "bottom",
|
|
12828
12830
|
content: Ge.value ? J(a)("退出全屏") : J(a)("全屏")
|
|
12829
12831
|
}, {
|
|
12830
|
-
default: q(() => [Z(
|
|
12832
|
+
default: q(() => [Z(jt, {
|
|
12831
12833
|
type: "text",
|
|
12832
12834
|
icon: Ge.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
|
|
12833
12835
|
onClick: rt
|
|
@@ -12864,7 +12866,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
12864
12866
|
"page-size",
|
|
12865
12867
|
"page-sizes",
|
|
12866
12868
|
"total"
|
|
12867
|
-
])])) : ne("", !0)], 2)) : (R(), N(
|
|
12869
|
+
])])) : ne("", !0)], 2)) : (R(), N(Pt, {
|
|
12868
12870
|
key: 1,
|
|
12869
12871
|
ref_key: "tableRef",
|
|
12870
12872
|
ref: l,
|
|
@@ -13122,7 +13124,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
13122
13124
|
d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({
|
|
13123
13125
|
type: "j-tree",
|
|
13124
13126
|
config: a
|
|
13125
|
-
}), d.value = !1,
|
|
13127
|
+
}), d.value = !1, Et(() => {
|
|
13126
13128
|
a.afterLoadData && a.afterLoadData(g.value || []);
|
|
13127
13129
|
});
|
|
13128
13130
|
}, x = (O, M = !0) => {
|
|
@@ -13150,7 +13152,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
13150
13152
|
buttons: M,
|
|
13151
13153
|
node: O
|
|
13152
13154
|
}) : M;
|
|
13153
|
-
}, { openLayer: k } =
|
|
13155
|
+
}, { openLayer: k } = oo(), T = (O, M) => {
|
|
13154
13156
|
O.config?.disabled || O.click && O.click({
|
|
13155
13157
|
data: M,
|
|
13156
13158
|
openLayer: k
|
|
@@ -13158,7 +13160,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
13158
13160
|
}, A = L(""), j = (O, M) => {
|
|
13159
13161
|
A.value = O ? M.value : "";
|
|
13160
13162
|
}, z = (O, M, E) => a.allowDrop ? a.allowDrop(O, M, E) : !(E == "inner" && !M.data.canInner);
|
|
13161
|
-
return
|
|
13163
|
+
return Tt(async () => {
|
|
13162
13164
|
(a.immediate && a.loadData || a.dataType || a.dataCode) && await b();
|
|
13163
13165
|
}), it(() => a.dataCode || a.dataType, () => {
|
|
13164
13166
|
b();
|
|
@@ -13169,7 +13171,7 @@ var Yp = /* @__PURE__ */ ye({
|
|
|
13169
13171
|
setCheck: m,
|
|
13170
13172
|
getCheck: y
|
|
13171
13173
|
}), (O, M) => {
|
|
13172
|
-
const E = V("j-icon"), F = V("j-button"), X = V("el-dropdown-item"), ue = V("el-dropdown-menu"), _e = V("el-dropdown"), U = V("el-tree"), K = V("el-empty"), Q =
|
|
13174
|
+
const E = V("j-icon"), F = V("j-button"), X = V("el-dropdown-item"), ue = V("el-dropdown-menu"), _e = V("el-dropdown"), U = V("el-tree"), K = V("el-empty"), Q = $o("loading");
|
|
13173
13175
|
return la((R(), D("div", {
|
|
13174
13176
|
class: We([
|
|
13175
13177
|
"j-block",
|
|
@@ -13525,11 +13527,11 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13525
13527
|
});
|
|
13526
13528
|
}, te = async (G, pe) => {
|
|
13527
13529
|
const re = ++E, le = b.value;
|
|
13528
|
-
b.value = !1, le && await
|
|
13530
|
+
b.value = !1, le && await Et();
|
|
13529
13531
|
const me = !!pe;
|
|
13530
|
-
if (S.length = 0, T = /* @__PURE__ */ Object.create(null), A = /* @__PURE__ */ Object.create(null), j = [], je = pe,
|
|
13532
|
+
if (S.length = 0, T = /* @__PURE__ */ Object.create(null), A = /* @__PURE__ */ Object.create(null), j = [], je = pe, Mo(v), Mo(k), me && qe(pe, ""), Ze(G, S, me), O = _e(), M = !1, z = O, ue(() => {
|
|
13531
13533
|
re === E && (z = Yt(O), M = !0);
|
|
13532
|
-
}), b.value = !0, await
|
|
13534
|
+
}), b.value = !0, await Et(), await X(), a.config?.codeInit) {
|
|
13533
13535
|
const Be = a.config.codeInit;
|
|
13534
13536
|
let Le;
|
|
13535
13537
|
F?.raw === Be ? Le = F.obj : (Le = JSON.parse(Be), F = {
|
|
@@ -13643,7 +13645,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13643
13645
|
const G = await nn();
|
|
13644
13646
|
return Object.keys(G).length > 0 ? (_.value = G, g(`${h(k[Object.keys(G)[0]]?.config?.label)}:${h(G[Object.keys(G)[0]].msg)}`), !1) : !0;
|
|
13645
13647
|
}, on = () => {
|
|
13646
|
-
_.value = {}, U(),
|
|
13648
|
+
_.value = {}, U(), Mo(v), Object.keys(z || {}).forEach((G) => {
|
|
13647
13649
|
v[G] = z[G];
|
|
13648
13650
|
});
|
|
13649
13651
|
}, ht = (G) => {
|
|
@@ -13776,7 +13778,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13776
13778
|
const pe = Nt[G];
|
|
13777
13779
|
pe && (delete Nt[G], await Lt(pe.data, pe.inputParams));
|
|
13778
13780
|
}
|
|
13779
|
-
}), Lc({ contextType: "form" }), t({
|
|
13781
|
+
}), Lc({ contextType: "form" }), ao({}), t({
|
|
13780
13782
|
init: te,
|
|
13781
13783
|
reset: on,
|
|
13782
13784
|
validate: an,
|
|
@@ -13850,12 +13852,12 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13850
13852
|
i[y.id] = C, C.config = [], ji(C.config, y.config || {}, ["defaultValue"]), y?.config?.defaultValue !== void 0 && (r[y.id] = y.config.defaultValue), m.push(C), v && v.length > 0 && (C.children = [], l(v, C.children));
|
|
13851
13853
|
});
|
|
13852
13854
|
}, c = (w) => {
|
|
13853
|
-
a.value = !1, o.splice(0, o.length),
|
|
13855
|
+
a.value = !1, o.splice(0, o.length), Mo(i), Mo(r), l(w, o), Et(() => {
|
|
13854
13856
|
a.value = !0;
|
|
13855
13857
|
});
|
|
13856
13858
|
};
|
|
13857
13859
|
n.schema && c(n.schema);
|
|
13858
|
-
const { openLayer: s } =
|
|
13860
|
+
const { openLayer: s } = oo(), d = {}, f = async (w, m) => {
|
|
13859
13861
|
const { run: y } = Wc({
|
|
13860
13862
|
data: w,
|
|
13861
13863
|
actions: n.actions,
|
|
@@ -13971,7 +13973,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13971
13973
|
size: { default: "default" }
|
|
13972
13974
|
},
|
|
13973
13975
|
setup(e) {
|
|
13974
|
-
const { openLayer: t } =
|
|
13976
|
+
const { openLayer: t } = oo(), n = (a) => {
|
|
13975
13977
|
a.config?.disabled || a.click && a.click({ openLayer: t });
|
|
13976
13978
|
};
|
|
13977
13979
|
return (a, o) => {
|
|
@@ -14128,7 +14130,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14128
14130
|
}, y = (v) => {
|
|
14129
14131
|
o("rowChange", v);
|
|
14130
14132
|
};
|
|
14131
|
-
|
|
14133
|
+
Tt(() => {
|
|
14132
14134
|
if (!f.value || !h.value) return;
|
|
14133
14135
|
const v = h.value, { initSortable: _ } = Ch(v, {
|
|
14134
14136
|
handle: ".j-input-rows-drag",
|
|
@@ -14149,7 +14151,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14149
14151
|
_();
|
|
14150
14152
|
});
|
|
14151
14153
|
const { row: C } = Ni();
|
|
14152
|
-
return
|
|
14154
|
+
return ao({
|
|
14153
14155
|
getTableData: () => g.value,
|
|
14154
14156
|
rowChange: y,
|
|
14155
14157
|
pRowData: C
|
|
@@ -14286,7 +14288,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14286
14288
|
data: void 0
|
|
14287
14289
|
});
|
|
14288
14290
|
}, p = async ({ checked: w }) => {
|
|
14289
|
-
s.value && w && (await
|
|
14291
|
+
s.value && w && (await Et(), await g());
|
|
14290
14292
|
}, g = async () => {
|
|
14291
14293
|
if (!l.value) return;
|
|
14292
14294
|
const w = l.value.getSelection();
|
|
@@ -14589,7 +14591,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14589
14591
|
}), c = (s) => {
|
|
14590
14592
|
a("change", s);
|
|
14591
14593
|
};
|
|
14592
|
-
return
|
|
14594
|
+
return Tt(() => {
|
|
14593
14595
|
n.autoFocus && !n.readonly && setTimeout(() => {
|
|
14594
14596
|
const s = l.value === i.value ? r.value : i.value;
|
|
14595
14597
|
l.value = s, c(s);
|
|
@@ -14815,7 +14817,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14815
14817
|
},
|
|
14816
14818
|
emits: ["update:value", "change"],
|
|
14817
14819
|
setup(e, { emit: t }) {
|
|
14818
|
-
const n = e, a = t, o = L(), i = L(), r =
|
|
14820
|
+
const n = e, a = t, o = L(), i = L(), r = Fo(), l = H(() => ({
|
|
14819
14821
|
height: typeof n.height == "number" ? `${n.height}px` : n.height,
|
|
14820
14822
|
overflowY: "hidden"
|
|
14821
14823
|
}));
|
|
@@ -14833,7 +14835,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14833
14835
|
}
|
|
14834
14836
|
return u;
|
|
14835
14837
|
};
|
|
14836
|
-
return
|
|
14838
|
+
return Tt(() => {
|
|
14837
14839
|
const f = {
|
|
14838
14840
|
placeholder: n.placeholder || "请输入内容...",
|
|
14839
14841
|
readOnly: n.readonly,
|
|
@@ -14865,7 +14867,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14865
14867
|
}), it(() => n.readonly, (f) => {
|
|
14866
14868
|
const u = r.value;
|
|
14867
14869
|
u && (f ? u.disable() : u.enable());
|
|
14868
|
-
}),
|
|
14870
|
+
}), zo(() => {
|
|
14869
14871
|
const f = r.value;
|
|
14870
14872
|
f?.destroy();
|
|
14871
14873
|
}), (f, u) => (R(), D("div", h0, [B("div", {
|
|
@@ -14961,7 +14963,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14961
14963
|
x(m);
|
|
14962
14964
|
} })), p.search(b));
|
|
14963
14965
|
}
|
|
14964
|
-
}),
|
|
14966
|
+
}), Tt(() => {
|
|
14965
14967
|
f();
|
|
14966
14968
|
}), (b, x) => (R(), D("div", {
|
|
14967
14969
|
class: "j-map",
|
|
@@ -15110,7 +15112,7 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15110
15112
|
"size",
|
|
15111
15113
|
"clearable"
|
|
15112
15114
|
]),
|
|
15113
|
-
B("div", ja(
|
|
15115
|
+
B("div", ja(Lo(y.$attrs)), null, 16),
|
|
15114
15116
|
Z(k, {
|
|
15115
15117
|
ref_key: "layerRef",
|
|
15116
15118
|
ref: i,
|
|
@@ -15137,11 +15139,11 @@ var Wc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15137
15139
|
function Zl(e) {
|
|
15138
15140
|
!e || typeof e.stopPropagation != "function" || e.stopPropagation();
|
|
15139
15141
|
}
|
|
15140
|
-
function
|
|
15142
|
+
function io(e) {
|
|
15141
15143
|
return e.originalEvent || e.srcEvent;
|
|
15142
15144
|
}
|
|
15143
15145
|
function ur(e) {
|
|
15144
|
-
Zl(e), Zl(
|
|
15146
|
+
Zl(e), Zl(io(e));
|
|
15145
15147
|
}
|
|
15146
15148
|
function to(e) {
|
|
15147
15149
|
return e.pointers && e.pointers.length && (e = e.pointers[0]), e.touches && e.touches.length && (e = e.touches[0]), e ? {
|
|
@@ -15199,7 +15201,7 @@ function Yc() {
|
|
|
15199
15201
|
return /mac/i.test(navigator.platform);
|
|
15200
15202
|
}
|
|
15201
15203
|
function Jc(e, t) {
|
|
15202
|
-
return (
|
|
15204
|
+
return (io(e) || e).button === t;
|
|
15203
15205
|
}
|
|
15204
15206
|
function ca(e) {
|
|
15205
15207
|
return Jc(e, 0);
|
|
@@ -15208,11 +15210,11 @@ function R0(e) {
|
|
|
15208
15210
|
return Jc(e, 1);
|
|
15209
15211
|
}
|
|
15210
15212
|
function es(e) {
|
|
15211
|
-
var t =
|
|
15213
|
+
var t = io(e) || e;
|
|
15212
15214
|
return ca(e) ? Yc() ? t.metaKey : t.ctrlKey : !1;
|
|
15213
15215
|
}
|
|
15214
15216
|
function Er(e) {
|
|
15215
|
-
var t =
|
|
15217
|
+
var t = io(e) || e;
|
|
15216
15218
|
return ca(e) && t.shiftKey;
|
|
15217
15219
|
}
|
|
15218
15220
|
function Wo(e) {
|
|
@@ -15272,9 +15274,9 @@ function Tr(e, t) {
|
|
|
15272
15274
|
return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2));
|
|
15273
15275
|
}
|
|
15274
15276
|
function el(e, t, n) {
|
|
15275
|
-
|
|
15277
|
+
Ht(t) && (n = t, t = null), t || (t = {});
|
|
15276
15278
|
const a = Xe("path", t);
|
|
15277
|
-
return
|
|
15279
|
+
return Ht(n) && (a.dataset.cornerRadius = String(n)), Gc(a, e);
|
|
15278
15280
|
}
|
|
15279
15281
|
function Gc(e, t) {
|
|
15280
15282
|
return ze(e, { d: Wo(A0(t, parseInt(e.dataset.cornerRadius, 10) || 0)) }), e;
|
|
@@ -15426,7 +15428,7 @@ var tl = {
|
|
|
15426
15428
|
__init__: ["interactionEvents"],
|
|
15427
15429
|
interactionEvents: ["type", Kc]
|
|
15428
15430
|
};
|
|
15429
|
-
function
|
|
15431
|
+
function ro(e, t) {
|
|
15430
15432
|
this._eventBus = e, this._canvas = t, this._selectedElements = [];
|
|
15431
15433
|
var n = this;
|
|
15432
15434
|
e.on(["shape.remove", "connection.remove"], function(a) {
|
|
@@ -15436,8 +15438,8 @@ function io(e, t) {
|
|
|
15436
15438
|
n.select(null);
|
|
15437
15439
|
});
|
|
15438
15440
|
}
|
|
15439
|
-
|
|
15440
|
-
|
|
15441
|
+
ro.$inject = ["eventBus", "canvas"];
|
|
15442
|
+
ro.prototype.deselect = function(e) {
|
|
15441
15443
|
var t = this._selectedElements, n = t.indexOf(e);
|
|
15442
15444
|
if (n !== -1) {
|
|
15443
15445
|
var a = t.slice();
|
|
@@ -15447,13 +15449,13 @@ io.prototype.deselect = function(e) {
|
|
|
15447
15449
|
});
|
|
15448
15450
|
}
|
|
15449
15451
|
};
|
|
15450
|
-
|
|
15452
|
+
ro.prototype.get = function() {
|
|
15451
15453
|
return this._selectedElements;
|
|
15452
15454
|
};
|
|
15453
|
-
|
|
15455
|
+
ro.prototype.isSelected = function(e) {
|
|
15454
15456
|
return this._selectedElements.indexOf(e) !== -1;
|
|
15455
15457
|
};
|
|
15456
|
-
|
|
15458
|
+
ro.prototype.select = function(e, t) {
|
|
15457
15459
|
var n = this._selectedElements, a = n.slice();
|
|
15458
15460
|
ft(e) || (e = e ? [e] : []);
|
|
15459
15461
|
var o = this._canvas, i = o.getRootElement();
|
|
@@ -15529,10 +15531,10 @@ Xc.$inject = [
|
|
|
15529
15531
|
function j0(e) {
|
|
15530
15532
|
return !e.hidden;
|
|
15531
15533
|
}
|
|
15532
|
-
var
|
|
15534
|
+
var lo = {
|
|
15533
15535
|
__init__: ["selectionVisuals", "selectionBehavior"],
|
|
15534
15536
|
__depends__: [tl],
|
|
15535
|
-
selection: ["type",
|
|
15537
|
+
selection: ["type", ro],
|
|
15536
15538
|
selectionVisuals: ["type", qc],
|
|
15537
15539
|
selectionBehavior: ["type", Xc]
|
|
15538
15540
|
}, P0 = /^djs-cursor-.*$/;
|
|
@@ -15661,7 +15663,7 @@ function nu(e, t, n, a) {
|
|
|
15661
15663
|
function w(m, y, C, v) {
|
|
15662
15664
|
i && b(!1), typeof y == "string" && (v = C, C = y, y = null), v = De({}, o, v || {});
|
|
15663
15665
|
var _ = v.data || {}, S, k, T, A, j;
|
|
15664
|
-
v.trapClick ? A = u : A = d, m ? (S =
|
|
15666
|
+
v.trapClick ? A = u : A = d, m ? (S = io(m) || m, k = to(m), ur(m), S.type === "dragstart" && Sa(S)) : (S = null, k = {
|
|
15665
15667
|
x: 0,
|
|
15666
15668
|
y: 0
|
|
15667
15669
|
}), T = r(k), y || (y = T), j = H0(S), i = De({
|
|
@@ -15687,7 +15689,7 @@ nu.$inject = [
|
|
|
15687
15689
|
"elementRegistry"
|
|
15688
15690
|
];
|
|
15689
15691
|
var La = {
|
|
15690
|
-
__depends__: [k0,
|
|
15692
|
+
__depends__: [k0, lo],
|
|
15691
15693
|
dragging: ["type", nu]
|
|
15692
15694
|
};
|
|
15693
15695
|
function Ar(e) {
|
|
@@ -15793,7 +15795,7 @@ ol.prototype.allowed = function(e, t) {
|
|
|
15793
15795
|
var n = !0, a = this._commandStack;
|
|
15794
15796
|
return a && (n = a.canExecute(e, t)), n === void 0 ? !0 : n;
|
|
15795
15797
|
};
|
|
15796
|
-
var
|
|
15798
|
+
var so = {
|
|
15797
15799
|
__init__: ["rules"],
|
|
15798
15800
|
rules: ["type", ol]
|
|
15799
15801
|
};
|
|
@@ -15835,7 +15837,7 @@ function U0(e, t) {
|
|
|
15835
15837
|
}
|
|
15836
15838
|
function Y0(e, t, n) {
|
|
15837
15839
|
_f(t) && (t = !0), bn(t) && (n = t, t = !0), n = n || {};
|
|
15838
|
-
var a =
|
|
15840
|
+
var a = bo(n.allShapes), o = bo(n.allConnections), i = bo(n.enclosedElements), r = bo(n.enclosedConnections), l = bo(n.topLevel, t && Yr(e, function(d) {
|
|
15839
15841
|
return d.id;
|
|
15840
15842
|
}));
|
|
15841
15843
|
function c(d) {
|
|
@@ -15873,7 +15875,7 @@ function ou(e, t) {
|
|
|
15873
15875
|
var n = {};
|
|
15874
15876
|
return ge(e, function(a) {
|
|
15875
15877
|
var o = a;
|
|
15876
|
-
o.waypoints && (o = zn(o)), !
|
|
15878
|
+
o.waypoints && (o = zn(o)), !Ht(t.y) && o.x > t.x && (n[a.id] = a), !Ht(t.x) && o.y > t.y && (n[a.id] = a), o.x > t.x && o.y > t.y && (Ht(t.width) && Ht(t.height) && o.width + o.x < t.width + t.x && o.height + o.y < t.height + t.y || !Ht(t.width) || !Ht(t.height)) && (n[a.id] = a);
|
|
15877
15879
|
}), n;
|
|
15878
15880
|
}
|
|
15879
15881
|
function J0(e) {
|
|
@@ -15882,7 +15884,7 @@ function J0(e) {
|
|
|
15882
15884
|
function G0(e) {
|
|
15883
15885
|
return !!(e && e.isFrame);
|
|
15884
15886
|
}
|
|
15885
|
-
function
|
|
15887
|
+
function bo(e, t) {
|
|
15886
15888
|
return De({}, e || {}, t || {});
|
|
15887
15889
|
}
|
|
15888
15890
|
function tn(e) {
|
|
@@ -15999,13 +16001,13 @@ function iu(e, t, n, a, o) {
|
|
|
15999
16001
|
hints: {},
|
|
16000
16002
|
shape: f
|
|
16001
16003
|
}, d || {}), ge(s, function(h) {
|
|
16002
|
-
|
|
16004
|
+
Ht(h.x) || (h.x = 0), Ht(h.y) || (h.y = 0);
|
|
16003
16005
|
});
|
|
16004
16006
|
var u = zn(mn(s, function(h) {
|
|
16005
16007
|
return !h.hidden;
|
|
16006
16008
|
}));
|
|
16007
16009
|
ge(s, function(h) {
|
|
16008
|
-
tn(h) && (h.waypoints =
|
|
16010
|
+
tn(h) && (h.waypoints = Vo(h.waypoints, function(p) {
|
|
16009
16011
|
return {
|
|
16010
16012
|
x: p.x - u.x - u.width / 2,
|
|
16011
16013
|
y: p.y - u.y - u.height / 2
|
|
@@ -16041,11 +16043,11 @@ function fs(e) {
|
|
|
16041
16043
|
return e && e.length === 1 && !tn(e[0]);
|
|
16042
16044
|
}
|
|
16043
16045
|
function X0(e, t, n, a, o) {
|
|
16044
|
-
var i =
|
|
16046
|
+
var i = Ao();
|
|
16045
16047
|
i.setTranslate(t, n);
|
|
16046
|
-
var r =
|
|
16048
|
+
var r = Ao();
|
|
16047
16049
|
r.setRotate(a || 0, 0, 0);
|
|
16048
|
-
var l =
|
|
16050
|
+
var l = Ao();
|
|
16049
16051
|
l.setScale(o || 1, o || 1), Kr(e, [
|
|
16050
16052
|
i,
|
|
16051
16053
|
r,
|
|
@@ -16053,11 +16055,11 @@ function X0(e, t, n, a, o) {
|
|
|
16053
16055
|
]);
|
|
16054
16056
|
}
|
|
16055
16057
|
function Ln(e, t, n) {
|
|
16056
|
-
var a =
|
|
16058
|
+
var a = Ao();
|
|
16057
16059
|
a.setTranslate(t, n), Kr(e, a);
|
|
16058
16060
|
}
|
|
16059
16061
|
function Z0(e, t) {
|
|
16060
|
-
var n =
|
|
16062
|
+
var n = Ao();
|
|
16061
16063
|
n.setRotate(t, 0, 0), Kr(e, n);
|
|
16062
16064
|
}
|
|
16063
16065
|
var Q0 = 750;
|
|
@@ -16092,8 +16094,8 @@ var lu = {
|
|
|
16092
16094
|
__depends__: [
|
|
16093
16095
|
La,
|
|
16094
16096
|
al,
|
|
16095
|
-
|
|
16096
|
-
|
|
16097
|
+
so,
|
|
16098
|
+
lo
|
|
16097
16099
|
],
|
|
16098
16100
|
__init__: ["create", "createPreview"],
|
|
16099
16101
|
create: ["type", iu],
|
|
@@ -16569,7 +16571,7 @@ function mw(e) {
|
|
|
16569
16571
|
height: Math.round(e.height)
|
|
16570
16572
|
};
|
|
16571
16573
|
}
|
|
16572
|
-
function
|
|
16574
|
+
function Po(e) {
|
|
16573
16575
|
return {
|
|
16574
16576
|
x: Math.round(e.x),
|
|
16575
16577
|
y: Math.round(e.y)
|
|
@@ -16592,7 +16594,7 @@ function uu(e) {
|
|
|
16592
16594
|
};
|
|
16593
16595
|
}
|
|
16594
16596
|
function bw(e) {
|
|
16595
|
-
return
|
|
16597
|
+
return Po({
|
|
16596
16598
|
x: e.x + (e.width || 0) / 2,
|
|
16597
16599
|
y: e.y + (e.height || 0) / 2
|
|
16598
16600
|
});
|
|
@@ -16633,10 +16635,10 @@ function sa(e, t, n) {
|
|
|
16633
16635
|
}
|
|
16634
16636
|
function Pr(e, t, n) {
|
|
16635
16637
|
var a = _w(e, t);
|
|
16636
|
-
return a.length === 1 || a.length === 2 && Uo(a[0], a[1]) < 1 ?
|
|
16638
|
+
return a.length === 1 || a.length === 2 && Uo(a[0], a[1]) < 1 ? Po(a[0]) : a.length > 1 ? (a = Io(a, function(o) {
|
|
16637
16639
|
var i = Math.floor(o.t2 * 100) || 1;
|
|
16638
16640
|
return i = 100 - i, i = (i < 10 ? "0" : "") + i, o.segment2 + "#" + i;
|
|
16639
|
-
}),
|
|
16641
|
+
}), Po(a[n ? 0 : a.length - 1])) : null;
|
|
16640
16642
|
}
|
|
16641
16643
|
function _w(e, t) {
|
|
16642
16644
|
return su(e, t);
|
|
@@ -16737,8 +16739,8 @@ fu.$inject = [
|
|
|
16737
16739
|
];
|
|
16738
16740
|
var sl = {
|
|
16739
16741
|
__depends__: [
|
|
16740
|
-
ro,
|
|
16741
16742
|
lo,
|
|
16743
|
+
so,
|
|
16742
16744
|
La
|
|
16743
16745
|
],
|
|
16744
16746
|
__init__: ["connectPreview"],
|
|
@@ -17046,7 +17048,7 @@ function Hw(e, t) {
|
|
|
17046
17048
|
};
|
|
17047
17049
|
}
|
|
17048
17050
|
Jt.prototype.on = function(e, t, n, a, o, i) {
|
|
17049
|
-
if ((In(t) ||
|
|
17051
|
+
if ((In(t) || Ht(t)) && (i = o, o = a, a = n, n = t, t = null), In(n) && (i = o, o = a, a = n, n = Bw), bn(o) && (i = o, o = !1), !In(a)) throw new Error("handlerFn must be a function");
|
|
17050
17052
|
ft(e) || (e = [e]);
|
|
17051
17053
|
var r = this._eventBus;
|
|
17052
17054
|
ge(e, function(l) {
|
|
@@ -17071,7 +17073,7 @@ Jt.prototype.revert = Kn("revert");
|
|
|
17071
17073
|
Jt.prototype.reverted = Kn("reverted");
|
|
17072
17074
|
function Kn(e) {
|
|
17073
17075
|
return function(n, a, o, i, r) {
|
|
17074
|
-
(In(n) ||
|
|
17076
|
+
(In(n) || Ht(n)) && (r = i, i = o, o = a, a = n, n = null), this.on(n, e, a, o, i, r);
|
|
17075
17077
|
};
|
|
17076
17078
|
}
|
|
17077
17079
|
var Ow = 250, Rs = 1400;
|
|
@@ -17229,7 +17231,7 @@ var fl = new wn({
|
|
|
17229
17231
|
name: "incoming",
|
|
17230
17232
|
collection: !0
|
|
17231
17233
|
}, { name: "target" });
|
|
17232
|
-
function
|
|
17234
|
+
function co() {
|
|
17233
17235
|
Object.defineProperty(this, "businessObject", { writable: !0 }), Object.defineProperty(this, "label", {
|
|
17234
17236
|
get: function() {
|
|
17235
17237
|
return this.labels[0];
|
|
@@ -17241,11 +17243,11 @@ function so() {
|
|
|
17241
17243
|
}), fl.bind(this, "parent"), _u.bind(this, "labels"), xu.bind(this, "outgoing"), Cu.bind(this, "incoming");
|
|
17242
17244
|
}
|
|
17243
17245
|
function Yo() {
|
|
17244
|
-
|
|
17246
|
+
co.call(this), fl.bind(this, "children"), Ts.bind(this, "host"), Ts.bind(this, "attachers");
|
|
17245
17247
|
}
|
|
17246
|
-
za(Yo,
|
|
17248
|
+
za(Yo, co);
|
|
17247
17249
|
function Su() {
|
|
17248
|
-
|
|
17250
|
+
co.call(this), fl.bind(this, "children");
|
|
17249
17251
|
}
|
|
17250
17252
|
za(Su, Yo);
|
|
17251
17253
|
function ku() {
|
|
@@ -17253,9 +17255,9 @@ function ku() {
|
|
|
17253
17255
|
}
|
|
17254
17256
|
za(ku, Yo);
|
|
17255
17257
|
function Ru() {
|
|
17256
|
-
|
|
17258
|
+
co.call(this), xu.bind(this, "source"), Cu.bind(this, "target");
|
|
17257
17259
|
}
|
|
17258
|
-
za(Ru,
|
|
17260
|
+
za(Ru, co);
|
|
17259
17261
|
var Fw = {
|
|
17260
17262
|
connection: Ru,
|
|
17261
17263
|
shape: Yo,
|
|
@@ -17268,7 +17270,7 @@ function Vw(e, t) {
|
|
|
17268
17270
|
return De(new n(), t);
|
|
17269
17271
|
}
|
|
17270
17272
|
function Nw(e) {
|
|
17271
|
-
return e instanceof
|
|
17273
|
+
return e instanceof co;
|
|
17272
17274
|
}
|
|
17273
17275
|
function fa() {
|
|
17274
17276
|
this._uid = 12;
|
|
@@ -17402,13 +17404,13 @@ hl.$inject = ["modeling"];
|
|
|
17402
17404
|
hl.prototype.preExecute = function(e) {
|
|
17403
17405
|
var t = e.elements, n = e.parent, a = e.parentIndex, o = e.position, i = e.hints, r = this._modeling;
|
|
17404
17406
|
ge(t, function(d) {
|
|
17405
|
-
|
|
17407
|
+
Ht(d.x) || (d.x = 0), Ht(d.y) || (d.y = 0);
|
|
17406
17408
|
});
|
|
17407
17409
|
var l = zn(mn(t, function(d) {
|
|
17408
17410
|
return !d.hidden;
|
|
17409
17411
|
}));
|
|
17410
17412
|
ge(t, function(d) {
|
|
17411
|
-
tn(d) && (d.waypoints =
|
|
17413
|
+
tn(d) && (d.waypoints = Vo(d.waypoints, function(f) {
|
|
17412
17414
|
return {
|
|
17413
17415
|
x: gi(f.x - l.x - l.width / 2 + o.x),
|
|
17414
17416
|
y: gi(f.y - l.y - l.height / 2 + o.y)
|
|
@@ -17421,11 +17423,11 @@ hl.prototype.preExecute = function(e) {
|
|
|
17421
17423
|
var c = N0(t), s = {};
|
|
17422
17424
|
ge(t, function(d) {
|
|
17423
17425
|
if (tn(d)) {
|
|
17424
|
-
s[d.id] =
|
|
17426
|
+
s[d.id] = Ht(a) ? r.createConnection(s[d.source.id], s[d.target.id], a, d, d.parent || n, i) : r.createConnection(s[d.source.id], s[d.target.id], d, d.parent || n, i);
|
|
17425
17427
|
return;
|
|
17426
17428
|
}
|
|
17427
17429
|
var f = De({}, i);
|
|
17428
|
-
c.indexOf(d) === -1 && (f.autoResize = !1), no(d) && (f = xf(f, ["attach"])), s[d.id] =
|
|
17430
|
+
c.indexOf(d) === -1 && (f.autoResize = !1), no(d) && (f = xf(f, ["attach"])), s[d.id] = Ht(a) ? r.createShape(d, Mi(d, [
|
|
17429
17431
|
"x",
|
|
17430
17432
|
"y",
|
|
17431
17433
|
"width",
|
|
@@ -17560,7 +17562,7 @@ qi.prototype.preExecute = function(e) {
|
|
|
17560
17562
|
x && x !== n.length - 1 && (i(b, b.elements[0]), g += c(b.range));
|
|
17561
17563
|
return;
|
|
17562
17564
|
}
|
|
17563
|
-
w =
|
|
17565
|
+
w = Io(b.elements, a), m = w[0], x === f && (m = w[l(w)]), y = r(m), b.range = null, ge(w, function(C) {
|
|
17564
17566
|
if (s(y, C), b.range === null) {
|
|
17565
17567
|
b.range = {
|
|
17566
17568
|
min: C[a],
|
|
@@ -17610,7 +17612,7 @@ function Zi(e, t, n) {
|
|
|
17610
17612
|
x: i.x * (n.width / t.width),
|
|
17611
17613
|
y: i.y * (n.height / t.height)
|
|
17612
17614
|
};
|
|
17613
|
-
return
|
|
17615
|
+
return Po({
|
|
17614
17616
|
x: o.x + r.x,
|
|
17615
17617
|
y: o.y + r.y
|
|
17616
17618
|
});
|
|
@@ -17645,7 +17647,7 @@ function Qi(e) {
|
|
|
17645
17647
|
return t;
|
|
17646
17648
|
}
|
|
17647
17649
|
function Tu(e, t) {
|
|
17648
|
-
return mn(
|
|
17650
|
+
return mn(Vo(e, qw), function(n) {
|
|
17649
17651
|
return Kw(n, t);
|
|
17650
17652
|
});
|
|
17651
17653
|
}
|
|
@@ -17858,11 +17860,11 @@ function Xw(e, t) {
|
|
|
17858
17860
|
var o = a.incoming, i = a.outgoing;
|
|
17859
17861
|
ge(o.concat(i), function(r) {
|
|
17860
17862
|
var l = r.source, c = r.target;
|
|
17861
|
-
(
|
|
17863
|
+
(wo(e, l) || wo(e, c) || wo(t, l) || wo(t, c)) && (wo(n, r) || n.push(r));
|
|
17862
17864
|
});
|
|
17863
17865
|
}), n;
|
|
17864
17866
|
}
|
|
17865
|
-
function
|
|
17867
|
+
function wo(e, t) {
|
|
17866
17868
|
return e.indexOf(t) !== -1;
|
|
17867
17869
|
}
|
|
17868
17870
|
function Zw(e, t, n) {
|
|
@@ -17939,7 +17941,7 @@ pa.prototype.updateConnectionWaypoints = function(e, t, n, a, o, i, r) {
|
|
|
17939
17941
|
var l = this, c = o.concat(i);
|
|
17940
17942
|
ge(e, function(s) {
|
|
17941
17943
|
var d = s.source, f = s.target, u = Qw(s), h = Au(n), p = {};
|
|
17942
|
-
ta(c, d) && ta(c, f) ? (u =
|
|
17944
|
+
ta(c, d) && ta(c, f) ? (u = Vo(u, function(g) {
|
|
17943
17945
|
return Bs(g, a, n) && (g[h] = g[h] + t[h]), g.original && Bs(g.original, a, n) && (g.original[h] = g.original[h] + t[h]), g;
|
|
17944
17946
|
}), l._modeling.updateWaypoints(s, u, { labelBehavior: !1 })) : (ta(c, d) || ta(c, f)) && (ta(o, d) ? p.connectionStart = ml(s, d, t) : ta(o, f) ? p.connectionEnd = bl(s, f, t) : ta(i, d) ? p.connectionStart = vl(s, d, r[d.id]) : ta(i, f) && (p.connectionEnd = yl(s, f, r[f.id])), l._modeling.layoutConnection(s, p));
|
|
17945
17947
|
});
|
|
@@ -17948,7 +17950,7 @@ function Ps(e) {
|
|
|
17948
17950
|
return De({}, e);
|
|
17949
17951
|
}
|
|
17950
17952
|
function Qw(e) {
|
|
17951
|
-
return
|
|
17953
|
+
return Vo(e.waypoints, function(t) {
|
|
17952
17954
|
return t = Ps(t), t.original && (t.original = Ps(t.original)), t;
|
|
17953
17955
|
});
|
|
17954
17956
|
}
|
|
@@ -18327,7 +18329,7 @@ function Cl(e) {
|
|
|
18327
18329
|
].includes(e.type);
|
|
18328
18330
|
}
|
|
18329
18331
|
function Ou(e) {
|
|
18330
|
-
return
|
|
18332
|
+
return Bo(e.label);
|
|
18331
18333
|
}
|
|
18332
18334
|
function o_(e) {
|
|
18333
18335
|
const t = e.length / 2 - 1, n = e[Math.floor(t)], a = e[Math.ceil(t + 0.01)], o = i_(e), i = Math.atan((a.y - n.y) / (a.x - n.x));
|
|
@@ -18350,7 +18352,7 @@ function Iu(e) {
|
|
|
18350
18352
|
y: e.y + e.height + a_.height / 2
|
|
18351
18353
|
};
|
|
18352
18354
|
}
|
|
18353
|
-
function
|
|
18355
|
+
function Bo(e) {
|
|
18354
18356
|
return e && !!e.labelTarget;
|
|
18355
18357
|
}
|
|
18356
18358
|
var r_ = {
|
|
@@ -18364,7 +18366,7 @@ function Lu(e, t) {
|
|
|
18364
18366
|
}
|
|
18365
18367
|
function a(l) {
|
|
18366
18368
|
const { element: c, newLabel: s } = l, { businessObject: d } = c;
|
|
18367
|
-
if (!
|
|
18369
|
+
if (!Bo(c) && Cl(c) && !Ou(c) && !Os(s)) {
|
|
18368
18370
|
let u = Iu(c);
|
|
18369
18371
|
u = {
|
|
18370
18372
|
x: u.x,
|
|
@@ -18384,8 +18386,8 @@ function Lu(e, t) {
|
|
|
18384
18386
|
function r(l) {
|
|
18385
18387
|
const { element: c, newLabel: s } = l, d = c.label || c, f = l.hints || {};
|
|
18386
18388
|
let { newBounds: u } = l;
|
|
18387
|
-
if (!
|
|
18388
|
-
if (
|
|
18389
|
+
if (!Bo(d)) return;
|
|
18390
|
+
if (Bo(d) && Os(s)) {
|
|
18389
18391
|
f.removeShape !== !1 && e.removeShape(d, { unsetLabel: !1 });
|
|
18390
18392
|
return;
|
|
18391
18393
|
}
|
|
@@ -18745,7 +18747,7 @@ var Vu = {
|
|
|
18745
18747
|
__depends__: [
|
|
18746
18748
|
Pw,
|
|
18747
18749
|
Iw,
|
|
18748
|
-
|
|
18750
|
+
lo
|
|
18749
18751
|
],
|
|
18750
18752
|
__init__: ["modeling", "elementUpdater"],
|
|
18751
18753
|
modeling: ["type", Qo],
|
|
@@ -19920,7 +19922,7 @@ var Yu = { myImporter: ["type", va] }, Ju = (e) => {
|
|
|
19920
19922
|
const k = S.createRoot();
|
|
19921
19923
|
_.setRootElement(k), d();
|
|
19922
19924
|
};
|
|
19923
|
-
|
|
19925
|
+
Tt(() => {
|
|
19924
19926
|
u();
|
|
19925
19927
|
});
|
|
19926
19928
|
const h = (v) => {
|
|
@@ -19973,11 +19975,11 @@ var tx = {
|
|
|
19973
19975
|
return e.y + e.height;
|
|
19974
19976
|
}
|
|
19975
19977
|
};
|
|
19976
|
-
function
|
|
19978
|
+
function uo(e, t) {
|
|
19977
19979
|
this._modeling = e, this._rules = t;
|
|
19978
19980
|
}
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
+
uo.$inject = ["modeling", "rules"];
|
|
19982
|
+
uo.prototype._getOrientationDetails = function(e) {
|
|
19981
19983
|
var t = [
|
|
19982
19984
|
"top",
|
|
19983
19985
|
"bottom",
|
|
@@ -19988,10 +19990,10 @@ co.prototype._getOrientationDetails = function(e) {
|
|
|
19988
19990
|
dimension: a
|
|
19989
19991
|
};
|
|
19990
19992
|
};
|
|
19991
|
-
|
|
19993
|
+
uo.prototype._isType = function(e, t) {
|
|
19992
19994
|
return t.indexOf(e) !== -1;
|
|
19993
19995
|
};
|
|
19994
|
-
|
|
19996
|
+
uo.prototype._alignmentPosition = function(e, t) {
|
|
19995
19997
|
var n = this._getOrientationDetails(e), a = n.axis, o = n.dimension, i = {}, r = {}, l = !1, c, s, d;
|
|
19996
19998
|
function f(u, h) {
|
|
19997
19999
|
return Math.round((u[a] + h[a] + h[o]) / 2);
|
|
@@ -20006,28 +20008,28 @@ co.prototype._alignmentPosition = function(e, t) {
|
|
|
20006
20008
|
elements: [u],
|
|
20007
20009
|
center: h
|
|
20008
20010
|
};
|
|
20009
|
-
}), c =
|
|
20011
|
+
}), c = Io(r, function(u) {
|
|
20010
20012
|
return u.elements.length > 1 && (l = !0), u.elements.length;
|
|
20011
20013
|
}), l)
|
|
20012
20014
|
return i[e] = pr(c).center, i;
|
|
20013
|
-
s = t[0], t =
|
|
20015
|
+
s = t[0], t = Io(t, function(u) {
|
|
20014
20016
|
return u[a] + u[o];
|
|
20015
20017
|
}), d = pr(t), i[e] = f(s, d);
|
|
20016
20018
|
}
|
|
20017
20019
|
return i;
|
|
20018
20020
|
};
|
|
20019
|
-
|
|
20021
|
+
uo.prototype.trigger = function(e, t) {
|
|
20020
20022
|
var n = this._modeling, a, o = mn(e, function(c) {
|
|
20021
20023
|
return !(c.waypoints || c.host || c.labelTarget);
|
|
20022
20024
|
});
|
|
20023
20025
|
if (a = this._rules.allowed("elements.align", { elements: o }), ft(a) && (o = a), !(o.length < 2 || !a)) {
|
|
20024
|
-
var i = tx[t], r =
|
|
20026
|
+
var i = tx[t], r = Io(o, i), l = this._alignmentPosition(t, r);
|
|
20025
20027
|
n.alignElements(r, l);
|
|
20026
20028
|
}
|
|
20027
20029
|
};
|
|
20028
20030
|
var nx = {
|
|
20029
20031
|
__init__: ["alignElements"],
|
|
20030
|
-
alignElements: ["type",
|
|
20032
|
+
alignElements: ["type", uo]
|
|
20031
20033
|
}, bi = Math.round, ax = Math.max;
|
|
20032
20034
|
function ox(e, t) {
|
|
20033
20035
|
return [
|
|
@@ -20326,12 +20328,12 @@ ed.$inject = [
|
|
|
20326
20328
|
function yx(e) {
|
|
20327
20329
|
return Zt(".djs-visual", e);
|
|
20328
20330
|
}
|
|
20329
|
-
var Us = Math.round, Ra = "reconnectStart", Ea = "reconnectEnd",
|
|
20331
|
+
var Us = Math.round, Ra = "reconnectStart", Ea = "reconnectEnd", _o = "updateWaypoints";
|
|
20330
20332
|
function Al(e, t, n, a, o, i) {
|
|
20331
20333
|
this._injector = e, this.start = function(r, l, c, s) {
|
|
20332
20334
|
var d = n.getGraphics(l), f = l.source, u = l.target, h = l.waypoints, p;
|
|
20333
|
-
!s && c === 0 ? p = Ra : !s && c === h.length - 1 ? p = Ea : p =
|
|
20334
|
-
var g = p ===
|
|
20335
|
+
!s && c === 0 ? p = Ra : !s && c === h.length - 1 ? p = Ea : p = _o;
|
|
20336
|
+
var g = p === _o ? "connection.updateWaypoints" : "connection.reconnect", b = o.allowed(g, {
|
|
20335
20337
|
connection: l,
|
|
20336
20338
|
source: f,
|
|
20337
20339
|
target: u
|
|
@@ -20358,7 +20360,7 @@ function Al(e, t, n, a, o, i) {
|
|
|
20358
20360
|
l.hover = f;
|
|
20359
20361
|
var h;
|
|
20360
20362
|
if (f) {
|
|
20361
|
-
var p = u ===
|
|
20363
|
+
var p = u === _o ? "connection.updateWaypoints" : "connection.reconnect";
|
|
20362
20364
|
if (h = l.allowed = o.allowed(p, {
|
|
20363
20365
|
connection: c,
|
|
20364
20366
|
source: u === Ra ? f : s,
|
|
@@ -20375,14 +20377,14 @@ function Al(e, t, n, a, o, i) {
|
|
|
20375
20377
|
}
|
|
20376
20378
|
}), t.on(["bendpoint.move.out", "bendpoint.move.cleanup"], function(r) {
|
|
20377
20379
|
var l = r.context, c = l.type;
|
|
20378
|
-
l.hover = null, l.source = null, l.target = null, c !==
|
|
20380
|
+
l.hover = null, l.source = null, l.target = null, c !== _o && (l.allowed = !1);
|
|
20379
20381
|
}), t.on("bendpoint.move.end", function(r) {
|
|
20380
20382
|
var l = r.context, c = l.allowed, s = l.bendpointIndex, d = l.connection, f = l.insert, u = d.waypoints.slice(), h = l.source, p = l.target, g = l.type, b = l.hints || {}, x = {
|
|
20381
20383
|
x: Us(r.x),
|
|
20382
20384
|
y: Us(r.y)
|
|
20383
20385
|
};
|
|
20384
20386
|
if (!c) return !1;
|
|
20385
|
-
g ===
|
|
20387
|
+
g === _o ? (f ? u.splice(s, 0, x) : u[s] = x, b.bendpointMove = {
|
|
20386
20388
|
insert: f,
|
|
20387
20389
|
bendpointIndex: s
|
|
20388
20390
|
}, u = this.cropWaypoints(d, u), i.updateWaypoints(d, xw(u), b)) : (g === Ra ? (b.docking = "source", Li(l) && (b.docking = "target", b.newWaypoints = u.reverse())) : g === Ea && (b.docking = "target", Li(l) && (b.docking = "source", b.newWaypoints = u.reverse())), i.reconnect(d, h, p, x, b));
|
|
@@ -20407,7 +20409,7 @@ function Li(e) {
|
|
|
20407
20409
|
if (o === Ra) return t && a && t === a && n !== a;
|
|
20408
20410
|
if (o === Ea) return t && n && t === n && n !== a;
|
|
20409
20411
|
}
|
|
20410
|
-
var mx = "reconnectStart", bx = "reconnectEnd", Ys = "updateWaypoints",
|
|
20412
|
+
var mx = "reconnectStart", bx = "reconnectEnd", Ys = "updateWaypoints", xo = "connect-ok", wi = "connect-not-ok", Js = "connect-hover", Gs = "djs-updating", Ks = "djs-dragging", qs = 1100;
|
|
20411
20413
|
function td(e, t, n, a) {
|
|
20412
20414
|
this._injector = t;
|
|
20413
20415
|
var o = t.get("connectionPreview", !1);
|
|
@@ -20421,11 +20423,11 @@ function td(e, t, n, a) {
|
|
|
20421
20423
|
var r = i.context, l = r.allowed, c = r.hover, s = r.type;
|
|
20422
20424
|
if (c) {
|
|
20423
20425
|
if (a.addMarker(c, Js), s === Ys) return;
|
|
20424
|
-
l ? (a.removeMarker(c, wi), a.addMarker(c,
|
|
20426
|
+
l ? (a.removeMarker(c, wi), a.addMarker(c, xo)) : l === !1 && (a.removeMarker(c, xo), a.addMarker(c, wi));
|
|
20425
20427
|
}
|
|
20426
20428
|
}), n.on(["bendpoint.move.out", "bendpoint.move.cleanup"], qs, function(i) {
|
|
20427
20429
|
var r = i.context, l = r.hover, c = r.target;
|
|
20428
|
-
l && (a.removeMarker(l, Js), a.removeMarker(l, c ?
|
|
20430
|
+
l && (a.removeMarker(l, Js), a.removeMarker(l, c ? xo : wi));
|
|
20429
20431
|
}), n.on("bendpoint.move.move", function(i) {
|
|
20430
20432
|
var r = i.context, l = r.allowed, c = r.bendpointIndex, s = r.draggerGfx, d = r.hover, f = r.type, u = r.connection, h = u.source, p = u.target, g = u.waypoints.slice(), b = {
|
|
20431
20433
|
x: i.x,
|
|
@@ -20434,7 +20436,7 @@ function td(e, t, n, a) {
|
|
|
20434
20436
|
o && (x.connectionStart && (w.connectionStart = x.connectionStart), x.connectionEnd && (w.connectionEnd = x.connectionEnd), f === mx ? Li(r) ? (w.connectionEnd = w.connectionEnd || b, w.source = p, w.target = d || h, g = g.reverse()) : (w.connectionStart = w.connectionStart || b, w.source = d || h, w.target = p) : f === bx ? Li(r) ? (w.connectionStart = w.connectionStart || b, w.source = d || p, w.target = h, g = g.reverse()) : (w.connectionEnd = w.connectionEnd || b, w.source = h, w.target = d || p) : (w.noCropping = !0, w.noLayout = !0, g[c] = b), f === Ys && (g = e.cropWaypoints(u, g)), w.waypoints = g, o.drawPreview(r, l, w)), Ln(s, i.x, i.y);
|
|
20435
20437
|
}, this), n.on(["bendpoint.move.end", "bendpoint.move.cancel"], qs, function(i) {
|
|
20436
20438
|
var r = i.context, l = r.connection, c = r.draggerGfx, s = r.hover, d = r.target;
|
|
20437
|
-
l.waypoints = r.waypoints, yn(c), a.removeMarker(l, Gs), a.removeMarker(l, Ks), s && (a.removeMarker(s,
|
|
20439
|
+
l.waypoints = r.waypoints, yn(c), a.removeMarker(l, Gs), a.removeMarker(l, Ks), s && (a.removeMarker(s, xo), a.removeMarker(s, d ? xo : wi)), o && o.cleanUp(r);
|
|
20438
20440
|
});
|
|
20439
20441
|
}
|
|
20440
20442
|
td.$inject = [
|
|
@@ -20673,7 +20675,7 @@ function id(e) {
|
|
|
20673
20675
|
}
|
|
20674
20676
|
id.$inject = ["eventBus"];
|
|
20675
20677
|
var Rx = {
|
|
20676
|
-
__depends__: [La,
|
|
20678
|
+
__depends__: [La, so],
|
|
20677
20679
|
__init__: [
|
|
20678
20680
|
"bendpoints",
|
|
20679
20681
|
"bendpointSnapping",
|
|
@@ -20935,20 +20937,20 @@ var Hx = {
|
|
|
20935
20937
|
__init__: ["overlays"],
|
|
20936
20938
|
overlays: ["type", $t]
|
|
20937
20939
|
}, Ox = new Ui();
|
|
20938
|
-
function
|
|
20940
|
+
function fo(e) {
|
|
20939
20941
|
this._scheduled = {}, e.on("diagram.destroy", () => {
|
|
20940
20942
|
Object.keys(this._scheduled).forEach((t) => {
|
|
20941
20943
|
this.cancel(t);
|
|
20942
20944
|
});
|
|
20943
20945
|
});
|
|
20944
20946
|
}
|
|
20945
|
-
|
|
20946
|
-
|
|
20947
|
+
fo.$inject = ["eventBus"];
|
|
20948
|
+
fo.prototype.schedule = function(e, t = Ox.next()) {
|
|
20947
20949
|
this.cancel(t);
|
|
20948
20950
|
const n = this._schedule(e, t);
|
|
20949
20951
|
return this._scheduled[t] = n, n.promise;
|
|
20950
20952
|
};
|
|
20951
|
-
|
|
20953
|
+
fo.prototype._schedule = function(e, t) {
|
|
20952
20954
|
const n = Ix();
|
|
20953
20955
|
return {
|
|
20954
20956
|
executionId: setTimeout(() => {
|
|
@@ -20966,11 +20968,11 @@ uo.prototype._schedule = function(e, t) {
|
|
|
20966
20968
|
promise: n.promise
|
|
20967
20969
|
};
|
|
20968
20970
|
};
|
|
20969
|
-
|
|
20971
|
+
fo.prototype.cancel = function(e) {
|
|
20970
20972
|
const t = this._scheduled[e];
|
|
20971
20973
|
t && (this._cancel(t), this._scheduled[e] = null);
|
|
20972
20974
|
};
|
|
20973
|
-
|
|
20975
|
+
fo.prototype._cancel = function(e) {
|
|
20974
20976
|
clearTimeout(e.executionId);
|
|
20975
20977
|
};
|
|
20976
20978
|
function Ix() {
|
|
@@ -20979,17 +20981,17 @@ function Ix() {
|
|
|
20979
20981
|
e.resolve = t, e.reject = n;
|
|
20980
20982
|
}), e;
|
|
20981
20983
|
}
|
|
20982
|
-
var Lx = { scheduler: ["type",
|
|
20983
|
-
function
|
|
20984
|
+
var Lx = { scheduler: ["type", fo] }, zx = "djs-element-hidden", _i = ".entry", Dx = 1e3, ac = 8, $x = 300;
|
|
20985
|
+
function Mt(e, t, n, a) {
|
|
20984
20986
|
this._canvas = e, this._elementRegistry = t, this._eventBus = n, this._scheduler = a, this._current = null, this._init();
|
|
20985
20987
|
}
|
|
20986
|
-
|
|
20988
|
+
Mt.$inject = [
|
|
20987
20989
|
"canvas",
|
|
20988
20990
|
"elementRegistry",
|
|
20989
20991
|
"eventBus",
|
|
20990
20992
|
"scheduler"
|
|
20991
20993
|
];
|
|
20992
|
-
|
|
20994
|
+
Mt.prototype._init = function() {
|
|
20993
20995
|
var e = this;
|
|
20994
20996
|
this._eventBus.on("selection.changed", function(t) {
|
|
20995
20997
|
var n = t.newSelection, a = n.length ? n.length === 1 ? n[0] : n : null;
|
|
@@ -21017,16 +21019,16 @@ At.prototype._init = function() {
|
|
|
21017
21019
|
}
|
|
21018
21020
|
}), this._container = this._createContainer();
|
|
21019
21021
|
};
|
|
21020
|
-
|
|
21022
|
+
Mt.prototype._createContainer = function() {
|
|
21021
21023
|
var e = fn('<div class="djs-context-pad-parent"></div>');
|
|
21022
21024
|
return this._canvas.getContainer().appendChild(e), e;
|
|
21023
21025
|
};
|
|
21024
|
-
|
|
21026
|
+
Mt.prototype.registerProvider = function(e, t) {
|
|
21025
21027
|
t || (t = e, e = Dx), this._eventBus.on("contextPad.getProviders", e, function(n) {
|
|
21026
21028
|
n.providers.push(t);
|
|
21027
21029
|
});
|
|
21028
21030
|
};
|
|
21029
|
-
|
|
21031
|
+
Mt.prototype.getEntries = function(e) {
|
|
21030
21032
|
var t = this._getProviders(), n = ft(e) ? "getMultiElementContextPadEntries" : "getContextPadEntries", a = {};
|
|
21031
21033
|
return ge(t, function(o) {
|
|
21032
21034
|
if (In(o[n])) {
|
|
@@ -21037,7 +21039,7 @@ At.prototype.getEntries = function(e) {
|
|
|
21037
21039
|
}
|
|
21038
21040
|
}), a;
|
|
21039
21041
|
};
|
|
21040
|
-
|
|
21042
|
+
Mt.prototype.trigger = function(e, t, n) {
|
|
21041
21043
|
var a = this, o, i, r = t.delegateTarget || t.target;
|
|
21042
21044
|
if (!r) return t.preventDefault();
|
|
21043
21045
|
if (o = Rn(r, "data-action"), i = t.originalEvent || t, e === "mouseover") {
|
|
@@ -21051,7 +21053,7 @@ At.prototype.trigger = function(e, t, n) {
|
|
|
21051
21053
|
}
|
|
21052
21054
|
return this.triggerEntry(o, e, i, n);
|
|
21053
21055
|
};
|
|
21054
|
-
|
|
21056
|
+
Mt.prototype.triggerEntry = function(e, t, n, a) {
|
|
21055
21057
|
if (this.isShown()) {
|
|
21056
21058
|
var o = this._current.target, i = this._current.entries[e];
|
|
21057
21059
|
if (i) {
|
|
@@ -21068,17 +21070,17 @@ At.prototype.triggerEntry = function(e, t, n, a) {
|
|
|
21068
21070
|
}
|
|
21069
21071
|
}
|
|
21070
21072
|
};
|
|
21071
|
-
|
|
21073
|
+
Mt.prototype.open = function(e, t) {
|
|
21072
21074
|
!t && this.isOpen(e) || (this.close(), this._updateAndOpen(e));
|
|
21073
21075
|
};
|
|
21074
|
-
|
|
21076
|
+
Mt.prototype._getProviders = function() {
|
|
21075
21077
|
var e = this._eventBus.createEvent({
|
|
21076
21078
|
type: "contextPad.getProviders",
|
|
21077
21079
|
providers: []
|
|
21078
21080
|
});
|
|
21079
21081
|
return this._eventBus.fire(e), e.providers;
|
|
21080
21082
|
};
|
|
21081
|
-
|
|
21083
|
+
Mt.prototype._updateAndOpen = function(e) {
|
|
21082
21084
|
var t = this.getEntries(e), n = this._createHtml(e), a;
|
|
21083
21085
|
ge(t, function(o, i) {
|
|
21084
21086
|
var r = o.group || "default", l = fn(o.html || '<div class="entry" draggable="true"></div>'), c;
|
|
@@ -21089,7 +21091,7 @@ At.prototype._updateAndOpen = function(e) {
|
|
|
21089
21091
|
target: e
|
|
21090
21092
|
}, this._updatePosition(), this._updateVisibility(), this._eventBus.fire("contextPad.open", { current: this._current });
|
|
21091
21093
|
};
|
|
21092
|
-
|
|
21094
|
+
Mt.prototype._createHtml = function(e) {
|
|
21093
21095
|
var t = this, n = fn('<div class="djs-context-pad"></div>');
|
|
21094
21096
|
return aa.bind(n, _i, "click", function(a) {
|
|
21095
21097
|
t.trigger("click", a);
|
|
@@ -21106,15 +21108,15 @@ At.prototype._createHtml = function(e) {
|
|
|
21106
21108
|
pad: n
|
|
21107
21109
|
}), n;
|
|
21108
21110
|
};
|
|
21109
|
-
|
|
21111
|
+
Mt.prototype.getPad = function(e) {
|
|
21110
21112
|
console.warn(/* @__PURE__ */ new Error("ContextPad#getPad is deprecated and will be removed in future library versions, cf. https://github.com/bpmn-io/diagram-js/pull/888"));
|
|
21111
21113
|
let t;
|
|
21112
21114
|
return this.isOpen() && Nx(this._current.target, e) ? t = this._current.html : t = this._createHtml(e), { html: t };
|
|
21113
21115
|
};
|
|
21114
|
-
|
|
21116
|
+
Mt.prototype.close = function() {
|
|
21115
21117
|
this.isOpen() && (clearTimeout(this._timeout), this._container.innerHTML = "", this._eventBus.fire("contextPad.close", { current: this._current }), this._current = null);
|
|
21116
21118
|
};
|
|
21117
|
-
|
|
21119
|
+
Mt.prototype.isOpen = function(e) {
|
|
21118
21120
|
var t = this._current;
|
|
21119
21121
|
if (!t) return !1;
|
|
21120
21122
|
if (!e) return !0;
|
|
@@ -21123,16 +21125,16 @@ At.prototype.isOpen = function(e) {
|
|
|
21123
21125
|
return n.includes(a);
|
|
21124
21126
|
}) : n === e;
|
|
21125
21127
|
};
|
|
21126
|
-
|
|
21128
|
+
Mt.prototype.isShown = function() {
|
|
21127
21129
|
return this.isOpen() && sn(this._current.html).has("open");
|
|
21128
21130
|
};
|
|
21129
|
-
|
|
21131
|
+
Mt.prototype.show = function() {
|
|
21130
21132
|
this.isOpen() && (sn(this._current.html).add("open"), this._updatePosition(), this._eventBus.fire("contextPad.show", { current: this._current }));
|
|
21131
21133
|
};
|
|
21132
|
-
|
|
21134
|
+
Mt.prototype.hide = function() {
|
|
21133
21135
|
this.isOpen() && (sn(this._current.html).remove("open"), this._eventBus.fire("contextPad.hide", { current: this._current }));
|
|
21134
21136
|
};
|
|
21135
|
-
|
|
21137
|
+
Mt.prototype._getPosition = function(e) {
|
|
21136
21138
|
if (!ft(e) && tn(e)) {
|
|
21137
21139
|
var t = this._canvas.viewbox(), n = Vx(e), a = n.x * t.scale - t.x * t.scale, o = n.y * t.scale - t.y * t.scale;
|
|
21138
21140
|
return {
|
|
@@ -21146,7 +21148,7 @@ At.prototype._getPosition = function(e) {
|
|
|
21146
21148
|
top: r.top - i.top
|
|
21147
21149
|
};
|
|
21148
21150
|
};
|
|
21149
|
-
|
|
21151
|
+
Mt.prototype._updatePosition = function() {
|
|
21150
21152
|
const e = () => {
|
|
21151
21153
|
if (this.isOpen()) {
|
|
21152
21154
|
var t = this._current.html, n = this._getPosition(this._current.target);
|
|
@@ -21162,7 +21164,7 @@ At.prototype._updatePosition = function() {
|
|
|
21162
21164
|
};
|
|
21163
21165
|
this._scheduler.schedule(e, "ContextPad#_updatePosition");
|
|
21164
21166
|
};
|
|
21165
|
-
|
|
21167
|
+
Mt.prototype._updateVisibility = function() {
|
|
21166
21168
|
const e = () => {
|
|
21167
21169
|
if (this.isOpen()) {
|
|
21168
21170
|
var t = this, n = this._current.target;
|
|
@@ -21173,7 +21175,7 @@ At.prototype._updateVisibility = function() {
|
|
|
21173
21175
|
};
|
|
21174
21176
|
this._scheduler.schedule(e, "ContextPad#_updateVisibility");
|
|
21175
21177
|
};
|
|
21176
|
-
|
|
21178
|
+
Mt.prototype._getTargetBounds = function(e) {
|
|
21177
21179
|
var t = this;
|
|
21178
21180
|
return (ft(e) ? e : [e]).map(function(n) {
|
|
21179
21181
|
return t._canvas.getGraphics(n);
|
|
@@ -21207,7 +21209,7 @@ var Wx = {
|
|
|
21207
21209
|
Lx,
|
|
21208
21210
|
Hx
|
|
21209
21211
|
],
|
|
21210
|
-
contextPad: ["type",
|
|
21212
|
+
contextPad: ["type", Mt]
|
|
21211
21213
|
}, Ux = 250;
|
|
21212
21214
|
function Na(e) {
|
|
21213
21215
|
this._eventBus = e, this._tools = [], this._active = null;
|
|
@@ -21275,7 +21277,7 @@ var Bl = {
|
|
|
21275
21277
|
__init__: ["mouse"],
|
|
21276
21278
|
mouse: ["type", Pl]
|
|
21277
21279
|
}, vr = 1500, sd = "grab";
|
|
21278
|
-
function
|
|
21280
|
+
function ho(e, t, n, a, o, i) {
|
|
21279
21281
|
this._dragging = n, this._mouse = i;
|
|
21280
21282
|
var r = this, l = a.get("keyboard", !1);
|
|
21281
21283
|
o.registerTool("hand", {
|
|
@@ -21310,7 +21312,7 @@ function fo(e, t, n, a, o, i) {
|
|
|
21310
21312
|
}), !1;
|
|
21311
21313
|
});
|
|
21312
21314
|
}
|
|
21313
|
-
|
|
21315
|
+
ho.$inject = [
|
|
21314
21316
|
"eventBus",
|
|
21315
21317
|
"canvas",
|
|
21316
21318
|
"dragging",
|
|
@@ -21318,14 +21320,14 @@ fo.$inject = [
|
|
|
21318
21320
|
"toolManager",
|
|
21319
21321
|
"mouse"
|
|
21320
21322
|
];
|
|
21321
|
-
|
|
21323
|
+
ho.prototype.activateMove = function(e, t, n) {
|
|
21322
21324
|
typeof t == "object" && (n = t, t = !1), this._dragging.init(e, "hand.move", {
|
|
21323
21325
|
autoActivate: t,
|
|
21324
21326
|
cursor: sd,
|
|
21325
21327
|
data: { context: n || {} }
|
|
21326
21328
|
});
|
|
21327
21329
|
};
|
|
21328
|
-
|
|
21330
|
+
ho.prototype.activateHand = function(e, t, n) {
|
|
21329
21331
|
this._dragging.init(e, "hand", {
|
|
21330
21332
|
trapClick: !1,
|
|
21331
21333
|
autoActivate: t,
|
|
@@ -21333,12 +21335,12 @@ fo.prototype.activateHand = function(e, t, n) {
|
|
|
21333
21335
|
data: { context: { reactivate: n } }
|
|
21334
21336
|
});
|
|
21335
21337
|
};
|
|
21336
|
-
|
|
21338
|
+
ho.prototype.toggle = function() {
|
|
21337
21339
|
if (this.isActive()) return this._dragging.cancel();
|
|
21338
21340
|
var e = this._mouse.getLastMoveEvent();
|
|
21339
21341
|
this.activateHand(e, !!e);
|
|
21340
21342
|
};
|
|
21341
|
-
|
|
21343
|
+
ho.prototype.isActive = function() {
|
|
21342
21344
|
var e = this._dragging.context();
|
|
21343
21345
|
return e ? /^(hand|hand\.move)$/.test(e.prefix) : !1;
|
|
21344
21346
|
};
|
|
@@ -21348,7 +21350,7 @@ function oc(e) {
|
|
|
21348
21350
|
var Gx = {
|
|
21349
21351
|
__depends__: [jl, Bl],
|
|
21350
21352
|
__init__: ["handTool"],
|
|
21351
|
-
handTool: ["type",
|
|
21353
|
+
handTool: ["type", ho]
|
|
21352
21354
|
}, cd = "crosshair", ic = "selected", Kx = "djs-dragging-active-lasso";
|
|
21353
21355
|
function ya(e, t, n, a, o, i, r) {
|
|
21354
21356
|
this._selection = o, this._dragging = n, this._mouse = r;
|
|
@@ -21495,7 +21497,7 @@ var qx = {
|
|
|
21495
21497
|
__init__: ["lassoTool"],
|
|
21496
21498
|
lassoTool: ["type", ya]
|
|
21497
21499
|
}, lc = "connect-ok", sc = "connect-not-ok";
|
|
21498
|
-
function
|
|
21500
|
+
function po(e, t, n, a, o, i, r) {
|
|
21499
21501
|
var l = this;
|
|
21500
21502
|
this._dragging = t, this._rules = i, this._mouse = r, o.registerTool("global-connect", {
|
|
21501
21503
|
tool: "global-connect",
|
|
@@ -21519,7 +21521,7 @@ function ho(e, t, n, a, o, i, r) {
|
|
|
21519
21521
|
}), !1;
|
|
21520
21522
|
});
|
|
21521
21523
|
}
|
|
21522
|
-
|
|
21524
|
+
po.$inject = [
|
|
21523
21525
|
"eventBus",
|
|
21524
21526
|
"dragging",
|
|
21525
21527
|
"connect",
|
|
@@ -21528,34 +21530,34 @@ ho.$inject = [
|
|
|
21528
21530
|
"rules",
|
|
21529
21531
|
"mouse"
|
|
21530
21532
|
];
|
|
21531
|
-
|
|
21533
|
+
po.prototype.start = function(e, t) {
|
|
21532
21534
|
this._dragging.init(e, "global-connect", {
|
|
21533
21535
|
autoActivate: t,
|
|
21534
21536
|
trapClick: !1,
|
|
21535
21537
|
data: { context: {} }
|
|
21536
21538
|
});
|
|
21537
21539
|
};
|
|
21538
|
-
|
|
21540
|
+
po.prototype.toggle = function() {
|
|
21539
21541
|
if (this.isActive()) return this._dragging.cancel();
|
|
21540
21542
|
var e = this._mouse.getLastMoveEvent();
|
|
21541
21543
|
return this.start(e, !!e);
|
|
21542
21544
|
};
|
|
21543
|
-
|
|
21545
|
+
po.prototype.isActive = function() {
|
|
21544
21546
|
var e = this._dragging.context();
|
|
21545
21547
|
return e && /^global-connect/.test(e.prefix);
|
|
21546
21548
|
};
|
|
21547
|
-
|
|
21549
|
+
po.prototype.canStartConnect = function(e) {
|
|
21548
21550
|
return this._rules.allowed("connection.start", { source: e });
|
|
21549
21551
|
};
|
|
21550
21552
|
var Xx = {
|
|
21551
21553
|
__depends__: [
|
|
21552
21554
|
sl,
|
|
21553
|
-
|
|
21555
|
+
so,
|
|
21554
21556
|
La,
|
|
21555
21557
|
jl,
|
|
21556
21558
|
Bl
|
|
21557
21559
|
],
|
|
21558
|
-
globalConnect: ["type",
|
|
21560
|
+
globalConnect: ["type", po]
|
|
21559
21561
|
}, Zx = 500, Qx = 1e3;
|
|
21560
21562
|
function Wa(e, t) {
|
|
21561
21563
|
this._eventBus = e, this.offset = 5;
|
|
@@ -21655,7 +21657,7 @@ function eC(e) {
|
|
|
21655
21657
|
};
|
|
21656
21658
|
}
|
|
21657
21659
|
var ud = {
|
|
21658
|
-
__depends__: [
|
|
21660
|
+
__depends__: [lo],
|
|
21659
21661
|
__init__: ["outline", "multiSelectionOutline"],
|
|
21660
21662
|
outline: ["type", Wa],
|
|
21661
21663
|
multiSelectionOutline: ["type", Hl]
|
|
@@ -21707,7 +21709,7 @@ function dd(e, t, n, a, o) {
|
|
|
21707
21709
|
});
|
|
21708
21710
|
}), e.on("element.mousedown", function(l) {
|
|
21709
21711
|
if (ca(l)) {
|
|
21710
|
-
var c =
|
|
21712
|
+
var c = io(l);
|
|
21711
21713
|
if (!c) throw new Error("must supply DOM mousedown event");
|
|
21712
21714
|
return r(c, l.element);
|
|
21713
21715
|
}
|
|
@@ -21806,9 +21808,9 @@ function lC(e) {
|
|
|
21806
21808
|
var sC = {
|
|
21807
21809
|
__depends__: [
|
|
21808
21810
|
tl,
|
|
21809
|
-
ro,
|
|
21810
|
-
ud,
|
|
21811
21811
|
lo,
|
|
21812
|
+
ud,
|
|
21813
|
+
so,
|
|
21812
21814
|
La,
|
|
21813
21815
|
al
|
|
21814
21816
|
],
|
|
@@ -21816,7 +21818,7 @@ var sC = {
|
|
|
21816
21818
|
move: ["type", dd],
|
|
21817
21819
|
movePreview: ["type", fd]
|
|
21818
21820
|
}, hd = ".djs-palette-toggle", pd = ".entry", cC = hd + ", " + pd, Dr = "djs-palette-", uC = "shown", $r = "open", pc = "two-column", dC = 1e3;
|
|
21819
|
-
function
|
|
21821
|
+
function At(e, t) {
|
|
21820
21822
|
this._eventBus = e, this._canvas = t;
|
|
21821
21823
|
var n = this;
|
|
21822
21824
|
e.on("tool-manager.update", function(a) {
|
|
@@ -21828,20 +21830,20 @@ function Tt(e, t) {
|
|
|
21828
21830
|
n._diagramInitialized = !0, n._rebuild();
|
|
21829
21831
|
});
|
|
21830
21832
|
}
|
|
21831
|
-
|
|
21832
|
-
|
|
21833
|
+
At.$inject = ["eventBus", "canvas"];
|
|
21834
|
+
At.prototype.registerProvider = function(e, t) {
|
|
21833
21835
|
t || (t = e, e = dC), this._eventBus.on("palette.getProviders", e, function(n) {
|
|
21834
21836
|
n.providers.push(t);
|
|
21835
21837
|
}), this._rebuild();
|
|
21836
21838
|
};
|
|
21837
|
-
|
|
21839
|
+
At.prototype.getEntries = function() {
|
|
21838
21840
|
return this._getProviders().reduce(hC, {});
|
|
21839
21841
|
};
|
|
21840
|
-
|
|
21842
|
+
At.prototype._rebuild = function() {
|
|
21841
21843
|
this._diagramInitialized && this._getProviders().length && (this._container || this._init(), this._update());
|
|
21842
21844
|
};
|
|
21843
|
-
|
|
21844
|
-
var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = fn(
|
|
21845
|
+
At.prototype._init = function() {
|
|
21846
|
+
var e = this, t = this._eventBus, n = this._getParentContainer(), a = this._container = fn(At.HTML_MARKUP);
|
|
21845
21847
|
n.appendChild(a), sn(n).add(Dr + uC), aa.bind(a, cC, "click", function(o) {
|
|
21846
21848
|
var i = o.delegateTarget;
|
|
21847
21849
|
if (mf(i, hd)) return e.toggle();
|
|
@@ -21852,14 +21854,14 @@ Tt.prototype._init = function() {
|
|
|
21852
21854
|
e.trigger("dragstart", o);
|
|
21853
21855
|
}), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", { container: a });
|
|
21854
21856
|
};
|
|
21855
|
-
|
|
21857
|
+
At.prototype._getProviders = function(e) {
|
|
21856
21858
|
var t = this._eventBus.createEvent({
|
|
21857
21859
|
type: "palette.getProviders",
|
|
21858
21860
|
providers: []
|
|
21859
21861
|
});
|
|
21860
21862
|
return this._eventBus.fire(t), t.providers;
|
|
21861
21863
|
};
|
|
21862
|
-
|
|
21864
|
+
At.prototype._toggleState = function(e) {
|
|
21863
21865
|
e = e || {};
|
|
21864
21866
|
var t = this._getParentContainer(), n = this._container, a = this._eventBus, o, i = sn(n), r = sn(t);
|
|
21865
21867
|
"twoColumn" in e ? o = e.twoColumn : o = this._needsCollapse(t.clientHeight, this._entries || {}), i.toggle(pc, o), r.toggle(Dr + pc, o), "open" in e && (i.toggle($r, e.open), r.toggle(Dr + $r, e.open)), a.fire("palette.changed", {
|
|
@@ -21867,7 +21869,7 @@ Tt.prototype._toggleState = function(e) {
|
|
|
21867
21869
|
open: this.isOpen()
|
|
21868
21870
|
});
|
|
21869
21871
|
};
|
|
21870
|
-
|
|
21872
|
+
At.prototype._update = function() {
|
|
21871
21873
|
var e = Zt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
|
|
21872
21874
|
_c(e), ge(t, function(n, a) {
|
|
21873
21875
|
var o = n.group || "default", i = Zt("[data-group=" + Tl(o) + "]", e);
|
|
@@ -21879,11 +21881,11 @@ Tt.prototype._update = function() {
|
|
|
21879
21881
|
}
|
|
21880
21882
|
}), this.open();
|
|
21881
21883
|
};
|
|
21882
|
-
|
|
21884
|
+
At.prototype.trigger = function(e, t, n) {
|
|
21883
21885
|
var a, o, i = t.delegateTarget || t.target;
|
|
21884
21886
|
return i ? (a = Rn(i, "data-action"), o = t.originalEvent || t, this.triggerEntry(a, e, o, n)) : t.preventDefault();
|
|
21885
21887
|
};
|
|
21886
|
-
|
|
21888
|
+
At.prototype.triggerEntry = function(e, t, n, a) {
|
|
21887
21889
|
var o = this._entries[e], i;
|
|
21888
21890
|
if (o && (i = o.action, this._eventBus.fire("palette.trigger", {
|
|
21889
21891
|
entry: o,
|
|
@@ -21895,28 +21897,28 @@ Tt.prototype.triggerEntry = function(e, t, n, a) {
|
|
|
21895
21897
|
n.preventDefault();
|
|
21896
21898
|
}
|
|
21897
21899
|
};
|
|
21898
|
-
|
|
21900
|
+
At.prototype._layoutChanged = function() {
|
|
21899
21901
|
this._toggleState({});
|
|
21900
21902
|
};
|
|
21901
|
-
|
|
21903
|
+
At.prototype._needsCollapse = function(e, t) {
|
|
21902
21904
|
return e < Object.keys(t).length * 46 + 50;
|
|
21903
21905
|
};
|
|
21904
|
-
|
|
21906
|
+
At.prototype.close = function() {
|
|
21905
21907
|
this._toggleState({
|
|
21906
21908
|
open: !1,
|
|
21907
21909
|
twoColumn: !1
|
|
21908
21910
|
});
|
|
21909
21911
|
};
|
|
21910
|
-
|
|
21912
|
+
At.prototype.open = function() {
|
|
21911
21913
|
this._toggleState({ open: !0 });
|
|
21912
21914
|
};
|
|
21913
|
-
|
|
21915
|
+
At.prototype.toggle = function() {
|
|
21914
21916
|
this.isOpen() ? this.close() : this.open();
|
|
21915
21917
|
};
|
|
21916
|
-
|
|
21918
|
+
At.prototype.isActiveTool = function(e) {
|
|
21917
21919
|
return e && this._activeTool === e;
|
|
21918
21920
|
};
|
|
21919
|
-
|
|
21921
|
+
At.prototype.updateToolHighlight = function(e) {
|
|
21920
21922
|
var t, n;
|
|
21921
21923
|
this._toolsContainer || (t = Zt(".djs-palette-entries", this._container), this._toolsContainer = Zt("[data-group=tools]", t)), n = this._toolsContainer, ge(n.children, function(a) {
|
|
21922
21924
|
var o = a.getAttribute("data-action");
|
|
@@ -21926,13 +21928,13 @@ Tt.prototype.updateToolHighlight = function(e) {
|
|
|
21926
21928
|
}
|
|
21927
21929
|
});
|
|
21928
21930
|
};
|
|
21929
|
-
|
|
21931
|
+
At.prototype.isOpen = function() {
|
|
21930
21932
|
return sn(this._container).has($r);
|
|
21931
21933
|
};
|
|
21932
|
-
|
|
21934
|
+
At.prototype._getParentContainer = function() {
|
|
21933
21935
|
return this._canvas.getContainer();
|
|
21934
21936
|
};
|
|
21935
|
-
|
|
21937
|
+
At.HTML_MARKUP = '<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';
|
|
21936
21938
|
function fC(e, t) {
|
|
21937
21939
|
var n = sn(e);
|
|
21938
21940
|
(ft(t) ? t : t.split(/\s+/g)).forEach(function(a) {
|
|
@@ -21947,7 +21949,7 @@ function hC(e, t) {
|
|
|
21947
21949
|
}
|
|
21948
21950
|
var pC = {
|
|
21949
21951
|
__init__: ["palette"],
|
|
21950
|
-
palette: ["type",
|
|
21952
|
+
palette: ["type", At]
|
|
21951
21953
|
};
|
|
21952
21954
|
function gd(e, t, n, a) {
|
|
21953
21955
|
e.on("element.changed", function(o) {
|
|
@@ -21985,7 +21987,7 @@ function yC(e, t, n) {
|
|
|
21985
21987
|
}
|
|
21986
21988
|
function Ci(e, t, n) {
|
|
21987
21989
|
var a = t[e], o = n.min && n.min[e], i = n.max && n.max[e];
|
|
21988
|
-
return
|
|
21990
|
+
return Ht(o) && (a = (/top|left/.test(e) ? Fi : $i)(a, o)), Ht(i) && (a = (/top|left/.test(e) ? $i : Fi)(a, i)), a;
|
|
21989
21991
|
}
|
|
21990
21992
|
function mC(e, t) {
|
|
21991
21993
|
if (!t) return e;
|
|
@@ -22011,12 +22013,12 @@ function bC(e, t, n, a) {
|
|
|
22011
22013
|
right: $i(i.right, r.right)
|
|
22012
22014
|
});
|
|
22013
22015
|
}
|
|
22014
|
-
function
|
|
22016
|
+
function Co(e, t) {
|
|
22015
22017
|
return typeof e < "u" ? e : vC;
|
|
22016
22018
|
}
|
|
22017
22019
|
function wC(e, t) {
|
|
22018
22020
|
var n, a, o, i;
|
|
22019
|
-
return typeof t == "object" ? (n =
|
|
22021
|
+
return typeof t == "object" ? (n = Co(t.left), a = Co(t.right), o = Co(t.top), i = Co(t.bottom)) : n = a = o = i = Co(t), {
|
|
22020
22022
|
x: e.x - n,
|
|
22021
22023
|
y: e.y - o,
|
|
22022
22024
|
width: e.width + n + a,
|
|
@@ -22136,7 +22138,7 @@ yd.$inject = [
|
|
|
22136
22138
|
"canvas",
|
|
22137
22139
|
"previewSupport"
|
|
22138
22140
|
];
|
|
22139
|
-
var Si = -6, ki = 8, Ri = 20,
|
|
22141
|
+
var Si = -6, ki = 8, Ri = 20, So = "djs-resizer", RC = [
|
|
22140
22142
|
"n",
|
|
22141
22143
|
"w",
|
|
22142
22144
|
"s",
|
|
@@ -22166,21 +22168,21 @@ ma.prototype.makeDraggable = function(e, t, n) {
|
|
|
22166
22168
|
};
|
|
22167
22169
|
ma.prototype._createResizer = function(e, t, n, a) {
|
|
22168
22170
|
var o = this._getResizersParent(), i = EC(a), r = Xe("g");
|
|
22169
|
-
pt(r).add(
|
|
22171
|
+
pt(r).add(So), pt(r).add(So + "-" + e.id), pt(r).add(So + "-" + a), tt(o, r);
|
|
22170
22172
|
var l = Xe("rect");
|
|
22171
22173
|
ze(l, {
|
|
22172
22174
|
x: -ki / 2 + i.x,
|
|
22173
22175
|
y: -ki / 2 + i.y,
|
|
22174
22176
|
width: ki,
|
|
22175
22177
|
height: ki
|
|
22176
|
-
}), pt(l).add(
|
|
22178
|
+
}), pt(l).add(So + "-visual"), tt(r, l);
|
|
22177
22179
|
var c = Xe("rect");
|
|
22178
22180
|
return ze(c, {
|
|
22179
22181
|
x: -Ri / 2 + i.x,
|
|
22180
22182
|
y: -Ri / 2 + i.y,
|
|
22181
22183
|
width: Ri,
|
|
22182
22184
|
height: Ri
|
|
22183
|
-
}), pt(c).add(
|
|
22185
|
+
}), pt(c).add(So + "-hit"), tt(r, c), X0(r, t, n), r;
|
|
22184
22186
|
};
|
|
22185
22187
|
ma.prototype.createResizer = function(e, t) {
|
|
22186
22188
|
var n = vd(e, t), a = this._createResizer(e, n.x, n.y, t);
|
|
@@ -22213,7 +22215,7 @@ function EC(e) {
|
|
|
22213
22215
|
}
|
|
22214
22216
|
var TC = {
|
|
22215
22217
|
__depends__: [
|
|
22216
|
-
|
|
22218
|
+
so,
|
|
22217
22219
|
La,
|
|
22218
22220
|
al
|
|
22219
22221
|
],
|
|
@@ -22312,7 +22314,7 @@ ti.prototype.getEditingBBox = function(e) {
|
|
|
22312
22314
|
lineHeight: d,
|
|
22313
22315
|
paddingTop: g + "px",
|
|
22314
22316
|
paddingBottom: b + "px"
|
|
22315
|
-
})), Cl(n) && !Ou(n) && !
|
|
22317
|
+
})), Cl(n) && !Ou(n) && !Bo(n)) {
|
|
22316
22318
|
const x = Iu(e), w = t.getAbsoluteBBox({
|
|
22317
22319
|
x: x.x,
|
|
22318
22320
|
y: x.y,
|
|
@@ -22462,7 +22464,7 @@ $n.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
|
22462
22464
|
return;
|
|
22463
22465
|
}
|
|
22464
22466
|
e.add("mid", Qa(a));
|
|
22465
|
-
}), !
|
|
22467
|
+
}), !Ht(t.x) || !Ht(t.y) || this._elementRegistry.get(t.id) && e.add("mid", Qa(t)), e;
|
|
22466
22468
|
};
|
|
22467
22469
|
$n.prototype.getSnapTargets = function(e, t) {
|
|
22468
22470
|
return od(t).filter(function(n) {
|
|
@@ -22472,18 +22474,18 @@ $n.prototype.getSnapTargets = function(e, t) {
|
|
|
22472
22474
|
function PC(e) {
|
|
22473
22475
|
return !!e.hidden;
|
|
22474
22476
|
}
|
|
22475
|
-
function
|
|
22477
|
+
function go(e) {
|
|
22476
22478
|
e.invoke($n, this);
|
|
22477
22479
|
}
|
|
22478
|
-
Ha(
|
|
22479
|
-
|
|
22480
|
-
|
|
22480
|
+
Ha(go, $n);
|
|
22481
|
+
go.$inject = ["injector"];
|
|
22482
|
+
go.prototype.initSnap = function(e) {
|
|
22481
22483
|
return $n.prototype.initSnap.call(this, e);
|
|
22482
22484
|
};
|
|
22483
|
-
|
|
22485
|
+
go.prototype.addSnapTargetPoints = function(e, t, n) {
|
|
22484
22486
|
return $n.prototype.addSnapTargetPoints.call(this, e, t, n);
|
|
22485
22487
|
};
|
|
22486
|
-
|
|
22488
|
+
go.prototype.getSnapTargets = function(e, t) {
|
|
22487
22489
|
return $n.prototype.getSnapTargets.call(this, e, t);
|
|
22488
22490
|
};
|
|
22489
22491
|
var BC = 1250;
|
|
@@ -22570,7 +22572,7 @@ wa.prototype.snap = function(e, t) {
|
|
|
22570
22572
|
wa.prototype._createLine = function(e) {
|
|
22571
22573
|
var t = this._canvas.getLayer("snap"), n = Xe("path");
|
|
22572
22574
|
return ze(n, { d: "M0,0 L0,0" }), pt(n).add("djs-snap-line"), tt(t, n), { update: function(a) {
|
|
22573
|
-
|
|
22575
|
+
Ht(a) ? e === "horizontal" ? ze(n, {
|
|
22574
22576
|
d: "M-100000," + a + " L+100000," + a,
|
|
22575
22577
|
display: ""
|
|
22576
22578
|
}) : ze(n, {
|
|
@@ -22609,14 +22611,14 @@ var $C = {
|
|
|
22609
22611
|
}, FC = {
|
|
22610
22612
|
__depends__: [$C],
|
|
22611
22613
|
__init__: ["createMoveSnapping"],
|
|
22612
|
-
createMoveSnapping: ["type",
|
|
22614
|
+
createMoveSnapping: ["type", go]
|
|
22613
22615
|
};
|
|
22614
|
-
function
|
|
22616
|
+
function vo(e) {
|
|
22615
22617
|
Jt.call(this, e), this.init();
|
|
22616
22618
|
}
|
|
22617
|
-
|
|
22618
|
-
za(
|
|
22619
|
-
|
|
22619
|
+
vo.$inject = ["eventBus"];
|
|
22620
|
+
za(vo, Jt);
|
|
22621
|
+
vo.prototype.addRule = function(e, t, n) {
|
|
22620
22622
|
var a = this;
|
|
22621
22623
|
typeof e == "string" && (e = [e]), e.forEach(function(o) {
|
|
22622
22624
|
a.canExecute(o, t, function(i, r, l) {
|
|
@@ -22624,13 +22626,13 @@ go.prototype.addRule = function(e, t, n) {
|
|
|
22624
22626
|
}, !0);
|
|
22625
22627
|
});
|
|
22626
22628
|
};
|
|
22627
|
-
|
|
22629
|
+
vo.prototype.init = function() {
|
|
22628
22630
|
};
|
|
22629
22631
|
function ai(e) {
|
|
22630
|
-
|
|
22632
|
+
vo.call(this, e);
|
|
22631
22633
|
}
|
|
22632
22634
|
ai.$inject = ["eventBus"];
|
|
22633
|
-
Ha(ai,
|
|
22635
|
+
Ha(ai, vo);
|
|
22634
22636
|
ai.prototype.init = function() {
|
|
22635
22637
|
this.addRule("connection.start", function(e) {
|
|
22636
22638
|
var t = e.source;
|
|
@@ -23082,7 +23084,7 @@ var s1 = {
|
|
|
23082
23084
|
const z = j.createRoot();
|
|
23083
23085
|
A.setRootElement(z), d();
|
|
23084
23086
|
};
|
|
23085
|
-
|
|
23087
|
+
Tt(() => {
|
|
23086
23088
|
u();
|
|
23087
23089
|
});
|
|
23088
23090
|
const h = (T) => {
|
|
@@ -23228,7 +23230,7 @@ var s1 = {
|
|
|
23228
23230
|
const _ = v || a.labelWidth;
|
|
23229
23231
|
return typeof _ == "string" ? _ : typeof _ == "number" ? _ + "px" : _;
|
|
23230
23232
|
};
|
|
23231
|
-
return t({ validate: () => x() }),
|
|
23233
|
+
return t({ validate: () => x() }), ao({
|
|
23232
23234
|
getTableData: () => h.value,
|
|
23233
23235
|
rowChange: p
|
|
23234
23236
|
}), (v, _) => {
|
|
@@ -23429,7 +23431,7 @@ export {
|
|
|
23429
23431
|
eh as calcDate,
|
|
23430
23432
|
oS as calcDateHours,
|
|
23431
23433
|
iS as calcDateText,
|
|
23432
|
-
|
|
23434
|
+
Mo as clearJson,
|
|
23433
23435
|
ji as clone,
|
|
23434
23436
|
Yt as deepClone,
|
|
23435
23437
|
dS as default,
|
|
@@ -23477,7 +23479,7 @@ export {
|
|
|
23477
23479
|
Eh as useHMenuInject,
|
|
23478
23480
|
Th as useHMenuProvide,
|
|
23479
23481
|
Jn as useInject,
|
|
23480
|
-
|
|
23482
|
+
oo as useLayer,
|
|
23481
23483
|
uS as useLayerInject,
|
|
23482
23484
|
jh as useLayerProvide,
|
|
23483
23485
|
No as useMenuInject,
|
|
@@ -23487,5 +23489,5 @@ export {
|
|
|
23487
23489
|
Gn as useProvide,
|
|
23488
23490
|
Ch as useSortable,
|
|
23489
23491
|
Ni as useTableInject,
|
|
23490
|
-
|
|
23492
|
+
ao as useTableProvide
|
|
23491
23493
|
};
|