@a2simcode/ui 0.0.71 → 0.0.72
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 +43 -43
- package/.cursor/skills/ui-component-helper/SKILL.md +81 -81
- package/LICENSE +53 -53
- package/README.md +156 -156
- package/dist/simcode-ui.es.js +370 -363
- 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 +27 -27
- 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 +26 -26
- 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/buttons.ts +56 -56
- package/docs/components/meta/date.ts +275 -275
- package/docs/components/meta/echarts.ts +64 -64
- package/docs/components/meta/form.ts +160 -160
- package/docs/components/meta/input-cards.ts +112 -112
- package/docs/components/meta/input-color.ts +243 -243
- package/docs/components/meta/input-rows.ts +113 -113
- package/docs/components/meta/layer-form.ts +56 -56
- package/docs/components/meta/map.ts +68 -68
- package/docs/components/meta/panel.ts +152 -152
- package/docs/components/meta/slider.ts +270 -270
- package/docs/components/meta/table.ts +363 -363
- package/docs/components/meta/tabs.ts +136 -136
- package/docs/components/meta/tree-select.ts +199 -199
- package/docs/components/meta/workflow-viewer.ts +55 -55
- package/docs/components/meta/workflow.ts +113 -113
- package/docs/components/number.md +124 -124
- package/docs/components/page.md +57 -57
- 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 +218 -218
- package/docs/components/table.md +319 -319
- 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/danger-ghost.vue +17 -17
- package/docs/examples/button/disabled.vue +10 -10
- 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/type.vue +9 -9
- package/docs/examples/button-select/basic.vue +19 -19
- package/docs/examples/buttons/basic.vue +45 -45
- 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 +54 -54
- 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/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 +450 -450
- 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-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 +69 -69
- 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/init.vue +87 -87
- package/docs/examples/page/log.vue +453 -439
- 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 +32 -32
- 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/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/custom-layout.vue +115 -115
- package/docs/examples/table/editable.vue +263 -263
- 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/link.vue +66 -66
- package/docs/examples/table/multiple.vue +178 -178
- package/docs/examples/table/pagination.vue +151 -151
- 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-lazy.vue +80 -80
- package/docs/examples/table-panel/basic.vue +228 -228
- package/docs/examples/table-panel/batch-operations.vue +285 -285
- package/docs/examples/table-panel/filter.vue +219 -219
- package/docs/examples/table-panel/multiple-selection.vue +243 -243
- package/docs/examples/table-panel/pagination.vue +133 -133
- package/docs/examples/table-panel/sub-table-lazy.vue +118 -118
- package/docs/examples/tabs/basic.vue +98 -98
- package/docs/examples/title/basic.vue +80 -80
- 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/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 { defineComponent as ae, computed as j, openBlock as C, createElementBlock as I, mergeProps as He, createVNode as K, unref as G, shallowRef as la, ref as A, watch as lt, withModifiers as kt, normalizeClass as je, createBlock as H, createCommentVNode as Y, toDisplayString as xe, renderSlot as $e, nextTick as Pt, inject as ed, provide as td, resolveComponent as B, withCtx as V, resolveDynamicComponent as To, getCurrentInstance as Ds, render as Yi, Fragment as
|
|
1
|
+
import { defineComponent as ae, computed as j, openBlock as C, createElementBlock as I, mergeProps as He, createVNode as K, unref as G, shallowRef as la, ref as A, watch as lt, withModifiers as kt, normalizeClass as je, createBlock as H, createCommentVNode as Y, toDisplayString as xe, renderSlot as $e, nextTick as Pt, inject as ed, provide as td, resolveComponent as B, withCtx as V, resolveDynamicComponent as To, getCurrentInstance as Ds, render as Yi, Fragment as be, renderList as Ee, onMounted as St, createSlots as mn, createTextVNode as Kt, createElementVNode as F, useSlots as nd, reactive as Mo, onUnmounted as ii, normalizeStyle as Ce, onBeforeUnmount as ra, h as od, resolveDirective as sa, withDirectives as vn, withKeys as Na, vShow as Xo, watchEffect as Fs, useTemplateRef as no, useModel as ti, mergeModels as ni, normalizeProps as ca, guardReactiveProps as hl } from "vue";
|
|
2
2
|
import { getIcon as to, Icon as cr } from "@iconify/vue";
|
|
3
3
|
import Vs from "dayjs";
|
|
4
4
|
import id from "crypto-js/aes";
|
|
@@ -37,7 +37,7 @@ import { createEditor as Wd, createToolbar as Ud } from "@wangeditor/editor";
|
|
|
37
37
|
import Ws from "diagram-js";
|
|
38
38
|
import { closest as gl, queryAll as Wa, query as $t, delegate as Hn, classes as Nt, event as qe, assignStyle as ai, domify as Ut, remove as Ua, clear as Us, attr as tn, matches as Yd } from "min-dom";
|
|
39
39
|
import { isNumber as Ct, assign as _e, forEach as ne, isArray as Qe, find as rn, filter as Jt, isUndefined as Gd, isObject as Xt, groupBy as vl, has as Ys, map as li, every as ml, sortBy as oi, isNil as fr, bind as yl, uniqueBy as Kd, isFunction as sn, isDefined as en, some as Jd, omit as Xd, pick as Gi, values as Gs, without as qd, reduce as Ya, isString as Ga, matchPattern as Ki, flatten as Zd, size as Qd, debounce as ef } from "min-dash";
|
|
40
|
-
import { create as Fe, attr as
|
|
40
|
+
import { create as Fe, attr as ye, remove as Yt, append as Oe, clone as Ks, classes as at, createTransform as qo, transform as bl, clear as wl } from "tiny-svg";
|
|
41
41
|
import io from "inherits";
|
|
42
42
|
import tf from "diagram-js-direct-editing";
|
|
43
43
|
const de = (e) => (e.install = (t) => {
|
|
@@ -934,35 +934,35 @@ const ac = /* @__PURE__ */ ae({
|
|
|
934
934
|
__name: "dynamic-layer",
|
|
935
935
|
setup(e, { expose: t }) {
|
|
936
936
|
const n = A(), o = A(600), i = A(400), a = A(!0), l = A(!0), r = A(!0), s = A(""), c = A([]), u = A(!0), d = A(), f = la(), p = A(), { getPageName: h } = Pf(), g = () => {
|
|
937
|
-
const
|
|
938
|
-
return
|
|
939
|
-
}, v = A(!1), y = A([]), b = async (
|
|
937
|
+
const $ = h();
|
|
938
|
+
return $ || (typeof f.value == "string" ? f.value : "");
|
|
939
|
+
}, v = A(!1), y = A([]), b = async ($) => {
|
|
940
940
|
if (d.value?.validateSteps) {
|
|
941
941
|
Jo(!0);
|
|
942
|
-
const
|
|
943
|
-
return Jo(!1),
|
|
942
|
+
const D = d.value.validateSteps($);
|
|
943
|
+
return Jo(!1), D;
|
|
944
944
|
}
|
|
945
945
|
return !0;
|
|
946
946
|
}, w = () => d.value?.beforeClose ? d.value.beforeClose() : !0;
|
|
947
947
|
let x, _, m, E = 0;
|
|
948
|
-
const S = async (
|
|
948
|
+
const S = async ($) => {
|
|
949
949
|
if (d.value) {
|
|
950
950
|
if (E = 0, d.value.getConfig) {
|
|
951
|
-
const
|
|
952
|
-
c.value =
|
|
951
|
+
const D = d.value.getConfig();
|
|
952
|
+
c.value = D.buttons || [], v.value = D.isStep, y.value = D.steps || [];
|
|
953
953
|
} else
|
|
954
954
|
c.value = [], v.value = !1, y.value = [];
|
|
955
955
|
if (d.value.open)
|
|
956
956
|
try {
|
|
957
|
-
const { buttons:
|
|
957
|
+
const { buttons: D } = await d.value.open($, n.value, () => {
|
|
958
958
|
x && x();
|
|
959
959
|
}) || {};
|
|
960
|
-
if (
|
|
960
|
+
if (D && D.length > 0) {
|
|
961
961
|
const M = [];
|
|
962
|
-
M.push(...c.value), M.push(
|
|
962
|
+
M.push(...c.value), M.push(...D), c.value = M;
|
|
963
963
|
}
|
|
964
|
-
} catch (
|
|
965
|
-
n.value.close(), console.error(
|
|
964
|
+
} catch (D) {
|
|
965
|
+
n.value.close(), console.error(D);
|
|
966
966
|
}
|
|
967
967
|
n.value.hideLoading();
|
|
968
968
|
} else {
|
|
@@ -971,27 +971,27 @@ const ac = /* @__PURE__ */ ae({
|
|
|
971
971
|
return;
|
|
972
972
|
}
|
|
973
973
|
E++, setTimeout(async () => {
|
|
974
|
-
await S(
|
|
974
|
+
await S($);
|
|
975
975
|
}, 100);
|
|
976
976
|
}
|
|
977
|
-
}, T = (
|
|
978
|
-
f.value =
|
|
979
|
-
n.value.showLoading("加载中"), await S(
|
|
977
|
+
}, T = ($) => {
|
|
978
|
+
f.value = $?.name, o.value = $?.width || 600, i.value = $?.height || 400, a.value = $?.hasBtns !== !1, l.value = $?.hasSaveBtn !== !1, r.value = $?.hasHeader !== !1, $?.destroyOnClose !== !1 && (u.value = !0), p.value = $?.config || {}, s.value = $?.btnText || "保存", x = $?.afterOk || null, _ = $?.afterClose || null, m = $?.afterCancel || null, n.value.open($.title, $.type, $.subtitle), Pt(async () => {
|
|
979
|
+
n.value.showLoading("加载中"), await S($.param || {});
|
|
980
980
|
});
|
|
981
981
|
}, P = async () => {
|
|
982
982
|
if (d.value?.ok) {
|
|
983
983
|
Jo(!0);
|
|
984
|
-
const
|
|
985
|
-
|
|
984
|
+
const $ = await d.value.ok();
|
|
985
|
+
$ && (n.value.close(), x && await x($)), Jo(!1);
|
|
986
986
|
}
|
|
987
987
|
}, R = () => {
|
|
988
988
|
d.value?.closed && d.value.closed(), _ && _();
|
|
989
|
-
},
|
|
989
|
+
}, z = () => {
|
|
990
990
|
m && m();
|
|
991
991
|
};
|
|
992
992
|
return Af({
|
|
993
993
|
getPageName: g
|
|
994
|
-
}), t({ open: T }), (
|
|
994
|
+
}), t({ open: T }), ($, D) => {
|
|
995
995
|
const M = B("j-layer");
|
|
996
996
|
return C(), H(M, {
|
|
997
997
|
ref_key: "layerRef",
|
|
@@ -1010,7 +1010,7 @@ const ac = /* @__PURE__ */ ae({
|
|
|
1010
1010
|
"has-header": r.value,
|
|
1011
1011
|
onOk: P,
|
|
1012
1012
|
onClosed: R,
|
|
1013
|
-
onCancel:
|
|
1013
|
+
onCancel: z
|
|
1014
1014
|
}, {
|
|
1015
1015
|
default: V(() => [
|
|
1016
1016
|
(C(), H(To(f.value), He({
|
|
@@ -1081,13 +1081,13 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
1081
1081
|
size: e.isLink ? 0 : 8
|
|
1082
1082
|
}, {
|
|
1083
1083
|
default: V(() => [
|
|
1084
|
-
(C(!0), I(
|
|
1085
|
-
(C(!0), I(
|
|
1084
|
+
(C(!0), I(be, null, Ee(n.value, (u, d) => (C(), I("div", He({ key: d }, { ref_for: !0 }, a.$attrs), [
|
|
1085
|
+
(C(!0), I(be, null, Ee(u, (f, p) => (C(), I(be, { key: p }, [
|
|
1086
1086
|
f.children?.length && f.children?.length > 0 ? (C(), H(c, { key: 0 }, {
|
|
1087
1087
|
dropdown: V(() => [
|
|
1088
1088
|
K(s, { direction: "vertical" }, {
|
|
1089
1089
|
default: V(() => [
|
|
1090
|
-
(C(!0), I(
|
|
1090
|
+
(C(!0), I(be, null, Ee(f.children || [], (h) => (C(), H(r, He({
|
|
1091
1091
|
key: h.id
|
|
1092
1092
|
}, { ref_for: !0 }, f.config, {
|
|
1093
1093
|
type: "text",
|
|
@@ -1456,7 +1456,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
1456
1456
|
disabled: e.readonly
|
|
1457
1457
|
}, {
|
|
1458
1458
|
default: V(() => [
|
|
1459
|
-
e.isButton ? (C(!0), I(
|
|
1459
|
+
e.isButton ? (C(!0), I(be, { key: 0 }, Ee(e.options, (d) => (C(), H(r, {
|
|
1460
1460
|
key: d.value,
|
|
1461
1461
|
value: d.value,
|
|
1462
1462
|
size: e.size
|
|
@@ -1465,7 +1465,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
1465
1465
|
Kt(xe(d.label), 1)
|
|
1466
1466
|
]),
|
|
1467
1467
|
_: 2
|
|
1468
|
-
}, 1032, ["value", "size"]))), 128)) : (C(!0), I(
|
|
1468
|
+
}, 1032, ["value", "size"]))), 128)) : (C(!0), I(be, { key: 1 }, Ee(e.options, (d, f) => (C(), H(c, {
|
|
1469
1469
|
key: d.value,
|
|
1470
1470
|
value: d.value,
|
|
1471
1471
|
size: e.size
|
|
@@ -1595,12 +1595,12 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
1595
1595
|
onChange: u
|
|
1596
1596
|
}), mn({
|
|
1597
1597
|
default: V(() => [
|
|
1598
|
-
e.isGroup ? (C(!0), I(
|
|
1598
|
+
e.isGroup ? (C(!0), I(be, { key: 0 }, Ee(c.value, (y) => (C(), H(g, {
|
|
1599
1599
|
key: y.label,
|
|
1600
1600
|
label: y.label
|
|
1601
1601
|
}, {
|
|
1602
1602
|
default: V(() => [
|
|
1603
|
-
(C(!0), I(
|
|
1603
|
+
(C(!0), I(be, null, Ee(y.children, (b) => (C(), H(h, {
|
|
1604
1604
|
key: b.value,
|
|
1605
1605
|
label: b.label,
|
|
1606
1606
|
value: b.value || " ",
|
|
@@ -1620,7 +1620,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
1620
1620
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
1621
1621
|
]),
|
|
1622
1622
|
_: 2
|
|
1623
|
-
}, 1032, ["label"]))), 128)) : (C(!0), I(
|
|
1623
|
+
}, 1032, ["label"]))), 128)) : (C(!0), I(be, { key: 1 }, Ee(c.value, (y) => (C(), H(h, {
|
|
1624
1624
|
key: y.value,
|
|
1625
1625
|
label: y.label,
|
|
1626
1626
|
value: y.value + "",
|
|
@@ -1660,7 +1660,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
1660
1660
|
Kt(xe(l.value), 1)
|
|
1661
1661
|
]),
|
|
1662
1662
|
_: 1
|
|
1663
|
-
}, 8, ["content"])) : (C(), I(
|
|
1663
|
+
}, 8, ["content"])) : (C(), I(be, { key: 1 }, [
|
|
1664
1664
|
Kt(xe(l.value), 1)
|
|
1665
1665
|
], 64))
|
|
1666
1666
|
])
|
|
@@ -1813,13 +1813,13 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
1813
1813
|
onChange: a
|
|
1814
1814
|
}, {
|
|
1815
1815
|
default: V(() => [
|
|
1816
|
-
e.type === "checkbox" ? (C(!0), I(
|
|
1816
|
+
e.type === "checkbox" ? (C(!0), I(be, { key: 0 }, Ee(e.options, (d) => (C(), H(s, {
|
|
1817
1817
|
key: d.value,
|
|
1818
1818
|
value: d.value,
|
|
1819
1819
|
disabled: d.disabled,
|
|
1820
1820
|
size: e.size,
|
|
1821
1821
|
label: d.label
|
|
1822
|
-
}, null, 8, ["value", "disabled", "size", "label"]))), 128)) : (C(!0), I(
|
|
1822
|
+
}, null, 8, ["value", "disabled", "size", "label"]))), 128)) : (C(!0), I(be, { key: 1 }, Ee(e.options, (d) => (C(), H(c, {
|
|
1823
1823
|
key: d.value,
|
|
1824
1824
|
class: je({ "j-checkbox-notFillOrColor": !e.fill && !e.textColor }),
|
|
1825
1825
|
value: d.value,
|
|
@@ -2212,37 +2212,37 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
2212
2212
|
get() {
|
|
2213
2213
|
return a.value !== -1 ? a.value : t.left;
|
|
2214
2214
|
},
|
|
2215
|
-
set(
|
|
2216
|
-
a.value =
|
|
2215
|
+
set(D) {
|
|
2216
|
+
a.value = D;
|
|
2217
2217
|
}
|
|
2218
2218
|
}), p = j({
|
|
2219
2219
|
get() {
|
|
2220
2220
|
return l.value !== -1 ? l.value : t.right;
|
|
2221
2221
|
},
|
|
2222
|
-
set(
|
|
2223
|
-
l.value =
|
|
2222
|
+
set(D) {
|
|
2223
|
+
l.value = D;
|
|
2224
2224
|
}
|
|
2225
2225
|
}), h = j({
|
|
2226
2226
|
get() {
|
|
2227
2227
|
return r.value !== -1 ? r.value : t.top;
|
|
2228
2228
|
},
|
|
2229
|
-
set(
|
|
2230
|
-
r.value =
|
|
2229
|
+
set(D) {
|
|
2230
|
+
r.value = D;
|
|
2231
2231
|
}
|
|
2232
2232
|
}), g = j({
|
|
2233
2233
|
get() {
|
|
2234
2234
|
return s.value !== -1 ? s.value : t.bottom;
|
|
2235
2235
|
},
|
|
2236
|
-
set(
|
|
2237
|
-
s.value =
|
|
2236
|
+
set(D) {
|
|
2237
|
+
s.value = D;
|
|
2238
2238
|
}
|
|
2239
2239
|
}), v = j(() => n.left), y = j(() => n.right), b = j(() => n.top), w = j(() => n.bottom), x = j(() => v.value ? u.value && t.hideMidWhenNarrow && y.value ? "50%" : u.value && t.hideMidWhenNarrow && !y.value ? "100%" : typeof f.value == "number" ? f.value + "px" : f.value : "0"), _ = j(() => y.value ? u.value && t.hideMidWhenNarrow && v.value ? "50%" : u.value && t.hideMidWhenNarrow && !v.value ? "100%" : typeof p.value == "number" ? p.value + "px" : p.value : "0"), m = j(() => b.value ? typeof h.value == "number" ? h.value + "px" : h.value : "0"), E = j(() => w.value ? typeof g.value == "number" ? g.value + "px" : g.value : "0"), S = j(() => ({
|
|
2240
2240
|
minWidth: t.midMinWidth + "px",
|
|
2241
2241
|
minHeight: t.midMinHeight + "px"
|
|
2242
|
-
})), T = (
|
|
2243
|
-
d.type =
|
|
2242
|
+
})), T = (D, M) => {
|
|
2243
|
+
d.type = D, d.isMove = !0, d.pageX = M.pageX, d.pageY = M.pageY, d.h = i.value.clientHeight, d.w = i.value.clientWidth;
|
|
2244
2244
|
const k = o.value.clientWidth, O = o.value.clientHeight;
|
|
2245
|
-
switch (
|
|
2245
|
+
switch (D) {
|
|
2246
2246
|
case "left": {
|
|
2247
2247
|
const N = f.value;
|
|
2248
2248
|
d.size = typeof N == "string" && N.includes("%") ? parseFloat(N) / 100 * k : Number(N);
|
|
@@ -2265,29 +2265,29 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
2267
|
document.onmouseup = R, document.onmousemove = P;
|
|
2268
|
-
}, P = (
|
|
2268
|
+
}, P = (D) => {
|
|
2269
2269
|
if (d.isMove)
|
|
2270
2270
|
switch (d.type) {
|
|
2271
2271
|
case "left": {
|
|
2272
|
-
const M =
|
|
2272
|
+
const M = D.pageX - d.pageX;
|
|
2273
2273
|
let k = d.size + M;
|
|
2274
2274
|
k < 0 ? k = 4 : k > d.size + d.w - t.midMinWidth && (k = d.size + d.w - t.midMinWidth), f.value = k;
|
|
2275
2275
|
break;
|
|
2276
2276
|
}
|
|
2277
2277
|
case "right": {
|
|
2278
|
-
const M =
|
|
2278
|
+
const M = D.pageX - d.pageX;
|
|
2279
2279
|
let k = d.size - M;
|
|
2280
2280
|
k < 0 ? k = 4 : k > d.size + d.w - t.midMinWidth && (k = d.size + d.w - t.midMinWidth), p.value = k;
|
|
2281
2281
|
break;
|
|
2282
2282
|
}
|
|
2283
2283
|
case "top": {
|
|
2284
|
-
const M =
|
|
2284
|
+
const M = D.pageY - d.pageY;
|
|
2285
2285
|
let k = d.size + M;
|
|
2286
2286
|
k < 0 ? k = 4 : k > d.size + d.h - t.midMinHeight && (k = d.size + d.h - t.midMinHeight), h.value = k;
|
|
2287
2287
|
break;
|
|
2288
2288
|
}
|
|
2289
2289
|
case "bottom": {
|
|
2290
|
-
const M =
|
|
2290
|
+
const M = D.pageY - d.pageY;
|
|
2291
2291
|
let k = d.size - M;
|
|
2292
2292
|
k < 0 ? k = 4 : k > d.size + d.h - t.midMinHeight && (k = d.size + d.h - t.midMinHeight), g.value = k;
|
|
2293
2293
|
break;
|
|
@@ -2295,32 +2295,32 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
2295
2295
|
}
|
|
2296
2296
|
}, R = () => {
|
|
2297
2297
|
d.isMove = !1, document.onmouseup = null, document.onmousemove = null;
|
|
2298
|
-
},
|
|
2298
|
+
}, z = () => {
|
|
2299
2299
|
if (!t.hideMidWhenNarrow || !o.value) {
|
|
2300
2300
|
u.value = !1;
|
|
2301
2301
|
return;
|
|
2302
2302
|
}
|
|
2303
2303
|
c.value = o.value.clientWidth;
|
|
2304
|
-
let
|
|
2304
|
+
let D = 0, M = 0;
|
|
2305
2305
|
if (v.value) {
|
|
2306
2306
|
const O = f.value;
|
|
2307
|
-
|
|
2307
|
+
D = typeof O == "string" && O.includes("%") ? parseFloat(O) / 100 * c.value : Number(O);
|
|
2308
2308
|
}
|
|
2309
2309
|
if (y.value) {
|
|
2310
2310
|
const O = p.value;
|
|
2311
2311
|
M = typeof O == "string" && O.includes("%") ? parseFloat(O) / 100 * c.value : Number(O);
|
|
2312
2312
|
}
|
|
2313
|
-
const k = c.value -
|
|
2313
|
+
const k = c.value - D - M;
|
|
2314
2314
|
u.value = k < t.midMinWidth;
|
|
2315
2315
|
};
|
|
2316
|
-
let
|
|
2316
|
+
let $ = null;
|
|
2317
2317
|
return St(() => {
|
|
2318
|
-
t.hideMidWhenNarrow && o.value && typeof window < "u" && window.ResizeObserver && (
|
|
2319
|
-
|
|
2320
|
-
}),
|
|
2318
|
+
t.hideMidWhenNarrow && o.value && typeof window < "u" && window.ResizeObserver && (z(), $ = new ResizeObserver(() => {
|
|
2319
|
+
z();
|
|
2320
|
+
}), $.observe(o.value));
|
|
2321
2321
|
}), ii(() => {
|
|
2322
|
-
|
|
2323
|
-
}), (
|
|
2322
|
+
$ && $.disconnect();
|
|
2323
|
+
}), (D, M) => (C(), I("div", {
|
|
2324
2324
|
ref_key: "layout",
|
|
2325
2325
|
ref: o,
|
|
2326
2326
|
class: je(["j-layout", { "j-layout-not-hidden": e.notHidden }])
|
|
@@ -2331,7 +2331,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
2331
2331
|
style: Ce({ width: x.value })
|
|
2332
2332
|
}, [
|
|
2333
2333
|
F("div", lh, [
|
|
2334
|
-
$e(
|
|
2334
|
+
$e(D.$slots, "left")
|
|
2335
2335
|
]),
|
|
2336
2336
|
e.leftMove ? (C(), I("div", {
|
|
2337
2337
|
key: 0,
|
|
@@ -2346,7 +2346,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
2346
2346
|
style: Ce({ height: m.value })
|
|
2347
2347
|
}, [
|
|
2348
2348
|
F("div", sh, [
|
|
2349
|
-
$e(
|
|
2349
|
+
$e(D.$slots, "top")
|
|
2350
2350
|
]),
|
|
2351
2351
|
e.topMove ? (C(), I("div", {
|
|
2352
2352
|
key: 0,
|
|
@@ -2360,7 +2360,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
2360
2360
|
class: "j-layout--wrapper",
|
|
2361
2361
|
style: Ce(S.value)
|
|
2362
2362
|
}, [
|
|
2363
|
-
$e(
|
|
2363
|
+
$e(D.$slots, "default")
|
|
2364
2364
|
], 4),
|
|
2365
2365
|
w.value ? (C(), I("div", {
|
|
2366
2366
|
key: 1,
|
|
@@ -2368,7 +2368,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
2368
2368
|
style: Ce({ height: E.value })
|
|
2369
2369
|
}, [
|
|
2370
2370
|
F("div", ch, [
|
|
2371
|
-
$e(
|
|
2371
|
+
$e(D.$slots, "bottom")
|
|
2372
2372
|
]),
|
|
2373
2373
|
e.bottomMove ? (C(), I("div", {
|
|
2374
2374
|
key: 0,
|
|
@@ -2383,7 +2383,7 @@ const Bf = de(ac), Lf = /* @__PURE__ */ ae({
|
|
|
2383
2383
|
style: Ce({ width: _.value })
|
|
2384
2384
|
}, [
|
|
2385
2385
|
F("div", uh, [
|
|
2386
|
-
$e(
|
|
2386
|
+
$e(D.$slots, "right")
|
|
2387
2387
|
]),
|
|
2388
2388
|
e.rightMove ? (C(), I("div", {
|
|
2389
2389
|
key: 0,
|
|
@@ -4213,14 +4213,14 @@ const Mi = {
|
|
|
4213
4213
|
if (h ? R = h[n.id] : a ? R = a[n.id] : R = n.modelValue, R === void 0 && w.value === "j-tabs") {
|
|
4214
4214
|
if (y.value?.defaultValue)
|
|
4215
4215
|
return y.value.defaultValue;
|
|
4216
|
-
const
|
|
4217
|
-
return
|
|
4216
|
+
const z = n.children.findIndex(($) => $.config?.active);
|
|
4217
|
+
return z > -1 ? "_tab" + z : "_tab0";
|
|
4218
4218
|
}
|
|
4219
4219
|
if (R === void 0 && w.value === "j-collapse") {
|
|
4220
4220
|
if (y.value?.defaultValue)
|
|
4221
4221
|
return y.value.defaultValue;
|
|
4222
|
-
const
|
|
4223
|
-
return y.value?.accordion ?
|
|
4222
|
+
const z = n.children.map(($, D) => ({ item: $, index: D })).filter(({ item: $ }) => $.config?.active);
|
|
4223
|
+
return y.value?.accordion ? z.length > 0 ? "_collapse" + z[0].index : "" : z.map(({ index: $ }) => "_collapse" + $);
|
|
4224
4224
|
}
|
|
4225
4225
|
return R;
|
|
4226
4226
|
},
|
|
@@ -4244,31 +4244,37 @@ const Mi = {
|
|
|
4244
4244
|
})
|
|
4245
4245
|
), w = j(() => n.isTableCell && (b.value === "j-radio" || b.value === "j-checkbox") ? "j-select" : b.value === "j-textarea" ? "j-input" : ((b.value == null || b.value === "") && console.warn("组件类型不能为空"), b.value)), x = j(() => {
|
|
4246
4246
|
const R = { ...y.value };
|
|
4247
|
-
return w.value === "j-layer-form" && (R.schema = n.children), w.value === "el-collapse-item" && R.label && (R.title = R.label, delete R.label), ["j-input-cards", "j-input-rows", "j-table"].includes(b.value) && (
|
|
4247
|
+
return w.value === "j-layer-form" && (R.schema = n.children), w.value === "el-collapse-item" && R.label && (R.title = R.label, delete R.label), ["j-input-cards", "j-input-rows", "j-table"].includes(b.value) && (console.log(n.children), R.columns = n.children.map((z) => {
|
|
4248
|
+
const $ = z.config?.parentTableId;
|
|
4249
|
+
return $ && z.id.startsWith($ + ".") ? {
|
|
4250
|
+
...z,
|
|
4251
|
+
id: z.id.slice($.length + 1)
|
|
4252
|
+
} : z;
|
|
4253
|
+
})), n.isTableCell && (b.value === "j-checkbox" && (R.multiple = !0), b.value === "j-select" && R.multiple && (R.collapseTags = !0, R.collapseTagsTooltip = !0), b.value === "j-switch" && (R.size = "small"), b.value === "j-textarea" && (R.type = "textarea")), R;
|
|
4248
4254
|
}), _ = j(() => {
|
|
4249
4255
|
if (w.value === "j-layer-form" || w.value === "j-input-rows" || w.value === "j-input-cards")
|
|
4250
4256
|
return {};
|
|
4251
4257
|
const R = {};
|
|
4252
|
-
return n.children.forEach((
|
|
4253
|
-
let
|
|
4254
|
-
w.value === "j-tabs" && (
|
|
4255
|
-
...
|
|
4258
|
+
return n.children.forEach((z, $) => {
|
|
4259
|
+
let D = z;
|
|
4260
|
+
w.value === "j-tabs" && (D = {
|
|
4261
|
+
...z,
|
|
4256
4262
|
type: "el-tab-pane",
|
|
4257
4263
|
config: {
|
|
4258
|
-
...
|
|
4259
|
-
name: "_tab" +
|
|
4264
|
+
...z.config || {},
|
|
4265
|
+
name: "_tab" + $
|
|
4260
4266
|
}
|
|
4261
|
-
}, i == "form" && (
|
|
4262
|
-
...
|
|
4267
|
+
}, i == "form" && (D.config.needRow = D.config.needRow !== !1, D.config.needFormItem = D.config.needFormItem !== !1)), w.value === "j-collapse" && (D = {
|
|
4268
|
+
...z,
|
|
4263
4269
|
type: "el-collapse-item",
|
|
4264
4270
|
config: {
|
|
4265
|
-
...
|
|
4266
|
-
name: "_collapse" +
|
|
4271
|
+
...z.config || {},
|
|
4272
|
+
name: "_collapse" + $
|
|
4267
4273
|
}
|
|
4268
|
-
}, i == "form" && (
|
|
4274
|
+
}, i == "form" && (D.config.needRow = D.config.needRow !== !1, D.config.needFormItem = D.config.needFormItem !== !1)), D.slot ? (R[D.slot] = R[D.slot] || [], R[D.slot].push(D)) : (R.default = R.default || [], R.default.push(D));
|
|
4269
4275
|
}), R;
|
|
4270
4276
|
}), m = (R) => {
|
|
4271
|
-
const
|
|
4277
|
+
const z = {
|
|
4272
4278
|
...R,
|
|
4273
4279
|
id: n.id,
|
|
4274
4280
|
formData: a,
|
|
@@ -4277,13 +4283,13 @@ const Mi = {
|
|
|
4277
4283
|
config: y.value,
|
|
4278
4284
|
type: "change"
|
|
4279
4285
|
};
|
|
4280
|
-
y.value?.change && y.value?.change(
|
|
4281
|
-
}, E = A(), S = A([]), T = (R, ...
|
|
4286
|
+
y.value?.change && y.value?.change(z), p && p(z), l && l(z), o("change", z);
|
|
4287
|
+
}, E = A(), S = A([]), T = (R, ...z) => {
|
|
4282
4288
|
if (E.value && typeof E.value[R] == "function")
|
|
4283
|
-
return E.value[R](...
|
|
4289
|
+
return E.value[R](...z);
|
|
4284
4290
|
console.warn(`方法 ${R} 不存在或不是函数`);
|
|
4285
4291
|
}, P = () => {
|
|
4286
|
-
if (S.value.forEach((
|
|
4292
|
+
if (S.value.forEach((z) => z()), S.value = [], !c)
|
|
4287
4293
|
return;
|
|
4288
4294
|
const R = c(n.id, T);
|
|
4289
4295
|
S.value.push(R);
|
|
@@ -4297,21 +4303,21 @@ const Mi = {
|
|
|
4297
4303
|
P();
|
|
4298
4304
|
}), ra(() => {
|
|
4299
4305
|
S.value.forEach((R) => R()), S.value = [];
|
|
4300
|
-
}), (R,
|
|
4301
|
-
const
|
|
4306
|
+
}), (R, z) => {
|
|
4307
|
+
const $ = B("JComp"), D = B("el-row");
|
|
4302
4308
|
return x.value.display != !1 && g.value ? (C(), H(To(w.value), He({
|
|
4303
4309
|
key: 0,
|
|
4304
4310
|
ref_key: "compRef",
|
|
4305
4311
|
ref: E
|
|
4306
4312
|
}, x.value, {
|
|
4307
4313
|
modelValue: v.value,
|
|
4308
|
-
"onUpdate:modelValue":
|
|
4314
|
+
"onUpdate:modelValue": z[0] || (z[0] = (M) => v.value = M),
|
|
4309
4315
|
onChange: m
|
|
4310
4316
|
}), mn({ _: 2 }, [
|
|
4311
4317
|
Ee(_.value, (M, k) => ({
|
|
4312
4318
|
name: k,
|
|
4313
4319
|
fn: V(() => [
|
|
4314
|
-
(C(!0), I(
|
|
4320
|
+
(C(!0), I(be, null, Ee(M, (O) => (C(), H($, He({
|
|
4315
4321
|
key: O.id
|
|
4316
4322
|
}, { ref_for: !0 }, O), null, 16))), 128))
|
|
4317
4323
|
])
|
|
@@ -4324,19 +4330,19 @@ const Mi = {
|
|
|
4324
4330
|
Ee(_.value, (M, k) => ({
|
|
4325
4331
|
name: k,
|
|
4326
4332
|
fn: V(() => [
|
|
4327
|
-
x.value.needRow ? (C(), H(
|
|
4333
|
+
x.value.needRow ? (C(), H(D, {
|
|
4328
4334
|
key: 0,
|
|
4329
4335
|
gutter: s.value
|
|
4330
4336
|
}, {
|
|
4331
4337
|
default: V(() => [
|
|
4332
|
-
x.value.needFormItem ? (C(!0), I(
|
|
4338
|
+
x.value.needFormItem ? (C(!0), I(be, { key: 0 }, Ee(M, (O) => (C(), H(rc, He({
|
|
4333
4339
|
key: O.id
|
|
4334
|
-
}, { ref_for: !0 }, O), null, 16))), 128)) : (C(!0), I(
|
|
4340
|
+
}, { ref_for: !0 }, O), null, 16))), 128)) : (C(!0), I(be, { key: 1 }, Ee(M, (O) => (C(), H($, He({
|
|
4335
4341
|
key: O.id
|
|
4336
4342
|
}, { ref_for: !0 }, O), null, 16))), 128))
|
|
4337
4343
|
]),
|
|
4338
4344
|
_: 2
|
|
4339
|
-
}, 1032, ["gutter"])) : (C(!0), I(
|
|
4345
|
+
}, 1032, ["gutter"])) : (C(!0), I(be, { key: 1 }, Ee(M, (O) => (C(), H($, He({
|
|
4340
4346
|
key: O.id
|
|
4341
4347
|
}, { ref_for: !0 }, O), null, 16))), 128))
|
|
4342
4348
|
])
|
|
@@ -4706,24 +4712,24 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
4706
4712
|
const x = A(0);
|
|
4707
4713
|
let _ = i.records.length, m = 45;
|
|
4708
4714
|
const E = A(!1), S = A({}), T = A([]), P = A(null), R = A(0);
|
|
4709
|
-
let
|
|
4715
|
+
let z = null, $ = !1, D = !1;
|
|
4710
4716
|
const M = (L, W, J, X, oe) => {
|
|
4711
4717
|
T.value = L, P.value = W, R.value = J, S.value = {
|
|
4712
4718
|
left: `${X}px`,
|
|
4713
4719
|
top: `${oe}px`
|
|
4714
|
-
}, E.value = !0,
|
|
4720
|
+
}, E.value = !0, $ = !1, document.addEventListener("wheel", ge, { passive: !1 });
|
|
4715
4721
|
}, k = () => {
|
|
4716
|
-
E.value = !1,
|
|
4722
|
+
E.value = !1, $ = !1, D = !1, N(), document.removeEventListener("wheel", ge);
|
|
4717
4723
|
}, O = () => {
|
|
4718
|
-
N(),
|
|
4719
|
-
|
|
4724
|
+
N(), z = setTimeout(() => {
|
|
4725
|
+
!$ && !D && k();
|
|
4720
4726
|
}, 100);
|
|
4721
4727
|
}, N = () => {
|
|
4722
|
-
|
|
4728
|
+
z && (clearTimeout(z), z = null);
|
|
4723
4729
|
}, re = () => {
|
|
4724
|
-
|
|
4730
|
+
$ = !0, N();
|
|
4725
4731
|
}, ue = () => {
|
|
4726
|
-
|
|
4732
|
+
$ = !1, O();
|
|
4727
4733
|
}, ge = (L) => {
|
|
4728
4734
|
L.preventDefault();
|
|
4729
4735
|
}, ze = (L) => {
|
|
@@ -4786,9 +4792,9 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
4786
4792
|
const ct = De.canvasX + Ne.left - 64, ht = De.canvasY + Ne.top + 8;
|
|
4787
4793
|
M(se, st, ke, ct, ht);
|
|
4788
4794
|
}
|
|
4789
|
-
|
|
4795
|
+
D = !0, N();
|
|
4790
4796
|
}), et.addEventListener("mouseleave", (De) => {
|
|
4791
|
-
De.target.setAttribute("fill", Le), me.scenegraph.stage.renderNextFrame(),
|
|
4797
|
+
De.target.setAttribute("fill", Le), me.scenegraph.stage.renderNextFrame(), D = !1, O();
|
|
4792
4798
|
}), pe.add(et);
|
|
4793
4799
|
}
|
|
4794
4800
|
return {
|
|
@@ -5356,7 +5362,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5356
5362
|
}), ra(() => {
|
|
5357
5363
|
Ye(), N(), document.removeEventListener("wheel", ge);
|
|
5358
5364
|
});
|
|
5359
|
-
const
|
|
5365
|
+
const we = j({
|
|
5360
5366
|
get() {
|
|
5361
5367
|
return i.tablePage;
|
|
5362
5368
|
},
|
|
@@ -5370,7 +5376,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5370
5376
|
set(L) {
|
|
5371
5377
|
he.value = L, a("update:pageSize", L);
|
|
5372
5378
|
}
|
|
5373
|
-
}), jt = j(() => (
|
|
5379
|
+
}), jt = j(() => (we.value - 1) * _t.value), ce = (L, W) => {
|
|
5374
5380
|
a("loadPageData", {
|
|
5375
5381
|
rows: W,
|
|
5376
5382
|
page: L
|
|
@@ -5560,8 +5566,8 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5560
5566
|
W[2] || (W[2] = F("div", null, null, -1)),
|
|
5561
5567
|
e.isPage ? (C(), H(oe, {
|
|
5562
5568
|
key: 0,
|
|
5563
|
-
"current-page":
|
|
5564
|
-
"onUpdate:currentPage": W[0] || (W[0] = (Q) =>
|
|
5569
|
+
"current-page": we.value,
|
|
5570
|
+
"onUpdate:currentPage": W[0] || (W[0] = (Q) => we.value = Q),
|
|
5565
5571
|
"page-size": _t.value,
|
|
5566
5572
|
"onUpdate:pageSize": W[1] || (W[1] = (Q) => _t.value = Q),
|
|
5567
5573
|
"page-sizes": e.pageSizes || [100, 200, 500, 1e3],
|
|
@@ -5578,7 +5584,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5578
5584
|
onMouseenter: re,
|
|
5579
5585
|
onMouseleave: ue
|
|
5580
5586
|
}, [
|
|
5581
|
-
(C(!0), I(
|
|
5587
|
+
(C(!0), I(be, null, Ee(T.value, (Q) => (C(), I("div", {
|
|
5582
5588
|
key: Q.id,
|
|
5583
5589
|
class: "j-table-dropdown-item",
|
|
5584
5590
|
style: Ce({
|
|
@@ -5804,23 +5810,23 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5804
5810
|
o.beforeClose && o.beforeClose() === !1 || (l.value = !1, i("update:visible", !1), i("cancel"));
|
|
5805
5811
|
}, R = () => {
|
|
5806
5812
|
i("ok", S, T);
|
|
5807
|
-
},
|
|
5808
|
-
h.left = 0, h.top = 0, w.value = 0, b.value = 0, o.isStep && (
|
|
5813
|
+
}, z = () => {
|
|
5814
|
+
h.left = 0, h.top = 0, w.value = 0, b.value = 0, o.isStep && ($.value = 0, Pt(() => {
|
|
5809
5815
|
O();
|
|
5810
5816
|
})), i("closed");
|
|
5811
|
-
},
|
|
5817
|
+
}, $ = j({
|
|
5812
5818
|
get() {
|
|
5813
5819
|
return p.value !== -1 ? p.value : o.stepActive;
|
|
5814
5820
|
},
|
|
5815
5821
|
set(ee) {
|
|
5816
5822
|
p.value = ee, i("update:stepActive", ee);
|
|
5817
5823
|
}
|
|
5818
|
-
}),
|
|
5819
|
-
|
|
5824
|
+
}), D = () => {
|
|
5825
|
+
$.value > 0 && $.value--, Pt(() => {
|
|
5820
5826
|
O();
|
|
5821
5827
|
});
|
|
5822
5828
|
}, M = async () => {
|
|
5823
|
-
await k() && (
|
|
5829
|
+
await k() && ($.value < o.steps.length - 1 && ($.value += 1), Pt(() => {
|
|
5824
5830
|
O();
|
|
5825
5831
|
}));
|
|
5826
5832
|
}, k = async () => {
|
|
@@ -5830,7 +5836,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5830
5836
|
}
|
|
5831
5837
|
return c.value = !1, !0;
|
|
5832
5838
|
}, O = () => {
|
|
5833
|
-
switch (f.value = !0, d.value = !0, u.value = !0,
|
|
5839
|
+
switch (f.value = !0, d.value = !0, u.value = !0, $.value) {
|
|
5834
5840
|
case 0:
|
|
5835
5841
|
d.value = !1;
|
|
5836
5842
|
break;
|
|
@@ -5899,7 +5905,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5899
5905
|
top: `${m.value + h.top}px`,
|
|
5900
5906
|
"pointer-events": e.mask ? "" : "none"
|
|
5901
5907
|
}),
|
|
5902
|
-
onClosed:
|
|
5908
|
+
onClosed: z
|
|
5903
5909
|
}, {
|
|
5904
5910
|
default: V(() => [
|
|
5905
5911
|
F("div", {
|
|
@@ -5946,12 +5952,12 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5946
5952
|
}, [
|
|
5947
5953
|
K(dt, {
|
|
5948
5954
|
simple: "",
|
|
5949
|
-
active:
|
|
5955
|
+
active: $.value,
|
|
5950
5956
|
space: 160,
|
|
5951
5957
|
"finish-status": "success"
|
|
5952
5958
|
}, {
|
|
5953
5959
|
default: V(() => [
|
|
5954
|
-
(C(!0), I(
|
|
5960
|
+
(C(!0), I(be, null, Ee(N.value, (fe, Te) => (C(), H(tt, {
|
|
5955
5961
|
key: Te,
|
|
5956
5962
|
title: G(a)(fe.title)
|
|
5957
5963
|
}, null, 8, ["title"]))), 128))
|
|
@@ -5971,7 +5977,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5971
5977
|
size: "mini",
|
|
5972
5978
|
disabled: u.value,
|
|
5973
5979
|
label: G(a)("上一步"),
|
|
5974
|
-
onClick:
|
|
5980
|
+
onClick: D
|
|
5975
5981
|
}, null, 8, ["disabled", "label"])) : Y("", !0),
|
|
5976
5982
|
e.isStep ? (C(), H(Ke, {
|
|
5977
5983
|
key: 1,
|
|
@@ -5987,7 +5993,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
5987
5993
|
label: G(a)("取消"),
|
|
5988
5994
|
onClick: P
|
|
5989
5995
|
}, null, 8, ["label"])) : Y("", !0),
|
|
5990
|
-
(C(!0), I(
|
|
5996
|
+
(C(!0), I(be, null, Ee(e.buttons, (fe) => (C(), H(Ke, He({ ref_for: !0 }, fe.config, {
|
|
5991
5997
|
key: fe.id,
|
|
5992
5998
|
label: fe.label,
|
|
5993
5999
|
onClick: (Te) => ut(fe)
|
|
@@ -6178,11 +6184,11 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6178
6184
|
}, T = j(() => o.steps.map((R) => ({ title: R, disabled: !0 }))), P = async (R) => {
|
|
6179
6185
|
R.click && await R.click();
|
|
6180
6186
|
};
|
|
6181
|
-
return t({ showLoading: w, hideLoading: x }), (R,
|
|
6182
|
-
const
|
|
6187
|
+
return t({ showLoading: w, hideLoading: x }), (R, z) => {
|
|
6188
|
+
const $ = B("el-step"), D = B("el-steps"), M = B("j-button"), k = B("el-space"), O = B("el-divider"), N = B("el-dialog"), re = sa("loading");
|
|
6183
6189
|
return C(), H(N, {
|
|
6184
6190
|
modelValue: r.value,
|
|
6185
|
-
"onUpdate:modelValue":
|
|
6191
|
+
"onUpdate:modelValue": z[0] || (z[0] = (ue) => r.value = ue),
|
|
6186
6192
|
class: "j-dialog-full",
|
|
6187
6193
|
width: "100%",
|
|
6188
6194
|
"append-to-body": !0,
|
|
@@ -6213,7 +6219,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6213
6219
|
class: "j-dialog-full-header-mid",
|
|
6214
6220
|
style: Ce({ maxWidth: `${200 * T.value.length}px` })
|
|
6215
6221
|
}, [
|
|
6216
|
-
e.isStep ? (C(), H(
|
|
6222
|
+
e.isStep ? (C(), H(D, {
|
|
6217
6223
|
key: 0,
|
|
6218
6224
|
simple: "",
|
|
6219
6225
|
active: g.value,
|
|
@@ -6221,7 +6227,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6221
6227
|
"finish-status": "success"
|
|
6222
6228
|
}, {
|
|
6223
6229
|
default: V(() => [
|
|
6224
|
-
(C(!0), I(
|
|
6230
|
+
(C(!0), I(be, null, Ee(T.value, (ue, ge) => (C(), H($, {
|
|
6225
6231
|
key: ge,
|
|
6226
6232
|
title: G(l)(ue.title)
|
|
6227
6233
|
}, null, 8, ["title"]))), 128))
|
|
@@ -6249,7 +6255,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6249
6255
|
label: G(l)("下一步"),
|
|
6250
6256
|
onClick: m
|
|
6251
6257
|
}, null, 8, ["disabled", "loading", "label"])) : Y("", !0),
|
|
6252
|
-
(C(!0), I(
|
|
6258
|
+
(C(!0), I(be, null, Ee(e.buttons, (ue) => (C(), I(be, {
|
|
6253
6259
|
key: ue.id
|
|
6254
6260
|
}, [
|
|
6255
6261
|
ue.config?.display !== !1 ? (C(), H(M, He({
|
|
@@ -6510,11 +6516,11 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6510
6516
|
break;
|
|
6511
6517
|
}
|
|
6512
6518
|
}, P = j(() => o.steps.map((R) => ({ title: R, disabled: !0 })));
|
|
6513
|
-
return t({ showLoading: u, hideLoading: d }), (R,
|
|
6514
|
-
const
|
|
6519
|
+
return t({ showLoading: u, hideLoading: d }), (R, z) => {
|
|
6520
|
+
const $ = B("el-input"), D = B("j-button"), M = B("el-space"), k = B("el-step"), O = B("el-steps"), N = B("el-drawer"), re = sa("loading");
|
|
6515
6521
|
return C(), H(N, {
|
|
6516
6522
|
modelValue: c.value,
|
|
6517
|
-
"onUpdate:modelValue":
|
|
6523
|
+
"onUpdate:modelValue": z[0] || (z[0] = (ue) => c.value = ue),
|
|
6518
6524
|
class: "j-drawer",
|
|
6519
6525
|
"append-to-body": !0,
|
|
6520
6526
|
direction: e.direction,
|
|
@@ -6538,21 +6544,21 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6538
6544
|
"padding-bottom": e.showCloseBtn || e.hasSaveBtn || e.buttons.length > 0 ? "48px" : "0"
|
|
6539
6545
|
})
|
|
6540
6546
|
}, [
|
|
6541
|
-
K(
|
|
6547
|
+
K($, { style: { position: "absolute", top: "-200px" } }),
|
|
6542
6548
|
F("div", Zh, [
|
|
6543
6549
|
$e(R.$slots, "default")
|
|
6544
6550
|
]),
|
|
6545
6551
|
e.hasBtns ? (C(), I("div", Qh, [
|
|
6546
6552
|
K(M, { size: 8 }, {
|
|
6547
6553
|
default: V(() => [
|
|
6548
|
-
e.isStep ? (C(), H(
|
|
6554
|
+
e.isStep ? (C(), H(D, {
|
|
6549
6555
|
key: 0,
|
|
6550
6556
|
size: "mini",
|
|
6551
6557
|
disabled: y.value,
|
|
6552
6558
|
label: G(i)("上一步"),
|
|
6553
6559
|
onClick: m
|
|
6554
6560
|
}, null, 8, ["disabled", "label"])) : Y("", !0),
|
|
6555
|
-
e.isStep ? (C(), H(
|
|
6561
|
+
e.isStep ? (C(), H(D, {
|
|
6556
6562
|
key: 1,
|
|
6557
6563
|
size: "mini",
|
|
6558
6564
|
disabled: b.value,
|
|
@@ -6560,19 +6566,19 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6560
6566
|
label: G(i)("下一步"),
|
|
6561
6567
|
onClick: E
|
|
6562
6568
|
}, null, 8, ["disabled", "loading", "label"])) : Y("", !0),
|
|
6563
|
-
!e.isStep && e.showCloseBtn ? (C(), H(
|
|
6569
|
+
!e.isStep && e.showCloseBtn ? (C(), H(D, {
|
|
6564
6570
|
key: 2,
|
|
6565
6571
|
size: "mini",
|
|
6566
6572
|
label: G(i)("取消"),
|
|
6567
6573
|
onClick: h
|
|
6568
6574
|
}, null, 8, ["label"])) : Y("", !0),
|
|
6569
|
-
(C(!0), I(
|
|
6575
|
+
(C(!0), I(be, null, Ee(e.buttons, (ue) => (C(), H(D, He({
|
|
6570
6576
|
key: ue.id
|
|
6571
6577
|
}, { ref_for: !0 }, ue.config, {
|
|
6572
6578
|
label: ue.label,
|
|
6573
6579
|
onClick: (ge) => g(ue)
|
|
6574
6580
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
6575
|
-
e.hasSaveBtn ? (C(), H(
|
|
6581
|
+
e.hasSaveBtn ? (C(), H(D, {
|
|
6576
6582
|
key: 3,
|
|
6577
6583
|
size: "mini",
|
|
6578
6584
|
type: "primary",
|
|
@@ -6593,7 +6599,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6593
6599
|
])
|
|
6594
6600
|
]),
|
|
6595
6601
|
e.showCloseBtn ? (C(), I("div", op, [
|
|
6596
|
-
K(
|
|
6602
|
+
K(D, {
|
|
6597
6603
|
type: "text",
|
|
6598
6604
|
icon: "mdi:close",
|
|
6599
6605
|
onClick: h
|
|
@@ -6611,7 +6617,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6611
6617
|
"finish-status": "success"
|
|
6612
6618
|
}, {
|
|
6613
6619
|
default: V(() => [
|
|
6614
|
-
(C(!0), I(
|
|
6620
|
+
(C(!0), I(be, null, Ee(P.value, (ue, ge) => (C(), H(k, {
|
|
6615
6621
|
key: ge,
|
|
6616
6622
|
title: G(i)(ue.title)
|
|
6617
6623
|
}, null, 8, ["title"]))), 128))
|
|
@@ -6882,7 +6888,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
6882
6888
|
prefix: V(() => [
|
|
6883
6889
|
K(h, null, {
|
|
6884
6890
|
default: V(() => [
|
|
6885
|
-
(C(!0), I(
|
|
6891
|
+
(C(!0), I(be, null, Ee(a.value, (v, y) => (C(), H(p, {
|
|
6886
6892
|
key: y,
|
|
6887
6893
|
type: "info",
|
|
6888
6894
|
closable: !e.readonly,
|
|
@@ -7070,8 +7076,8 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
7070
7076
|
return C(), I("div", {
|
|
7071
7077
|
class: je(["j-upload-list", { "j-upload-image-list": e.isUploadImg, "j-upload-drag-list": e.drag }])
|
|
7072
7078
|
}, [
|
|
7073
|
-
e.drag ? (C(), I(
|
|
7074
|
-
e.showFileList ? (C(!0), I(
|
|
7079
|
+
e.drag ? (C(), I(be, { key: 0 }, [
|
|
7080
|
+
e.showFileList ? (C(!0), I(be, { key: 0 }, Ee(e.list, (c) => (C(), I("div", {
|
|
7075
7081
|
key: c.id,
|
|
7076
7082
|
class: "j-upload-dragItem"
|
|
7077
7083
|
}, [
|
|
@@ -7135,7 +7141,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
7135
7141
|
}, null, 8, ["percent"])) : Y("", !0)
|
|
7136
7142
|
]))), 128)) : Y("", !0),
|
|
7137
7143
|
$e(n.$slots, "default")
|
|
7138
|
-
], 64)) : e.isUploadImg ? (C(!0), I(
|
|
7144
|
+
], 64)) : e.isUploadImg ? (C(!0), I(be, { key: 1 }, Ee(e.list, (c) => (C(), I("div", {
|
|
7139
7145
|
key: c.id,
|
|
7140
7146
|
class: "j-upload-imgItem"
|
|
7141
7147
|
}, [
|
|
@@ -7168,7 +7174,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
7168
7174
|
percent: c.percent,
|
|
7169
7175
|
"show-text": !1
|
|
7170
7176
|
}, null, 8, ["percent"])) : Y("", !0)
|
|
7171
|
-
]))), 128)) : (C(!0), I(
|
|
7177
|
+
]))), 128)) : (C(!0), I(be, { key: 2 }, Ee(e.list, (c) => (C(), I("div", {
|
|
7172
7178
|
key: c.id,
|
|
7173
7179
|
class: "j-upload-item"
|
|
7174
7180
|
}, [
|
|
@@ -7470,9 +7476,9 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
7470
7476
|
Z.percent = Te, Z.uploadSize = fe, w();
|
|
7471
7477
|
}, R = (Z) => {
|
|
7472
7478
|
Z.status = "done", Z.id += "1", Z.uid += "1", w(), o("success", { file: Z, list: b.value }), n.modelValue || (o("update:modelValue", v.value), o("change", { value: v.value }));
|
|
7473
|
-
},
|
|
7479
|
+
}, z = (Z, fe) => {
|
|
7474
7480
|
console.error(fe, "简搭提醒您:文件上传错误!"), Z.status = "error", w(), o("error", { file: Z, list: b.value });
|
|
7475
|
-
},
|
|
7481
|
+
}, $ = (Z) => {
|
|
7476
7482
|
if (b.value.push(Z), Z.status === "unUpload") {
|
|
7477
7483
|
o("notUploadChange", { value: Z.url });
|
|
7478
7484
|
return;
|
|
@@ -7481,14 +7487,14 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
7481
7487
|
onStart: T,
|
|
7482
7488
|
onProgress: P,
|
|
7483
7489
|
onSuccess: R,
|
|
7484
|
-
onError:
|
|
7490
|
+
onError: z,
|
|
7485
7491
|
uploadCallback: n.uploadCallback
|
|
7486
7492
|
}) : R(Z);
|
|
7487
|
-
},
|
|
7493
|
+
}, D = (Z) => {
|
|
7488
7494
|
if (!x(Z.size))
|
|
7489
7495
|
return a && a("上传文件超出大小了"), !1;
|
|
7490
7496
|
}, M = (Z) => {
|
|
7491
|
-
S(Z.file),
|
|
7497
|
+
S(Z.file), $(Z.file);
|
|
7492
7498
|
}, k = (Z) => new Promise((fe) => {
|
|
7493
7499
|
l ? l({
|
|
7494
7500
|
title: "提示",
|
|
@@ -7569,7 +7575,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
7569
7575
|
accept: p.value,
|
|
7570
7576
|
limit: h.value,
|
|
7571
7577
|
multiple: e.multiple,
|
|
7572
|
-
"before-upload":
|
|
7578
|
+
"before-upload": D,
|
|
7573
7579
|
"http-request": M,
|
|
7574
7580
|
"file-list": b.value,
|
|
7575
7581
|
"before-remove": k,
|
|
@@ -7750,7 +7756,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
7750
7756
|
for (const [o, i] of t)
|
|
7751
7757
|
n[o] = i;
|
|
7752
7758
|
return n;
|
|
7753
|
-
}, Hp = /* @__PURE__ */ uc(jp, [["__scopeId", "data-v-
|
|
7759
|
+
}, Hp = /* @__PURE__ */ uc(jp, [["__scopeId", "data-v-37f9a80b"]]), Ip = de(Hp), Op = ["innerHTML"], Bp = {
|
|
7754
7760
|
key: 1,
|
|
7755
7761
|
class: "j-barcode-error"
|
|
7756
7762
|
}, Lp = /* @__PURE__ */ ae({
|
|
@@ -8040,7 +8046,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
8040
8046
|
let d = u.message || "条码数据或参数错误";
|
|
8041
8047
|
u.message && u.message.includes("Bad checksum") && t.bcid === "gs1-128" ? d = `GS1-128 校验位错误: ${u.message}。请确保 AI 01 的14位数字包含正确的校验位。` : u.message && u.message.includes("GS1badChecksum") ? d = `GS1 校验位错误: ${u.message}。请检查应用标识符 (AI) 的数据格式和校验位是否正确。` : u.message && u.message.includes("auspostBadFCC") && t.bcid === "auspost" ? d = `AUSPOST FCC 错误: ${u.message}。AUSPOST 条码必须以有效的 FCC (Format Control Code) 开头:11, 45, 59 或 62。如果值未以有效的 FCC 开头,系统会自动添加合适的 FCC。` : u.message && u.message.includes("auspostTooLong") && t.bcid === "auspost" ? d = `AUSPOST 长度错误: ${u.message}。AUSPOST 条码长度限制:FCC 11 (10位), FCC 59 (18位), FCC 62 (25位,最大容量)。如果值超过限制,系统会自动截断并使用合适的 FCC。` : u.message && u.message.includes("pznBadCheckDigit") && t.bcid === "pzn" && (d = `PZN 校验位错误: ${u.message}。PZN (德国医药产品编号) 必须是7位或8位数字,包含正确的校验位。如果校验位不正确,系统会自动修复。`), o.value = d, n.value = "";
|
|
8042
8048
|
}
|
|
8043
|
-
}), (u, d) => (C(), I(
|
|
8049
|
+
}), (u, d) => (C(), I(be, null, [
|
|
8044
8050
|
n.value ? (C(), I("div", {
|
|
8045
8051
|
key: 0,
|
|
8046
8052
|
class: "j-barcode",
|
|
@@ -8077,33 +8083,33 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
8077
8083
|
const T = E.match(/^([><=]+)(.+)$/);
|
|
8078
8084
|
if (T) {
|
|
8079
8085
|
const P = T[1], R = Number(T[2]);
|
|
8080
|
-
for (let
|
|
8086
|
+
for (let z = 0; z < m.length; z++)
|
|
8081
8087
|
try {
|
|
8082
|
-
const
|
|
8083
|
-
let
|
|
8088
|
+
const $ = Number(m[z]);
|
|
8089
|
+
let D = !1;
|
|
8084
8090
|
switch (P) {
|
|
8085
8091
|
case ">":
|
|
8086
|
-
|
|
8092
|
+
D = $ > R;
|
|
8087
8093
|
break;
|
|
8088
8094
|
case "<":
|
|
8089
|
-
|
|
8095
|
+
D = $ < R;
|
|
8090
8096
|
break;
|
|
8091
8097
|
case ">=":
|
|
8092
|
-
|
|
8098
|
+
D = $ >= R;
|
|
8093
8099
|
break;
|
|
8094
8100
|
case "<=":
|
|
8095
|
-
|
|
8101
|
+
D = $ <= R;
|
|
8096
8102
|
break;
|
|
8097
8103
|
case "==":
|
|
8098
8104
|
case "===":
|
|
8099
|
-
|
|
8105
|
+
D = $ === R;
|
|
8100
8106
|
break;
|
|
8101
8107
|
case "!=":
|
|
8102
8108
|
case "!==":
|
|
8103
|
-
|
|
8109
|
+
D = $ !== R;
|
|
8104
8110
|
break;
|
|
8105
8111
|
}
|
|
8106
|
-
|
|
8112
|
+
D && S++;
|
|
8107
8113
|
} catch {
|
|
8108
8114
|
console.log("计算失败");
|
|
8109
8115
|
break;
|
|
@@ -8136,8 +8142,8 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
8136
8142
|
return E;
|
|
8137
8143
|
}, v = (...m) => m[0].map((T, P) => {
|
|
8138
8144
|
let R = T;
|
|
8139
|
-
for (let
|
|
8140
|
-
R *= m[
|
|
8145
|
+
for (let z = 1; z < m.length; z++)
|
|
8146
|
+
R *= m[z][P] || 0;
|
|
8141
8147
|
return R;
|
|
8142
8148
|
}).reduce((T, P) => T + P, 0), y = t, { getValue: b } = ao(), w = (m) => {
|
|
8143
8149
|
const E = b({ id: m });
|
|
@@ -8408,7 +8414,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
8408
8414
|
{ immediate: !0 }
|
|
8409
8415
|
), (u, d) => {
|
|
8410
8416
|
const f = B("j-button"), p = B("j-layer");
|
|
8411
|
-
return C(), I(
|
|
8417
|
+
return C(), I(be, null, [
|
|
8412
8418
|
K(f, He({ style: { width: "auto" } }, u.$attrs, {
|
|
8413
8419
|
type: e.type,
|
|
8414
8420
|
label: e.btnText,
|
|
@@ -9101,7 +9107,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
9101
9107
|
style: { "max-height": "calc(100vh - 80px)", "border-radius": "8px" }
|
|
9102
9108
|
}, G(f)), [
|
|
9103
9109
|
F("div", ca(hl(G(p))), [
|
|
9104
|
-
(C(!0), I(
|
|
9110
|
+
(C(!0), I(be, null, Ee(G(d), (v) => (C(), H(da, {
|
|
9105
9111
|
key: v.data.value,
|
|
9106
9112
|
"parent-actives": G(l)?.pid?.split(".") || [],
|
|
9107
9113
|
item: v.data,
|
|
@@ -9291,7 +9297,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
9291
9297
|
class: ["j-menu", { collapsed: e.collapsed, "j-menu-dark": G(a) === "dark" }]
|
|
9292
9298
|
}, G(c)), [
|
|
9293
9299
|
F("div", ca(hl(G(u))), [
|
|
9294
|
-
(C(!0), I(
|
|
9300
|
+
(C(!0), I(be, null, Ee(G(s), (p) => (C(), H(da, {
|
|
9295
9301
|
key: p.data.value,
|
|
9296
9302
|
"parent-actives": G(i)?.pid?.split(".") || [],
|
|
9297
9303
|
item: p.data,
|
|
@@ -9362,7 +9368,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
9362
9368
|
ref: l,
|
|
9363
9369
|
class: je(["j-menu-horizontal", { "j-menu-dark": G(a) === "dark" }])
|
|
9364
9370
|
}, [
|
|
9365
|
-
(C(!0), I(
|
|
9371
|
+
(C(!0), I(be, null, Ee(c.value, (g) => (C(), H(da, {
|
|
9366
9372
|
key: g.value,
|
|
9367
9373
|
"parent-actives": d.value,
|
|
9368
9374
|
item: g,
|
|
@@ -9400,7 +9406,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
9400
9406
|
class: ["j-menu-vertical", { "j-menu-dark": G(a) === "dark" }]
|
|
9401
9407
|
}, G(d)), [
|
|
9402
9408
|
F("div", ca(hl(G(f))), [
|
|
9403
|
-
(C(!0), I(
|
|
9409
|
+
(C(!0), I(be, null, Ee(G(u), (g) => (C(), H(da, {
|
|
9404
9410
|
key: g.data.value,
|
|
9405
9411
|
"parent-actives": s.value,
|
|
9406
9412
|
item: g.data,
|
|
@@ -10023,26 +10029,26 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10023
10029
|
});
|
|
10024
10030
|
const P = /* @__PURE__ */ new Set();
|
|
10025
10031
|
return E && E.length > 0 && E.forEach((R) => {
|
|
10026
|
-
const
|
|
10027
|
-
if (
|
|
10028
|
-
P.add(
|
|
10029
|
-
const
|
|
10030
|
-
id:
|
|
10031
|
-
label:
|
|
10032
|
-
type:
|
|
10033
|
-
display:
|
|
10032
|
+
const z = T.get(R.id);
|
|
10033
|
+
if (z) {
|
|
10034
|
+
P.add(z.id);
|
|
10035
|
+
const $ = {
|
|
10036
|
+
id: z.id,
|
|
10037
|
+
label: z.config?.label || z.id,
|
|
10038
|
+
type: z.type,
|
|
10039
|
+
display: z.config?.display !== !1
|
|
10034
10040
|
};
|
|
10035
|
-
|
|
10041
|
+
z.children && z.children.length > 0 && ($.children = d(z.children, R.children)), S.push($);
|
|
10036
10042
|
}
|
|
10037
10043
|
}), m.forEach((R) => {
|
|
10038
10044
|
if (!P.has(R.id)) {
|
|
10039
|
-
const
|
|
10045
|
+
const z = {
|
|
10040
10046
|
id: R.id,
|
|
10041
10047
|
label: R.config?.label || R.id,
|
|
10042
10048
|
type: R.type,
|
|
10043
10049
|
display: R.config?.display !== !1
|
|
10044
10050
|
};
|
|
10045
|
-
R.children && R.children.length > 0 && (
|
|
10051
|
+
R.children && R.children.length > 0 && (z.children = d(R.children)), S.push(z);
|
|
10046
10052
|
}
|
|
10047
10053
|
}), S;
|
|
10048
10054
|
}, f = (m, E) => E.length === 0 ? m : m.map((S) => {
|
|
@@ -10101,6 +10107,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10101
10107
|
const E = m.$refs?.treeRef || m;
|
|
10102
10108
|
E?.setCheckedKeys && E.setCheckedKeys(h.value);
|
|
10103
10109
|
}
|
|
10110
|
+
a("save", void 0);
|
|
10104
10111
|
};
|
|
10105
10112
|
return t({ init: () => {
|
|
10106
10113
|
v(), c.value = d(i.columns, i.columnConfig), u.value = JSON.parse(JSON.stringify(c.value));
|
|
@@ -10111,7 +10118,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10111
10118
|
F("div", Kg, [
|
|
10112
10119
|
K(T, {
|
|
10113
10120
|
modelValue: r.value,
|
|
10114
|
-
"onUpdate:modelValue": E[0] || (E[0] = (
|
|
10121
|
+
"onUpdate:modelValue": E[0] || (E[0] = (z) => r.value = z),
|
|
10115
10122
|
modelModifiers: { trim: !0 },
|
|
10116
10123
|
placeholder: G(o)("搜索 (多个关键词用空格隔开)"),
|
|
10117
10124
|
clearable: ""
|
|
@@ -10318,13 +10325,13 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10318
10325
|
let d = a.pageSize || 100, f = "";
|
|
10319
10326
|
const p = A(0), h = j(() => p.value > 0), g = A([]), v = A(!1), y = j(() => a.batchButtons && a.batchButtons.length > 0), b = j(() => g.value.length > 0), w = j(() => y.value && b.value && a.isMultiple || v.value), x = j(() => a.isPage && !w.value);
|
|
10320
10327
|
y.value && !a.isMultiple && console.warn("batchButtons is only valid when isMultiple is true");
|
|
10321
|
-
const _ = (
|
|
10328
|
+
const _ = (we) => a.rowKey ? a.rowKey.split(",").map((_t) => we[_t.trim()]).join("::") : "", m = (we, he) => {
|
|
10322
10329
|
if (!he || he.length === 0)
|
|
10323
|
-
return
|
|
10330
|
+
return we.filter((ce) => ce.config?.display !== !1).map((ce) => ce.children && ce.children.length > 0 ? {
|
|
10324
10331
|
...ce,
|
|
10325
10332
|
children: m(ce.children)
|
|
10326
10333
|
} : ce);
|
|
10327
|
-
const _t = new Map(
|
|
10334
|
+
const _t = new Map(we.map((ce) => [ce.id, ce])), jt = [];
|
|
10328
10335
|
return he.forEach((ce) => {
|
|
10329
10336
|
const rt = _t.get(ce.id);
|
|
10330
10337
|
if (rt) {
|
|
@@ -10337,7 +10344,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10337
10344
|
}
|
|
10338
10345
|
_t.delete(ce.id);
|
|
10339
10346
|
}
|
|
10340
|
-
}),
|
|
10347
|
+
}), we.forEach((ce) => {
|
|
10341
10348
|
if (_t.has(ce.id) && ce.config?.display !== !1) {
|
|
10342
10349
|
let rt = ce;
|
|
10343
10350
|
ce.children && ce.children.length > 0 && (rt = {
|
|
@@ -10346,18 +10353,18 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10346
10353
|
}), jt.push(rt);
|
|
10347
10354
|
}
|
|
10348
10355
|
}), jt;
|
|
10349
|
-
}, E = j(() => m(a.columns, Z.value)), S = j(() => pf(a.columns, (
|
|
10356
|
+
}, E = j(() => m(a.columns, Z.value)), S = j(() => pf(a.columns, (we) => we.config.label)), T = A(""), P = j(() => S.value.some((we) => we.config?.filter?.isSearchKeyword)), R = A(), z = A(!0), $ = A([]), D = j(() => z.value ? "搜索全部" : `搜索范围:${S.value.filter((we) => $.value.includes(we.id)).map((we) => we.config?.label).join("、")}`), M = () => {
|
|
10350
10357
|
R.value.init();
|
|
10351
10358
|
}, k = A(), O = A(!1), N = A(!1), re = A(!1), ue = A([]), ge = A("and"), ze = A(), ut = A(!1), ee = A([]), Ve = () => {
|
|
10352
10359
|
ze.value.init(ee.value);
|
|
10353
|
-
}, Ke = (
|
|
10354
|
-
ee.value =
|
|
10360
|
+
}, Ke = (we) => {
|
|
10361
|
+
ee.value = we, ut.value = !1, U();
|
|
10355
10362
|
}, Se = () => {
|
|
10356
10363
|
ee.value = [], U();
|
|
10357
10364
|
}, tt = A(), dt = A(!1), Z = A(), fe = j(() => Z.value != null), Te = () => {
|
|
10358
10365
|
tt.value?.init();
|
|
10359
|
-
}, nt = (
|
|
10360
|
-
|
|
10366
|
+
}, nt = (we) => {
|
|
10367
|
+
Z.value = we, dt.value = !1;
|
|
10361
10368
|
}, vt = A(!1), zt = () => {
|
|
10362
10369
|
vt.value = !vt.value;
|
|
10363
10370
|
}, Ue = () => {
|
|
@@ -10366,7 +10373,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10366
10373
|
v.value = !v.value, v.value ? r.value?.setRecords(g.value) : r.value?.setRecords(s), r.value?.setSelection?.(g.value);
|
|
10367
10374
|
}, _n = j(() => {
|
|
10368
10375
|
if (g.value.length > 0 && a.isMultiple) {
|
|
10369
|
-
const
|
|
10376
|
+
const we = [
|
|
10370
10377
|
{
|
|
10371
10378
|
id: "selection_count",
|
|
10372
10379
|
label: `已选${g.value.length}条`,
|
|
@@ -10396,12 +10403,12 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10396
10403
|
_t.click && _t.click({ data: g.value, openLayer: i });
|
|
10397
10404
|
}
|
|
10398
10405
|
}));
|
|
10399
|
-
return [...
|
|
10406
|
+
return [...we, ...he];
|
|
10400
10407
|
}
|
|
10401
10408
|
return a.buttons;
|
|
10402
10409
|
}), Zt = async () => {
|
|
10403
10410
|
p.value++;
|
|
10404
|
-
const
|
|
10411
|
+
const we = {};
|
|
10405
10412
|
try {
|
|
10406
10413
|
const he = {};
|
|
10407
10414
|
he.rel = ge.value;
|
|
@@ -10413,22 +10420,22 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10413
10420
|
method: ce.method,
|
|
10414
10421
|
value: ce.value,
|
|
10415
10422
|
type: ce.type
|
|
10416
|
-
})), he.cond.length > 0 ? re.value = !0 : re.value = !1,
|
|
10423
|
+
})), he.cond.length > 0 ? re.value = !0 : re.value = !1, we.filter = he;
|
|
10417
10424
|
const jt = ee.value.map((ce) => ce.value + " " + ce.sord).join(",");
|
|
10418
|
-
if (T.value && (
|
|
10425
|
+
if (T.value && (we.keyword = {
|
|
10419
10426
|
value: T.value,
|
|
10420
|
-
fields:
|
|
10427
|
+
fields: z.value ? S.value.filter((ce) => ce.config?.filter?.isSearchKeyword).map((ce) => ce.id) : G($)
|
|
10421
10428
|
}), a.loadData) {
|
|
10422
10429
|
if (a.isPage) {
|
|
10423
|
-
|
|
10430
|
+
we.pagination = {
|
|
10424
10431
|
rows: d,
|
|
10425
10432
|
page: u.value,
|
|
10426
10433
|
sort: jt || f || a.sort || a.rowKey
|
|
10427
10434
|
};
|
|
10428
|
-
const ce = await a.loadData(
|
|
10435
|
+
const ce = await a.loadData(we) || {};
|
|
10429
10436
|
s = ce.rows || [], c.value = ce.records || 0;
|
|
10430
10437
|
} else
|
|
10431
|
-
|
|
10438
|
+
we.sort = jt, s = await a.loadData(we) || [], c.value = s.length;
|
|
10432
10439
|
r.value.setRecords(s), y.value ? (g.value = [], v.value = !1) : a.rowKey && g.value.length > 0 && r.value?.setSelection?.(g.value);
|
|
10433
10440
|
}
|
|
10434
10441
|
} finally {
|
|
@@ -10436,36 +10443,36 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10436
10443
|
}
|
|
10437
10444
|
}, U = async () => {
|
|
10438
10445
|
u.value = 1, await Zt();
|
|
10439
|
-
}, le = ({ rows:
|
|
10440
|
-
d =
|
|
10446
|
+
}, le = ({ rows: we, page: he }) => {
|
|
10447
|
+
d = we, u.value = he, Zt();
|
|
10441
10448
|
}, q = async () => {
|
|
10442
10449
|
g.value = [], v.value = !1, u.value = 1, await Zt();
|
|
10443
10450
|
}, te = async () => {
|
|
10444
10451
|
g.value = [], v.value = !1, await Zt();
|
|
10445
10452
|
}, ie = async () => {
|
|
10446
10453
|
await q();
|
|
10447
|
-
}, ve = (
|
|
10448
|
-
l("ready",
|
|
10449
|
-
}, Me = (
|
|
10454
|
+
}, ve = (we) => {
|
|
10455
|
+
l("ready", we);
|
|
10456
|
+
}, Me = (we) => {
|
|
10450
10457
|
let he = [];
|
|
10451
10458
|
if (!a.isMultiple) {
|
|
10452
|
-
g.value =
|
|
10459
|
+
g.value = we, l("select", we);
|
|
10453
10460
|
return;
|
|
10454
10461
|
}
|
|
10455
10462
|
if (y.value)
|
|
10456
|
-
he =
|
|
10463
|
+
he = we;
|
|
10457
10464
|
else if (!a.rowKey)
|
|
10458
|
-
he =
|
|
10465
|
+
he = we;
|
|
10459
10466
|
else {
|
|
10460
|
-
const _t = new Map(
|
|
10467
|
+
const _t = new Map(we.map((ce) => [_(ce), ce])), jt = new Map(g.value.map((ce) => [_(ce), ce]));
|
|
10461
10468
|
s.forEach((ce) => {
|
|
10462
10469
|
const rt = _(ce);
|
|
10463
10470
|
_t.has(rt) ? jt.set(rt, _t.get(rt)) : jt.delete(rt);
|
|
10464
10471
|
}), he = Array.from(jt.values());
|
|
10465
10472
|
}
|
|
10466
10473
|
g.value = he, l("select", he), v.value && he.length === 0 ? (v.value = !1, r.value && r.value.setRecords(s)) : v.value && he.length > 0 && r.value && (r.value.setRecords(he), r.value.setSelection?.(he));
|
|
10467
|
-
}, Ye = () => g.value || [], Mt = (
|
|
10468
|
-
g.value =
|
|
10474
|
+
}, Ye = () => g.value || [], Mt = (we) => {
|
|
10475
|
+
g.value = we, r.value?.setSelection?.(we);
|
|
10469
10476
|
}, ot = () => r.value?.getInstance?.();
|
|
10470
10477
|
return St(async () => {
|
|
10471
10478
|
a.immediate && await te();
|
|
@@ -10478,7 +10485,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10478
10485
|
Ue();
|
|
10479
10486
|
},
|
|
10480
10487
|
getInstance: ot
|
|
10481
|
-
}), (
|
|
10488
|
+
}), (we, he) => {
|
|
10482
10489
|
const _t = B("j-buttons"), jt = B("j-icon"), ce = B("el-popover"), rt = B("el-tooltip"), Jn = B("el-input"), kn = B("j-button"), Ra = B("j-table");
|
|
10483
10490
|
return C(), I("div", {
|
|
10484
10491
|
class: je([
|
|
@@ -10512,7 +10519,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10512
10519
|
suffix: V(() => [
|
|
10513
10520
|
K(rt, {
|
|
10514
10521
|
placement: "bottom",
|
|
10515
|
-
content:
|
|
10522
|
+
content: D.value
|
|
10516
10523
|
}, {
|
|
10517
10524
|
default: V(() => [
|
|
10518
10525
|
F("div", null, [
|
|
@@ -10535,10 +10542,10 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10535
10542
|
K(jg, {
|
|
10536
10543
|
ref_key: "keywordPanelRef",
|
|
10537
10544
|
ref: R,
|
|
10538
|
-
"check-all":
|
|
10539
|
-
"onUpdate:checkAll": he[0] || (he[0] = (Je) =>
|
|
10540
|
-
"check-fields":
|
|
10541
|
-
"onUpdate:checkFields": he[1] || (he[1] = (Je) =>
|
|
10545
|
+
"check-all": z.value,
|
|
10546
|
+
"onUpdate:checkAll": he[0] || (he[0] = (Je) => z.value = Je),
|
|
10547
|
+
"check-fields": $.value,
|
|
10548
|
+
"onUpdate:checkFields": he[1] || (he[1] = (Je) => $.value = Je),
|
|
10542
10549
|
columns: S.value
|
|
10543
10550
|
}, null, 8, ["check-all", "check-fields", "columns"])
|
|
10544
10551
|
]),
|
|
@@ -10804,7 +10811,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
10804
10811
|
}, 8, ["modelValue", "placeholder"])
|
|
10805
10812
|
]),
|
|
10806
10813
|
F("div", dv, [
|
|
10807
|
-
(C(!0), I(
|
|
10814
|
+
(C(!0), I(be, null, Ee(l.value, (g) => (C(), I("div", {
|
|
10808
10815
|
key: g.value,
|
|
10809
10816
|
class: je(["option-item", { active: r.value.includes(g.value) || g.disabled }]),
|
|
10810
10817
|
onClick: kt((v) => s(g), ["stop"])
|
|
@@ -11071,28 +11078,28 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
11071
11078
|
u.value = !0, o.loadData && (f.value = await o.loadData() || []), s && await s(o.dataType, o.dataCode), u.value = !1, Pt(() => {
|
|
11072
11079
|
o.afterLoadData && o.afterLoadData(g.value || []);
|
|
11073
11080
|
});
|
|
11074
|
-
}, y = (
|
|
11075
|
-
c.value?.setCurrentKey(
|
|
11076
|
-
}, b = () => c.value?.getCurrentKey(), w = (
|
|
11077
|
-
c.value?.setCheckedKeys(
|
|
11078
|
-
}, x = (
|
|
11079
|
-
if (d.value =
|
|
11081
|
+
}, y = (D, M = !0) => {
|
|
11082
|
+
c.value?.setCurrentKey(D, M);
|
|
11083
|
+
}, b = () => c.value?.getCurrentKey(), w = (D, M = !1) => {
|
|
11084
|
+
c.value?.setCheckedKeys(D, M);
|
|
11085
|
+
}, x = (D = !1) => c.value?.getCheckedKeys(D), _ = async (D, M, k, O) => {
|
|
11086
|
+
if (d.value = D.value, o.nodeClickFlow && o.runFlow) {
|
|
11080
11087
|
const N = JSON.parse(o.nodeClickFlow);
|
|
11081
|
-
await o.runFlow(N, { value:
|
|
11088
|
+
await o.runFlow(N, { value: D.value });
|
|
11082
11089
|
}
|
|
11083
|
-
o.click && o.click(
|
|
11084
|
-
}, m = (
|
|
11085
|
-
o.check && o.check(M, { node:
|
|
11086
|
-
}, E = (
|
|
11087
|
-
i("node-drop",
|
|
11088
|
-
}, S = (
|
|
11090
|
+
o.click && o.click(D.value, D, O);
|
|
11091
|
+
}, m = (D, { checkedKeys: M, checkedNodes: k, halfCheckedKeys: O, halfCheckedNodes: N }) => {
|
|
11092
|
+
o.check && o.check(M, { node: D, checkedNodes: k, halfCheckedKeys: O, halfCheckedNodes: N });
|
|
11093
|
+
}, E = (D, M, k, O) => {
|
|
11094
|
+
i("node-drop", D, M, k, O);
|
|
11095
|
+
}, S = (D) => {
|
|
11089
11096
|
const M = yn(o.treeButtons);
|
|
11090
|
-
return
|
|
11091
|
-
}, { openLayer: T } = si(), P = (
|
|
11092
|
-
|
|
11093
|
-
}, R = A(""),
|
|
11094
|
-
R.value =
|
|
11095
|
-
},
|
|
11097
|
+
return D && o.filterButton ? o.filterButton({ buttons: M, node: D }) : M;
|
|
11098
|
+
}, { openLayer: T } = si(), P = (D, M) => {
|
|
11099
|
+
D.config?.disabled || D.click && D.click({ data: M, openLayer: T });
|
|
11100
|
+
}, R = A(""), z = (D, M) => {
|
|
11101
|
+
R.value = D ? M.value : "", console.log(R.value, "row");
|
|
11102
|
+
}, $ = (D, M, k) => o.allowDrop ? o.allowDrop(D, M, k) : !(k == "inner" && !M.data.canInner);
|
|
11096
11103
|
return St(async () => {
|
|
11097
11104
|
(o.immediate && o.loadData || o.dataType || o.dataCode) && await v();
|
|
11098
11105
|
}), lt(
|
|
@@ -11113,7 +11120,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
11113
11120
|
getValue: b,
|
|
11114
11121
|
setCheck: w,
|
|
11115
11122
|
getCheck: x
|
|
11116
|
-
}), (
|
|
11123
|
+
}), (D, M) => {
|
|
11117
11124
|
const k = B("j-icon"), O = B("j-button"), N = B("el-dropdown-item"), re = B("el-dropdown-menu"), ue = B("el-dropdown"), ge = B("el-tree"), ze = B("el-empty"), ut = sa("loading");
|
|
11118
11125
|
return vn((C(), I("div", {
|
|
11119
11126
|
class: je(["j-block", "j-tree", { "j-tree-menu": e.theme === "menu" }]),
|
|
@@ -11136,7 +11143,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
11136
11143
|
"filter-node-method": e.filterNode,
|
|
11137
11144
|
"render-after-expand": e.renderAfterExpand,
|
|
11138
11145
|
draggable: e.draggable,
|
|
11139
|
-
"allow-drop":
|
|
11146
|
+
"allow-drop": $,
|
|
11140
11147
|
"expand-on-click-node": e.expandOnClickNode,
|
|
11141
11148
|
onNodeClick: _,
|
|
11142
11149
|
onCheck: m,
|
|
@@ -11162,15 +11169,15 @@ const Mh = { class: "j-table-footer" }, Ph = {
|
|
|
11162
11169
|
}, null, 8, ["icon", "color"])) : Y("", !0),
|
|
11163
11170
|
F("div", gv, xe(ee.label), 1),
|
|
11164
11171
|
S(ee.data).length ? (C(), I("div", vv, [
|
|
11165
|
-
(C(!0), I(
|
|
11172
|
+
(C(!0), I(be, null, Ee(S(ee.data), (Ve, Ke) => (C(), H(ue, {
|
|
11166
11173
|
key: Ke,
|
|
11167
11174
|
trigger: "click",
|
|
11168
|
-
onVisibleChange: (Se) =>
|
|
11175
|
+
onVisibleChange: (Se) => z(Se, ee.data)
|
|
11169
11176
|
}, {
|
|
11170
11177
|
dropdown: V(() => [
|
|
11171
11178
|
K(re, null, {
|
|
11172
11179
|
default: V(() => [
|
|
11173
|
-
(C(!0), I(
|
|
11180
|
+
(C(!0), I(be, null, Ee(Ve.children, (Se, tt) => (C(), H(N, {
|
|
11174
11181
|
key: tt,
|
|
11175
11182
|
disabled: Se.disabled,
|
|
11176
11183
|
divided: Se.divided,
|
|
@@ -11381,7 +11388,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11381
11388
|
}, v = A(!1), y = j(() => o.config?.gutter || 16), b = j(() => o.config?.span || 24), w = j(() => o.config?.labelWidth), x = j(() => o.config?.labelPosition || "right"), _ = j(
|
|
11382
11389
|
() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)
|
|
11383
11390
|
), m = Mo({}), E = A({}), S = [], T = {}, P = A({});
|
|
11384
|
-
let R = {},
|
|
11391
|
+
let R = {}, z = {}, $ = [], D = {};
|
|
11385
11392
|
const M = (U) => {
|
|
11386
11393
|
i("change", U);
|
|
11387
11394
|
}, k = (U) => Cl(T[U]?.type || "") && !T[U]?.config?.notInput || T[U]?.config?.isInput, O = (U) => ["j-table", "j-input-rows", "j-input-cards"].includes(T[U]?.type || "");
|
|
@@ -11417,13 +11424,13 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11417
11424
|
else if (Ye && ot.field)
|
|
11418
11425
|
R[`${Mt}_${ot.field}`.toLowerCase()] = ie.id;
|
|
11419
11426
|
else if (O(ie.id))
|
|
11420
|
-
!q && !ot.isSubTable && (m[ie.id] = []), ot.table && (R[ot.table.toLowerCase() || ""] = ie.id), ot.isSubTable ||
|
|
11427
|
+
!q && !ot.isSubTable && (m[ie.id] = []), ot.table && (R[ot.table.toLowerCase() || ""] = ie.id), ot.isSubTable || $.push(ve);
|
|
11421
11428
|
else if (ot?.defaultValue)
|
|
11422
11429
|
m[ie.id] = ot?.defaultValue;
|
|
11423
11430
|
else if (ie.type === "collapse" && ot?.isExpand) {
|
|
11424
11431
|
const En = [];
|
|
11425
|
-
(ot?.groups || []).forEach((
|
|
11426
|
-
En.push(
|
|
11432
|
+
(ot?.groups || []).forEach((we) => {
|
|
11433
|
+
En.push(we.i);
|
|
11427
11434
|
}), m[ie.id] = En;
|
|
11428
11435
|
}
|
|
11429
11436
|
Me && Me.length > 0 && ge(Me, ve.children, q, ve.id);
|
|
@@ -11431,7 +11438,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11431
11438
|
}, ze = async (U, le) => {
|
|
11432
11439
|
v.value = !1;
|
|
11433
11440
|
const q = !!le;
|
|
11434
|
-
S.splice(0, S.length), R = {},
|
|
11441
|
+
S.splice(0, S.length), R = {}, z = {}, $ = [], N = le, Ji(m), P.value = {}, q && re(le, ""), ge(U, S, q), D = yn(m), Pt(() => {
|
|
11435
11442
|
v.value = !0, Pt(() => {
|
|
11436
11443
|
_n(o.config?.codeInit, {});
|
|
11437
11444
|
});
|
|
@@ -11460,7 +11467,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11460
11467
|
te && (Ka(te) && (te = te[0] || {}), typeof te == "object" ? Object.keys(te).forEach((ve) => {
|
|
11461
11468
|
if (!le || le(q, te[ve], q)) {
|
|
11462
11469
|
let Me = ve;
|
|
11463
|
-
q !== "main" && (Me = `${q}_${ve}`),
|
|
11470
|
+
q !== "main" && (Me = `${q}_${ve}`), z[Me] = q, m[R[Me.toLowerCase()] || ve] = te[ve];
|
|
11464
11471
|
}
|
|
11465
11472
|
}) : m[q] = te);
|
|
11466
11473
|
else if (O(ie.id || "")) {
|
|
@@ -11490,7 +11497,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11490
11497
|
Ye.push(Ve(Mt, !0));
|
|
11491
11498
|
}), q[ve || te] = Ye;
|
|
11492
11499
|
} else ve && Me ? (q[ve] = q[ve] || {}, q[ve][Me] = U[te]) : Me && (q[Me] = U[te]);
|
|
11493
|
-
} else le ? te !== "_X_ROW_KEY" && te !== "_isHover" && (q[te] = U[te]) :
|
|
11500
|
+
} else le ? te !== "_X_ROW_KEY" && te !== "_isHover" && (q[te] = U[te]) : z[te] ? (q[z[te]] = q[z[te]] || {}, q[z[te]][te.replace(`${z[te]}_`, "")] = U[te]) : q[te] = U[te];
|
|
11494
11501
|
}), q;
|
|
11495
11502
|
}, Ke = (U = !0) => U ? Ve(m) : m, Se = (U, le, q, te) => {
|
|
11496
11503
|
let ie = T[U];
|
|
@@ -11544,8 +11551,8 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11544
11551
|
`${p(T[Object.keys(U)[0]]?.config?.label)}:${p(U[Object.keys(U)[0]].msg)}`
|
|
11545
11552
|
), !1) : !0;
|
|
11546
11553
|
}, fe = () => {
|
|
11547
|
-
E.value = {}, Ji(m), Object.keys(
|
|
11548
|
-
m[U] =
|
|
11554
|
+
E.value = {}, Ji(m), Object.keys(D || {}).forEach((U) => {
|
|
11555
|
+
m[U] = D[U];
|
|
11549
11556
|
});
|
|
11550
11557
|
}, Te = (U) => {
|
|
11551
11558
|
let le = T[U];
|
|
@@ -11688,7 +11695,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11688
11695
|
gutter: y.value
|
|
11689
11696
|
}, {
|
|
11690
11697
|
default: V(() => [
|
|
11691
|
-
(C(), I(
|
|
11698
|
+
(C(), I(be, null, Ee(S, (ve) => K(q, He({
|
|
11692
11699
|
key: ve.id,
|
|
11693
11700
|
ref_for: !0
|
|
11694
11701
|
}, ve), null, 16)), 64))
|
|
@@ -11769,7 +11776,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11769
11776
|
}), t({ init: s, call: d, on: f, off: p }), (h, g) => {
|
|
11770
11777
|
const v = B("j-comp");
|
|
11771
11778
|
return C(), I("div", Pv, [
|
|
11772
|
-
(C(!0), I(
|
|
11779
|
+
(C(!0), I(be, null, Ee(i, (y) => (C(), H(v, {
|
|
11773
11780
|
key: y.id,
|
|
11774
11781
|
id: y.id,
|
|
11775
11782
|
type: y.type,
|
|
@@ -11859,7 +11866,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
11859
11866
|
])
|
|
11860
11867
|
], 8, Bv)),
|
|
11861
11868
|
e.toolBtns && e.toolBtns.length > 0 ? (C(), I("span", $v, [
|
|
11862
|
-
(C(!0), I(
|
|
11869
|
+
(C(!0), I(be, null, Ee(e.toolBtns, (s) => (C(), H(l, {
|
|
11863
11870
|
key: s.id,
|
|
11864
11871
|
placement: "top",
|
|
11865
11872
|
content: s.label || ""
|
|
@@ -12056,13 +12063,13 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
12056
12063
|
ref: p,
|
|
12057
12064
|
class: "j-input-rows-container"
|
|
12058
12065
|
}, [
|
|
12059
|
-
(C(!0), I(
|
|
12066
|
+
(C(!0), I(be, null, Ee(g.value, (T, P) => (C(), I("div", {
|
|
12060
12067
|
key: T._i + P,
|
|
12061
12068
|
class: je([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
|
|
12062
12069
|
}, [
|
|
12063
12070
|
e.showNum ? (C(), I("div", Nv, xe(P + 1), 1)) : Y("", !0),
|
|
12064
12071
|
e.showChar ? (C(), I("div", Wv, xe(h[P % 26]), 1)) : Y("", !0),
|
|
12065
|
-
(C(!0), I(
|
|
12072
|
+
(C(!0), I(be, null, Ee(e.columns, (R) => (C(), H(m, He({
|
|
12066
12073
|
key: R.id,
|
|
12067
12074
|
ref_for: !0
|
|
12068
12075
|
}, R, { row: T }), null, 16, ["row"]))), 128)),
|
|
@@ -12347,7 +12354,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
12347
12354
|
gutter: i.value
|
|
12348
12355
|
}, {
|
|
12349
12356
|
default: V(() => [
|
|
12350
|
-
(C(!0), I(
|
|
12357
|
+
(C(!0), I(be, null, Ee(e.schema, (b) => (C(), H(h, He({
|
|
12351
12358
|
key: b.id,
|
|
12352
12359
|
ref_for: !0
|
|
12353
12360
|
}, b), null, 16))), 128))
|
|
@@ -12661,7 +12668,7 @@ const Rv = /* @__PURE__ */ ae({
|
|
|
12661
12668
|
}, null, 4)
|
|
12662
12669
|
]));
|
|
12663
12670
|
}
|
|
12664
|
-
}), lm = /* @__PURE__ */ uc(am, [["__scopeId", "data-v-
|
|
12671
|
+
}), lm = /* @__PURE__ */ uc(am, [["__scopeId", "data-v-179ac616"]]), rm = de(lm), sm = {
|
|
12665
12672
|
key: 0,
|
|
12666
12673
|
class: "j-map-loading"
|
|
12667
12674
|
}, cm = /* @__PURE__ */ ae({
|
|
@@ -12920,7 +12927,7 @@ function Sl(e, t, n) {
|
|
|
12920
12927
|
}
|
|
12921
12928
|
function gc(e, t) {
|
|
12922
12929
|
const n = parseInt(e.dataset.cornerRadius, 10) || 0;
|
|
12923
|
-
return
|
|
12930
|
+
return ye(e, {
|
|
12924
12931
|
d: ci(vm(t, n))
|
|
12925
12932
|
}), e;
|
|
12926
12933
|
}
|
|
@@ -12935,12 +12942,12 @@ function vc(e, t, n) {
|
|
|
12935
12942
|
var o = this;
|
|
12936
12943
|
function i(S, T, P) {
|
|
12937
12944
|
if (!r(S, T)) {
|
|
12938
|
-
var R,
|
|
12939
|
-
P ?
|
|
12945
|
+
var R, z, $;
|
|
12946
|
+
P ? z = t.getGraphics(P) : (R = T.delegateTarget || T.target, R && (z = R, P = t.get(z))), !(!z || !P) && ($ = e.fire(S, {
|
|
12940
12947
|
element: P,
|
|
12941
|
-
gfx:
|
|
12948
|
+
gfx: z,
|
|
12942
12949
|
originalEvent: T
|
|
12943
|
-
}),
|
|
12950
|
+
}), $ === !1 && (T.stopPropagation(), T.preventDefault()));
|
|
12944
12951
|
}
|
|
12945
12952
|
}
|
|
12946
12953
|
var a = {};
|
|
@@ -12975,10 +12982,10 @@ function vc(e, t, n) {
|
|
|
12975
12982
|
}
|
|
12976
12983
|
var d = "svg, .djs-element";
|
|
12977
12984
|
function f(S, T, P, R) {
|
|
12978
|
-
var
|
|
12979
|
-
i(P,
|
|
12985
|
+
var z = a[P] = function($) {
|
|
12986
|
+
i(P, $);
|
|
12980
12987
|
};
|
|
12981
|
-
R && (c[P] = R),
|
|
12988
|
+
R && (c[P] = R), z.$delegate = Hn.bind(S, d, T, z);
|
|
12982
12989
|
}
|
|
12983
12990
|
function p(S, T, P) {
|
|
12984
12991
|
var R = l(P);
|
|
@@ -13030,7 +13037,7 @@ function vc(e, t, n) {
|
|
|
13030
13037
|
var P = x[T];
|
|
13031
13038
|
if (!P)
|
|
13032
13039
|
throw new Error("invalid hit type <" + T + ">");
|
|
13033
|
-
return
|
|
13040
|
+
return ye(S, P), S;
|
|
13034
13041
|
}
|
|
13035
13042
|
function E(S, T) {
|
|
13036
13043
|
Oe(S, T);
|
|
@@ -13039,8 +13046,8 @@ function vc(e, t, n) {
|
|
|
13039
13046
|
var T = Wa(".djs-hit", S);
|
|
13040
13047
|
ne(T, Yt);
|
|
13041
13048
|
}, this.createDefaultHit = function(S, T) {
|
|
13042
|
-
var P = S.waypoints, R = S.isFrame,
|
|
13043
|
-
return P ? this.createWaypointsHit(T, P) : (
|
|
13049
|
+
var P = S.waypoints, R = S.isFrame, z;
|
|
13050
|
+
return P ? this.createWaypointsHit(T, P) : (z = R ? "stroke" : "all", this.createBoxHit(T, z, {
|
|
13044
13051
|
width: S.width,
|
|
13045
13052
|
height: S.height
|
|
13046
13053
|
}));
|
|
@@ -13053,11 +13060,11 @@ function vc(e, t, n) {
|
|
|
13053
13060
|
y: 0
|
|
13054
13061
|
}, P);
|
|
13055
13062
|
var R = Fe("rect");
|
|
13056
|
-
return m(R, T),
|
|
13063
|
+
return m(R, T), ye(R, P), E(S, R), R;
|
|
13057
13064
|
}, this.updateDefaultHit = function(S, T) {
|
|
13058
13065
|
var P = $t(".djs-hit", T);
|
|
13059
13066
|
if (P)
|
|
13060
|
-
return S.waypoints ? gc(P, S.waypoints) :
|
|
13067
|
+
return S.waypoints ? gc(P, S.waypoints) : ye(P, {
|
|
13061
13068
|
width: S.width,
|
|
13062
13069
|
height: S.height
|
|
13063
13070
|
}), P;
|
|
@@ -13261,7 +13268,7 @@ function Sc(e, t, n, o) {
|
|
|
13261
13268
|
x.length && n.select(x);
|
|
13262
13269
|
}
|
|
13263
13270
|
function c(w, x) {
|
|
13264
|
-
var _ = a.payload, m = a.displacement, E = a.globalStart, S = Po(w), T = Eo(S, E), P = a.localStart, R = l(S),
|
|
13271
|
+
var _ = a.payload, m = a.displacement, E = a.globalStart, S = Po(w), T = Eo(S, E), P = a.localStart, R = l(S), z = Eo(R, P);
|
|
13265
13272
|
if (!a.active && (x || Cm(T) > a.threshold)) {
|
|
13266
13273
|
if (_e(_, {
|
|
13267
13274
|
x: yo(P.x + m.x),
|
|
@@ -13275,8 +13282,8 @@ function Sc(e, t, n, o) {
|
|
|
13275
13282
|
Ia(w), a.active && (_e(_, {
|
|
13276
13283
|
x: yo(R.x + m.x),
|
|
13277
13284
|
y: yo(R.y + m.y),
|
|
13278
|
-
dx: yo(
|
|
13279
|
-
dy: yo(
|
|
13285
|
+
dx: yo(z.x),
|
|
13286
|
+
dy: yo(z.y)
|
|
13280
13287
|
}, { originalEvent: w }), r("move"));
|
|
13281
13288
|
}
|
|
13282
13289
|
function u(w) {
|
|
@@ -13317,16 +13324,16 @@ function Sc(e, t, n, o) {
|
|
|
13317
13324
|
}
|
|
13318
13325
|
function b(w, x, _, m) {
|
|
13319
13326
|
a && v(!1), typeof x == "string" && (m = _, _ = x, x = null), m = _e({}, i, m || {});
|
|
13320
|
-
var E = m.data || {}, S, T, P, R,
|
|
13321
|
-
m.trapClick ? R = f : R = u, w ? (S = jo(w) || w, T = Po(w), Ia(w), S.type === "dragstart" && qn(S)) : (S = null, T = { x: 0, y: 0 }), P = l(T), x || (x = P),
|
|
13327
|
+
var E = m.data || {}, S, T, P, R, z;
|
|
13328
|
+
m.trapClick ? R = f : R = u, w ? (S = jo(w) || w, T = Po(w), Ia(w), S.type === "dragstart" && qn(S)) : (S = null, T = { x: 0, y: 0 }), P = l(T), x || (x = P), z = xm(S), a = _e({
|
|
13322
13329
|
prefix: _,
|
|
13323
13330
|
data: E,
|
|
13324
13331
|
payload: {},
|
|
13325
13332
|
globalStart: T,
|
|
13326
13333
|
displacement: Eo(x, P),
|
|
13327
13334
|
localStart: P,
|
|
13328
|
-
isTouch:
|
|
13329
|
-
}, m), m.manual || (
|
|
13335
|
+
isTouch: z
|
|
13336
|
+
}, m), m.manual || (z ? (qe.bind(document, "touchstart", p, !0), qe.bind(document, "touchcancel", v, !0), qe.bind(document, "touchmove", c, !0), qe.bind(document, "touchend", u, !0)) : (qe.bind(document, "mousemove", c), qe.bind(document, "dragstart", qn), qe.bind(document, "selectstart", qn), qe.bind(document, "mousedown", R, !0), qe.bind(document, "mouseup", R, !0)), qe.bind(document, "keyup", d), e.on("element.hover", h), e.on("element.out", g)), r("init"), m.autoActivate && c(w, !0);
|
|
13330
13337
|
}
|
|
13331
13338
|
e.on("diagram.destroy", v), this.init = b, this.move = c, this.hover = h, this.out = g, this.end = u, this.cancel = v, this.context = function() {
|
|
13332
13339
|
return a;
|
|
@@ -13389,10 +13396,10 @@ zn.prototype.getGfx = function(e) {
|
|
|
13389
13396
|
zn.prototype.addDragger = function(e, t, n, o = "djs-dragger") {
|
|
13390
13397
|
n = n || this.getGfx(e);
|
|
13391
13398
|
var i = Ks(n), a = n.getBoundingClientRect();
|
|
13392
|
-
return this._cloneMarkers(el(i), o),
|
|
13399
|
+
return this._cloneMarkers(el(i), o), ye(i, this._styles.cls(o, [], {
|
|
13393
13400
|
x: a.top,
|
|
13394
13401
|
y: a.left
|
|
13395
|
-
})), Oe(t, i),
|
|
13402
|
+
})), Oe(t, i), ye(i, "data-preview-support-element-id", e.id), i;
|
|
13396
13403
|
};
|
|
13397
13404
|
zn.prototype.addFrame = function(e, t) {
|
|
13398
13405
|
var n = Fe("rect", {
|
|
@@ -13402,14 +13409,14 @@ zn.prototype.addFrame = function(e, t) {
|
|
|
13402
13409
|
x: e.x,
|
|
13403
13410
|
y: e.y
|
|
13404
13411
|
});
|
|
13405
|
-
return Oe(t, n),
|
|
13412
|
+
return Oe(t, n), ye(n, "data-preview-support-element-id", e.id), n;
|
|
13406
13413
|
};
|
|
13407
13414
|
zn.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
|
|
13408
13415
|
var o = this;
|
|
13409
13416
|
e.childNodes && e.childNodes.forEach((i) => {
|
|
13410
13417
|
o._cloneMarkers(i, t, n);
|
|
13411
13418
|
}), Mm(e) && _m.forEach(function(i) {
|
|
13412
|
-
if (
|
|
13419
|
+
if (ye(e, i)) {
|
|
13413
13420
|
var a = km(e, i, o._canvas.getContainer());
|
|
13414
13421
|
a && o._cloneMarker(n, e, a, i, t);
|
|
13415
13422
|
}
|
|
@@ -13423,10 +13430,10 @@ zn.prototype._cloneMarker = function(e, t, n, o, i = "djs-dragger") {
|
|
|
13423
13430
|
var s = $t(":scope > defs", e);
|
|
13424
13431
|
s || (s = Fe("defs"), Oe(e, s)), Oe(s, r);
|
|
13425
13432
|
var c = Tm(r.id);
|
|
13426
|
-
|
|
13433
|
+
ye(t, o, c);
|
|
13427
13434
|
};
|
|
13428
13435
|
function km(e, t, n) {
|
|
13429
|
-
var o = Rm(
|
|
13436
|
+
var o = Rm(ye(e, t));
|
|
13430
13437
|
return $t("marker#" + o, n || document);
|
|
13431
13438
|
}
|
|
13432
13439
|
function Rm(e) {
|
|
@@ -13717,7 +13724,7 @@ var Fm = 750;
|
|
|
13717
13724
|
function kc(e, t, n, o, i) {
|
|
13718
13725
|
function a(l) {
|
|
13719
13726
|
var r = Fe("g");
|
|
13720
|
-
|
|
13727
|
+
ye(r, i.cls("djs-drag-group", ["no-events"]));
|
|
13721
13728
|
var s = Fe("g");
|
|
13722
13729
|
return l.forEach(function(c) {
|
|
13723
13730
|
var u;
|
|
@@ -14046,11 +14053,11 @@ function Mc(e, t, n, o, i, a, l, r, s, c) {
|
|
|
14046
14053
|
}
|
|
14047
14054
|
var T = S - E;
|
|
14048
14055
|
if (On(T) > u) {
|
|
14049
|
-
var P = S, R = r,
|
|
14050
|
-
S = E + u * (l && S > E ? 1 : -1), r = _ + n * bt.cos(S), s = m + o * bt.sin(S), f = Mc(r, s, n, o, i, 0, l, R,
|
|
14056
|
+
var P = S, R = r, z = s;
|
|
14057
|
+
S = E + u * (l && S > E ? 1 : -1), r = _ + n * bt.cos(S), s = m + o * bt.sin(S), f = Mc(r, s, n, o, i, 0, l, R, z, [S, P, _, m]);
|
|
14051
14058
|
}
|
|
14052
14059
|
T = S - E;
|
|
14053
|
-
var
|
|
14060
|
+
var $ = bt.cos(E), D = bt.sin(E), M = bt.cos(S), k = bt.sin(S), O = bt.tan(T / 4), N = 4 / 3 * n * O, re = 4 / 3 * o * O, ue = [e, t], ge = [e + N * D, t - re * $], ze = [r + N * k, s - re * M], ut = [r, s];
|
|
14054
14061
|
if (ge[0] = 2 * ue[0] - ge[0], ge[1] = 2 * ue[1] - ge[1], c)
|
|
14055
14062
|
return [ge, ze, ut].concat(f);
|
|
14056
14063
|
f = [ge, ze, ut].concat(f).join().split(",");
|
|
@@ -16489,7 +16496,7 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16489
16496
|
});
|
|
16490
16497
|
const { computeStyle: u } = t;
|
|
16491
16498
|
function d(M) {
|
|
16492
|
-
return
|
|
16499
|
+
return D[M];
|
|
16493
16500
|
}
|
|
16494
16501
|
function f(M) {
|
|
16495
16502
|
return t.computeStyle(M, ["no-fill"], {
|
|
@@ -16523,11 +16530,11 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16523
16530
|
fill: r
|
|
16524
16531
|
}), re.fill === "none" && delete re.fillOpacity;
|
|
16525
16532
|
const ue = k / 2, ge = O / 2, ze = Fe("circle");
|
|
16526
|
-
return
|
|
16533
|
+
return ye(ze, {
|
|
16527
16534
|
cx: ue,
|
|
16528
16535
|
cy: ge,
|
|
16529
16536
|
r: Math.round((k + O) / 4 - N)
|
|
16530
|
-
}),
|
|
16537
|
+
}), ye(ze, re), Oe(M, ze), ze;
|
|
16531
16538
|
}
|
|
16532
16539
|
function y(M, k, O, N, re, ue) {
|
|
16533
16540
|
os(re) && (ue = re, re = 0), re = re || 0, ue = u(ue, {
|
|
@@ -16536,14 +16543,14 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16536
16543
|
fill: r
|
|
16537
16544
|
});
|
|
16538
16545
|
const ge = Fe("rect");
|
|
16539
|
-
return
|
|
16546
|
+
return ye(ge, {
|
|
16540
16547
|
x: re,
|
|
16541
16548
|
y: re,
|
|
16542
16549
|
width: k - re * 2,
|
|
16543
16550
|
height: O - re * 2,
|
|
16544
16551
|
rx: N,
|
|
16545
16552
|
ry: N
|
|
16546
|
-
}),
|
|
16553
|
+
}), ye(ge, ue), Oe(M, ge), ge;
|
|
16547
16554
|
}
|
|
16548
16555
|
function b(M, k, O) {
|
|
16549
16556
|
O = u(O, ["no-fill"], {
|
|
@@ -16551,7 +16558,7 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16551
16558
|
stroke: s
|
|
16552
16559
|
});
|
|
16553
16560
|
const N = Fe("path");
|
|
16554
|
-
return
|
|
16561
|
+
return ye(N, { d: k }), ye(N, O), Oe(M, N), N;
|
|
16555
16562
|
}
|
|
16556
16563
|
function w(M, k, O, N) {
|
|
16557
16564
|
const re = k / 2, ue = O / 2, ze = [
|
|
@@ -16566,9 +16573,9 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16566
16573
|
fill: r
|
|
16567
16574
|
});
|
|
16568
16575
|
const ut = Fe("polygon");
|
|
16569
|
-
return
|
|
16576
|
+
return ye(ut, {
|
|
16570
16577
|
points: ze
|
|
16571
|
-
}),
|
|
16578
|
+
}), ye(ut, N), Oe(M, ut), ut;
|
|
16572
16579
|
}
|
|
16573
16580
|
function x(M, k, O, N) {
|
|
16574
16581
|
return b(k, O, gt({ "data-marker": M }, N));
|
|
@@ -16649,9 +16656,9 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16649
16656
|
}
|
|
16650
16657
|
function R(M, k, O, N) {
|
|
16651
16658
|
const re = k + "-" + T(O) + "-" + T(N) + "-" + $c();
|
|
16652
|
-
return
|
|
16659
|
+
return z(M, re, k, O, N), "url(#" + re + ")";
|
|
16653
16660
|
}
|
|
16654
|
-
function
|
|
16661
|
+
function z(M, k, O, N, re) {
|
|
16655
16662
|
{
|
|
16656
16663
|
const ue = Fe("path", {
|
|
16657
16664
|
d: "M 1 5 L 11 10 L 1 15 Z",
|
|
@@ -16669,7 +16676,7 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16669
16676
|
});
|
|
16670
16677
|
}
|
|
16671
16678
|
}
|
|
16672
|
-
function
|
|
16679
|
+
function $(M, k, O, N) {
|
|
16673
16680
|
const re = c[k.type]?.icon || k.icon;
|
|
16674
16681
|
if (re) {
|
|
16675
16682
|
const ue = n.getScaledPath(re, {
|
|
@@ -16684,7 +16691,7 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16684
16691
|
});
|
|
16685
16692
|
}
|
|
16686
16693
|
}
|
|
16687
|
-
const
|
|
16694
|
+
const D = {
|
|
16688
16695
|
event(M, k, O) {
|
|
16689
16696
|
return "fillOpacity" in O || (O.fillOpacity = Ba), v(M, k.width, k.height, O);
|
|
16690
16697
|
},
|
|
@@ -16697,7 +16704,7 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16697
16704
|
c.startEvent?.strokeWidth || k.strokeWidth
|
|
16698
16705
|
)
|
|
16699
16706
|
}, N = d("event")(M, k, O);
|
|
16700
|
-
return
|
|
16707
|
+
return $(M, k, 18, 18), N;
|
|
16701
16708
|
},
|
|
16702
16709
|
endEvent(M, k) {
|
|
16703
16710
|
const O = d("event")(M, k, {
|
|
@@ -16708,7 +16715,7 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16708
16715
|
fill: Qt(k, c.endEvent?.fill || k.fill),
|
|
16709
16716
|
stroke: mt(k, c.endEvent?.stroke || k.stroke)
|
|
16710
16717
|
});
|
|
16711
|
-
return
|
|
16718
|
+
return $(M, k, 18, 18), O;
|
|
16712
16719
|
},
|
|
16713
16720
|
gateway(M, k) {
|
|
16714
16721
|
const O = {
|
|
@@ -16879,10 +16886,10 @@ function fo(e, t, n, o, i, a, l) {
|
|
|
16879
16886
|
k.radius || ll,
|
|
16880
16887
|
O
|
|
16881
16888
|
);
|
|
16882
|
-
return m(M, k, "center-middle"), S(M, k),
|
|
16889
|
+
return m(M, k, "center-middle"), S(M, k), $(M, k, k.iconX, k.iconY), N;
|
|
16883
16890
|
}
|
|
16884
16891
|
};
|
|
16885
|
-
this.handlers =
|
|
16892
|
+
this.handlers = D, this._drawPath = b;
|
|
16886
16893
|
}
|
|
16887
16894
|
io(fo, uo);
|
|
16888
16895
|
fo.$inject = ["eventBus", "styles", "pathMap", "canvas", "textRenderer", "myOptions"];
|
|
@@ -16970,7 +16977,7 @@ function Tb(e, t, n) {
|
|
|
16970
16977
|
}
|
|
16971
16978
|
function Mb() {
|
|
16972
16979
|
var e = document.getElementById("helper-svg");
|
|
16973
|
-
return e || (e = Fe("svg"),
|
|
16980
|
+
return e || (e = Fe("svg"), ye(e, {
|
|
16974
16981
|
id: "helper-svg"
|
|
16975
16982
|
}), ai(e, {
|
|
16976
16983
|
visibility: "hidden",
|
|
@@ -16995,7 +17002,7 @@ _a.prototype.getDimensions = function(e, t) {
|
|
|
16995
17002
|
};
|
|
16996
17003
|
_a.prototype.layoutText = function(e, t) {
|
|
16997
17004
|
var n = _e({}, this._config.size, t.box), o = _e({}, this._config.style, t.style), i = Cb(t.align || this._config.align), a = Sb(t.padding !== void 0 ? t.padding : this._config.padding), l = t.fitBox || !1, r = Pb(o), s = e.split(/\u00AD?\r?\n/), c = [], u = n.width - a.left - a.right, d = Fe("text");
|
|
16998
|
-
|
|
17005
|
+
ye(d, { x: 0, y: 0 }), ye(d, o);
|
|
16999
17006
|
var f = Mb();
|
|
17000
17007
|
for (Oe(f, d); s.length; )
|
|
17001
17008
|
c.push(Eb(s, u, d));
|
|
@@ -17007,7 +17014,7 @@ _a.prototype.layoutText = function(e, t) {
|
|
|
17007
17014
|
}, 0), g = a.top;
|
|
17008
17015
|
i.vertical === "middle" && (g += (n.height - p) / 2), g -= (r || c[0].height) / 4;
|
|
17009
17016
|
var v = Fe("text");
|
|
17010
|
-
|
|
17017
|
+
ye(v, o), ne(c, function(b) {
|
|
17011
17018
|
var w;
|
|
17012
17019
|
switch (g += r || b.height, i.horizontal) {
|
|
17013
17020
|
case "left":
|
|
@@ -17020,7 +17027,7 @@ _a.prototype.layoutText = function(e, t) {
|
|
|
17020
17027
|
w = Math.max(((l ? h : u) - b.width) / 2 + a.left, 0);
|
|
17021
17028
|
}
|
|
17022
17029
|
var x = Fe("tspan");
|
|
17023
|
-
|
|
17030
|
+
ye(x, { x: w, y: g }), x.textContent = b.text, Oe(v, x);
|
|
17024
17031
|
}), Yt(d);
|
|
17025
17032
|
var y = {
|
|
17026
17033
|
width: h,
|
|
@@ -17606,13 +17613,13 @@ function sl(e, t) {
|
|
|
17606
17613
|
var n = Fe("g");
|
|
17607
17614
|
at(n).add(vu), Oe(e, n);
|
|
17608
17615
|
var o = Fe("circle");
|
|
17609
|
-
|
|
17616
|
+
ye(o, {
|
|
17610
17617
|
cx: 0,
|
|
17611
17618
|
cy: 0,
|
|
17612
17619
|
r: 4
|
|
17613
17620
|
}), at(o).add("djs-visual"), Oe(n, o);
|
|
17614
17621
|
var i = Fe("circle");
|
|
17615
|
-
return
|
|
17622
|
+
return ye(i, {
|
|
17616
17623
|
cx: 0,
|
|
17617
17624
|
cy: 0,
|
|
17618
17625
|
r: 10
|
|
@@ -17622,14 +17629,14 @@ function Qb(e, t, n, o) {
|
|
|
17622
17629
|
var i = Fe("g");
|
|
17623
17630
|
Oe(e, i);
|
|
17624
17631
|
var a = 18, l = 6, r = 11, s = tw(t, n, o), c = l + r, u = Fe("rect");
|
|
17625
|
-
|
|
17632
|
+
ye(u, {
|
|
17626
17633
|
x: -a / 2,
|
|
17627
17634
|
y: -l / 2,
|
|
17628
17635
|
width: a,
|
|
17629
17636
|
height: l
|
|
17630
17637
|
}), at(u).add("djs-visual"), Oe(i, u);
|
|
17631
17638
|
var d = Fe("rect");
|
|
17632
|
-
return
|
|
17639
|
+
return ye(d, {
|
|
17633
17640
|
x: -s / 2,
|
|
17634
17641
|
y: -c / 2,
|
|
17635
17642
|
width: s,
|
|
@@ -17663,8 +17670,8 @@ function ql(e) {
|
|
|
17663
17670
|
}
|
|
17664
17671
|
function bu(e, t, n, o, i) {
|
|
17665
17672
|
function a(w, x, _) {
|
|
17666
|
-
var m = w.index, E = w.point, S, T, P, R,
|
|
17667
|
-
return m <= 0 || w.bendpoint ? !1 : (S = x[m - 1], T = x[m], P = tl(S, T), R = In(S, T),
|
|
17673
|
+
var m = w.index, E = w.point, S, T, P, R, z, $;
|
|
17674
|
+
return m <= 0 || w.bendpoint ? !1 : (S = x[m - 1], T = x[m], P = tl(S, T), R = In(S, T), z = Math.abs(E.x - P.x), $ = Math.abs(E.y - P.y), R && z <= _ && $ <= _);
|
|
17668
17675
|
}
|
|
17669
17676
|
function l(w, x) {
|
|
17670
17677
|
var _ = w.waypoints, m, E, S, T;
|
|
@@ -17685,7 +17692,7 @@ function bu(e, t, n, o, i) {
|
|
|
17685
17692
|
}
|
|
17686
17693
|
function c(w, x) {
|
|
17687
17694
|
var _ = t.getLayer("overlays"), m = $t('.djs-bendpoints[data-element-id="' + ql(w.id) + '"]', _);
|
|
17688
|
-
return !m && x && (m = Fe("g"),
|
|
17695
|
+
return !m && x && (m = Fe("g"), ye(m, { "data-element-id": w.id }), at(m).add("djs-bendpoints"), Oe(_, m), s(m, "mousedown", w), s(m, "click", w), s(m, "dblclick", w)), m;
|
|
17689
17696
|
}
|
|
17690
17697
|
function u(w, x) {
|
|
17691
17698
|
return $t(
|
|
@@ -17701,7 +17708,7 @@ function bu(e, t, n, o, i) {
|
|
|
17701
17708
|
}
|
|
17702
17709
|
function f(w, x) {
|
|
17703
17710
|
for (var _ = x.waypoints, m, E, S, T = 1; T < _.length; T++)
|
|
17704
|
-
m = _[T - 1], E = _[T], In(m, E) && (S = yu(w, m, E),
|
|
17711
|
+
m = _[T - 1], E = _[T], In(m, E) && (S = yu(w, m, E), ye(S, { "data-segment-idx": T }), s(S, "mousemove", x));
|
|
17705
17712
|
}
|
|
17706
17713
|
function p(w) {
|
|
17707
17714
|
ne(Wa("." + vu, w), function(x) {
|
|
@@ -17726,14 +17733,14 @@ function bu(e, t, n, o, i) {
|
|
|
17726
17733
|
_ && un(_, m.x, m.y);
|
|
17727
17734
|
}
|
|
17728
17735
|
function b(w, x, _) {
|
|
17729
|
-
var m = u(x.index, w), E = _[x.index - 1], S = _[x.index], T = x.point, P = tl(E, S), R = In(E, S),
|
|
17730
|
-
m && (
|
|
17736
|
+
var m = u(x.index, w), E = _[x.index - 1], S = _[x.index], T = x.point, P = tl(E, S), R = In(E, S), z, $;
|
|
17737
|
+
m && (z = ow(m), $ = {
|
|
17731
17738
|
x: T.x - P.x,
|
|
17732
17739
|
y: T.y - P.y
|
|
17733
|
-
}, R === "v" && (
|
|
17734
|
-
x:
|
|
17735
|
-
y:
|
|
17736
|
-
}), un(
|
|
17740
|
+
}, R === "v" && ($ = {
|
|
17741
|
+
x: $.y,
|
|
17742
|
+
y: $.x
|
|
17743
|
+
}), un(z, $.x, $.y));
|
|
17737
17744
|
}
|
|
17738
17745
|
e.on("connection.changed", function(w) {
|
|
17739
17746
|
v(w.element);
|
|
@@ -17768,7 +17775,7 @@ function bu(e, t, n, o, i) {
|
|
|
17768
17775
|
var x = w.element, _ = w.newId;
|
|
17769
17776
|
if (x.waypoints) {
|
|
17770
17777
|
var m = c(x);
|
|
17771
|
-
m &&
|
|
17778
|
+
m && ye(m, { "data-element-id": _ });
|
|
17772
17779
|
}
|
|
17773
17780
|
}), this.addHandles = g, this.updateHandles = v, this.getBendpointsContainer = c, this.getSegmentDragger = u;
|
|
17774
17781
|
}
|
|
@@ -18211,7 +18218,7 @@ Sn.prototype.getConnection = function(e) {
|
|
|
18211
18218
|
};
|
|
18212
18219
|
Sn.prototype.createConnectionPreviewGfx = function() {
|
|
18213
18220
|
var e = Fe("g");
|
|
18214
|
-
return
|
|
18221
|
+
return ye(e, {
|
|
18215
18222
|
pointerEvents: "none"
|
|
18216
18223
|
}), at(e).add(hw), Oe(this._canvas.getActiveLayer(), e), e;
|
|
18217
18224
|
};
|
|
@@ -18881,7 +18888,7 @@ function po(e, t, n, o, i, a, l) {
|
|
|
18881
18888
|
var r = this, s = {
|
|
18882
18889
|
create: function(c) {
|
|
18883
18890
|
var u = t.getActiveLayer(), d;
|
|
18884
|
-
d = c.frame = Fe("rect"),
|
|
18891
|
+
d = c.frame = Fe("rect"), ye(d, {
|
|
18885
18892
|
class: "djs-lasso-overlay",
|
|
18886
18893
|
width: 1,
|
|
18887
18894
|
height: 1,
|
|
@@ -18891,7 +18898,7 @@ function po(e, t, n, o, i, a, l) {
|
|
|
18891
18898
|
},
|
|
18892
18899
|
update: function(c) {
|
|
18893
18900
|
var u = c.frame, d = c.bbox;
|
|
18894
|
-
|
|
18901
|
+
ye(u, {
|
|
18895
18902
|
x: d.x,
|
|
18896
18903
|
y: d.y,
|
|
18897
18904
|
width: d.width,
|
|
@@ -19090,7 +19097,7 @@ function go(e, t) {
|
|
|
19090
19097
|
var n = t.cls("djs-outline", ["no-fill"]), o = this;
|
|
19091
19098
|
function i(a) {
|
|
19092
19099
|
var l = Fe("rect");
|
|
19093
|
-
return
|
|
19100
|
+
return ye(l, _e({
|
|
19094
19101
|
x: 0,
|
|
19095
19102
|
y: 0,
|
|
19096
19103
|
rx: 4,
|
|
@@ -19110,7 +19117,7 @@ go.prototype.updateShapeOutline = function(e, t) {
|
|
|
19110
19117
|
var n = !1, o = this._getProviders();
|
|
19111
19118
|
o.length && ne(o, function(i) {
|
|
19112
19119
|
n = n || i.updateOutline(t, e);
|
|
19113
|
-
}), n ||
|
|
19120
|
+
}), n || ye(e, {
|
|
19114
19121
|
x: -this.offset,
|
|
19115
19122
|
y: -this.offset,
|
|
19116
19123
|
width: t.width + this.offset * 2,
|
|
@@ -19119,7 +19126,7 @@ go.prototype.updateShapeOutline = function(e, t) {
|
|
|
19119
19126
|
};
|
|
19120
19127
|
go.prototype.updateConnectionOutline = function(e, t) {
|
|
19121
19128
|
var n = dn(t);
|
|
19122
|
-
|
|
19129
|
+
ye(e, {
|
|
19123
19130
|
x: n.x - this.offset,
|
|
19124
19131
|
y: n.y - this.offset,
|
|
19125
19132
|
width: n.width + this.offset * 2,
|
|
@@ -19162,7 +19169,7 @@ or.prototype._updateMultiSelectionOutline = function(e) {
|
|
|
19162
19169
|
var n = e.length > 1, o = this._canvas.getContainer();
|
|
19163
19170
|
if (at(o)[n ? "add" : "remove"]("djs-multi-select"), !!n) {
|
|
19164
19171
|
var i = zw(dn(e)), a = Fe("rect");
|
|
19165
|
-
|
|
19172
|
+
ye(a, _e({
|
|
19166
19173
|
rx: 3
|
|
19167
19174
|
}, i)), at(a).add("djs-selection-outline"), Oe(t, a);
|
|
19168
19175
|
}
|
|
@@ -19289,7 +19296,7 @@ function Au(e, t, n, o) {
|
|
|
19289
19296
|
var c = s.context, u = c.shapes, d = c.allDraggedElements, f = i(u);
|
|
19290
19297
|
if (!c.dragGroup) {
|
|
19291
19298
|
var p = Fe("g");
|
|
19292
|
-
|
|
19299
|
+
ye(p, n.cls("djs-drag-group", ["no-events"]));
|
|
19293
19300
|
var h = t.getActiveLayer();
|
|
19294
19301
|
Oe(h, p), c.dragGroup = p;
|
|
19295
19302
|
}
|
|
@@ -19656,7 +19663,7 @@ var $s = "djs-resizing", zs = "resize-not-ok", ux = 500;
|
|
|
19656
19663
|
function Bu(e, t, n) {
|
|
19657
19664
|
function o(a) {
|
|
19658
19665
|
var l = a.shape, r = a.newBounds, s = a.frame;
|
|
19659
|
-
s || (s = a.frame = n.addFrame(l, t.getActiveLayer()), t.addMarker(l, $s)), r.width > 5 &&
|
|
19666
|
+
s || (s = a.frame = n.addFrame(l, t.getActiveLayer()), t.addMarker(l, $s)), r.width > 5 && ye(s, { x: r.x, width: r.width }), r.height > 5 && ye(s, { y: r.y, height: r.height }), a.canExecute ? at(s).remove(zs) : at(s).add(zs);
|
|
19660
19667
|
}
|
|
19661
19668
|
function i(a) {
|
|
19662
19669
|
var l = a.shape, r = a.frame;
|
|
@@ -19696,14 +19703,14 @@ Yn.prototype._createResizer = function(e, t, n, o) {
|
|
|
19696
19703
|
var i = this._getResizersParent(), a = fx(o), l = Fe("g");
|
|
19697
19704
|
at(l).add(Ko), at(l).add(Ko + "-" + e.id), at(l).add(Ko + "-" + o), Oe(i, l);
|
|
19698
19705
|
var r = Fe("rect");
|
|
19699
|
-
|
|
19706
|
+
ye(r, {
|
|
19700
19707
|
x: -Wi / 2 + a.x,
|
|
19701
19708
|
y: -Wi / 2 + a.y,
|
|
19702
19709
|
width: Wi,
|
|
19703
19710
|
height: Wi
|
|
19704
19711
|
}), at(r).add(Ko + "-visual"), Oe(l, r);
|
|
19705
19712
|
var s = Fe("rect");
|
|
19706
|
-
return
|
|
19713
|
+
return ye(s, {
|
|
19707
19714
|
x: -Ui / 2 + a.x,
|
|
19708
19715
|
y: -Ui / 2 + a.y,
|
|
19709
19716
|
width: Ui,
|
|
@@ -20102,15 +20109,15 @@ Kn.prototype.snap = function(e, t) {
|
|
|
20102
20109
|
};
|
|
20103
20110
|
Kn.prototype._createLine = function(e) {
|
|
20104
20111
|
var t = this._canvas.getLayer("snap"), n = Fe("path");
|
|
20105
|
-
return
|
|
20112
|
+
return ye(n, { d: "M0,0 L0,0" }), at(n).add("djs-snap-line"), Oe(t, n), {
|
|
20106
20113
|
update: function(o) {
|
|
20107
|
-
Ct(o) ? e === "horizontal" ?
|
|
20114
|
+
Ct(o) ? e === "horizontal" ? ye(n, {
|
|
20108
20115
|
d: "M-100000," + o + " L+100000," + o,
|
|
20109
20116
|
display: ""
|
|
20110
|
-
}) :
|
|
20117
|
+
}) : ye(n, {
|
|
20111
20118
|
d: "M " + o + ",-100000 L " + o + ", +100000",
|
|
20112
20119
|
display: ""
|
|
20113
|
-
}) :
|
|
20120
|
+
}) : ye(n, { display: "none" });
|
|
20114
20121
|
}
|
|
20115
20122
|
};
|
|
20116
20123
|
};
|
|
@@ -20645,10 +20652,10 @@ const Gx = {
|
|
|
20645
20652
|
du
|
|
20646
20653
|
]
|
|
20647
20654
|
});
|
|
20648
|
-
const R = r.get("canvas"),
|
|
20655
|
+
const R = r.get("canvas"), z = r.get("elementFactory");
|
|
20649
20656
|
c();
|
|
20650
|
-
const
|
|
20651
|
-
R.setRootElement(
|
|
20657
|
+
const $ = z.createRoot();
|
|
20658
|
+
R.setRootElement($), u();
|
|
20652
20659
|
};
|
|
20653
20660
|
St(() => {
|
|
20654
20661
|
f();
|
|
@@ -20789,21 +20796,21 @@ const Gx = {
|
|
|
20789
20796
|
const E = p.value.length, S = o.columns, T = S.length;
|
|
20790
20797
|
for (let P = 0; P < E; P++) {
|
|
20791
20798
|
const R = p.value[P];
|
|
20792
|
-
for (let
|
|
20793
|
-
const
|
|
20794
|
-
if (w(
|
|
20795
|
-
const
|
|
20796
|
-
for (let M = 0; M <
|
|
20797
|
-
const k =
|
|
20798
|
-
if (k.pattern = k.pattern ? k.pattern + "" : "", k.pattern && !cn(R[
|
|
20799
|
-
R[
|
|
20799
|
+
for (let z = 0; z < T; z++) {
|
|
20800
|
+
const $ = S[z];
|
|
20801
|
+
if (w($.config, P).display !== !1 && $.rule && $.rule.length > 0) {
|
|
20802
|
+
const D = $.rule.length;
|
|
20803
|
+
for (let M = 0; M < D; M++) {
|
|
20804
|
+
const k = $.rule[M];
|
|
20805
|
+
if (k.pattern = k.pattern ? k.pattern + "" : "", k.pattern && !cn(R[$.prop || ""]) && !new RegExp(k.pattern.substring(1, k.pattern.length - 1)).test(
|
|
20806
|
+
R[$.prop || ""]
|
|
20800
20807
|
))
|
|
20801
|
-
return m.info = `${a("第")}${P + 1}${a("行")},${a("第")}${
|
|
20802
|
-
|
|
20808
|
+
return m.info = `${a("第")}${P + 1}${a("行")},${a("第")}${z + 1}${a("列")},${a(
|
|
20809
|
+
$.label
|
|
20803
20810
|
)}:${a(k.message)}`, m.isOk = !1, m;
|
|
20804
|
-
if (k.required && cn(R[
|
|
20805
|
-
return m.isOk = !1, m.info = `${a("第")}${P + 1}${a("行")},${a("第")}${
|
|
20806
|
-
|
|
20811
|
+
if (k.required && cn(R[$.prop || ""]))
|
|
20812
|
+
return m.isOk = !1, m.info = `${a("第")}${P + 1}${a("行")},${a("第")}${z + 1}${a("列")},${a(
|
|
20813
|
+
$.label
|
|
20807
20814
|
)}:${a("不能为空")}`, m;
|
|
20808
20815
|
}
|
|
20809
20816
|
}
|
|
@@ -20839,21 +20846,21 @@ const Gx = {
|
|
|
20839
20846
|
getTableData: () => p.value,
|
|
20840
20847
|
rowChange: h
|
|
20841
20848
|
}), (m, E) => {
|
|
20842
|
-
const S = B("j-comp"), T = B("el-form-item"), P = B("el-col"), R = B("j-button"),
|
|
20843
|
-
return C(), I(
|
|
20849
|
+
const S = B("j-comp"), T = B("el-form-item"), P = B("el-col"), R = B("j-button"), z = B("el-row");
|
|
20850
|
+
return C(), I(be, null, [
|
|
20844
20851
|
F("div", He({ class: "j-input-cards" }, m.$attrs), [
|
|
20845
|
-
(C(!0), I(
|
|
20852
|
+
(C(!0), I(be, null, Ee(p.value, ($, D) => (C(), I("div", {
|
|
20846
20853
|
class: "j-input-cards-item",
|
|
20847
|
-
key:
|
|
20854
|
+
key: $.i,
|
|
20848
20855
|
style: { "margin-bottom": "8px" }
|
|
20849
20856
|
}, [
|
|
20850
|
-
K(
|
|
20857
|
+
K(z, { gutter: e.gutter }, {
|
|
20851
20858
|
default: V(() => [
|
|
20852
|
-
(C(!0), I(
|
|
20859
|
+
(C(!0), I(be, null, Ee(e.columns, (M) => (C(), H(P, {
|
|
20853
20860
|
key: M.prop,
|
|
20854
20861
|
span: M.config?.span || e.span || 24,
|
|
20855
20862
|
style: Ce({
|
|
20856
|
-
"margin-bottom": (M.getInputType ? M.getInputType(
|
|
20863
|
+
"margin-bottom": (M.getInputType ? M.getInputType($) : M.inputType) == "j-input-rows" ? "8px" : void 0
|
|
20857
20864
|
})
|
|
20858
20865
|
}, {
|
|
20859
20866
|
default: V(() => [
|
|
@@ -20865,11 +20872,11 @@ const Gx = {
|
|
|
20865
20872
|
required: M.config?.required
|
|
20866
20873
|
}, {
|
|
20867
20874
|
default: V(() => [
|
|
20868
|
-
K(S, He({ ref_for: !0 }, M, { row:
|
|
20875
|
+
K(S, He({ ref_for: !0 }, M, { row: $ }), null, 16, ["row"])
|
|
20869
20876
|
]),
|
|
20870
20877
|
_: 2
|
|
20871
20878
|
}, 1032, ["label-width", "label", "extra", "tooltip", "required"]), [
|
|
20872
|
-
[Xo, w(M.config,
|
|
20879
|
+
[Xo, w(M.config, D).display !== !1]
|
|
20873
20880
|
])
|
|
20874
20881
|
]),
|
|
20875
20882
|
_: 2
|
|
@@ -20881,7 +20888,7 @@ const Gx = {
|
|
|
20881
20888
|
shape: "circle",
|
|
20882
20889
|
icon: "mdi:close",
|
|
20883
20890
|
danger: "",
|
|
20884
|
-
onClick: (M) => v(
|
|
20891
|
+
onClick: (M) => v(D)
|
|
20885
20892
|
}, null, 8, ["onClick"])) : Y("", !0)
|
|
20886
20893
|
]),
|
|
20887
20894
|
_: 2
|