@farris/ui-vue 1.6.0-beta.5 → 1.6.0-beta.7
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/components/avatar/index.esm.js +2 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/component/index.esm.js +2 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +2 -1
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +2 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +2591 -2570
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +2 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/discussion-editor/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +1 -1
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +63 -62
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +2 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +2 -1
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +2 -1
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +2 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +1 -1
- package/components/locale/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +106 -105
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +2 -1
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +2 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +2 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +2 -1
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +276 -282
- package/components/pagination/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +103 -102
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +2 -1
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +2 -1
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +203 -208
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +2 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +2 -1
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2 -1
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +2 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +103 -102
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +265 -261
- package/components/transfer/index.umd.cjs +3 -3
- package/components/tree-grid/index.esm.js +2 -1
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +1146 -1134
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +2 -1
- package/components/video/index.umd.cjs +1 -1
- package/farris.all.esm.js +12256 -10746
- package/farris.all.umd.cjs +21 -21
- package/package.json +1 -1
- package/types/calendar/src/components/header/header.component.d.ts +2 -2
- package/types/chs.d.ts +494 -0
- package/types/cht.d.ts +490 -0
- package/types/data-view/composition/types.d.ts +2 -0
- package/types/en.d.ts +494 -0
- package/types/filter-bar/index.d.ts +3 -3
- package/types/filter-bar/src/components/filter-item-condition/filter-item-condition.component.d.ts +1 -1
- package/types/filter-bar/src/designer/filter-bar.design.component.d.ts +2 -2
- package/types/filter-bar/src/filter-bar.component.d.ts +1 -1
- package/types/index.d.ts +1479 -1
- package/types/order/src/designer/order.design.component.d.ts +3 -3
- package/types/order/src/order.component.d.ts +3 -3
- package/types/schema-selector/src/schema-selector.component.d.ts +1 -1
- package/components/list-view/index.css +0 -1
- package/components/list-view/index.esm.js +0 -11592
- package/components/list-view/index.umd.cjs +0 -20
- package/components/list-view/package.json +0 -8
- package/components/list-view/style.js +0 -2
- package/components/response-layout/index.css +0 -1
- package/components/response-layout/index.esm.js +0 -11550
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout/package.json +0 -8
- package/designer/button-edit/index.css +0 -1
- package/designer/button-edit/index.esm.js +0 -11121
- package/designer/button-edit/index.umd.cjs +0 -1
- package/designer/checkbox/index.esm.js +0 -250
- package/designer/checkbox/index.umd.cjs +0 -1
- package/designer/checkbox-group/index.esm.js +0 -377
- package/designer/checkbox-group/index.umd.cjs +0 -1
- package/designer/data-grid/index.css +0 -1
- package/designer/data-grid/index.esm.js +0 -17844
- package/designer/data-grid/index.umd.cjs +0 -23
- package/designer/drawer/index.css +0 -1
- package/designer/drawer/index.esm.js +0 -2228
- package/designer/drawer/index.umd.cjs +0 -6
- package/designer/farris-designer.all.esm.js +0 -26348
- package/designer/farris-designer.all.umd.cjs +0 -32
- package/designer/index.css +0 -1
- package/designer/input-group/index.esm.js +0 -1035
- package/designer/input-group/index.umd.cjs +0 -1
- package/designer/radio-group/index.css +0 -1
- package/designer/radio-group/index.esm.js +0 -12471
- package/designer/radio-group/index.umd.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as j, computed as k, watch as
|
|
1
|
+
import { ref as j, computed as k, watch as V, createVNode as p, defineComponent as I, watchEffect as Pe, Fragment as _, createTextVNode as U, inject as Te, onMounted as we } from "vue";
|
|
2
2
|
import { cloneDeep as Z, isPlainObject as H } from "lodash-es";
|
|
3
3
|
import { useI18n as Q } from "vue-i18n";
|
|
4
4
|
import { getSchemaByTypeForDesigner as ke } from "../dynamic-resolver/index.esm.js";
|
|
@@ -13,7 +13,7 @@ function K(e, t) {
|
|
|
13
13
|
}
|
|
14
14
|
return d;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function f(a) {
|
|
17
17
|
const { properties: v, title: h, required: r } = a;
|
|
18
18
|
if (r && Array.isArray(r)) {
|
|
19
19
|
const o = r.reduce((d, g) => (d[g] = v[g].type === "object" && v[g].properties ? s(v[g]) : Z(v[g].default), d), {});
|
|
@@ -30,7 +30,7 @@ function K(e, t) {
|
|
|
30
30
|
function T(a, v = {}, h) {
|
|
31
31
|
const r = e[a];
|
|
32
32
|
if (r) {
|
|
33
|
-
let o =
|
|
33
|
+
let o = f(r);
|
|
34
34
|
const d = t[a];
|
|
35
35
|
return o = d ? d({ getSchemaByType: T }, o, v, h) : o, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(o), o;
|
|
36
36
|
}
|
|
@@ -40,7 +40,7 @@ function K(e, t) {
|
|
|
40
40
|
const h = s(v);
|
|
41
41
|
return Object.keys(h).reduce((r, o) => (Object.prototype.hasOwnProperty.call(a, o) && (r[o] && H(r[o]) && H(a[o] || !a[o]) ? Object.assign(r[o], a[o] || {}) : r[o] = a[o]), r), h), h;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function l(a, v) {
|
|
44
44
|
return Object.keys(a).filter((r) => a[r] != null).reduce((r, o) => {
|
|
45
45
|
if (v.has(o)) {
|
|
46
46
|
const d = v.get(o);
|
|
@@ -57,9 +57,9 @@ function K(e, t) {
|
|
|
57
57
|
}
|
|
58
58
|
function y(a, v, h = /* @__PURE__ */ new Map()) {
|
|
59
59
|
const r = u(a, v);
|
|
60
|
-
return
|
|
60
|
+
return l(r, h);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function i(a) {
|
|
63
63
|
var h;
|
|
64
64
|
const v = a.type;
|
|
65
65
|
if (v) {
|
|
@@ -75,62 +75,62 @@ function K(e, t) {
|
|
|
75
75
|
}
|
|
76
76
|
return a;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function c(a) {
|
|
79
79
|
n = a;
|
|
80
80
|
}
|
|
81
|
-
return { getSchemaByType: T, resolveSchemaWithDefaultValue:
|
|
81
|
+
return { getSchemaByType: T, resolveSchemaWithDefaultValue: i, resolveSchemaToProps: y, mappingSchemaToProps: l, setDesignerContext: c };
|
|
82
82
|
}
|
|
83
83
|
const ee = {}, te = {}, { getSchemaByType: yt, resolveSchemaWithDefaultValue: je, resolveSchemaToProps: Fe, mappingSchemaToProps: Oe, setDesignerContext: ht } = K(ee, te);
|
|
84
84
|
function Me(e = {}) {
|
|
85
|
-
function t(
|
|
85
|
+
function t(i, c, a, v) {
|
|
86
86
|
if (typeof a == "number")
|
|
87
|
-
return v[
|
|
87
|
+
return v[i].length === a;
|
|
88
88
|
if (typeof a == "object") {
|
|
89
89
|
const h = Object.keys(a)[0], r = a[h];
|
|
90
90
|
if (h === "not")
|
|
91
|
-
return Number(v[
|
|
91
|
+
return Number(v[i].length) !== Number(r);
|
|
92
92
|
if (h === "moreThan")
|
|
93
|
-
return Number(v[
|
|
93
|
+
return Number(v[i].length) >= Number(r);
|
|
94
94
|
if (h === "lessThan")
|
|
95
|
-
return Number(v[
|
|
95
|
+
return Number(v[i].length) <= Number(r);
|
|
96
96
|
}
|
|
97
97
|
return !1;
|
|
98
98
|
}
|
|
99
|
-
function n(
|
|
100
|
-
return v[
|
|
99
|
+
function n(i, c, a, v) {
|
|
100
|
+
return v[i] && v[i].propertyValue && String(v[i].propertyValue.value) === String(a);
|
|
101
101
|
}
|
|
102
102
|
const s = /* @__PURE__ */ new Map([
|
|
103
103
|
["length", t],
|
|
104
104
|
["getProperty", n]
|
|
105
105
|
]);
|
|
106
|
-
Object.keys(e).reduce((
|
|
107
|
-
function
|
|
108
|
-
const a =
|
|
109
|
-
return typeof
|
|
106
|
+
Object.keys(e).reduce((i, c) => (i.set(c, e[c]), i), s);
|
|
107
|
+
function f(i, c) {
|
|
108
|
+
const a = i;
|
|
109
|
+
return typeof c == "number" ? [{ target: a, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: a, operator: "getProperty", param: i, value: !!c }] : typeof c == "object" ? Object.keys(c).map((v) => {
|
|
110
110
|
if (v === "length")
|
|
111
|
-
return { target: a, operator: "length", param: null, value:
|
|
112
|
-
const h = v, r =
|
|
111
|
+
return { target: a, operator: "length", param: null, value: c[v] };
|
|
112
|
+
const h = v, r = c[v];
|
|
113
113
|
return { target: a, operator: "getProperty", param: h, value: r };
|
|
114
114
|
}) : [];
|
|
115
115
|
}
|
|
116
|
-
function T(
|
|
117
|
-
return Object.keys(
|
|
118
|
-
const h =
|
|
116
|
+
function T(i) {
|
|
117
|
+
return Object.keys(i).reduce((a, v) => {
|
|
118
|
+
const h = f(v, i[v]);
|
|
119
119
|
return a.push(...h), a;
|
|
120
120
|
}, []);
|
|
121
121
|
}
|
|
122
|
-
function u(
|
|
123
|
-
if (s.has(
|
|
124
|
-
const a = s.get(
|
|
125
|
-
return a && a(
|
|
122
|
+
function u(i, c) {
|
|
123
|
+
if (s.has(i.operator)) {
|
|
124
|
+
const a = s.get(i.operator);
|
|
125
|
+
return a && a(i.target, i.param, i.value, c) || !1;
|
|
126
126
|
}
|
|
127
127
|
return !1;
|
|
128
128
|
}
|
|
129
|
-
function i
|
|
130
|
-
return T(
|
|
129
|
+
function l(i, c) {
|
|
130
|
+
return T(i).reduce((h, r) => h && u(r, c), !0);
|
|
131
131
|
}
|
|
132
|
-
function y(
|
|
133
|
-
const a = Object.keys(
|
|
132
|
+
function y(i, c) {
|
|
133
|
+
const a = Object.keys(i), v = a.includes("allOf"), h = a.includes("anyOf"), r = v || h, g = (r ? i[r ? v ? "allOf" : "anyOf" : "allOf"] : [i]).map((O) => l(O, c));
|
|
134
134
|
return v ? !g.includes(!1) : g.includes(!0);
|
|
135
135
|
}
|
|
136
136
|
return { parseValueSchema: y };
|
|
@@ -195,9 +195,9 @@ const Be = {
|
|
|
195
195
|
"language-textbox": { type: "language-textbox", name: "多语输入框" }
|
|
196
196
|
}, $e = {
|
|
197
197
|
convertFrom: (e, t, n) => {
|
|
198
|
-
var
|
|
198
|
+
var f;
|
|
199
199
|
const s = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
200
|
-
return ((
|
|
200
|
+
return ((f = ne[s]) == null ? void 0 : f.name) || s;
|
|
201
201
|
}
|
|
202
202
|
}, Le = {
|
|
203
203
|
convertTo: (e, t, n, s) => {
|
|
@@ -251,7 +251,7 @@ const Be = {
|
|
|
251
251
|
]));
|
|
252
252
|
},
|
|
253
253
|
convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : ""
|
|
254
|
-
},
|
|
254
|
+
}, Re = {
|
|
255
255
|
convertTo: (e, t, n, s) => {
|
|
256
256
|
e.column ? e.column[t] = n : e.column = {
|
|
257
257
|
[t]: n
|
|
@@ -266,7 +266,7 @@ const Be = {
|
|
|
266
266
|
}
|
|
267
267
|
return "";
|
|
268
268
|
}
|
|
269
|
-
},
|
|
269
|
+
}, xe = {
|
|
270
270
|
convertTo: (e, t, n, s) => {
|
|
271
271
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
272
272
|
[t]: n
|
|
@@ -313,8 +313,8 @@ const Be = {
|
|
|
313
313
|
convertFrom: (e, t, n) => e.size ? e.size[t] : e[t]
|
|
314
314
|
}, Je = {
|
|
315
315
|
convertFrom: (e, t, n) => {
|
|
316
|
-
var s,
|
|
317
|
-
return (s = e.formatter) != null && s.data && t === "formatterEnumData" && !e.formatterEnumData ? (
|
|
316
|
+
var s, f;
|
|
317
|
+
return (s = e.formatter) != null && s.data && t === "formatterEnumData" && !e.formatterEnumData ? (f = e.formatter) == null ? void 0 : f.data : e.formatterEnumData;
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
function ae(e, t, n) {
|
|
@@ -327,8 +327,8 @@ function ae(e, t, n) {
|
|
|
327
327
|
["/converter/change-editor.converter", Le],
|
|
328
328
|
["/converter/change-formatter.converter", Ce],
|
|
329
329
|
["/converter/column-command.converter", ze],
|
|
330
|
-
["/converter/column-option.converter",
|
|
331
|
-
["/converter/summary.converter",
|
|
330
|
+
["/converter/column-option.converter", Re],
|
|
331
|
+
["/converter/summary.converter", xe],
|
|
332
332
|
["/converter/form-group-label.converter", _e],
|
|
333
333
|
["/converter/field-selector.converter", Ae],
|
|
334
334
|
["/converter/pagination.converter", qe],
|
|
@@ -336,7 +336,7 @@ function ae(e, t, n) {
|
|
|
336
336
|
["/converter/grid-selection.converter", Ve],
|
|
337
337
|
["/converter/size.converter", Ue],
|
|
338
338
|
["/converter/change-formatter-enum.converter", Je]
|
|
339
|
-
]),
|
|
339
|
+
]), f = /* @__PURE__ */ new Map([
|
|
340
340
|
["string", { type: "input-group", enableClear: !1 }],
|
|
341
341
|
["boolean", {
|
|
342
342
|
type: "combo-list",
|
|
@@ -364,55 +364,55 @@ function ae(e, t, n) {
|
|
|
364
364
|
function u(r, o) {
|
|
365
365
|
return () => T.parseValueSchema(r, o);
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function l(r, o, d) {
|
|
368
368
|
return r.includes("visible") && o.visible !== void 0 ? typeof o.visible == "boolean" ? () => !!o.visible : o.visible === void 0 ? !0 : u(o.visible, d) : () => !0;
|
|
369
369
|
}
|
|
370
370
|
function y(r, o, d) {
|
|
371
371
|
return r.includes("readonly") && o.readonly !== void 0 ? typeof o.readonly == "boolean" ? () => !!o.readonly : u(o.readonly, d) : () => !1;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function i(r, o) {
|
|
374
374
|
const d = r.$converter || o;
|
|
375
375
|
return typeof d == "string" && d && s.has(d) ? s.get(d) || null : d || null;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function c(r, o, d, g, S, O = "", z = "") {
|
|
378
378
|
return Object.keys(r).map((F) => {
|
|
379
|
-
const
|
|
379
|
+
const E = j(1), B = F, b = r[F], D = Object.keys(b), x = b.title, m = b.type, w = f.get(m) || { type: "input-group", enableClear: !1 }, P = b.editor ? Object.assign({}, w, b.editor) : Object.assign({}, w), N = l(D, b, o), M = y(D, b, o);
|
|
380
380
|
P.readonly = P.readonly === void 0 ? M() : P.readonly;
|
|
381
|
-
const
|
|
382
|
-
let L =
|
|
381
|
+
const R = b.type === "cascade" ? c(b.properties, o, d, g, S, O, z) : [], q = !0;
|
|
382
|
+
let L = i(b, z);
|
|
383
383
|
const A = k({
|
|
384
384
|
get() {
|
|
385
|
-
if (
|
|
386
|
-
if (["class", "style"].find((Se) => Se ===
|
|
385
|
+
if (E.value) {
|
|
386
|
+
if (["class", "style"].find((Se) => Se === B) && !L && (L = s.get("/converter/appearance.converter") || null), L && L.convertFrom)
|
|
387
387
|
return L.convertFrom(d, F, S, O);
|
|
388
|
-
const
|
|
389
|
-
return Object.prototype.hasOwnProperty.call(b, "defaultValue") && (
|
|
388
|
+
const G = d[F];
|
|
389
|
+
return Object.prototype.hasOwnProperty.call(b, "defaultValue") && (G === void 0 || typeof G == "string" && G === "") ? b.type === "boolean" ? b.defaultValue : b.defaultValue || "" : G;
|
|
390
390
|
}
|
|
391
391
|
return null;
|
|
392
392
|
},
|
|
393
|
-
set(
|
|
394
|
-
|
|
393
|
+
set(G) {
|
|
394
|
+
E.value += 1, L && L.convertTo ? (L.convertTo(g, F, G, S, O), L.convertTo(d, F, G, S, O)) : (g[F] = G, d[F] = G);
|
|
395
395
|
}
|
|
396
|
-
}), { refreshPanelAfterChanged:
|
|
397
|
-
return o[
|
|
396
|
+
}), { refreshPanelAfterChanged: $, description: W, isExpand: ye, parentPropertyID: he } = b, Y = { propertyID: B, propertyName: x, propertyType: m, propertyValue: A, editor: P, visible: N, readonly: M, cascadeConfig: R, hideCascadeTitle: q, refreshPanelAfterChanged: $, description: W, isExpand: ye, parentPropertyID: he };
|
|
397
|
+
return o[B] = Y, Y;
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
function a(r, o, d = {}) {
|
|
401
401
|
const g = {}, S = e[r];
|
|
402
402
|
return S && S.categories ? Object.keys(S.categories).map((z) => {
|
|
403
|
-
const C = S.categories[z], F = C == null ? void 0 : C.title,
|
|
404
|
-
return { categoryId: z, categoryName: F, properties:
|
|
403
|
+
const C = S.categories[z], F = C == null ? void 0 : C.title, E = c(C.properties || {}, g, {}, d, o);
|
|
404
|
+
return { categoryId: z, categoryName: F, properties: E };
|
|
405
405
|
}) : [];
|
|
406
406
|
}
|
|
407
407
|
function v(r, o, d, g, S = "") {
|
|
408
|
-
const O = o.$ref.schema, z = o.$ref.converter, C = d[O], F = C.type,
|
|
408
|
+
const O = o.$ref.schema, z = o.$ref.converter, C = d[O], F = C.type, E = n(C), B = {}, b = e[F];
|
|
409
409
|
if (b && b.categories) {
|
|
410
|
-
const
|
|
411
|
-
z && Object.keys(
|
|
412
|
-
|
|
410
|
+
const D = b.categories[r], x = D == null ? void 0 : D.title;
|
|
411
|
+
z && Object.keys(D.properties).forEach((P) => {
|
|
412
|
+
D.properties[P].$converter = z;
|
|
413
413
|
});
|
|
414
|
-
const m = (
|
|
415
|
-
return { categoryId: r, categoryName:
|
|
414
|
+
const m = (D == null ? void 0 : D.properties) || {}, w = c(m, B, E, C, g, S);
|
|
415
|
+
return { categoryId: r, categoryName: x, properties: w };
|
|
416
416
|
}
|
|
417
417
|
return { categoryId: r, categoryName: "", properties: [] };
|
|
418
418
|
}
|
|
@@ -420,16 +420,16 @@ function ae(e, t, n) {
|
|
|
420
420
|
const O = r.type, z = n(r), C = {};
|
|
421
421
|
let F = S || e[O];
|
|
422
422
|
if (F && Object.keys(F).length === 0 && d && d.getPropConfig && (F = d.getPropConfig(g)), F && F.categories) {
|
|
423
|
-
const
|
|
424
|
-
return Object.keys(F.categories).map((
|
|
425
|
-
const b = F.categories[
|
|
423
|
+
const E = [];
|
|
424
|
+
return Object.keys(F.categories).map((B) => {
|
|
425
|
+
const b = F.categories[B];
|
|
426
426
|
if (b.$ref) {
|
|
427
|
-
|
|
427
|
+
E.push(v(B, b, r, o, g));
|
|
428
428
|
return;
|
|
429
429
|
}
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
}),
|
|
430
|
+
const D = b == null ? void 0 : b.title, x = b == null ? void 0 : b.tabId, m = b == null ? void 0 : b.tabName, w = b == null ? void 0 : b.hide, P = b == null ? void 0 : b.hideTitle, N = c(b.properties || {}, C, z, r, o, g, b.$converter), { setPropertyRelates: M } = b, R = b == null ? void 0 : b.parentPropertyID;
|
|
431
|
+
E.push({ categoryId: B, categoryName: D, tabId: x, tabName: m, hide: w, properties: N, hideTitle: P, setPropertyRelates: M, parentPropertyID: R });
|
|
432
|
+
}), E;
|
|
433
433
|
}
|
|
434
434
|
return [];
|
|
435
435
|
}
|
|
@@ -443,12 +443,12 @@ const oe = {}, re = {};
|
|
|
443
443
|
ae(oe, re, je);
|
|
444
444
|
const ie = {}, le = {}, { getSchemaByType: St, resolveSchemaWithDefaultValue: Qe, resolveSchemaToProps: Pt, mappingSchemaToProps: Tt, setDesignerContext: wt } = K(ie, le), se = {}, ue = {};
|
|
445
445
|
ae(se, ue, Qe);
|
|
446
|
-
function Xe(e, t, n = /* @__PURE__ */ new Map(), s = (u,
|
|
447
|
-
return ee[t.title] = t, te[t.title] = s, oe[t.title] =
|
|
448
|
-
if (!
|
|
446
|
+
function Xe(e, t, n = /* @__PURE__ */ new Map(), s = (u, l, y, i) => l, f = {}, T = (u) => u) {
|
|
447
|
+
return ee[t.title] = t, te[t.title] = s, oe[t.title] = f, re[t.title] = T, ie[t.title] = t, le[t.title] = s, se[t.title] = f, ue[t.title] = T, (u = {}, l = !0) => {
|
|
448
|
+
if (!l)
|
|
449
449
|
return Oe(u, n);
|
|
450
|
-
const y = Fe(u, t, n),
|
|
451
|
-
return Object.assign(
|
|
450
|
+
const y = Fe(u, t, n), i = Object.keys(e).reduce((c, a) => (c[a] = e[a].default, c), {});
|
|
451
|
+
return Object.assign(i, y);
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
454
|
function Ye(e, t) {
|
|
@@ -698,115 +698,115 @@ const X = {
|
|
|
698
698
|
}, ce = Xe(X, ot, Ze, ct, ut);
|
|
699
699
|
function pe(e, t, n, s) {
|
|
700
700
|
const {
|
|
701
|
-
t:
|
|
702
|
-
} = Q(), T = j(
|
|
703
|
-
|
|
704
|
-
a >= 1 && a <= t.value ? e.value = a :
|
|
705
|
-
}),
|
|
706
|
-
|
|
701
|
+
t: f
|
|
702
|
+
} = Q(), T = j(f("pagination.goto.prefix")), u = j(""), l = j(e.value);
|
|
703
|
+
V(l, (a, v) => {
|
|
704
|
+
a >= 1 && a <= t.value ? e.value = a : l.value = v;
|
|
705
|
+
}), V(e, (a) => {
|
|
706
|
+
l.value !== a && (l.value = a);
|
|
707
707
|
});
|
|
708
708
|
function y(a) {
|
|
709
|
-
|
|
710
|
-
pageIndex:
|
|
709
|
+
l.value = a.target.valueAsNumber, s.emit("update:currentPage", l.value), s.emit("changed", {
|
|
710
|
+
pageIndex: l.value,
|
|
711
711
|
pageSize: n.value
|
|
712
712
|
}), s.emit("pageIndexChanged", {
|
|
713
|
-
pageIndex:
|
|
713
|
+
pageIndex: l.value,
|
|
714
714
|
pageSize: n.value
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
a.key === "Enter" && (
|
|
719
|
-
pageIndex:
|
|
717
|
+
function i(a) {
|
|
718
|
+
a.key === "Enter" && (l.value = a.target.valueAsNumber, s.emit("update:currentPage", l.value), s.emit("changed", {
|
|
719
|
+
pageIndex: l.value,
|
|
720
720
|
pageSize: n.value
|
|
721
721
|
}), s.emit("pageIndexChanged", {
|
|
722
|
-
pageIndex:
|
|
722
|
+
pageIndex: l.value,
|
|
723
723
|
pageSize: n.value
|
|
724
724
|
}));
|
|
725
725
|
}
|
|
726
|
-
function
|
|
727
|
-
return
|
|
726
|
+
function c() {
|
|
727
|
+
return p("li", {
|
|
728
728
|
class: "page-goto-input d-flex flex-row",
|
|
729
729
|
style: "padding-left: 10px; white-space: nowrap;"
|
|
730
|
-
}, [
|
|
730
|
+
}, [p("span", {
|
|
731
731
|
class: "pagination-message"
|
|
732
|
-
}, [T.value]),
|
|
732
|
+
}, [T.value]), p("input", {
|
|
733
733
|
title: "page-index-spinner",
|
|
734
734
|
type: "number",
|
|
735
735
|
class: "form-control farris-gotopagenumber",
|
|
736
|
-
value:
|
|
736
|
+
value: l.value,
|
|
737
737
|
min: 1,
|
|
738
738
|
max: t.value,
|
|
739
739
|
style: "display: inline-block;margin-left:3px;",
|
|
740
740
|
onBlur: (a) => y(a),
|
|
741
|
-
onKeyup: (a) =>
|
|
741
|
+
onKeyup: (a) => i(a)
|
|
742
742
|
}, null), u.value]);
|
|
743
743
|
}
|
|
744
744
|
return {
|
|
745
|
-
renderGotoButton:
|
|
745
|
+
renderGotoButton: c
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
-
function fe(e, t, n, s,
|
|
748
|
+
function fe(e, t, n, s, f) {
|
|
749
749
|
const T = k(() => ({
|
|
750
750
|
"page-item": !0,
|
|
751
751
|
disabled: t.value
|
|
752
752
|
}));
|
|
753
|
-
function u(
|
|
754
|
-
e.value = e.value < n.value ? e.value + 1 : n.value,
|
|
753
|
+
function u(c) {
|
|
754
|
+
e.value = e.value < n.value ? e.value + 1 : n.value, f.emit("update:currentPage", e.value), f.emit("changed", {
|
|
755
755
|
pageIndex: e.value,
|
|
756
756
|
pageSize: s.value
|
|
757
|
-
}),
|
|
757
|
+
}), f.emit("pageIndexChanged", {
|
|
758
758
|
pageIndex: e.value,
|
|
759
759
|
pageSize: s.value
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
e.value = n.value,
|
|
762
|
+
function l(c) {
|
|
763
|
+
e.value = n.value, f.emit("update:currentPage", e.value), f.emit("changed", {
|
|
764
764
|
pageIndex: e.value,
|
|
765
765
|
pageSize: s.value
|
|
766
|
-
}),
|
|
766
|
+
}), f.emit("pageIndexChanged", {
|
|
767
767
|
pageIndex: e.value,
|
|
768
768
|
pageSize: s.value
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
function y() {
|
|
772
|
-
return
|
|
772
|
+
return p("li", {
|
|
773
773
|
class: T.value
|
|
774
|
-
}, [!t.value &&
|
|
774
|
+
}, [!t.value && p("a", {
|
|
775
775
|
class: "page-link",
|
|
776
776
|
tabindex: "0",
|
|
777
|
-
onClick: (
|
|
778
|
-
}, [
|
|
777
|
+
onClick: (c) => u()
|
|
778
|
+
}, [p("span", {
|
|
779
779
|
class: "f-icon f-page-next"
|
|
780
|
-
}, null)]), t.value &&
|
|
780
|
+
}, null)]), t.value && p("span", {
|
|
781
781
|
class: "page-link"
|
|
782
|
-
}, [
|
|
782
|
+
}, [p("span", {
|
|
783
783
|
class: "f-icon f-page-next"
|
|
784
784
|
}, null)])]);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
787
|
-
return
|
|
786
|
+
function i() {
|
|
787
|
+
return p("li", {
|
|
788
788
|
class: T.value
|
|
789
|
-
}, [!t.value &&
|
|
789
|
+
}, [!t.value && p("a", {
|
|
790
790
|
class: "page-link",
|
|
791
791
|
tabindex: "0",
|
|
792
|
-
onClick: (
|
|
793
|
-
}, [
|
|
792
|
+
onClick: (c) => l()
|
|
793
|
+
}, [p("span", {
|
|
794
794
|
class: "f-icon f-page-last"
|
|
795
|
-
}, null)]), t.value &&
|
|
795
|
+
}, null)]), t.value && p("span", {
|
|
796
796
|
class: "page-link"
|
|
797
|
-
}, [
|
|
797
|
+
}, [p("span", {
|
|
798
798
|
class: "f-icon f-page-last"
|
|
799
799
|
}, null)])]);
|
|
800
800
|
}
|
|
801
801
|
return {
|
|
802
|
-
renderLastPage:
|
|
802
|
+
renderLastPage: i,
|
|
803
803
|
renderNextPage: y
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
function ve(e, t) {
|
|
807
807
|
const {
|
|
808
808
|
t: n
|
|
809
|
-
} = Q(), s = j(n("pagination.totalInfo.firstText")),
|
|
809
|
+
} = Q(), s = j(n("pagination.totalInfo.firstText")), f = j(n("pagination.totalInfo.lastText")), T = k(() => ({
|
|
810
810
|
"pagination-message": !0,
|
|
811
811
|
"text-truncate": !0,
|
|
812
812
|
"d-flex": !0,
|
|
@@ -814,32 +814,32 @@ function ve(e, t) {
|
|
|
814
814
|
"flex-fill": e.value === "right"
|
|
815
815
|
}));
|
|
816
816
|
function u() {
|
|
817
|
-
return
|
|
817
|
+
return p("li", {
|
|
818
818
|
class: T.value
|
|
819
|
-
}, [
|
|
819
|
+
}, [p("div", {
|
|
820
820
|
class: "text-truncate"
|
|
821
|
-
}, [
|
|
821
|
+
}, [p("span", {
|
|
822
822
|
class: "pg-message-text"
|
|
823
|
-
}, [s.value]),
|
|
823
|
+
}, [s.value]), p("b", {
|
|
824
824
|
class: "pg-message-total"
|
|
825
|
-
}, [t.value]),
|
|
825
|
+
}, [t.value]), p("span", {
|
|
826
826
|
class: "pg-message-text"
|
|
827
|
-
}, [
|
|
827
|
+
}, [f.value])])]);
|
|
828
828
|
}
|
|
829
829
|
return {
|
|
830
830
|
renderPageInfo: u
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
function de(e, t, n, s,
|
|
833
|
+
function de(e, t, n, s, f) {
|
|
834
834
|
const {
|
|
835
835
|
t: T
|
|
836
|
-
} = Q(), u = j(!1),
|
|
836
|
+
} = Q(), u = j(!1), l = j(T("pagination.show")), y = j(T("pagination.totalInfo.lastText")), i = k(() => ({
|
|
837
837
|
dropup: !0,
|
|
838
838
|
"dropdown-right": !0,
|
|
839
839
|
"pg-pagelist": !0,
|
|
840
840
|
"pagelist-disabled": s.value === 0,
|
|
841
841
|
show: u.value
|
|
842
|
-
})),
|
|
842
|
+
})), c = k(() => ({
|
|
843
843
|
"dropdown-menu": !0,
|
|
844
844
|
show: u.value
|
|
845
845
|
})), a = (g) => ({
|
|
@@ -859,152 +859,152 @@ function de(e, t, n, s, p) {
|
|
|
859
859
|
}
|
|
860
860
|
function o(g, S) {
|
|
861
861
|
const O = e.value;
|
|
862
|
-
e.value = r(e.value, t.value, S), O !== e.value &&
|
|
862
|
+
e.value = r(e.value, t.value, S), O !== e.value && f.emit("update:currentPage", e.value), t.value = S, u.value = !1, f.emit("update:pageSize", t.value), f.emit("changed", {
|
|
863
863
|
pageIndex: e.value,
|
|
864
864
|
pageSize: t.value
|
|
865
|
-
}),
|
|
865
|
+
}), f.emit("pageSizeChanged", {
|
|
866
866
|
pageIndex: e.value,
|
|
867
867
|
pageSize: t.value
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
870
|
function d() {
|
|
871
|
-
return
|
|
871
|
+
return p("li", {
|
|
872
872
|
class: "pagination-pagelist"
|
|
873
|
-
}, [
|
|
874
|
-
class:
|
|
873
|
+
}, [p("div", {
|
|
874
|
+
class: i.value,
|
|
875
875
|
onMouseenter: (g) => v(),
|
|
876
876
|
onMouseleave: (g) => h()
|
|
877
|
-
}, [
|
|
877
|
+
}, [p("div", {
|
|
878
878
|
class: "pg-pagelist-info"
|
|
879
|
-
}, [
|
|
879
|
+
}, [p("span", {
|
|
880
880
|
class: "pagelist-text"
|
|
881
|
-
}, [
|
|
881
|
+
}, [l.value]), p("b", {
|
|
882
882
|
class: "cur-pagesize"
|
|
883
|
-
}, [t.value]),
|
|
883
|
+
}, [t.value]), p("span", {
|
|
884
884
|
class: "pagelist-text"
|
|
885
|
-
}, [y.value]),
|
|
885
|
+
}, [y.value]), p("i", {
|
|
886
886
|
class: "f-icon f-icon-dropdown"
|
|
887
|
-
}, null)]),
|
|
888
|
-
class:
|
|
887
|
+
}, null)]), p("div", {
|
|
888
|
+
class: c.value,
|
|
889
889
|
style: "margin-bottom: -1px;"
|
|
890
|
-
}, [n.value.map((g) =>
|
|
890
|
+
}, [n.value.map((g) => p("li", {
|
|
891
891
|
class: a(g),
|
|
892
892
|
onClick: (S) => o(S, g)
|
|
893
|
-
}, [
|
|
893
|
+
}, [p("span", null, [g])]))])])]);
|
|
894
894
|
}
|
|
895
895
|
return {
|
|
896
896
|
renderPageList: d
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
|
-
function ge(e, t, n, s,
|
|
900
|
-
const T = (
|
|
899
|
+
function ge(e, t, n, s, f) {
|
|
900
|
+
const T = (i) => ({
|
|
901
901
|
"page-item": !0,
|
|
902
|
-
current: t.value ===
|
|
903
|
-
ellipsis:
|
|
902
|
+
current: t.value === i.value,
|
|
903
|
+
ellipsis: i.label === "...",
|
|
904
904
|
disabled: e.disabled
|
|
905
|
-
}), u = (
|
|
905
|
+
}), u = (i) => ({
|
|
906
906
|
"f-icon": !0,
|
|
907
|
-
"f-icon-arrow-seek-left":
|
|
908
|
-
"f-icon-arrow-seek-right":
|
|
907
|
+
"f-icon-arrow-seek-left": i.value < t.value,
|
|
908
|
+
"f-icon-arrow-seek-right": i.value > t.value
|
|
909
909
|
});
|
|
910
|
-
function i
|
|
911
|
-
t.value =
|
|
910
|
+
function l(i, c) {
|
|
911
|
+
t.value = c, f.emit("update:currentPage", t.value), f.emit("changed", {
|
|
912
912
|
pageIndex: t.value,
|
|
913
913
|
pageSize: s.value
|
|
914
|
-
}),
|
|
914
|
+
}), f.emit("pageIndexChanged", {
|
|
915
915
|
pageIndex: t.value,
|
|
916
916
|
pageSize: s.value
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function y() {
|
|
920
|
-
return n.value.map((
|
|
921
|
-
class: T(
|
|
922
|
-
key:
|
|
923
|
-
}, [t.value !==
|
|
920
|
+
return n.value.map((i) => p("li", {
|
|
921
|
+
class: T(i),
|
|
922
|
+
key: i.value + ""
|
|
923
|
+
}, [t.value !== i.value && p("a", {
|
|
924
924
|
class: "page-link",
|
|
925
925
|
tabindex: "0",
|
|
926
|
-
onClick: (
|
|
927
|
-
}, [
|
|
926
|
+
onClick: (c) => l(c, i.value)
|
|
927
|
+
}, [p("span", {
|
|
928
928
|
class: "page-link-label"
|
|
929
|
-
}, [
|
|
930
|
-
class: u(
|
|
931
|
-
}, null)]), t.value ===
|
|
929
|
+
}, [i.label]), i.label === "..." && p("i", {
|
|
930
|
+
class: u(i)
|
|
931
|
+
}, null)]), t.value === i.value && p("span", {
|
|
932
932
|
class: "page-link"
|
|
933
|
-
}, [
|
|
933
|
+
}, [i.label])]));
|
|
934
934
|
}
|
|
935
935
|
return {
|
|
936
936
|
renderPageNumbers: y
|
|
937
937
|
};
|
|
938
938
|
}
|
|
939
|
-
function me(e, t, n, s,
|
|
939
|
+
function me(e, t, n, s, f) {
|
|
940
940
|
const T = k(() => ({
|
|
941
941
|
"page-item": !0,
|
|
942
942
|
disabled: t.value
|
|
943
943
|
}));
|
|
944
|
-
function u(
|
|
945
|
-
e.value = 1,
|
|
944
|
+
function u(c) {
|
|
945
|
+
e.value = 1, f.emit("update:currentPage", e.value), f.emit("changed", {
|
|
946
946
|
pageIndex: e.value,
|
|
947
947
|
pageSize: s.value
|
|
948
|
-
}),
|
|
948
|
+
}), f.emit("pageIndexChanged", {
|
|
949
949
|
pageIndex: e.value,
|
|
950
950
|
pageSize: s.value
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
|
-
function
|
|
954
|
-
e.value = e.value > 2 ? e.value - 1 : 1,
|
|
953
|
+
function l(c) {
|
|
954
|
+
e.value = e.value > 2 ? e.value - 1 : 1, f.emit("update:currentPage", e.value), f.emit("changed", {
|
|
955
955
|
pageIndex: e.value,
|
|
956
956
|
pageSize: s.value
|
|
957
|
-
}),
|
|
957
|
+
}), f.emit("pageIndexChanged", {
|
|
958
958
|
pageIndex: e.value,
|
|
959
959
|
pageSize: s.value
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
962
|
function y() {
|
|
963
|
-
return
|
|
963
|
+
return p("li", {
|
|
964
964
|
class: T.value
|
|
965
|
-
}, [n.value &&
|
|
965
|
+
}, [n.value && p("a", {
|
|
966
966
|
tabindex: "0",
|
|
967
967
|
class: "page-link",
|
|
968
|
-
onClick: (
|
|
969
|
-
}, [
|
|
968
|
+
onClick: (c) => u()
|
|
969
|
+
}, [p("span", {
|
|
970
970
|
class: "f-icon f-page-first"
|
|
971
|
-
}, null)]), t.value &&
|
|
971
|
+
}, null)]), t.value && p("span", {
|
|
972
972
|
class: "page-link"
|
|
973
|
-
}, [
|
|
973
|
+
}, [p("span", {
|
|
974
974
|
class: "f-icon f-page-first"
|
|
975
975
|
}, null)])]);
|
|
976
976
|
}
|
|
977
|
-
function
|
|
978
|
-
return
|
|
977
|
+
function i() {
|
|
978
|
+
return p("li", {
|
|
979
979
|
class: T.value
|
|
980
|
-
}, [n.value &&
|
|
980
|
+
}, [n.value && p("a", {
|
|
981
981
|
tabindex: "0",
|
|
982
982
|
class: "page-link",
|
|
983
|
-
onClick: (
|
|
984
|
-
}, [
|
|
983
|
+
onClick: (c) => l()
|
|
984
|
+
}, [p("span", {
|
|
985
985
|
class: "f-icon f-page-pre"
|
|
986
|
-
}, null)]), t.value &&
|
|
986
|
+
}, null)]), t.value && p("span", {
|
|
987
987
|
class: "page-link"
|
|
988
|
-
}, [
|
|
988
|
+
}, [p("span", {
|
|
989
989
|
class: "f-icon f-page-pre"
|
|
990
990
|
}, null)])]);
|
|
991
991
|
}
|
|
992
992
|
return {
|
|
993
993
|
renderFirstPage: y,
|
|
994
|
-
renderPreviousPage:
|
|
994
|
+
renderPreviousPage: i
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
997
|
function be(e) {
|
|
998
998
|
const t = j([]);
|
|
999
|
-
function n(
|
|
999
|
+
function n(f, T, u, l) {
|
|
1000
1000
|
const y = Math.ceil(u / 2);
|
|
1001
|
-
return
|
|
1001
|
+
return f === u ? l : f === 1 ? f : u < l ? l - y < T ? l - u + f : y < T ? T - y + f : f : f;
|
|
1002
1002
|
}
|
|
1003
|
-
function s(
|
|
1004
|
-
const y = [],
|
|
1003
|
+
function s(f, T, u, l) {
|
|
1004
|
+
const y = [], i = Math.ceil(u / T), c = Math.ceil(l / 2), a = f <= c, v = i - c < f, h = !a && !v, r = l < i;
|
|
1005
1005
|
let o = 1;
|
|
1006
|
-
for (; o <=
|
|
1007
|
-
const d = n(o,
|
|
1006
|
+
for (; o <= i && o <= l; ) {
|
|
1007
|
+
const d = n(o, f, l, i), g = o === 2 && (h || v), S = o === l - 1 && (h || a), O = r && (g || S) ? "..." : "" + d;
|
|
1008
1008
|
y.push({ label: O, value: d }), o++;
|
|
1009
1009
|
}
|
|
1010
1010
|
t.value = y;
|
|
@@ -1016,9 +1016,9 @@ const J = /* @__PURE__ */ I({
|
|
|
1016
1016
|
props: X,
|
|
1017
1017
|
emits: ["changed", "pageIndexChanged", "pageSizeChanged", "update:currentPage", "update:pageSize"],
|
|
1018
1018
|
setup(e, t) {
|
|
1019
|
-
const n = j(!1), s = j(e.mode),
|
|
1020
|
-
pages:
|
|
1021
|
-
updatePages:
|
|
1019
|
+
const n = j(!1), s = j(e.mode), f = j(""), T = j(!1), u = j(e.pageSize), l = j(e.currentPage), y = j(e.totalItems), {
|
|
1020
|
+
pages: i,
|
|
1021
|
+
updatePages: c
|
|
1022
1022
|
} = be(), a = {
|
|
1023
1023
|
position: "relative"
|
|
1024
1024
|
}, v = {
|
|
@@ -1028,40 +1028,34 @@ const J = /* @__PURE__ */ I({
|
|
|
1028
1028
|
background: "rgba(250,250,252,.6)",
|
|
1029
1029
|
width: "100%",
|
|
1030
1030
|
height: "100%"
|
|
1031
|
-
}, h = k(() => !y.value ||
|
|
1032
|
-
renderFirstPage:
|
|
1031
|
+
}, h = k(() => !y.value || l.value === 1), r = k(() => e.pageList), o = k(() => Math.ceil(y.value / u.value)), d = k(() => !y.value || l.value === o.value), g = k(() => e.showGoButton), S = k(() => !!y.value && l.value > 1), O = k(() => !(T.value && i.value.length <= 1)), z = k(() => e.showPageInfo), C = k(() => e.showPageList), F = k(() => e.showPageNumbers), E = k(() => !0), {
|
|
1032
|
+
renderFirstPage: B,
|
|
1033
1033
|
renderPreviousPage: b
|
|
1034
|
-
} = me(
|
|
1035
|
-
renderLastPage:
|
|
1036
|
-
renderNextPage:
|
|
1037
|
-
} = fe(
|
|
1034
|
+
} = me(l, h, S, u, t), {
|
|
1035
|
+
renderLastPage: D,
|
|
1036
|
+
renderNextPage: x
|
|
1037
|
+
} = fe(l, d, o, u, t), {
|
|
1038
1038
|
renderPageInfo: m
|
|
1039
|
-
} = ve(
|
|
1039
|
+
} = ve(f, y), {
|
|
1040
1040
|
renderPageList: w
|
|
1041
|
-
} = de(
|
|
1041
|
+
} = de(l, u, r, y, t), {
|
|
1042
1042
|
renderPageNumbers: P
|
|
1043
|
-
} = ge(e,
|
|
1043
|
+
} = ge(e, l, i, u, t), {
|
|
1044
1044
|
renderGotoButton: N
|
|
1045
|
-
} = pe(
|
|
1046
|
-
|
|
1047
|
-
y.value =
|
|
1048
|
-
}),
|
|
1049
|
-
|
|
1050
|
-
}),
|
|
1051
|
-
|
|
1052
|
-
}), G(() => e.totalItems, (B) => {
|
|
1053
|
-
y.value = B, f(i.value, u.value, y.value, 7);
|
|
1054
|
-
}), G(() => e.currentPage, (B, W) => {
|
|
1055
|
-
B !== W && (i.value = B);
|
|
1056
|
-
}), G(() => e.pageSize, (B, W) => {
|
|
1057
|
-
B !== W && (u.value = B);
|
|
1045
|
+
} = pe(l, o, u, t);
|
|
1046
|
+
c(l.value, u.value, y.value, 7), V(() => e.totalItems, ($) => {
|
|
1047
|
+
y.value = $, c(l.value, u.value, y.value, 7);
|
|
1048
|
+
}), V(() => e.currentPage, ($, W) => {
|
|
1049
|
+
$ !== W && (l.value = $, c(l.value, u.value, y.value, 7));
|
|
1050
|
+
}), V(() => e.pageSize, ($, W) => {
|
|
1051
|
+
$ !== W && (u.value = $, c(l.value, u.value, y.value, 7));
|
|
1058
1052
|
}), Pe(() => {
|
|
1059
1053
|
if (!r.value || !r.value.length)
|
|
1060
1054
|
return;
|
|
1061
|
-
const
|
|
1062
|
-
u.value =
|
|
1055
|
+
const $ = r.value.includes(u.value);
|
|
1056
|
+
u.value = $ ? u.value : r.value[0], $ || t.emit("update:pageSize", u.value);
|
|
1063
1057
|
})();
|
|
1064
|
-
const
|
|
1058
|
+
const R = k(() => ({
|
|
1065
1059
|
"d-flex": !0,
|
|
1066
1060
|
"flex-wrap": !0,
|
|
1067
1061
|
"justify-content-end": !0,
|
|
@@ -1073,52 +1067,52 @@ const J = /* @__PURE__ */ I({
|
|
|
1073
1067
|
"pager-viewmode-simple": s.value === "simple"
|
|
1074
1068
|
})), q = k(() => ({
|
|
1075
1069
|
position: "relative",
|
|
1076
|
-
"justify-content":
|
|
1070
|
+
"justify-content": f.value === "center" ? "center" : "start"
|
|
1077
1071
|
}));
|
|
1078
1072
|
function L() {
|
|
1079
|
-
return
|
|
1073
|
+
return p(_, null, [z.value && m(), C.value && w(), E.value && B(), E.value && b(), F.value && P(), E.value && x(), E.value && D(), g.value && N()]);
|
|
1080
1074
|
}
|
|
1081
1075
|
function A() {
|
|
1082
|
-
return
|
|
1076
|
+
return p(_, null, [p("li", {
|
|
1083
1077
|
class: "page-item d-flex flex-fill"
|
|
1084
|
-
}, null),
|
|
1078
|
+
}, null), E.value && B(), E.value && b(), N(), p("li", {
|
|
1085
1079
|
class: "page-item page-separator",
|
|
1086
1080
|
style: "margin-left: 10px"
|
|
1087
|
-
}, [
|
|
1081
|
+
}, [p("span", {
|
|
1088
1082
|
style: "font-size: 15px; font-weight: 200;"
|
|
1089
|
-
}, [U(" /")])]),
|
|
1083
|
+
}, [U(" /")])]), p("li", {
|
|
1090
1084
|
class: "page-item page-total",
|
|
1091
1085
|
style: "margin-left: 5px"
|
|
1092
|
-
}, [
|
|
1086
|
+
}, [p("span", {
|
|
1093
1087
|
style: "font-size: 16px; font-weight: 600;"
|
|
1094
|
-
}, [U(" "), o.value])]),
|
|
1088
|
+
}, [U(" "), o.value])]), E.value && x(), E.value && D()]);
|
|
1095
1089
|
}
|
|
1096
|
-
return () =>
|
|
1090
|
+
return () => p("div", {
|
|
1097
1091
|
class: "pagination-container",
|
|
1098
1092
|
style: a
|
|
1099
|
-
}, [e.disabled &&
|
|
1093
|
+
}, [e.disabled && p("div", {
|
|
1100
1094
|
style: v
|
|
1101
|
-
}, null), O.value &&
|
|
1095
|
+
}, null), O.value && p("ul", {
|
|
1102
1096
|
role: "navigation",
|
|
1103
|
-
class:
|
|
1097
|
+
class: R.value,
|
|
1104
1098
|
style: q.value
|
|
1105
1099
|
}, [s.value === "default" ? L() : A()])]);
|
|
1106
1100
|
}
|
|
1107
1101
|
});
|
|
1108
1102
|
function pt(e, t, n) {
|
|
1109
|
-
var
|
|
1110
|
-
const s = "",
|
|
1103
|
+
var x;
|
|
1104
|
+
const s = "", f = "", T = j();
|
|
1111
1105
|
let u;
|
|
1112
|
-
function
|
|
1106
|
+
function l() {
|
|
1113
1107
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1114
1108
|
}
|
|
1115
1109
|
function y() {
|
|
1116
1110
|
return !1;
|
|
1117
1111
|
}
|
|
1118
|
-
function
|
|
1112
|
+
function i() {
|
|
1119
1113
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
1120
1114
|
}
|
|
1121
|
-
function
|
|
1115
|
+
function c() {
|
|
1122
1116
|
return (t == null ? void 0 : t.schema.componentType) === "frame";
|
|
1123
1117
|
}
|
|
1124
1118
|
function a(m) {
|
|
@@ -1180,22 +1174,22 @@ function pt(e, t, n) {
|
|
|
1180
1174
|
w.type === "component-ref" && (P = w.component);
|
|
1181
1175
|
const N = e.value.querySelectorAll(`#${P}-design-item`);
|
|
1182
1176
|
N != null && N.length && Array.from(N).map((M) => {
|
|
1183
|
-
var
|
|
1184
|
-
(
|
|
1177
|
+
var R;
|
|
1178
|
+
(R = M == null ? void 0 : M.componentInstance) != null && R.value.onRemoveComponent && M.componentInstance.value.onRemoveComponent(m);
|
|
1185
1179
|
});
|
|
1186
1180
|
});
|
|
1187
1181
|
}
|
|
1188
|
-
function
|
|
1182
|
+
function E() {
|
|
1189
1183
|
}
|
|
1190
|
-
function
|
|
1184
|
+
function B(m) {
|
|
1191
1185
|
var P, N;
|
|
1192
1186
|
if (!((P = t == null ? void 0 : t.schema) != null && P.id))
|
|
1193
1187
|
return;
|
|
1194
1188
|
!u && m && (u = m.formSchemaUtils);
|
|
1195
1189
|
let w = "";
|
|
1196
1190
|
{
|
|
1197
|
-
const { text: M, title:
|
|
1198
|
-
w = M ||
|
|
1191
|
+
const { text: M, title: R, label: q, mainTitle: L, name: A, type: $ } = t.schema;
|
|
1192
|
+
w = M || R || q || L || A || ((N = ne[$]) == null ? void 0 : N.name);
|
|
1199
1193
|
}
|
|
1200
1194
|
w && u.getControlBasicInfoMap().set(t.schema.id, {
|
|
1201
1195
|
componentTitle: w,
|
|
@@ -1205,31 +1199,31 @@ function pt(e, t, n) {
|
|
|
1205
1199
|
function b(m) {
|
|
1206
1200
|
var M;
|
|
1207
1201
|
const { changeObject: w } = m, { propertyID: P, propertyValue: N } = w;
|
|
1208
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((M = m == null ? void 0 : m.changeObject) == null ? void 0 : M.propertyID) && P && N && (
|
|
1209
|
-
const
|
|
1210
|
-
var A,
|
|
1211
|
-
return ((A =
|
|
1202
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((M = m == null ? void 0 : m.changeObject) == null ? void 0 : M.propertyID) && P && N && (B(), u)) {
|
|
1203
|
+
const R = u.getControlBasicInfoMap(), q = R.keys().toArray().filter((L) => {
|
|
1204
|
+
var A, $;
|
|
1205
|
+
return ((A = R.get(L)) == null ? void 0 : A.reliedComponentId) === (($ = t == null ? void 0 : t.schema) == null ? void 0 : $.id);
|
|
1212
1206
|
});
|
|
1213
1207
|
q != null && q.length && q.forEach((L) => {
|
|
1214
|
-
const A =
|
|
1215
|
-
A[0] = N,
|
|
1208
|
+
const A = R.get(L).parentPathName.split(" > ");
|
|
1209
|
+
A[0] = N, R.get(L).parentPathName = A.join(" > ");
|
|
1216
1210
|
});
|
|
1217
1211
|
}
|
|
1218
1212
|
}
|
|
1219
|
-
function
|
|
1213
|
+
function D(m) {
|
|
1220
1214
|
b(m);
|
|
1221
1215
|
}
|
|
1222
1216
|
return T.value = {
|
|
1223
|
-
canMove:
|
|
1217
|
+
canMove: l(),
|
|
1224
1218
|
canSelectParent: y(),
|
|
1225
|
-
canDelete:
|
|
1226
|
-
canNested: !
|
|
1219
|
+
canDelete: i(),
|
|
1220
|
+
canNested: !c(),
|
|
1227
1221
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1228
1222
|
elementRef: e,
|
|
1229
|
-
parent: (
|
|
1223
|
+
parent: (x = t == null ? void 0 : t.parent) == null ? void 0 : x.componentInstance,
|
|
1230
1224
|
schema: t == null ? void 0 : t.schema,
|
|
1231
1225
|
styles: s,
|
|
1232
|
-
designerClass:
|
|
1226
|
+
designerClass: f,
|
|
1233
1227
|
canAccepts: h,
|
|
1234
1228
|
getBelongedComponentInstance: a,
|
|
1235
1229
|
getDraggableDesignItemElement: v,
|
|
@@ -1242,9 +1236,9 @@ function pt(e, t, n) {
|
|
|
1242
1236
|
triggerBelongedComponentToMoveWhenMoved: j(!1),
|
|
1243
1237
|
triggerBelongedComponentToDeleteWhenDeleted: j(!1),
|
|
1244
1238
|
onRemoveComponent: F,
|
|
1245
|
-
getCustomButtons:
|
|
1246
|
-
onPropertyChanged:
|
|
1247
|
-
setComponentBasicInfoMap:
|
|
1239
|
+
getCustomButtons: E,
|
|
1240
|
+
onPropertyChanged: D,
|
|
1241
|
+
setComponentBasicInfoMap: B,
|
|
1248
1242
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
1249
1243
|
}, T;
|
|
1250
1244
|
}
|
|
@@ -1253,36 +1247,36 @@ const ft = /* @__PURE__ */ I({
|
|
|
1253
1247
|
props: X,
|
|
1254
1248
|
emits: ["pageIndexChanged", "pageSizeChanged"],
|
|
1255
1249
|
setup(e, t) {
|
|
1256
|
-
const n = j(!1), s = j(e.mode),
|
|
1250
|
+
const n = j(!1), s = j(e.mode), f = j(""), T = j(!1), u = j(e.pageSize), l = j(e.currentPage), y = j(e.totalItems), i = j(), c = Te("design-item-context"), a = pt(i, c);
|
|
1257
1251
|
we(() => {
|
|
1258
|
-
|
|
1252
|
+
i.value.componentInstance = a;
|
|
1259
1253
|
}), t.expose(a.value);
|
|
1260
1254
|
const {
|
|
1261
1255
|
pages: v,
|
|
1262
1256
|
updatePages: h
|
|
1263
|
-
} = be(), r = k(() =>
|
|
1257
|
+
} = be(), r = k(() => l.value === 1), o = k(() => [20, 50, 100]), d = k(() => Math.ceil(y.value / u.value)), g = k(() => l.value === d.value), S = k(() => !0), O = k(() => l.value > 1), z = k(() => !(T.value && v.value.length <= 1)), C = k(() => !0), F = k(() => !0), E = k(() => !0), B = k(() => !0), {
|
|
1264
1258
|
renderFirstPage: b,
|
|
1265
|
-
renderPreviousPage:
|
|
1266
|
-
} = me(
|
|
1267
|
-
renderLastPage:
|
|
1259
|
+
renderPreviousPage: D
|
|
1260
|
+
} = me(l, r, O, u, t), {
|
|
1261
|
+
renderLastPage: x,
|
|
1268
1262
|
renderNextPage: m
|
|
1269
|
-
} = fe(
|
|
1263
|
+
} = fe(l, g, d, u, t), {
|
|
1270
1264
|
renderPageInfo: w
|
|
1271
|
-
} = ve(
|
|
1265
|
+
} = ve(f, y), {
|
|
1272
1266
|
renderPageList: P
|
|
1273
|
-
} = de(
|
|
1267
|
+
} = de(l, u, o, y, t), {
|
|
1274
1268
|
renderPageNumbers: N
|
|
1275
|
-
} = ge(e,
|
|
1269
|
+
} = ge(e, l, v, u, t), {
|
|
1276
1270
|
renderGotoButton: M
|
|
1277
|
-
} = pe(
|
|
1278
|
-
h(
|
|
1279
|
-
h(
|
|
1280
|
-
}),
|
|
1281
|
-
t.emit("pageIndexChanged",
|
|
1282
|
-
}),
|
|
1271
|
+
} = pe(l, d, u, t);
|
|
1272
|
+
h(l.value, u.value, y.value, 7), V([l, u], () => {
|
|
1273
|
+
h(l.value, u.value, y.value, 7);
|
|
1274
|
+
}), V(l, () => {
|
|
1275
|
+
t.emit("pageIndexChanged", l.value);
|
|
1276
|
+
}), V(u, () => {
|
|
1283
1277
|
t.emit("pageSizeChanged", u.value);
|
|
1284
1278
|
});
|
|
1285
|
-
const
|
|
1279
|
+
const R = k(() => ({
|
|
1286
1280
|
"ngx-pagination": !0,
|
|
1287
1281
|
pagination: !0,
|
|
1288
1282
|
responsive: n.value,
|
|
@@ -1290,32 +1284,32 @@ const ft = /* @__PURE__ */ I({
|
|
|
1290
1284
|
"pager-viewmode-simple": s.value === "simple"
|
|
1291
1285
|
})), q = k(() => ({
|
|
1292
1286
|
position: "relative",
|
|
1293
|
-
"justify-content":
|
|
1287
|
+
"justify-content": f.value === "center" ? "center" : "start"
|
|
1294
1288
|
}));
|
|
1295
1289
|
function L() {
|
|
1296
|
-
return
|
|
1290
|
+
return p(_, null, [C.value && w(), F.value && P(), B.value && b(), B.value && D(), E.value && N(), B.value && m(), B.value && x(), S.value && M()]);
|
|
1297
1291
|
}
|
|
1298
1292
|
function A() {
|
|
1299
|
-
return
|
|
1293
|
+
return p(_, null, [p("li", {
|
|
1300
1294
|
class: "page-item d-flex flex-fill"
|
|
1301
|
-
}, null),
|
|
1295
|
+
}, null), B.value && b(), B.value && D(), M(), p("li", {
|
|
1302
1296
|
class: "page-item page-separator",
|
|
1303
1297
|
style: "margin-left: 10px"
|
|
1304
|
-
}, [
|
|
1298
|
+
}, [p("span", {
|
|
1305
1299
|
style: "font-size: 15px; font-weight: 200;"
|
|
1306
|
-
}, [U(" /")])]),
|
|
1300
|
+
}, [U(" /")])]), p("li", {
|
|
1307
1301
|
class: "page-item page-total",
|
|
1308
1302
|
style: "margin-left: 5px"
|
|
1309
|
-
}, [
|
|
1303
|
+
}, [p("span", {
|
|
1310
1304
|
style: "font-size: 16px; font-weight: 600;"
|
|
1311
|
-
}, [U(" "), d.value])]),
|
|
1305
|
+
}, [U(" "), d.value])]), B.value && m(), B.value && x()]);
|
|
1312
1306
|
}
|
|
1313
|
-
return () =>
|
|
1314
|
-
ref:
|
|
1307
|
+
return () => p("div", {
|
|
1308
|
+
ref: i,
|
|
1315
1309
|
class: "pagination-container"
|
|
1316
|
-
}, [z.value &&
|
|
1310
|
+
}, [z.value && p("ul", {
|
|
1317
1311
|
role: "navigation",
|
|
1318
|
-
class:
|
|
1312
|
+
class: R.value,
|
|
1319
1313
|
style: q.value
|
|
1320
1314
|
}, [s.value === "default" ? L() : A()])]);
|
|
1321
1315
|
}
|