@farris/ui-vue 1.2.8 → 1.2.9
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/accordion/index.esm.js +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -3,101 +3,101 @@ import { cloneDeep as ge } from "lodash-es";
|
|
|
3
3
|
import { withInstall as be } from "../common/index.esm.js";
|
|
4
4
|
const K = {}, ee = {};
|
|
5
5
|
function Y(n) {
|
|
6
|
-
const { properties: e, title: t } = n,
|
|
7
|
-
return
|
|
6
|
+
const { properties: e, title: t, ignore: i } = n, a = i && Array.isArray(i), d = Object.keys(e).reduce((o, s) => ((!a || !i.find((r) => r == s)) && (o[s] = e[s].type === "object" && e[s].properties ? Y(e[s]) : ge(e[s].default)), o), {});
|
|
7
|
+
return (!a || !i.find((o) => o == "id")) && (d.id = `${t}-${Date.now()}`), d;
|
|
8
8
|
}
|
|
9
|
-
function q(n, e = {}) {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
return
|
|
9
|
+
function q(n, e = {}, t) {
|
|
10
|
+
const i = K[n];
|
|
11
|
+
if (i) {
|
|
12
|
+
let a = Y(i);
|
|
13
|
+
const d = ee[n];
|
|
14
|
+
return a = d ? d({ getSchemaByType: q }, a, e, t) : a, a;
|
|
15
15
|
}
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
function ye(n, e) {
|
|
19
19
|
const t = Y(e);
|
|
20
|
-
return Object.keys(n).reduce((
|
|
20
|
+
return Object.keys(n).reduce((i, a) => (i[a] && typeof i[a] == "object" ? Object.assign(i[a], n[a]) : i[a] = n[a], i), t), t;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return Object.keys(n).filter((
|
|
24
|
-
if (e.has(
|
|
25
|
-
const
|
|
26
|
-
if (typeof
|
|
27
|
-
|
|
22
|
+
function he(n, e) {
|
|
23
|
+
return Object.keys(n).filter((i) => n[i] != null).reduce((i, a) => {
|
|
24
|
+
if (e.has(a)) {
|
|
25
|
+
const d = e.get(a);
|
|
26
|
+
if (typeof d == "string")
|
|
27
|
+
i[d] = n[a];
|
|
28
28
|
else {
|
|
29
|
-
const
|
|
30
|
-
Object.assign(
|
|
29
|
+
const o = d(a, n[a], n);
|
|
30
|
+
Object.assign(i, o);
|
|
31
31
|
}
|
|
32
32
|
} else
|
|
33
|
-
|
|
34
|
-
return
|
|
33
|
+
i[a] = n[a];
|
|
34
|
+
return i;
|
|
35
35
|
}, {});
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
return
|
|
37
|
+
function me(n, e, t = /* @__PURE__ */ new Map()) {
|
|
38
|
+
const i = ye(n, e);
|
|
39
|
+
return he(i, t);
|
|
40
40
|
}
|
|
41
41
|
function ve(n = {}) {
|
|
42
|
-
function e(f,
|
|
43
|
-
if (typeof
|
|
44
|
-
return m[f].length ===
|
|
45
|
-
if (typeof
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return Number(m[f].length) !== Number(
|
|
49
|
-
if (
|
|
50
|
-
return Number(m[f].length) >= Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(m[f].length) <= Number(
|
|
42
|
+
function e(f, g, v, m) {
|
|
43
|
+
if (typeof v == "number")
|
|
44
|
+
return m[f].length === v;
|
|
45
|
+
if (typeof v == "object") {
|
|
46
|
+
const C = Object.keys(v)[0], l = v[C];
|
|
47
|
+
if (C === "not")
|
|
48
|
+
return Number(m[f].length) !== Number(l);
|
|
49
|
+
if (C === "moreThan")
|
|
50
|
+
return Number(m[f].length) >= Number(l);
|
|
51
|
+
if (C === "lessThan")
|
|
52
|
+
return Number(m[f].length) <= Number(l);
|
|
53
53
|
}
|
|
54
54
|
return !1;
|
|
55
55
|
}
|
|
56
|
-
function t(f,
|
|
57
|
-
return m[f] && m[f].propertyValue && String(m[f].propertyValue.value) === String(
|
|
56
|
+
function t(f, g, v, m) {
|
|
57
|
+
return m[f] && m[f].propertyValue && String(m[f].propertyValue.value) === String(v);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const i = /* @__PURE__ */ new Map([
|
|
60
60
|
["length", e],
|
|
61
61
|
["getProperty", t]
|
|
62
62
|
]);
|
|
63
|
-
Object.keys(n).reduce((f,
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return typeof
|
|
63
|
+
Object.keys(n).reduce((f, g) => (f.set(g, n[g]), f), i);
|
|
64
|
+
function a(f, g) {
|
|
65
|
+
const v = f;
|
|
66
|
+
return typeof g == "number" ? [{ target: v, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: v, operator: "getProperty", param: f, value: !!g }] : typeof g == "object" ? Object.keys(g).map((m) => {
|
|
67
67
|
if (m === "length")
|
|
68
|
-
return { target:
|
|
69
|
-
const
|
|
70
|
-
return { target:
|
|
68
|
+
return { target: v, operator: "length", param: null, value: g[m] };
|
|
69
|
+
const C = m, l = g[m];
|
|
70
|
+
return { target: v, operator: "getProperty", param: C, value: l };
|
|
71
71
|
}) : [];
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return Object.keys(f).reduce((
|
|
75
|
-
const
|
|
76
|
-
return
|
|
73
|
+
function d(f) {
|
|
74
|
+
return Object.keys(f).reduce((v, m) => {
|
|
75
|
+
const C = a(m, f[m]);
|
|
76
|
+
return v.push(...C), v;
|
|
77
77
|
}, []);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
const
|
|
82
|
-
return
|
|
79
|
+
function o(f, g) {
|
|
80
|
+
if (i.has(f.operator)) {
|
|
81
|
+
const v = i.get(f.operator);
|
|
82
|
+
return v && v(f.target, f.param, f.value, g) || !1;
|
|
83
83
|
}
|
|
84
84
|
return !1;
|
|
85
85
|
}
|
|
86
|
-
function s(f,
|
|
87
|
-
return
|
|
86
|
+
function s(f, g) {
|
|
87
|
+
return d(f).reduce((C, l) => C && o(l, g), !0);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
return m ? !
|
|
89
|
+
function r(f, g) {
|
|
90
|
+
const v = Object.keys(f), m = v.includes("allOf"), C = v.includes("anyOf"), l = m || C, b = (l ? f[l ? m ? "allOf" : "anyOf" : "allOf"] : [f]).map((P) => s(P, g));
|
|
91
|
+
return m ? !b.includes(!1) : b.includes(!0);
|
|
92
92
|
}
|
|
93
|
-
return { parseValueSchema:
|
|
93
|
+
return { parseValueSchema: r };
|
|
94
94
|
}
|
|
95
|
-
const je = {},
|
|
95
|
+
const je = {}, Pe = {};
|
|
96
96
|
ve();
|
|
97
|
-
function
|
|
98
|
-
return K[e.title] = e, ee[e.title] =
|
|
99
|
-
const s =
|
|
100
|
-
return Object.assign(
|
|
97
|
+
function Ce(n, e, t = /* @__PURE__ */ new Map(), i = (o, s, r) => s, a = {}, d = (o) => o) {
|
|
98
|
+
return K[e.title] = e, ee[e.title] = i, je[e.title] = a, Pe[e.title] = d, (o = {}) => {
|
|
99
|
+
const s = me(o, e, t), r = Object.keys(n).reduce((f, g) => (f[g] = n[g].default, f), {});
|
|
100
|
+
return Object.assign(r, s);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function we(n, e) {
|
|
@@ -105,7 +105,7 @@ function we(n, e) {
|
|
|
105
105
|
}
|
|
106
106
|
const Ne = /* @__PURE__ */ new Map([
|
|
107
107
|
["appearance", we]
|
|
108
|
-
]),
|
|
108
|
+
]), Oe = "https://json-schema.org/draft/2020-12/schema", Te = "https://farris-design.gitee.io/pagination.schema.json", ke = "pagination", Ae = "A Farris Component", Se = "object", Me = {
|
|
109
109
|
id: {
|
|
110
110
|
description: "The unique identifier for a pagination",
|
|
111
111
|
type: "string"
|
|
@@ -201,11 +201,11 @@ const Ne = /* @__PURE__ */ new Map([
|
|
|
201
201
|
"id",
|
|
202
202
|
"type"
|
|
203
203
|
], De = {
|
|
204
|
-
$schema:
|
|
205
|
-
$id:
|
|
206
|
-
title:
|
|
207
|
-
description:
|
|
208
|
-
type:
|
|
204
|
+
$schema: Oe,
|
|
205
|
+
$id: Te,
|
|
206
|
+
title: ke,
|
|
207
|
+
description: Ae,
|
|
208
|
+
type: Se,
|
|
209
209
|
properties: Me,
|
|
210
210
|
required: Le
|
|
211
211
|
}, xe = "pagination", Ee = "A Farris Component", Be = "object", $e = {
|
|
@@ -332,19 +332,19 @@ const Z = {
|
|
|
332
332
|
* 自定义每页数量
|
|
333
333
|
*/
|
|
334
334
|
pageList: { type: Array, default: [20, 50, 100] }
|
|
335
|
-
}, te =
|
|
335
|
+
}, te = Ce(Z, De, Ne, Ve, Fe);
|
|
336
336
|
function ne(n, e) {
|
|
337
|
-
const t = N("跳转至"),
|
|
338
|
-
B(
|
|
339
|
-
|
|
340
|
-
}), B(n, (
|
|
341
|
-
|
|
337
|
+
const t = N("跳转至"), i = N(""), a = N(n.value);
|
|
338
|
+
B(a, (r, f) => {
|
|
339
|
+
r >= 1 && r <= e.value ? n.value = r : a.value = f;
|
|
340
|
+
}), B(n, (r) => {
|
|
341
|
+
a.value !== r && (a.value = r);
|
|
342
342
|
});
|
|
343
|
-
function
|
|
344
|
-
|
|
343
|
+
function d(r) {
|
|
344
|
+
a.value = r.target.valueAsNumber;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
346
|
+
function o(r) {
|
|
347
|
+
r.key === "Enter" && (a.value = r.target.valueAsNumber);
|
|
348
348
|
}
|
|
349
349
|
function s() {
|
|
350
350
|
return p("li", {
|
|
@@ -355,36 +355,36 @@ function ne(n, e) {
|
|
|
355
355
|
}, [t.value]), p("input", {
|
|
356
356
|
type: "number",
|
|
357
357
|
class: "form-control farris-gotopagenumber",
|
|
358
|
-
value:
|
|
358
|
+
value: a.value,
|
|
359
359
|
min: "1",
|
|
360
360
|
max: e.value,
|
|
361
361
|
style: "display: inline-block;margin-left:3px;",
|
|
362
|
-
onBlur: (
|
|
363
|
-
onKeyup: (
|
|
364
|
-
}, null),
|
|
362
|
+
onBlur: (r) => d(r),
|
|
363
|
+
onKeyup: (r) => o(r)
|
|
364
|
+
}, null), i.value]);
|
|
365
365
|
}
|
|
366
366
|
return {
|
|
367
367
|
renderGotoButton: s
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
function oe(n, e, t) {
|
|
371
|
-
const
|
|
371
|
+
const i = w(() => ({
|
|
372
372
|
"page-item": !0,
|
|
373
373
|
disabled: e.value
|
|
374
374
|
}));
|
|
375
|
-
function
|
|
375
|
+
function a(r) {
|
|
376
376
|
n.value = n.value < t.value ? n.value + 1 : t.value;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function d(r) {
|
|
379
379
|
n.value = t.value;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function o() {
|
|
382
382
|
return p("li", {
|
|
383
|
-
class:
|
|
383
|
+
class: i.value
|
|
384
384
|
}, [!e.value && p("a", {
|
|
385
385
|
class: "page-link",
|
|
386
386
|
tabindex: "0",
|
|
387
|
-
onClick: (
|
|
387
|
+
onClick: (r) => a()
|
|
388
388
|
}, [p("span", {
|
|
389
389
|
class: "f-icon f-page-next"
|
|
390
390
|
}, null)]), e.value && p("span", {
|
|
@@ -395,11 +395,11 @@ function oe(n, e, t) {
|
|
|
395
395
|
}
|
|
396
396
|
function s() {
|
|
397
397
|
return p("li", {
|
|
398
|
-
class:
|
|
398
|
+
class: i.value
|
|
399
399
|
}, [!e.value && p("a", {
|
|
400
400
|
class: "page-link",
|
|
401
401
|
tabindex: "0",
|
|
402
|
-
onClick: (
|
|
402
|
+
onClick: (r) => d()
|
|
403
403
|
}, [p("span", {
|
|
404
404
|
class: "f-icon f-page-last"
|
|
405
405
|
}, null)]), e.value && p("span", {
|
|
@@ -410,20 +410,20 @@ function oe(n, e, t) {
|
|
|
410
410
|
}
|
|
411
411
|
return {
|
|
412
412
|
renderLastPage: s,
|
|
413
|
-
renderNextPage:
|
|
413
|
+
renderNextPage: o
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
416
|
function ae(n, e) {
|
|
417
|
-
const t = N("共"),
|
|
417
|
+
const t = N("共"), i = N("条"), a = w(() => ({
|
|
418
418
|
"pagination-message": !0,
|
|
419
419
|
"text-truncate": !0,
|
|
420
420
|
"d-flex": !0,
|
|
421
421
|
"ml-auto": n.value === "right",
|
|
422
422
|
"flex-fill": n.value === "right"
|
|
423
423
|
}));
|
|
424
|
-
function
|
|
424
|
+
function d() {
|
|
425
425
|
return p("li", {
|
|
426
|
-
class:
|
|
426
|
+
class: a.value
|
|
427
427
|
}, [p("div", {
|
|
428
428
|
class: "text-truncate",
|
|
429
429
|
style: "line-height: 26px"
|
|
@@ -433,119 +433,119 @@ function ae(n, e) {
|
|
|
433
433
|
class: "pg-message-total"
|
|
434
434
|
}, [e.value]), p("span", {
|
|
435
435
|
class: "pg-message-text"
|
|
436
|
-
}, [
|
|
436
|
+
}, [i.value])])]);
|
|
437
437
|
}
|
|
438
438
|
return {
|
|
439
|
-
renderPageInfo:
|
|
439
|
+
renderPageInfo: d
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function se(n, e, t,
|
|
443
|
-
const
|
|
442
|
+
function se(n, e, t, i) {
|
|
443
|
+
const a = N(!1), d = N("显示"), o = N("条"), s = w(() => ({
|
|
444
444
|
dropup: !0,
|
|
445
445
|
"dropdown-right": !0,
|
|
446
446
|
"pg-pagelist": !0,
|
|
447
|
-
"pagelist-disabled":
|
|
448
|
-
show:
|
|
449
|
-
})),
|
|
447
|
+
"pagelist-disabled": i.value === 0,
|
|
448
|
+
show: a.value
|
|
449
|
+
})), r = w(() => ({
|
|
450
450
|
"dropdown-menu": !0,
|
|
451
|
-
show:
|
|
452
|
-
})), f = (
|
|
451
|
+
show: a.value
|
|
452
|
+
})), f = (c) => ({
|
|
453
453
|
"w-100": !0,
|
|
454
454
|
"dropdown-item": !0,
|
|
455
|
-
active: e.value ===
|
|
455
|
+
active: e.value === c
|
|
456
456
|
});
|
|
457
|
-
function
|
|
458
|
-
|
|
457
|
+
function g(c) {
|
|
458
|
+
a.value = !0;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
|
|
460
|
+
function v(c) {
|
|
461
|
+
a.value = !1;
|
|
462
462
|
}
|
|
463
|
-
function m(
|
|
464
|
-
const
|
|
465
|
-
return Math.ceil(
|
|
463
|
+
function m(c, u, b) {
|
|
464
|
+
const P = c * u - u + 1;
|
|
465
|
+
return Math.ceil(P / b);
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
n.value = m(n.value, e.value, u), e.value = u,
|
|
467
|
+
function C(c, u) {
|
|
468
|
+
n.value = m(n.value, e.value, u), e.value = u, a.value = !1;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function l() {
|
|
471
471
|
return p("li", {
|
|
472
472
|
class: "pagination-pagelist"
|
|
473
473
|
}, [p("div", {
|
|
474
474
|
class: s.value,
|
|
475
|
-
onMouseenter: (
|
|
476
|
-
onMouseleave: (
|
|
475
|
+
onMouseenter: (c) => g(),
|
|
476
|
+
onMouseleave: (c) => v()
|
|
477
477
|
}, [p("div", {
|
|
478
478
|
class: "pg-pagelist-info"
|
|
479
479
|
}, [p("span", {
|
|
480
480
|
class: "pagelist-text"
|
|
481
|
-
}, [
|
|
481
|
+
}, [d.value]), p("b", {
|
|
482
482
|
class: "cur-pagesize"
|
|
483
483
|
}, [e.value]), p("span", {
|
|
484
484
|
class: "pagelist-text"
|
|
485
|
-
}, [
|
|
485
|
+
}, [o.value]), p("i", {
|
|
486
486
|
class: "f-icon f-icon-dropdown"
|
|
487
487
|
}, null)]), p("div", {
|
|
488
|
-
class:
|
|
488
|
+
class: r.value,
|
|
489
489
|
style: "margin-bottom: -1px;"
|
|
490
|
-
}, [t.value.map((
|
|
491
|
-
class: f(
|
|
492
|
-
onClick: (u) =>
|
|
493
|
-
}, [p("span", null, [
|
|
490
|
+
}, [t.value.map((c) => p("li", {
|
|
491
|
+
class: f(c),
|
|
492
|
+
onClick: (u) => C(u, c)
|
|
493
|
+
}, [p("span", null, [c])]))])])]);
|
|
494
494
|
}
|
|
495
495
|
return {
|
|
496
|
-
renderPageList:
|
|
496
|
+
renderPageList: l
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
499
|
function re(n, e) {
|
|
500
|
-
const t = (
|
|
500
|
+
const t = (o) => ({
|
|
501
501
|
"page-item": !0,
|
|
502
|
-
current: n.value ===
|
|
503
|
-
ellipsis:
|
|
504
|
-
}),
|
|
502
|
+
current: n.value === o.value,
|
|
503
|
+
ellipsis: o.label === "..."
|
|
504
|
+
}), i = (o) => ({
|
|
505
505
|
"f-icon": !0,
|
|
506
|
-
"f-icon-arrow-seek-left":
|
|
507
|
-
"f-icon-arrow-seek-right":
|
|
506
|
+
"f-icon-arrow-seek-left": o.value < n.value,
|
|
507
|
+
"f-icon-arrow-seek-right": o.value > n.value
|
|
508
508
|
});
|
|
509
|
-
function o
|
|
509
|
+
function a(o, s) {
|
|
510
510
|
n.value = s;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
513
|
-
return e.value.map((
|
|
514
|
-
class: t(
|
|
515
|
-
}, [n.value !==
|
|
512
|
+
function d() {
|
|
513
|
+
return e.value.map((o) => p("li", {
|
|
514
|
+
class: t(o)
|
|
515
|
+
}, [n.value !== o.value && p("a", {
|
|
516
516
|
class: "page-link",
|
|
517
517
|
tabindex: "0",
|
|
518
|
-
onClick: (s) =>
|
|
518
|
+
onClick: (s) => a(s, o.value)
|
|
519
519
|
}, [p("span", {
|
|
520
520
|
class: "page-link-label"
|
|
521
|
-
}, [
|
|
522
|
-
class:
|
|
523
|
-
}, null)]), n.value ===
|
|
521
|
+
}, [o.label]), o.label === "..." && p("i", {
|
|
522
|
+
class: i(o)
|
|
523
|
+
}, null)]), n.value === o.value && p("span", {
|
|
524
524
|
class: "page-link"
|
|
525
|
-
}, [
|
|
525
|
+
}, [o.label])]));
|
|
526
526
|
}
|
|
527
527
|
return {
|
|
528
|
-
renderPageNumbers:
|
|
528
|
+
renderPageNumbers: d
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
531
|
function ce(n, e, t) {
|
|
532
|
-
const
|
|
532
|
+
const i = w(() => ({
|
|
533
533
|
"page-item": !0,
|
|
534
534
|
disabled: e.value
|
|
535
535
|
}));
|
|
536
|
-
function
|
|
536
|
+
function a(r) {
|
|
537
537
|
n.value = 1;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function d(r) {
|
|
540
540
|
n.value = n.value > 2 ? n.value - 1 : 1;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function o() {
|
|
543
543
|
return p("li", {
|
|
544
|
-
class:
|
|
544
|
+
class: i.value
|
|
545
545
|
}, [t.value && p("a", {
|
|
546
546
|
tabindex: "0",
|
|
547
547
|
class: "page-link",
|
|
548
|
-
onClick: (
|
|
548
|
+
onClick: (r) => a()
|
|
549
549
|
}, [p("span", {
|
|
550
550
|
class: "f-icon f-page-first"
|
|
551
551
|
}, null)]), e.value && p("span", {
|
|
@@ -556,11 +556,11 @@ function ce(n, e, t) {
|
|
|
556
556
|
}
|
|
557
557
|
function s() {
|
|
558
558
|
return p("li", {
|
|
559
|
-
class:
|
|
559
|
+
class: i.value
|
|
560
560
|
}, [t.value && p("a", {
|
|
561
561
|
tabindex: "0",
|
|
562
562
|
class: "page-link",
|
|
563
|
-
onClick: (
|
|
563
|
+
onClick: (r) => d()
|
|
564
564
|
}, [p("span", {
|
|
565
565
|
class: "f-icon f-page-pre"
|
|
566
566
|
}, null)]), e.value && p("span", {
|
|
@@ -570,81 +570,81 @@ function ce(n, e, t) {
|
|
|
570
570
|
}, null)])]);
|
|
571
571
|
}
|
|
572
572
|
return {
|
|
573
|
-
renderFirstPage:
|
|
573
|
+
renderFirstPage: o,
|
|
574
574
|
renderPreviousPage: s
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
577
|
function le(n) {
|
|
578
578
|
const e = N([]);
|
|
579
|
-
function t(
|
|
580
|
-
const
|
|
581
|
-
return
|
|
582
|
-
}
|
|
583
|
-
function
|
|
584
|
-
const
|
|
585
|
-
let
|
|
586
|
-
for (;
|
|
587
|
-
const u = t(
|
|
588
|
-
|
|
579
|
+
function t(a, d, o, s) {
|
|
580
|
+
const r = Math.ceil(o / 2);
|
|
581
|
+
return a === o ? s : a === 1 ? a : o < s ? s - r < d ? s - o + a : r < d ? d - r + a : a : a;
|
|
582
|
+
}
|
|
583
|
+
function i(a, d, o, s) {
|
|
584
|
+
const r = [], f = Math.ceil(o / d), g = Math.ceil(s / 2), v = a <= g, m = f - g < a, C = !v && !m, l = s < f;
|
|
585
|
+
let c = 1;
|
|
586
|
+
for (; c <= f && c <= s; ) {
|
|
587
|
+
const u = t(c, a, s, f), b = c === 2 && (C || m), O = c === s - 1 && (C || v), P = l && (b || O) ? "..." : "" + u;
|
|
588
|
+
r.push({ label: P, value: u }), c++;
|
|
589
589
|
}
|
|
590
|
-
e.value =
|
|
590
|
+
e.value = r;
|
|
591
591
|
}
|
|
592
|
-
return { pages: e, updatePages:
|
|
592
|
+
return { pages: e, updatePages: i };
|
|
593
593
|
}
|
|
594
594
|
const J = /* @__PURE__ */ R({
|
|
595
595
|
name: "FPagination",
|
|
596
596
|
props: Z,
|
|
597
597
|
emits: ["pageIndexChanged", "pageSizeChanged", "update:currentPage", "update:pageSize"],
|
|
598
598
|
setup(n, e) {
|
|
599
|
-
const t = N(!1),
|
|
599
|
+
const t = N(!1), i = N(n.mode), a = N(""), d = N(!1), o = N(n.pageSize), s = N(n.currentPage), r = N(n.totalItems), {
|
|
600
600
|
pages: f,
|
|
601
|
-
updatePages:
|
|
602
|
-
} = le(),
|
|
601
|
+
updatePages: g
|
|
602
|
+
} = le(), v = w(() => s.value === 1), m = w(() => n.pageList), C = w(() => Math.ceil(r.value / o.value)), l = w(() => s.value === C.value), c = w(() => n.showGoButton), u = w(() => s.value > 1), b = w(() => !(d.value && f.value.length <= 1)), O = w(() => !0), P = w(() => n.showPageList), S = w(() => n.showPageNumbers), M = w(() => !0), {
|
|
603
603
|
renderFirstPage: j,
|
|
604
|
-
renderPreviousPage:
|
|
605
|
-
} = ce(s,
|
|
606
|
-
renderLastPage:
|
|
607
|
-
renderNextPage:
|
|
608
|
-
} = oe(s,
|
|
609
|
-
renderPageInfo:
|
|
610
|
-
} = ae(
|
|
611
|
-
renderPageList:
|
|
612
|
-
} = se(s,
|
|
604
|
+
renderPreviousPage: k
|
|
605
|
+
} = ce(s, v, u), {
|
|
606
|
+
renderLastPage: y,
|
|
607
|
+
renderNextPage: h
|
|
608
|
+
} = oe(s, l, C), {
|
|
609
|
+
renderPageInfo: A
|
|
610
|
+
} = ae(a, r), {
|
|
611
|
+
renderPageList: T
|
|
612
|
+
} = se(s, o, m, r), {
|
|
613
613
|
renderPageNumbers: D
|
|
614
614
|
} = re(s, f), {
|
|
615
615
|
renderGotoButton: x
|
|
616
|
-
} = ne(s,
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}), B([s,
|
|
620
|
-
|
|
616
|
+
} = ne(s, C);
|
|
617
|
+
g(s.value, o.value, r.value, 7), B(() => n.totalItems, (E) => {
|
|
618
|
+
r.value = E;
|
|
619
|
+
}), B([s, o, r], () => {
|
|
620
|
+
g(s.value, o.value, r.value, 7);
|
|
621
621
|
}), B(s, () => {
|
|
622
622
|
e.emit("update:currentPage", s.value), e.emit("pageIndexChanged", s.value);
|
|
623
|
-
}), B(
|
|
624
|
-
e.emit("update:pageSize",
|
|
623
|
+
}), B(o, () => {
|
|
624
|
+
e.emit("update:pageSize", o.value), e.emit("pageSizeChanged", o.value);
|
|
625
625
|
}), B(() => n.totalItems, (E) => {
|
|
626
|
-
|
|
626
|
+
r.value = E, g(s.value, o.value, r.value, 7);
|
|
627
627
|
}), pe(() => {
|
|
628
|
-
const E = m.value.includes(
|
|
629
|
-
|
|
628
|
+
const E = m.value.includes(o.value);
|
|
629
|
+
o.value = E ? o.value : m.value[0];
|
|
630
630
|
})();
|
|
631
631
|
const $ = w(() => ({
|
|
632
632
|
"ngx-pagination": !0,
|
|
633
633
|
pagination: !0,
|
|
634
634
|
responsive: t.value,
|
|
635
|
-
"pager-viewmode-default":
|
|
636
|
-
"pager-viewmode-simple":
|
|
635
|
+
"pager-viewmode-default": i.value === "default",
|
|
636
|
+
"pager-viewmode-simple": i.value === "simple"
|
|
637
637
|
})), F = w(() => ({
|
|
638
638
|
position: "relative",
|
|
639
|
-
"justify-content":
|
|
639
|
+
"justify-content": a.value === "center" ? "center" : "start"
|
|
640
640
|
}));
|
|
641
641
|
function V() {
|
|
642
|
-
return p(_, null, [
|
|
642
|
+
return p(_, null, [O.value && A(), P.value && T(), M.value && j(), M.value && k(), S.value && D(), M.value && h(), M.value && y(), c.value && x()]);
|
|
643
643
|
}
|
|
644
644
|
function z() {
|
|
645
645
|
return p(_, null, [p("li", {
|
|
646
646
|
class: "page-item d-flex flex-fill"
|
|
647
|
-
}, null),
|
|
647
|
+
}, null), M.value && j(), M.value && k(), x(), p("li", {
|
|
648
648
|
class: "page-item page-separator",
|
|
649
649
|
style: "margin-left: 10px"
|
|
650
650
|
}, [p("span", {
|
|
@@ -654,117 +654,117 @@ const J = /* @__PURE__ */ R({
|
|
|
654
654
|
style: "margin-left: 5px"
|
|
655
655
|
}, [p("span", {
|
|
656
656
|
style: "font-size: 16px; font-weight: 600;"
|
|
657
|
-
}, [H(" "),
|
|
657
|
+
}, [H(" "), C.value])]), M.value && h(), M.value && y()]);
|
|
658
658
|
}
|
|
659
659
|
return () => p("div", {
|
|
660
660
|
class: "pagination-container"
|
|
661
|
-
}, [
|
|
661
|
+
}, [b.value && p("ul", {
|
|
662
662
|
role: "navigation",
|
|
663
663
|
class: $.value,
|
|
664
664
|
style: F.value
|
|
665
|
-
}, [
|
|
665
|
+
}, [i.value === "default" ? V() : z()])]);
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
function ze(n, e, t) {
|
|
669
|
-
var
|
|
670
|
-
function
|
|
669
|
+
var M;
|
|
670
|
+
function i() {
|
|
671
671
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
672
672
|
}
|
|
673
|
-
|
|
674
|
-
const
|
|
673
|
+
i();
|
|
674
|
+
const a = t && t.getStyles && t.getStyles() || "", d = t && t.getDesignerClass && t.getDesignerClass() || "", o = N();
|
|
675
675
|
function s() {
|
|
676
676
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function r() {
|
|
679
679
|
return !1;
|
|
680
680
|
}
|
|
681
681
|
function f() {
|
|
682
682
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function g() {
|
|
685
685
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function v(j) {
|
|
688
688
|
if (!j || !j.value)
|
|
689
689
|
return null;
|
|
690
690
|
if (j.value.schema && j.value.schema.type === "component")
|
|
691
691
|
return j.value;
|
|
692
|
-
const
|
|
693
|
-
return
|
|
692
|
+
const k = N(j == null ? void 0 : j.value.parent), y = v(k);
|
|
693
|
+
return y || null;
|
|
694
694
|
}
|
|
695
695
|
function m(j = e) {
|
|
696
|
-
const { componentInstance:
|
|
697
|
-
return !
|
|
696
|
+
const { componentInstance: k, designerItemElementRef: y } = j;
|
|
697
|
+
return !k || !k.value ? null : k.value.canMove ? y : m(j.parent);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function C(j) {
|
|
700
700
|
return !!t && t.canAccepts(j);
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function l() {
|
|
703
703
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function c() {
|
|
706
706
|
}
|
|
707
|
-
function u(j,
|
|
708
|
-
|
|
707
|
+
function u(j, k) {
|
|
708
|
+
k && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(k);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
const { componentType:
|
|
712
|
-
let
|
|
713
|
-
t && t.onResolveNewComponentSchema && (
|
|
714
|
-
const
|
|
715
|
-
return
|
|
710
|
+
function b(j, k) {
|
|
711
|
+
const { componentType: y } = j;
|
|
712
|
+
let h = q(y, j, k);
|
|
713
|
+
t && t.onResolveNewComponentSchema && (h = t.onResolveNewComponentSchema(j, h));
|
|
714
|
+
const A = y.toLowerCase().replace("-", "_");
|
|
715
|
+
return h && !h.id && h.type === y && (h.id = `${A}_${Math.random().toString().slice(2, 6)}`), h;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
const
|
|
719
|
-
|
|
720
|
-
let
|
|
721
|
-
t && t.onAcceptNewChildElement && (
|
|
722
|
-
const D =
|
|
723
|
-
return
|
|
717
|
+
function O(j, k) {
|
|
718
|
+
const y = String(j.getAttribute("data-controltype")), h = j.getAttribute("data-feature"), A = h ? JSON.parse(h) : {};
|
|
719
|
+
A.parentComponentInstance = o.value;
|
|
720
|
+
let T = q(y, A);
|
|
721
|
+
t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(j, k, T));
|
|
722
|
+
const D = y.toLowerCase().replace("-", "_");
|
|
723
|
+
return T && !T.id && T.type === y && (T.id = `${D}_${Math.random().toString().slice(2, 6)}`), T;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function P(j) {
|
|
726
726
|
}
|
|
727
727
|
function S(...j) {
|
|
728
728
|
if (t && t.getPropsConfig)
|
|
729
729
|
return t.getPropsConfig(...j);
|
|
730
730
|
}
|
|
731
|
-
return
|
|
731
|
+
return o.value = {
|
|
732
732
|
canMove: s(),
|
|
733
|
-
canSelectParent:
|
|
733
|
+
canSelectParent: r(),
|
|
734
734
|
canDelete: f(),
|
|
735
|
-
canNested: !
|
|
735
|
+
canNested: !g(),
|
|
736
736
|
contents: e == null ? void 0 : e.schema.contents,
|
|
737
737
|
elementRef: n,
|
|
738
|
-
parent: (
|
|
738
|
+
parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
|
|
739
739
|
schema: e == null ? void 0 : e.schema,
|
|
740
|
-
styles:
|
|
741
|
-
designerClass:
|
|
742
|
-
canAccepts:
|
|
743
|
-
getBelongedComponentInstance:
|
|
740
|
+
styles: a,
|
|
741
|
+
designerClass: d,
|
|
742
|
+
canAccepts: C,
|
|
743
|
+
getBelongedComponentInstance: v,
|
|
744
744
|
getDraggableDesignItemElement: m,
|
|
745
|
-
getDraggingDisplayText:
|
|
745
|
+
getDraggingDisplayText: l,
|
|
746
746
|
getPropConfig: S,
|
|
747
|
-
getDragScopeElement:
|
|
747
|
+
getDragScopeElement: c,
|
|
748
748
|
onAcceptMovedChildElement: u,
|
|
749
|
-
onAcceptNewChildElement:
|
|
750
|
-
onChildElementMovedOut:
|
|
751
|
-
addNewChildComponentSchema:
|
|
752
|
-
updateDragAndDropRules:
|
|
749
|
+
onAcceptNewChildElement: O,
|
|
750
|
+
onChildElementMovedOut: P,
|
|
751
|
+
addNewChildComponentSchema: b,
|
|
752
|
+
updateDragAndDropRules: i,
|
|
753
753
|
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || N(!1),
|
|
754
754
|
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || N(!1)
|
|
755
|
-
},
|
|
755
|
+
}, o;
|
|
756
756
|
}
|
|
757
757
|
function We() {
|
|
758
758
|
function n(e) {
|
|
759
|
-
var
|
|
759
|
+
var a, d;
|
|
760
760
|
if (!e)
|
|
761
761
|
return !1;
|
|
762
|
-
const t = ((
|
|
762
|
+
const t = ((a = e.targetContainer) == null ? void 0 : a.componentInstance) && e.targetContainer.componentInstance.value;
|
|
763
763
|
if (!t)
|
|
764
764
|
return !1;
|
|
765
|
-
const
|
|
765
|
+
const i = (d = t.schema.appearance) == null ? void 0 : d.class;
|
|
766
766
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
767
|
-
const
|
|
767
|
+
const o = t.schema.type, s = (o === "response-form" || o === "content-container") && i && i.includes("farris-form");
|
|
768
768
|
if (t.schema.type !== "response-layout-item" && !s)
|
|
769
769
|
return !1;
|
|
770
770
|
}
|
|
@@ -1193,6 +1193,80 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
|
|
|
1193
1193
|
"f-list-nav-left": {
|
|
1194
1194
|
description: "",
|
|
1195
1195
|
type: "object"
|
|
1196
|
+
},
|
|
1197
|
+
"f-struct-data-grid-in-nav": {
|
|
1198
|
+
description: "",
|
|
1199
|
+
type: "object",
|
|
1200
|
+
properties: {
|
|
1201
|
+
contents: {
|
|
1202
|
+
type: "object",
|
|
1203
|
+
properties: {
|
|
1204
|
+
"f-section-form": {
|
|
1205
|
+
description: "",
|
|
1206
|
+
type: "object",
|
|
1207
|
+
properties: {
|
|
1208
|
+
rules: {
|
|
1209
|
+
type: "object",
|
|
1210
|
+
properties: {
|
|
1211
|
+
canAccept: {
|
|
1212
|
+
type: "boolean",
|
|
1213
|
+
const: !1
|
|
1214
|
+
},
|
|
1215
|
+
fixed: {
|
|
1216
|
+
type: "boolean",
|
|
1217
|
+
const: !0
|
|
1218
|
+
},
|
|
1219
|
+
hidePadding: {
|
|
1220
|
+
type: "boolean",
|
|
1221
|
+
const: !0
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
"f-section-grid": {
|
|
1228
|
+
description: "",
|
|
1229
|
+
type: "object",
|
|
1230
|
+
properties: {
|
|
1231
|
+
rules: {
|
|
1232
|
+
type: "object",
|
|
1233
|
+
properties: {
|
|
1234
|
+
canAccept: {
|
|
1235
|
+
type: "boolean",
|
|
1236
|
+
const: !1
|
|
1237
|
+
},
|
|
1238
|
+
fixed: {
|
|
1239
|
+
type: "boolean",
|
|
1240
|
+
const: !0
|
|
1241
|
+
},
|
|
1242
|
+
hidePadding: {
|
|
1243
|
+
type: "boolean",
|
|
1244
|
+
const: !0
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
rules: {
|
|
1253
|
+
type: "object",
|
|
1254
|
+
properties: {
|
|
1255
|
+
canAccept: {
|
|
1256
|
+
type: "boolean",
|
|
1257
|
+
const: !1
|
|
1258
|
+
},
|
|
1259
|
+
fixed: {
|
|
1260
|
+
type: "boolean",
|
|
1261
|
+
const: !0
|
|
1262
|
+
},
|
|
1263
|
+
hidePadding: {
|
|
1264
|
+
type: "boolean",
|
|
1265
|
+
const: !0
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1196
1270
|
}
|
|
1197
1271
|
}
|
|
1198
1272
|
}
|
|
@@ -1338,275 +1412,262 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
|
|
|
1338
1412
|
description: "",
|
|
1339
1413
|
type: "object"
|
|
1340
1414
|
}
|
|
1341
|
-
}, Ue =
|
|
1415
|
+
}, Ue = {
|
|
1342
1416
|
$schema: Ge,
|
|
1343
1417
|
$id: qe,
|
|
1344
1418
|
title: _e,
|
|
1345
1419
|
description: He,
|
|
1346
1420
|
type: Je,
|
|
1347
|
-
properties: Qe
|
|
1348
|
-
required: Ue
|
|
1421
|
+
properties: Qe
|
|
1349
1422
|
}, X = /* @__PURE__ */ new Map();
|
|
1350
|
-
function
|
|
1351
|
-
function n(
|
|
1352
|
-
var
|
|
1423
|
+
function Xe() {
|
|
1424
|
+
function n(l, c, u, b) {
|
|
1425
|
+
var O;
|
|
1353
1426
|
if (typeof u == "number")
|
|
1354
|
-
return ((
|
|
1427
|
+
return ((O = b[l]) == null ? void 0 : O.length) === u;
|
|
1355
1428
|
if (typeof u == "object") {
|
|
1356
|
-
const
|
|
1357
|
-
if (
|
|
1358
|
-
return Number(
|
|
1359
|
-
if (
|
|
1360
|
-
return Number(
|
|
1361
|
-
if (
|
|
1362
|
-
return Number(
|
|
1429
|
+
const P = Object.keys(u)[0], S = u[P];
|
|
1430
|
+
if (P === "not")
|
|
1431
|
+
return Number(b[l].length) !== Number(S);
|
|
1432
|
+
if (P === "moreThan")
|
|
1433
|
+
return Number(b[l].length) >= Number(S);
|
|
1434
|
+
if (P === "lessThan")
|
|
1435
|
+
return Number(b[l].length) <= Number(S);
|
|
1363
1436
|
}
|
|
1364
1437
|
return !1;
|
|
1365
1438
|
}
|
|
1366
|
-
function e(
|
|
1367
|
-
return typeof u == "boolean" ?
|
|
1439
|
+
function e(l, c, u, b) {
|
|
1440
|
+
return typeof u == "boolean" ? b.childrenClassList.includes(c) === !!u : !1;
|
|
1368
1441
|
}
|
|
1369
|
-
function t(
|
|
1370
|
-
return typeof u == "boolean" ?
|
|
1442
|
+
function t(l, c, u, b) {
|
|
1443
|
+
return typeof u == "boolean" ? b.parentClassList.includes(c) === !!u : !1;
|
|
1371
1444
|
}
|
|
1372
|
-
function l
|
|
1373
|
-
return typeof u == "boolean" ?
|
|
1445
|
+
function i(l, c, u, b) {
|
|
1446
|
+
return typeof u == "boolean" ? b.parentClassList.includes(c) === !!u : !1;
|
|
1374
1447
|
}
|
|
1375
|
-
const
|
|
1448
|
+
const a = /* @__PURE__ */ new Map([
|
|
1376
1449
|
["length", n],
|
|
1377
1450
|
["hasChildren", e],
|
|
1378
|
-
["hasSibling",
|
|
1451
|
+
["hasSibling", i],
|
|
1379
1452
|
["hasParent", t]
|
|
1380
1453
|
]);
|
|
1381
|
-
function
|
|
1382
|
-
const u =
|
|
1383
|
-
return typeof
|
|
1384
|
-
if (
|
|
1385
|
-
return { target: u, operator: "length", param: null, value:
|
|
1386
|
-
const
|
|
1387
|
-
return { target: u, operator:
|
|
1454
|
+
function d(l, c) {
|
|
1455
|
+
const u = l;
|
|
1456
|
+
return typeof c == "number" ? [{ target: u, operator: "length", param: null, value: Number(c) }] : typeof c == "object" ? Object.keys(c).map((b) => {
|
|
1457
|
+
if (b === "length")
|
|
1458
|
+
return { target: u, operator: "length", param: null, value: c[b] };
|
|
1459
|
+
const O = b, P = c[b];
|
|
1460
|
+
return { target: u, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: O, value: P };
|
|
1388
1461
|
}) : [];
|
|
1389
1462
|
}
|
|
1390
|
-
function
|
|
1391
|
-
if (
|
|
1392
|
-
const u =
|
|
1393
|
-
return u && u(
|
|
1463
|
+
function o(l, c) {
|
|
1464
|
+
if (a.has(l.operator)) {
|
|
1465
|
+
const u = a.get(l.operator);
|
|
1466
|
+
return u && u(l.target, l.param, l.value, c) || !1;
|
|
1394
1467
|
}
|
|
1395
1468
|
return !1;
|
|
1396
1469
|
}
|
|
1397
|
-
function s(
|
|
1398
|
-
return Object.keys(
|
|
1399
|
-
const
|
|
1400
|
-
return
|
|
1401
|
-
}, []).reduce((
|
|
1470
|
+
function s(l, c) {
|
|
1471
|
+
return Object.keys(l).reduce((P, S) => {
|
|
1472
|
+
const M = d(S, l[S]);
|
|
1473
|
+
return P.push(...M), P;
|
|
1474
|
+
}, []).reduce((P, S) => P && o(S, c), !0);
|
|
1402
1475
|
}
|
|
1403
|
-
function
|
|
1404
|
-
const u = Object.keys(
|
|
1405
|
-
return
|
|
1476
|
+
function r(l, c) {
|
|
1477
|
+
const u = Object.keys(l), b = u.includes("allOf"), O = u.includes("anyOf"), P = b || O, j = (P ? l[P ? b ? "allOf" : "anyOf" : "allOf"] : [l]).map((y) => s(y, c));
|
|
1478
|
+
return b ? !j.includes(!1) : j.includes(!0);
|
|
1406
1479
|
}
|
|
1407
|
-
function f(
|
|
1408
|
-
const u =
|
|
1409
|
-
return u ? typeof u == "boolean" ? u : typeof u == "object" ?
|
|
1480
|
+
function f(l, c) {
|
|
1481
|
+
const u = l.const;
|
|
1482
|
+
return u ? typeof u == "boolean" ? u : typeof u == "object" ? r(u, c) : !1 : !1;
|
|
1410
1483
|
}
|
|
1411
|
-
function
|
|
1412
|
-
return (
|
|
1484
|
+
function g(l) {
|
|
1485
|
+
return (c) => {
|
|
1413
1486
|
const u = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1414
|
-
return
|
|
1415
|
-
const
|
|
1416
|
-
return
|
|
1487
|
+
return l && l.properties && Object.keys(l.properties).reduce((b, O) => {
|
|
1488
|
+
const P = l.properties[O];
|
|
1489
|
+
return b[O] = f(P, c), b;
|
|
1417
1490
|
}, u), u;
|
|
1418
1491
|
};
|
|
1419
1492
|
}
|
|
1420
|
-
function
|
|
1421
|
-
if (
|
|
1422
|
-
const { rules:
|
|
1423
|
-
u.set(
|
|
1424
|
-
(
|
|
1493
|
+
function v(l, c, u) {
|
|
1494
|
+
if (c.type === "object" && c.properties) {
|
|
1495
|
+
const { rules: b, contents: O } = c.properties;
|
|
1496
|
+
u.set(l, g(b)), O && Object.keys(O.properties).forEach(
|
|
1497
|
+
(P) => v(P, O.properties[P], u)
|
|
1425
1498
|
);
|
|
1426
1499
|
}
|
|
1427
1500
|
}
|
|
1428
1501
|
function m() {
|
|
1429
|
-
const { properties:
|
|
1430
|
-
Object.keys(
|
|
1431
|
-
|
|
1502
|
+
const { properties: l } = Ue;
|
|
1503
|
+
Object.keys(l).forEach((c) => {
|
|
1504
|
+
v(c, l[c], X);
|
|
1432
1505
|
});
|
|
1433
1506
|
}
|
|
1434
|
-
function
|
|
1507
|
+
function C(l, c) {
|
|
1435
1508
|
const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1436
|
-
return X.has(
|
|
1509
|
+
return X.has(l) ? X.get(l)(c) : u;
|
|
1437
1510
|
}
|
|
1438
|
-
return m(), { getRuleValue:
|
|
1511
|
+
return m(), { getRuleValue: C };
|
|
1439
1512
|
}
|
|
1440
|
-
function
|
|
1441
|
-
var
|
|
1442
|
-
const t = n.schema,
|
|
1443
|
-
let s = !0,
|
|
1444
|
-
function
|
|
1445
|
-
return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ?
|
|
1446
|
-
}
|
|
1447
|
-
function m(
|
|
1448
|
-
return !(!We().basalDragulaRuleForContainer(
|
|
1449
|
-
}
|
|
1450
|
-
function
|
|
1451
|
-
|
|
1452
|
-
const
|
|
1513
|
+
function Ye(n, e) {
|
|
1514
|
+
var k;
|
|
1515
|
+
const t = n.schema, i = (k = n.parent) == null ? void 0 : k.schema, a = Xe(), d = N(!1), o = N(!1);
|
|
1516
|
+
let s = !0, r = !1, f, g = !1;
|
|
1517
|
+
function v(y) {
|
|
1518
|
+
return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ? y.sourceType === "control" && y.controlCategory === "input" || y.sourceType === "move" && y.controlType === "form-group" : !0;
|
|
1519
|
+
}
|
|
1520
|
+
function m(y) {
|
|
1521
|
+
return !(!We().basalDragulaRuleForContainer(y) || !s || !v(y));
|
|
1522
|
+
}
|
|
1523
|
+
function C() {
|
|
1524
|
+
d.value = !1, o.value = !1;
|
|
1525
|
+
const y = t, h = y.appearance && y.appearance.class || "", A = h.split(" "), T = y.contents || [], D = T.length ? T[0] : null, x = D && D.appearance ? D.appearance.class : "", L = x ? x.split(" ") : [], $ = T.length ? T.reduce((W, G) => {
|
|
1453
1526
|
const I = G && G.appearance ? G.appearance.class : "", ie = I ? I.split(" ") : [];
|
|
1454
1527
|
return W.push(...ie), W;
|
|
1455
|
-
}, []) : [], F =
|
|
1528
|
+
}, []) : [], F = i, V = F && F.appearance && F.appearance.class || "", z = V ? V.split(" ") : [];
|
|
1456
1529
|
f = {
|
|
1457
|
-
componentClass:
|
|
1458
|
-
componentClassList:
|
|
1459
|
-
childContents:
|
|
1530
|
+
componentClass: h,
|
|
1531
|
+
componentClassList: A,
|
|
1532
|
+
childContents: T,
|
|
1460
1533
|
firstChildContent: D,
|
|
1461
1534
|
firstChildClass: x,
|
|
1462
1535
|
firstChildClassList: L,
|
|
1463
1536
|
parent: F,
|
|
1464
1537
|
parentClass: V,
|
|
1465
1538
|
parentClassList: z,
|
|
1466
|
-
children:
|
|
1539
|
+
children: T,
|
|
1467
1540
|
childrenClassList: $
|
|
1468
1541
|
};
|
|
1469
|
-
const { canAccept: E, fixed: Q, hidePadding: U } =
|
|
1470
|
-
return s = E,
|
|
1542
|
+
const { canAccept: E, fixed: Q, hidePadding: U } = a.getRuleValue(A[0], f);
|
|
1543
|
+
return s = E, r = U, g = Q, !0;
|
|
1471
1544
|
}
|
|
1472
|
-
function
|
|
1545
|
+
function l(y) {
|
|
1473
1546
|
ue();
|
|
1474
1547
|
}
|
|
1475
|
-
function
|
|
1548
|
+
function c() {
|
|
1476
1549
|
return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1477
1550
|
}
|
|
1478
|
-
function u(
|
|
1479
|
-
const
|
|
1480
|
-
if ((
|
|
1481
|
-
const { label: x } =
|
|
1482
|
-
return L.editor =
|
|
1551
|
+
function u(y, h) {
|
|
1552
|
+
const A = t;
|
|
1553
|
+
if ((A.appearance && A.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1554
|
+
const { label: x } = y, L = q("form-group");
|
|
1555
|
+
return L.editor = h, L.label = x, b(L), delete L.editor.id, delete L.editor.binding, delete L.editor.appearance, delete L.editor.visible, L;
|
|
1483
1556
|
}
|
|
1484
|
-
return
|
|
1557
|
+
return h;
|
|
1485
1558
|
}
|
|
1486
|
-
function y
|
|
1487
|
-
const
|
|
1488
|
-
if (
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1559
|
+
function b(y) {
|
|
1560
|
+
const h = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
|
|
1561
|
+
if (h && h.schema && h.schema.componentType) {
|
|
1562
|
+
const A = h.schema.formColumns, T = O(A);
|
|
1563
|
+
y.appearance || (y.appearance = {}), y.appearance.class = T;
|
|
1491
1564
|
}
|
|
1492
1565
|
}
|
|
1493
|
-
function
|
|
1494
|
-
let
|
|
1495
|
-
switch (
|
|
1496
|
-
case
|
|
1497
|
-
|
|
1498
|
-
break;
|
|
1499
|
-
}
|
|
1500
|
-
case "form-col-12": {
|
|
1501
|
-
v = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1502
|
-
break;
|
|
1503
|
-
}
|
|
1504
|
-
case "form-col-2": {
|
|
1505
|
-
v = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1566
|
+
function O(y) {
|
|
1567
|
+
let h = "";
|
|
1568
|
+
switch (y) {
|
|
1569
|
+
case 1: {
|
|
1570
|
+
h = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1506
1571
|
break;
|
|
1507
1572
|
}
|
|
1508
|
-
case
|
|
1509
|
-
|
|
1573
|
+
case 2: {
|
|
1574
|
+
h = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1510
1575
|
break;
|
|
1511
1576
|
}
|
|
1512
|
-
case
|
|
1513
|
-
|
|
1577
|
+
case 3: {
|
|
1578
|
+
h = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1514
1579
|
break;
|
|
1515
1580
|
}
|
|
1516
|
-
case
|
|
1517
|
-
|
|
1518
|
-
break;
|
|
1519
|
-
}
|
|
1520
|
-
case "frame": {
|
|
1521
|
-
v = "col-12";
|
|
1581
|
+
case 4: {
|
|
1582
|
+
h = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1522
1583
|
break;
|
|
1523
1584
|
}
|
|
1524
1585
|
}
|
|
1525
|
-
return
|
|
1586
|
+
return h;
|
|
1526
1587
|
}
|
|
1527
|
-
function
|
|
1528
|
-
const
|
|
1529
|
-
if ((
|
|
1530
|
-
const L = String(
|
|
1531
|
-
return $.editor =
|
|
1588
|
+
function P(y, h, A) {
|
|
1589
|
+
const T = t;
|
|
1590
|
+
if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1591
|
+
const L = String(y.innerText), $ = q("form-group");
|
|
1592
|
+
return $.editor = A, $.label = L, $;
|
|
1532
1593
|
}
|
|
1533
|
-
return
|
|
1594
|
+
return A;
|
|
1534
1595
|
}
|
|
1535
1596
|
function S() {
|
|
1536
|
-
return !
|
|
1597
|
+
return !g;
|
|
1537
1598
|
}
|
|
1538
|
-
function
|
|
1539
|
-
return !
|
|
1599
|
+
function M() {
|
|
1600
|
+
return !g;
|
|
1540
1601
|
}
|
|
1541
1602
|
function j() {
|
|
1542
|
-
return
|
|
1603
|
+
return r;
|
|
1543
1604
|
}
|
|
1544
1605
|
return {
|
|
1545
1606
|
canAccepts: m,
|
|
1546
|
-
checkCanDeleteComponent:
|
|
1607
|
+
checkCanDeleteComponent: M,
|
|
1547
1608
|
checkCanMoveComponent: S,
|
|
1548
|
-
getStyles:
|
|
1609
|
+
getStyles: c,
|
|
1549
1610
|
hideNestedPaddingInDesginerView: j,
|
|
1550
|
-
onAcceptNewChildElement:
|
|
1551
|
-
onAcceptMovedChildElement:
|
|
1552
|
-
resolveComponentContext:
|
|
1611
|
+
onAcceptNewChildElement: P,
|
|
1612
|
+
onAcceptMovedChildElement: l,
|
|
1613
|
+
resolveComponentContext: C,
|
|
1553
1614
|
onResolveNewComponentSchema: u,
|
|
1554
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1555
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1615
|
+
triggerBelongedComponentToMoveWhenMoved: d,
|
|
1616
|
+
triggerBelongedComponentToDeleteWhenDeleted: o
|
|
1556
1617
|
};
|
|
1557
1618
|
}
|
|
1558
|
-
const
|
|
1619
|
+
const Ze = /* @__PURE__ */ R({
|
|
1559
1620
|
name: "FPagination",
|
|
1560
1621
|
props: Z,
|
|
1561
1622
|
emits: ["pageIndexChanged", "pageSizeChanged"],
|
|
1562
1623
|
setup(n, e) {
|
|
1563
1624
|
var W;
|
|
1564
|
-
const t = N(!1),
|
|
1625
|
+
const t = N(!1), i = N(n.mode), a = N(""), d = N(!1), o = N(n.pageSize), s = N(n.currentPage), r = N(n.totalItems), f = N(), g = fe("design-item-context"), v = Ye(g.schema, (W = g.parent) == null ? void 0 : W.schema), m = ze(f, g, v);
|
|
1565
1626
|
de(() => {
|
|
1566
1627
|
f.value.componentInstance = m;
|
|
1567
1628
|
}), e.expose(m.value);
|
|
1568
1629
|
const {
|
|
1569
|
-
pages:
|
|
1570
|
-
updatePages:
|
|
1571
|
-
} = le(),
|
|
1572
|
-
renderFirstPage:
|
|
1573
|
-
renderPreviousPage:
|
|
1574
|
-
} = ce(s,
|
|
1630
|
+
pages: C,
|
|
1631
|
+
updatePages: l
|
|
1632
|
+
} = le(), c = w(() => s.value === 1), u = w(() => [20, 50, 100]), b = w(() => Math.ceil(r.value / o.value)), O = w(() => s.value === b.value), P = w(() => !0), S = w(() => s.value > 1), M = w(() => !(d.value && C.value.length <= 1)), j = w(() => !0), k = w(() => !0), y = w(() => !0), h = w(() => !0), {
|
|
1633
|
+
renderFirstPage: A,
|
|
1634
|
+
renderPreviousPage: T
|
|
1635
|
+
} = ce(s, c, S), {
|
|
1575
1636
|
renderLastPage: D,
|
|
1576
1637
|
renderNextPage: x
|
|
1577
|
-
} = oe(s,
|
|
1638
|
+
} = oe(s, O, b), {
|
|
1578
1639
|
renderPageInfo: L
|
|
1579
|
-
} = ae(
|
|
1640
|
+
} = ae(a, r), {
|
|
1580
1641
|
renderPageList: $
|
|
1581
|
-
} = se(s,
|
|
1642
|
+
} = se(s, o, u, r), {
|
|
1582
1643
|
renderPageNumbers: F
|
|
1583
|
-
} = re(s,
|
|
1644
|
+
} = re(s, C), {
|
|
1584
1645
|
renderGotoButton: V
|
|
1585
|
-
} = ne(s,
|
|
1586
|
-
|
|
1587
|
-
|
|
1646
|
+
} = ne(s, b);
|
|
1647
|
+
l(s.value, o.value, r.value, 7), B([s, o], () => {
|
|
1648
|
+
l(s.value, o.value, r.value, 7);
|
|
1588
1649
|
}), B(s, () => {
|
|
1589
1650
|
e.emit("pageIndexChanged", s.value);
|
|
1590
|
-
}), B(
|
|
1591
|
-
e.emit("pageSizeChanged",
|
|
1651
|
+
}), B(o, () => {
|
|
1652
|
+
e.emit("pageSizeChanged", o.value);
|
|
1592
1653
|
});
|
|
1593
1654
|
const z = w(() => ({
|
|
1594
1655
|
"ngx-pagination": !0,
|
|
1595
1656
|
pagination: !0,
|
|
1596
1657
|
responsive: t.value,
|
|
1597
|
-
"pager-viewmode-default":
|
|
1598
|
-
"pager-viewmode-simple":
|
|
1658
|
+
"pager-viewmode-default": i.value === "default",
|
|
1659
|
+
"pager-viewmode-simple": i.value === "simple"
|
|
1599
1660
|
})), E = w(() => ({
|
|
1600
1661
|
position: "relative",
|
|
1601
|
-
"justify-content":
|
|
1662
|
+
"justify-content": a.value === "center" ? "center" : "start"
|
|
1602
1663
|
}));
|
|
1603
1664
|
function Q() {
|
|
1604
|
-
return p(_, null, [j.value && L(),
|
|
1665
|
+
return p(_, null, [j.value && L(), k.value && $(), h.value && A(), h.value && T(), y.value && F(), h.value && x(), h.value && D(), P.value && V()]);
|
|
1605
1666
|
}
|
|
1606
1667
|
function U() {
|
|
1607
1668
|
return p(_, null, [p("li", {
|
|
1608
1669
|
class: "page-item d-flex flex-fill"
|
|
1609
|
-
}, null),
|
|
1670
|
+
}, null), h.value && A(), h.value && T(), V(), p("li", {
|
|
1610
1671
|
class: "page-item page-separator",
|
|
1611
1672
|
style: "margin-left: 10px"
|
|
1612
1673
|
}, [p("span", {
|
|
@@ -1616,28 +1677,28 @@ const Ie = /* @__PURE__ */ R({
|
|
|
1616
1677
|
style: "margin-left: 5px"
|
|
1617
1678
|
}, [p("span", {
|
|
1618
1679
|
style: "font-size: 16px; font-weight: 600;"
|
|
1619
|
-
}, [H(" "),
|
|
1680
|
+
}, [H(" "), b.value])]), h.value && x(), h.value && D()]);
|
|
1620
1681
|
}
|
|
1621
1682
|
return () => p("div", {
|
|
1622
1683
|
ref: f,
|
|
1623
1684
|
class: "pagination-container"
|
|
1624
|
-
}, [
|
|
1685
|
+
}, [M.value && p("ul", {
|
|
1625
1686
|
role: "navigation",
|
|
1626
1687
|
class: z.value,
|
|
1627
1688
|
style: E.value
|
|
1628
|
-
}, [
|
|
1689
|
+
}, [i.value === "default" ? Q() : U()])]);
|
|
1629
1690
|
}
|
|
1630
1691
|
});
|
|
1631
1692
|
J.register = (n, e, t) => {
|
|
1632
1693
|
n.pagination = J, e.pagination = te;
|
|
1633
1694
|
};
|
|
1634
1695
|
J.registerDesigner = (n, e, t) => {
|
|
1635
|
-
n.pagination =
|
|
1696
|
+
n.pagination = Ze, e.pagination = te;
|
|
1636
1697
|
};
|
|
1637
|
-
const
|
|
1698
|
+
const et = be(J);
|
|
1638
1699
|
export {
|
|
1639
1700
|
J as FPagination,
|
|
1640
|
-
|
|
1701
|
+
et as default,
|
|
1641
1702
|
Z as paginationProps,
|
|
1642
1703
|
te as propsResolver
|
|
1643
1704
|
};
|