sd-render 1.0.16 → 1.0.17
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/package.json +1 -1
- package/{sd-lib-DwnJET61.js → sd-lib-BlH6aVvz.js} +570 -569
- package/{sd-render-Dx_T8Qqr.js → sd-render-Bh_daYMW.js} +457 -499
- package/sd-render.es.js +2 -2
- package/sd-render.style.css +1 -1
- package/types/src/components/form-render/SdFormRender.vue.d.ts +4 -0
- package/types/src/components/sdwidget/SdCrudForm.vue.d.ts +7 -0
- package/types/src/components/sdwidget/SdCrudSelect.vue.d.ts +4 -0
- package/types/src/components/sdwidget/SdCrudSelectSubForm.vue.d.ts +4 -0
- package/types/src/types/Connect.d.ts +11 -0
- package/types/src/types/SdForm.d.ts +10 -2
- package/types/src/types/User.d.ts +4 -0
- package/types/src/types/site-config.d.ts +20 -0
- package/types/src/utils/Crypto.d.ts +10 -4
- package/types/src/utils/form-script.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as I, inject as N, createElementBlock as h, openBlock as o, normalizeClass as
|
|
2
|
-
import { a3 as R, a4 as
|
|
3
|
-
import { ElTag as
|
|
1
|
+
import { defineComponent as I, inject as N, createElementBlock as h, openBlock as o, normalizeClass as v, renderSlot as Fe, createBlock as d, createCommentVNode as b, withCtx as a, createTextVNode as L, toDisplayString as w, getCurrentInstance as li, withDirectives as K, Fragment as F, renderList as T, resolveDynamicComponent as B, vShow as Q, resolveComponent as J, normalizeStyle as j, createSlots as Z, createElementVNode as S, createVNode as m, mergeProps as De, computed as Y, useCssVars as Te, withModifiers as z, ref as O, nextTick as ni } from "vue";
|
|
2
|
+
import { a3 as R, a4 as si, a as U, a5 as Ve, a6 as D, a7 as C, a8 as te, a9 as pe, aa as ri, ab as ye, ac as di, ad as ai, ae as fi, af as ui, ag as ze, ah as pi, ai as mi, aj as hi, ak as ci, al as Ue, am as ge, an as bi, ao as gi, ap as Fi, o as Be, A as yi, g as vi, b as wi, c as Ci, i as Ae, y as se, d as me, w as Ii, B as Si, e as Ri, D as Mi, aq as oe, m as ve, z as Oi, C as ki, _ as Pi, ar as $i, as as Li, at as Ei, au as ji, av as Di, aw as Oe, V as Ti, ax as Vi, ay as zi, j as Ui } from "./sd-lib-BlH6aVvz.js";
|
|
3
|
+
import { ElTag as we, ElAffix as Bi, ElCard as Ne, ElTooltip as ee, ElIcon as re, ElCollapse as Ai, ElCollapseItem as Ni, ElCol as de, ElRow as ae, ElScrollbar as Hi, ElSpace as Wi, ElButton as G, ElTabs as qi, ElTabPane as Gi, ElAlert as He, ElFormItem as We, ElInput as fe, ElAvatar as Ji, ElDialog as qe, ElButtonGroup as Zi, ElPopconfirm as ue, ElBadge as Ki, ElCheckboxGroup as Qi, ElCheckboxButton as Yi, ElCheckbox as Xi, ElColorPicker as _i, ElDatePicker as Ce, ElDivider as Ge, ElDropdown as xi, ElDropdownMenu as et, ElDropdownItem as it, ElUpload as Ie, ElAutocomplete as tt, ElImage as Je, ElLink as ot, ElInputNumber as lt, ElProgress as nt, ElRadioGroup as Ze, ElRadioButton as st, ElRadio as Ke, ElRate as rt, ElSegmented as dt, ElSelect as at, ElOption as ft, ElSlider as ut, ElStatistic as pt, ElSteps as mt, ElStep as ht, ElSwitch as ct, ElInputTag as bt, ElText as gt, ElTimePicker as Qe, ElTimeSelect as Ft, ElTour as yt, ElTourStep as vt, ElForm as wt } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/index";
|
|
5
5
|
import "element-plus/es/components/affix/style/index";
|
|
6
6
|
import "element-plus/es/components/card/style/index";
|
|
@@ -13,7 +13,7 @@ import "element-plus/es/components/col/style/index";
|
|
|
13
13
|
import "element-plus/es/components/scrollbar/style/index";
|
|
14
14
|
import "element-plus/es/components/space/style/index";
|
|
15
15
|
import "element-plus/es/components/button/style/index";
|
|
16
|
-
import { ElMessage as
|
|
16
|
+
import { ElMessage as X, ElMessageBox as x, ElNotification as Ye, ElLoading as Ct } from "element-plus";
|
|
17
17
|
import "element-plus/es/components/tabs/style/index";
|
|
18
18
|
import "element-plus/es/components/tab-pane/style/index";
|
|
19
19
|
import "element-plus/es/components/tag/style/index";
|
|
@@ -29,7 +29,7 @@ import "element-plus/es/components/checkbox-group/style/index";
|
|
|
29
29
|
import "element-plus/es/components/checkbox/style/index";
|
|
30
30
|
import "element-plus/es/components/checkbox-button/style/index";
|
|
31
31
|
import "element-plus/es/components/color-picker/style/index";
|
|
32
|
-
import
|
|
32
|
+
import ne from "axios";
|
|
33
33
|
import "element-plus/es/components/date-picker/style/index";
|
|
34
34
|
import le from "dayjs";
|
|
35
35
|
import "element-plus/es/components/divider/style/index";
|
|
@@ -65,9 +65,8 @@ import "element-plus/es/components/form-item/style/index";
|
|
|
65
65
|
import "element-plus/es/components/time-select/style/index";
|
|
66
66
|
import "element-plus/es/components/tour/style/index";
|
|
67
67
|
import "element-plus/es/components/tour-step/style/index";
|
|
68
|
-
import { useRoute as
|
|
68
|
+
import { useRoute as Xe, useRouter as _e } from "vue-router";
|
|
69
69
|
import "element-plus/es/components/form/style/index";
|
|
70
|
-
import { enc as be, AES as Ot, pad as kt, mode as Pt } from "crypto-ts";
|
|
71
70
|
import "element-plus/es/components/timeline-item/style/index";
|
|
72
71
|
import "element-plus/es/components/popover/style/index";
|
|
73
72
|
import "element-plus/es/components/table/style/index";
|
|
@@ -86,25 +85,26 @@ import "element-plus/es/components/carousel-item/style/index";
|
|
|
86
85
|
import "element-plus/es/components/menu/style/index";
|
|
87
86
|
import "element-plus/es/components/sub-menu/style/index";
|
|
88
87
|
import "element-plus/es/components/menu-item/style/index";
|
|
89
|
-
|
|
88
|
+
import { AES as Ot, pad as kt, mode as Pt, enc as xe } from "crypto-ts";
|
|
89
|
+
const he = /* @__PURE__ */ Object.assign({ "./affix-render.vue": () => Promise.resolve().then(() => Ut), "./card-render.vue": () => Promise.resolve().then(() => Wt), "./collapse-render.vue": () => Promise.resolve().then(() => Kt), "./grid-render.vue": () => Promise.resolve().then(() => eo), "./object-group-render.vue": () => Promise.resolve().then(() => lo), "./scrollbar-render.vue": () => Promise.resolve().then(() => ao), "./space-render.vue": () => Promise.resolve().then(() => mo), "./sub-form-render.vue": () => Promise.resolve().then(() => vo), "./tab-render.vue": () => Promise.resolve().then(() => Ro), "./table-render.vue": () => Promise.resolve().then(() => Eo) }), $t = {
|
|
90
90
|
install(e) {
|
|
91
|
-
for (const i in
|
|
92
|
-
|
|
91
|
+
for (const i in he)
|
|
92
|
+
he[i] && he[i]().then((t) => {
|
|
93
93
|
const l = t.default.name;
|
|
94
94
|
l && e.component(l, t.default);
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
},
|
|
97
|
+
}, ce = /* @__PURE__ */ Object.assign({ "./alert-ui.vue": () => Promise.resolve().then(() => Ho), "./autonumber-input.vue": () => Promise.resolve().then(() => xo), "./avatar-ui.vue": () => Promise.resolve().then(() => ol), "./btn-editor-input.vue": () => Promise.resolve().then(() => fl), "./button-ui.vue": () => Promise.resolve().then(() => hl), "./carousel-ui.vue": () => Promise.resolve().then(() => Fl), "./chart-ui.vue": () => Promise.resolve().then(() => Cl), "./checkbox-input.vue": () => Promise.resolve().then(() => Ml), "./code-input.vue": () => Promise.resolve().then(() => $l), "./color-input.vue": () => Promise.resolve().then(() => Dl), "./crop-upload-input.vue": () => Promise.resolve().then(() => Ul), "./datagrid-form-ui.vue": () => Promise.resolve().then(() => Hl), "./datagrid-sql-ui.vue": () => Promise.resolve().then(() => Jl), "./date-input.vue": () => Promise.resolve().then(() => Yl), "./date-range-input.vue": () => Promise.resolve().then(() => en), "./divider-ui.vue": () => Promise.resolve().then(() => nn), "./dropdown-ui.vue": () => Promise.resolve().then(() => an), "./dynamic-input.vue": () => Promise.resolve().then(() => mn), "./file-upload-input.vue": () => Promise.resolve().then(() => In), "./group-list-input.vue": () => Promise.resolve().then(() => On), "./html-input.vue": () => Promise.resolve().then(() => Ln), "./html-ui.vue": () => Promise.resolve().then(() => Tn), "./icon-input.vue": () => Promise.resolve().then(() => Bn), "./image-ui.vue": () => Promise.resolve().then(() => qn), "./json-input.vue": () => Promise.resolve().then(() => Kn), "./link-ui.vue": () => Promise.resolve().then(() => _n), "./list-ui.vue": () => Promise.resolve().then(() => ts), "./masked-input.vue": () => Promise.resolve().then(() => rs), "./multiple-date.vue": () => Promise.resolve().then(() => us), "./number-input.vue": () => Promise.resolve().then(() => gs), "./objectid-input.vue": () => Promise.resolve().then(() => ws), "./picture-upload-input.vue": () => Promise.resolve().then(() => $s), "./progress-ui.vue": () => Promise.resolve().then(() => Ds), "./qrcode-ui.vue": () => Promise.resolve().then(() => Us), "./radio-input.vue": () => Promise.resolve().then(() => Hs), "./radio-text-input.vue": () => Promise.resolve().then(() => Js), "./rate-input.vue": () => Promise.resolve().then(() => Ys), "./record-ui.vue": () => Promise.resolve().then(() => er), "./report-ui.vue": () => Promise.resolve().then(() => lr), "./segmented-ui.vue": () => Promise.resolve().then(() => dr), "./select-data-input.vue": () => Promise.resolve().then(() => pr), "./select-form-input.vue": () => Promise.resolve().then(() => br), "./select-input.vue": () => Promise.resolve().then(() => vr), "./select-path-input.vue": () => Promise.resolve().then(() => Sr), "./select-sql-input.vue": () => Promise.resolve().then(() => kr), "./side-menu-ui.vue": () => Promise.resolve().then(() => Er), "./slider-input.vue": () => Promise.resolve().then(() => Vr), "./statistic-ui.vue": () => Promise.resolve().then(() => Gr), "./step-ui.vue": () => Promise.resolve().then(() => Qr), "./svg-input.vue": () => Promise.resolve().then(() => ed), "./svg-ui.vue": () => Promise.resolve().then(() => ld), "./switch-input.vue": () => Promise.resolve().then(() => fd), "./tags-input.vue": () => Promise.resolve().then(() => bd), "./text-input.vue": () => Promise.resolve().then(() => vd), "./text-ui.vue": () => Promise.resolve().then(() => Sd), "./textarea-input.vue": () => Promise.resolve().then(() => kd), "./time-input.vue": () => Promise.resolve().then(() => Ed), "./time-range-input.vue": () => Promise.resolve().then(() => Vd), "./time-select-input.vue": () => Promise.resolve().then(() => Ad), "./tour-ui.vue": () => Promise.resolve().then(() => qd) }), Lt = {
|
|
98
98
|
install(e) {
|
|
99
|
-
for (const i in
|
|
100
|
-
|
|
99
|
+
for (const i in ce)
|
|
100
|
+
ce[i] && ce[i]().then((t) => {
|
|
101
101
|
const l = t.default.name;
|
|
102
102
|
l && e.component(l, t.default);
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
}, Et = (e) => {
|
|
106
106
|
e.use($t), e.use(Lt);
|
|
107
|
-
},
|
|
107
|
+
}, Tf = {
|
|
108
108
|
install: Et
|
|
109
109
|
// SdFormRender,
|
|
110
110
|
}, jt = I({
|
|
@@ -125,12 +125,12 @@ const ge = /* @__PURE__ */ Object.assign({ "./affix-render.vue": () => Promise.r
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
function Dt(e, i, t, l, r, c) {
|
|
128
|
-
const s =
|
|
128
|
+
const s = we;
|
|
129
129
|
return o(), h("div", {
|
|
130
|
-
class:
|
|
130
|
+
class: v(["container-wrapper", [e.customClass]]),
|
|
131
131
|
style: { position: "relative" }
|
|
132
132
|
}, [
|
|
133
|
-
|
|
133
|
+
Fe(e.$slots, "default"),
|
|
134
134
|
e.annotated() && (e.field.component == "object-group" || e.field.component == "sub-form") ? (o(), d(s, {
|
|
135
135
|
key: 0,
|
|
136
136
|
type: "info",
|
|
@@ -139,13 +139,13 @@ function Dt(e, i, t, l, r, c) {
|
|
|
139
139
|
style: { position: "absolute", top: "-19px", right: "0", "z-index": "999" }
|
|
140
140
|
}, {
|
|
141
141
|
default: a(() => [
|
|
142
|
-
L(
|
|
142
|
+
L(w(e.field.options.name), 1)
|
|
143
143
|
]),
|
|
144
144
|
_: 1
|
|
145
145
|
})) : b("", !0)
|
|
146
146
|
], 2);
|
|
147
147
|
}
|
|
148
|
-
const A = /* @__PURE__ */ R(jt, [["render", Dt]]),
|
|
148
|
+
const A = /* @__PURE__ */ R(jt, [["render", Dt]]), Se = I({
|
|
149
149
|
props: {
|
|
150
150
|
field: Object,
|
|
151
151
|
objGroupName: {
|
|
@@ -161,7 +161,7 @@ const A = /* @__PURE__ */ R(jt, [["render", Dt]]), Oe = I({
|
|
|
161
161
|
methods: {
|
|
162
162
|
alert(e, i = "info", t = 4e3) {
|
|
163
163
|
try {
|
|
164
|
-
|
|
164
|
+
X({
|
|
165
165
|
grouping: !0,
|
|
166
166
|
type: i,
|
|
167
167
|
message: e,
|
|
@@ -182,8 +182,8 @@ const A = /* @__PURE__ */ R(jt, [["render", Dt]]), Oe = I({
|
|
|
182
182
|
return this.refList.sd_form_ref;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
}),
|
|
186
|
-
mixins: [
|
|
185
|
+
}), _ = I({
|
|
186
|
+
mixins: [Se],
|
|
187
187
|
data() {
|
|
188
188
|
return {
|
|
189
189
|
activeTabName: "",
|
|
@@ -222,7 +222,7 @@ const A = /* @__PURE__ */ R(jt, [["render", Dt]]), Oe = I({
|
|
|
222
222
|
let l = t.options.name, r = this.getFieldRef(l);
|
|
223
223
|
e && r && r.clearFieldRules && r.clearFieldRules(), !e && r && r.buildFieldRules && r.buildFieldRules();
|
|
224
224
|
};
|
|
225
|
-
|
|
225
|
+
si(this.field, i);
|
|
226
226
|
},
|
|
227
227
|
unregisterFromRefList() {
|
|
228
228
|
if (this.refList !== null && this.field.options.name) {
|
|
@@ -325,7 +325,7 @@ const A = /* @__PURE__ */ R(jt, [["render", Dt]]), Oe = I({
|
|
|
325
325
|
},
|
|
326
326
|
methods: {
|
|
327
327
|
setCurrentInstance() {
|
|
328
|
-
this.currentInstance =
|
|
328
|
+
this.currentInstance = li();
|
|
329
329
|
},
|
|
330
330
|
// Emitter handle =========================================
|
|
331
331
|
emit$(e, i) {
|
|
@@ -385,7 +385,7 @@ const A = /* @__PURE__ */ R(jt, [["render", Dt]]), Oe = I({
|
|
|
385
385
|
ContainerRenderWrapper: A
|
|
386
386
|
// ...FieldComponents,
|
|
387
387
|
},
|
|
388
|
-
mixins: [
|
|
388
|
+
mixins: [_, W],
|
|
389
389
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
390
390
|
computed: {},
|
|
391
391
|
data() {
|
|
@@ -410,10 +410,10 @@ function Vt(e, i, t, l, r, c) {
|
|
|
410
410
|
style: { "margin-bottom": "0px" }
|
|
411
411
|
}, {
|
|
412
412
|
default: a(() => [
|
|
413
|
-
|
|
413
|
+
K((o(), d(s, {
|
|
414
414
|
ref: e.field.id,
|
|
415
415
|
key: e.field.id,
|
|
416
|
-
class:
|
|
416
|
+
class: v(["affix-container", [e.customClass]]),
|
|
417
417
|
offset: e.field.options.offsetAffix,
|
|
418
418
|
position: e.field.options.vPosition,
|
|
419
419
|
target: e.field.options.target,
|
|
@@ -442,7 +442,7 @@ function Vt(e, i, t, l, r, c) {
|
|
|
442
442
|
]),
|
|
443
443
|
_: 1
|
|
444
444
|
}, 8, ["class", "offset", "position", "target", "z-index"])), [
|
|
445
|
-
[
|
|
445
|
+
[Q, !e.field.options.hidden]
|
|
446
446
|
])
|
|
447
447
|
]),
|
|
448
448
|
_: 1
|
|
@@ -458,7 +458,7 @@ const zt = /* @__PURE__ */ R(Tt, [["render", Vt], ["__scopeId", "data-v-b4c85525
|
|
|
458
458
|
ContainerRenderWrapper: A
|
|
459
459
|
// ...FieldComponents,
|
|
460
460
|
},
|
|
461
|
-
mixins: [
|
|
461
|
+
mixins: [_, W],
|
|
462
462
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
463
463
|
computed: {},
|
|
464
464
|
data() {
|
|
@@ -486,15 +486,15 @@ const zt = /* @__PURE__ */ R(Tt, [["render", Vt], ["__scopeId", "data-v-b4c85525
|
|
|
486
486
|
class: "custom-label"
|
|
487
487
|
};
|
|
488
488
|
function Nt(e, i, t, l, r, c) {
|
|
489
|
-
const s = U, u = ee, p = J("arrow-down"), g = J("arrow-up"),
|
|
489
|
+
const s = U, u = ee, p = J("arrow-down"), g = J("arrow-up"), y = re, $ = Ne, n = A;
|
|
490
490
|
return o(), d(n, {
|
|
491
491
|
field: e.field,
|
|
492
492
|
style: { "margin-bottom": "15px" }
|
|
493
493
|
}, {
|
|
494
494
|
default: a(() => [
|
|
495
|
-
|
|
495
|
+
K((o(), d($, {
|
|
496
496
|
key: e.field.id,
|
|
497
|
-
class:
|
|
497
|
+
class: v(["card-container", [
|
|
498
498
|
e.field.options.folded ? "folded" : "",
|
|
499
499
|
e.customClass,
|
|
500
500
|
e.field.options.headerType || "",
|
|
@@ -552,18 +552,18 @@ function Nt(e, i, t, l, r, c) {
|
|
|
552
552
|
]),
|
|
553
553
|
_: 1
|
|
554
554
|
}, 8, ["content"]),
|
|
555
|
-
L(
|
|
555
|
+
L(w(e.field.options.label), 1)
|
|
556
556
|
], 64)) : (o(), h(F, { key: 1 }, [
|
|
557
557
|
m(s, {
|
|
558
558
|
"icon-name": e.field.options.labelIconClass,
|
|
559
559
|
class: "mr-1",
|
|
560
560
|
size: "13px"
|
|
561
561
|
}, null, 8, ["icon-name"]),
|
|
562
|
-
L(
|
|
562
|
+
L(w(e.field.options.label), 1)
|
|
563
563
|
], 64))
|
|
564
564
|
], 64)) : e.field.options.labelIconPosition === "rear" ? (o(), h(F, { key: 1 }, [
|
|
565
565
|
e.field.options.labelTooltip ? (o(), h(F, { key: 0 }, [
|
|
566
|
-
L(
|
|
566
|
+
L(w(e.field.options.label), 1),
|
|
567
567
|
m(u, {
|
|
568
568
|
content: e.field.options.labelTooltip
|
|
569
569
|
}, {
|
|
@@ -577,7 +577,7 @@ function Nt(e, i, t, l, r, c) {
|
|
|
577
577
|
_: 1
|
|
578
578
|
}, 8, ["content"])
|
|
579
579
|
], 64)) : (o(), h(F, { key: 1 }, [
|
|
580
|
-
L(
|
|
580
|
+
L(w(e.field.options.label), 1),
|
|
581
581
|
m(s, {
|
|
582
582
|
"icon-name": e.field.options.labelIconClass,
|
|
583
583
|
class: "ml-1",
|
|
@@ -589,8 +589,8 @@ function Nt(e, i, t, l, r, c) {
|
|
|
589
589
|
key: 1,
|
|
590
590
|
class: "custom-label",
|
|
591
591
|
style: j({ color: e.field.options.labelColor })
|
|
592
|
-
},
|
|
593
|
-
e.field.options.showFold ? (o(), d(
|
|
592
|
+
}, w(e.field.options.label), 5)),
|
|
593
|
+
e.field.options.showFold ? (o(), d(y, {
|
|
594
594
|
key: 2,
|
|
595
595
|
onClick: e.onClickFolded,
|
|
596
596
|
class: "el-icon--right",
|
|
@@ -606,7 +606,7 @@ function Nt(e, i, t, l, r, c) {
|
|
|
606
606
|
key: "0"
|
|
607
607
|
}
|
|
608
608
|
]), 1032, ["class", "shadow", "body-style", "body-class", "style"])), [
|
|
609
|
-
[
|
|
609
|
+
[Q, !e.field.options.hidden]
|
|
610
610
|
])
|
|
611
611
|
]),
|
|
612
612
|
_: 1
|
|
@@ -622,7 +622,7 @@ const Ht = /* @__PURE__ */ R(Bt, [["render", Nt], ["__scopeId", "data-v-979ec39b
|
|
|
622
622
|
ContainerRenderWrapper: A
|
|
623
623
|
// ...FieldComponents,
|
|
624
624
|
},
|
|
625
|
-
mixins: [
|
|
625
|
+
mixins: [_, W],
|
|
626
626
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
627
627
|
computed: {
|
|
628
628
|
visibleTabs() {
|
|
@@ -662,39 +662,39 @@ function Jt(e, i, t, l, r, c) {
|
|
|
662
662
|
style: { "margin-bottom": "15px" }
|
|
663
663
|
}, {
|
|
664
664
|
default: a(() => [
|
|
665
|
-
|
|
665
|
+
K((o(), h("div", {
|
|
666
666
|
key: e.field.id,
|
|
667
667
|
class: "collapse-container"
|
|
668
668
|
}, [
|
|
669
669
|
m(p, {
|
|
670
670
|
modelValue: e.activeCollapseName,
|
|
671
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
671
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => e.activeCollapseName = y),
|
|
672
672
|
accordion: !!e.field.options.accordion,
|
|
673
673
|
ref: e.field.id,
|
|
674
|
-
class:
|
|
674
|
+
class: v([e.customClass])
|
|
675
675
|
}, {
|
|
676
676
|
default: a(() => [
|
|
677
|
-
(o(!0), h(F, null, T(e.visibleTabs, (
|
|
677
|
+
(o(!0), h(F, null, T(e.visibleTabs, (y, $) => (o(), d(u, {
|
|
678
678
|
key: $,
|
|
679
|
-
title:
|
|
680
|
-
disabled:
|
|
681
|
-
name:
|
|
679
|
+
title: y.options.label,
|
|
680
|
+
disabled: y.options.disabled,
|
|
681
|
+
name: y.options.name
|
|
682
682
|
}, {
|
|
683
683
|
title: a(() => [
|
|
684
684
|
S("span", Gt, [
|
|
685
|
-
|
|
685
|
+
y.options.icon ? (o(), d(s, {
|
|
686
686
|
key: 0,
|
|
687
|
-
"icon-name":
|
|
687
|
+
"icon-name": y.options.icon
|
|
688
688
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
689
|
-
S("span", null,
|
|
689
|
+
S("span", null, w(y.options.label), 1)
|
|
690
690
|
])
|
|
691
691
|
]),
|
|
692
692
|
default: a(() => [
|
|
693
|
-
(o(!0), h(F, null, T(
|
|
693
|
+
(o(!0), h(F, null, T(y.fields, (n, f) => (o(), h(F, null, [
|
|
694
694
|
n.category === "container" ? (o(), d(B(n.component + "-render"), {
|
|
695
695
|
field: n,
|
|
696
696
|
key: n.id ? n.id : f,
|
|
697
|
-
"parent-list":
|
|
697
|
+
"parent-list": y.fields,
|
|
698
698
|
"index-of-parent-list": f,
|
|
699
699
|
"parent-field": e.field,
|
|
700
700
|
"obj-group-name": e.objGroupName ? e.objGroupName : ""
|
|
@@ -703,7 +703,7 @@ function Jt(e, i, t, l, r, c) {
|
|
|
703
703
|
builder: null,
|
|
704
704
|
"builder-status": !1,
|
|
705
705
|
key: n.id ? n.id : f,
|
|
706
|
-
"parent-list":
|
|
706
|
+
"parent-list": y.fields,
|
|
707
707
|
"index-of-parent-list": f,
|
|
708
708
|
"parent-field": e.field,
|
|
709
709
|
"obj-group-name": e.objGroupName ? e.objGroupName : ""
|
|
@@ -716,22 +716,22 @@ function Jt(e, i, t, l, r, c) {
|
|
|
716
716
|
_: 1
|
|
717
717
|
}, 8, ["modelValue", "accordion", "class"])
|
|
718
718
|
])), [
|
|
719
|
-
[
|
|
719
|
+
[Q, !e.field.options.hidden]
|
|
720
720
|
])
|
|
721
721
|
]),
|
|
722
722
|
_: 1
|
|
723
723
|
}, 8, ["field"]);
|
|
724
724
|
}
|
|
725
|
-
const Zt = /* @__PURE__ */ R(qt, [["render", Jt], ["__scopeId", "data-v-e477f3cf"]]),
|
|
725
|
+
const Zt = /* @__PURE__ */ R(qt, [["render", Jt], ["__scopeId", "data-v-e477f3cf"]]), Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
726
726
|
__proto__: null,
|
|
727
727
|
default: Zt
|
|
728
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
728
|
+
}, Symbol.toStringTag, { value: "Module" })), Qt = I({
|
|
729
729
|
name: "grid-col-render",
|
|
730
730
|
typeName: "FormContainer",
|
|
731
731
|
components: {
|
|
732
732
|
// ...FieldComponents,
|
|
733
733
|
},
|
|
734
|
-
mixins: [
|
|
734
|
+
mixins: [Se, W],
|
|
735
735
|
inject: ["refList", "globalModel", "getFormConfig", "previewState"],
|
|
736
736
|
props: {
|
|
737
737
|
parentField: Object,
|
|
@@ -798,8 +798,8 @@ const Zt = /* @__PURE__ */ R(qt, [["render", Jt], ["__scopeId", "data-v-e477f3cf
|
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
function Yt(e, i, t, l, r, c) {
|
|
801
|
-
const s =
|
|
802
|
-
return
|
|
801
|
+
const s = de;
|
|
802
|
+
return K((o(), d(s, De({
|
|
803
803
|
class: ["grid-cell", [e.customClass]]
|
|
804
804
|
}, e.layoutProps, {
|
|
805
805
|
style: { colHeightStyle: e.colHeightStyle, ...e.bgColorStyle },
|
|
@@ -828,17 +828,17 @@ function Yt(e, i, t, l, r, c) {
|
|
|
828
828
|
]),
|
|
829
829
|
_: 1
|
|
830
830
|
}, 16, ["class", "style"])), [
|
|
831
|
-
[
|
|
831
|
+
[Q, !e.field.options.hidden]
|
|
832
832
|
]);
|
|
833
833
|
}
|
|
834
|
-
const ei = /* @__PURE__ */ R(
|
|
834
|
+
const ei = /* @__PURE__ */ R(Qt, [["render", Yt]]), Xt = I({
|
|
835
835
|
name: "grid-render",
|
|
836
836
|
typeName: "FormContainer",
|
|
837
837
|
components: {
|
|
838
838
|
ContainerRenderWrapper: A,
|
|
839
839
|
GridColRender: ei
|
|
840
840
|
},
|
|
841
|
-
mixins: [
|
|
841
|
+
mixins: [_, W],
|
|
842
842
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
843
843
|
computed: {},
|
|
844
844
|
beforeCreate() {
|
|
@@ -854,21 +854,21 @@ const ei = /* @__PURE__ */ R(Kt, [["render", Yt]]), Xt = I({
|
|
|
854
854
|
}
|
|
855
855
|
});
|
|
856
856
|
function _t(e, i, t, l, r, c) {
|
|
857
|
-
const s = ei, u =
|
|
857
|
+
const s = ei, u = ae, p = A;
|
|
858
858
|
return o(), d(p, { field: e.field }, {
|
|
859
859
|
default: a(() => [
|
|
860
|
-
|
|
860
|
+
K((o(), d(u, {
|
|
861
861
|
key: e.field.id,
|
|
862
862
|
gutter: e.field.options.gutter,
|
|
863
|
-
class:
|
|
863
|
+
class: v(["grid-container", [e.customClass]]),
|
|
864
864
|
ref: e.field.id
|
|
865
865
|
}, {
|
|
866
866
|
default: a(() => [
|
|
867
|
-
(o(!0), h(F, null, T(e.field.cols, (g,
|
|
868
|
-
key:
|
|
867
|
+
(o(!0), h(F, null, T(e.field.cols, (g, y) => (o(), d(s, {
|
|
868
|
+
key: y,
|
|
869
869
|
field: g,
|
|
870
870
|
"parent-list": e.field.cols,
|
|
871
|
-
"index-of-parent-list":
|
|
871
|
+
"index-of-parent-list": y,
|
|
872
872
|
"parent-field": e.field,
|
|
873
873
|
"obj-group-name": e.objGroupName ? e.objGroupName : "",
|
|
874
874
|
"col-height": e.field.options.colHeight
|
|
@@ -876,7 +876,7 @@ function _t(e, i, t, l, r, c) {
|
|
|
876
876
|
]),
|
|
877
877
|
_: 1
|
|
878
878
|
}, 8, ["gutter", "class"])), [
|
|
879
|
-
[
|
|
879
|
+
[Q, !e.field.options.hidden]
|
|
880
880
|
])
|
|
881
881
|
]),
|
|
882
882
|
_: 1
|
|
@@ -892,7 +892,7 @@ const xt = /* @__PURE__ */ R(Xt, [["render", _t], ["__scopeId", "data-v-d240521c
|
|
|
892
892
|
ContainerRenderWrapper: A
|
|
893
893
|
// ...FieldComponents,
|
|
894
894
|
},
|
|
895
|
-
mixins: [
|
|
895
|
+
mixins: [_, W],
|
|
896
896
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
897
897
|
computed: {},
|
|
898
898
|
beforeCreate() {
|
|
@@ -912,15 +912,15 @@ const xt = /* @__PURE__ */ R(Xt, [["render", _t], ["__scopeId", "data-v-d240521c
|
|
|
912
912
|
}
|
|
913
913
|
});
|
|
914
914
|
function to(e, i, t, l, r, c) {
|
|
915
|
-
const s =
|
|
915
|
+
const s = Ne, u = A;
|
|
916
916
|
return o(), d(u, {
|
|
917
917
|
field: e.field,
|
|
918
918
|
style: { "margin-bottom": "0px" }
|
|
919
919
|
}, {
|
|
920
920
|
default: a(() => [
|
|
921
|
-
|
|
921
|
+
K((o(), d(s, {
|
|
922
922
|
key: e.field.id,
|
|
923
|
-
class:
|
|
923
|
+
class: v(["object-group-container", [e.customClass]]),
|
|
924
924
|
shadow: "never",
|
|
925
925
|
ref: e.field.id
|
|
926
926
|
}, {
|
|
@@ -947,7 +947,7 @@ function to(e, i, t, l, r, c) {
|
|
|
947
947
|
]),
|
|
948
948
|
_: 1
|
|
949
949
|
}, 8, ["class"])), [
|
|
950
|
-
[
|
|
950
|
+
[Q, !e.field.options.hidden]
|
|
951
951
|
])
|
|
952
952
|
]),
|
|
953
953
|
_: 1
|
|
@@ -963,7 +963,7 @@ const oo = /* @__PURE__ */ R(io, [["render", to], ["__scopeId", "data-v-2e902e1a
|
|
|
963
963
|
ContainerRenderWrapper: A
|
|
964
964
|
// ...FieldComponents,
|
|
965
965
|
},
|
|
966
|
-
mixins: [
|
|
966
|
+
mixins: [_, W],
|
|
967
967
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
968
968
|
computed: {
|
|
969
969
|
getHeight() {
|
|
@@ -991,7 +991,7 @@ const oo = /* @__PURE__ */ R(io, [["render", to], ["__scopeId", "data-v-2e902e1a
|
|
|
991
991
|
},
|
|
992
992
|
mounted() {
|
|
993
993
|
const e = this.field.options.height ? this.field.options.height : 0;
|
|
994
|
-
this.scrollerHeight = window.innerHeight - e + "px",
|
|
994
|
+
this.scrollerHeight = window.innerHeight - e + "px", Ve(() => {
|
|
995
995
|
this.$nextTick(() => {
|
|
996
996
|
const i = this.field.options.height ? this.field.options.height : 0;
|
|
997
997
|
this.scrollerHeight = window.innerHeight - i + "px";
|
|
@@ -1010,10 +1010,10 @@ function so(e, i, t, l, r, c) {
|
|
|
1010
1010
|
style: { "margin-bottom": "0px" }
|
|
1011
1011
|
}, {
|
|
1012
1012
|
default: a(() => [
|
|
1013
|
-
|
|
1013
|
+
K((o(), d(s, {
|
|
1014
1014
|
ref: e.field.id,
|
|
1015
1015
|
key: e.field.id,
|
|
1016
|
-
class:
|
|
1016
|
+
class: v(["scrollbar-container", [e.customClass]]),
|
|
1017
1017
|
always: e.field.options.always,
|
|
1018
1018
|
native: e.field.options.native,
|
|
1019
1019
|
wrapClass: e.field.options.wrapClass,
|
|
@@ -1047,7 +1047,7 @@ function so(e, i, t, l, r, c) {
|
|
|
1047
1047
|
]),
|
|
1048
1048
|
_: 1
|
|
1049
1049
|
}, 8, ["class", "always", "native", "wrapClass", "viewClass", "noresize", "tag", "minSize", "height", "max-height"])), [
|
|
1050
|
-
[
|
|
1050
|
+
[Q, !e.field.options.hidden]
|
|
1051
1051
|
])
|
|
1052
1052
|
]),
|
|
1053
1053
|
_: 1
|
|
@@ -1063,7 +1063,7 @@ const ro = /* @__PURE__ */ R(no, [["render", so], ["__scopeId", "data-v-e3cade02
|
|
|
1063
1063
|
ContainerRenderWrapper: A
|
|
1064
1064
|
// ...FieldComponents,
|
|
1065
1065
|
},
|
|
1066
|
-
mixins: [
|
|
1066
|
+
mixins: [_, W],
|
|
1067
1067
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
1068
1068
|
computed: {},
|
|
1069
1069
|
beforeCreate() {
|
|
@@ -1085,10 +1085,10 @@ function uo(e, i, t, l, r, c) {
|
|
|
1085
1085
|
style: j([{ "margin-bottom": "0px" }, { textAlign: e.field.options.contentPosition || "left" }])
|
|
1086
1086
|
}, {
|
|
1087
1087
|
default: a(() => [
|
|
1088
|
-
|
|
1088
|
+
K((o(), d(s, {
|
|
1089
1089
|
ref: e.field.id,
|
|
1090
1090
|
key: e.field.id,
|
|
1091
|
-
class:
|
|
1091
|
+
class: v(["space-container", [e.customClass]]),
|
|
1092
1092
|
wrap: e.field.options.wrap,
|
|
1093
1093
|
fill: e.field.options.fill,
|
|
1094
1094
|
size: e.field.options.size,
|
|
@@ -1120,7 +1120,7 @@ function uo(e, i, t, l, r, c) {
|
|
|
1120
1120
|
]),
|
|
1121
1121
|
_: 1
|
|
1122
1122
|
}, 8, ["class", "wrap", "fill", "size", "alignment", "direction", "prefixCls", "spacer"])), [
|
|
1123
|
-
[
|
|
1123
|
+
[Q, !e.field.options.hidden]
|
|
1124
1124
|
])
|
|
1125
1125
|
]),
|
|
1126
1126
|
_: 1
|
|
@@ -1136,7 +1136,7 @@ const po = /* @__PURE__ */ R(fo, [["render", uo], ["__scopeId", "data-v-cafd5b38
|
|
|
1136
1136
|
ContainerRenderWrapper: A
|
|
1137
1137
|
// ...FieldComponents,
|
|
1138
1138
|
},
|
|
1139
|
-
mixins: [
|
|
1139
|
+
mixins: [_, W],
|
|
1140
1140
|
inject: ["refList", "sfRefList", "globalModel", "getFormConfig"],
|
|
1141
1141
|
//, 'getFormConfig'
|
|
1142
1142
|
data() {
|
|
@@ -1368,18 +1368,18 @@ const po = /* @__PURE__ */ R(fo, [["render", uo], ["__scopeId", "data-v-cafd5b38
|
|
|
1368
1368
|
class: "row-number-span"
|
|
1369
1369
|
};
|
|
1370
1370
|
function Fo(e, i, t, l, r, c) {
|
|
1371
|
-
const s = U, u = G, p =
|
|
1371
|
+
const s = U, u = G, p = de, g = ae, y = ee, $ = A;
|
|
1372
1372
|
return o(), d($, {
|
|
1373
1373
|
field: e.field,
|
|
1374
1374
|
style: { "margin-bottom": "15px" }
|
|
1375
1375
|
}, {
|
|
1376
1376
|
default: a(() => [
|
|
1377
|
-
|
|
1377
|
+
K((o(), h("div", {
|
|
1378
1378
|
key: e.field.id,
|
|
1379
1379
|
class: "sub-form-container"
|
|
1380
1380
|
}, [
|
|
1381
1381
|
m(g, {
|
|
1382
|
-
class:
|
|
1382
|
+
class: v(["header-row", [e.widgetSize]])
|
|
1383
1383
|
}, {
|
|
1384
1384
|
default: a(() => [
|
|
1385
1385
|
e.field.options.actionPosition === "left" ? (o(), d(p, {
|
|
@@ -1441,7 +1441,7 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1441
1441
|
e.getTotalCols > f ? (o(), d(p, {
|
|
1442
1442
|
key: 0,
|
|
1443
1443
|
span: n.options.columnSpan,
|
|
1444
|
-
class:
|
|
1444
|
+
class: v([[e.getLabelAlign(e.field, n), n.options.required ? "is-required" : ""], "field-header-column"]),
|
|
1445
1445
|
style: { "padding-right": "5px", "padding-left": "5px", height: "100%" }
|
|
1446
1446
|
}, {
|
|
1447
1447
|
default: a(() => [
|
|
@@ -1452,7 +1452,7 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1452
1452
|
}, [
|
|
1453
1453
|
n.options.labelIconPosition === "front" ? (o(), h(F, { key: 0 }, [
|
|
1454
1454
|
n.options.labelTooltip ? (o(), h(F, { key: 0 }, [
|
|
1455
|
-
m(
|
|
1455
|
+
m(y, {
|
|
1456
1456
|
content: n.options.labelTooltip
|
|
1457
1457
|
}, {
|
|
1458
1458
|
default: a(() => [
|
|
@@ -1464,19 +1464,19 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1464
1464
|
]),
|
|
1465
1465
|
_: 2
|
|
1466
1466
|
}, 1032, ["content"]),
|
|
1467
|
-
L(
|
|
1467
|
+
L(w(n.options.label), 1)
|
|
1468
1468
|
], 64)) : (o(), h(F, { key: 1 }, [
|
|
1469
1469
|
m(s, {
|
|
1470
1470
|
"icon-name": n.options.labelIconClass,
|
|
1471
1471
|
class: "mr-1",
|
|
1472
1472
|
size: "13px"
|
|
1473
1473
|
}, null, 8, ["icon-name"]),
|
|
1474
|
-
L(
|
|
1474
|
+
L(w(n.options.label), 1)
|
|
1475
1475
|
], 64))
|
|
1476
1476
|
], 64)) : n.options.labelIconPosition === "rear" ? (o(), h(F, { key: 1 }, [
|
|
1477
1477
|
n.options.labelTooltip ? (o(), h(F, { key: 0 }, [
|
|
1478
|
-
L(
|
|
1479
|
-
m(
|
|
1478
|
+
L(w(n.options.label), 1),
|
|
1479
|
+
m(y, {
|
|
1480
1480
|
content: n.options.labelTooltip
|
|
1481
1481
|
}, {
|
|
1482
1482
|
default: a(() => [
|
|
@@ -1489,7 +1489,7 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1489
1489
|
_: 2
|
|
1490
1490
|
}, 1032, ["content"])
|
|
1491
1491
|
], 64)) : (o(), h(F, { key: 1 }, [
|
|
1492
|
-
L(
|
|
1492
|
+
L(w(n.options.label), 1),
|
|
1493
1493
|
m(s, {
|
|
1494
1494
|
"icon-name": n.options.labelIconClass,
|
|
1495
1495
|
class: "ml-1",
|
|
@@ -1501,7 +1501,7 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1501
1501
|
key: 1,
|
|
1502
1502
|
title: n.options.labelTooltip,
|
|
1503
1503
|
style: j({ color: n.options.labelColor })
|
|
1504
|
-
},
|
|
1504
|
+
}, w(n.options.label), 13, co))
|
|
1505
1505
|
]),
|
|
1506
1506
|
_: 2
|
|
1507
1507
|
}, 1032, ["span", "class"])) : b("", !0)
|
|
@@ -1541,7 +1541,7 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1541
1541
|
_: 1
|
|
1542
1542
|
}, 8, ["class"]),
|
|
1543
1543
|
(o(!0), h(F, null, T(e.rowIdData, (n, f) => (o(), d(g, {
|
|
1544
|
-
class:
|
|
1544
|
+
class: v(["sub-form-row", [e.widgetSize]]),
|
|
1545
1545
|
key: n
|
|
1546
1546
|
}, {
|
|
1547
1547
|
default: a(() => [
|
|
@@ -1571,7 +1571,7 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1571
1571
|
title: "delete this row",
|
|
1572
1572
|
icon: "Delete"
|
|
1573
1573
|
}, null, 8, ["disabled", "size", "onClick"]),
|
|
1574
|
-
e.field.options.showRowNumber ? (o(), h("span", bo, "#" +
|
|
1574
|
+
e.field.options.showRowNumber ? (o(), h("span", bo, "#" + w(f + 1), 1)) : b("", !0)
|
|
1575
1575
|
]),
|
|
1576
1576
|
_: 2
|
|
1577
1577
|
}, 1024)) : e.field.options.showRowNumber ? (o(), d(p, {
|
|
@@ -1580,7 +1580,7 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1580
1580
|
class: "sub-form-action-column hide-label action-button-column"
|
|
1581
1581
|
}, {
|
|
1582
1582
|
default: a(() => [
|
|
1583
|
-
e.field.options.showRowNumber ? (o(), h("span", go, "#" +
|
|
1583
|
+
e.field.options.showRowNumber ? (o(), h("span", go, "#" + w(f + 1), 1)) : b("", !0)
|
|
1584
1584
|
]),
|
|
1585
1585
|
_: 2
|
|
1586
1586
|
}, 1024)) : b("", !0),
|
|
@@ -1650,7 +1650,7 @@ function Fo(e, i, t, l, r, c) {
|
|
|
1650
1650
|
_: 2
|
|
1651
1651
|
}, 1032, ["class"]))), 128))
|
|
1652
1652
|
])), [
|
|
1653
|
-
[
|
|
1653
|
+
[Q, !e.field.options.hidden]
|
|
1654
1654
|
])
|
|
1655
1655
|
]),
|
|
1656
1656
|
_: 1
|
|
@@ -1666,7 +1666,7 @@ const yo = /* @__PURE__ */ R(ho, [["render", Fo], ["__scopeId", "data-v-993001bb
|
|
|
1666
1666
|
ContainerRenderWrapper: A
|
|
1667
1667
|
// ...FieldComponents,
|
|
1668
1668
|
},
|
|
1669
|
-
mixins: [
|
|
1669
|
+
mixins: [_, W],
|
|
1670
1670
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
1671
1671
|
computed: {
|
|
1672
1672
|
visibleTabs() {
|
|
@@ -1700,40 +1700,40 @@ function Io(e, i, t, l, r, c) {
|
|
|
1700
1700
|
style: { "margin-bottom": "15px" }
|
|
1701
1701
|
}, {
|
|
1702
1702
|
default: a(() => [
|
|
1703
|
-
|
|
1703
|
+
K((o(), h("div", {
|
|
1704
1704
|
key: e.field.id,
|
|
1705
1705
|
class: "tab-container"
|
|
1706
1706
|
}, [
|
|
1707
1707
|
m(p, {
|
|
1708
1708
|
modelValue: e.activeTabName,
|
|
1709
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1709
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => e.activeTabName = y),
|
|
1710
1710
|
type: e.field.options.displayType,
|
|
1711
1711
|
"tab-position": e.field.options.tabPosition,
|
|
1712
1712
|
ref: e.field.id,
|
|
1713
|
-
class:
|
|
1713
|
+
class: v([e.customClass])
|
|
1714
1714
|
}, {
|
|
1715
1715
|
default: a(() => [
|
|
1716
|
-
(o(!0), h(F, null, T(e.visibleTabs, (
|
|
1716
|
+
(o(!0), h(F, null, T(e.visibleTabs, (y, $) => (o(), d(u, {
|
|
1717
1717
|
key: $,
|
|
1718
|
-
label:
|
|
1719
|
-
disabled:
|
|
1720
|
-
name:
|
|
1718
|
+
label: y.options.label,
|
|
1719
|
+
disabled: y.options.disabled,
|
|
1720
|
+
name: y.options.name
|
|
1721
1721
|
}, {
|
|
1722
1722
|
label: a(() => [
|
|
1723
1723
|
S("span", Co, [
|
|
1724
|
-
|
|
1724
|
+
y.options.icon ? (o(), d(s, {
|
|
1725
1725
|
key: 0,
|
|
1726
|
-
"icon-name":
|
|
1726
|
+
"icon-name": y.options.icon
|
|
1727
1727
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
1728
|
-
S("span", null,
|
|
1728
|
+
S("span", null, w(y.options.label), 1)
|
|
1729
1729
|
])
|
|
1730
1730
|
]),
|
|
1731
1731
|
default: a(() => [
|
|
1732
|
-
(o(!0), h(F, null, T(
|
|
1732
|
+
(o(!0), h(F, null, T(y.fields, (n, f) => (o(), h(F, null, [
|
|
1733
1733
|
n.category === "container" ? (o(), d(B(n.component + "-render"), {
|
|
1734
1734
|
field: n,
|
|
1735
1735
|
key: n.id ? n.id : f,
|
|
1736
|
-
"parent-list":
|
|
1736
|
+
"parent-list": y.fields,
|
|
1737
1737
|
"index-of-parent-list": f,
|
|
1738
1738
|
"parent-field": e.field,
|
|
1739
1739
|
"obj-group-name": e.objGroupName ? e.objGroupName : ""
|
|
@@ -1742,7 +1742,7 @@ function Io(e, i, t, l, r, c) {
|
|
|
1742
1742
|
builder: null,
|
|
1743
1743
|
"builder-status": !1,
|
|
1744
1744
|
key: n.id ? n.id : f,
|
|
1745
|
-
"parent-list":
|
|
1745
|
+
"parent-list": y.fields,
|
|
1746
1746
|
"index-of-parent-list": f,
|
|
1747
1747
|
"parent-field": e.field,
|
|
1748
1748
|
"obj-group-name": e.objGroupName ? e.objGroupName : ""
|
|
@@ -1755,7 +1755,7 @@ function Io(e, i, t, l, r, c) {
|
|
|
1755
1755
|
_: 1
|
|
1756
1756
|
}, 8, ["modelValue", "type", "tab-position", "class"])
|
|
1757
1757
|
])), [
|
|
1758
|
-
[
|
|
1758
|
+
[Q, !e.field.options.hidden]
|
|
1759
1759
|
])
|
|
1760
1760
|
]),
|
|
1761
1761
|
_: 1
|
|
@@ -1770,7 +1770,7 @@ const So = /* @__PURE__ */ R(wo, [["render", Io], ["__scopeId", "data-v-d5481f2a
|
|
|
1770
1770
|
components: {
|
|
1771
1771
|
// ...FieldComponents,
|
|
1772
1772
|
},
|
|
1773
|
-
mixins: [
|
|
1773
|
+
mixins: [Se, W],
|
|
1774
1774
|
inject: ["refList", "globalModel"],
|
|
1775
1775
|
props: {
|
|
1776
1776
|
parentField: Object,
|
|
@@ -1799,7 +1799,7 @@ const So = /* @__PURE__ */ R(wo, [["render", Io], ["__scopeId", "data-v-d5481f2a
|
|
|
1799
1799
|
}), Oo = ["colspan", "rowspan"];
|
|
1800
1800
|
function ko(e, i, t, l, r, c) {
|
|
1801
1801
|
return o(), h("td", {
|
|
1802
|
-
class:
|
|
1802
|
+
class: v(["table-cell", [e.customClass]]),
|
|
1803
1803
|
colspan: e.field.options.colspan || 1,
|
|
1804
1804
|
rowspan: e.field.options.rowspan || 1,
|
|
1805
1805
|
style: j({ width: e.field.options.cellWidth + " !important" || "", height: e.field.options.cellHeight + " !important" || "", ...e.bgColorStyle })
|
|
@@ -1832,7 +1832,7 @@ const ii = /* @__PURE__ */ R(Mo, [["render", ko], ["__scopeId", "data-v-7cfc555a
|
|
|
1832
1832
|
ContainerRenderWrapper: A,
|
|
1833
1833
|
TableCellRender: ii
|
|
1834
1834
|
},
|
|
1835
|
-
mixins: [
|
|
1835
|
+
mixins: [_, W],
|
|
1836
1836
|
inject: ["refList", "sfRefList", "globalModel"],
|
|
1837
1837
|
computed: {
|
|
1838
1838
|
bordered() {
|
|
@@ -1858,21 +1858,21 @@ function $o(e, i, t, l, r, c) {
|
|
|
1858
1858
|
style: { "margin-bottom": "15px" }
|
|
1859
1859
|
}, {
|
|
1860
1860
|
default: a(() => [
|
|
1861
|
-
|
|
1861
|
+
K((o(), h("div", {
|
|
1862
1862
|
key: e.field.id,
|
|
1863
1863
|
class: "table-container"
|
|
1864
1864
|
}, [
|
|
1865
1865
|
S("table", {
|
|
1866
1866
|
ref: e.field.id,
|
|
1867
|
-
class:
|
|
1867
|
+
class: v(["table", [e.customClass, e.bordered]])
|
|
1868
1868
|
}, [
|
|
1869
1869
|
S("tbody", null, [
|
|
1870
1870
|
(o(!0), h(F, null, T(e.field.rows, (p, g) => (o(), h("tr", {
|
|
1871
1871
|
key: p.id
|
|
1872
1872
|
}, [
|
|
1873
|
-
(o(!0), h(F, null, T(p.cols, (
|
|
1874
|
-
|
|
1875
|
-
field:
|
|
1873
|
+
(o(!0), h(F, null, T(p.cols, (y, $) => (o(), h(F, null, [
|
|
1874
|
+
y.merged ? b("", !0) : (o(), d(s, {
|
|
1875
|
+
field: y,
|
|
1876
1876
|
key: $,
|
|
1877
1877
|
"parent-list": e.field.cols,
|
|
1878
1878
|
"index-of-parent-list": $,
|
|
@@ -1886,7 +1886,7 @@ function $o(e, i, t, l, r, c) {
|
|
|
1886
1886
|
])
|
|
1887
1887
|
], 2)
|
|
1888
1888
|
])), [
|
|
1889
|
-
[
|
|
1889
|
+
[Q, !e.field.options.hidden]
|
|
1890
1890
|
])
|
|
1891
1891
|
]),
|
|
1892
1892
|
_: 1
|
|
@@ -1945,7 +1945,7 @@ const Lo = /* @__PURE__ */ R(Po, [["render", $o], ["__scopeId", "data-v-9a38d6aa
|
|
|
1945
1945
|
methods: {
|
|
1946
1946
|
alert(e, i = "info", t = 4e3) {
|
|
1947
1947
|
try {
|
|
1948
|
-
|
|
1948
|
+
X({
|
|
1949
1949
|
grouping: !0,
|
|
1950
1950
|
type: i,
|
|
1951
1951
|
message: e,
|
|
@@ -2006,7 +2006,7 @@ const Lo = /* @__PURE__ */ R(Po, [["render", $o], ["__scopeId", "data-v-9a38d6aa
|
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
2008
|
}
|
|
2009
|
-
}),
|
|
2009
|
+
}), Re = I({
|
|
2010
2010
|
name: "StaticContentWrapper",
|
|
2011
2011
|
components: {},
|
|
2012
2012
|
mixins: [oi],
|
|
@@ -2024,12 +2024,12 @@ const Lo = /* @__PURE__ */ R(Po, [["render", $o], ["__scopeId", "data-v-9a38d6aa
|
|
|
2024
2024
|
};
|
|
2025
2025
|
},
|
|
2026
2026
|
methods: {}
|
|
2027
|
-
}),
|
|
2028
|
-
|
|
2027
|
+
}), ke = () => {
|
|
2028
|
+
Te((e) => ({
|
|
2029
2029
|
v2de7e8dc: e.fieldColor
|
|
2030
2030
|
}));
|
|
2031
|
-
},
|
|
2032
|
-
|
|
2031
|
+
}, Pe = Re.setup;
|
|
2032
|
+
Re.setup = Pe ? (e, i) => (ke(), Pe(e, i)) : ke;
|
|
2033
2033
|
const jo = {
|
|
2034
2034
|
key: 0,
|
|
2035
2035
|
class: "field-action"
|
|
@@ -2040,15 +2040,15 @@ const jo = {
|
|
|
2040
2040
|
function zo(e, i, t, l, r, c) {
|
|
2041
2041
|
const s = U;
|
|
2042
2042
|
return o(), h("div", {
|
|
2043
|
-
class:
|
|
2043
|
+
class: v(["field-wrapper", { "builder-time-bottom-margin": !!e.builder }])
|
|
2044
2044
|
}, [
|
|
2045
2045
|
!e.field.options.hidden || e.builderStatus === !0 ? (o(), h("div", {
|
|
2046
2046
|
key: 0,
|
|
2047
|
-
class:
|
|
2047
|
+
class: v(["static-content-item", [e.selected ? "selected" : "", e.customClass]]),
|
|
2048
2048
|
style: j({ display: e.displayStyle }),
|
|
2049
2049
|
onClick: i[0] || (i[0] = z((u) => e.selectField(e.field), ["stop"]))
|
|
2050
2050
|
}, [
|
|
2051
|
-
|
|
2051
|
+
Fe(e.$slots, "default", {}, void 0, !0)
|
|
2052
2052
|
], 6)) : b("", !0),
|
|
2053
2053
|
e.builder ? (o(), h(F, { key: 1 }, [
|
|
2054
2054
|
e.builder.selectedId === e.field.id ? (o(), h("div", jo, [
|
|
@@ -2098,7 +2098,7 @@ function zo(e, i, t, l, r, c) {
|
|
|
2098
2098
|
size: "14px"
|
|
2099
2099
|
})
|
|
2100
2100
|
]),
|
|
2101
|
-
S("i", null,
|
|
2101
|
+
S("i", null, w(e.field.name ? e.field.name : e.field.component), 1),
|
|
2102
2102
|
e.field.options.hidden === !0 ? (o(), h("i", Vo, [
|
|
2103
2103
|
m(s, {
|
|
2104
2104
|
"icon-name": "el-hide",
|
|
@@ -2109,7 +2109,7 @@ function zo(e, i, t, l, r, c) {
|
|
|
2109
2109
|
], 64)) : b("", !0)
|
|
2110
2110
|
], 2);
|
|
2111
2111
|
}
|
|
2112
|
-
const E = /* @__PURE__ */ R(
|
|
2112
|
+
const E = /* @__PURE__ */ R(Re, [["render", zo], ["__scopeId", "data-v-67efe709"]]), Uo = function(e) {
|
|
2113
2113
|
return {
|
|
2114
2114
|
number: "/^[-]?\\d+(\\.\\d+)?$/",
|
|
2115
2115
|
letter: "/^[A-Za-z]+$/",
|
|
@@ -2129,7 +2129,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2129
2129
|
variableFull: "/^[A-Za-z|_id][A-Za-z0-9_]+$/"
|
|
2130
2130
|
}[e];
|
|
2131
2131
|
}, q = function(e, i, t, l, r) {
|
|
2132
|
-
if (
|
|
2132
|
+
if (pe(t) || t.length <= 0) {
|
|
2133
2133
|
l();
|
|
2134
2134
|
return;
|
|
2135
2135
|
}
|
|
@@ -2139,7 +2139,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2139
2139
|
let u = i.errorMsg || r;
|
|
2140
2140
|
l(new Error(u));
|
|
2141
2141
|
}
|
|
2142
|
-
},
|
|
2142
|
+
}, be = {
|
|
2143
2143
|
number(e, i, t) {
|
|
2144
2144
|
q("number", e, i, t, "[" + e.label + "] contains non-numeric characters");
|
|
2145
2145
|
},
|
|
@@ -2180,7 +2180,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2180
2180
|
q("variableFull", e, i, t, "[" + e.label + "] must be in English or numbers only and do not contain spaces.");
|
|
2181
2181
|
},
|
|
2182
2182
|
regExp(e, i, t) {
|
|
2183
|
-
if (
|
|
2183
|
+
if (pe(i) || i.length <= 0) {
|
|
2184
2184
|
t();
|
|
2185
2185
|
return;
|
|
2186
2186
|
}
|
|
@@ -2192,7 +2192,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2192
2192
|
}
|
|
2193
2193
|
},
|
|
2194
2194
|
citizenId(e, i, t) {
|
|
2195
|
-
if (
|
|
2195
|
+
if (pe(i) || i.length <= 0) {
|
|
2196
2196
|
t();
|
|
2197
2197
|
return;
|
|
2198
2198
|
}
|
|
@@ -2203,7 +2203,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2203
2203
|
}
|
|
2204
2204
|
let r = l.split("").reverse().join(""), c = 0;
|
|
2205
2205
|
for (let g = 1; g < 13; g++) {
|
|
2206
|
-
let
|
|
2206
|
+
let y = g + 1, $ = Number(r.charAt(g)) * y;
|
|
2207
2207
|
c = c + $;
|
|
2208
2208
|
}
|
|
2209
2209
|
let p = (11 - c % 11) % 10;
|
|
@@ -2232,8 +2232,8 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2232
2232
|
uploadHeaders: {},
|
|
2233
2233
|
uploadData: { key: "" },
|
|
2234
2234
|
customToolbar: null,
|
|
2235
|
-
router:
|
|
2236
|
-
route:
|
|
2235
|
+
router: _e(),
|
|
2236
|
+
route: Xe()
|
|
2237
2237
|
// sdEvents: {} as any,
|
|
2238
2238
|
// fieldRefList: null as any,
|
|
2239
2239
|
};
|
|
@@ -2281,7 +2281,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2281
2281
|
// ========================== Start SdFramework ==================================
|
|
2282
2282
|
notify(e, i = "info", t = "Notification", l = 5e3) {
|
|
2283
2283
|
try {
|
|
2284
|
-
|
|
2284
|
+
Ye({
|
|
2285
2285
|
title: t,
|
|
2286
2286
|
type: i,
|
|
2287
2287
|
message: e,
|
|
@@ -2293,7 +2293,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2293
2293
|
},
|
|
2294
2294
|
alert(e, i = "info", t = 4e3) {
|
|
2295
2295
|
try {
|
|
2296
|
-
|
|
2296
|
+
X({
|
|
2297
2297
|
grouping: !0,
|
|
2298
2298
|
type: i,
|
|
2299
2299
|
message: e,
|
|
@@ -2372,14 +2372,14 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2372
2372
|
},
|
|
2373
2373
|
numberFormat(e, i = 0, t = "currency", l = "THB") {
|
|
2374
2374
|
try {
|
|
2375
|
-
return
|
|
2375
|
+
return gi(e, i, t, l);
|
|
2376
2376
|
} catch (r) {
|
|
2377
2377
|
return this.alert(r.message, "error"), null;
|
|
2378
2378
|
}
|
|
2379
2379
|
},
|
|
2380
2380
|
object2Path(e) {
|
|
2381
2381
|
try {
|
|
2382
|
-
return
|
|
2382
|
+
return bi(e);
|
|
2383
2383
|
} catch (i) {
|
|
2384
2384
|
return this.alert(i.message, "error"), {};
|
|
2385
2385
|
}
|
|
@@ -2516,49 +2516,49 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2516
2516
|
return { ageOfYear: r, monthOfYear: u, ageOfMonth: c, ageOfDay: s };
|
|
2517
2517
|
},
|
|
2518
2518
|
genUidTime() {
|
|
2519
|
-
return
|
|
2519
|
+
return ge();
|
|
2520
2520
|
},
|
|
2521
2521
|
generateId() {
|
|
2522
2522
|
return te();
|
|
2523
2523
|
},
|
|
2524
2524
|
isNull() {
|
|
2525
|
-
return
|
|
2525
|
+
return pe(this.getValue());
|
|
2526
2526
|
},
|
|
2527
2527
|
isNotNull() {
|
|
2528
|
-
return
|
|
2528
|
+
return Ue(this.getValue());
|
|
2529
2529
|
},
|
|
2530
2530
|
isEmptyStr() {
|
|
2531
|
-
return
|
|
2531
|
+
return ci(this.getValue());
|
|
2532
2532
|
},
|
|
2533
2533
|
isEmptyObj() {
|
|
2534
|
-
return
|
|
2534
|
+
return hi(this.getValue());
|
|
2535
2535
|
},
|
|
2536
2536
|
ucfirst() {
|
|
2537
|
-
return
|
|
2537
|
+
return mi(this.getValue());
|
|
2538
2538
|
},
|
|
2539
2539
|
lcfirst() {
|
|
2540
|
-
return
|
|
2540
|
+
return pi(this.getValue());
|
|
2541
2541
|
},
|
|
2542
2542
|
htmlEncode() {
|
|
2543
|
-
return
|
|
2543
|
+
return ze(this.getValue());
|
|
2544
2544
|
},
|
|
2545
2545
|
string2boolean(e) {
|
|
2546
|
-
return
|
|
2546
|
+
return ui(e);
|
|
2547
2547
|
},
|
|
2548
2548
|
inStrFormatted(e) {
|
|
2549
|
-
return
|
|
2549
|
+
return fi(e);
|
|
2550
2550
|
},
|
|
2551
2551
|
inIntFormatted(e) {
|
|
2552
|
-
return
|
|
2552
|
+
return ai(e);
|
|
2553
2553
|
},
|
|
2554
2554
|
setObjectByPath(e, i, t) {
|
|
2555
|
-
return
|
|
2555
|
+
return di(e, i, t);
|
|
2556
2556
|
},
|
|
2557
2557
|
getObjectByPath(e, i) {
|
|
2558
|
-
return
|
|
2558
|
+
return ye(e, i);
|
|
2559
2559
|
},
|
|
2560
2560
|
getQueryParam(e) {
|
|
2561
|
-
return
|
|
2561
|
+
return ri(e);
|
|
2562
2562
|
},
|
|
2563
2563
|
clearValidateAll() {
|
|
2564
2564
|
this.builderStatus || this.getFormRef().clearValidate();
|
|
@@ -2719,13 +2719,13 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2719
2719
|
trigger: [],
|
|
2720
2720
|
label: this.field.options.label,
|
|
2721
2721
|
errorMsg: this.field.options.validationHint
|
|
2722
|
-
}) :
|
|
2723
|
-
validator:
|
|
2722
|
+
}) : be[i] ? this.rules.push({
|
|
2723
|
+
validator: be[i],
|
|
2724
2724
|
trigger: [],
|
|
2725
2725
|
label: this.field.options.label,
|
|
2726
2726
|
errorMsg: this.field.options.validationHint
|
|
2727
2727
|
}) : this.rules.push({
|
|
2728
|
-
validator:
|
|
2728
|
+
validator: be.regExp,
|
|
2729
2729
|
trigger: [],
|
|
2730
2730
|
regExp: i,
|
|
2731
2731
|
label: this.field.options.label,
|
|
@@ -2966,10 +2966,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
2966
2966
|
},
|
|
2967
2967
|
async copyClipboard(e) {
|
|
2968
2968
|
try {
|
|
2969
|
-
await this.getFormRef().
|
|
2970
|
-
message: "Copied to clipboard",
|
|
2971
|
-
type: "success"
|
|
2972
|
-
});
|
|
2969
|
+
await this.getFormRef().copyClipboard(e);
|
|
2973
2970
|
} catch (i) {
|
|
2974
2971
|
console.error(i);
|
|
2975
2972
|
}
|
|
@@ -3010,7 +3007,7 @@ const E = /* @__PURE__ */ R(ke, [["render", zo], ["__scopeId", "data-v-67efe709"
|
|
|
3010
3007
|
}
|
|
3011
3008
|
});
|
|
3012
3009
|
function Ao(e, i, t, l, r, c) {
|
|
3013
|
-
const s =
|
|
3010
|
+
const s = He, u = E;
|
|
3014
3011
|
return o(), d(u, {
|
|
3015
3012
|
"build-rules": e.rules,
|
|
3016
3013
|
field: e.field,
|
|
@@ -3045,7 +3042,7 @@ function Ao(e, i, t, l, r, c) {
|
|
|
3045
3042
|
const No = /* @__PURE__ */ R(Bo, [["render", Ao], ["__scopeId", "data-v-cd17f1da"]]), Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3046
3043
|
__proto__: null,
|
|
3047
3044
|
default: No
|
|
3048
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3045
|
+
}, Symbol.toStringTag, { value: "Module" })), Me = I({
|
|
3049
3046
|
name: "FormItemWrapper",
|
|
3050
3047
|
components: {},
|
|
3051
3048
|
mixins: [oi],
|
|
@@ -3058,12 +3055,12 @@ const No = /* @__PURE__ */ R(Bo, [["render", Ao], ["__scopeId", "data-v-cd17f1da
|
|
|
3058
3055
|
container: "#e6a23c"
|
|
3059
3056
|
};
|
|
3060
3057
|
return e.field.category != null ? f[e.field.category] : "#409EFF";
|
|
3061
|
-
}), t = N("getFormConfig"), l = N("annotated"), r = N("refList"), c = Y(() => t()), s = Y(() => !(r && r[e.field.options.name])), u = Y(() => e.field.options.labelHidden ? "" : e.field.options.label), p = Y(() => e.field.options.size != null ? e.field.options.size : e.builder.formConfig.size), g = Y(() => e.field.options.labelHidden ? 0 : e.field.options.labelWidth ? e.field.options.labelWidth : e.builder ? e.builder.formConfig.labelWidth : c.value.labelWidth),
|
|
3058
|
+
}), t = N("getFormConfig"), l = N("annotated"), r = N("refList"), c = Y(() => t()), s = Y(() => !(r && r[e.field.options.name])), u = Y(() => e.field.options.labelHidden ? "" : e.field.options.label), p = Y(() => e.field.options.size != null ? e.field.options.size : e.builder.formConfig.size), g = Y(() => e.field.options.labelHidden ? 0 : e.field.options.labelWidth ? e.field.options.labelWidth : e.builder ? e.builder.formConfig.labelWidth : c.value.labelWidth), y = Y(() => e.field.options.labelAlign ? e.field.options.labelAlign : e.builder ? e.builder.formConfig.labelAlign || "label-left-align" : c.value.labelAlign || "label-left-align"), $ = Y(() => e.parentField ? e.parentField.options.name : ""), n = Y(() => e.parentField ? e.parentField.component === "sub-form" : !1);
|
|
3062
3059
|
return {
|
|
3063
3060
|
formConfig: c,
|
|
3064
3061
|
label: u,
|
|
3065
3062
|
labelWidth: g,
|
|
3066
|
-
labelAlign:
|
|
3063
|
+
labelAlign: y,
|
|
3067
3064
|
subFormName: $,
|
|
3068
3065
|
subFormItemFlag: n,
|
|
3069
3066
|
widgetSize: p,
|
|
@@ -3077,23 +3074,23 @@ const No = /* @__PURE__ */ R(Bo, [["render", Ao], ["__scopeId", "data-v-cd17f1da
|
|
|
3077
3074
|
return this.subFormItemFlag && !this.builderStatus ? this.subFormName + "." + this.subFormRowIndex + "." + this.field.options.name : this.field.options.name;
|
|
3078
3075
|
}
|
|
3079
3076
|
}
|
|
3080
|
-
}),
|
|
3081
|
-
|
|
3077
|
+
}), $e = () => {
|
|
3078
|
+
Te((e) => ({
|
|
3082
3079
|
v44e8eb22: e.fieldColor
|
|
3083
3080
|
}));
|
|
3084
|
-
},
|
|
3085
|
-
|
|
3081
|
+
}, Le = Me.setup;
|
|
3082
|
+
Me.setup = Le ? (e, i) => ($e(), Le(e, i)) : $e;
|
|
3086
3083
|
const Wo = ["data-id"], qo = {
|
|
3087
3084
|
key: 0,
|
|
3088
3085
|
class: "field-action"
|
|
3089
3086
|
}, Go = {
|
|
3090
3087
|
key: 1,
|
|
3091
3088
|
class: "drag-handler background-opacity"
|
|
3092
|
-
}, Jo = { title: "Drag" }, Zo = { key: 0 },
|
|
3093
|
-
function
|
|
3094
|
-
const s = U, u = ee, p =
|
|
3089
|
+
}, Jo = { title: "Drag" }, Zo = { key: 0 }, Ko = { key: 1 };
|
|
3090
|
+
function Qo(e, i, t, l, r, c) {
|
|
3091
|
+
const s = U, u = ee, p = we, g = We;
|
|
3095
3092
|
return o(), h("div", {
|
|
3096
|
-
class:
|
|
3093
|
+
class: v(["field-wrapper", { "builder-time-bottom-margin": !!e.builder }]),
|
|
3097
3094
|
"data-id": e.field.options.name
|
|
3098
3095
|
}, [
|
|
3099
3096
|
!e.field.options.hidden || e.builderStatus === !0 ? (o(), d(g, {
|
|
@@ -3104,8 +3101,8 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3104
3101
|
size: e.widgetSize,
|
|
3105
3102
|
rules: e.buildRules,
|
|
3106
3103
|
prop: e.getPropName(),
|
|
3107
|
-
class:
|
|
3108
|
-
onClick: i[0] || (i[0] = z((
|
|
3104
|
+
class: v([e.selected ? "selected" : "", e.labelAlign, e.customClass, e.field.options.required ? "required" : "", e.field.options.labelHidden ? "label-hide" : ""]),
|
|
3105
|
+
onClick: i[0] || (i[0] = z((y) => e.selectField(e.field), ["stop"]))
|
|
3109
3106
|
}, {
|
|
3110
3107
|
label: a(() => [
|
|
3111
3108
|
e.field.options.labelHidden ? b("", !0) : (o(), h(F, { key: 0 }, [
|
|
@@ -3128,18 +3125,18 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3128
3125
|
]),
|
|
3129
3126
|
_: 1
|
|
3130
3127
|
}, 8, ["content"]),
|
|
3131
|
-
L(" " +
|
|
3128
|
+
L(" " + w(e.label), 1)
|
|
3132
3129
|
], 64)) : (o(), h(F, { key: 1 }, [
|
|
3133
3130
|
m(s, {
|
|
3134
3131
|
"icon-name": e.field.options.labelIconClass,
|
|
3135
3132
|
class: "mr-1",
|
|
3136
3133
|
size: "13px"
|
|
3137
3134
|
}, null, 8, ["icon-name"]),
|
|
3138
|
-
L(
|
|
3135
|
+
L(w(e.label), 1)
|
|
3139
3136
|
], 64))
|
|
3140
3137
|
], 64)) : e.field.options.labelIconPosition === "rear" ? (o(), h(F, { key: 1 }, [
|
|
3141
3138
|
e.field.options.labelTooltip ? (o(), h(F, { key: 0 }, [
|
|
3142
|
-
L(
|
|
3139
|
+
L(w(e.label) + " ", 1),
|
|
3143
3140
|
m(u, {
|
|
3144
3141
|
content: e.field.options.labelTooltip
|
|
3145
3142
|
}, {
|
|
@@ -3153,7 +3150,7 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3153
3150
|
_: 1
|
|
3154
3151
|
}, 8, ["content"])
|
|
3155
3152
|
], 64)) : (o(), h(F, { key: 1 }, [
|
|
3156
|
-
L(
|
|
3153
|
+
L(w(e.label) + " ", 1),
|
|
3157
3154
|
m(s, {
|
|
3158
3155
|
"icon-name": e.field.options.labelIconClass,
|
|
3159
3156
|
class: "ml-1",
|
|
@@ -3165,11 +3162,11 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3165
3162
|
key: 1,
|
|
3166
3163
|
class: "custom-label",
|
|
3167
3164
|
style: j({ color: e.field.options.labelColor })
|
|
3168
|
-
},
|
|
3165
|
+
}, w(e.label), 5)) : b("", !0)
|
|
3169
3166
|
], 64))
|
|
3170
3167
|
]),
|
|
3171
3168
|
default: a(() => [
|
|
3172
|
-
|
|
3169
|
+
Fe(e.$slots, "default", {}, void 0, !0),
|
|
3173
3170
|
e.annotated() ? (o(), d(p, {
|
|
3174
3171
|
key: 0,
|
|
3175
3172
|
type: "warning",
|
|
@@ -3178,7 +3175,7 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3178
3175
|
style: { position: "absolute", top: "0", right: "0", "z-index": "999" }
|
|
3179
3176
|
}, {
|
|
3180
3177
|
default: a(() => [
|
|
3181
|
-
L(
|
|
3178
|
+
L(w(e.field.options.name), 1)
|
|
3182
3179
|
]),
|
|
3183
3180
|
_: 1
|
|
3184
3181
|
})) : b("", !0)
|
|
@@ -3189,39 +3186,39 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3189
3186
|
e.builder.selectedId === e.field.id ? (o(), h("div", qo, [
|
|
3190
3187
|
S("i", {
|
|
3191
3188
|
title: "Select Parent",
|
|
3192
|
-
onClick: i[1] || (i[1] = z((
|
|
3189
|
+
onClick: i[1] || (i[1] = z((y) => e.selectParentField(), ["stop"]))
|
|
3193
3190
|
}, [
|
|
3194
3191
|
m(s, { "icon-name": "addon-select-parent" })
|
|
3195
3192
|
]),
|
|
3196
3193
|
e.parentList && e.parentList.length > 1 ? (o(), h("i", {
|
|
3197
3194
|
key: 0,
|
|
3198
3195
|
title: "Move Up",
|
|
3199
|
-
onClick: i[2] || (i[2] = z((
|
|
3196
|
+
onClick: i[2] || (i[2] = z((y) => e.moveUpField(), ["stop"]))
|
|
3200
3197
|
}, [
|
|
3201
3198
|
m(s, { "icon-name": "el-top" })
|
|
3202
3199
|
])) : b("", !0),
|
|
3203
3200
|
e.parentList && e.parentList.length > 1 ? (o(), h("i", {
|
|
3204
3201
|
key: 1,
|
|
3205
3202
|
title: "Move Down",
|
|
3206
|
-
onClick: i[3] || (i[3] = z((
|
|
3203
|
+
onClick: i[3] || (i[3] = z((y) => e.moveDownField(), ["stop"]))
|
|
3207
3204
|
}, [
|
|
3208
3205
|
m(s, { "icon-name": "el-bottom" })
|
|
3209
3206
|
])) : b("", !0),
|
|
3210
3207
|
S("i", {
|
|
3211
3208
|
title: "Clone",
|
|
3212
|
-
onClick: i[4] || (i[4] = z((
|
|
3209
|
+
onClick: i[4] || (i[4] = z((y) => e.cloneFields(e.field), ["stop"]))
|
|
3213
3210
|
}, [
|
|
3214
3211
|
m(s, { "icon-name": "el-copy-document" })
|
|
3215
3212
|
]),
|
|
3216
3213
|
S("i", {
|
|
3217
3214
|
title: "Add Library",
|
|
3218
|
-
onClick: i[5] || (i[5] = z((
|
|
3215
|
+
onClick: i[5] || (i[5] = z((y) => e.addLibFields(e.field), ["stop"]))
|
|
3219
3216
|
}, [
|
|
3220
3217
|
m(s, { "icon-name": "addon-library" })
|
|
3221
3218
|
]),
|
|
3222
3219
|
S("i", {
|
|
3223
3220
|
title: "Remove",
|
|
3224
|
-
onClick: i[6] || (i[6] = z((...
|
|
3221
|
+
onClick: i[6] || (i[6] = z((...y) => e.removeField && e.removeField(...y), ["stop"]))
|
|
3225
3222
|
}, [
|
|
3226
3223
|
m(s, { "icon-name": "el-delete" })
|
|
3227
3224
|
])
|
|
@@ -3233,7 +3230,7 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3233
3230
|
size: "14px"
|
|
3234
3231
|
})
|
|
3235
3232
|
]),
|
|
3236
|
-
S("i", null,
|
|
3233
|
+
S("i", null, w(e.field.name ? e.field.name : e.field.component), 1),
|
|
3237
3234
|
e.field.options.hidden === !0 ? (o(), h("i", Zo, [
|
|
3238
3235
|
m(s, {
|
|
3239
3236
|
"icon-name": "el-hide",
|
|
@@ -3241,7 +3238,7 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3241
3238
|
style: { color: "var(--el-color-warning)" }
|
|
3242
3239
|
})
|
|
3243
3240
|
])) : b("", !0),
|
|
3244
|
-
e.registerRefError ? (o(), h("i",
|
|
3241
|
+
e.registerRefError ? (o(), h("i", Ko, [
|
|
3245
3242
|
m(u, { content: "Can't register RefInput, Create a new one or refresh the screen." }, {
|
|
3246
3243
|
default: a(() => [
|
|
3247
3244
|
m(s, {
|
|
@@ -3257,7 +3254,7 @@ function Ko(e, i, t, l, r, c) {
|
|
|
3257
3254
|
], 64)) : b("", !0)
|
|
3258
3255
|
], 10, Wo);
|
|
3259
3256
|
}
|
|
3260
|
-
const M = /* @__PURE__ */ R(
|
|
3257
|
+
const M = /* @__PURE__ */ R(Me, [["render", Qo], ["__scopeId", "data-v-0cb4e76b"]]), Yo = I({
|
|
3261
3258
|
name: "autonumber-input",
|
|
3262
3259
|
typeName: "FormField",
|
|
3263
3260
|
components: {
|
|
@@ -3296,7 +3293,7 @@ const M = /* @__PURE__ */ R(Pe, [["render", Ko], ["__scopeId", "data-v-0cb4e76b"
|
|
|
3296
3293
|
}
|
|
3297
3294
|
});
|
|
3298
3295
|
function Xo(e, i, t, l, r, c) {
|
|
3299
|
-
const s = U, u =
|
|
3296
|
+
const s = U, u = fe, p = M;
|
|
3300
3297
|
return o(), d(p, {
|
|
3301
3298
|
"build-rules": e.rules,
|
|
3302
3299
|
field: e.field,
|
|
@@ -3339,14 +3336,14 @@ function Xo(e, i, t, l, r, c) {
|
|
|
3339
3336
|
e.field.options.prefixText ? {
|
|
3340
3337
|
name: "prepend",
|
|
3341
3338
|
fn: a(() => [
|
|
3342
|
-
L(
|
|
3339
|
+
L(w(e.field.options.prefixText), 1)
|
|
3343
3340
|
]),
|
|
3344
3341
|
key: "0"
|
|
3345
3342
|
} : void 0,
|
|
3346
3343
|
e.field.options.suffixText ? {
|
|
3347
3344
|
name: "append",
|
|
3348
3345
|
fn: a(() => [
|
|
3349
|
-
L(
|
|
3346
|
+
L(w(e.field.options.suffixText), 1)
|
|
3350
3347
|
]),
|
|
3351
3348
|
key: "1"
|
|
3352
3349
|
} : void 0,
|
|
@@ -3451,9 +3448,9 @@ const tl = /* @__PURE__ */ R(el, [["render", il], ["__scopeId", "data-v-5d2fdf46
|
|
|
3451
3448
|
this.initFieldModel(), this.initEventHandler(), this.buildFieldRules(), this.handleOnCreated();
|
|
3452
3449
|
},
|
|
3453
3450
|
mounted() {
|
|
3454
|
-
this.registerToRefList(), this.handleOnMounted(),
|
|
3455
|
-
await
|
|
3456
|
-
this.popupWidth =
|
|
3451
|
+
this.registerToRefList(), this.handleOnMounted(), Ve(async () => {
|
|
3452
|
+
await ni(() => {
|
|
3453
|
+
this.popupWidth = Fi("80%");
|
|
3457
3454
|
});
|
|
3458
3455
|
});
|
|
3459
3456
|
},
|
|
@@ -3502,8 +3499,8 @@ const tl = /* @__PURE__ */ R(el, [["render", il], ["__scopeId", "data-v-5d2fdf46
|
|
|
3502
3499
|
class: "el-dialog__title"
|
|
3503
3500
|
}, rl = { class: "dialog-footer" };
|
|
3504
3501
|
function dl(e, i, t, l, r, c) {
|
|
3505
|
-
const s = U, u = G, p =
|
|
3506
|
-
return o(), d(
|
|
3502
|
+
const s = U, u = G, p = Be, g = qe, y = M;
|
|
3503
|
+
return o(), d(y, {
|
|
3507
3504
|
"build-rules": e.rules,
|
|
3508
3505
|
field: e.field,
|
|
3509
3506
|
builder: e.builder,
|
|
@@ -3545,7 +3542,7 @@ function dl(e, i, t, l, r, c) {
|
|
|
3545
3542
|
"icon-name": "btn-editor",
|
|
3546
3543
|
class: "mr-1"
|
|
3547
3544
|
})),
|
|
3548
|
-
L(" " +
|
|
3545
|
+
L(" " + w(e.field.options.actionLabel ? e.field.options.actionLabel : "Edit"), 1)
|
|
3549
3546
|
]),
|
|
3550
3547
|
_: 1
|
|
3551
3548
|
}, 8, ["type", "onClick", "size", "disabled"]),
|
|
@@ -3563,7 +3560,7 @@ function dl(e, i, t, l, r, c) {
|
|
|
3563
3560
|
"destroy-on-close": !0
|
|
3564
3561
|
}, {
|
|
3565
3562
|
header: a(({ close: $, titleId: n, titleClass: f }) => [
|
|
3566
|
-
S("span", sl,
|
|
3563
|
+
S("span", sl, w(e.field.options.label ? e.field.options.label : "Editor"), 1)
|
|
3567
3564
|
]),
|
|
3568
3565
|
footer: a(() => [
|
|
3569
3566
|
S("div", rl, [
|
|
@@ -3652,7 +3649,7 @@ const al = /* @__PURE__ */ R(ll, [["render", dl]]), fl = /* @__PURE__ */ Object.
|
|
|
3652
3649
|
}
|
|
3653
3650
|
});
|
|
3654
3651
|
function pl(e, i, t, l, r, c) {
|
|
3655
|
-
const s = U, u = G, p =
|
|
3652
|
+
const s = U, u = G, p = ue, g = Zi, y = Ki, $ = E;
|
|
3656
3653
|
return o(), d($, {
|
|
3657
3654
|
"build-rules": e.rules,
|
|
3658
3655
|
field: e.field,
|
|
@@ -3697,11 +3694,11 @@ function pl(e, i, t, l, r, c) {
|
|
|
3697
3694
|
key: 0,
|
|
3698
3695
|
"icon-name": n.prefixIcon
|
|
3699
3696
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
3700
|
-
S("span", null,
|
|
3697
|
+
S("span", null, w(n.label), 1),
|
|
3701
3698
|
n.suffixIcon ? (o(), d(s, {
|
|
3702
3699
|
key: 1,
|
|
3703
3700
|
"icon-name": n.suffixIcon,
|
|
3704
|
-
class:
|
|
3701
|
+
class: v(n.label ? "ml-1" : "")
|
|
3705
3702
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
3706
3703
|
]),
|
|
3707
3704
|
_: 2
|
|
@@ -3730,11 +3727,11 @@ function pl(e, i, t, l, r, c) {
|
|
|
3730
3727
|
key: 0,
|
|
3731
3728
|
"icon-name": n.prefixIcon
|
|
3732
3729
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
3733
|
-
S("span", null,
|
|
3730
|
+
S("span", null, w(n.label), 1),
|
|
3734
3731
|
n.suffixIcon ? (o(), d(s, {
|
|
3735
3732
|
key: 1,
|
|
3736
3733
|
"icon-name": n.suffixIcon,
|
|
3737
|
-
class:
|
|
3734
|
+
class: v(n.label ? "ml-1" : "")
|
|
3738
3735
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
3739
3736
|
]),
|
|
3740
3737
|
_: 2
|
|
@@ -3744,7 +3741,7 @@ function pl(e, i, t, l, r, c) {
|
|
|
3744
3741
|
_: 1
|
|
3745
3742
|
})) : (o(), h(F, { key: 1 }, [
|
|
3746
3743
|
e.field.options.buttons && Object.keys(e.field.options.buttons).length > 0 ? (o(!0), h(F, { key: 0 }, T(e.field.options.buttons, (n, f) => (o(), h(F, null, [
|
|
3747
|
-
n.badge ? (o(), d(
|
|
3744
|
+
n.badge ? (o(), d(y, {
|
|
3748
3745
|
key: 0,
|
|
3749
3746
|
value: n.badge,
|
|
3750
3747
|
max: n.badgeMax,
|
|
@@ -3772,11 +3769,11 @@ function pl(e, i, t, l, r, c) {
|
|
|
3772
3769
|
key: 0,
|
|
3773
3770
|
"icon-name": n.prefixIcon
|
|
3774
3771
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
3775
|
-
S("span", null,
|
|
3772
|
+
S("span", null, w(n.label), 1),
|
|
3776
3773
|
n.suffixIcon ? (o(), d(s, {
|
|
3777
3774
|
key: 1,
|
|
3778
3775
|
"icon-name": n.suffixIcon,
|
|
3779
|
-
class:
|
|
3776
|
+
class: v(n.label ? "ml-1" : "")
|
|
3780
3777
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
3781
3778
|
]),
|
|
3782
3779
|
_: 2
|
|
@@ -3806,11 +3803,11 @@ function pl(e, i, t, l, r, c) {
|
|
|
3806
3803
|
key: 0,
|
|
3807
3804
|
"icon-name": n.prefixIcon
|
|
3808
3805
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
3809
|
-
S("span", null,
|
|
3806
|
+
S("span", null, w(n.label), 1),
|
|
3810
3807
|
n.suffixIcon ? (o(), d(s, {
|
|
3811
3808
|
key: 1,
|
|
3812
3809
|
"icon-name": n.suffixIcon,
|
|
3813
|
-
class:
|
|
3810
|
+
class: v(n.label ? "ml-1" : "")
|
|
3814
3811
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
3815
3812
|
]),
|
|
3816
3813
|
_: 2
|
|
@@ -3839,11 +3836,11 @@ function pl(e, i, t, l, r, c) {
|
|
|
3839
3836
|
key: 0,
|
|
3840
3837
|
"icon-name": n.prefixIcon
|
|
3841
3838
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
3842
|
-
S("span", null,
|
|
3839
|
+
S("span", null, w(n.label), 1),
|
|
3843
3840
|
n.suffixIcon ? (o(), d(s, {
|
|
3844
3841
|
key: 1,
|
|
3845
3842
|
"icon-name": n.suffixIcon,
|
|
3846
|
-
class:
|
|
3843
|
+
class: v(n.label ? "ml-1" : "")
|
|
3847
3844
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
3848
3845
|
]),
|
|
3849
3846
|
_: 2
|
|
@@ -3924,7 +3921,7 @@ const ml = /* @__PURE__ */ R(ul, [["render", pl], ["__scopeId", "data-v-6ab688c8
|
|
|
3924
3921
|
}
|
|
3925
3922
|
});
|
|
3926
3923
|
function bl(e, i, t, l, r, c) {
|
|
3927
|
-
const s =
|
|
3924
|
+
const s = yi, u = E;
|
|
3928
3925
|
return o(), d(u, {
|
|
3929
3926
|
"build-rules": e.rules,
|
|
3930
3927
|
field: e.field,
|
|
@@ -3935,7 +3932,7 @@ function bl(e, i, t, l, r, c) {
|
|
|
3935
3932
|
"index-of-parent-list": e.indexOfParentList,
|
|
3936
3933
|
"sub-form-row-index": e.subFormRowIndex,
|
|
3937
3934
|
"sub-form-col-index": e.subFormColIndex,
|
|
3938
|
-
class:
|
|
3935
|
+
class: v(["datagrid-container"]),
|
|
3939
3936
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left" }),
|
|
3940
3937
|
"sub-form-row-id": e.subFormRowId
|
|
3941
3938
|
}, {
|
|
@@ -4026,7 +4023,7 @@ const gl = /* @__PURE__ */ R(cl, [["render", bl], ["__scopeId", "data-v-7f6f0344
|
|
|
4026
4023
|
}
|
|
4027
4024
|
});
|
|
4028
4025
|
function vl(e, i, t, l, r, c) {
|
|
4029
|
-
const s =
|
|
4026
|
+
const s = vi, u = E;
|
|
4030
4027
|
return o(), d(u, {
|
|
4031
4028
|
"build-rules": e.rules,
|
|
4032
4029
|
field: e.field,
|
|
@@ -4037,7 +4034,7 @@ function vl(e, i, t, l, r, c) {
|
|
|
4037
4034
|
"index-of-parent-list": e.indexOfParentList,
|
|
4038
4035
|
"sub-form-row-index": e.subFormRowIndex,
|
|
4039
4036
|
"sub-form-col-index": e.subFormColIndex,
|
|
4040
|
-
class:
|
|
4037
|
+
class: v(["datagrid-container"]),
|
|
4041
4038
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left" }),
|
|
4042
4039
|
"sub-form-row-id": e.subFormRowId
|
|
4043
4040
|
}, {
|
|
@@ -4123,7 +4120,7 @@ const wl = /* @__PURE__ */ R(yl, [["render", vl], ["__scopeId", "data-v-c0f6576e
|
|
|
4123
4120
|
}
|
|
4124
4121
|
});
|
|
4125
4122
|
function Sl(e, i, t, l, r, c) {
|
|
4126
|
-
const s = Yi, u = Xi, p =
|
|
4123
|
+
const s = Yi, u = Xi, p = de, g = ae, y = Qi, $ = M;
|
|
4127
4124
|
return o(), d($, {
|
|
4128
4125
|
"build-rules": e.rules,
|
|
4129
4126
|
field: e.field,
|
|
@@ -4137,11 +4134,11 @@ function Sl(e, i, t, l, r, c) {
|
|
|
4137
4134
|
"sub-form-row-id": e.subFormRowId
|
|
4138
4135
|
}, {
|
|
4139
4136
|
default: a(() => [
|
|
4140
|
-
m(
|
|
4137
|
+
m(y, {
|
|
4141
4138
|
ref: "fieldEditor",
|
|
4142
4139
|
modelValue: e.fieldValue,
|
|
4143
4140
|
"onUpdate:modelValue": i[0] || (i[0] = (n) => e.fieldValue = n),
|
|
4144
|
-
class:
|
|
4141
|
+
class: v({ "check-group-block": e.field.options.displayStyle === "flex" }),
|
|
4145
4142
|
disabled: e.field.options.disabled,
|
|
4146
4143
|
size: e.widgetSize,
|
|
4147
4144
|
min: e.field.options.minCheck,
|
|
@@ -4158,7 +4155,7 @@ function Sl(e, i, t, l, r, c) {
|
|
|
4158
4155
|
style: j({ display: e.field.options.displayStyle })
|
|
4159
4156
|
}, {
|
|
4160
4157
|
default: a(() => [
|
|
4161
|
-
L(
|
|
4158
|
+
L(w(n.label), 1)
|
|
4162
4159
|
]),
|
|
4163
4160
|
_: 2
|
|
4164
4161
|
}, 1032, ["value", "disabled", "border", "style"]))), 128)) : (o(), h(F, { key: 1 }, [
|
|
@@ -4176,7 +4173,7 @@ function Sl(e, i, t, l, r, c) {
|
|
|
4176
4173
|
style: j({ display: e.field.options.displayStyle })
|
|
4177
4174
|
}, {
|
|
4178
4175
|
default: a(() => [
|
|
4179
|
-
L(
|
|
4176
|
+
L(w(n.label), 1)
|
|
4180
4177
|
]),
|
|
4181
4178
|
_: 2
|
|
4182
4179
|
}, 1032, ["value", "disabled", "border", "style"]))
|
|
@@ -4193,7 +4190,7 @@ function Sl(e, i, t, l, r, c) {
|
|
|
4193
4190
|
style: j({ display: e.field.options.displayStyle })
|
|
4194
4191
|
}, {
|
|
4195
4192
|
default: a(() => [
|
|
4196
|
-
L(
|
|
4193
|
+
L(w(n.label), 1)
|
|
4197
4194
|
]),
|
|
4198
4195
|
_: 2
|
|
4199
4196
|
}, 1032, ["value", "disabled", "border", "style"]))), 128))
|
|
@@ -4251,7 +4248,7 @@ const Rl = /* @__PURE__ */ R(Il, [["render", Sl], ["__scopeId", "data-v-41c9d41a
|
|
|
4251
4248
|
}
|
|
4252
4249
|
});
|
|
4253
4250
|
function kl(e, i, t, l, r, c) {
|
|
4254
|
-
const s =
|
|
4251
|
+
const s = wi, u = M;
|
|
4255
4252
|
return o(), d(u, {
|
|
4256
4253
|
"build-rules": e.rules,
|
|
4257
4254
|
field: e.field,
|
|
@@ -4414,7 +4411,7 @@ const jl = /* @__PURE__ */ R(Ll, [["render", El], ["__scopeId", "data-v-a95a64b8
|
|
|
4414
4411
|
handlePictureUpload(e) {
|
|
4415
4412
|
e.toBlob(async (i) => {
|
|
4416
4413
|
const t = new FormData();
|
|
4417
|
-
t.append("file", i, "crop-file.png"), t.append("formId", this.globalSdForm._id), t.append("category", "cropper"), await
|
|
4414
|
+
t.append("file", i, "crop-file.png"), t.append("formId", this.globalSdForm._id), t.append("category", "cropper"), await ne.post(this.realUploadURL, t, {
|
|
4418
4415
|
headers: {
|
|
4419
4416
|
Authorization: `Bearer ${this.globalAuthToken}`,
|
|
4420
4417
|
"Content-Type": "multipart/form-data"
|
|
@@ -4425,7 +4422,7 @@ const jl = /* @__PURE__ */ R(Ll, [["render", El], ["__scopeId", "data-v-a95a64b8
|
|
|
4425
4422
|
name: r.fileName,
|
|
4426
4423
|
status: "success",
|
|
4427
4424
|
url: r.filePath,
|
|
4428
|
-
uid:
|
|
4425
|
+
uid: ge(),
|
|
4429
4426
|
response: r
|
|
4430
4427
|
}, s = [c];
|
|
4431
4428
|
let u = null;
|
|
@@ -4442,7 +4439,7 @@ const jl = /* @__PURE__ */ R(Ll, [["render", El], ["__scopeId", "data-v-a95a64b8
|
|
|
4442
4439
|
const r = {
|
|
4443
4440
|
name: "crop-file.png",
|
|
4444
4441
|
status: "fail",
|
|
4445
|
-
uid:
|
|
4442
|
+
uid: ge()
|
|
4446
4443
|
};
|
|
4447
4444
|
this.handleUploadError(l, r, [r]), this.alert(l.message, "warning");
|
|
4448
4445
|
});
|
|
@@ -4476,7 +4473,7 @@ const jl = /* @__PURE__ */ R(Ll, [["render", El], ["__scopeId", "data-v-a95a64b8
|
|
|
4476
4473
|
},
|
|
4477
4474
|
handlePictureRemove(e) {
|
|
4478
4475
|
const i = e.response;
|
|
4479
|
-
this.handleBeforeRemove(this.fileList),
|
|
4476
|
+
this.handleBeforeRemove(this.fileList), ne.delete(`${this.globalApiUrl}/v1/files/remove-one`, {
|
|
4480
4477
|
data: i,
|
|
4481
4478
|
headers: {
|
|
4482
4479
|
Authorization: `Bearer ${this.globalAuthToken}`
|
|
@@ -4496,7 +4493,7 @@ const jl = /* @__PURE__ */ R(Ll, [["render", El], ["__scopeId", "data-v-a95a64b8
|
|
|
4496
4493
|
}
|
|
4497
4494
|
});
|
|
4498
4495
|
function Vl(e, i, t, l, r, c) {
|
|
4499
|
-
const s =
|
|
4496
|
+
const s = Ci, u = M;
|
|
4500
4497
|
return o(), d(u, {
|
|
4501
4498
|
"build-rules": e.rules,
|
|
4502
4499
|
field: e.field,
|
|
@@ -4675,7 +4672,7 @@ const zl = /* @__PURE__ */ R(Tl, [["render", Vl], ["__scopeId", "data-v-8f733f21
|
|
|
4675
4672
|
}
|
|
4676
4673
|
});
|
|
4677
4674
|
function Al(e, i, t, l, r, c) {
|
|
4678
|
-
const s = U, u = G, p =
|
|
4675
|
+
const s = U, u = G, p = ue, g = se, y = Ae, $ = E;
|
|
4679
4676
|
return o(), d($, {
|
|
4680
4677
|
"build-rules": e.rules,
|
|
4681
4678
|
field: e.field,
|
|
@@ -4686,12 +4683,12 @@ function Al(e, i, t, l, r, c) {
|
|
|
4686
4683
|
"index-of-parent-list": e.indexOfParentList,
|
|
4687
4684
|
"sub-form-row-index": e.subFormRowIndex,
|
|
4688
4685
|
"sub-form-col-index": e.subFormColIndex,
|
|
4689
|
-
class:
|
|
4686
|
+
class: v(["datagrid-container"]),
|
|
4690
4687
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left" }),
|
|
4691
4688
|
"sub-form-row-id": e.subFormRowId
|
|
4692
4689
|
}, {
|
|
4693
4690
|
default: a(() => [
|
|
4694
|
-
(o(), d(
|
|
4691
|
+
(o(), d(y, {
|
|
4695
4692
|
ref: "fieldEditor",
|
|
4696
4693
|
key: e.field.id,
|
|
4697
4694
|
"form-id": e.field.options.formId,
|
|
@@ -4768,13 +4765,13 @@ function Al(e, i, t, l, r, c) {
|
|
|
4768
4765
|
n.prefixIcon ? (o(), d(s, {
|
|
4769
4766
|
key: 0,
|
|
4770
4767
|
"icon-name": n.prefixIcon,
|
|
4771
|
-
class:
|
|
4768
|
+
class: v(n.label ? "" : "ml-1")
|
|
4772
4769
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
4773
|
-
S("span", null,
|
|
4770
|
+
S("span", null, w(n.label), 1),
|
|
4774
4771
|
n.suffixIcon ? (o(), d(s, {
|
|
4775
4772
|
key: 1,
|
|
4776
4773
|
"icon-name": n.suffixIcon,
|
|
4777
|
-
class:
|
|
4774
|
+
class: v(n.label ? "ml-1" : "")
|
|
4778
4775
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
4779
4776
|
]),
|
|
4780
4777
|
_: 2
|
|
@@ -4801,13 +4798,13 @@ function Al(e, i, t, l, r, c) {
|
|
|
4801
4798
|
n.prefixIcon ? (o(), d(s, {
|
|
4802
4799
|
key: 0,
|
|
4803
4800
|
"icon-name": n.prefixIcon,
|
|
4804
|
-
class:
|
|
4801
|
+
class: v(n.label ? "" : "ml-1")
|
|
4805
4802
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
4806
|
-
S("span", null,
|
|
4803
|
+
S("span", null, w(n.label), 1),
|
|
4807
4804
|
n.suffixIcon ? (o(), d(s, {
|
|
4808
4805
|
key: 1,
|
|
4809
4806
|
"icon-name": n.suffixIcon,
|
|
4810
|
-
class:
|
|
4807
|
+
class: v(n.label ? "ml-1" : "")
|
|
4811
4808
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
4812
4809
|
]),
|
|
4813
4810
|
_: 2
|
|
@@ -4845,13 +4842,13 @@ function Al(e, i, t, l, r, c) {
|
|
|
4845
4842
|
f.prefixIcon ? (o(), d(s, {
|
|
4846
4843
|
key: 0,
|
|
4847
4844
|
"icon-name": f.prefixIcon,
|
|
4848
|
-
class:
|
|
4845
|
+
class: v(f.label ? "" : "ml-1")
|
|
4849
4846
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
4850
|
-
S("span", null,
|
|
4847
|
+
S("span", null, w(f.label), 1),
|
|
4851
4848
|
f.suffixIcon ? (o(), d(s, {
|
|
4852
4849
|
key: 1,
|
|
4853
4850
|
"icon-name": f.suffixIcon,
|
|
4854
|
-
class:
|
|
4851
|
+
class: v(f.label ? "ml-1" : "")
|
|
4855
4852
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
4856
4853
|
]),
|
|
4857
4854
|
_: 2
|
|
@@ -4879,13 +4876,13 @@ function Al(e, i, t, l, r, c) {
|
|
|
4879
4876
|
f.prefixIcon ? (o(), d(s, {
|
|
4880
4877
|
key: 0,
|
|
4881
4878
|
"icon-name": f.prefixIcon,
|
|
4882
|
-
class:
|
|
4879
|
+
class: v(f.label ? "" : "ml-1")
|
|
4883
4880
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
4884
|
-
S("span", null,
|
|
4881
|
+
S("span", null, w(f.label), 1),
|
|
4885
4882
|
f.suffixIcon ? (o(), d(s, {
|
|
4886
4883
|
key: 1,
|
|
4887
4884
|
"icon-name": f.suffixIcon,
|
|
4888
|
-
class:
|
|
4885
|
+
class: v(f.label ? "ml-1" : "")
|
|
4889
4886
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
4890
4887
|
]),
|
|
4891
4888
|
_: 2
|
|
@@ -5045,7 +5042,7 @@ const Nl = /* @__PURE__ */ R(Bl, [["render", Al], ["__scopeId", "data-v-5bb788fc
|
|
|
5045
5042
|
}
|
|
5046
5043
|
});
|
|
5047
5044
|
function ql(e, i, t, l, r, c) {
|
|
5048
|
-
const s = U, u = G, p =
|
|
5045
|
+
const s = U, u = G, p = ue, g = se, y = Ae, $ = E;
|
|
5049
5046
|
return o(), d($, {
|
|
5050
5047
|
"build-rules": e.rules,
|
|
5051
5048
|
field: e.field,
|
|
@@ -5056,12 +5053,12 @@ function ql(e, i, t, l, r, c) {
|
|
|
5056
5053
|
"index-of-parent-list": e.indexOfParentList,
|
|
5057
5054
|
"sub-form-row-index": e.subFormRowIndex,
|
|
5058
5055
|
"sub-form-col-index": e.subFormColIndex,
|
|
5059
|
-
class:
|
|
5056
|
+
class: v(["datagrid-container"]),
|
|
5060
5057
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left" }),
|
|
5061
5058
|
"sub-form-row-id": e.subFormRowId
|
|
5062
5059
|
}, {
|
|
5063
5060
|
default: a(() => [
|
|
5064
|
-
(o(), d(
|
|
5061
|
+
(o(), d(y, {
|
|
5065
5062
|
ref: "fieldEditor",
|
|
5066
5063
|
key: e.field.id,
|
|
5067
5064
|
"form-id": e.field.options.sqlId,
|
|
@@ -5112,13 +5109,13 @@ function ql(e, i, t, l, r, c) {
|
|
|
5112
5109
|
n.prefixIcon ? (o(), d(s, {
|
|
5113
5110
|
key: 0,
|
|
5114
5111
|
"icon-name": n.prefixIcon,
|
|
5115
|
-
class:
|
|
5112
|
+
class: v(n.label ? "" : "ml-1")
|
|
5116
5113
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
5117
|
-
S("span", null,
|
|
5114
|
+
S("span", null, w(n.label), 1),
|
|
5118
5115
|
n.suffixIcon ? (o(), d(s, {
|
|
5119
5116
|
key: 1,
|
|
5120
5117
|
"icon-name": n.suffixIcon,
|
|
5121
|
-
class:
|
|
5118
|
+
class: v(n.label ? "ml-1" : "")
|
|
5122
5119
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
5123
5120
|
]),
|
|
5124
5121
|
_: 2
|
|
@@ -5145,13 +5142,13 @@ function ql(e, i, t, l, r, c) {
|
|
|
5145
5142
|
n.prefixIcon ? (o(), d(s, {
|
|
5146
5143
|
key: 0,
|
|
5147
5144
|
"icon-name": n.prefixIcon,
|
|
5148
|
-
class:
|
|
5145
|
+
class: v(n.label ? "" : "ml-1")
|
|
5149
5146
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
5150
|
-
S("span", null,
|
|
5147
|
+
S("span", null, w(n.label), 1),
|
|
5151
5148
|
n.suffixIcon ? (o(), d(s, {
|
|
5152
5149
|
key: 1,
|
|
5153
5150
|
"icon-name": n.suffixIcon,
|
|
5154
|
-
class:
|
|
5151
|
+
class: v(n.label ? "ml-1" : "")
|
|
5155
5152
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
5156
5153
|
]),
|
|
5157
5154
|
_: 2
|
|
@@ -5189,13 +5186,13 @@ function ql(e, i, t, l, r, c) {
|
|
|
5189
5186
|
f.prefixIcon ? (o(), d(s, {
|
|
5190
5187
|
key: 0,
|
|
5191
5188
|
"icon-name": f.prefixIcon,
|
|
5192
|
-
class:
|
|
5189
|
+
class: v(f.label ? "" : "ml-1")
|
|
5193
5190
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
5194
|
-
S("span", null,
|
|
5191
|
+
S("span", null, w(f.label), 1),
|
|
5195
5192
|
f.suffixIcon ? (o(), d(s, {
|
|
5196
5193
|
key: 1,
|
|
5197
5194
|
"icon-name": f.suffixIcon,
|
|
5198
|
-
class:
|
|
5195
|
+
class: v(f.label ? "ml-1" : "")
|
|
5199
5196
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
5200
5197
|
]),
|
|
5201
5198
|
_: 2
|
|
@@ -5223,13 +5220,13 @@ function ql(e, i, t, l, r, c) {
|
|
|
5223
5220
|
f.prefixIcon ? (o(), d(s, {
|
|
5224
5221
|
key: 0,
|
|
5225
5222
|
"icon-name": f.prefixIcon,
|
|
5226
|
-
class:
|
|
5223
|
+
class: v(f.label ? "" : "ml-1")
|
|
5227
5224
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
5228
|
-
S("span", null,
|
|
5225
|
+
S("span", null, w(f.label), 1),
|
|
5229
5226
|
f.suffixIcon ? (o(), d(s, {
|
|
5230
5227
|
key: 1,
|
|
5231
5228
|
"icon-name": f.suffixIcon,
|
|
5232
|
-
class:
|
|
5229
|
+
class: v(f.label ? "ml-1" : "")
|
|
5233
5230
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
5234
5231
|
]),
|
|
5235
5232
|
_: 2
|
|
@@ -5281,8 +5278,8 @@ const Gl = /* @__PURE__ */ R(Wl, [["render", ql], ["__scopeId", "data-v-a5d7e3da
|
|
|
5281
5278
|
this.unregisterFromRefList();
|
|
5282
5279
|
}
|
|
5283
5280
|
});
|
|
5284
|
-
function
|
|
5285
|
-
const s =
|
|
5281
|
+
function Kl(e, i, t, l, r, c) {
|
|
5282
|
+
const s = Ce, u = M;
|
|
5286
5283
|
return o(), d(u, {
|
|
5287
5284
|
"build-rules": e.rules,
|
|
5288
5285
|
field: e.field,
|
|
@@ -5297,7 +5294,7 @@ function Ql(e, i, t, l, r, c) {
|
|
|
5297
5294
|
}, {
|
|
5298
5295
|
default: a(() => [
|
|
5299
5296
|
S("div", {
|
|
5300
|
-
class:
|
|
5297
|
+
class: v([e.field.options.autoFullWidth ? "auto-full-width" : ""])
|
|
5301
5298
|
}, [
|
|
5302
5299
|
m(s, {
|
|
5303
5300
|
ref: "fieldEditor",
|
|
@@ -5322,9 +5319,9 @@ function Ql(e, i, t, l, r, c) {
|
|
|
5322
5319
|
_: 1
|
|
5323
5320
|
}, 8, ["build-rules", "field", "builder", "builder-status", "parent-field", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
5324
5321
|
}
|
|
5325
|
-
const
|
|
5322
|
+
const Ql = /* @__PURE__ */ R(Zl, [["render", Kl], ["__scopeId", "data-v-9c2695f4"]]), Yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5326
5323
|
__proto__: null,
|
|
5327
|
-
default:
|
|
5324
|
+
default: Ql
|
|
5328
5325
|
}, Symbol.toStringTag, { value: "Module" })), Xl = I({
|
|
5329
5326
|
name: "date-range-input",
|
|
5330
5327
|
typeName: "FormField",
|
|
@@ -5361,7 +5358,7 @@ const Kl = /* @__PURE__ */ R(Zl, [["render", Ql], ["__scopeId", "data-v-9c2695f4
|
|
|
5361
5358
|
}
|
|
5362
5359
|
});
|
|
5363
5360
|
function _l(e, i, t, l, r, c) {
|
|
5364
|
-
const s =
|
|
5361
|
+
const s = Ce, u = M;
|
|
5365
5362
|
return o(), d(u, {
|
|
5366
5363
|
"build-rules": e.rules,
|
|
5367
5364
|
field: e.field,
|
|
@@ -5428,7 +5425,7 @@ const xl = /* @__PURE__ */ R(Xl, [["render", _l], ["__scopeId", "data-v-f3d27354
|
|
|
5428
5425
|
}
|
|
5429
5426
|
});
|
|
5430
5427
|
function on(e, i, t, l, r, c) {
|
|
5431
|
-
const s =
|
|
5428
|
+
const s = Ge, u = E;
|
|
5432
5429
|
return o(), d(u, {
|
|
5433
5430
|
"build-rules": e.rules,
|
|
5434
5431
|
field: e.field,
|
|
@@ -5449,7 +5446,7 @@ function on(e, i, t, l, r, c) {
|
|
|
5449
5446
|
"content-position": e.field.options.contentPosition
|
|
5450
5447
|
}, {
|
|
5451
5448
|
default: a(() => [
|
|
5452
|
-
L(
|
|
5449
|
+
L(w(e.field.options.label), 1)
|
|
5453
5450
|
]),
|
|
5454
5451
|
_: 1
|
|
5455
5452
|
}, 8, ["content-position"]))
|
|
@@ -5500,7 +5497,7 @@ const ln = /* @__PURE__ */ R(tn, [["render", on]]), nn = /* @__PURE__ */ Object.
|
|
|
5500
5497
|
}
|
|
5501
5498
|
});
|
|
5502
5499
|
function rn(e, i, t, l, r, c) {
|
|
5503
|
-
const s = U, u = J("arrow-down"), p =
|
|
5500
|
+
const s = U, u = J("arrow-down"), p = re, g = G, y = it, $ = et, n = xi, f = E;
|
|
5504
5501
|
return o(), d(f, {
|
|
5505
5502
|
"build-rules": e.rules,
|
|
5506
5503
|
field: e.field,
|
|
@@ -5515,7 +5512,7 @@ function rn(e, i, t, l, r, c) {
|
|
|
5515
5512
|
}, {
|
|
5516
5513
|
default: a(() => [
|
|
5517
5514
|
S("div", {
|
|
5518
|
-
class:
|
|
5515
|
+
class: v({ paragraph: !!e.field.options.paragraph }),
|
|
5519
5516
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left", marginBottom: e.field.options.marginBottom + "px" })
|
|
5520
5517
|
}, [
|
|
5521
5518
|
(o(), d(n, {
|
|
@@ -5530,7 +5527,7 @@ function rn(e, i, t, l, r, c) {
|
|
|
5530
5527
|
dropdown: a(() => [
|
|
5531
5528
|
e.field.options.menuList && Object.keys(e.field.options.menuList).length > 0 ? (o(), d($, { key: 0 }, {
|
|
5532
5529
|
default: a(() => [
|
|
5533
|
-
(o(!0), h(F, null, T(e.field.options.menuList, (k, V) => (o(), d(
|
|
5530
|
+
(o(!0), h(F, null, T(e.field.options.menuList, (k, V) => (o(), d(y, {
|
|
5534
5531
|
command: k.command,
|
|
5535
5532
|
divided: k.divided,
|
|
5536
5533
|
disabled: k.disabled
|
|
@@ -5540,7 +5537,7 @@ function rn(e, i, t, l, r, c) {
|
|
|
5540
5537
|
key: 0,
|
|
5541
5538
|
"icon-name": k.icon
|
|
5542
5539
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
5543
|
-
L(" " +
|
|
5540
|
+
L(" " + w(k.label), 1)
|
|
5544
5541
|
]),
|
|
5545
5542
|
_: 2
|
|
5546
5543
|
}, 1032, ["command", "divided", "disabled"]))), 256))
|
|
@@ -5561,7 +5558,7 @@ function rn(e, i, t, l, r, c) {
|
|
|
5561
5558
|
"icon-name": e.field.options.prefixIcon,
|
|
5562
5559
|
class: "mr-1"
|
|
5563
5560
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
5564
|
-
L(" " +
|
|
5561
|
+
L(" " + w(e.field.options.label || "Menu") + " ", 1),
|
|
5565
5562
|
m(p, { class: "el-icon--right" }, {
|
|
5566
5563
|
default: a(() => [
|
|
5567
5564
|
m(u)
|
|
@@ -5579,7 +5576,7 @@ function rn(e, i, t, l, r, c) {
|
|
|
5579
5576
|
key: 0,
|
|
5580
5577
|
"icon-name": e.field.options.prefixIcon
|
|
5581
5578
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
5582
|
-
L(" " +
|
|
5579
|
+
L(" " + w(e.field.options.label || "Menu") + " ", 1),
|
|
5583
5580
|
m(p, { class: "el-icon--right" }, {
|
|
5584
5581
|
default: a(() => [
|
|
5585
5582
|
m(u)
|
|
@@ -5643,7 +5640,7 @@ const dn = /* @__PURE__ */ R(sn, [["render", rn], ["__scopeId", "data-v-d687104d
|
|
|
5643
5640
|
}
|
|
5644
5641
|
});
|
|
5645
5642
|
function un(e, i, t, l, r, c) {
|
|
5646
|
-
const s =
|
|
5643
|
+
const s = Be, u = M;
|
|
5647
5644
|
return o(), d(u, {
|
|
5648
5645
|
"build-rules": e.rules,
|
|
5649
5646
|
field: e.field,
|
|
@@ -5787,7 +5784,7 @@ const pn = /* @__PURE__ */ R(fn, [["render", un]]), mn = /* @__PURE__ */ Object.
|
|
|
5787
5784
|
cancelButtonText: "Cancel",
|
|
5788
5785
|
type: "warning"
|
|
5789
5786
|
}).then(() => {
|
|
5790
|
-
|
|
5787
|
+
ne.delete(`${this.globalApiUrl}/v1/files/remove-one`, {
|
|
5791
5788
|
data: i,
|
|
5792
5789
|
headers: {
|
|
5793
5790
|
Authorization: `Bearer ${this.globalAuthToken}`
|
|
@@ -5823,7 +5820,7 @@ const pn = /* @__PURE__ */ R(fn, [["render", un]]), mn = /* @__PURE__ */ Object.
|
|
|
5823
5820
|
class: "el-upload__tip"
|
|
5824
5821
|
};
|
|
5825
5822
|
function wn(e, i, t, l, r, c) {
|
|
5826
|
-
const s = G, u = J("Document"), p =
|
|
5823
|
+
const s = G, u = J("Document"), p = re, g = Ge, y = U, $ = J("Delete"), n = Ie, f = M;
|
|
5827
5824
|
return o(), d(f, {
|
|
5828
5825
|
"build-rules": e.rules,
|
|
5829
5826
|
field: e.field,
|
|
@@ -5839,7 +5836,7 @@ function wn(e, i, t, l, r, c) {
|
|
|
5839
5836
|
default: a(() => [
|
|
5840
5837
|
m(n, {
|
|
5841
5838
|
style: { width: "100%" },
|
|
5842
|
-
class:
|
|
5839
|
+
class: v(["fileUploadInput", { hideUploadDiv: e.uploadBtnHidden }]),
|
|
5843
5840
|
ref: "fieldEditor",
|
|
5844
5841
|
disabled: e.field.options.disabled || !!e.builderStatus,
|
|
5845
5842
|
action: e.realUploadURL,
|
|
@@ -5868,7 +5865,7 @@ function wn(e, i, t, l, r, c) {
|
|
|
5868
5865
|
]),
|
|
5869
5866
|
_: 1
|
|
5870
5867
|
}),
|
|
5871
|
-
L(" " +
|
|
5868
|
+
L(" " + w(k.name), 1)
|
|
5872
5869
|
], 8, bn),
|
|
5873
5870
|
m(g, { direction: "vertical" }),
|
|
5874
5871
|
S("a", {
|
|
@@ -5877,7 +5874,7 @@ function wn(e, i, t, l, r, c) {
|
|
|
5877
5874
|
target: "_blank"
|
|
5878
5875
|
}, [
|
|
5879
5876
|
S("span", Fn, [
|
|
5880
|
-
m(
|
|
5877
|
+
m(y, { "icon-name": "addon-download" })
|
|
5881
5878
|
])
|
|
5882
5879
|
], 8, gn),
|
|
5883
5880
|
e.field.options.disabled ? b("", !0) : (o(), h(F, { key: 0 }, [
|
|
@@ -5898,7 +5895,7 @@ function wn(e, i, t, l, r, c) {
|
|
|
5898
5895
|
])
|
|
5899
5896
|
]),
|
|
5900
5897
|
tip: a(() => [
|
|
5901
|
-
e.field.options.uploadTip ? (o(), h("div", vn,
|
|
5898
|
+
e.field.options.uploadTip ? (o(), h("div", vn, w(e.field.options.uploadTip), 1)) : b("", !0)
|
|
5902
5899
|
]),
|
|
5903
5900
|
default: a(() => [
|
|
5904
5901
|
m(s, {
|
|
@@ -6108,7 +6105,7 @@ const Mn = /* @__PURE__ */ R(Sn, [["render", Rn], ["__scopeId", "data-v-621ec067
|
|
|
6108
6105
|
}
|
|
6109
6106
|
});
|
|
6110
6107
|
function Pn(e, i, t, l, r, c) {
|
|
6111
|
-
const s =
|
|
6108
|
+
const s = me, u = M;
|
|
6112
6109
|
return o(), d(u, {
|
|
6113
6110
|
"build-rules": e.rules,
|
|
6114
6111
|
field: e.field,
|
|
@@ -6172,7 +6169,7 @@ const $n = /* @__PURE__ */ R(kn, [["render", Pn]]), Ln = /* @__PURE__ */ Object.
|
|
|
6172
6169
|
}
|
|
6173
6170
|
});
|
|
6174
6171
|
function jn(e, i, t, l, r, c) {
|
|
6175
|
-
const s =
|
|
6172
|
+
const s = me, u = E;
|
|
6176
6173
|
return o(), d(u, {
|
|
6177
6174
|
"build-rules": e.rules,
|
|
6178
6175
|
field: e.field,
|
|
@@ -6252,7 +6249,7 @@ const Dn = /* @__PURE__ */ R(En, [["render", jn]]), Tn = /* @__PURE__ */ Object.
|
|
|
6252
6249
|
let i = [];
|
|
6253
6250
|
if (this.field.options.sourcePath)
|
|
6254
6251
|
for (const t in e) {
|
|
6255
|
-
const l = e[t], r =
|
|
6252
|
+
const l = e[t], r = ye(l, this.field.options.sourcePath);
|
|
6256
6253
|
if (r && typeof r == "object")
|
|
6257
6254
|
for (const c in r) {
|
|
6258
6255
|
let s = r[c];
|
|
@@ -6303,7 +6300,7 @@ const Dn = /* @__PURE__ */ R(En, [["render", jn]]), Tn = /* @__PURE__ */ Object.
|
|
|
6303
6300
|
}
|
|
6304
6301
|
});
|
|
6305
6302
|
function zn(e, i, t, l, r, c) {
|
|
6306
|
-
const s =
|
|
6303
|
+
const s = Ii, u = M;
|
|
6307
6304
|
return o(), d(u, {
|
|
6308
6305
|
"build-rules": e.rules,
|
|
6309
6306
|
field: e.field,
|
|
@@ -6366,7 +6363,7 @@ const Un = /* @__PURE__ */ R(Vn, [["render", zn], ["__scopeId", "data-v-967ebc26
|
|
|
6366
6363
|
}
|
|
6367
6364
|
}), Nn = { class: "image-slot" };
|
|
6368
6365
|
function Hn(e, i, t, l, r, c) {
|
|
6369
|
-
const s = U, u =
|
|
6366
|
+
const s = U, u = Je, p = E;
|
|
6370
6367
|
return o(), d(p, {
|
|
6371
6368
|
"build-rules": e.rules,
|
|
6372
6369
|
field: e.field,
|
|
@@ -6493,7 +6490,7 @@ function Jn(e, i, t, l, r, c) {
|
|
|
6493
6490
|
style: { width: "100%" },
|
|
6494
6491
|
"navigation-bar": !1,
|
|
6495
6492
|
size: e.widgetSize,
|
|
6496
|
-
class:
|
|
6493
|
+
class: v(e.isDark ? "jse-theme-dark" : ""),
|
|
6497
6494
|
"read-only": e.field.options.disabled,
|
|
6498
6495
|
onChange: e.handleChange
|
|
6499
6496
|
}, null, 8, ["modelValue", "mode", "size", "class", "read-only", "onChange"])
|
|
@@ -6501,10 +6498,10 @@ function Jn(e, i, t, l, r, c) {
|
|
|
6501
6498
|
_: 1
|
|
6502
6499
|
}, 8, ["build-rules", "field", "builder", "builder-status", "parent-field", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
6503
6500
|
}
|
|
6504
|
-
const Zn = /* @__PURE__ */ R(Gn, [["render", Jn]]),
|
|
6501
|
+
const Zn = /* @__PURE__ */ R(Gn, [["render", Jn]]), Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6505
6502
|
__proto__: null,
|
|
6506
6503
|
default: Zn
|
|
6507
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6504
|
+
}, Symbol.toStringTag, { value: "Module" })), Qn = I({
|
|
6508
6505
|
name: "link-ui",
|
|
6509
6506
|
typeName: "FormField",
|
|
6510
6507
|
components: {
|
|
@@ -6547,7 +6544,7 @@ function Yn(e, i, t, l, r, c) {
|
|
|
6547
6544
|
(o(), h("div", {
|
|
6548
6545
|
ref: "fieldEditor",
|
|
6549
6546
|
key: e.field.id,
|
|
6550
|
-
class:
|
|
6547
|
+
class: v({ paragraph: !!e.field.options.paragraph }),
|
|
6551
6548
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left", marginBottom: e.field.options.marginBottom + "px" })
|
|
6552
6549
|
}, [
|
|
6553
6550
|
m(p, {
|
|
@@ -6556,7 +6553,7 @@ function Yn(e, i, t, l, r, c) {
|
|
|
6556
6553
|
href: e.field.options.href,
|
|
6557
6554
|
target: e.field.options.target,
|
|
6558
6555
|
style: j({ fontSize: e.field.options.fontSize + "px" }),
|
|
6559
|
-
class:
|
|
6556
|
+
class: v({ bold: !!e.field.options.bold, italic: !!e.field.options.italic })
|
|
6560
6557
|
}, {
|
|
6561
6558
|
default: a(() => [
|
|
6562
6559
|
e.field.options.labelIconClass && e.field.options.labelIconPosition === "front" ? (o(), h(F, { key: 0 }, [
|
|
@@ -6576,7 +6573,7 @@ function Yn(e, i, t, l, r, c) {
|
|
|
6576
6573
|
"icon-name": e.field.options.labelIconClass
|
|
6577
6574
|
}, null, 8, ["icon-name"]))
|
|
6578
6575
|
], 64)) : b("", !0),
|
|
6579
|
-
L(" " +
|
|
6576
|
+
L(" " + w(e.field.options.content) + " ", 1),
|
|
6580
6577
|
e.field.options.labelIconClass && e.field.options.labelIconPosition === "rear" ? (o(), h(F, { key: 1 }, [
|
|
6581
6578
|
e.field.options.labelTooltip ? (o(), d(u, {
|
|
6582
6579
|
key: 0,
|
|
@@ -6602,7 +6599,7 @@ function Yn(e, i, t, l, r, c) {
|
|
|
6602
6599
|
_: 1
|
|
6603
6600
|
}, 8, ["build-rules", "field", "builder", "builder-status", "parent-field", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
6604
6601
|
}
|
|
6605
|
-
const Xn = /* @__PURE__ */ R(
|
|
6602
|
+
const Xn = /* @__PURE__ */ R(Qn, [["render", Yn], ["__scopeId", "data-v-f3464b8f"]]), _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6606
6603
|
__proto__: null,
|
|
6607
6604
|
default: Xn
|
|
6608
6605
|
}, Symbol.toStringTag, { value: "Module" })), xn = I({
|
|
@@ -6728,7 +6725,7 @@ const Xn = /* @__PURE__ */ R(Kn, [["render", Yn], ["__scopeId", "data-v-f3464b8f
|
|
|
6728
6725
|
}
|
|
6729
6726
|
});
|
|
6730
6727
|
function es(e, i, t, l, r, c) {
|
|
6731
|
-
const s =
|
|
6728
|
+
const s = se, u = U, p = G, g = ue, y = Si, $ = E;
|
|
6732
6729
|
return o(), d($, {
|
|
6733
6730
|
"build-rules": e.rules,
|
|
6734
6731
|
field: e.field,
|
|
@@ -6739,12 +6736,12 @@ function es(e, i, t, l, r, c) {
|
|
|
6739
6736
|
"index-of-parent-list": e.indexOfParentList,
|
|
6740
6737
|
"sub-form-row-index": e.subFormRowIndex,
|
|
6741
6738
|
"sub-form-col-index": e.subFormColIndex,
|
|
6742
|
-
class:
|
|
6739
|
+
class: v(["datagrid-container"]),
|
|
6743
6740
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left" }),
|
|
6744
6741
|
"sub-form-row-id": e.subFormRowId
|
|
6745
6742
|
}, {
|
|
6746
6743
|
default: a(() => [
|
|
6747
|
-
(o(), d(
|
|
6744
|
+
(o(), d(y, {
|
|
6748
6745
|
ref: "fieldEditor",
|
|
6749
6746
|
key: e.field.id,
|
|
6750
6747
|
"form-id": e.field.options.formId,
|
|
@@ -6825,13 +6822,13 @@ function es(e, i, t, l, r, c) {
|
|
|
6825
6822
|
f.prefixIcon ? (o(), d(u, {
|
|
6826
6823
|
key: 0,
|
|
6827
6824
|
"icon-name": f.prefixIcon,
|
|
6828
|
-
class:
|
|
6825
|
+
class: v(f.label ? "" : "ml-1")
|
|
6829
6826
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
6830
|
-
S("span", null,
|
|
6827
|
+
S("span", null, w(f.label), 1),
|
|
6831
6828
|
f.suffixIcon ? (o(), d(u, {
|
|
6832
6829
|
key: 1,
|
|
6833
6830
|
"icon-name": f.suffixIcon,
|
|
6834
|
-
class:
|
|
6831
|
+
class: v(f.label ? "ml-1" : "")
|
|
6835
6832
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
6836
6833
|
]),
|
|
6837
6834
|
_: 2
|
|
@@ -6859,13 +6856,13 @@ function es(e, i, t, l, r, c) {
|
|
|
6859
6856
|
f.prefixIcon ? (o(), d(u, {
|
|
6860
6857
|
key: 0,
|
|
6861
6858
|
"icon-name": f.prefixIcon,
|
|
6862
|
-
class:
|
|
6859
|
+
class: v(f.label ? "" : "ml-1")
|
|
6863
6860
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
6864
|
-
S("span", null,
|
|
6861
|
+
S("span", null, w(f.label), 1),
|
|
6865
6862
|
f.suffixIcon ? (o(), d(u, {
|
|
6866
6863
|
key: 1,
|
|
6867
6864
|
"icon-name": f.suffixIcon,
|
|
6868
|
-
class:
|
|
6865
|
+
class: v(f.label ? "ml-1" : "")
|
|
6869
6866
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
6870
6867
|
]),
|
|
6871
6868
|
_: 2
|
|
@@ -6924,7 +6921,7 @@ const is = /* @__PURE__ */ R(xn, [["render", es], ["__scopeId", "data-v-3d2f602e
|
|
|
6924
6921
|
}
|
|
6925
6922
|
}), ls = { class: "el-input__wrapper el-input__wrapper" };
|
|
6926
6923
|
function ns(e, i, t, l, r, c) {
|
|
6927
|
-
const s =
|
|
6924
|
+
const s = Ri, u = M;
|
|
6928
6925
|
return o(), d(u, {
|
|
6929
6926
|
"build-rules": e.rules,
|
|
6930
6927
|
field: e.field,
|
|
@@ -6939,7 +6936,7 @@ function ns(e, i, t, l, r, c) {
|
|
|
6939
6936
|
}, {
|
|
6940
6937
|
default: a(() => [
|
|
6941
6938
|
S("div", {
|
|
6942
|
-
class:
|
|
6939
|
+
class: v(["el-input el-input", { "el-input--small": e.smallSize, "el-input--large": e.largeSize, "is-disabled": e.field.options.disabled }])
|
|
6943
6940
|
}, [
|
|
6944
6941
|
S("div", ls, [
|
|
6945
6942
|
m(s, {
|
|
@@ -7006,7 +7003,7 @@ const ss = /* @__PURE__ */ R(os, [["render", ns]]), rs = /* @__PURE__ */ Object.
|
|
|
7006
7003
|
}
|
|
7007
7004
|
});
|
|
7008
7005
|
function as(e, i, t, l, r, c) {
|
|
7009
|
-
const s =
|
|
7006
|
+
const s = Ce, u = M;
|
|
7010
7007
|
return o(), d(u, {
|
|
7011
7008
|
"build-rules": e.rules,
|
|
7012
7009
|
field: e.field,
|
|
@@ -7021,7 +7018,7 @@ function as(e, i, t, l, r, c) {
|
|
|
7021
7018
|
}, {
|
|
7022
7019
|
default: a(() => [
|
|
7023
7020
|
S("div", {
|
|
7024
|
-
class:
|
|
7021
|
+
class: v([e.field.options.autoFullWidth ? "auto-full-width" : ""])
|
|
7025
7022
|
}, [
|
|
7026
7023
|
m(s, {
|
|
7027
7024
|
ref: "fieldEditor",
|
|
@@ -7114,7 +7111,7 @@ function cs(e, i, t, l, r, c) {
|
|
|
7114
7111
|
ref: "fieldEditor",
|
|
7115
7112
|
modelValue: e.fieldValue,
|
|
7116
7113
|
"onUpdate:modelValue": i[0] || (i[0] = (g) => e.fieldValue = g),
|
|
7117
|
-
class:
|
|
7114
|
+
class: v(["full-width-input", { "left-input": e.field.options.controlsPosition == "right" }]),
|
|
7118
7115
|
disabled: e.field.options.disabled,
|
|
7119
7116
|
size: e.widgetSize,
|
|
7120
7117
|
"controls-position": e.field.options.controlsPosition,
|
|
@@ -7135,7 +7132,7 @@ function cs(e, i, t, l, r, c) {
|
|
|
7135
7132
|
"icon-name": e.field.options.prefixIcon,
|
|
7136
7133
|
class: "mr-1"
|
|
7137
7134
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
7138
|
-
e.field.options.prefixText ? (o(), h("span", ms,
|
|
7135
|
+
e.field.options.prefixText ? (o(), h("span", ms, w(e.field.options.prefixText), 1)) : b("", !0)
|
|
7139
7136
|
]),
|
|
7140
7137
|
key: "0"
|
|
7141
7138
|
} : void 0,
|
|
@@ -7148,7 +7145,7 @@ function cs(e, i, t, l, r, c) {
|
|
|
7148
7145
|
class: "mr-1"
|
|
7149
7146
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
7150
7147
|
i[1] || (i[1] = L()),
|
|
7151
|
-
e.field.options.suffixText ? (o(), h("span", hs,
|
|
7148
|
+
e.field.options.suffixText ? (o(), h("span", hs, w(e.field.options.suffixText), 1)) : b("", !0)
|
|
7152
7149
|
]),
|
|
7153
7150
|
key: "1"
|
|
7154
7151
|
} : void 0
|
|
@@ -7199,7 +7196,7 @@ const bs = /* @__PURE__ */ R(ps, [["render", cs], ["__scopeId", "data-v-fb135eaa
|
|
|
7199
7196
|
}
|
|
7200
7197
|
});
|
|
7201
7198
|
function ys(e, i, t, l, r, c) {
|
|
7202
|
-
const s = U, u =
|
|
7199
|
+
const s = U, u = fe, p = M;
|
|
7203
7200
|
return o(), d(p, {
|
|
7204
7201
|
"build-rules": e.rules,
|
|
7205
7202
|
field: e.field,
|
|
@@ -7242,14 +7239,14 @@ function ys(e, i, t, l, r, c) {
|
|
|
7242
7239
|
e.field.options.prefixText ? {
|
|
7243
7240
|
name: "prepend",
|
|
7244
7241
|
fn: a(() => [
|
|
7245
|
-
L(
|
|
7242
|
+
L(w(e.field.options.prefixText), 1)
|
|
7246
7243
|
]),
|
|
7247
7244
|
key: "0"
|
|
7248
7245
|
} : void 0,
|
|
7249
7246
|
e.field.options.suffixText ? {
|
|
7250
7247
|
name: "append",
|
|
7251
7248
|
fn: a(() => [
|
|
7252
|
-
L(
|
|
7249
|
+
L(w(e.field.options.suffixText), 1)
|
|
7253
7250
|
]),
|
|
7254
7251
|
key: "1"
|
|
7255
7252
|
} : void 0,
|
|
@@ -7385,7 +7382,7 @@ const vs = /* @__PURE__ */ R(Fs, [["render", ys]]), ws = /* @__PURE__ */ Object.
|
|
|
7385
7382
|
cancelButtonText: "Cancel",
|
|
7386
7383
|
type: "warning"
|
|
7387
7384
|
}).then(() => {
|
|
7388
|
-
this.handleBeforeRemove(this.fileList),
|
|
7385
|
+
this.handleBeforeRemove(this.fileList), ne.delete(`${this.globalApiUrl}/v1/files/remove-one`, {
|
|
7389
7386
|
data: i,
|
|
7390
7387
|
headers: {
|
|
7391
7388
|
Authorization: `Bearer ${this.globalAuthToken}`
|
|
@@ -7421,7 +7418,7 @@ const vs = /* @__PURE__ */ R(Fs, [["render", ys]]), ws = /* @__PURE__ */ Object.
|
|
|
7421
7418
|
class: "el-upload__tip"
|
|
7422
7419
|
};
|
|
7423
7420
|
function ks(e, i, t, l, r, c) {
|
|
7424
|
-
const s =
|
|
7421
|
+
const s = Je, u = J("Check"), p = re, g = J("ZoomIn"), y = J("Delete"), $ = J("Plus"), n = Ie, f = M;
|
|
7425
7422
|
return o(), d(f, {
|
|
7426
7423
|
"build-rules": e.rules,
|
|
7427
7424
|
field: e.field,
|
|
@@ -7436,7 +7433,7 @@ function ks(e, i, t, l, r, c) {
|
|
|
7436
7433
|
}, {
|
|
7437
7434
|
default: a(() => [
|
|
7438
7435
|
m(n, {
|
|
7439
|
-
class:
|
|
7436
|
+
class: v({ hideUploadDiv: e.uploadBtnHidden }),
|
|
7440
7437
|
ref: "fieldEditor",
|
|
7441
7438
|
disabled: e.field.options.disabled || !!e.builderStatus,
|
|
7442
7439
|
action: e.realUploadURL,
|
|
@@ -7492,7 +7489,7 @@ function ks(e, i, t, l, r, c) {
|
|
|
7492
7489
|
}, [
|
|
7493
7490
|
m(p, null, {
|
|
7494
7491
|
default: a(() => [
|
|
7495
|
-
m(
|
|
7492
|
+
m(y)
|
|
7496
7493
|
]),
|
|
7497
7494
|
_: 1
|
|
7498
7495
|
})
|
|
@@ -7500,7 +7497,7 @@ function ks(e, i, t, l, r, c) {
|
|
|
7500
7497
|
])
|
|
7501
7498
|
]),
|
|
7502
7499
|
tip: a(() => [
|
|
7503
|
-
e.field.options.uploadTip ? (o(), h("div", Os,
|
|
7500
|
+
e.field.options.uploadTip ? (o(), h("div", Os, w(e.field.options.uploadTip), 1)) : b("", !0)
|
|
7504
7501
|
]),
|
|
7505
7502
|
default: a(() => [
|
|
7506
7503
|
m(p, null, {
|
|
@@ -7639,11 +7636,11 @@ function Vs(e, i, t, l, r, c) {
|
|
|
7639
7636
|
(o(), h("div", {
|
|
7640
7637
|
ref: "fieldEditor",
|
|
7641
7638
|
key: e.field.id,
|
|
7642
|
-
class:
|
|
7639
|
+
class: v({ paragraph: !!e.field.options.paragraph }),
|
|
7643
7640
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left", marginBottom: e.field.options.marginBottom + "px" })
|
|
7644
7641
|
}, [
|
|
7645
7642
|
S("span", {
|
|
7646
|
-
class:
|
|
7643
|
+
class: v([e.field.options.sizeClass ? e.field.options.sizeClass : "text-6"])
|
|
7647
7644
|
}, [
|
|
7648
7645
|
e.field.options.textValue ? (o(), d(s, {
|
|
7649
7646
|
key: 0,
|
|
@@ -7696,7 +7693,7 @@ const zs = /* @__PURE__ */ R(Ts, [["render", Vs], ["__scopeId", "data-v-14161622
|
|
|
7696
7693
|
}
|
|
7697
7694
|
});
|
|
7698
7695
|
function As(e, i, t, l, r, c) {
|
|
7699
|
-
const s = st, u = Ke, p =
|
|
7696
|
+
const s = st, u = Ke, p = de, g = ae, y = Ze, $ = M;
|
|
7700
7697
|
return o(), d($, {
|
|
7701
7698
|
"build-rules": e.rules,
|
|
7702
7699
|
field: e.field,
|
|
@@ -7710,11 +7707,11 @@ function As(e, i, t, l, r, c) {
|
|
|
7710
7707
|
"sub-form-row-id": e.subFormRowId
|
|
7711
7708
|
}, {
|
|
7712
7709
|
default: a(() => [
|
|
7713
|
-
m(
|
|
7710
|
+
m(y, {
|
|
7714
7711
|
ref: "fieldEditor",
|
|
7715
7712
|
modelValue: e.fieldValue,
|
|
7716
7713
|
"onUpdate:modelValue": i[0] || (i[0] = (n) => e.fieldValue = n),
|
|
7717
|
-
class:
|
|
7714
|
+
class: v({ "radio-group-block": e.field.options.displayStyle === "flex" }),
|
|
7718
7715
|
disabled: e.field.options.disabled,
|
|
7719
7716
|
size: e.widgetSize,
|
|
7720
7717
|
style: { width: "100%" },
|
|
@@ -7729,7 +7726,7 @@ function As(e, i, t, l, r, c) {
|
|
|
7729
7726
|
style: j({ display: e.field.options.displayStyle })
|
|
7730
7727
|
}, {
|
|
7731
7728
|
default: a(() => [
|
|
7732
|
-
L(
|
|
7729
|
+
L(w(n.label), 1)
|
|
7733
7730
|
]),
|
|
7734
7731
|
_: 2
|
|
7735
7732
|
}, 1032, ["value", "disabled", "border", "style"]))), 128)) : (o(), h(F, { key: 1 }, [
|
|
@@ -7747,7 +7744,7 @@ function As(e, i, t, l, r, c) {
|
|
|
7747
7744
|
style: j({ display: e.field.options.displayStyle })
|
|
7748
7745
|
}, {
|
|
7749
7746
|
default: a(() => [
|
|
7750
|
-
L(
|
|
7747
|
+
L(w(n.label), 1)
|
|
7751
7748
|
]),
|
|
7752
7749
|
_: 2
|
|
7753
7750
|
}, 1032, ["value", "disabled", "border", "style"]))
|
|
@@ -7764,7 +7761,7 @@ function As(e, i, t, l, r, c) {
|
|
|
7764
7761
|
style: j({ display: e.field.options.displayStyle })
|
|
7765
7762
|
}, {
|
|
7766
7763
|
default: a(() => [
|
|
7767
|
-
L(
|
|
7764
|
+
L(w(n.label), 1)
|
|
7768
7765
|
]),
|
|
7769
7766
|
_: 2
|
|
7770
7767
|
}, 1032, ["value", "disabled", "border", "style"]))), 128))
|
|
@@ -7845,7 +7842,7 @@ const Ns = /* @__PURE__ */ R(Bs, [["render", As], ["__scopeId", "data-v-9ae0dedd
|
|
|
7845
7842
|
}
|
|
7846
7843
|
});
|
|
7847
7844
|
function qs(e, i, t, l, r, c) {
|
|
7848
|
-
const s =
|
|
7845
|
+
const s = fe, u = Ke, p = de, g = ae, y = Ze, $ = M;
|
|
7849
7846
|
return o(), d($, {
|
|
7850
7847
|
"build-rules": e.rules,
|
|
7851
7848
|
field: e.field,
|
|
@@ -7859,11 +7856,11 @@ function qs(e, i, t, l, r, c) {
|
|
|
7859
7856
|
"sub-form-row-id": e.subFormRowId
|
|
7860
7857
|
}, {
|
|
7861
7858
|
default: a(() => [
|
|
7862
|
-
m(
|
|
7859
|
+
m(y, {
|
|
7863
7860
|
ref: "fieldEditor",
|
|
7864
7861
|
modelValue: e.valueState,
|
|
7865
7862
|
"onUpdate:modelValue": i[0] || (i[0] = (n) => e.valueState = n),
|
|
7866
|
-
class:
|
|
7863
|
+
class: v({ "radio-group-block": e.field.options.displayStyle === "flex" }),
|
|
7867
7864
|
disabled: e.field.options.disabled,
|
|
7868
7865
|
size: e.widgetSize,
|
|
7869
7866
|
style: { width: "100%" },
|
|
@@ -7884,7 +7881,7 @@ function qs(e, i, t, l, r, c) {
|
|
|
7884
7881
|
style: { display: "flex" }
|
|
7885
7882
|
}, {
|
|
7886
7883
|
default: a(() => [
|
|
7887
|
-
L(
|
|
7884
|
+
L(w(n.label) + " ", 1),
|
|
7888
7885
|
n.text ? (o(), d(s, {
|
|
7889
7886
|
key: 0,
|
|
7890
7887
|
size: "small",
|
|
@@ -7897,7 +7894,7 @@ function qs(e, i, t, l, r, c) {
|
|
|
7897
7894
|
n.suffix ? {
|
|
7898
7895
|
name: "append",
|
|
7899
7896
|
fn: a(() => [
|
|
7900
|
-
L(
|
|
7897
|
+
L(w(n.suffix), 1)
|
|
7901
7898
|
]),
|
|
7902
7899
|
key: "0"
|
|
7903
7900
|
} : void 0
|
|
@@ -7918,7 +7915,7 @@ function qs(e, i, t, l, r, c) {
|
|
|
7918
7915
|
style: { display: "flex" }
|
|
7919
7916
|
}, {
|
|
7920
7917
|
default: a(() => [
|
|
7921
|
-
L(
|
|
7918
|
+
L(w(n.label) + " ", 1),
|
|
7922
7919
|
n.text ? (o(), d(s, {
|
|
7923
7920
|
key: 0,
|
|
7924
7921
|
size: "small",
|
|
@@ -7931,7 +7928,7 @@ function qs(e, i, t, l, r, c) {
|
|
|
7931
7928
|
n.suffix ? {
|
|
7932
7929
|
name: "append",
|
|
7933
7930
|
fn: a(() => [
|
|
7934
|
-
L(
|
|
7931
|
+
L(w(n.suffix), 1)
|
|
7935
7932
|
]),
|
|
7936
7933
|
key: "0"
|
|
7937
7934
|
} : void 0
|
|
@@ -7992,7 +7989,7 @@ const Gs = /* @__PURE__ */ R(Ws, [["render", qs], ["__scopeId", "data-v-10f388a2
|
|
|
7992
7989
|
this.unregisterFromRefList();
|
|
7993
7990
|
}
|
|
7994
7991
|
});
|
|
7995
|
-
function
|
|
7992
|
+
function Ks(e, i, t, l, r, c) {
|
|
7996
7993
|
const s = rt, u = M;
|
|
7997
7994
|
return o(), d(u, {
|
|
7998
7995
|
"build-rules": e.rules,
|
|
@@ -8027,9 +8024,9 @@ function Qs(e, i, t, l, r, c) {
|
|
|
8027
8024
|
_: 1
|
|
8028
8025
|
}, 8, ["build-rules", "field", "builder", "builder-status", "parent-field", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
8029
8026
|
}
|
|
8030
|
-
const
|
|
8027
|
+
const Qs = /* @__PURE__ */ R(Zs, [["render", Ks], ["__scopeId", "data-v-a4f7a549"]]), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8031
8028
|
__proto__: null,
|
|
8032
|
-
default:
|
|
8029
|
+
default: Qs
|
|
8033
8030
|
}, Symbol.toStringTag, { value: "Module" })), Xs = I({
|
|
8034
8031
|
name: "record-ui",
|
|
8035
8032
|
typeName: "FormField",
|
|
@@ -8165,7 +8162,7 @@ const Ks = /* @__PURE__ */ R(Zs, [["render", Qs], ["__scopeId", "data-v-a4f7a549
|
|
|
8165
8162
|
}
|
|
8166
8163
|
});
|
|
8167
8164
|
function _s(e, i, t, l, r, c) {
|
|
8168
|
-
const s =
|
|
8165
|
+
const s = se, u = U, p = G, g = ue, y = Mi, $ = E;
|
|
8169
8166
|
return o(), d($, {
|
|
8170
8167
|
"build-rules": e.rules,
|
|
8171
8168
|
field: e.field,
|
|
@@ -8174,13 +8171,13 @@ function _s(e, i, t, l, r, c) {
|
|
|
8174
8171
|
"parent-field": e.parentField,
|
|
8175
8172
|
"parent-list": e.parentList,
|
|
8176
8173
|
"index-of-parent-list": e.indexOfParentList,
|
|
8177
|
-
class:
|
|
8174
|
+
class: v(["ui-container"]),
|
|
8178
8175
|
"sub-form-row-index": e.subFormRowIndex,
|
|
8179
8176
|
"sub-form-col-index": e.subFormColIndex,
|
|
8180
8177
|
"sub-form-row-id": e.subFormRowId
|
|
8181
8178
|
}, {
|
|
8182
8179
|
default: a(() => [
|
|
8183
|
-
(o(), d(
|
|
8180
|
+
(o(), d(y, {
|
|
8184
8181
|
ref: "fieldEditor",
|
|
8185
8182
|
key: e.field.id,
|
|
8186
8183
|
"form-id": e.field.options.formId,
|
|
@@ -8248,13 +8245,13 @@ function _s(e, i, t, l, r, c) {
|
|
|
8248
8245
|
f.prefixIcon ? (o(), d(u, {
|
|
8249
8246
|
key: 0,
|
|
8250
8247
|
"icon-name": f.prefixIcon,
|
|
8251
|
-
class:
|
|
8248
|
+
class: v(f.label ? "" : "ml-1")
|
|
8252
8249
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
8253
|
-
S("span", null,
|
|
8250
|
+
S("span", null, w(f.label), 1),
|
|
8254
8251
|
f.suffixIcon ? (o(), d(u, {
|
|
8255
8252
|
key: 1,
|
|
8256
8253
|
"icon-name": f.suffixIcon,
|
|
8257
|
-
class:
|
|
8254
|
+
class: v(f.label ? "ml-1" : "")
|
|
8258
8255
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
8259
8256
|
]),
|
|
8260
8257
|
_: 2
|
|
@@ -8281,13 +8278,13 @@ function _s(e, i, t, l, r, c) {
|
|
|
8281
8278
|
f.prefixIcon ? (o(), d(u, {
|
|
8282
8279
|
key: 0,
|
|
8283
8280
|
"icon-name": f.prefixIcon,
|
|
8284
|
-
class:
|
|
8281
|
+
class: v(f.label ? "" : "ml-1")
|
|
8285
8282
|
}, null, 8, ["icon-name", "class"])) : b("", !0),
|
|
8286
|
-
S("span", null,
|
|
8283
|
+
S("span", null, w(f.label), 1),
|
|
8287
8284
|
f.suffixIcon ? (o(), d(u, {
|
|
8288
8285
|
key: 1,
|
|
8289
8286
|
"icon-name": f.suffixIcon,
|
|
8290
|
-
class:
|
|
8287
|
+
class: v(f.label ? "ml-1" : "")
|
|
8291
8288
|
}, null, 8, ["icon-name", "class"])) : b("", !0)
|
|
8292
8289
|
]),
|
|
8293
8290
|
_: 2
|
|
@@ -8351,7 +8348,7 @@ const xs = /* @__PURE__ */ R(Xs, [["render", _s], ["__scopeId", "data-v-72ce81d8
|
|
|
8351
8348
|
}
|
|
8352
8349
|
});
|
|
8353
8350
|
function tr(e, i, t, l, r, c) {
|
|
8354
|
-
const s =
|
|
8351
|
+
const s = se, u = U, p = G, g = E;
|
|
8355
8352
|
return o(), d(g, {
|
|
8356
8353
|
"build-rules": e.rules,
|
|
8357
8354
|
field: e.field,
|
|
@@ -8362,7 +8359,7 @@ function tr(e, i, t, l, r, c) {
|
|
|
8362
8359
|
"index-of-parent-list": e.indexOfParentList,
|
|
8363
8360
|
"sub-form-row-index": e.subFormRowIndex,
|
|
8364
8361
|
"sub-form-col-index": e.subFormColIndex,
|
|
8365
|
-
class:
|
|
8362
|
+
class: v(["datagrid-container"]),
|
|
8366
8363
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left" }),
|
|
8367
8364
|
"sub-form-row-id": e.subFormRowId
|
|
8368
8365
|
}, {
|
|
@@ -8385,7 +8382,7 @@ function tr(e, i, t, l, r, c) {
|
|
|
8385
8382
|
default: a(() => [
|
|
8386
8383
|
m(u, { "icon-name": "report-ui" }),
|
|
8387
8384
|
i[0] || (i[0] = L()),
|
|
8388
|
-
S("span", null,
|
|
8385
|
+
S("span", null, w(e.field.options.providerType || "Report"), 1)
|
|
8389
8386
|
]),
|
|
8390
8387
|
_: 1
|
|
8391
8388
|
}, 8, ["size"]))
|
|
@@ -8472,7 +8469,7 @@ function sr(e, i, t, l, r, c) {
|
|
|
8472
8469
|
}, {
|
|
8473
8470
|
default: a(() => [
|
|
8474
8471
|
S("div", {
|
|
8475
|
-
class:
|
|
8472
|
+
class: v({ paragraph: !!e.field.options.paragraph }),
|
|
8476
8473
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left", marginBottom: e.field.options.marginBottom + "px" })
|
|
8477
8474
|
}, [
|
|
8478
8475
|
(o(), d(u, {
|
|
@@ -8488,14 +8485,14 @@ function sr(e, i, t, l, r, c) {
|
|
|
8488
8485
|
}, {
|
|
8489
8486
|
default: a((g) => [
|
|
8490
8487
|
S("div", {
|
|
8491
|
-
class:
|
|
8488
|
+
class: v(["flex", "items-center", "gap-2", "flex-col", e.direction === "horizontal" && "p-2"])
|
|
8492
8489
|
}, [
|
|
8493
8490
|
g.item.icon ? (o(), d(s, {
|
|
8494
8491
|
key: 0,
|
|
8495
8492
|
"icon-name": g.item.icon,
|
|
8496
8493
|
class: "text-7"
|
|
8497
8494
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
8498
|
-
S("div", null,
|
|
8495
|
+
S("div", null, w(g.item.label), 1)
|
|
8499
8496
|
], 2)
|
|
8500
8497
|
]),
|
|
8501
8498
|
_: 1
|
|
@@ -8617,7 +8614,7 @@ const rr = /* @__PURE__ */ R(nr, [["render", sr], ["__scopeId", "data-v-58269946
|
|
|
8617
8614
|
}
|
|
8618
8615
|
});
|
|
8619
8616
|
function fr(e, i, t, l, r, c) {
|
|
8620
|
-
const s =
|
|
8617
|
+
const s = ve, u = M;
|
|
8621
8618
|
return o(), d(u, {
|
|
8622
8619
|
"build-rules": e.rules,
|
|
8623
8620
|
field: e.field,
|
|
@@ -8736,7 +8733,7 @@ const ur = /* @__PURE__ */ R(ar, [["render", fr]]), pr = /* @__PURE__ */ Object.
|
|
|
8736
8733
|
}
|
|
8737
8734
|
});
|
|
8738
8735
|
function hr(e, i, t, l, r, c) {
|
|
8739
|
-
const s =
|
|
8736
|
+
const s = ve, u = M;
|
|
8740
8737
|
return o(), d(u, {
|
|
8741
8738
|
"build-rules": e.rules,
|
|
8742
8739
|
field: e.field,
|
|
@@ -8938,7 +8935,7 @@ const yr = /* @__PURE__ */ R(gr, [["render", Fr], ["__scopeId", "data-v-fc573572
|
|
|
8938
8935
|
let i = [];
|
|
8939
8936
|
if (this.field.options.sourcePath)
|
|
8940
8937
|
for (const t in e) {
|
|
8941
|
-
const l = e[t], r =
|
|
8938
|
+
const l = e[t], r = ye(l, this.field.options.sourcePath);
|
|
8942
8939
|
if (r && typeof r == "object")
|
|
8943
8940
|
for (const c in r) {
|
|
8944
8941
|
let s = r[c];
|
|
@@ -8995,7 +8992,7 @@ const yr = /* @__PURE__ */ R(gr, [["render", Fr], ["__scopeId", "data-v-fc573572
|
|
|
8995
8992
|
}
|
|
8996
8993
|
});
|
|
8997
8994
|
function Cr(e, i, t, l, r, c) {
|
|
8998
|
-
const s =
|
|
8995
|
+
const s = Oi, u = M;
|
|
8999
8996
|
return o(), d(u, {
|
|
9000
8997
|
"build-rules": e.rules,
|
|
9001
8998
|
field: e.field,
|
|
@@ -9097,7 +9094,7 @@ const Ir = /* @__PURE__ */ R(wr, [["render", Cr], ["__scopeId", "data-v-2b0c7426
|
|
|
9097
9094
|
}
|
|
9098
9095
|
});
|
|
9099
9096
|
function Mr(e, i, t, l, r, c) {
|
|
9100
|
-
const s =
|
|
9097
|
+
const s = ve, u = M;
|
|
9101
9098
|
return o(), d(u, {
|
|
9102
9099
|
"build-rules": e.rules,
|
|
9103
9100
|
field: e.field,
|
|
@@ -9217,7 +9214,7 @@ const Or = /* @__PURE__ */ R(Rr, [["render", Mr]]), kr = /* @__PURE__ */ Object.
|
|
|
9217
9214
|
}
|
|
9218
9215
|
});
|
|
9219
9216
|
function $r(e, i, t, l, r, c) {
|
|
9220
|
-
const s =
|
|
9217
|
+
const s = ki, u = E;
|
|
9221
9218
|
return o(), d(u, {
|
|
9222
9219
|
"build-rules": e.rules,
|
|
9223
9220
|
field: e.field,
|
|
@@ -9228,7 +9225,7 @@ function $r(e, i, t, l, r, c) {
|
|
|
9228
9225
|
"index-of-parent-list": e.indexOfParentList,
|
|
9229
9226
|
"sub-form-row-index": e.subFormRowIndex,
|
|
9230
9227
|
"sub-form-col-index": e.subFormColIndex,
|
|
9231
|
-
class:
|
|
9228
|
+
class: v(["datagrid-container"]),
|
|
9232
9229
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left" }),
|
|
9233
9230
|
"sub-form-row-id": e.subFormRowId
|
|
9234
9231
|
}, {
|
|
@@ -9387,8 +9384,8 @@ const Tr = /* @__PURE__ */ R(jr, [["render", Dr], ["__scopeId", "data-v-01943245
|
|
|
9387
9384
|
class: "statistic-footer"
|
|
9388
9385
|
}, Hr = { class: "footer-item" };
|
|
9389
9386
|
function Wr(e, i, t, l, r, c) {
|
|
9390
|
-
const s = U, u = ee, p = pt, g =
|
|
9391
|
-
return o(), d(
|
|
9387
|
+
const s = U, u = ee, p = pt, g = me, y = E;
|
|
9388
|
+
return o(), d(y, {
|
|
9392
9389
|
"build-rules": e.rules,
|
|
9393
9390
|
field: e.field,
|
|
9394
9391
|
builder: e.builder,
|
|
@@ -9403,7 +9400,7 @@ function Wr(e, i, t, l, r, c) {
|
|
|
9403
9400
|
}, {
|
|
9404
9401
|
default: a(() => [
|
|
9405
9402
|
(o(), h("div", {
|
|
9406
|
-
class:
|
|
9403
|
+
class: v(["statistic-card", [e.field.options.displayType, e.field.options.headerType || "", "paragraph"]]),
|
|
9407
9404
|
ref: "fieldEditor",
|
|
9408
9405
|
key: e.field.id
|
|
9409
9406
|
}, [
|
|
@@ -9417,7 +9414,7 @@ function Wr(e, i, t, l, r, c) {
|
|
|
9417
9414
|
}, Z({
|
|
9418
9415
|
title: a(() => [
|
|
9419
9416
|
S("div", Ur, [
|
|
9420
|
-
L(
|
|
9417
|
+
L(w(e.field.options.title) + " ", 1),
|
|
9421
9418
|
e.field.options.labelTooltip ? (o(), d(u, {
|
|
9422
9419
|
key: 0,
|
|
9423
9420
|
content: e.field.options.labelTooltip
|
|
@@ -9447,7 +9444,7 @@ function Wr(e, i, t, l, r, c) {
|
|
|
9447
9444
|
"icon-name": e.field.options.prefixIcon,
|
|
9448
9445
|
class: "mr-2"
|
|
9449
9446
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
9450
|
-
e.field.options.prefixText ? (o(), h("span", Br,
|
|
9447
|
+
e.field.options.prefixText ? (o(), h("span", Br, w(e.field.options.prefixText), 1)) : b("", !0)
|
|
9451
9448
|
]),
|
|
9452
9449
|
key: "0"
|
|
9453
9450
|
} : void 0,
|
|
@@ -9460,7 +9457,7 @@ function Wr(e, i, t, l, r, c) {
|
|
|
9460
9457
|
class: "ml-1"
|
|
9461
9458
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
9462
9459
|
i[1] || (i[1] = L()),
|
|
9463
|
-
e.field.options.suffixText ? (o(), h("span", Ar,
|
|
9460
|
+
e.field.options.suffixText ? (o(), h("span", Ar, w(e.field.options.suffixText), 1)) : b("", !0)
|
|
9464
9461
|
]),
|
|
9465
9462
|
key: "1"
|
|
9466
9463
|
} : void 0
|
|
@@ -9569,7 +9566,7 @@ function Zr(e, i, t, l, r, c) {
|
|
|
9569
9566
|
"finish-status": e.field.options.finishStatus ? e.field.options.finishStatus : "success"
|
|
9570
9567
|
}, {
|
|
9571
9568
|
default: a(() => [
|
|
9572
|
-
(o(!0), h(F, null, T(e.field.options.stepList, (g,
|
|
9569
|
+
(o(!0), h(F, null, T(e.field.options.stepList, (g, y) => (o(), d(s, {
|
|
9573
9570
|
title: g.label,
|
|
9574
9571
|
description: g.desc,
|
|
9575
9572
|
icon: g.icon
|
|
@@ -9581,9 +9578,9 @@ function Zr(e, i, t, l, r, c) {
|
|
|
9581
9578
|
_: 1
|
|
9582
9579
|
}, 8, ["build-rules", "field", "builder", "builder-status", "parent-field", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
9583
9580
|
}
|
|
9584
|
-
const
|
|
9581
|
+
const Kr = /* @__PURE__ */ R(Jr, [["render", Zr], ["__scopeId", "data-v-36741146"]]), Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9585
9582
|
__proto__: null,
|
|
9586
|
-
default:
|
|
9583
|
+
default: Kr
|
|
9587
9584
|
}, Symbol.toStringTag, { value: "Module" })), Yr = I({
|
|
9588
9585
|
name: "svg-input",
|
|
9589
9586
|
typeName: "FormField",
|
|
@@ -9634,7 +9631,7 @@ const Qr = /* @__PURE__ */ R(Jr, [["render", Zr], ["__scopeId", "data-v-36741146
|
|
|
9634
9631
|
commitFile(e) {
|
|
9635
9632
|
if (e) {
|
|
9636
9633
|
this.uploadBtnHidden = !0;
|
|
9637
|
-
const i =
|
|
9634
|
+
const i = ze(e);
|
|
9638
9635
|
this.fileList = [
|
|
9639
9636
|
{
|
|
9640
9637
|
name: "svg-icon.svg",
|
|
@@ -9645,7 +9642,7 @@ const Qr = /* @__PURE__ */ R(Jr, [["render", Zr], ["__scopeId", "data-v-36741146
|
|
|
9645
9642
|
this.fileList = [], this.uploadBtnHidden = !1;
|
|
9646
9643
|
},
|
|
9647
9644
|
beforeUpload(e) {
|
|
9648
|
-
return e.type !== "image/svg+xml" ? (
|
|
9645
|
+
return e.type !== "image/svg+xml" ? (X.error("Avatar picture must be SVG format!"), !1) : e.size / 1024 / 1024 > 1 ? (X.error("Avatar picture size can not exceed 1MB!"), !1) : !0;
|
|
9649
9646
|
},
|
|
9650
9647
|
async handleCardPreview(e) {
|
|
9651
9648
|
this.dialogImageUrl = e.url, this.dialogVisible = !0;
|
|
@@ -9666,8 +9663,8 @@ const Qr = /* @__PURE__ */ R(Jr, [["render", Zr], ["__scopeId", "data-v-36741146
|
|
|
9666
9663
|
}
|
|
9667
9664
|
}), Xr = ["src"];
|
|
9668
9665
|
function _r(e, i, t, l, r, c) {
|
|
9669
|
-
const s = J("Plus"), u =
|
|
9670
|
-
return o(), d(
|
|
9666
|
+
const s = J("Plus"), u = re, p = Ie, g = qe, y = M;
|
|
9667
|
+
return o(), d(y, {
|
|
9671
9668
|
"build-rules": e.rules,
|
|
9672
9669
|
field: e.field,
|
|
9673
9670
|
builder: e.builder,
|
|
@@ -9684,7 +9681,7 @@ function _r(e, i, t, l, r, c) {
|
|
|
9684
9681
|
ref: "fieldEditor",
|
|
9685
9682
|
action: "#",
|
|
9686
9683
|
"auto-upload": !1,
|
|
9687
|
-
class:
|
|
9684
|
+
class: v([{ hideUploadDiv: e.uploadBtnHidden }, "avatar-uploader"]),
|
|
9688
9685
|
disabled: e.field.options.disabled || !!e.builderStatus,
|
|
9689
9686
|
"list-type": "picture-card",
|
|
9690
9687
|
"file-list": e.fileList,
|
|
@@ -9754,7 +9751,7 @@ const xr = /* @__PURE__ */ R(Yr, [["render", _r], ["__scopeId", "data-v-46c91e56
|
|
|
9754
9751
|
}
|
|
9755
9752
|
});
|
|
9756
9753
|
function td(e, i, t, l, r, c) {
|
|
9757
|
-
const s =
|
|
9754
|
+
const s = Pi, u = U, p = E;
|
|
9758
9755
|
return o(), d(p, {
|
|
9759
9756
|
"build-rules": e.rules,
|
|
9760
9757
|
field: e.field,
|
|
@@ -9771,11 +9768,11 @@ function td(e, i, t, l, r, c) {
|
|
|
9771
9768
|
(o(), h("div", {
|
|
9772
9769
|
ref: "fieldEditor",
|
|
9773
9770
|
key: e.field.id,
|
|
9774
|
-
class:
|
|
9771
|
+
class: v({ paragraph: !!e.field.options.paragraph }),
|
|
9775
9772
|
style: j({ textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left", marginBottom: e.field.options.marginBottom + "px" })
|
|
9776
9773
|
}, [
|
|
9777
9774
|
S("span", {
|
|
9778
|
-
class:
|
|
9775
|
+
class: v([e.field.options.sizeClass ? e.field.options.sizeClass : "text-6"])
|
|
9779
9776
|
}, [
|
|
9780
9777
|
e.field.options.svgData ? (o(), h(F, { key: 0 }, [
|
|
9781
9778
|
e.field.options.svgValue ? (o(), d(s, {
|
|
@@ -9970,7 +9967,7 @@ function hd(e, i, t, l, r, c) {
|
|
|
9970
9967
|
"icon-name": e.field.options.prefixIcon,
|
|
9971
9968
|
class: "mr-1"
|
|
9972
9969
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
9973
|
-
e.field.options.prefixText ? (o(), h("span", pd,
|
|
9970
|
+
e.field.options.prefixText ? (o(), h("span", pd, w(e.field.options.prefixText), 1)) : b("", !0)
|
|
9974
9971
|
]),
|
|
9975
9972
|
key: "0"
|
|
9976
9973
|
} : void 0,
|
|
@@ -9982,7 +9979,7 @@ function hd(e, i, t, l, r, c) {
|
|
|
9982
9979
|
"icon-name": e.field.options.suffixIcon
|
|
9983
9980
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
9984
9981
|
i[1] || (i[1] = L()),
|
|
9985
|
-
e.field.options.suffixText ? (o(), h("span", md,
|
|
9982
|
+
e.field.options.suffixText ? (o(), h("span", md, w(e.field.options.suffixText), 1)) : b("", !0)
|
|
9986
9983
|
]),
|
|
9987
9984
|
key: "1"
|
|
9988
9985
|
} : void 0
|
|
@@ -10033,7 +10030,7 @@ const cd = /* @__PURE__ */ R(ud, [["render", hd]]), bd = /* @__PURE__ */ Object.
|
|
|
10033
10030
|
}
|
|
10034
10031
|
});
|
|
10035
10032
|
function Fd(e, i, t, l, r, c) {
|
|
10036
|
-
const s = U, u = G, p =
|
|
10033
|
+
const s = U, u = G, p = fe, g = M;
|
|
10037
10034
|
return o(), d(g, {
|
|
10038
10035
|
"build-rules": e.rules,
|
|
10039
10036
|
field: e.field,
|
|
@@ -10050,7 +10047,7 @@ function Fd(e, i, t, l, r, c) {
|
|
|
10050
10047
|
m(p, {
|
|
10051
10048
|
ref: "fieldEditor",
|
|
10052
10049
|
modelValue: e.fieldValue,
|
|
10053
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
10050
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => e.fieldValue = y),
|
|
10054
10051
|
disabled: e.field.options.disabled,
|
|
10055
10052
|
readonly: e.field.options.readonly,
|
|
10056
10053
|
size: e.widgetSize,
|
|
@@ -10077,7 +10074,7 @@ function Fd(e, i, t, l, r, c) {
|
|
|
10077
10074
|
e.field.options.prefixText ? {
|
|
10078
10075
|
name: "prepend",
|
|
10079
10076
|
fn: a(() => [
|
|
10080
|
-
L(
|
|
10077
|
+
L(w(e.field.options.prefixText), 1)
|
|
10081
10078
|
]),
|
|
10082
10079
|
key: "0"
|
|
10083
10080
|
} : void 0,
|
|
@@ -10085,7 +10082,7 @@ function Fd(e, i, t, l, r, c) {
|
|
|
10085
10082
|
name: "append",
|
|
10086
10083
|
fn: a(() => [
|
|
10087
10084
|
!e.field.options.appendButton && e.field.options.suffixText ? (o(), h(F, { key: 0 }, [
|
|
10088
|
-
L(
|
|
10085
|
+
L(w(e.field.options.suffixText), 1)
|
|
10089
10086
|
], 64)) : (o(), d(u, {
|
|
10090
10087
|
key: 1,
|
|
10091
10088
|
disabled: e.field.options.disabled || e.field.options.appendButtonDisabled,
|
|
@@ -10097,7 +10094,7 @@ function Fd(e, i, t, l, r, c) {
|
|
|
10097
10094
|
"icon-name": e.field.options.buttonIcon,
|
|
10098
10095
|
class: "mr-1"
|
|
10099
10096
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
10100
|
-
L(" " +
|
|
10097
|
+
L(" " + w(e.field.options.suffixText), 1)
|
|
10101
10098
|
]),
|
|
10102
10099
|
_: 1
|
|
10103
10100
|
}, 8, ["disabled", "onClick"]))
|
|
@@ -10165,7 +10162,7 @@ function Cd(e, i, t, l, r, c) {
|
|
|
10165
10162
|
(o(), h("div", {
|
|
10166
10163
|
ref: "fieldEditor",
|
|
10167
10164
|
key: e.field.id,
|
|
10168
|
-
class:
|
|
10165
|
+
class: v({ paragraph: !!e.field.options.paragraph }),
|
|
10169
10166
|
style: j([{ display: "flex" }, { textAlign: e.field.options.textAlign ? e.field.options.textAlign : "left", marginBottom: e.field.options.marginBottom + "px" }])
|
|
10170
10167
|
}, [
|
|
10171
10168
|
e.field.options.labelIconClass && e.field.options.labelIconPosition === "front" ? (o(), h(F, { key: 0 }, [
|
|
@@ -10188,10 +10185,10 @@ function Cd(e, i, t, l, r, c) {
|
|
|
10188
10185
|
truncated: e.field.options.wrapText ? void 0 : !0,
|
|
10189
10186
|
"line-clamp": e.field.options.wrapText ? e.field.options.wrapText : void 0,
|
|
10190
10187
|
style: j({ fontSize: e.field.options.fontSize + "px", color: e.field.options.fontColor }),
|
|
10191
|
-
class:
|
|
10188
|
+
class: v({ underline: !!e.field.options.underline, bold: !!e.field.options.bold, italic: !!e.field.options.italic })
|
|
10192
10189
|
}, {
|
|
10193
10190
|
default: a(() => [
|
|
10194
|
-
L(
|
|
10191
|
+
L(w(e.field.options.content), 1)
|
|
10195
10192
|
]),
|
|
10196
10193
|
_: 1
|
|
10197
10194
|
}, 8, ["truncated", "line-clamp", "style", "class"]),
|
|
@@ -10255,7 +10252,7 @@ const Id = /* @__PURE__ */ R(wd, [["render", Cd], ["__scopeId", "data-v-b76cd20b
|
|
|
10255
10252
|
}
|
|
10256
10253
|
});
|
|
10257
10254
|
function Md(e, i, t, l, r, c) {
|
|
10258
|
-
const s =
|
|
10255
|
+
const s = fe, u = M;
|
|
10259
10256
|
return o(), d(u, {
|
|
10260
10257
|
"build-rules": e.rules,
|
|
10261
10258
|
field: e.field,
|
|
@@ -10332,7 +10329,7 @@ const Od = /* @__PURE__ */ R(Rd, [["render", Md]]), kd = /* @__PURE__ */ Object.
|
|
|
10332
10329
|
}
|
|
10333
10330
|
});
|
|
10334
10331
|
function $d(e, i, t, l, r, c) {
|
|
10335
|
-
const s =
|
|
10332
|
+
const s = Qe, u = M;
|
|
10336
10333
|
return o(), d(u, {
|
|
10337
10334
|
"build-rules": e.rules,
|
|
10338
10335
|
field: e.field,
|
|
@@ -10347,13 +10344,13 @@ function $d(e, i, t, l, r, c) {
|
|
|
10347
10344
|
}, {
|
|
10348
10345
|
default: a(() => [
|
|
10349
10346
|
S("div", {
|
|
10350
|
-
class:
|
|
10347
|
+
class: v([e.field.options.autoFullWidth ? "auto-full-width" : ""])
|
|
10351
10348
|
}, [
|
|
10352
10349
|
m(s, {
|
|
10353
10350
|
ref: "fieldEditor",
|
|
10354
10351
|
modelValue: e.fieldValue,
|
|
10355
10352
|
"onUpdate:modelValue": i[0] || (i[0] = (p) => e.fieldValue = p),
|
|
10356
|
-
class:
|
|
10353
|
+
class: v([e.field.options.autoFullWidth ? "auto-full-width" : ""]),
|
|
10357
10354
|
disabled: e.field.options.disabled,
|
|
10358
10355
|
readonly: e.field.options.readonly,
|
|
10359
10356
|
size: e.widgetSize,
|
|
@@ -10411,7 +10408,7 @@ const Ld = /* @__PURE__ */ R(Pd, [["render", $d], ["__scopeId", "data-v-cdf76f9a
|
|
|
10411
10408
|
}
|
|
10412
10409
|
});
|
|
10413
10410
|
function Dd(e, i, t, l, r, c) {
|
|
10414
|
-
const s =
|
|
10411
|
+
const s = Qe, u = M;
|
|
10415
10412
|
return o(), d(u, {
|
|
10416
10413
|
"build-rules": e.rules,
|
|
10417
10414
|
field: e.field,
|
|
@@ -10430,7 +10427,7 @@ function Dd(e, i, t, l, r, c) {
|
|
|
10430
10427
|
"is-range": "",
|
|
10431
10428
|
modelValue: e.fieldValue,
|
|
10432
10429
|
"onUpdate:modelValue": i[0] || (i[0] = (p) => e.fieldValue = p),
|
|
10433
|
-
class:
|
|
10430
|
+
class: v([e.field.options.autoFullWidth ? "full-width-input" : ""]),
|
|
10434
10431
|
disabled: e.field.options.disabled,
|
|
10435
10432
|
readonly: e.field.options.readonly,
|
|
10436
10433
|
size: e.widgetSize,
|
|
@@ -10540,13 +10537,13 @@ function Ud(e, i, t, l, r, c) {
|
|
|
10540
10537
|
}, {
|
|
10541
10538
|
default: a(() => [
|
|
10542
10539
|
S("div", {
|
|
10543
|
-
class:
|
|
10540
|
+
class: v([e.field.options.autoFullWidth ? "auto-full-width" : ""])
|
|
10544
10541
|
}, [
|
|
10545
10542
|
m(s, {
|
|
10546
10543
|
ref: "fieldEditor",
|
|
10547
10544
|
modelValue: e.fieldValue,
|
|
10548
10545
|
"onUpdate:modelValue": i[0] || (i[0] = (p) => e.fieldValue = p),
|
|
10549
|
-
class:
|
|
10546
|
+
class: v([e.field.options.autoFullWidth ? "auto-full-width" : ""]),
|
|
10550
10547
|
disabled: e.field.options.disabled,
|
|
10551
10548
|
readonly: e.field.options.readonly,
|
|
10552
10549
|
size: e.widgetSize,
|
|
@@ -10615,7 +10612,7 @@ const Bd = /* @__PURE__ */ R(zd, [["render", Ud], ["__scopeId", "data-v-365dcbe8
|
|
|
10615
10612
|
}
|
|
10616
10613
|
});
|
|
10617
10614
|
function Hd(e, i, t, l, r, c) {
|
|
10618
|
-
const s = U, u = G, p =
|
|
10615
|
+
const s = U, u = G, p = me, g = vt, y = yt, $ = E;
|
|
10619
10616
|
return o(), d($, {
|
|
10620
10617
|
"build-rules": e.rules,
|
|
10621
10618
|
field: e.field,
|
|
@@ -10648,7 +10645,7 @@ function Hd(e, i, t, l, r, c) {
|
|
|
10648
10645
|
key: 0,
|
|
10649
10646
|
"icon-name": e.field.options.prefixIcon
|
|
10650
10647
|
}, null, 8, ["icon-name"])) : b("", !0),
|
|
10651
|
-
S("span", null,
|
|
10648
|
+
S("span", null, w(e.field.options.label), 1),
|
|
10652
10649
|
e.field.options.suffixIcon ? (o(), d(s, {
|
|
10653
10650
|
key: 1,
|
|
10654
10651
|
"icon-name": e.field.options.suffixIcon,
|
|
@@ -10657,7 +10654,7 @@ function Hd(e, i, t, l, r, c) {
|
|
|
10657
10654
|
]),
|
|
10658
10655
|
_: 1
|
|
10659
10656
|
}, 8, ["disabled", "type", "size", "plain", "round", "circle"]),
|
|
10660
|
-
m(
|
|
10657
|
+
m(y, {
|
|
10661
10658
|
modelValue: e.field.options.open,
|
|
10662
10659
|
"onUpdate:modelValue": i[1] || (i[1] = (n) => e.field.options.open = n),
|
|
10663
10660
|
mask: !!e.field.options.maskTour,
|
|
@@ -10687,7 +10684,7 @@ function Hd(e, i, t, l, r, c) {
|
|
|
10687
10684
|
e.field.options.indicators ? {
|
|
10688
10685
|
name: "indicators",
|
|
10689
10686
|
fn: a(({ current: n, total: f }) => [
|
|
10690
|
-
S("span", null,
|
|
10687
|
+
S("span", null, w(n + 1) + " / " + w(f), 1)
|
|
10691
10688
|
]),
|
|
10692
10689
|
key: "0"
|
|
10693
10690
|
} : void 0
|
|
@@ -10701,13 +10698,13 @@ const Wd = /* @__PURE__ */ R(Nd, [["render", Hd], ["__scopeId", "data-v-3b7d1475
|
|
|
10701
10698
|
__proto__: null,
|
|
10702
10699
|
default: Wd
|
|
10703
10700
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10704
|
-
function
|
|
10701
|
+
function Ee() {
|
|
10705
10702
|
return {
|
|
10706
10703
|
fields: [],
|
|
10707
|
-
formConfig: D(
|
|
10704
|
+
formConfig: D(Gd())
|
|
10708
10705
|
};
|
|
10709
10706
|
}
|
|
10710
|
-
function
|
|
10707
|
+
function Gd() {
|
|
10711
10708
|
return {
|
|
10712
10709
|
modelName: "formData",
|
|
10713
10710
|
refName: "sdForm",
|
|
@@ -10728,69 +10725,29 @@ function Jd() {
|
|
|
10728
10725
|
onFormUnmounted: ""
|
|
10729
10726
|
};
|
|
10730
10727
|
}
|
|
10731
|
-
const
|
|
10732
|
-
(function(e, i) {
|
|
10733
|
-
const t = me, l = e();
|
|
10734
|
-
for (; ; )
|
|
10735
|
-
try {
|
|
10736
|
-
if (-parseInt(t(374)) / 1 + parseInt(t(381)) / 2 * (-parseInt(t(388)) / 3) + -parseInt(t(385)) / 4 + -parseInt(t(387)) / 5 + -parseInt(t(391)) / 6 * (-parseInt(t(378)) / 7) + parseInt(t(394)) / 8 * (-parseInt(t(395)) / 9) + -parseInt(t(386)) / 10 * (-parseInt(t(377)) / 11) === i) break;
|
|
10737
|
-
l.push(l.shift());
|
|
10738
|
-
} catch {
|
|
10739
|
-
l.push(l.shift());
|
|
10740
|
-
}
|
|
10741
|
-
})(he, 197139);
|
|
10742
|
-
function me(e, i) {
|
|
10743
|
-
const t = he();
|
|
10744
|
-
return me = function(l, r) {
|
|
10745
|
-
return l = l - 374, t[l];
|
|
10746
|
-
}, me(e, i);
|
|
10747
|
-
}
|
|
10748
|
-
li(376);
|
|
10749
|
-
function he() {
|
|
10750
|
-
const e = [
|
|
10751
|
-
"form_license",
|
|
10752
|
-
"111432QKgdhe",
|
|
10753
|
-
"207lCstSc",
|
|
10754
|
-
"386685PzbgAY",
|
|
10755
|
-
"_id",
|
|
10756
|
-
"659735jCebAb",
|
|
10757
|
-
"218757ajaqwQ",
|
|
10758
|
-
"165417iqprYp",
|
|
10759
|
-
"parse",
|
|
10760
|
-
"encrypt",
|
|
10761
|
-
"250btxjRv",
|
|
10762
|
-
"feature_token",
|
|
10763
|
-
"toString",
|
|
10764
|
-
"PKCS7",
|
|
10765
|
-
"166024wTBwHd",
|
|
10766
|
-
"740TVjKFb",
|
|
10767
|
-
"1659735jCebZX",
|
|
10768
|
-
"5223nVJpDZ",
|
|
10769
|
-
"decrypt",
|
|
10770
|
-
"CBC",
|
|
10771
|
-
"6LYeMyH",
|
|
10772
|
-
"form_feature"
|
|
10773
|
-
];
|
|
10774
|
-
return he = function() {
|
|
10775
|
-
return e;
|
|
10776
|
-
}, he();
|
|
10777
|
-
}
|
|
10778
|
-
const Zd = function(e, i) {
|
|
10779
|
-
const t = li;
|
|
10728
|
+
const Jd = async function(e, i) {
|
|
10780
10729
|
try {
|
|
10781
|
-
if (
|
|
10782
|
-
const
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10730
|
+
if (e) {
|
|
10731
|
+
const { key: t, iv: l, data: r } = e, c = await ne.post(
|
|
10732
|
+
`${i.host}/widget/sdform/gettoken`,
|
|
10733
|
+
{ data: t },
|
|
10734
|
+
{
|
|
10735
|
+
headers: {
|
|
10736
|
+
Authorization: `Bearer ${i.user?.token}`
|
|
10737
|
+
}
|
|
10738
|
+
}
|
|
10739
|
+
).then((y) => y.data && y.data.data ? y.data.data : {}).catch((y) => (y.response && y.response.data && y.response.data.message ? X.warning(y.response.data.message) : X.warning(y.message), {})), s = je(c), u = je(l), g = Ot.decrypt(r, s, { iv: u, mode: Pt.CBC, padding: kt.PKCS7 }).toString(xe.Utf8);
|
|
10740
|
+
return JSON.parse(g);
|
|
10741
|
+
}
|
|
10742
|
+
return {};
|
|
10790
10743
|
} catch {
|
|
10791
|
-
return
|
|
10744
|
+
return {};
|
|
10792
10745
|
}
|
|
10793
|
-
}
|
|
10746
|
+
};
|
|
10747
|
+
function je(e) {
|
|
10748
|
+
return xe.Hex.parse(e);
|
|
10749
|
+
}
|
|
10750
|
+
const Zd = I({
|
|
10794
10751
|
name: "SdFormRender",
|
|
10795
10752
|
emits: ["formChange"],
|
|
10796
10753
|
components: {
|
|
@@ -10866,7 +10823,7 @@ const Zd = function(e, i) {
|
|
|
10866
10823
|
onResetForm: !1,
|
|
10867
10824
|
showInput: !0,
|
|
10868
10825
|
parentDisable: !1,
|
|
10869
|
-
ProviderType:
|
|
10826
|
+
ProviderType: Oe,
|
|
10870
10827
|
useUserState: this.$props.userState,
|
|
10871
10828
|
showPopupFlag: !1,
|
|
10872
10829
|
readonlyParent: !1,
|
|
@@ -10874,9 +10831,10 @@ const Zd = function(e, i) {
|
|
|
10874
10831
|
backdropParent: !1,
|
|
10875
10832
|
formIdParent: this.sdform.joiner_field.joiner_enable && this.sdform.joiner_field.form_id !== "" ? D(this.sdform.joiner_field.form_id.value) : "",
|
|
10876
10833
|
dataIdParent: "",
|
|
10877
|
-
router:
|
|
10878
|
-
route:
|
|
10834
|
+
router: _e(),
|
|
10835
|
+
route: Xe(),
|
|
10879
10836
|
isDark: H(),
|
|
10837
|
+
copyClipboard: Vi,
|
|
10880
10838
|
loadedForm: !1,
|
|
10881
10839
|
subFormBindProps: {},
|
|
10882
10840
|
customParams: {},
|
|
@@ -10972,12 +10930,12 @@ const Zd = function(e, i) {
|
|
|
10972
10930
|
},
|
|
10973
10931
|
created() {
|
|
10974
10932
|
},
|
|
10975
|
-
mounted() {
|
|
10976
|
-
this.createForm();
|
|
10933
|
+
async mounted() {
|
|
10934
|
+
await this.createForm();
|
|
10977
10935
|
},
|
|
10978
10936
|
methods: {
|
|
10979
10937
|
subFormOpen(e) {
|
|
10980
|
-
this.showPopupFlag =
|
|
10938
|
+
this.showPopupFlag = Ue(e.modelValue) ? e.modelValue : !0;
|
|
10981
10939
|
const i = {
|
|
10982
10940
|
modelValue: this.showPopupFlag,
|
|
10983
10941
|
formId: this.formIdParent,
|
|
@@ -11002,8 +10960,8 @@ const Zd = function(e, i) {
|
|
|
11002
10960
|
if (this.loadedForm = !1, this.formRender)
|
|
11003
10961
|
this.formRenderModel = this.formRender;
|
|
11004
10962
|
else {
|
|
11005
|
-
const e =
|
|
11006
|
-
e ? this.formRenderModel = e.model : this.formRenderModel =
|
|
10963
|
+
const e = await Jd(this.sdform.form_model, this.userState);
|
|
10964
|
+
e ? e.model && e.id && e.id === this.sdform._id && e.register_id === this.userState.connectInfo?.register_id ? this.formRenderModel = e.model : (X.warning("Verify not found"), this.formRenderModel = Ee()) : this.formRenderModel = Ee();
|
|
11007
10965
|
}
|
|
11008
10966
|
this.buildFormModel(this.formRenderModel ? this.formRenderModel.fields : null), this.initFormRender();
|
|
11009
10967
|
},
|
|
@@ -11039,8 +10997,8 @@ const Zd = function(e, i) {
|
|
|
11039
10997
|
if (this.sdform.joiner_field.joiner_enable && this.formData[this.sdform.joiner_field.field_name] && (i = this.formData[this.sdform.joiner_field.field_name]), this.formDataModel[this.sdform.joiner_field.field_name]) {
|
|
11040
10998
|
let t = this.formData._id ? this.formData._id : "";
|
|
11041
10999
|
this.formDataModel.xparentx = this.formDataModel[this.sdform.joiner_field.field_name].value || null, e = this.formDataModel[this.sdform.joiner_field.field_name];
|
|
11042
|
-
const l = await
|
|
11043
|
-
l.data ? (this.showInput = !1,
|
|
11000
|
+
const l = await Ti(this.sdform.dataid, t, this.formDataModel, this.$data.useUserState);
|
|
11001
|
+
l.data ? (this.showInput = !1, X.warning(l.message)) : this.showInput = !0;
|
|
11044
11002
|
} else
|
|
11045
11003
|
this.formDataModel.xparentx = null, this.showInput = !1;
|
|
11046
11004
|
try {
|
|
@@ -11052,7 +11010,7 @@ const Zd = function(e, i) {
|
|
|
11052
11010
|
},
|
|
11053
11011
|
notify(e, i = "info", t = "Notification", l = 5e3) {
|
|
11054
11012
|
try {
|
|
11055
|
-
|
|
11013
|
+
Ye({
|
|
11056
11014
|
title: t,
|
|
11057
11015
|
type: i,
|
|
11058
11016
|
message: e,
|
|
@@ -11064,7 +11022,7 @@ const Zd = function(e, i) {
|
|
|
11064
11022
|
},
|
|
11065
11023
|
alert(e, i = "info", t = 4e3) {
|
|
11066
11024
|
try {
|
|
11067
|
-
|
|
11025
|
+
X({
|
|
11068
11026
|
grouping: !0,
|
|
11069
11027
|
type: i,
|
|
11070
11028
|
message: e,
|
|
@@ -11199,7 +11157,7 @@ const Zd = function(e, i) {
|
|
|
11199
11157
|
this.sdform.joiner_field && this.sdform.joiner_field.joiner_enable && (this.showInput = !1, this.annotated && this.disabled ? this.showInput = !0 : this.formDataModel[this.sdform.joiner_field.field_name] ? this.showInput = !0 : this.parentId != "" && this.parentInput.getDataOne(
|
|
11200
11158
|
{
|
|
11201
11159
|
providerId: this.sdform.joiner_field.form_id.value,
|
|
11202
|
-
providerType:
|
|
11160
|
+
providerType: Oe.FORM,
|
|
11203
11161
|
params: { id: this.parentId },
|
|
11204
11162
|
options: { where: "_id = CONVERT(:id, 'objectId')" }
|
|
11205
11163
|
},
|
|
@@ -11222,7 +11180,7 @@ const Zd = function(e, i) {
|
|
|
11222
11180
|
this.formId = "sdRender" + te(), e && this.insertCustomStyleAndScriptNode(), this.handleOnCreated(), this.addFieldValidateEventHandler(), this.registerFormToRefList();
|
|
11223
11181
|
},
|
|
11224
11182
|
insertCustomStyleAndScriptNode() {
|
|
11225
|
-
this.formConfig && this.formConfig.cssCode &&
|
|
11183
|
+
this.formConfig && this.formConfig.cssCode && ji(this.formConfig.cssCode, this.previewState ? "" : this.formId), this.formConfig && this.formConfig.functions && Di(this.formConfig.functions, this.previewState ? "" : this.formId);
|
|
11226
11184
|
},
|
|
11227
11185
|
addFieldChangeEventHandler() {
|
|
11228
11186
|
try {
|
|
@@ -11289,7 +11247,7 @@ const Zd = function(e, i) {
|
|
|
11289
11247
|
let i = [], t = null, l = (r, c) => {
|
|
11290
11248
|
r.options && r.options.name === e && (t = c.options.name);
|
|
11291
11249
|
};
|
|
11292
|
-
if (
|
|
11250
|
+
if (Ei(this.fields, l), t) {
|
|
11293
11251
|
let r = this.getFieldRef(t);
|
|
11294
11252
|
if (r) {
|
|
11295
11253
|
let c = r.getRowIdData();
|
|
@@ -11451,10 +11409,10 @@ const Zd = function(e, i) {
|
|
|
11451
11409
|
}));
|
|
11452
11410
|
},
|
|
11453
11411
|
getFieldInput() {
|
|
11454
|
-
return
|
|
11412
|
+
return Li(this.formRenderModel.fields);
|
|
11455
11413
|
},
|
|
11456
11414
|
getContainerFields() {
|
|
11457
|
-
return
|
|
11415
|
+
return $i(this.formRenderModel.fields);
|
|
11458
11416
|
},
|
|
11459
11417
|
addEC(e, i) {
|
|
11460
11418
|
this.externalComponents[e] = i;
|
|
@@ -11469,17 +11427,17 @@ const Zd = function(e, i) {
|
|
|
11469
11427
|
beforeUnmount() {
|
|
11470
11428
|
this.handleOnUnmounted();
|
|
11471
11429
|
}
|
|
11472
|
-
}), Kd = ["data-id"],
|
|
11430
|
+
}), Kd = ["data-id"], Qd = { style: { margin: "0px" } }, Yd = {
|
|
11473
11431
|
key: 2,
|
|
11474
11432
|
class: "widget-wrapper"
|
|
11475
|
-
},
|
|
11476
|
-
function
|
|
11477
|
-
const s = U, u = ee, p = G, g = zi,
|
|
11433
|
+
}, Xd = { key: 0 };
|
|
11434
|
+
function _d(e, i, t, l, r, c) {
|
|
11435
|
+
const s = U, u = ee, p = G, g = zi, y = we, $ = We, n = He, f = wt, k = Ui;
|
|
11478
11436
|
return o(), h(F, null, [
|
|
11479
11437
|
m(f, {
|
|
11480
11438
|
"label-position": e.labelPosition,
|
|
11481
11439
|
size: e.size,
|
|
11482
|
-
class:
|
|
11440
|
+
class: v([[e.customClass], "render-form"]),
|
|
11483
11441
|
"label-width": e.labelWidth,
|
|
11484
11442
|
"validate-on-rule-change": !1,
|
|
11485
11443
|
model: e.formDataModel,
|
|
@@ -11499,13 +11457,13 @@ function xd(e, i, t, l, r, c) {
|
|
|
11499
11457
|
"label-width": e.labelWidth,
|
|
11500
11458
|
size: e.size,
|
|
11501
11459
|
"label-position": e.labelPosition,
|
|
11502
|
-
class:
|
|
11460
|
+
class: v([e.labelAlign]),
|
|
11503
11461
|
required: "",
|
|
11504
11462
|
prop: e.sdform.joiner_field.field_name
|
|
11505
11463
|
}, {
|
|
11506
11464
|
label: a(() => [
|
|
11507
11465
|
S("span", null, [
|
|
11508
|
-
L(
|
|
11466
|
+
L(w(e.sdform.joiner_field.joiner_label) + " ", 1),
|
|
11509
11467
|
e.sdform.joiner_field.joiner_hint ? (o(), d(u, {
|
|
11510
11468
|
key: 0,
|
|
11511
11469
|
content: e.sdform.joiner_field.joiner_hint,
|
|
@@ -11588,7 +11546,7 @@ function xd(e, i, t, l, r, c) {
|
|
|
11588
11546
|
key: "0"
|
|
11589
11547
|
}
|
|
11590
11548
|
]), 1032, ["modelValue", "build-state", "placeholder", "disabled", "data-provider", "value-field", "search-field", "label-field", "ref-field", "label-template", "user-state", "style", "size", "onChange"]),
|
|
11591
|
-
e.annotated ? (o(), d(
|
|
11549
|
+
e.annotated ? (o(), d(y, {
|
|
11592
11550
|
key: 0,
|
|
11593
11551
|
type: "warning",
|
|
11594
11552
|
effect: "plain",
|
|
@@ -11596,7 +11554,7 @@ function xd(e, i, t, l, r, c) {
|
|
|
11596
11554
|
style: { position: "absolute", top: "0", right: "0", "z-index": "999" }
|
|
11597
11555
|
}, {
|
|
11598
11556
|
default: a(() => [
|
|
11599
|
-
L(
|
|
11557
|
+
L(w(e.sdform.joiner_field.field_name), 1)
|
|
11600
11558
|
]),
|
|
11601
11559
|
_: 1
|
|
11602
11560
|
})) : b("", !0)
|
|
@@ -11611,18 +11569,18 @@ function xd(e, i, t, l, r, c) {
|
|
|
11611
11569
|
style: { "margin-bottom": "15px" }
|
|
11612
11570
|
}, {
|
|
11613
11571
|
default: a(() => [
|
|
11614
|
-
S("ul",
|
|
11572
|
+
S("ul", Qd, [
|
|
11615
11573
|
(o(!0), h(F, null, T(e.formData.xerrorx, (V, ie) => (o(), h("li", null, [
|
|
11616
11574
|
S("b", null, [
|
|
11617
|
-
S("u", null,
|
|
11575
|
+
S("u", null, w(ie), 1)
|
|
11618
11576
|
]),
|
|
11619
|
-
L(" " +
|
|
11577
|
+
L(" " + w(V), 1)
|
|
11620
11578
|
]))), 256))
|
|
11621
11579
|
])
|
|
11622
11580
|
]),
|
|
11623
11581
|
_: 1
|
|
11624
11582
|
})) : b("", !0),
|
|
11625
|
-
e.showInput ? (o(), h("div",
|
|
11583
|
+
e.showInput ? (o(), h("div", Yd, [
|
|
11626
11584
|
(o(!0), h(F, null, T(e.fields, (V, ie) => (o(), h(F, null, [
|
|
11627
11585
|
V.category === "container" ? (o(), d(B(V.component + "-render"), {
|
|
11628
11586
|
field: V,
|
|
@@ -11645,19 +11603,19 @@ function xd(e, i, t, l, r, c) {
|
|
|
11645
11603
|
]),
|
|
11646
11604
|
_: 1
|
|
11647
11605
|
}, 8, ["label-position", "size", "class", "label-width", "model"]),
|
|
11648
|
-
e.showPopupFlag ? (o(), h("div",
|
|
11649
|
-
m(k,
|
|
11606
|
+
e.showPopupFlag ? (o(), h("div", Xd, [
|
|
11607
|
+
m(k, De({ ref: "refSubForm" }, e.subFormBindProps, {
|
|
11650
11608
|
"is-sub-form": !0,
|
|
11651
11609
|
"user-state": e.userState
|
|
11652
11610
|
}), null, 16, ["user-state"])
|
|
11653
11611
|
])) : b("", !0)
|
|
11654
11612
|
], 64);
|
|
11655
11613
|
}
|
|
11656
|
-
const
|
|
11614
|
+
const xd = /* @__PURE__ */ R(Zd, [["render", _d], ["__scopeId", "data-v-9bcd7ba8"]]), Vf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11657
11615
|
__proto__: null,
|
|
11658
|
-
default:
|
|
11616
|
+
default: xd
|
|
11659
11617
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11660
11618
|
export {
|
|
11661
|
-
|
|
11662
|
-
|
|
11619
|
+
Vf as S,
|
|
11620
|
+
Tf as i
|
|
11663
11621
|
};
|