@a2simcode/ui 0.0.108 → 0.0.109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/skills/ui-component-helper/README.md +86 -86
- package/.cursor/skills/ui-component-helper/SKILL.md +115 -115
- package/LICENSE +53 -53
- package/README.md +156 -156
- package/dist/components/table/index.d.ts +15 -0
- package/dist/components/table/src/table.vue.d.ts +15 -0
- package/dist/simcode-ui.es.js +247 -242
- 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/autocomplete.ts +11 -0
- package/docs/components/meta/buttons.ts +76 -76
- package/docs/components/meta/comp.ts +236 -236
- package/docs/components/meta/date.ts +256 -256
- package/docs/components/meta/echarts.ts +64 -64
- package/docs/components/meta/form.ts +165 -165
- 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-panel.ts +220 -220
- package/docs/components/meta/table.ts +380 -380
- package/docs/components/meta/tabs.ts +146 -146
- package/docs/components/meta/tree-select.ts +199 -199
- package/docs/components/meta/workflow-viewer.ts +55 -55
- package/docs/components/number.md +124 -124
- package/docs/components/page.md +87 -87
- 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 +236 -236
- package/docs/components/table.md +378 -378
- 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 +101 -101
- package/docs/examples/count-up/basic.vue +89 -89
- package/docs/examples/data-panel/basic.vue +110 -110
- package/docs/examples/date/basic.vue +73 -73
- package/docs/examples/date/default-value.vue +59 -59
- package/docs/examples/date/format.vue +75 -75
- package/docs/examples/date/range.vue +66 -66
- package/docs/examples/date/types.vue +79 -79
- package/docs/examples/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 +459 -459
- 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/dept-user-management.vue +211 -211
- package/docs/examples/page/init.vue +87 -87
- package/docs/examples/page/log.vue +453 -453
- package/docs/examples/page/user-management.vue +313 -313
- package/docs/examples/panel/tool-buttons.vue +18 -18
- package/docs/examples/radio/basic.vue +17 -17
- package/docs/examples/radio/button.vue +17 -17
- package/docs/examples/radio/color.vue +18 -18
- package/docs/examples/radio/disabled.vue +17 -17
- package/docs/examples/radio/size.vue +29 -29
- package/docs/examples/rate/basic.vue +24 -24
- package/docs/examples/rate/half.vue +24 -24
- package/docs/examples/rate/readonly.vue +11 -11
- package/docs/examples/rate/text.vue +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/action-filter.vue +126 -126
- package/docs/examples/table/actions.vue +116 -116
- package/docs/examples/table/add-row.vue +103 -103
- package/docs/examples/table/basic.vue +168 -168
- package/docs/examples/table/checkbox-layout.vue +68 -68
- package/docs/examples/table/custom-layout.vue +115 -115
- package/docs/examples/table/editable.vue +262 -262
- package/docs/examples/table/field-selection.vue +87 -87
- package/docs/examples/table/frozen-column.vue +140 -140
- package/docs/examples/table/height-mode.vue +99 -99
- package/docs/examples/table/icon.vue +85 -85
- package/docs/examples/table/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-default-expand-all.vue +60 -60
- package/docs/examples/table/tree-lazy.vue +80 -80
- package/docs/examples/table/tree-set-selection.vue +75 -75
- package/docs/examples/table-panel/basic.vue +228 -228
- package/docs/examples/table-panel/batch-operations.vue +285 -285
- package/docs/examples/table-panel/button-visibility.vue +88 -88
- package/docs/examples/table-panel/filter.vue +219 -219
- package/docs/examples/table-panel/get-selection.vue +111 -111
- package/docs/examples/table-panel/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/table-panel/tree-parent-key.vue +67 -67
- 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
|
@@ -4618,6 +4618,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4618
4618
|
type: Boolean,
|
|
4619
4619
|
default: !1
|
|
4620
4620
|
},
|
|
4621
|
+
selectStateKey: {
|
|
4622
|
+
type: String,
|
|
4623
|
+
default: ""
|
|
4624
|
+
},
|
|
4621
4625
|
isPage: {
|
|
4622
4626
|
type: Boolean,
|
|
4623
4627
|
default: !1
|
|
@@ -4720,10 +4724,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4720
4724
|
let R = o.records.length, m = 45;
|
|
4721
4725
|
const k = j(!1), C = j({}), T = j([]), A = j(null), E = j(0);
|
|
4722
4726
|
let B = null, z = !1, V = !1;
|
|
4723
|
-
const M = (I, $,
|
|
4724
|
-
T.value = I, A.value = $, E.value =
|
|
4727
|
+
const M = (I, $, W, ne, U) => {
|
|
4728
|
+
T.value = I, A.value = $, E.value = W, C.value = {
|
|
4725
4729
|
left: `${ne}px`,
|
|
4726
|
-
top: `${
|
|
4730
|
+
top: `${U}px`
|
|
4727
4731
|
}, k.value = !0, z = !1, document.addEventListener("wheel", Te, { passive: !1 });
|
|
4728
4732
|
}, S = () => {
|
|
4729
4733
|
k.value = !1, z = !1, V = !1, X(), document.removeEventListener("wheel", Te);
|
|
@@ -4745,17 +4749,17 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4745
4749
|
openLayer: u
|
|
4746
4750
|
}), S());
|
|
4747
4751
|
}, dt = (I) => {
|
|
4748
|
-
let $ = I.action.config?.display !== !1,
|
|
4752
|
+
let $ = I.action.config?.display !== !1, W = I.action.config?.disabled === !0;
|
|
4749
4753
|
const ne = o.actionFilter;
|
|
4750
4754
|
if (ne) try {
|
|
4751
|
-
const
|
|
4752
|
-
typeof
|
|
4755
|
+
const U = ne(I);
|
|
4756
|
+
typeof U == "boolean" ? $ = U : U && typeof U == "object" && (typeof U.display == "boolean" && ($ = U.display), typeof U.disabled == "boolean" && (W = U.disabled));
|
|
4753
4757
|
} catch {
|
|
4754
|
-
$ = I.action.config?.display !== !1,
|
|
4758
|
+
$ = I.action.config?.display !== !1, W = I.action.config?.disabled === !0;
|
|
4755
4759
|
}
|
|
4756
4760
|
return {
|
|
4757
4761
|
display: $,
|
|
4758
|
-
disabled:
|
|
4762
|
+
disabled: W
|
|
4759
4763
|
};
|
|
4760
4764
|
}, oe = (I, $) => $.disabled ? {
|
|
4761
4765
|
...I,
|
|
@@ -4764,7 +4768,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4764
4768
|
disabled: !0
|
|
4765
4769
|
}
|
|
4766
4770
|
} : I, Ge = (I) => {
|
|
4767
|
-
const { Group: $, Text:
|
|
4771
|
+
const { Group: $, Text: W } = Le.CustomLayout, ne = o.actionsMaxCount, U = I.filter((de) => de.config?.display !== !1), q = U.length > ne, pe = q ? U.slice(0, ne - 1) : U;
|
|
4768
4772
|
let ue = 0;
|
|
4769
4773
|
if (pe.forEach((de, we) => {
|
|
4770
4774
|
const Pe = sn(de.config?.label || de.label || "") || 0;
|
|
@@ -4787,7 +4791,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4787
4791
|
if (!o.actionFilter) return !1;
|
|
4788
4792
|
const He = re(fe);
|
|
4789
4793
|
return He ? gt().some((Fe) => re(Fe) === He) : !1;
|
|
4790
|
-
})(), $e =
|
|
4794
|
+
})(), $e = U.map((He) => {
|
|
4791
4795
|
const Fe = dt({
|
|
4792
4796
|
action: He,
|
|
4793
4797
|
record: fe,
|
|
@@ -4801,7 +4805,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4801
4805
|
action: oe(He, { disabled: Fe.disabled }),
|
|
4802
4806
|
display: Fe.display
|
|
4803
4807
|
};
|
|
4804
|
-
}).filter((He) => He.display).map((He) => He.action), ut = o.actionsMaxCount, Ue = $e.length > ut,
|
|
4808
|
+
}).filter((He) => He.display).map((He) => He.action), ut = o.actionsMaxCount, Ue = $e.length > ut, mt = Ue ? $e.slice(0, ut - 1) : $e, Ct = Ue ? $e.slice(ut - 1) : [], _e = new $({
|
|
4805
4809
|
height: 40,
|
|
4806
4810
|
display: "flex",
|
|
4807
4811
|
flexDirection: "row",
|
|
@@ -4809,8 +4813,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4809
4813
|
justifyContent: "flex-start",
|
|
4810
4814
|
flexWrap: "nowrap"
|
|
4811
4815
|
});
|
|
4812
|
-
if (
|
|
4813
|
-
const Xe = He.config?.disabled === !0, zt = Xe ? "#c9cdd4" : He.config?.danger ? "#f53f3f" : "#165dff", tn = new
|
|
4816
|
+
if (mt.forEach((He, Fe) => {
|
|
4817
|
+
const Xe = He.config?.disabled === !0, zt = Xe ? "#c9cdd4" : He.config?.danger ? "#f53f3f" : "#165dff", tn = new W({
|
|
4814
4818
|
text: He.label,
|
|
4815
4819
|
fontSize: 14,
|
|
4816
4820
|
fill: zt,
|
|
@@ -4833,7 +4837,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4833
4837
|
Xe || (na.target.setAttribute("fill", zt), we.scenegraph.stage.renderNextFrame());
|
|
4834
4838
|
}), _e.add(tn);
|
|
4835
4839
|
}), Ue && Ct.length > 0) {
|
|
4836
|
-
const He = "#1677ff", Fe = new
|
|
4840
|
+
const He = "#1677ff", Fe = new W({
|
|
4837
4841
|
text: "更多",
|
|
4838
4842
|
fontSize: 14,
|
|
4839
4843
|
fill: He,
|
|
@@ -4860,22 +4864,22 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4860
4864
|
}
|
|
4861
4865
|
};
|
|
4862
4866
|
}, Ze = (I) => {
|
|
4863
|
-
const { dataValue: $, rect:
|
|
4867
|
+
const { dataValue: $, rect: W, table: ne, col: U, row: q } = I;
|
|
4864
4868
|
let pe = "mdi:toggle-switch", ue = "#165dff";
|
|
4865
4869
|
$ || (pe = "mdi:toggle-switch-off", ue = "#e5e6eb");
|
|
4866
|
-
const Q = sa(pe), de = Q?.body?.replace(/currentColor/g, ue), we = [], Pe = ne?.getBodyField?.(
|
|
4870
|
+
const Q = sa(pe), de = Q?.body?.replace(/currentColor/g, ue), we = [], Pe = ne?.getBodyField?.(U, q), xe = ne?.options?.columns || [], fe = Pe ? Wt(xe, Pe) : null, We = 8, Ye = 40;
|
|
4867
4871
|
let $e = We;
|
|
4868
|
-
return fe?.style?.textAlign === "center" ? $e = Math.max(We, (
|
|
4872
|
+
return fe?.style?.textAlign === "center" ? $e = Math.max(We, (W.width - Ye) / 2) : fe?.style?.textAlign === "right" && ($e = Math.max(We, W.width - Ye - We)), we.push({
|
|
4869
4873
|
type: "icon",
|
|
4870
4874
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ye}" height="${Ye}" viewBox="0 0 ${Q?.width} ${Q?.height}" >${de}</svg>`,
|
|
4871
4875
|
x: $e,
|
|
4872
|
-
y: (
|
|
4876
|
+
y: (W.height - Ye) / 2,
|
|
4873
4877
|
width: Ye,
|
|
4874
4878
|
height: Ye
|
|
4875
4879
|
}), { elements: we };
|
|
4876
4880
|
}, Ae = (I) => {
|
|
4877
|
-
const { dataValue: $, rect:
|
|
4878
|
-
for (let Ye = 0; Ye <
|
|
4881
|
+
const { dataValue: $, rect: W } = I, ne = Number($) || 0, U = 5, q = 20, pe = 4, ue = 8, Q = (W.height - q) / 2, de = [], we = sa("mdi:star"), Pe = sa("mdi:star-half-full"), xe = sa("mdi:star-outline"), fe = "#f7ba2a", We = "#e5e6eb";
|
|
4882
|
+
for (let Ye = 0; Ye < U; Ye++) {
|
|
4879
4883
|
const $e = ue + Ye * (q + pe), ut = Q;
|
|
4880
4884
|
if (ne >= Ye + 1) {
|
|
4881
4885
|
const Ue = we?.body?.replace(/currentColor/g, fe);
|
|
@@ -4911,7 +4915,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4911
4915
|
}
|
|
4912
4916
|
return { elements: de };
|
|
4913
4917
|
}, nt = (I) => {
|
|
4914
|
-
const { dataValue: $, rect:
|
|
4918
|
+
const { dataValue: $, rect: W, table: ne, col: U, row: q } = I, pe = ne.getBodyField(U, q), ue = Wt(ne.options?.columns || [], pe)?._compConfig || {}, Q = Number(ue.min) || 0, de = Number(ue.max) || 100, we = Number($) || 0, Pe = de - Q, xe = Pe === 0 ? 0 : Math.max(0, Math.min(100, (we - Q) / Pe * 100)), fe = 4, We = 8, Ye = 8, $e = (W.height - fe) / 2, ut = String(we), Ue = sn(ut) || 0, mt = We, Ct = $e, _e = W.width - We * 2 - Ue - Ye, He = _e * xe / 100, Fe = [], Xe = (It, Ft, aa) => {
|
|
4915
4919
|
const Oe = Math.min(aa, Ft / 2, It / 2);
|
|
4916
4920
|
return `M ${Oe} 0 L ${It - Oe} 0 Q ${It} 0 ${It} ${Oe} L ${It} ${Ft - Oe} Q ${It} ${Ft} ${It - Oe} ${Ft} L ${Oe} ${Ft} Q 0 ${Ft} 0 ${Ft - Oe} L 0 ${Oe} Q 0 0 ${Oe} 0 Z`;
|
|
4917
4921
|
}, zt = (It, Ft, aa) => {
|
|
@@ -4921,7 +4925,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4921
4925
|
if (Fe.push({
|
|
4922
4926
|
type: "icon",
|
|
4923
4927
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${_e}" height="${fe}" viewBox="0 0 ${_e} ${fe}"><path d="${tn}" fill="#e5e6eb"/></svg>`,
|
|
4924
|
-
x:
|
|
4928
|
+
x: mt,
|
|
4925
4929
|
y: Ct,
|
|
4926
4930
|
width: _e,
|
|
4927
4931
|
height: fe
|
|
@@ -4930,13 +4934,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4930
4934
|
Fe.push({
|
|
4931
4935
|
type: "icon",
|
|
4932
4936
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${He}" height="${fe}" viewBox="0 0 ${He} ${fe}"><path d="${It}" fill="#165dff"/></svg>`,
|
|
4933
|
-
x:
|
|
4937
|
+
x: mt,
|
|
4934
4938
|
y: Ct,
|
|
4935
4939
|
width: He,
|
|
4936
4940
|
height: fe
|
|
4937
4941
|
});
|
|
4938
4942
|
}
|
|
4939
|
-
const na =
|
|
4943
|
+
const na = mt + _e + Ye, Do = W.height / 2;
|
|
4940
4944
|
return Fe.push({
|
|
4941
4945
|
type: "text",
|
|
4942
4946
|
text: ut,
|
|
@@ -4950,18 +4954,18 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4950
4954
|
}, ct = (I) => String(I).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), te = (I, $) => {
|
|
4951
4955
|
if (!I) return "";
|
|
4952
4956
|
if ((sn(I) || 0) <= $) return I;
|
|
4953
|
-
const
|
|
4957
|
+
const W = "...", ne = sn(W) || 0;
|
|
4954
4958
|
if (ne >= $) return "";
|
|
4955
|
-
let
|
|
4956
|
-
for (;
|
|
4957
|
-
const pe = Math.ceil((
|
|
4958
|
-
(sn(I.slice(0, pe)) || 0) + ne <= $ ?
|
|
4959
|
+
let U = 0, q = I.length;
|
|
4960
|
+
for (; U < q; ) {
|
|
4961
|
+
const pe = Math.ceil((U + q) / 2);
|
|
4962
|
+
(sn(I.slice(0, pe)) || 0) + ne <= $ ? U = pe : q = pe - 1;
|
|
4959
4963
|
}
|
|
4960
|
-
return I.slice(0,
|
|
4964
|
+
return I.slice(0, U) + W;
|
|
4961
4965
|
}, Ce = (I) => {
|
|
4962
|
-
const { value: $, rect:
|
|
4966
|
+
const { value: $, rect: W, table: ne, col: U, row: q } = I;
|
|
4963
4967
|
if (!$) return { elements: [] };
|
|
4964
|
-
const pe = ne.getBodyField(
|
|
4968
|
+
const pe = ne.getBodyField(U, q), ue = Wt(ne.options?.columns || [], pe)?._compConfig || {}, Q = Number(ue.size) || 16, de = ue.color, we = (W.width - Q) / 2, Pe = (W.height - Q) / 2;
|
|
4965
4969
|
let xe = String($).trim();
|
|
4966
4970
|
if (!xe) return { elements: [] };
|
|
4967
4971
|
if (xe.startsWith("<svg")) {
|
|
@@ -4991,17 +4995,17 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
4991
4995
|
height: Q
|
|
4992
4996
|
}] };
|
|
4993
4997
|
}, Be = (I) => {
|
|
4994
|
-
const { dataValue: $, rect:
|
|
4998
|
+
const { dataValue: $, rect: W, table: ne, col: U, row: q, value: pe } = I, ue = ne.getBodyField(U, q), Q = Wt(ne.options?.columns || [], ue), de = Q?._compConfig || {}, we = Q?.style?.textAlign || "left", Pe = c({
|
|
4995
4999
|
config: de,
|
|
4996
|
-
row: ne.getRecordByCell?.(
|
|
5000
|
+
row: ne.getRecordByCell?.(U, q) || ne.getCellOriginRecord?.(U, q),
|
|
4997
5001
|
value: Q._fieldFormat ? pe : $
|
|
4998
5002
|
});
|
|
4999
5003
|
if (Pe.length === 0) return { elements: [] };
|
|
5000
|
-
const xe = 14, fe = 28, We = 2, Ye = 12, $e = 8, ut = 6, Ue = 8,
|
|
5004
|
+
const xe = 14, fe = 28, We = 2, Ye = 12, $e = 8, ut = 6, Ue = 8, mt = Math.max(0, W.width - Ue * 2), Ct = Math.max(0, mt - Ye * 2), _e = [], He = (Oe) => {
|
|
5001
5005
|
const Pt = sn(te(Oe, Ct)) || 0;
|
|
5002
|
-
return Math.min(
|
|
5006
|
+
return Math.min(mt, Pt + Ye * 2);
|
|
5003
5007
|
}, Fe = (Oe, Pt, hn, Vt, On) => {
|
|
5004
|
-
const Fo = te(hn, Ct), Ju = ct(Fo), Xu = sn(Fo) || 0, Ca = Math.min(
|
|
5008
|
+
const Fo = te(hn, Ct), Ju = ct(Fo), Xu = sn(Fo) || 0, Ca = Math.min(mt, Xu + Ye * 2), qu = Vt || "#f2f3f5", Zu = On || "#1d2129", Qu = fe / 2 + xe * 0.35, ed = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ca}" height="${fe}" viewBox="0 0 ${Ca} ${fe}"><rect x="0" y="0" width="${Ca}" height="${fe}" rx="${We}" ry="${We}" fill="${qu}"/><text x="${Ca / 2}" y="${Qu}" text-anchor="middle" font-size="${xe}" fill="${Zu}">${Ju}</text></svg>`;
|
|
5005
5009
|
return _e.push({
|
|
5006
5010
|
type: "icon",
|
|
5007
5011
|
svg: ed,
|
|
@@ -5019,7 +5023,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5019
5023
|
text: Pt.textColor || Je(Pt.color || "#f2f3f5"),
|
|
5020
5024
|
width: Vt
|
|
5021
5025
|
};
|
|
5022
|
-
zt.length > 0 && tn + $e + Vt >
|
|
5026
|
+
zt.length > 0 && tn + $e + Vt > mt ? (Xe.push({
|
|
5023
5027
|
items: zt,
|
|
5024
5028
|
lineWidth: tn
|
|
5025
5029
|
}), zt = [On], tn = Vt) : (zt.push(On), tn += zt.length > 1 ? $e + Vt : Vt);
|
|
@@ -5028,12 +5032,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5028
5032
|
items: zt,
|
|
5029
5033
|
lineWidth: tn
|
|
5030
5034
|
});
|
|
5031
|
-
const na =
|
|
5035
|
+
const na = W.height;
|
|
5032
5036
|
let Do = Math.max(1, Math.floor((na + ut) / (fe + ut))), It = !1;
|
|
5033
5037
|
if (Xe.length > Do && (It = !0, Xe.length = Do), It) {
|
|
5034
5038
|
const Oe = Xe[Xe.length - 1], Pt = He("...");
|
|
5035
5039
|
let hn = Oe.lineWidth + (Oe.items.length > 0 ? $e : 0) + Pt;
|
|
5036
|
-
for (; hn >
|
|
5040
|
+
for (; hn > mt && Oe.items.length > 0; ) {
|
|
5037
5041
|
const Vt = Oe.items.pop();
|
|
5038
5042
|
if (!Vt) break;
|
|
5039
5043
|
Oe.items.length > 0 ? Oe.lineWidth -= $e + Vt.width : Oe.lineWidth -= Vt.width, hn = Oe.lineWidth + (Oe.items.length > 0 ? $e : 0) + Pt;
|
|
@@ -5046,10 +5050,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5046
5050
|
}), Oe.lineWidth += Oe.items.length > 1 ? $e + Pt : Pt;
|
|
5047
5051
|
}
|
|
5048
5052
|
const Ft = Xe.length * fe + (Xe.length > 1 ? (Xe.length - 1) * ut : 0);
|
|
5049
|
-
let aa = Math.max(0, (
|
|
5053
|
+
let aa = Math.max(0, (W.height - Ft) / 2);
|
|
5050
5054
|
for (let Oe = 0; Oe < Xe.length; Oe++) {
|
|
5051
5055
|
const Pt = Xe[Oe];
|
|
5052
|
-
let hn = we === "center" ? Ue + Math.max(0, (
|
|
5056
|
+
let hn = we === "center" ? Ue + Math.max(0, (mt - Pt.lineWidth) / 2) : we === "right" ? Ue + Math.max(0, mt - Pt.lineWidth) : Ue;
|
|
5053
5057
|
for (let Vt = 0; Vt < Pt.items.length; Vt++) {
|
|
5054
5058
|
const On = Pt.items[Vt], { tagWidth: Fo } = Fe(hn, aa, On.label, On.bg, On.text);
|
|
5055
5059
|
hn += Fo + (Vt < Pt.items.length - 1 ? $e : 0);
|
|
@@ -5059,23 +5063,23 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5059
5063
|
return { elements: _e };
|
|
5060
5064
|
}, Je = (I) => {
|
|
5061
5065
|
if (!I) return "#1d2129";
|
|
5062
|
-
I = I.replace("#", ""), I.length === 3 && (I = I.split("").map((
|
|
5063
|
-
const $ = parseInt(I.substring(0, 2), 16),
|
|
5064
|
-
if (($ * 299 +
|
|
5065
|
-
const
|
|
5066
|
+
I = I.replace("#", ""), I.length === 3 && (I = I.split("").map((U) => U + U).join(""));
|
|
5067
|
+
const $ = parseInt(I.substring(0, 2), 16), W = parseInt(I.substring(2, 4), 16), ne = parseInt(I.substring(4, 6), 16);
|
|
5068
|
+
if (($ * 299 + W * 587 + ne * 114) / 1e3 >= 128) {
|
|
5069
|
+
const U = $ / 255, q = W / 255, pe = ne / 255, ue = Math.max(U, q, pe), Q = Math.min(U, q, pe);
|
|
5066
5070
|
let de = 0, we = 0;
|
|
5067
5071
|
const Pe = (ue + Q) / 2;
|
|
5068
5072
|
if (ue !== Q) {
|
|
5069
5073
|
const Ue = ue - Q;
|
|
5070
5074
|
switch (we = Pe > 0.5 ? Ue / (2 - ue - Q) : Ue / (ue + Q), ue) {
|
|
5071
|
-
case
|
|
5075
|
+
case U:
|
|
5072
5076
|
de = (q - pe) / Ue + (q < pe ? 6 : 0);
|
|
5073
5077
|
break;
|
|
5074
5078
|
case q:
|
|
5075
|
-
de = (pe -
|
|
5079
|
+
de = (pe - U) / Ue + 2;
|
|
5076
5080
|
break;
|
|
5077
5081
|
case pe:
|
|
5078
|
-
de = (
|
|
5082
|
+
de = (U - q) / Ue + 4;
|
|
5079
5083
|
break;
|
|
5080
5084
|
}
|
|
5081
5085
|
de /= 6;
|
|
@@ -5084,17 +5088,17 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5084
5088
|
let We, Ye, $e;
|
|
5085
5089
|
if (fe === 0) We = Ye = $e = xe;
|
|
5086
5090
|
else {
|
|
5087
|
-
const Ue = (_e, He, Fe) => (Fe < 0 && (Fe += 1), Fe > 1 && (Fe -= 1), Fe < 0.16666666666666666 ? _e + (He - _e) * 6 * Fe : Fe < 0.5 ? He : Fe < 0.6666666666666666 ? _e + (He - _e) * (0.6666666666666666 - Fe) * 6 : _e),
|
|
5088
|
-
We = Ue(Ct,
|
|
5091
|
+
const Ue = (_e, He, Fe) => (Fe < 0 && (Fe += 1), Fe > 1 && (Fe -= 1), Fe < 0.16666666666666666 ? _e + (He - _e) * 6 * Fe : Fe < 0.5 ? He : Fe < 0.6666666666666666 ? _e + (He - _e) * (0.6666666666666666 - Fe) * 6 : _e), mt = xe < 0.5 ? xe * (1 + fe) : xe + fe - xe * fe, Ct = 2 * xe - mt;
|
|
5092
|
+
We = Ue(Ct, mt, de + 1 / 3), Ye = Ue(Ct, mt, de), $e = Ue(Ct, mt, de - 1 / 3);
|
|
5089
5093
|
}
|
|
5090
5094
|
const ut = (Ue) => Math.round(Ue * 255).toString(16).padStart(2, "0");
|
|
5091
5095
|
return `#${ut(We)}${ut(Ye)}${ut($e)}`;
|
|
5092
5096
|
}
|
|
5093
5097
|
return "#ffffff";
|
|
5094
5098
|
}, Lt = (I) => {
|
|
5095
|
-
const { table: $, row:
|
|
5096
|
-
height:
|
|
5097
|
-
width:
|
|
5099
|
+
const { table: $, row: W, col: ne, rect: U, value: q } = I, { Group: pe, Text: ue } = Le.CustomLayout, Q = $.getBodyField(ne, W), de = Wt($.options?.columns || [], Q), we = de?._compConfig || {}, Pe = new pe({
|
|
5100
|
+
height: U.height,
|
|
5101
|
+
width: U.width,
|
|
5098
5102
|
display: "flex",
|
|
5099
5103
|
alignItems: "center",
|
|
5100
5104
|
justifyContent: de.style?.textAlign === "center" ? "center" : de.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
@@ -5112,7 +5116,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5112
5116
|
});
|
|
5113
5117
|
return fe.addEventListener("click", () => {
|
|
5114
5118
|
if (we.click) {
|
|
5115
|
-
const We = $.getCellOriginRecord(ne,
|
|
5119
|
+
const We = $.getCellOriginRecord(ne, W);
|
|
5116
5120
|
we.click({
|
|
5117
5121
|
row: We,
|
|
5118
5122
|
column: de,
|
|
@@ -5128,7 +5132,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5128
5132
|
renderDefault: !1
|
|
5129
5133
|
};
|
|
5130
5134
|
}, Dt = (I) => {
|
|
5131
|
-
const { table: $, row:
|
|
5135
|
+
const { table: $, row: W, col: ne, rect: U } = I, { height: q, width: pe } = U ?? $.getCellRect(ne, W), { Group: ue, CheckBox: Q } = Le.CustomLayout, de = $.getBodyField(ne, W), we = Wt($.options?.columns || [], de), Pe = $.getCellOriginRecord(ne, W) || {}, xe = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", fe = we?.style?.textAlign === "right" ? "flex-end" : we?.style?.textAlign === "center" ? "center" : "flex-start", We = (Ct, _e) => {
|
|
5132
5136
|
const He = Pe?.[de];
|
|
5133
5137
|
Pe[de] = (Array.isArray(He) ? He : []).map((Fe, Xe) => Xe !== Ct ? Fe : Fe && typeof Fe == "object" ? {
|
|
5134
5138
|
...Fe,
|
|
@@ -5149,7 +5153,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5149
5153
|
rootContainer: $e,
|
|
5150
5154
|
renderDefault: !1
|
|
5151
5155
|
};
|
|
5152
|
-
const Ue = ut,
|
|
5156
|
+
const Ue = ut, mt = new ue({
|
|
5153
5157
|
width: pe,
|
|
5154
5158
|
display: "flex",
|
|
5155
5159
|
flexDirection: "row",
|
|
@@ -5163,7 +5167,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5163
5167
|
justifyContent: fe,
|
|
5164
5168
|
alignItems: "center"
|
|
5165
5169
|
});
|
|
5166
|
-
$e.add(
|
|
5170
|
+
$e.add(mt);
|
|
5167
5171
|
for (let Ct = 0; Ct < Ue.length; Ct++) {
|
|
5168
5172
|
const _e = Ue[Ct], He = _e && typeof _e == "object" ? _e.label ?? _e.value ?? "" : _e ?? "", Fe = new Q({
|
|
5169
5173
|
text: {
|
|
@@ -5180,7 +5184,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5180
5184
|
4
|
|
5181
5185
|
]
|
|
5182
5186
|
});
|
|
5183
|
-
Fe.render?.(),
|
|
5187
|
+
Fe.render?.(), mt.add(Fe), Fe.addEventListener("checkbox_state_change", () => {
|
|
5184
5188
|
const Xe = !!Fe.attribute?.checked;
|
|
5185
5189
|
We(Ct, { checked: Xe }), Ye();
|
|
5186
5190
|
});
|
|
@@ -5190,29 +5194,29 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5190
5194
|
renderDefault: !1
|
|
5191
5195
|
};
|
|
5192
5196
|
}, at = (I) => {
|
|
5193
|
-
const { table: $, row:
|
|
5197
|
+
const { table: $, row: W, col: ne } = I, U = $.getBodyField(ne, W), q = Wt($.options?.columns || [], U), pe = q?._compConfig || {};
|
|
5194
5198
|
if (q?._customLayout) return q._customLayout({
|
|
5195
5199
|
...I,
|
|
5196
5200
|
config: pe,
|
|
5197
5201
|
customLayout: Le.CustomLayout
|
|
5198
5202
|
});
|
|
5199
5203
|
}, Wt = (I, $) => {
|
|
5200
|
-
for (const
|
|
5201
|
-
if (
|
|
5202
|
-
if (
|
|
5203
|
-
const ne = Wt(
|
|
5204
|
+
for (const W of I) {
|
|
5205
|
+
if (W.field === $) return W;
|
|
5206
|
+
if (W.columns) {
|
|
5207
|
+
const ne = Wt(W.columns, $);
|
|
5204
5208
|
if (ne) return ne;
|
|
5205
5209
|
}
|
|
5206
5210
|
}
|
|
5207
5211
|
return null;
|
|
5208
|
-
}, jn = (I, $,
|
|
5209
|
-
const
|
|
5210
|
-
if (q._fieldFormat) return q._fieldFormat(I, $,
|
|
5212
|
+
}, jn = (I, $, W, ne) => {
|
|
5213
|
+
const U = ne.getBodyField($, W), q = Wt(ne.options?.columns || [], U);
|
|
5214
|
+
if (q._fieldFormat) return q._fieldFormat(I, $, W, ne);
|
|
5211
5215
|
if (q._compType === "dateTime") {
|
|
5212
5216
|
const pe = q._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
5213
|
-
return sc(I[
|
|
5217
|
+
return sc(I[U], pe);
|
|
5214
5218
|
}
|
|
5215
|
-
return bf(I[
|
|
5219
|
+
return bf(I[U], s, {
|
|
5216
5220
|
type: q._compType,
|
|
5217
5221
|
getCompType: q._getCompType,
|
|
5218
5222
|
getCompConfig: q._getCompConfig,
|
|
@@ -5222,8 +5226,8 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5222
5226
|
row: I
|
|
5223
5227
|
});
|
|
5224
5228
|
}, Zt = (I) => {
|
|
5225
|
-
const $ = I.filter((
|
|
5226
|
-
const { id: ne, type:
|
|
5229
|
+
const $ = I.filter((W) => W.config?.display !== !1).map((W) => {
|
|
5230
|
+
const { id: ne, type: U, config: q, getCompConfig: pe, getCompType: ue, children: Q, customLayout: de } = W, { label: we, width: Pe, minWidth: xe, maxWidth: fe, align: We, headerAlign: Ye, fieldFormat: $e, editor: ut, frozen: Ue, ...mt } = q || {}, Ct = Ye ?? We, _e = {
|
|
5227
5231
|
field: ne,
|
|
5228
5232
|
title: we,
|
|
5229
5233
|
width: Pe,
|
|
@@ -5233,29 +5237,29 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5233
5237
|
style: { textAlign: We },
|
|
5234
5238
|
_customLayout: de,
|
|
5235
5239
|
_fieldFormat: $e,
|
|
5236
|
-
_compType:
|
|
5237
|
-
_compConfig: { ...
|
|
5240
|
+
_compType: U,
|
|
5241
|
+
_compConfig: { ...mt },
|
|
5238
5242
|
_getCompConfig: pe,
|
|
5239
5243
|
_getCompType: ue,
|
|
5240
5244
|
frozen: Ue
|
|
5241
|
-
}, He = Kh(
|
|
5242
|
-
return He && (_e.editor = He, y = !0),
|
|
5245
|
+
}, He = Kh(U);
|
|
5246
|
+
return He && (_e.editor = He, y = !0), U === "j-switch" && (_e.customRender = Ze, _e.minWidth = _e.minWidth || Pe, _e.maxWidth = _e.maxWidth || Pe), U === "j-rate" && (_e.customRender = Ae), U === "j-slider" && (_e.customRender = nt), (U === "j-tag" || U === "j-input-tag") && (_e.customRender = Be), U === "j-icon" && (_e.customRender = Ce), U === "link" && (_e.customLayout = Lt), U === "checkbox" && (_e.customLayout = Dt), de && (_e.customLayout = at), _e.fieldFormat = jn, Q && Q.length > 0 && (_e.columns = Zt(Q)), _e;
|
|
5243
5247
|
});
|
|
5244
5248
|
return o.isTree && $.length > 0 && ($[0].tree = !0), $;
|
|
5245
5249
|
}, J = (I, $) => {
|
|
5246
|
-
const
|
|
5247
|
-
return `#${(
|
|
5250
|
+
const W = I.replace("#", ""), ne = parseInt(W, 16), U = Math.min(255, Math.max(0, (ne >> 16) + $)), q = Math.min(255, Math.max(0, (ne >> 8 & 255) + $)), pe = Math.min(255, Math.max(0, (ne & 255) + $));
|
|
5251
|
+
return `#${(U << 16 | q << 8 | pe).toString(16).padStart(6, "0")}`;
|
|
5248
5252
|
}, ce = () => {
|
|
5249
5253
|
let I = R;
|
|
5250
5254
|
o.isPage && (I = be.value + R);
|
|
5251
5255
|
let $ = sn(String(I)) || 0;
|
|
5252
5256
|
return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
|
|
5253
5257
|
}, Z = (I) => {
|
|
5254
|
-
let $ = (
|
|
5255
|
-
const pe = q.getRecordIndexByCell(ne,
|
|
5258
|
+
let $ = (W, ne, U, q) => {
|
|
5259
|
+
const pe = q.getRecordIndexByCell(ne, U);
|
|
5256
5260
|
return o.isPage && !I ? be.value + pe + 1 : pe + 1;
|
|
5257
5261
|
};
|
|
5258
|
-
return I && ($ = (
|
|
5262
|
+
return I && ($ = (W, ne, U, q) => q.getRecordIndexByCell(ne, U) + 1), {
|
|
5259
5263
|
field: "__sequence__",
|
|
5260
5264
|
title: "序号",
|
|
5261
5265
|
width: m,
|
|
@@ -5282,53 +5286,53 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5282
5286
|
}), ie = (I) => {
|
|
5283
5287
|
if (I.frozen) return I.frozen;
|
|
5284
5288
|
if (I.columns) for (const $ of I.columns) {
|
|
5285
|
-
const
|
|
5286
|
-
if (
|
|
5289
|
+
const W = ie($);
|
|
5290
|
+
if (W) return W;
|
|
5287
5291
|
}
|
|
5288
5292
|
}, Se = (I) => {
|
|
5289
5293
|
const $ = [];
|
|
5290
|
-
return I.forEach((
|
|
5291
|
-
if (
|
|
5292
|
-
$.push(
|
|
5294
|
+
return I.forEach((W) => {
|
|
5295
|
+
if (W.frozen) {
|
|
5296
|
+
$.push(W);
|
|
5293
5297
|
return;
|
|
5294
5298
|
}
|
|
5295
|
-
if (!
|
|
5296
|
-
$.push(
|
|
5299
|
+
if (!W.columns || W.columns.length === 0) {
|
|
5300
|
+
$.push(W);
|
|
5297
5301
|
return;
|
|
5298
5302
|
}
|
|
5299
|
-
const ne = Se(
|
|
5303
|
+
const ne = Se(W.columns), U = [], q = [], pe = [];
|
|
5300
5304
|
if (ne.forEach((ue) => {
|
|
5301
5305
|
const Q = ie(ue);
|
|
5302
|
-
Q === "left" ?
|
|
5303
|
-
}), (
|
|
5304
|
-
|
|
5306
|
+
Q === "left" ? U.push(ue) : Q === "right" ? q.push(ue) : pe.push(ue);
|
|
5307
|
+
}), (U.length > 0 ? 1 : 0) + (q.length > 0 ? 1 : 0) + (pe.length > 0 ? 1 : 0) <= 1) {
|
|
5308
|
+
W.columns = ne, $.push(W);
|
|
5305
5309
|
return;
|
|
5306
5310
|
}
|
|
5307
|
-
|
|
5308
|
-
...
|
|
5309
|
-
columns:
|
|
5311
|
+
U.length && $.push({
|
|
5312
|
+
...W,
|
|
5313
|
+
columns: U
|
|
5310
5314
|
}), pe.length && $.push({
|
|
5311
|
-
...
|
|
5315
|
+
...W,
|
|
5312
5316
|
columns: pe
|
|
5313
5317
|
}), q.length && $.push({
|
|
5314
|
-
...
|
|
5318
|
+
...W,
|
|
5315
5319
|
columns: q
|
|
5316
5320
|
});
|
|
5317
5321
|
}), $;
|
|
5318
5322
|
}, Me = (I) => {
|
|
5319
|
-
let $ = 0,
|
|
5323
|
+
let $ = 0, W = 0;
|
|
5320
5324
|
return I.forEach((ne) => {
|
|
5321
5325
|
if (ne.columns && ne.columns.length > 0) {
|
|
5322
|
-
const
|
|
5323
|
-
$ +=
|
|
5324
|
-
} else ne.frozen === "left" ? $++ : ne.frozen === "right" &&
|
|
5326
|
+
const U = Me(ne.columns);
|
|
5327
|
+
$ += U.left, W += U.right;
|
|
5328
|
+
} else ne.frozen === "left" ? $++ : ne.frozen === "right" && W++;
|
|
5325
5329
|
}), {
|
|
5326
5330
|
left: $,
|
|
5327
|
-
right:
|
|
5331
|
+
right: W
|
|
5328
5332
|
};
|
|
5329
|
-
}, ot = (I, $,
|
|
5333
|
+
}, ot = (I, $, W, ne) => {
|
|
5330
5334
|
b = 0, x = 0, y = !1;
|
|
5331
|
-
const
|
|
5335
|
+
const U = {};
|
|
5332
5336
|
let q = Zt(I);
|
|
5333
5337
|
q.length === 0 && (q = [ee()]), q = Se(q);
|
|
5334
5338
|
const pe = [], ue = [], Q = [];
|
|
@@ -5341,7 +5345,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5341
5345
|
...pe,
|
|
5342
5346
|
...Q,
|
|
5343
5347
|
...ue
|
|
5344
|
-
], $ && (q.unshift(Z(ne)), x++),
|
|
5348
|
+
], $ && (q.unshift(Z(ne)), x++), W.length > 0 && (q.push(Ge(W)), b++), y && (U.editCellTrigger = "click", U.keyboardOptions = {
|
|
5345
5349
|
copySelected: !0,
|
|
5346
5350
|
cutSelected: !0,
|
|
5347
5351
|
pasteValueToCell: !0,
|
|
@@ -5352,19 +5356,19 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5352
5356
|
if (fe?._compType === "checkbox" || Array.isArray(fe?.columns) && Pe(fe.columns)) return !0;
|
|
5353
5357
|
return !1;
|
|
5354
5358
|
};
|
|
5355
|
-
return Pe(q) && (
|
|
5359
|
+
return Pe(q) && (U.defaultRowHeight = "auto", U.defaultHeaderRowHeight = 40), {
|
|
5356
5360
|
columns: q,
|
|
5357
|
-
option:
|
|
5361
|
+
option: U
|
|
5358
5362
|
};
|
|
5359
5363
|
}, Tt = () => {
|
|
5360
5364
|
const I = ot(o.columns, o.isShowNumber && !o.isTree, o.actions);
|
|
5361
|
-
|
|
5365
|
+
yt.value && x++;
|
|
5362
5366
|
const $ = {
|
|
5363
5367
|
records: [],
|
|
5364
5368
|
columns: I.columns,
|
|
5365
5369
|
autoFillWidth: !0,
|
|
5366
|
-
enableCheckboxCascade:
|
|
5367
|
-
enableHeaderCheckboxCascade:
|
|
5370
|
+
enableCheckboxCascade: yt.value,
|
|
5371
|
+
enableHeaderCheckboxCascade: yt.value,
|
|
5368
5372
|
rightFrozenColCount: b,
|
|
5369
5373
|
frozenColCount: x,
|
|
5370
5374
|
tooltip: { isShowOverflowTextTooltip: !0 },
|
|
@@ -5377,7 +5381,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5377
5381
|
delay: 0,
|
|
5378
5382
|
type: "one-by-one",
|
|
5379
5383
|
direction: "row"
|
|
5380
|
-
}),
|
|
5384
|
+
}), yt.value && ($.rowSeriesNumber = {
|
|
5381
5385
|
width: 40,
|
|
5382
5386
|
minWidth: 40,
|
|
5383
5387
|
maxWidth: 40,
|
|
@@ -5412,22 +5416,22 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5412
5416
|
}, lt = (I) => !o.isTree || !o.parentKey || I.some(($) => Array.isArray($?.children) && $.children.length > 0) ? I : gf(I, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), Pn = (I) => {
|
|
5413
5417
|
if (!p.value) return;
|
|
5414
5418
|
m = ce(), Gh();
|
|
5415
|
-
const $ = Tt(),
|
|
5416
|
-
I && I.length >= 0 ? $.records = lt(I) :
|
|
5419
|
+
const $ = Tt(), W = Yt();
|
|
5420
|
+
I && I.length >= 0 ? $.records = lt(I) : W.length > 0 ? $.records = lt(W) : ($.records = lt(o.records), i("update:modelValue", $.records)), g = new Le.ListTable(p.value, $), g._getAppContext = () => a?.appContext;
|
|
5417
5421
|
const ne = a?.provides;
|
|
5418
|
-
g._getProvides = () => ne, o.loadChildren && g.on(Le.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (
|
|
5419
|
-
if (
|
|
5420
|
-
g.setLoadingHierarchyState(
|
|
5422
|
+
g._getProvides = () => ne, o.loadChildren && g.on(Le.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (U) => {
|
|
5423
|
+
if (U.hierarchyState === Le.TYPES.HierarchyState.expand && U.originData?.children === !0) {
|
|
5424
|
+
g.setLoadingHierarchyState(U.col, U.row);
|
|
5421
5425
|
try {
|
|
5422
|
-
const q = await o.loadChildren(
|
|
5423
|
-
o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(q,
|
|
5426
|
+
const q = await o.loadChildren(U.originData);
|
|
5427
|
+
o.isTree && g && typeof g.setRecordChildren == "function" ? g.setRecordChildren(q, U.col, U.row) : v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(q, U.col, U.row) : g && typeof g.setRecordChildren == "function" && g.setRecordChildren(q, U.col, U.row);
|
|
5424
5428
|
} catch (q) {
|
|
5425
|
-
console.error("Failed to load detail data:", q), g.setLoadingHierarchyState(
|
|
5429
|
+
console.error("Failed to load detail data:", q), g.setLoadingHierarchyState(U.col, U.row);
|
|
5426
5430
|
}
|
|
5427
5431
|
}
|
|
5428
|
-
}), g.on("click_cell", (
|
|
5429
|
-
const { col: q, cellType: pe, originData: ue } =
|
|
5430
|
-
if (
|
|
5432
|
+
}), g.on("click_cell", (U) => {
|
|
5433
|
+
const { col: q, cellType: pe, originData: ue } = U;
|
|
5434
|
+
if (yt.value) {
|
|
5431
5435
|
if (pe === "checkbox" && q == 0) {
|
|
5432
5436
|
const Q = gt();
|
|
5433
5437
|
Q.length == 0 && g.setCellCheckboxState(0, 0, !1), w.value = Q.length, i("selectionChanged", {
|
|
@@ -5457,9 +5461,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5457
5461
|
ea(), Pn($);
|
|
5458
5462
|
});
|
|
5459
5463
|
else {
|
|
5460
|
-
const
|
|
5461
|
-
|
|
5464
|
+
const W = ce();
|
|
5465
|
+
W !== m ? (m = W, o.subColumns && o.subColumns.length > 0 ? (ea(), Pn($)) : _t($)) : g.setRecords($);
|
|
5462
5466
|
}
|
|
5467
|
+
o.selectStateKey && o.isMultiple && vt(I.filter((W) => W[o.selectStateKey]));
|
|
5463
5468
|
}
|
|
5464
5469
|
}, Ua = () => g ? g.records : [];
|
|
5465
5470
|
kt(() => {
|
|
@@ -5481,14 +5486,14 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5481
5486
|
set(I) {
|
|
5482
5487
|
Lo.value = I, i("update:pageSize", I);
|
|
5483
5488
|
}
|
|
5484
|
-
}), be = P(() => (Ya.value - 1) * ye.value),
|
|
5489
|
+
}), be = P(() => (Ya.value - 1) * ye.value), xt = (I, $) => {
|
|
5485
5490
|
i("loadPageData", {
|
|
5486
5491
|
rows: $,
|
|
5487
5492
|
page: I
|
|
5488
5493
|
});
|
|
5489
5494
|
}, gt = () => {
|
|
5490
5495
|
if (!g) return [];
|
|
5491
|
-
if (!
|
|
5496
|
+
if (!yt.value) {
|
|
5492
5497
|
const I = g.getSelectedCellInfos();
|
|
5493
5498
|
if (I && I.length > 0) {
|
|
5494
5499
|
const $ = I[0][0];
|
|
@@ -5497,7 +5502,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5497
5502
|
return [];
|
|
5498
5503
|
}
|
|
5499
5504
|
if (g.stateManager && g.stateManager.checkedState) {
|
|
5500
|
-
const I = [], $ = /* @__PURE__ */ new Set(),
|
|
5505
|
+
const I = [], $ = /* @__PURE__ */ new Set(), W = (ue) => {
|
|
5501
5506
|
if (!ue) return;
|
|
5502
5507
|
const Q = re(ue);
|
|
5503
5508
|
if (Q) {
|
|
@@ -5509,26 +5514,26 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5509
5514
|
}, ne = (ue) => {
|
|
5510
5515
|
const Q = ue?.children;
|
|
5511
5516
|
!Array.isArray(Q) || Q.length === 0 || Q.forEach((de) => {
|
|
5512
|
-
|
|
5517
|
+
W(de), ne(de);
|
|
5513
5518
|
});
|
|
5514
|
-
},
|
|
5519
|
+
}, U = g.stateManager.checkedState, q = g.records, pe = (ue, Q, de) => {
|
|
5515
5520
|
const we = de[Q[ue]];
|
|
5516
5521
|
return ue < Q.length - 1 && we?.children && we.children.length > 0 ? pe(ue + 1, Q, we.children || []) : we;
|
|
5517
5522
|
};
|
|
5518
|
-
return
|
|
5523
|
+
return U.forEach((ue, Q) => {
|
|
5519
5524
|
const de = ue?._checkState;
|
|
5520
5525
|
if (de === "indeterminate" || de === !0) {
|
|
5521
5526
|
const we = (Q + "").split(",").map(Number), Pe = pe(0, we, q);
|
|
5522
|
-
console.log(Pe, we, de),
|
|
5527
|
+
console.log(Pe, we, de), W(Pe), de === !0 && ne(Pe);
|
|
5523
5528
|
}
|
|
5524
5529
|
}), I;
|
|
5525
5530
|
}
|
|
5526
5531
|
return [];
|
|
5527
|
-
}, re = (I) => o.rowKey ? o.rowKey.split(",").map(($) => I[$.trim()]).join("::") : "",
|
|
5532
|
+
}, re = (I) => o.rowKey ? o.rowKey.split(",").map(($) => I[$.trim()]).join("::") : "", vt = (I) => {
|
|
5528
5533
|
if (g)
|
|
5529
|
-
if (
|
|
5530
|
-
const $ = new Set(I.map(re)),
|
|
5531
|
-
if (!
|
|
5534
|
+
if (yt.value || g.clearSelected(), o.rowKey) {
|
|
5535
|
+
const $ = new Set(I.map(re)), W = "__checkState";
|
|
5536
|
+
if (!yt.value) {
|
|
5532
5537
|
const ue = g.records;
|
|
5533
5538
|
for (let Q = 0; Q < ue.length; Q++) {
|
|
5534
5539
|
const de = ue[Q];
|
|
@@ -5543,23 +5548,23 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5543
5548
|
ue.forEach((Q) => {
|
|
5544
5549
|
if (Array.isArray(Q?.children) && Q.children.length > 0) {
|
|
5545
5550
|
ne(Q.children);
|
|
5546
|
-
const de = Q.children, we = de.filter((xe) => xe?.[
|
|
5547
|
-
we.length == de.length ? Q[
|
|
5548
|
-
} else Q[
|
|
5551
|
+
const de = Q.children, we = de.filter((xe) => xe?.[W] === !0), Pe = de.filter((xe) => xe?.[W] === !1);
|
|
5552
|
+
we.length == de.length ? Q[W] = !0 : Pe.length == de.length ? Q[W] = !1 : Q[W] = "indeterminate", Q[W] === "indeterminate" && (Q.hierarchyState = "expand");
|
|
5553
|
+
} else Q[W] = !!$.has(re(Q));
|
|
5549
5554
|
});
|
|
5550
|
-
},
|
|
5551
|
-
o.isTree ? ne(
|
|
5552
|
-
ue[
|
|
5555
|
+
}, U = g.records;
|
|
5556
|
+
o.isTree ? ne(U) : U.forEach((ue) => {
|
|
5557
|
+
ue[W] = $.has(re(ue));
|
|
5553
5558
|
});
|
|
5554
5559
|
const q = Tt();
|
|
5555
|
-
q.records =
|
|
5560
|
+
q.records = U, g.updateOption(q, {
|
|
5556
5561
|
clearColWidthCache: !1,
|
|
5557
5562
|
clearRowHeightCache: !1
|
|
5558
5563
|
}), o.heightMode === "auto" && (d.value = g.getAllRowsHeight());
|
|
5559
5564
|
const pe = g.getAllBodyCells(1);
|
|
5560
5565
|
for (let ue = 0; ue < pe.length; ue++) {
|
|
5561
5566
|
const Q = pe[ue][0];
|
|
5562
|
-
Q.originData[
|
|
5567
|
+
Q.originData[W] == !0 && (console.log(ue, Q, Q.originData[W]), g.setCellCheckboxState(0, ue + 1, !0));
|
|
5563
5568
|
}
|
|
5564
5569
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
5565
5570
|
}, Qt = (I) => {
|
|
@@ -5568,17 +5573,17 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5568
5573
|
if (!g) return;
|
|
5569
5574
|
const $ = gt();
|
|
5570
5575
|
if ($.length > 0) {
|
|
5571
|
-
|
|
5576
|
+
vt($);
|
|
5572
5577
|
return;
|
|
5573
5578
|
}
|
|
5574
|
-
const
|
|
5575
|
-
|
|
5579
|
+
const W = Tt();
|
|
5580
|
+
W.records = I || g.records, g.updateOption(W, {
|
|
5576
5581
|
clearColWidthCache: !1,
|
|
5577
5582
|
clearRowHeightCache: !1
|
|
5578
5583
|
}), o.heightMode === "auto" && (d.value = g.getAllRowsHeight()), w.value = 0;
|
|
5579
5584
|
}, Jt = () => {
|
|
5580
5585
|
g.renderWithRecreateCells();
|
|
5581
|
-
}, rt = P(() => o.editConfig.isAddBtn), Ka = P(() => o.editConfig.addBtnText || "添加"), ta = P(() => o.editConfig.isRemoveBtn), zo = P(() => o.editConfig.readonly),
|
|
5586
|
+
}, rt = P(() => o.editConfig.isAddBtn), Ka = P(() => o.editConfig.addBtnText || "添加"), ta = P(() => o.editConfig.isRemoveBtn), zo = P(() => o.editConfig.readonly), yt = P(() => o.isMultiple || ta.value), Yt = () => {
|
|
5582
5587
|
const I = o.modelValue || [];
|
|
5583
5588
|
return I.forEach(($) => {
|
|
5584
5589
|
$._i || ($._i = Fn());
|
|
@@ -5589,17 +5594,17 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5589
5594
|
});
|
|
5590
5595
|
const fn = P(() => {
|
|
5591
5596
|
const I = ($) => {
|
|
5592
|
-
const
|
|
5597
|
+
const W = [];
|
|
5593
5598
|
return $.forEach((ne) => {
|
|
5594
|
-
ne.children && ne.children.length > 0 ?
|
|
5595
|
-
}),
|
|
5599
|
+
ne.children && ne.children.length > 0 ? W.push(...I(ne.children)) : W.push(ne);
|
|
5600
|
+
}), W;
|
|
5596
5601
|
};
|
|
5597
5602
|
return I(o.columns);
|
|
5598
5603
|
}), en = () => {
|
|
5599
5604
|
const I = {};
|
|
5600
5605
|
I._i = Fn(), fn.value.forEach(($) => {
|
|
5601
|
-
const
|
|
5602
|
-
|
|
5606
|
+
const W = $.config?.valueRowKey || $.id || "";
|
|
5607
|
+
W && (I[W] = dn($.config?.defaultValue));
|
|
5603
5608
|
}), g && (g.addRecord(I), o.heightMode === "auto" && _t(), g.scrollToCell({
|
|
5604
5609
|
col: 0,
|
|
5605
5610
|
row: g.records.length
|
|
@@ -5619,12 +5624,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5619
5624
|
cancelButtonText: "取消",
|
|
5620
5625
|
type: "warning"
|
|
5621
5626
|
}).then(() => {
|
|
5622
|
-
const $ = g.records,
|
|
5623
|
-
_t(ne), i("update:modelValue", ne), I.forEach((
|
|
5627
|
+
const $ = g.records, W = new Set(I.map((U) => U._i)), ne = $.filter((U) => !W.has(U._i));
|
|
5628
|
+
_t(ne), i("update:modelValue", ne), I.forEach((U) => {
|
|
5624
5629
|
i("change", {
|
|
5625
5630
|
id: o.id,
|
|
5626
|
-
value:
|
|
5627
|
-
data:
|
|
5631
|
+
value: U,
|
|
5632
|
+
data: U,
|
|
5628
5633
|
formData: l,
|
|
5629
5634
|
tableData: ne,
|
|
5630
5635
|
type: "delete"
|
|
@@ -5664,10 +5669,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5664
5669
|
setRecords: Bo,
|
|
5665
5670
|
getRecords: Ua,
|
|
5666
5671
|
getSelection: gt,
|
|
5667
|
-
setSelection:
|
|
5672
|
+
setSelection: vt,
|
|
5668
5673
|
renderTable: Jt
|
|
5669
5674
|
}), (I, $) => {
|
|
5670
|
-
const
|
|
5675
|
+
const W = L("j-button"), ne = L("el-space"), U = L("el-pagination");
|
|
5671
5676
|
return _(), O("div", {
|
|
5672
5677
|
class: De(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
5673
5678
|
style: Re(f.value)
|
|
@@ -5682,13 +5687,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5682
5687
|
}, null, 512)], 4),
|
|
5683
5688
|
F("div", Jh, [e.isPage || !zo.value && (rt.value || ta.value) ? (_(), O("div", Xh, [
|
|
5684
5689
|
Y(ne, null, {
|
|
5685
|
-
default: N(() => [rt.value ? (_(), H(
|
|
5690
|
+
default: N(() => [rt.value ? (_(), H(W, {
|
|
5686
5691
|
key: 0,
|
|
5687
5692
|
type: "link",
|
|
5688
5693
|
label: Ka.value,
|
|
5689
5694
|
icon: "mdi:add",
|
|
5690
5695
|
onClick: en
|
|
5691
|
-
}, null, 8, ["label"])) : K("", !0), ta.value ? (_(), H(
|
|
5696
|
+
}, null, 8, ["label"])) : K("", !0), ta.value ? (_(), H(W, {
|
|
5692
5697
|
key: 1,
|
|
5693
5698
|
type: "link",
|
|
5694
5699
|
label: "删除",
|
|
@@ -5700,7 +5705,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5700
5705
|
_: 1
|
|
5701
5706
|
}),
|
|
5702
5707
|
$[2] || ($[2] = F("div", null, null, -1)),
|
|
5703
|
-
e.isPage ? (_(), H(
|
|
5708
|
+
e.isPage ? (_(), H(U, {
|
|
5704
5709
|
key: 0,
|
|
5705
5710
|
"current-page": Ya.value,
|
|
5706
5711
|
"onUpdate:currentPage": $[0] || ($[0] = (q) => Ya.value = q),
|
|
@@ -5714,7 +5719,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
5714
5719
|
],
|
|
5715
5720
|
total: e.pageTotal,
|
|
5716
5721
|
layout: "total, prev, pager, next,sizes",
|
|
5717
|
-
onChange:
|
|
5722
|
+
onChange: xt
|
|
5718
5723
|
}, null, 8, [
|
|
5719
5724
|
"current-page",
|
|
5720
5725
|
"page-size",
|
|
@@ -7699,7 +7704,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
7699
7704
|
const n = e.__vccOpts || e;
|
|
7700
7705
|
for (const [a, o] of t) n[a] = o;
|
|
7701
7706
|
return n;
|
|
7702
|
-
}, cg = /* @__PURE__ */ mc(sg, [["__scopeId", "data-v-
|
|
7707
|
+
}, cg = /* @__PURE__ */ mc(sg, [["__scopeId", "data-v-37f9a80b"]]), ug = he(cg), dg = ["innerHTML"], fg = {
|
|
7703
7708
|
key: 1,
|
|
7704
7709
|
class: "j-barcode-error"
|
|
7705
7710
|
}, hg = /* @__PURE__ */ se({
|
|
@@ -10738,26 +10743,26 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10738
10743
|
...re,
|
|
10739
10744
|
children: R(re.children)
|
|
10740
10745
|
} : re);
|
|
10741
|
-
const
|
|
10746
|
+
const xt = new Map(ye.map((re) => [re.id, re])), gt = [];
|
|
10742
10747
|
return be.forEach((re) => {
|
|
10743
|
-
const
|
|
10744
|
-
if (
|
|
10748
|
+
const vt = xt.get(re.id);
|
|
10749
|
+
if (vt) {
|
|
10745
10750
|
if (re.display) {
|
|
10746
|
-
let Qt =
|
|
10747
|
-
|
|
10748
|
-
...
|
|
10749
|
-
children: R(
|
|
10751
|
+
let Qt = vt;
|
|
10752
|
+
vt.children && vt.children.length > 0 && (Qt = {
|
|
10753
|
+
...vt,
|
|
10754
|
+
children: R(vt.children, re.children)
|
|
10750
10755
|
}), gt.push(Qt);
|
|
10751
10756
|
}
|
|
10752
|
-
|
|
10757
|
+
xt.delete(re.id);
|
|
10753
10758
|
}
|
|
10754
10759
|
}), ye.forEach((re) => {
|
|
10755
|
-
if (
|
|
10756
|
-
let
|
|
10757
|
-
re.children && re.children.length > 0 && (
|
|
10760
|
+
if (xt.has(re.id) && re.config?.display !== !1) {
|
|
10761
|
+
let vt = re;
|
|
10762
|
+
re.children && re.children.length > 0 && (vt = {
|
|
10758
10763
|
...re,
|
|
10759
10764
|
children: R(re.children)
|
|
10760
|
-
}), gt.push(
|
|
10765
|
+
}), gt.push(vt);
|
|
10761
10766
|
}
|
|
10762
10767
|
}), gt;
|
|
10763
10768
|
}, m = P(() => R(i.columns, ct.value)), k = P(() => yf(i.columns, (ye) => ye.config.label)), C = j(""), T = P(() => k.value.some((ye) => ye.config?.filter?.isSearchKeyword)), A = j(), E = j(!0), B = j([]), z = P(() => E.value ? "搜索全部" : `搜索范围:${k.value.filter((ye) => B.value.includes(ye.id)).map((ye) => ye.config?.label).join("、")}`), V = () => {
|
|
@@ -10798,10 +10803,10 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10798
10803
|
config: { type: "text" },
|
|
10799
10804
|
click: Dt
|
|
10800
10805
|
}
|
|
10801
|
-
], be = i.batchButtons.map((
|
|
10802
|
-
...
|
|
10806
|
+
], be = i.batchButtons.map((xt) => ({
|
|
10807
|
+
...xt,
|
|
10803
10808
|
click: () => {
|
|
10804
|
-
|
|
10809
|
+
xt.click && xt.click({
|
|
10805
10810
|
data: p.value,
|
|
10806
10811
|
openLayer: o
|
|
10807
10812
|
});
|
|
@@ -10830,18 +10835,18 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10830
10835
|
if (ye.length === 0) return [];
|
|
10831
10836
|
const be = J.value;
|
|
10832
10837
|
if (be <= 0) return ye;
|
|
10833
|
-
const
|
|
10834
|
-
if (
|
|
10835
|
-
const Yt = 24, fn = sn(
|
|
10838
|
+
const xt = Math.max(0, be - 4), gt = (yt, Yt) => yt.groupId || `__auto_${Yt}`, re = (yt) => {
|
|
10839
|
+
if (yt.config?.notLabel === !0 || !yt.label) return 28;
|
|
10840
|
+
const Yt = 24, fn = sn(yt.label || "") || 0, en = yt.config?.icon ? 18 : 0;
|
|
10836
10841
|
return Math.ceil(fn + Yt + en + 2);
|
|
10837
10842
|
};
|
|
10838
|
-
if (((
|
|
10843
|
+
if (((yt) => {
|
|
10839
10844
|
let Yt = 0, fn = null;
|
|
10840
|
-
return
|
|
10845
|
+
return yt.forEach((en, Ga) => {
|
|
10841
10846
|
const $o = gt(en, Ga);
|
|
10842
10847
|
fn !== null && (Yt += $o === fn ? -1 : 8), Yt += re(en), fn = $o;
|
|
10843
10848
|
}), Yt;
|
|
10844
|
-
})(ye) <=
|
|
10849
|
+
})(ye) <= xt) return ye;
|
|
10845
10850
|
const Qt = {
|
|
10846
10851
|
id: "__table_panel_more__",
|
|
10847
10852
|
label: "",
|
|
@@ -10852,12 +10857,12 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10852
10857
|
children: []
|
|
10853
10858
|
}, _t = 28, Jt = [];
|
|
10854
10859
|
let rt = 0, Ka = null;
|
|
10855
|
-
for (let
|
|
10856
|
-
const Yt = ye[
|
|
10860
|
+
for (let yt = 0; yt < ye.length; yt++) {
|
|
10861
|
+
const Yt = ye[yt], fn = gt(Yt, yt);
|
|
10857
10862
|
let en = rt;
|
|
10858
10863
|
Ka !== null && (en += fn === Ka ? -1 : 8), en += re(Yt);
|
|
10859
|
-
const Ga = ye.length - (
|
|
10860
|
-
if (en + Ga <=
|
|
10864
|
+
const Ga = ye.length - (yt + 1) > 0 ? (en > 0 ? 8 : 0) + _t : 0;
|
|
10865
|
+
if (en + Ga <= xt)
|
|
10861
10866
|
Jt.push(Yt), rt = en, Ka = fn;
|
|
10862
10867
|
else break;
|
|
10863
10868
|
}
|
|
@@ -10875,13 +10880,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10875
10880
|
const be = {};
|
|
10876
10881
|
ye && (ie = ye), ie && (be.query = ie);
|
|
10877
10882
|
try {
|
|
10878
|
-
const
|
|
10879
|
-
|
|
10883
|
+
const xt = {};
|
|
10884
|
+
xt.rel = me.value, xt.cond = (M.value?.getSearchFields?.() || le.value).filter((re) => re.value !== void 0 && re.value !== null && re.value !== "" || ["empty", "not_empty"].includes(re.method)).map((re) => ({
|
|
10880
10885
|
field: re.field,
|
|
10881
10886
|
method: re.method,
|
|
10882
10887
|
value: re.value,
|
|
10883
10888
|
type: re.type
|
|
10884
|
-
})),
|
|
10889
|
+
})), xt.cond.length > 0 ? X.value = !0 : X.value = !1, be.filter = xt;
|
|
10885
10890
|
const gt = dt.value.map((re) => re.value + " " + re.sord).join(",");
|
|
10886
10891
|
if (C.value && (be.keyword = {
|
|
10887
10892
|
value: C.value,
|
|
@@ -10914,13 +10919,13 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10914
10919
|
await Tt();
|
|
10915
10920
|
}, ea = (ye) => {
|
|
10916
10921
|
l("ready", ye);
|
|
10917
|
-
}, Fi = ({ selections: ye, record: be, checked:
|
|
10922
|
+
}, Fi = ({ selections: ye, record: be, checked: xt, isMultiple: gt }) => {
|
|
10918
10923
|
let re = [];
|
|
10919
10924
|
if (!i.isMultiple) {
|
|
10920
10925
|
p.value = ye, l("select", {
|
|
10921
10926
|
selections: ye,
|
|
10922
10927
|
record: be,
|
|
10923
|
-
checked:
|
|
10928
|
+
checked: xt,
|
|
10924
10929
|
isMultiple: gt
|
|
10925
10930
|
});
|
|
10926
10931
|
return;
|
|
@@ -10928,16 +10933,16 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10928
10933
|
if (v.value) re = ye;
|
|
10929
10934
|
else if (!i.rowKey) re = ye;
|
|
10930
10935
|
else {
|
|
10931
|
-
const
|
|
10936
|
+
const vt = new Map(ye.map((_t) => [w(_t), _t])), Qt = new Map(p.value.map((_t) => [w(_t), _t]));
|
|
10932
10937
|
s.forEach((_t) => {
|
|
10933
10938
|
const Jt = w(_t);
|
|
10934
|
-
|
|
10939
|
+
vt.has(Jt) ? Qt.set(Jt, vt.get(Jt)) : Qt.delete(Jt);
|
|
10935
10940
|
}), re = Array.from(Qt.values());
|
|
10936
10941
|
}
|
|
10937
10942
|
p.value = re, l("select", {
|
|
10938
10943
|
selections: re,
|
|
10939
10944
|
record: be,
|
|
10940
|
-
checked:
|
|
10945
|
+
checked: xt,
|
|
10941
10946
|
isMultiple: gt
|
|
10942
10947
|
}), g.value && re.length === 0 ? (g.value = !1, r.value && r.value.setRecords(s)) : g.value && re.length > 0 && r.value && (r.value.setRecords(re), r.value.setSelection?.(re));
|
|
10943
10948
|
}, Bo = () => p.value || [], Ua = (ye) => {
|
|
@@ -10955,7 +10960,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10955
10960
|
},
|
|
10956
10961
|
getTableRef: Ya
|
|
10957
10962
|
}), (ye, be) => {
|
|
10958
|
-
const
|
|
10963
|
+
const xt = L("j-buttons"), gt = L("j-icon"), re = L("el-popover"), vt = L("el-tooltip"), Qt = L("el-input"), _t = L("j-button"), Jt = L("j-table");
|
|
10959
10964
|
return _(), O("div", { class: De(["j-table-panel-wrapper", {
|
|
10960
10965
|
fullscreen: Je.value,
|
|
10961
10966
|
"no-padding": e.noPadding || Je.value
|
|
@@ -10963,7 +10968,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10963
10968
|
ref_key: "topLeftRef",
|
|
10964
10969
|
ref: Zt,
|
|
10965
10970
|
class: "j-table-panel-top-left"
|
|
10966
|
-
}, [Y(
|
|
10971
|
+
}, [Y(xt, { list: ee.value }, null, 8, ["list"])], 512), F("div", Cy, [
|
|
10967
10972
|
T.value && !x.value ? (_(), O("div", Sy, [Y(Qt, {
|
|
10968
10973
|
modelValue: C.value,
|
|
10969
10974
|
"onUpdate:modelValue": be[2] || (be[2] = (rt) => C.value = rt),
|
|
@@ -10975,7 +10980,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
10975
10980
|
onClear: Me
|
|
10976
10981
|
}, {
|
|
10977
10982
|
prefix: N(() => [Y(gt, { icon: "mdi:search" })]),
|
|
10978
|
-
suffix: N(() => [Y(
|
|
10983
|
+
suffix: N(() => [Y(vt, {
|
|
10979
10984
|
placement: "bottom",
|
|
10980
10985
|
content: z.value
|
|
10981
10986
|
}, {
|
|
@@ -11047,7 +11052,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11047
11052
|
])]),
|
|
11048
11053
|
_: 1
|
|
11049
11054
|
}, 8, ["visible"])) : K("", !0),
|
|
11050
|
-
e.showOrderButton && !x.value ? (_(), H(
|
|
11055
|
+
e.showOrderButton && !x.value ? (_(), H(vt, {
|
|
11051
11056
|
key: 2,
|
|
11052
11057
|
placement: "bottom",
|
|
11053
11058
|
content: G(a)("排序")
|
|
@@ -11077,7 +11082,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11077
11082
|
}, 8, ["visible"])])]),
|
|
11078
11083
|
_: 1
|
|
11079
11084
|
}, 8, ["content"])) : K("", !0),
|
|
11080
|
-
e.showColumnButton && !x.value ? (_(), H(
|
|
11085
|
+
e.showColumnButton && !x.value ? (_(), H(vt, {
|
|
11081
11086
|
key: 3,
|
|
11082
11087
|
placement: "bottom",
|
|
11083
11088
|
content: G(a)("显示字段")
|
|
@@ -11107,7 +11112,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11107
11112
|
}, 8, ["visible"])])]),
|
|
11108
11113
|
_: 1
|
|
11109
11114
|
}, 8, ["content"])) : K("", !0),
|
|
11110
|
-
e.showRefreshButton && !x.value ? (_(), H(
|
|
11115
|
+
e.showRefreshButton && !x.value ? (_(), H(vt, {
|
|
11111
11116
|
key: 4,
|
|
11112
11117
|
placement: "bottom",
|
|
11113
11118
|
content: G(a)("刷新")
|
|
@@ -11119,7 +11124,7 @@ var Jh = { class: "j-table-footer" }, Xh = {
|
|
|
11119
11124
|
})]),
|
|
11120
11125
|
_: 1
|
|
11121
11126
|
}, 8, ["content"])) : K("", !0),
|
|
11122
|
-
e.showFullscreenButton ? (_(), H(
|
|
11127
|
+
e.showFullscreenButton ? (_(), H(vt, {
|
|
11123
11128
|
key: 5,
|
|
11124
11129
|
placement: "bottom",
|
|
11125
11130
|
content: Je.value ? G(a)("退出全屏") : G(a)("全屏")
|
|
@@ -13066,7 +13071,7 @@ var Qy = /* @__PURE__ */ se({
|
|
|
13066
13071
|
style: Re(r.value)
|
|
13067
13072
|
}, null, 4)]));
|
|
13068
13073
|
}
|
|
13069
|
-
}), Vm = /* @__PURE__ */ mc(Fm, [["__scopeId", "data-v-
|
|
13074
|
+
}), Vm = /* @__PURE__ */ mc(Fm, [["__scopeId", "data-v-179ac616"]]), Nm = he(Vm), Wm = {
|
|
13070
13075
|
key: 0,
|
|
13071
13076
|
class: "j-map-loading"
|
|
13072
13077
|
}, Um = /* @__PURE__ */ se({
|
|
@@ -14650,7 +14655,7 @@ function Ub(e) {
|
|
|
14650
14655
|
y: i.start.y + (i.end.y - i.start.y) * l
|
|
14651
14656
|
};
|
|
14652
14657
|
}
|
|
14653
|
-
function
|
|
14658
|
+
function wt(e) {
|
|
14654
14659
|
return Ut(e) ? Ub(e) : Wb(e);
|
|
14655
14660
|
}
|
|
14656
14661
|
function Vn(e, t, n) {
|
|
@@ -14714,7 +14719,7 @@ function $c(e, t, n, a) {
|
|
|
14714
14719
|
};
|
|
14715
14720
|
on(s) && (h = s), r.connection = n.connect(f, d, h, p);
|
|
14716
14721
|
}), this.start = function(l, r, s, c) {
|
|
14717
|
-
on(s) || (c = s, s =
|
|
14722
|
+
on(s) || (c = s, s = wt(r)), t.init(l, "connect", {
|
|
14718
14723
|
autoActivate: c,
|
|
14719
14724
|
data: {
|
|
14720
14725
|
shape: r,
|
|
@@ -16463,7 +16468,7 @@ or.$inject = ["eventBus", "connectionDocking"];
|
|
|
16463
16468
|
function fu() {
|
|
16464
16469
|
}
|
|
16465
16470
|
fu.prototype.layoutConnection = function(e, t) {
|
|
16466
|
-
return t = t || {}, [t.connectionStart ||
|
|
16471
|
+
return t = t || {}, [t.connectionStart || wt(t.source || e.source), t.connectionEnd || wt(t.target || e.target)];
|
|
16467
16472
|
};
|
|
16468
16473
|
var Xo = 20, Pw = 5, gi = Math.round, ps = 20, Ow = {
|
|
16469
16474
|
"h:h": 20,
|
|
@@ -16577,12 +16582,12 @@ function Dw(e, t, n) {
|
|
|
16577
16582
|
}
|
|
16578
16583
|
function Fw(e, t, n, a, o) {
|
|
16579
16584
|
var i = tf(o && o.preferredLayouts || [], "straight")[0] || "h:h", l = Vn(e, t, Ow[i] || 0), r = Kw(l, i);
|
|
16580
|
-
n = n ||
|
|
16585
|
+
n = n || wt(e), a = a || wt(t);
|
|
16581
16586
|
var s = r.split(":");
|
|
16582
16587
|
return Dw(ys(n, e, s[0], Jw(l)), ys(a, t, s[1], l), r);
|
|
16583
16588
|
}
|
|
16584
16589
|
function Vw(e, t, n, a, o, i) {
|
|
16585
|
-
tt(n) && (o = n, i = a, n =
|
|
16590
|
+
tt(n) && (o = n, i = a, n = wt(e), a = wt(t)), i = je({ preferredLayouts: [] }, i), o = o || [];
|
|
16586
16591
|
var l = i.preferredLayouts.indexOf("straight") !== -1 && Ww(e, t, n, a, i);
|
|
16587
16592
|
return l || (l = i.connectionEnd && Yw(t, e, a, o), l) || (l = i.connectionStart && Uw(e, t, n, o), l) ? l : !i.connectionStart && !i.connectionEnd && o && o.length ? o : Fw(e, t, n, a, i);
|
|
16588
16593
|
}
|
|
@@ -16733,7 +16738,7 @@ rr.prototype.layoutConnection = function(e, t) {
|
|
|
16733
16738
|
return l === void 0 && (i = qo(o && o[0], n), l = qo(o && o[o.length - 1], a)), i || (i = qo(o && o[0], n)), l || (l = qo(o && o[o.length - 1], a)), ia(e, "myline") && (n === a ? r = { preferredLayouts: Xw(n, e) } : ia(n, "gatewayAnd") || ia(n, "gatewayXor") || ia(n, "gatewayInclusive") ? r = { preferredLayouts: ["v:h"] } : ia(a, "gatewayAnd") || ia(a, "gatewayXor") || ia(a, "gatewayInclusive") ? r = { preferredLayouts: ["h:v"] } : r = { preferredLayouts: ["h:h"] }), r && (r = pt(r, t), s = gu(Vw(n, a, i, l, o, r))), s || [i, l];
|
|
16734
16739
|
};
|
|
16735
16740
|
function qo(e, t) {
|
|
16736
|
-
return e ? e.original || e :
|
|
16741
|
+
return e ? e.original || e : wt(t);
|
|
16737
16742
|
}
|
|
16738
16743
|
function Xw(e, t) {
|
|
16739
16744
|
const { waypoints: n } = t, a = n && n.length && Vn(n[0], e);
|
|
@@ -16812,7 +16817,7 @@ function Zo(e, t) {
|
|
|
16812
16817
|
function rn(e, t) {
|
|
16813
16818
|
return e.businessObject.fillColor || t || "var(--j-color-bg-container)";
|
|
16814
16819
|
}
|
|
16815
|
-
function
|
|
16820
|
+
function bt(e, t) {
|
|
16816
16821
|
return e.businessObject.strokeColor || t || "var(--j-color-text)";
|
|
16817
16822
|
}
|
|
16818
16823
|
function Qw(e) {
|
|
@@ -17088,7 +17093,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17088
17093
|
box: S,
|
|
17089
17094
|
align: D,
|
|
17090
17095
|
padding: 5,
|
|
17091
|
-
style: { fill:
|
|
17096
|
+
style: { fill: bt(S, s) }
|
|
17092
17097
|
});
|
|
17093
17098
|
}
|
|
17094
17099
|
function k(M, S) {
|
|
@@ -17101,7 +17106,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17101
17106
|
return R(M, pi(S), {
|
|
17102
17107
|
box: D,
|
|
17103
17108
|
fitBox: !0,
|
|
17104
|
-
style: pt({}, o.getExternalStyle(), { fill:
|
|
17109
|
+
style: pt({}, o.getExternalStyle(), { fill: bt(S, s) })
|
|
17105
17110
|
});
|
|
17106
17111
|
}
|
|
17107
17112
|
function C(M, S, D) {
|
|
@@ -17264,7 +17269,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17264
17269
|
y: X
|
|
17265
17270
|
} }), {
|
|
17266
17271
|
strokeWidth: 0,
|
|
17267
|
-
fill:
|
|
17272
|
+
fill: bt(S, c[S.type]?.iconFill || S.iconFill)
|
|
17268
17273
|
});
|
|
17269
17274
|
}
|
|
17270
17275
|
const V = {
|
|
@@ -17274,7 +17279,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17274
17279
|
startEvent(M, S) {
|
|
17275
17280
|
const D = {
|
|
17276
17281
|
fill: rn(S, c.startEvent?.fill || S.fill),
|
|
17277
|
-
stroke:
|
|
17282
|
+
stroke: bt(S, c.startEvent?.stroke || S.stroke),
|
|
17278
17283
|
strokeWidth: Zo(S, c.startEvent?.strokeWidth || S.strokeWidth)
|
|
17279
17284
|
}, X = f("event")(M, S, D);
|
|
17280
17285
|
return z(M, S, 18, 18), X;
|
|
@@ -17283,7 +17288,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17283
17288
|
const D = f("event")(M, S, {
|
|
17284
17289
|
strokeWidth: Zo(S, c.endEvent?.strokeWidth || S.strokeWidth || 4),
|
|
17285
17290
|
fill: rn(S, c.endEvent?.fill || S.fill),
|
|
17286
|
-
stroke:
|
|
17291
|
+
stroke: bt(S, c.endEvent?.stroke || S.stroke)
|
|
17287
17292
|
});
|
|
17288
17293
|
return z(M, S, 18, 18), D;
|
|
17289
17294
|
},
|
|
@@ -17292,7 +17297,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17292
17297
|
fillOpacity: Gi,
|
|
17293
17298
|
strokeWidth: Zo(S, c[S.type]?.strokeWidth || S.strokeWidth || 4),
|
|
17294
17299
|
fill: rn(S, c[S.type]?.fill || S.fill),
|
|
17295
|
-
stroke:
|
|
17300
|
+
stroke: bt(S, c[S.type]?.stroke || S.stroke)
|
|
17296
17301
|
};
|
|
17297
17302
|
return y(M, S.width, S.height, D);
|
|
17298
17303
|
},
|
|
@@ -17309,8 +17314,8 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17309
17314
|
}
|
|
17310
17315
|
}), {
|
|
17311
17316
|
strokeWidth: 1,
|
|
17312
|
-
fill:
|
|
17313
|
-
stroke:
|
|
17317
|
+
fill: bt(S, c[S.type]?.iconFill || S.iconFill),
|
|
17318
|
+
stroke: bt(S, c[S.type]?.iconFill || S.iconFill)
|
|
17314
17319
|
}), D;
|
|
17315
17320
|
},
|
|
17316
17321
|
gatewayXor(M, S) {
|
|
@@ -17326,16 +17331,16 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17326
17331
|
}
|
|
17327
17332
|
}), {
|
|
17328
17333
|
strokeWidth: 1,
|
|
17329
|
-
fill:
|
|
17330
|
-
stroke:
|
|
17334
|
+
fill: bt(S, c[S.type]?.iconFill || S.iconFill),
|
|
17335
|
+
stroke: bt(S, c[S.type]?.iconFill || S.iconFill)
|
|
17331
17336
|
}), D;
|
|
17332
17337
|
},
|
|
17333
17338
|
gatewayInclusive(M, S) {
|
|
17334
17339
|
const D = f("gateway")(M, S);
|
|
17335
17340
|
return v(M, S.width, S.height, S.height * 0.24, {
|
|
17336
17341
|
strokeWidth: 2.5,
|
|
17337
|
-
fill:
|
|
17338
|
-
stroke:
|
|
17342
|
+
fill: bt(S, r),
|
|
17343
|
+
stroke: bt(S, c[S.type]?.iconFill || S.iconFill)
|
|
17339
17344
|
}), D;
|
|
17340
17345
|
},
|
|
17341
17346
|
activity(M, S, D) {
|
|
@@ -17344,7 +17349,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17344
17349
|
task(M, S) {
|
|
17345
17350
|
const D = {
|
|
17346
17351
|
fill: rn(S, r),
|
|
17347
|
-
stroke:
|
|
17352
|
+
stroke: bt(S, s)
|
|
17348
17353
|
}, X = f("activity")(M, S, D);
|
|
17349
17354
|
return m(M, S, "center-middle"), C(M, S), X;
|
|
17350
17355
|
},
|
|
@@ -17356,21 +17361,21 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17356
17361
|
} }), {
|
|
17357
17362
|
strokeWidth: 0.5,
|
|
17358
17363
|
fill: rn(S, r),
|
|
17359
|
-
stroke:
|
|
17364
|
+
stroke: bt(S, s)
|
|
17360
17365
|
}), x(M, n.getScaledPath("TASK_TYPE_USER_2", { abspos: {
|
|
17361
17366
|
x: X,
|
|
17362
17367
|
y: le
|
|
17363
17368
|
} }), {
|
|
17364
17369
|
strokeWidth: 0.5,
|
|
17365
17370
|
fill: rn(S, r),
|
|
17366
|
-
stroke:
|
|
17371
|
+
stroke: bt(S, s)
|
|
17367
17372
|
}), x(M, n.getScaledPath("TASK_TYPE_USER_3", { abspos: {
|
|
17368
17373
|
x: X,
|
|
17369
17374
|
y: le
|
|
17370
17375
|
} }), {
|
|
17371
17376
|
strokeWidth: 0.5,
|
|
17372
|
-
fill:
|
|
17373
|
-
stroke:
|
|
17377
|
+
fill: bt(S, s),
|
|
17378
|
+
stroke: bt(S, s)
|
|
17374
17379
|
}), D;
|
|
17375
17380
|
},
|
|
17376
17381
|
scriptTask(M, S) {
|
|
@@ -17380,14 +17385,14 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17380
17385
|
y: 20
|
|
17381
17386
|
} }), {
|
|
17382
17387
|
strokeWidth: 1,
|
|
17383
|
-
stroke:
|
|
17388
|
+
stroke: bt(S, s)
|
|
17384
17389
|
}), D;
|
|
17385
17390
|
},
|
|
17386
17391
|
SubProcessMarker(M, S) {
|
|
17387
17392
|
bn(b(M, 14, 14, 0, {
|
|
17388
17393
|
strokeWidth: 1,
|
|
17389
17394
|
fill: rn(S, r),
|
|
17390
|
-
stroke:
|
|
17395
|
+
stroke: bt(S, s)
|
|
17391
17396
|
}), S.width / 2 - 7.5, S.height - 20), w("sub-process", M, n.getScaledPath("MARKER_SUB_PROCESS", {
|
|
17392
17397
|
xScaleFactor: 1.5,
|
|
17393
17398
|
yScaleFactor: 1.5,
|
|
@@ -17399,13 +17404,13 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17399
17404
|
}
|
|
17400
17405
|
}), {
|
|
17401
17406
|
fill: rn(S, r),
|
|
17402
|
-
stroke:
|
|
17407
|
+
stroke: bt(S, s)
|
|
17403
17408
|
});
|
|
17404
17409
|
},
|
|
17405
17410
|
subprocess(M, S, D) {
|
|
17406
17411
|
D = pt({
|
|
17407
17412
|
fill: rn(S, r),
|
|
17408
|
-
stroke:
|
|
17413
|
+
stroke: bt(S, s)
|
|
17409
17414
|
}, D);
|
|
17410
17415
|
const X = f("activity")(M, S, D);
|
|
17411
17416
|
return m(M, S, "center-middle"), C(M, S, ["SubProcessMarker"]), X;
|
|
@@ -17414,7 +17419,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17414
17419
|
return k(M, S);
|
|
17415
17420
|
},
|
|
17416
17421
|
myline(M, S) {
|
|
17417
|
-
const D = rn(S, i.lineStroke || r), X =
|
|
17422
|
+
const D = rn(S, i.lineStroke || r), X = bt(S, i.lineStroke || s);
|
|
17418
17423
|
return g(M, S.waypoints, {
|
|
17419
17424
|
markerEnd: E(M, "sequenceflow-end", D, X),
|
|
17420
17425
|
stroke: X
|
|
@@ -17424,7 +17429,7 @@ function ba(e, t, n, a, o, i, l) {
|
|
|
17424
17429
|
const D = {
|
|
17425
17430
|
strokeWidth: Zo(S, c[S.type]?.strokeWidth || S.strokeWidth || 1),
|
|
17426
17431
|
fill: rn(S, c[S.type]?.fill || S.fill),
|
|
17427
|
-
stroke:
|
|
17432
|
+
stroke: bt(S, c[S.type]?.stroke || S.stroke)
|
|
17428
17433
|
}, X = b(M, S.width, S.height, S.radius || yl, D);
|
|
17429
17434
|
return m(M, S, "center-middle"), C(M, S), z(M, S, S.iconX, S.iconY), X;
|
|
17430
17435
|
}
|
|
@@ -17735,7 +17740,7 @@ function ws(e, t) {
|
|
|
17735
17740
|
}
|
|
17736
17741
|
function _x(e, t, n) {
|
|
17737
17742
|
const a = e.waypoint;
|
|
17738
|
-
return !a || a.length < 2 ? [
|
|
17743
|
+
return !a || a.length < 2 ? [wt(t), wt(n)] : a.map((o) => ({
|
|
17739
17744
|
x: o.x,
|
|
17740
17745
|
y: o.y
|
|
17741
17746
|
}));
|
|
@@ -18496,7 +18501,7 @@ function Mu(e) {
|
|
|
18496
18501
|
}
|
|
18497
18502
|
function Ps(e, t, n) {
|
|
18498
18503
|
var a, o;
|
|
18499
|
-
return e.original ? e.original : (a =
|
|
18504
|
+
return e.original ? e.original : (a = wt(t), o = Mu(n), ur(e, o, a[o]));
|
|
18500
18505
|
}
|
|
18501
18506
|
function Au(e, t, n, a, o, i) {
|
|
18502
18507
|
var l = e.get("connectionDocking", !1);
|
|
@@ -18743,10 +18748,10 @@ An.prototype.drawPreview = function(e, t, n) {
|
|
|
18743
18748
|
connectionStart: s,
|
|
18744
18749
|
connectionEnd: c,
|
|
18745
18750
|
waypoints: n.waypoints || h.waypoints
|
|
18746
|
-
})), (!h.waypoints || !h.waypoints.length) && (h.waypoints = [i ?
|
|
18751
|
+
})), (!h.waypoints || !h.waypoints.length) && (h.waypoints = [i ? wt(i) : s, l ? wt(l) : c]), this._connectionDocking && (i || l) && !f && (h.waypoints = this._connectionDocking.getCroppedWaypoints(h, i, l)), this._graphicsFactory.drawConnection(a, h, { stroke: "var(--element-dragger-color)" });
|
|
18747
18752
|
};
|
|
18748
18753
|
An.prototype.drawNoopPreview = function(e, t) {
|
|
18749
|
-
var n = t.source, a = t.target, o = t.connectionStart ||
|
|
18754
|
+
var n = t.source, a = t.target, o = t.connectionStart || wt(n), i = t.connectionEnd || wt(a), l = this.cropWaypoints(o, i, n, a);
|
|
18750
18755
|
Ve(e, this.createNoopConnection(l[0], l[1]));
|
|
18751
18756
|
};
|
|
18752
18757
|
An.prototype.cropWaypoints = function(e, t, n, a) {
|
|
@@ -20119,7 +20124,7 @@ function Y0(e, t) {
|
|
|
20119
20124
|
return e.x !== t.x || e.y !== t.y || e.width !== t.width || e.height !== t.height;
|
|
20120
20125
|
}
|
|
20121
20126
|
function Nu(e, t) {
|
|
20122
|
-
var n =
|
|
20127
|
+
var n = wt(e), a = et(e), o = {
|
|
20123
20128
|
x: n.x,
|
|
20124
20129
|
y: n.y
|
|
20125
20130
|
};
|
|
@@ -20542,7 +20547,7 @@ Ho.prototype.getSnapTargets = function(e, t) {
|
|
|
20542
20547
|
});
|
|
20543
20548
|
};
|
|
20544
20549
|
function Uu(e, t) {
|
|
20545
|
-
var n =
|
|
20550
|
+
var n = wt(e), a = et(e), o = {
|
|
20546
20551
|
x: n.x,
|
|
20547
20552
|
y: n.y
|
|
20548
20553
|
};
|
|
@@ -20763,7 +20768,7 @@ function p_(e, t) {
|
|
|
20763
20768
|
var a = t.defaultDistance || 50, o = t.direction || "e", i = t.filter, l = t.getWeight || n, r = t.maxDistance || h_, s = t.reference || "start";
|
|
20764
20769
|
i || (i = g_);
|
|
20765
20770
|
function c(d, h) {
|
|
20766
|
-
return o === "n" ? s === "start" ? et(d).top - et(h).bottom : s === "center" ? et(d).top -
|
|
20771
|
+
return o === "n" ? s === "start" ? et(d).top - et(h).bottom : s === "center" ? et(d).top - wt(h).y : et(d).top - et(h).top : o === "w" ? s === "start" ? et(d).left - et(h).right : s === "center" ? et(d).left - wt(h).x : et(d).left - et(h).left : o === "s" ? s === "start" ? et(h).top - et(d).bottom : s === "center" ? wt(h).y - et(d).bottom : et(h).bottom - et(d).bottom : s === "start" ? et(h).left - et(d).right : s === "center" ? wt(h).x - et(d).right : et(h).right - et(d).right;
|
|
20767
20772
|
}
|
|
20768
20773
|
var u = e.incoming.filter(i).map(function(d) {
|
|
20769
20774
|
var h = l(d), p = h < 0 ? c(d.source, e) : c(e, d.source);
|
|
@@ -20819,7 +20824,7 @@ Yu.$inject = [
|
|
|
20819
20824
|
];
|
|
20820
20825
|
function y_(e, t, n) {
|
|
20821
20826
|
n || (n = {});
|
|
20822
|
-
var a = n.defaultDistance || 50, o =
|
|
20827
|
+
var a = n.defaultDistance || 50, o = wt(e);
|
|
20823
20828
|
return {
|
|
20824
20829
|
x: et(e).right + a + t.width / 2,
|
|
20825
20830
|
y: o.y
|
|
@@ -20881,7 +20886,7 @@ function R_(e, t) {
|
|
|
20881
20886
|
return T_(e, t);
|
|
20882
20887
|
}
|
|
20883
20888
|
function T_(e, t) {
|
|
20884
|
-
const n = et(e), a =
|
|
20889
|
+
const n = et(e), a = wt(e), o = p_(e, { filter: (r) => w_(r, "myline") }), i = 30, l = 80;
|
|
20885
20890
|
return k_(e, t, {
|
|
20886
20891
|
x: n.right + o + t.width / 2,
|
|
20887
20892
|
y: a.y + M_("left", l)
|