hlrender 0.0.1
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/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-b6cdaf6f.js +35 -0
- package/anchor-link-widget-919ac0ee.js +5 -0
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
- package/anchor-widget-403fe70f.js +54 -0
- package/auto-complete-widget-597d8400.js +71 -0
- package/avatar-widget-c56add2d.js +35 -0
- package/backtop-widget-65d711e3.js +35 -0
- package/badge-widget-f6a08422.js +41 -0
- package/baseImp-70f1a9c5.js +11003 -0
- package/breadcrumb-widget-3791fbcf.js +76 -0
- package/button-widget-b539a793.js +45 -0
- package/cache-widget-89624589.js +50 -0
- package/card-widget-2890042f.js +109 -0
- package/carousel-widget-730618e4.js +72 -0
- package/cascader-widget-a364f226.js +94 -0
- package/chart-widget-d0b5993c.js +44282 -0
- package/checkbox-widget-5f87a8e5.js +76 -0
- package/collapse-widget-a654ac45.js +86 -0
- package/color-picker-widget-b5b274dd.js +53 -0
- package/cont-cell-widget-475412c6.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9aac0112.js +59 -0
- package/cont-widget-defa7dd6.js +42 -0
- package/content-wrapper-7ba06bbc.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js +37 -0
- package/date-picker-range-widget-e528dab6.js +69 -0
- package/date-picker-widget-a5d3e5ff.js +75 -0
- package/default-slot-widget-09d11567.js +22 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js +59 -0
- package/descriptions-widget-9711a62b.js +80 -0
- package/dialog-333d3421.js +124 -0
- package/dialog-widget-94d8ab5a.js +30 -0
- package/divider-widget-b835bbc3.js +35 -0
- package/drag-wrapper-227f198f.js +258 -0
- package/drawer-widget-3906d028.js +30 -0
- package/dropdown-widget-74696f3c.js +89 -0
- package/empty-widget-ba5e0039.js +61 -0
- package/enum-type-92806e9d.js +207 -0
- package/enum-type-be3a0b8b.js +2048 -0
- package/expression-63a787db.js +2181 -0
- package/feedback-widget-3140f73d.js +23 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f8da09d0.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/file-upload-widget-dcc0425c.js +95 -0
- package/form-item-wrapper-849d8a21.js +111 -0
- package/form-widget-1dcffd59.js +183 -0
- package/grid-col-widget-e6b1455d.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed554759.js +41 -0
- package/grid-widget-d7974890.js +43 -0
- package/html-text-widget-e13171fa.js +47 -0
- package/icon-e9532b43.js +119 -0
- package/iframe-widget-dee326a7.js +74 -0
- package/image-widget-d417c681.js +61 -0
- package/index-28e4bcfb.js +99 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-ddd23411.js +4884 -0
- package/index-f54403db.js +65 -0
- package/index-fa19f5d9.js +10568 -0
- package/input-number-widget-548743d9.js +63 -0
- package/input-widget-81153a08.js +68 -0
- package/label-wrapper-13267254.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js +80 -0
- package/link-widget-e2aeac9f.js +53 -0
- package/ltable-col-widget-ecfe9f02.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js +256 -0
- package/ltable-widget-d5d81ac2.js +69 -0
- package/menu-widget-101389ec.js +93 -0
- package/model-widget-84277d11.js +119 -0
- package/multirow-3ade8c6e.js +341 -0
- package/multirow-widget copy-efbb1e00.js +855 -0
- package/multirow-widget-a73fd2b8.js +691 -0
- package/package.json +13 -0
- package/pagination-widget-12edf5f4.js +78 -0
- package/picture-upload-widget-bcef9cc8.js +99 -0
- package/progress-widget-f515a118.js +49 -0
- package/propresult-e424ed73.js +22 -0
- package/radio-widget-78f9cab9.js +76 -0
- package/range-widget-904ed0d6.js +71 -0
- package/rate-widget-efdab26c.js +53 -0
- package/render.es.js +4434 -0
- package/render.style.css +11 -0
- package/render.umd.js +160496 -0
- package/result-widget-b1688641.js +64 -0
- package/rich-editor-widget-f1bb90c7.js +74 -0
- package/router-widget-920b11e4.js +51 -0
- package/select-widget-f3a43687.js +285 -0
- package/sfc-b5fb0bca.js +2568 -0
- package/share-field-9834aef6.js +688 -0
- package/share-file-329736c4.js +121 -0
- package/slider-widget-5146c0c3.js +59 -0
- package/slot-c6523e8c.js +17 -0
- package/static-text-widget-307cd047.js +48 -0
- package/steps-widget-70c08c51.js +88 -0
- package/subMenu-widget-c1a614ad.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js +69 -0
- package/switch-widget-a103faaa.js +53 -0
- package/tab-pane-widget-e7c83114.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-12fa9f12.js +35 -0
- package/table-col-widget-f177b82e.js +20 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js +80 -0
- package/table-widget-500902fd.js +160 -0
- package/tabs-widget-5e612fc0.js +68 -0
- package/tag-widget-8b945443.js +35 -0
- package/template-9ade074e.js +251730 -0
- package/text-widget-0d93ae9a.js +35 -0
- package/textarea-widget-d2464e70.js +53 -0
- package/time-picker-range-widget-7d92f5f0.js +55 -0
- package/time-picker-widget-3e0cc2c5.js +54 -0
- package/time-select-widget-b0b17501.js +54 -0
- package/tmpl-widget-b2402ddc.js +89 -0
- package/tree-select-widget-13f054e9.js +91 -0
- package/tree-widget-8bee698c.js +87 -0
- package/uuid-b302db3f.js +192 -0
- package/vue3-sfc-loader-b70bdce4.js +34688 -0
- package/widget-base-4c2d6265.js +27 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js +277 -0
- package/wrapper-widget-4d87e124.js +78 -0
|
@@ -0,0 +1,691 @@
|
|
|
1
|
+
import { defineComponent as qe, computed as v, ref as Ge, onMounted as Je, resolveComponent as A, openBlock as l, createBlock as p, mergeProps as D, unref as e, withCtx as r, createElementBlock as c, Fragment as C, createVNode as w, createTextVNode as u, toDisplayString as d, createCommentVNode as a, renderList as ne, normalizeClass as Ne, createElementVNode as b, pushScopeId as Ke, popScopeId as Qe } from "vue";
|
|
2
|
+
import { a as T, L as Xe, M as Ye, N as Ze, O as et } from "./enum-type-be3a0b8b.js";
|
|
3
|
+
import { B as $e, x as P } from "./baseImp-70f1a9c5.js";
|
|
4
|
+
import { I as tt } from "./widget-base-4c2d6265.js";
|
|
5
|
+
import { b as ot } from "./share-field-9834aef6.js";
|
|
6
|
+
import { _ as nt } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
7
|
+
import { D as O } from "./drag-wrapper-227f198f.js";
|
|
8
|
+
import { _ as Be } from "./enum-type-92806e9d.js";
|
|
9
|
+
import { _ as lt } from "./label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js";
|
|
10
|
+
import { i as it, a as F } from "./slot-c6523e8c.js";
|
|
11
|
+
import { d as rt } from "./multirow-3ade8c6e.js";
|
|
12
|
+
import { Plus as S, Delete as q, SortUp as G, SortDown as J } from "./index-ddd23411.js";
|
|
13
|
+
import { _ as at } from "./_plugin-vue_export-helper-dad06003.js";
|
|
14
|
+
import "./uuid-b302db3f.js";
|
|
15
|
+
import "./icon-e9532b43.js";
|
|
16
|
+
import "./template-9ade074e.js";
|
|
17
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
18
|
+
import "./dialog-333d3421.js";
|
|
19
|
+
import "element-plus";
|
|
20
|
+
import "./index-fa19f5d9.js";
|
|
21
|
+
import "./index-f54403db.js";
|
|
22
|
+
import "./field-base-5547436d.js";
|
|
23
|
+
const st = (L) => (Ke("data-v-ba7a53a7"), L = L(), Qe(), L), dt = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "multiRowLine"
|
|
26
|
+
}, ut = {
|
|
27
|
+
key: 1,
|
|
28
|
+
class: "horialCenter row_bottom"
|
|
29
|
+
}, ct = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "horialCenter row_bottom"
|
|
32
|
+
}, pt = { key: 0 }, wt = { class: "td2" }, mt = { class: "td2" }, _t = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "td2"
|
|
35
|
+
}, ft = /* @__PURE__ */ st(() => /* @__PURE__ */ b("td", { class: "rowIndex" }, "1", -1)), gt = {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "btns"
|
|
38
|
+
}, kt = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "detailTable"
|
|
41
|
+
}, yt = ["colspan"], ht = { class: "nolabel tr2" }, vt = { class: "rowIndex" }, bt = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "btns"
|
|
44
|
+
}, Rt = { key: 0 }, Ct = ["colspan"], Tt = ["colspan"], St = {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "horialCenter row_bottom"
|
|
47
|
+
}, Dt = {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: "horialCenter row_bottom"
|
|
50
|
+
}, Nt = {
|
|
51
|
+
key: 1,
|
|
52
|
+
class: "horialCenter row_bottom"
|
|
53
|
+
}, $t = /* @__PURE__ */ qe({
|
|
54
|
+
__name: "multirow-widget",
|
|
55
|
+
props: {
|
|
56
|
+
...tt
|
|
57
|
+
},
|
|
58
|
+
setup(L, { expose: Ae }) {
|
|
59
|
+
const le = L, { slots: K, exposed: I, fieldModel: Oe, attrs: o, events: ie, fieldObj: Fe, fieldName: Le } = ot(le), N = v(() => it(K.value)), { rowsData: g, formModel: Bt, listenFormModel: Ie, newSlot: We, getWidgetOption: re, newFieldModelFromSlot: xe, removeFieldModelFromSlot: Me, getValue: Ue, setValue: Ve, findWidgetByNameWithSibId: ze, getSlotFromData: He } = rt({ ...le, fieldName: Le.value }), Q = v(() => {
|
|
60
|
+
var t;
|
|
61
|
+
return (t = o.value) == null ? void 0 : t.sortable;
|
|
62
|
+
}), ae = v(() => {
|
|
63
|
+
var t, s;
|
|
64
|
+
return !((t = o.value) != null && t.onlyOneAddButton) && ((s = o.value) == null ? void 0 : s.allowAdd);
|
|
65
|
+
}), se = v(() => {
|
|
66
|
+
var t;
|
|
67
|
+
return (t = o.value) == null ? void 0 : t.allowDelete;
|
|
68
|
+
}), de = v(() => {
|
|
69
|
+
var t;
|
|
70
|
+
return (t = o.value) == null ? void 0 : t.showDetail;
|
|
71
|
+
}), X = v(() => {
|
|
72
|
+
var t;
|
|
73
|
+
return (t = o.value) == null ? void 0 : t.showLimit;
|
|
74
|
+
}), $ = v(() => Q.value || ae.value || se.value), Y = v(() => $ != null && $.value ? 2 : 1), Z = v(() => {
|
|
75
|
+
var t;
|
|
76
|
+
return (t = te(F(N.value, "row"))) == null ? void 0 : t.length;
|
|
77
|
+
}), ee = v(() => {
|
|
78
|
+
var t, s;
|
|
79
|
+
return T.i18nt("designer.hint.multirowtip") + ((t = o.value) == null ? void 0 : t.minRowNum) + "-" + ((s = o.value) == null ? void 0 : s.maxRowNum);
|
|
80
|
+
}), z = T.i18nt("designer.hint.sortUp"), H = T.i18nt("designer.hint.sortDown"), j = T.i18nt("designer.hint.deleteRow"), R = T.i18nt("designer.hint.addNewRow"), B = v(() => (g == null ? void 0 : g.length) || 0), W = (t) => {
|
|
81
|
+
var _, h;
|
|
82
|
+
if ((g == null ? void 0 : g.length) >= o.value.maxRowNum) {
|
|
83
|
+
P.info(T.i18nt("designer.hint.maxRowTip"));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const s = We(K.value);
|
|
87
|
+
Xe(g, t, s), xe(s, me({}, t + 1)), (h = (_ = ie.value).addRow) == null || h.call(_, t);
|
|
88
|
+
}, ue = (t) => {
|
|
89
|
+
var _, h;
|
|
90
|
+
if ((g == null ? void 0 : g.length) <= o.value.minRowNum) {
|
|
91
|
+
P.info(T.i18nt("designer.hint.minRowTip"));
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const s = g[t];
|
|
95
|
+
Ye(g, t), Me(s), (h = (_ = ie.value).deleteRow) == null || h.call(_, t);
|
|
96
|
+
}, ce = (t) => {
|
|
97
|
+
if (t === g.length - 1) {
|
|
98
|
+
P.info(T.i18nt("designer.hint.moveDownLastChildHint"));
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
Ze(g, t);
|
|
102
|
+
}, pe = (t) => {
|
|
103
|
+
if (t === 0) {
|
|
104
|
+
P.info(T.i18nt("designer.hint.moveUpFirstChildHint"));
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
et(g, t);
|
|
108
|
+
}, te = (t) => t == null ? void 0 : t.widgetList, we = Ge(!0), je = (t) => {
|
|
109
|
+
var s, _;
|
|
110
|
+
return (s = o.value) != null && s.dataFormat ? (_ = o.value) == null ? void 0 : _.dataFormat(t) : t;
|
|
111
|
+
}, me = (t, s) => {
|
|
112
|
+
var _, h;
|
|
113
|
+
return (_ = o.value) != null && _.rowDataFormat ? (h = o.value) == null ? void 0 : h.rowDataFormat(t, s) : t;
|
|
114
|
+
}, x = v({
|
|
115
|
+
get() {
|
|
116
|
+
return we.value && (oe(Oe.value), we.value = !1), g;
|
|
117
|
+
},
|
|
118
|
+
set(t) {
|
|
119
|
+
return oe(t), g;
|
|
120
|
+
}
|
|
121
|
+
}), Ee = (t, s) => ze(t, s, (_) => I.findRefByName(_)), oe = (t) => Ve(je(t), (s) => Pe(s)), Pe = (t) => {
|
|
122
|
+
var s;
|
|
123
|
+
return He(K.value, t, (s = o.value) == null ? void 0 : s.minRowNum, me);
|
|
124
|
+
};
|
|
125
|
+
return Je(() => {
|
|
126
|
+
Ie((t) => {
|
|
127
|
+
I == null || I.setValue(t);
|
|
128
|
+
});
|
|
129
|
+
}), Ae({
|
|
130
|
+
...I,
|
|
131
|
+
setValue: oe,
|
|
132
|
+
getValue: Ue,
|
|
133
|
+
findWidgetByNameWithSibId: Ee
|
|
134
|
+
}), (t, s) => {
|
|
135
|
+
const _ = A("el-col"), h = A("el-tag"), _e = A("el-divider"), m = A("el-button"), E = A("el-button-group"), fe = A("el-row");
|
|
136
|
+
return l(), p(nt, D(t.$props, {
|
|
137
|
+
"prop-options": { fieldObj: e(Fe) }
|
|
138
|
+
}), {
|
|
139
|
+
default: r(({ data: At }) => {
|
|
140
|
+
var ge, ke, ye, he, ve, be, Re, Ce, Te, Se, De;
|
|
141
|
+
return [
|
|
142
|
+
((ge = e(o)) == null ? void 0 : ge.showMode) === e(Be).line ? (l(), c(C, { key: 0 }, [
|
|
143
|
+
t.designState ? (l(), c("div", dt, [
|
|
144
|
+
(ke = e(o)) != null && ke.showHeader ? (l(), p(fe, {
|
|
145
|
+
key: 0,
|
|
146
|
+
class: "rowHeader"
|
|
147
|
+
}, {
|
|
148
|
+
default: r(() => [
|
|
149
|
+
w(_, {
|
|
150
|
+
span: 10,
|
|
151
|
+
class: "rowLabel"
|
|
152
|
+
}, {
|
|
153
|
+
default: r(() => [
|
|
154
|
+
u(d(e($e).getOptions(t.widget || {}, "label")), 1)
|
|
155
|
+
]),
|
|
156
|
+
_: 1
|
|
157
|
+
}),
|
|
158
|
+
w(_, {
|
|
159
|
+
span: 14,
|
|
160
|
+
class: "flexInline justifyEnd alignCenter"
|
|
161
|
+
}, {
|
|
162
|
+
default: r(() => [
|
|
163
|
+
e(X) ? (l(), p(h, {
|
|
164
|
+
key: 0,
|
|
165
|
+
type: "info",
|
|
166
|
+
round: ""
|
|
167
|
+
}, {
|
|
168
|
+
default: r(() => [
|
|
169
|
+
u(d(e(ee)), 1)
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
})) : a("", !0),
|
|
173
|
+
w(_e, { direction: "vertical" }),
|
|
174
|
+
w(E, null, {
|
|
175
|
+
default: r(() => {
|
|
176
|
+
var n, i;
|
|
177
|
+
return [
|
|
178
|
+
!((n = e(o)) != null && n.onlyOneAddButton) && ((i = e(o)) != null && i.allowAdd) ? (l(), p(m, {
|
|
179
|
+
key: 0,
|
|
180
|
+
icon: e(S),
|
|
181
|
+
link: ""
|
|
182
|
+
}, {
|
|
183
|
+
default: r(() => {
|
|
184
|
+
var k;
|
|
185
|
+
return [
|
|
186
|
+
u(d(((k = e(o)) == null ? void 0 : k.addRecordText) || e(R)), 1)
|
|
187
|
+
];
|
|
188
|
+
}),
|
|
189
|
+
_: 1
|
|
190
|
+
}, 8, ["icon"])) : a("", !0),
|
|
191
|
+
e(o).allowDelete ? (l(), p(m, {
|
|
192
|
+
key: 1,
|
|
193
|
+
icon: e(q),
|
|
194
|
+
type: "danger",
|
|
195
|
+
link: ""
|
|
196
|
+
}, {
|
|
197
|
+
default: r(() => {
|
|
198
|
+
var k;
|
|
199
|
+
return [
|
|
200
|
+
u(d(((k = e(o)) == null ? void 0 : k.deleteRecordText) || e(j)), 1)
|
|
201
|
+
];
|
|
202
|
+
}),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 8, ["icon"])) : a("", !0),
|
|
205
|
+
e(o).sortable ? (l(), p(m, {
|
|
206
|
+
key: 2,
|
|
207
|
+
icon: e(G),
|
|
208
|
+
link: ""
|
|
209
|
+
}, {
|
|
210
|
+
default: r(() => {
|
|
211
|
+
var k;
|
|
212
|
+
return [
|
|
213
|
+
u(d(((k = e(o)) == null ? void 0 : k.sortUpText) || e(z)), 1)
|
|
214
|
+
];
|
|
215
|
+
}),
|
|
216
|
+
_: 1
|
|
217
|
+
}, 8, ["icon"])) : a("", !0),
|
|
218
|
+
e(o).sortable ? (l(), p(m, {
|
|
219
|
+
key: 3,
|
|
220
|
+
icon: e(J),
|
|
221
|
+
link: ""
|
|
222
|
+
}, {
|
|
223
|
+
default: r(() => {
|
|
224
|
+
var k;
|
|
225
|
+
return [
|
|
226
|
+
u(d(((k = e(o)) == null ? void 0 : k.sortDownText) || e(H)), 1)
|
|
227
|
+
];
|
|
228
|
+
}),
|
|
229
|
+
_: 1
|
|
230
|
+
}, 8, ["icon"])) : a("", !0)
|
|
231
|
+
];
|
|
232
|
+
}),
|
|
233
|
+
_: 1
|
|
234
|
+
})
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
})
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
})) : a("", !0),
|
|
241
|
+
w(O, D(t.$props, {
|
|
242
|
+
widget: e(F)(e(N), "row"),
|
|
243
|
+
dragClass: "dragSize"
|
|
244
|
+
}), null, 16, ["widget"]),
|
|
245
|
+
(ye = e(o)) != null && ye.onlyOneAddButton ? (l(), c("div", ut, [
|
|
246
|
+
w(m, {
|
|
247
|
+
icon: e(S),
|
|
248
|
+
size: "large"
|
|
249
|
+
}, {
|
|
250
|
+
default: r(() => {
|
|
251
|
+
var n;
|
|
252
|
+
return [
|
|
253
|
+
u(d(((n = e(o)) == null ? void 0 : n.addRecordText) || e(R)), 1)
|
|
254
|
+
];
|
|
255
|
+
}),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["icon"])
|
|
258
|
+
])) : a("", !0)
|
|
259
|
+
])) : (l(), c(C, { key: 1 }, [
|
|
260
|
+
(l(!0), c(C, null, ne(e(x), (n, i) => {
|
|
261
|
+
var k, M;
|
|
262
|
+
return l(), c("div", {
|
|
263
|
+
key: n.id,
|
|
264
|
+
class: "multiRowLine"
|
|
265
|
+
}, [
|
|
266
|
+
(k = e(o)) != null && k.showHeader ? (l(), p(fe, {
|
|
267
|
+
key: 0,
|
|
268
|
+
class: "rowHeader"
|
|
269
|
+
}, {
|
|
270
|
+
default: r(() => [
|
|
271
|
+
w(_, {
|
|
272
|
+
span: 10,
|
|
273
|
+
class: "rowLabel"
|
|
274
|
+
}, {
|
|
275
|
+
default: r(() => [
|
|
276
|
+
u(d(e($e).getOptions(t.widget || {}, "label")) + " " + d(i + 1), 1)
|
|
277
|
+
]),
|
|
278
|
+
_: 2
|
|
279
|
+
}, 1024),
|
|
280
|
+
w(_, {
|
|
281
|
+
span: 14,
|
|
282
|
+
class: "flexInline justifyEnd alignCenter"
|
|
283
|
+
}, {
|
|
284
|
+
default: r(() => [
|
|
285
|
+
i == 0 && e(X) ? (l(), p(h, {
|
|
286
|
+
key: 0,
|
|
287
|
+
type: "info",
|
|
288
|
+
round: ""
|
|
289
|
+
}, {
|
|
290
|
+
default: r(() => [
|
|
291
|
+
u(d(e(ee)), 1)
|
|
292
|
+
]),
|
|
293
|
+
_: 1
|
|
294
|
+
})) : a("", !0),
|
|
295
|
+
w(_e, { direction: "vertical" }),
|
|
296
|
+
w(E, null, {
|
|
297
|
+
default: r(() => {
|
|
298
|
+
var U, V, f;
|
|
299
|
+
return [
|
|
300
|
+
!((U = e(o)) != null && U.onlyOneAddButton) && e(o).allowAdd ? (l(), p(m, {
|
|
301
|
+
key: 0,
|
|
302
|
+
onClick: (y) => W(i),
|
|
303
|
+
disabled: e(B) > ((V = e(o)) == null ? void 0 : V.maxRowNum),
|
|
304
|
+
icon: e(S),
|
|
305
|
+
link: ""
|
|
306
|
+
}, {
|
|
307
|
+
default: r(() => {
|
|
308
|
+
var y;
|
|
309
|
+
return [
|
|
310
|
+
u(d(((y = e(o)) == null ? void 0 : y.addRecordText) || e(R)), 1)
|
|
311
|
+
];
|
|
312
|
+
}),
|
|
313
|
+
_: 2
|
|
314
|
+
}, 1032, ["onClick", "disabled", "icon"])) : a("", !0),
|
|
315
|
+
e(o).allowDelete ? (l(), p(m, {
|
|
316
|
+
key: 1,
|
|
317
|
+
onClick: (y) => ue(i),
|
|
318
|
+
disabled: ((f = e(o)) == null ? void 0 : f.minRowNum) >= e(B),
|
|
319
|
+
icon: e(q),
|
|
320
|
+
type: "danger",
|
|
321
|
+
link: ""
|
|
322
|
+
}, {
|
|
323
|
+
default: r(() => {
|
|
324
|
+
var y;
|
|
325
|
+
return [
|
|
326
|
+
u(d(((y = e(o)) == null ? void 0 : y.deleteRecordText) || e(j)), 1)
|
|
327
|
+
];
|
|
328
|
+
}),
|
|
329
|
+
_: 2
|
|
330
|
+
}, 1032, ["onClick", "disabled", "icon"])) : a("", !0),
|
|
331
|
+
e(o).sortable ? (l(), p(m, {
|
|
332
|
+
key: 2,
|
|
333
|
+
onClick: (y) => pe(i),
|
|
334
|
+
disabled: i <= 0,
|
|
335
|
+
icon: e(G),
|
|
336
|
+
link: ""
|
|
337
|
+
}, {
|
|
338
|
+
default: r(() => {
|
|
339
|
+
var y;
|
|
340
|
+
return [
|
|
341
|
+
u(d(((y = e(o)) == null ? void 0 : y.sortUpText) || e(z)), 1)
|
|
342
|
+
];
|
|
343
|
+
}),
|
|
344
|
+
_: 2
|
|
345
|
+
}, 1032, ["onClick", "disabled", "icon"])) : a("", !0),
|
|
346
|
+
e(o).sortable ? (l(), p(m, {
|
|
347
|
+
key: 3,
|
|
348
|
+
onClick: (y) => ce(i),
|
|
349
|
+
disabled: i >= e(B) - 1,
|
|
350
|
+
icon: e(J),
|
|
351
|
+
link: ""
|
|
352
|
+
}, {
|
|
353
|
+
default: r(() => {
|
|
354
|
+
var y;
|
|
355
|
+
return [
|
|
356
|
+
u(d(((y = e(o)) == null ? void 0 : y.sortDownText) || e(H)), 1)
|
|
357
|
+
];
|
|
358
|
+
}),
|
|
359
|
+
_: 2
|
|
360
|
+
}, 1032, ["onClick", "disabled", "icon"])) : a("", !0)
|
|
361
|
+
];
|
|
362
|
+
}),
|
|
363
|
+
_: 2
|
|
364
|
+
}, 1024)
|
|
365
|
+
]),
|
|
366
|
+
_: 2
|
|
367
|
+
}, 1024)
|
|
368
|
+
]),
|
|
369
|
+
_: 2
|
|
370
|
+
}, 1024)) : a("", !0),
|
|
371
|
+
w(O, D(t.$props, {
|
|
372
|
+
widget: (M = n == null ? void 0 : n.widget) == null ? void 0 : M[0],
|
|
373
|
+
componentName: "div",
|
|
374
|
+
componentClass: "flex full-width",
|
|
375
|
+
"row-scope": { row: n == null ? void 0 : n.data, $index: i }
|
|
376
|
+
}), null, 16, ["widget", "row-scope"])
|
|
377
|
+
]);
|
|
378
|
+
}), 128)),
|
|
379
|
+
(he = e(o)) != null && he.onlyOneAddButton && e(o).allowAdd ? (l(), c("div", ct, [
|
|
380
|
+
w(m, {
|
|
381
|
+
icon: e(S),
|
|
382
|
+
size: "large",
|
|
383
|
+
onClick: s[0] || (s[0] = (n) => {
|
|
384
|
+
var i;
|
|
385
|
+
return W(((i = e(x)) == null ? void 0 : i.length) - 1);
|
|
386
|
+
})
|
|
387
|
+
}, {
|
|
388
|
+
default: r(() => {
|
|
389
|
+
var n;
|
|
390
|
+
return [
|
|
391
|
+
u(d(((n = e(o)) == null ? void 0 : n.addRecordText) || e(R)), 1)
|
|
392
|
+
];
|
|
393
|
+
}),
|
|
394
|
+
_: 1
|
|
395
|
+
}, 8, ["icon"])
|
|
396
|
+
])) : a("", !0)
|
|
397
|
+
], 64))
|
|
398
|
+
], 64)) : ((ve = e(o)) == null ? void 0 : ve.showMode) === e(Be).table ? (l(), c("table", {
|
|
399
|
+
key: 1,
|
|
400
|
+
class: Ne(["table2", [(be = e(o)) != null && be.showBorder ? "borderedTable" : ""]])
|
|
401
|
+
}, [
|
|
402
|
+
(Re = e(o)) != null && Re.showHeader ? (l(), c("thead", pt, [
|
|
403
|
+
b("tr", null, [
|
|
404
|
+
b("th", wt, [
|
|
405
|
+
e(X) ? (l(), p(h, {
|
|
406
|
+
key: 0,
|
|
407
|
+
type: "info",
|
|
408
|
+
round: ""
|
|
409
|
+
}, {
|
|
410
|
+
default: r(() => [
|
|
411
|
+
u(d(e(ee)), 1)
|
|
412
|
+
]),
|
|
413
|
+
_: 1
|
|
414
|
+
})) : a("", !0)
|
|
415
|
+
]),
|
|
416
|
+
(l(!0), c(C, null, ne(te(e(F)(e(N), "row")), (n) => {
|
|
417
|
+
var i;
|
|
418
|
+
return l(), c("th", mt, [
|
|
419
|
+
b("div", {
|
|
420
|
+
class: Ne([(i = e(re)(n)) != null && i.required ? "required" : ""])
|
|
421
|
+
}, [
|
|
422
|
+
w(lt, {
|
|
423
|
+
widget: n,
|
|
424
|
+
designer: t.designer,
|
|
425
|
+
designState: t.designState,
|
|
426
|
+
parentWidget: t.widget,
|
|
427
|
+
parentList: te(e(F)(e(N), "row")),
|
|
428
|
+
"prop-options": { fieldObj: { extendAttrs: e(re)(n) } }
|
|
429
|
+
}, null, 8, ["widget", "designer", "designState", "parentWidget", "parentList", "prop-options"])
|
|
430
|
+
], 2)
|
|
431
|
+
]);
|
|
432
|
+
}), 256)),
|
|
433
|
+
e($) ? (l(), c("th", _t)) : a("", !0)
|
|
434
|
+
])
|
|
435
|
+
])) : a("", !0),
|
|
436
|
+
b("tbody", null, [
|
|
437
|
+
t.designState ? (l(), c(C, { key: 0 }, [
|
|
438
|
+
w(O, D(t.$props, {
|
|
439
|
+
widget: e(F)(e(N), "row"),
|
|
440
|
+
componentName: "td",
|
|
441
|
+
dragTag: "tr",
|
|
442
|
+
componentClass: "td2",
|
|
443
|
+
dragClass: "dragSize nolabel"
|
|
444
|
+
}), {
|
|
445
|
+
header: r(() => [
|
|
446
|
+
ft
|
|
447
|
+
]),
|
|
448
|
+
footer: r(() => [
|
|
449
|
+
e($) ? (l(), c("td", gt, [
|
|
450
|
+
w(E, null, {
|
|
451
|
+
default: r(() => {
|
|
452
|
+
var n;
|
|
453
|
+
return [
|
|
454
|
+
!((n = e(o)) != null && n.onlyOneAddButton) && e(o).allowAdd ? (l(), p(m, {
|
|
455
|
+
key: 0,
|
|
456
|
+
icon: e(S),
|
|
457
|
+
link: ""
|
|
458
|
+
}, {
|
|
459
|
+
default: r(() => {
|
|
460
|
+
var i;
|
|
461
|
+
return [
|
|
462
|
+
u(d(((i = e(o)) == null ? void 0 : i.addRecordText) || e(R)), 1)
|
|
463
|
+
];
|
|
464
|
+
}),
|
|
465
|
+
_: 1
|
|
466
|
+
}, 8, ["icon"])) : a("", !0),
|
|
467
|
+
e(o).allowDelete ? (l(), p(m, {
|
|
468
|
+
key: 1,
|
|
469
|
+
type: "danger",
|
|
470
|
+
icon: e(q),
|
|
471
|
+
link: ""
|
|
472
|
+
}, {
|
|
473
|
+
default: r(() => {
|
|
474
|
+
var i;
|
|
475
|
+
return [
|
|
476
|
+
u(d(((i = e(o)) == null ? void 0 : i.deleteRecordText) || e(j)), 1)
|
|
477
|
+
];
|
|
478
|
+
}),
|
|
479
|
+
_: 1
|
|
480
|
+
}, 8, ["icon"])) : a("", !0),
|
|
481
|
+
e(o).sortable ? (l(), p(m, {
|
|
482
|
+
key: 2,
|
|
483
|
+
link: "",
|
|
484
|
+
icon: e(G)
|
|
485
|
+
}, {
|
|
486
|
+
default: r(() => {
|
|
487
|
+
var i;
|
|
488
|
+
return [
|
|
489
|
+
u(d(((i = e(o)) == null ? void 0 : i.sortUpText) || e(z)), 1)
|
|
490
|
+
];
|
|
491
|
+
}),
|
|
492
|
+
_: 1
|
|
493
|
+
}, 8, ["icon"])) : a("", !0),
|
|
494
|
+
e(o).sortable ? (l(), p(m, {
|
|
495
|
+
key: 3,
|
|
496
|
+
link: "",
|
|
497
|
+
icon: e(J)
|
|
498
|
+
}, {
|
|
499
|
+
default: r(() => {
|
|
500
|
+
var i;
|
|
501
|
+
return [
|
|
502
|
+
u(d(((i = e(o)) == null ? void 0 : i.sortDownText) || e(H)), 1)
|
|
503
|
+
];
|
|
504
|
+
}),
|
|
505
|
+
_: 1
|
|
506
|
+
}, 8, ["icon"])) : a("", !0)
|
|
507
|
+
];
|
|
508
|
+
}),
|
|
509
|
+
_: 1
|
|
510
|
+
})
|
|
511
|
+
])) : a("", !0)
|
|
512
|
+
]),
|
|
513
|
+
_: 1
|
|
514
|
+
}, 16, ["widget"]),
|
|
515
|
+
e(de) ? (l(), c("tr", kt, [
|
|
516
|
+
b("td", {
|
|
517
|
+
colspan: (e(Z) || 0) + e(Y)
|
|
518
|
+
}, [
|
|
519
|
+
w(O, D(t.$props, {
|
|
520
|
+
widget: e(F)(e(N), "detail"),
|
|
521
|
+
style: { height: "auto" }
|
|
522
|
+
}), null, 16, ["widget"])
|
|
523
|
+
], 8, yt)
|
|
524
|
+
])) : a("", !0)
|
|
525
|
+
], 64)) : (l(!0), c(C, { key: 1 }, ne(e(x), (n, i) => {
|
|
526
|
+
var k, M;
|
|
527
|
+
return l(), c(C, {
|
|
528
|
+
key: n.id
|
|
529
|
+
}, [
|
|
530
|
+
b("tr", ht, [
|
|
531
|
+
b("td", vt, d(i + 1), 1),
|
|
532
|
+
w(O, D(t.$props, {
|
|
533
|
+
widget: (k = n == null ? void 0 : n.widget) == null ? void 0 : k[0],
|
|
534
|
+
componentName: "td",
|
|
535
|
+
componentClass: "td2",
|
|
536
|
+
"row-scope": { row: n == null ? void 0 : n.data, $index: i }
|
|
537
|
+
}), null, 16, ["widget", "row-scope"]),
|
|
538
|
+
e($) ? (l(), c("td", bt, [
|
|
539
|
+
w(E, null, {
|
|
540
|
+
default: r(() => {
|
|
541
|
+
var U, V;
|
|
542
|
+
return [
|
|
543
|
+
e(ae) ? (l(), p(m, {
|
|
544
|
+
key: 0,
|
|
545
|
+
onClick: (f) => W(i),
|
|
546
|
+
disabled: e(B) > ((U = e(o)) == null ? void 0 : U.maxRowNum),
|
|
547
|
+
icon: e(S),
|
|
548
|
+
link: ""
|
|
549
|
+
}, {
|
|
550
|
+
default: r(() => {
|
|
551
|
+
var f;
|
|
552
|
+
return [
|
|
553
|
+
u(d(((f = e(o)) == null ? void 0 : f.addRecordText) || e(R)), 1)
|
|
554
|
+
];
|
|
555
|
+
}),
|
|
556
|
+
_: 2
|
|
557
|
+
}, 1032, ["onClick", "disabled", "icon"])) : a("", !0),
|
|
558
|
+
e(se) ? (l(), p(m, {
|
|
559
|
+
key: 1,
|
|
560
|
+
onClick: (f) => ue(i),
|
|
561
|
+
type: "danger",
|
|
562
|
+
icon: e(q),
|
|
563
|
+
disabled: ((V = e(o)) == null ? void 0 : V.minRowNum) >= e(B),
|
|
564
|
+
link: ""
|
|
565
|
+
}, {
|
|
566
|
+
default: r(() => {
|
|
567
|
+
var f;
|
|
568
|
+
return [
|
|
569
|
+
u(d(((f = e(o)) == null ? void 0 : f.deleteRecordText) || e(j)), 1)
|
|
570
|
+
];
|
|
571
|
+
}),
|
|
572
|
+
_: 2
|
|
573
|
+
}, 1032, ["onClick", "icon", "disabled"])) : a("", !0),
|
|
574
|
+
e(Q) ? (l(), p(m, {
|
|
575
|
+
key: 2,
|
|
576
|
+
onClick: (f) => pe(i),
|
|
577
|
+
disabled: i <= 0,
|
|
578
|
+
link: "",
|
|
579
|
+
icon: e(G)
|
|
580
|
+
}, {
|
|
581
|
+
default: r(() => {
|
|
582
|
+
var f;
|
|
583
|
+
return [
|
|
584
|
+
u(d(((f = e(o)) == null ? void 0 : f.sortUpText) || e(z)), 1)
|
|
585
|
+
];
|
|
586
|
+
}),
|
|
587
|
+
_: 2
|
|
588
|
+
}, 1032, ["onClick", "disabled", "icon"])) : a("", !0),
|
|
589
|
+
e(Q) ? (l(), p(m, {
|
|
590
|
+
key: 3,
|
|
591
|
+
onClick: (f) => ce(i),
|
|
592
|
+
disabled: i >= e(B) - 1,
|
|
593
|
+
link: "",
|
|
594
|
+
icon: e(J)
|
|
595
|
+
}, {
|
|
596
|
+
default: r(() => {
|
|
597
|
+
var f;
|
|
598
|
+
return [
|
|
599
|
+
u(d(((f = e(o)) == null ? void 0 : f.sortDownText) || e(H)), 1)
|
|
600
|
+
];
|
|
601
|
+
}),
|
|
602
|
+
_: 2
|
|
603
|
+
}, 1032, ["onClick", "disabled", "icon"])) : a("", !0)
|
|
604
|
+
];
|
|
605
|
+
}),
|
|
606
|
+
_: 2
|
|
607
|
+
}, 1024)
|
|
608
|
+
])) : a("", !0)
|
|
609
|
+
]),
|
|
610
|
+
e(de) ? (l(), c("tr", Rt, [
|
|
611
|
+
b("td", {
|
|
612
|
+
class: "detailTable",
|
|
613
|
+
colspan: (e(Z) || 0) + e(Y)
|
|
614
|
+
}, [
|
|
615
|
+
w(O, D(t.$props, {
|
|
616
|
+
widget: (M = n == null ? void 0 : n.widget) == null ? void 0 : M[1],
|
|
617
|
+
"component-style": { height: "auto" },
|
|
618
|
+
"row-scope": { row: n == null ? void 0 : n.data, $index: i }
|
|
619
|
+
}), null, 16, ["widget", "row-scope"])
|
|
620
|
+
], 8, Ct)
|
|
621
|
+
])) : a("", !0)
|
|
622
|
+
], 64);
|
|
623
|
+
}), 128))
|
|
624
|
+
]),
|
|
625
|
+
b("tfoot", null, [
|
|
626
|
+
b("tr", null, [
|
|
627
|
+
b("td", {
|
|
628
|
+
colspan: (e(Z) || 0) + e(Y)
|
|
629
|
+
}, [
|
|
630
|
+
t.designState ? (l(), c(C, { key: 0 }, [
|
|
631
|
+
(Ce = e(o)) != null && Ce.onlyOneAddButton && e(o).allowAdd ? (l(), c("div", St, [
|
|
632
|
+
w(m, {
|
|
633
|
+
icon: e(S),
|
|
634
|
+
size: "large"
|
|
635
|
+
}, {
|
|
636
|
+
default: r(() => {
|
|
637
|
+
var n;
|
|
638
|
+
return [
|
|
639
|
+
u(d(((n = e(o)) == null ? void 0 : n.addRecordText) || e(R)), 1)
|
|
640
|
+
];
|
|
641
|
+
}),
|
|
642
|
+
_: 1
|
|
643
|
+
}, 8, ["icon"])
|
|
644
|
+
])) : a("", !0)
|
|
645
|
+
], 64)) : (l(), c(C, { key: 1 }, [
|
|
646
|
+
!((Te = e(o)) != null && Te.onlyOneAddButton) && ((Se = e(x)) == null ? void 0 : Se.length) == 0 ? (l(), c("div", Dt, [
|
|
647
|
+
w(m, {
|
|
648
|
+
onClick: s[1] || (s[1] = (n) => W(0))
|
|
649
|
+
}, {
|
|
650
|
+
default: r(() => {
|
|
651
|
+
var n;
|
|
652
|
+
return [
|
|
653
|
+
u(d(((n = e(o)) == null ? void 0 : n.addRecordText) || e(R)), 1)
|
|
654
|
+
];
|
|
655
|
+
}),
|
|
656
|
+
_: 1
|
|
657
|
+
})
|
|
658
|
+
])) : (De = e(o)) != null && De.onlyOneAddButton ? (l(), c("div", Nt, [
|
|
659
|
+
w(m, {
|
|
660
|
+
icon: e(S),
|
|
661
|
+
size: "large",
|
|
662
|
+
onClick: s[2] || (s[2] = (n) => {
|
|
663
|
+
var i;
|
|
664
|
+
return W(((i = e(x)) == null ? void 0 : i.length) - 1);
|
|
665
|
+
})
|
|
666
|
+
}, {
|
|
667
|
+
default: r(() => {
|
|
668
|
+
var n;
|
|
669
|
+
return [
|
|
670
|
+
u(d(((n = e(o)) == null ? void 0 : n.addRecordText) || e(R)), 1)
|
|
671
|
+
];
|
|
672
|
+
}),
|
|
673
|
+
_: 1
|
|
674
|
+
}, 8, ["icon"])
|
|
675
|
+
])) : a("", !0)
|
|
676
|
+
], 64))
|
|
677
|
+
], 8, Tt)
|
|
678
|
+
])
|
|
679
|
+
])
|
|
680
|
+
], 2)) : a("", !0)
|
|
681
|
+
];
|
|
682
|
+
}),
|
|
683
|
+
_: 1
|
|
684
|
+
}, 16, ["prop-options"]);
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
const eo = /* @__PURE__ */ at($t, [["__scopeId", "data-v-ba7a53a7"]]);
|
|
689
|
+
export {
|
|
690
|
+
eo as default
|
|
691
|
+
};
|