@farris/ui-vue 1.2.7 → 1.2.8
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 +79 -79
- package/components/avatar/index.esm.js +393 -440
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +452 -498
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +31630 -31224
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { ref as N, watch as B, createVNode as
|
|
1
|
+
import { ref as N, watch as B, createVNode as p, computed as w, defineComponent as R, watchEffect as pe, Fragment as _, createTextVNode as H, nextTick as ue, inject as fe, onMounted as de } from "vue";
|
|
2
2
|
import { cloneDeep as ge } from "lodash-es";
|
|
3
|
-
import { withInstall as be } from "
|
|
4
|
-
const
|
|
3
|
+
import { withInstall as be } from "../common/index.esm.js";
|
|
4
|
+
const K = {}, ee = {};
|
|
5
5
|
function Y(n) {
|
|
6
|
-
const { properties: e, title: t } = n,
|
|
7
|
-
return
|
|
6
|
+
const { properties: e, title: t } = n, l = Object.keys(e).reduce((o, g) => (o[g] = e[g].type === "object" && e[g].properties ? Y(e[g]) : ge(e[g].default), o), {});
|
|
7
|
+
return l.id = `${t}-${Date.now()}`, l;
|
|
8
8
|
}
|
|
9
9
|
function q(n, e = {}) {
|
|
10
|
-
const t =
|
|
10
|
+
const t = K[n];
|
|
11
11
|
if (t) {
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
return
|
|
12
|
+
let l = Y(t);
|
|
13
|
+
const o = ee[n];
|
|
14
|
+
return l = o ? o({ getSchemaByType: q }, l, e) : l, l;
|
|
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((l, o) => (l[o] && typeof l[o] == "object" ? Object.assign(l[o], n[o]) : l[o] = n[o], l), t), t;
|
|
21
21
|
}
|
|
22
22
|
function me(n, e) {
|
|
23
|
-
return Object.keys(n).filter((
|
|
24
|
-
if (e.has(
|
|
25
|
-
const g = e.get(
|
|
23
|
+
return Object.keys(n).filter((l) => n[l] != null).reduce((l, o) => {
|
|
24
|
+
if (e.has(o)) {
|
|
25
|
+
const g = e.get(o);
|
|
26
26
|
if (typeof g == "string")
|
|
27
|
-
|
|
27
|
+
l[g] = n[o];
|
|
28
28
|
else {
|
|
29
|
-
const
|
|
30
|
-
Object.assign(
|
|
29
|
+
const a = g(o, n[o], n);
|
|
30
|
+
Object.assign(l, a);
|
|
31
31
|
}
|
|
32
32
|
} else
|
|
33
|
-
|
|
34
|
-
return
|
|
33
|
+
l[o] = n[o];
|
|
34
|
+
return l;
|
|
35
35
|
}, {});
|
|
36
36
|
}
|
|
37
37
|
function he(n, e, t = /* @__PURE__ */ new Map()) {
|
|
38
|
-
const
|
|
39
|
-
return me(
|
|
38
|
+
const l = ye(n, e);
|
|
39
|
+
return me(l, t);
|
|
40
40
|
}
|
|
41
41
|
function ve(n = {}) {
|
|
42
42
|
function e(f, b, h, m) {
|
|
@@ -56,12 +56,12 @@ function ve(n = {}) {
|
|
|
56
56
|
function t(f, b, h, m) {
|
|
57
57
|
return m[f] && m[f].propertyValue && String(m[f].propertyValue.value) === String(h);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const l = /* @__PURE__ */ new Map([
|
|
60
60
|
["length", e],
|
|
61
61
|
["getProperty", t]
|
|
62
62
|
]);
|
|
63
|
-
Object.keys(n).reduce((f, b) => (f.set(b, n[b]), f),
|
|
64
|
-
function
|
|
63
|
+
Object.keys(n).reduce((f, b) => (f.set(b, n[b]), f), l);
|
|
64
|
+
function o(f, b) {
|
|
65
65
|
const h = f;
|
|
66
66
|
return typeof b == "number" ? [{ target: h, operator: "length", param: null, value: Number(b) }] : typeof b == "boolean" ? [{ target: h, operator: "getProperty", param: f, value: !!b }] : typeof b == "object" ? Object.keys(b).map((m) => {
|
|
67
67
|
if (m === "length")
|
|
@@ -72,32 +72,32 @@ function ve(n = {}) {
|
|
|
72
72
|
}
|
|
73
73
|
function g(f) {
|
|
74
74
|
return Object.keys(f).reduce((h, m) => {
|
|
75
|
-
const P =
|
|
75
|
+
const P = o(m, f[m]);
|
|
76
76
|
return h.push(...P), h;
|
|
77
77
|
}, []);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
const h =
|
|
79
|
+
function a(f, b) {
|
|
80
|
+
if (l.has(f.operator)) {
|
|
81
|
+
const h = l.get(f.operator);
|
|
82
82
|
return h && h(f.target, f.param, f.value, b) || !1;
|
|
83
83
|
}
|
|
84
84
|
return !1;
|
|
85
85
|
}
|
|
86
86
|
function s(f, b) {
|
|
87
|
-
return g(f).reduce((P, c) => P &&
|
|
87
|
+
return g(f).reduce((P, c) => P && a(c, b), !0);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function i(f, b) {
|
|
90
90
|
const h = Object.keys(f), m = h.includes("allOf"), P = h.includes("anyOf"), c = m || P, y = (c ? f[c ? m ? "allOf" : "anyOf" : "allOf"] : [f]).map((C) => s(C, b));
|
|
91
91
|
return m ? !y.includes(!1) : y.includes(!0);
|
|
92
92
|
}
|
|
93
|
-
return { parseValueSchema:
|
|
93
|
+
return { parseValueSchema: i };
|
|
94
94
|
}
|
|
95
95
|
const je = {}, Ce = {};
|
|
96
96
|
ve();
|
|
97
|
-
function Pe(n, e, t = /* @__PURE__ */ new Map(),
|
|
98
|
-
return
|
|
99
|
-
const s = he(
|
|
100
|
-
return Object.assign(
|
|
97
|
+
function Pe(n, e, t = /* @__PURE__ */ new Map(), l = (a, s, i) => s, o = {}, g = (a) => a) {
|
|
98
|
+
return K[e.title] = e, ee[e.title] = l, je[e.title] = o, Ce[e.title] = g, (a = {}) => {
|
|
99
|
+
const s = he(a, e, t), i = Object.keys(n).reduce((f, b) => (f[b] = n[b].default, f), {});
|
|
100
|
+
return Object.assign(i, s);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function we(n, e) {
|
|
@@ -334,87 +334,87 @@ const Z = {
|
|
|
334
334
|
pageList: { type: Array, default: [20, 50, 100] }
|
|
335
335
|
}, te = Pe(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("跳转至"), l = N(""), o = N(n.value);
|
|
338
|
+
B(o, (i, f) => {
|
|
339
|
+
i >= 1 && i <= e.value ? n.value = i : o.value = f;
|
|
340
|
+
}), B(n, (i) => {
|
|
341
|
+
o.value !== i && (o.value = i);
|
|
342
342
|
});
|
|
343
|
-
function g(
|
|
344
|
-
|
|
343
|
+
function g(i) {
|
|
344
|
+
o.value = i.target.valueAsNumber;
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
346
|
+
function a(i) {
|
|
347
|
+
i.key === "Enter" && (o.value = i.target.valueAsNumber);
|
|
348
348
|
}
|
|
349
349
|
function s() {
|
|
350
|
-
return
|
|
350
|
+
return p("li", {
|
|
351
351
|
class: "page-goto-input d-flex flex-row",
|
|
352
352
|
style: "padding-left: 10px; white-space: nowrap;"
|
|
353
|
-
}, [
|
|
353
|
+
}, [p("span", {
|
|
354
354
|
class: "pg-message-text"
|
|
355
|
-
}, [t.value]),
|
|
355
|
+
}, [t.value]), p("input", {
|
|
356
356
|
type: "number",
|
|
357
357
|
class: "form-control farris-gotopagenumber",
|
|
358
|
-
value:
|
|
358
|
+
value: o.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: (i) => g(i),
|
|
363
|
+
onKeyup: (i) => a(i)
|
|
364
|
+
}, null), l.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 l = w(() => ({
|
|
372
372
|
"page-item": !0,
|
|
373
373
|
disabled: e.value
|
|
374
374
|
}));
|
|
375
|
-
function
|
|
375
|
+
function o(i) {
|
|
376
376
|
n.value = n.value < t.value ? n.value + 1 : t.value;
|
|
377
377
|
}
|
|
378
|
-
function g(
|
|
378
|
+
function g(i) {
|
|
379
379
|
n.value = t.value;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
return
|
|
383
|
-
class:
|
|
384
|
-
}, [!e.value &&
|
|
381
|
+
function a() {
|
|
382
|
+
return p("li", {
|
|
383
|
+
class: l.value
|
|
384
|
+
}, [!e.value && p("a", {
|
|
385
385
|
class: "page-link",
|
|
386
386
|
tabindex: "0",
|
|
387
|
-
onClick: (
|
|
388
|
-
}, [
|
|
387
|
+
onClick: (i) => o()
|
|
388
|
+
}, [p("span", {
|
|
389
389
|
class: "f-icon f-page-next"
|
|
390
|
-
}, null)]), e.value &&
|
|
390
|
+
}, null)]), e.value && p("span", {
|
|
391
391
|
class: "page-link"
|
|
392
|
-
}, [
|
|
392
|
+
}, [p("span", {
|
|
393
393
|
class: "f-icon f-page-next"
|
|
394
394
|
}, null)])]);
|
|
395
395
|
}
|
|
396
396
|
function s() {
|
|
397
|
-
return
|
|
398
|
-
class:
|
|
399
|
-
}, [!e.value &&
|
|
397
|
+
return p("li", {
|
|
398
|
+
class: l.value
|
|
399
|
+
}, [!e.value && p("a", {
|
|
400
400
|
class: "page-link",
|
|
401
401
|
tabindex: "0",
|
|
402
|
-
onClick: (
|
|
403
|
-
}, [
|
|
402
|
+
onClick: (i) => g()
|
|
403
|
+
}, [p("span", {
|
|
404
404
|
class: "f-icon f-page-last"
|
|
405
|
-
}, null)]), e.value &&
|
|
405
|
+
}, null)]), e.value && p("span", {
|
|
406
406
|
class: "page-link"
|
|
407
|
-
}, [
|
|
407
|
+
}, [p("span", {
|
|
408
408
|
class: "f-icon f-page-last"
|
|
409
409
|
}, null)])]);
|
|
410
410
|
}
|
|
411
411
|
return {
|
|
412
412
|
renderLastPage: s,
|
|
413
|
-
renderNextPage:
|
|
413
|
+
renderNextPage: a
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
416
|
function ae(n, e) {
|
|
417
|
-
const t = N("共"),
|
|
417
|
+
const t = N("共"), l = N("条"), o = w(() => ({
|
|
418
418
|
"pagination-message": !0,
|
|
419
419
|
"text-truncate": !0,
|
|
420
420
|
"d-flex": !0,
|
|
@@ -422,260 +422,260 @@ function ae(n, e) {
|
|
|
422
422
|
"flex-fill": n.value === "right"
|
|
423
423
|
}));
|
|
424
424
|
function g() {
|
|
425
|
-
return
|
|
426
|
-
class:
|
|
427
|
-
}, [
|
|
425
|
+
return p("li", {
|
|
426
|
+
class: o.value
|
|
427
|
+
}, [p("div", {
|
|
428
428
|
class: "text-truncate",
|
|
429
429
|
style: "line-height: 26px"
|
|
430
|
-
}, [
|
|
430
|
+
}, [p("span", {
|
|
431
431
|
class: "pg-message-text"
|
|
432
|
-
}, [t.value]),
|
|
432
|
+
}, [t.value]), p("b", {
|
|
433
433
|
class: "pg-message-total"
|
|
434
|
-
}, [e.value]),
|
|
434
|
+
}, [e.value]), p("span", {
|
|
435
435
|
class: "pg-message-text"
|
|
436
|
-
}, [
|
|
436
|
+
}, [l.value])])]);
|
|
437
437
|
}
|
|
438
438
|
return {
|
|
439
439
|
renderPageInfo: g
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function se(n, e, t,
|
|
443
|
-
const
|
|
442
|
+
function se(n, e, t, l) {
|
|
443
|
+
const o = N(!1), g = N("显示"), a = 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": l.value === 0,
|
|
448
|
+
show: o.value
|
|
449
|
+
})), i = w(() => ({
|
|
450
450
|
"dropdown-menu": !0,
|
|
451
|
-
show:
|
|
451
|
+
show: o.value
|
|
452
452
|
})), f = (r) => ({
|
|
453
453
|
"w-100": !0,
|
|
454
454
|
"dropdown-item": !0,
|
|
455
455
|
active: e.value === r
|
|
456
456
|
});
|
|
457
457
|
function b(r) {
|
|
458
|
-
|
|
458
|
+
o.value = !0;
|
|
459
459
|
}
|
|
460
460
|
function h(r) {
|
|
461
|
-
|
|
461
|
+
o.value = !1;
|
|
462
462
|
}
|
|
463
|
-
function m(r,
|
|
464
|
-
const C = r *
|
|
463
|
+
function m(r, u, y) {
|
|
464
|
+
const C = r * u - u + 1;
|
|
465
465
|
return Math.ceil(C / y);
|
|
466
466
|
}
|
|
467
|
-
function P(r,
|
|
468
|
-
n.value = m(n.value, e.value,
|
|
467
|
+
function P(r, u) {
|
|
468
|
+
n.value = m(n.value, e.value, u), e.value = u, o.value = !1;
|
|
469
469
|
}
|
|
470
470
|
function c() {
|
|
471
|
-
return
|
|
471
|
+
return p("li", {
|
|
472
472
|
class: "pagination-pagelist"
|
|
473
|
-
}, [
|
|
473
|
+
}, [p("div", {
|
|
474
474
|
class: s.value,
|
|
475
475
|
onMouseenter: (r) => b(),
|
|
476
476
|
onMouseleave: (r) => h()
|
|
477
|
-
}, [
|
|
477
|
+
}, [p("div", {
|
|
478
478
|
class: "pg-pagelist-info"
|
|
479
|
-
}, [
|
|
479
|
+
}, [p("span", {
|
|
480
480
|
class: "pagelist-text"
|
|
481
|
-
}, [g.value]),
|
|
481
|
+
}, [g.value]), p("b", {
|
|
482
482
|
class: "cur-pagesize"
|
|
483
|
-
}, [e.value]),
|
|
483
|
+
}, [e.value]), p("span", {
|
|
484
484
|
class: "pagelist-text"
|
|
485
|
-
}, [
|
|
485
|
+
}, [a.value]), p("i", {
|
|
486
486
|
class: "f-icon f-icon-dropdown"
|
|
487
|
-
}, null)]),
|
|
488
|
-
class:
|
|
487
|
+
}, null)]), p("div", {
|
|
488
|
+
class: i.value,
|
|
489
489
|
style: "margin-bottom: -1px;"
|
|
490
|
-
}, [t.value.map((r) =>
|
|
490
|
+
}, [t.value.map((r) => p("li", {
|
|
491
491
|
class: f(r),
|
|
492
|
-
onClick: (
|
|
493
|
-
}, [
|
|
492
|
+
onClick: (u) => P(u, r)
|
|
493
|
+
}, [p("span", null, [r])]))])])]);
|
|
494
494
|
}
|
|
495
495
|
return {
|
|
496
496
|
renderPageList: c
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
499
|
function re(n, e) {
|
|
500
|
-
const t = (
|
|
500
|
+
const t = (a) => ({
|
|
501
501
|
"page-item": !0,
|
|
502
|
-
current: n.value ===
|
|
503
|
-
ellipsis:
|
|
504
|
-
}),
|
|
502
|
+
current: n.value === a.value,
|
|
503
|
+
ellipsis: a.label === "..."
|
|
504
|
+
}), l = (a) => ({
|
|
505
505
|
"f-icon": !0,
|
|
506
|
-
"f-icon-arrow-seek-left":
|
|
507
|
-
"f-icon-arrow-seek-right":
|
|
506
|
+
"f-icon-arrow-seek-left": a.value < n.value,
|
|
507
|
+
"f-icon-arrow-seek-right": a.value > n.value
|
|
508
508
|
});
|
|
509
|
-
function a
|
|
509
|
+
function o(a, s) {
|
|
510
510
|
n.value = s;
|
|
511
511
|
}
|
|
512
512
|
function g() {
|
|
513
|
-
return e.value.map((
|
|
514
|
-
class: t(
|
|
515
|
-
}, [n.value !==
|
|
513
|
+
return e.value.map((a) => p("li", {
|
|
514
|
+
class: t(a)
|
|
515
|
+
}, [n.value !== a.value && p("a", {
|
|
516
516
|
class: "page-link",
|
|
517
517
|
tabindex: "0",
|
|
518
|
-
onClick: (s) =>
|
|
519
|
-
}, [
|
|
518
|
+
onClick: (s) => o(s, a.value)
|
|
519
|
+
}, [p("span", {
|
|
520
520
|
class: "page-link-label"
|
|
521
|
-
}, [
|
|
522
|
-
class:
|
|
523
|
-
}, null)]), n.value ===
|
|
521
|
+
}, [a.label]), a.label === "..." && p("i", {
|
|
522
|
+
class: l(a)
|
|
523
|
+
}, null)]), n.value === a.value && p("span", {
|
|
524
524
|
class: "page-link"
|
|
525
|
-
}, [
|
|
525
|
+
}, [a.label])]));
|
|
526
526
|
}
|
|
527
527
|
return {
|
|
528
528
|
renderPageNumbers: g
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
531
|
function ce(n, e, t) {
|
|
532
|
-
const
|
|
532
|
+
const l = w(() => ({
|
|
533
533
|
"page-item": !0,
|
|
534
534
|
disabled: e.value
|
|
535
535
|
}));
|
|
536
|
-
function
|
|
536
|
+
function o(i) {
|
|
537
537
|
n.value = 1;
|
|
538
538
|
}
|
|
539
|
-
function g(
|
|
539
|
+
function g(i) {
|
|
540
540
|
n.value = n.value > 2 ? n.value - 1 : 1;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
return
|
|
544
|
-
class:
|
|
545
|
-
}, [t.value &&
|
|
542
|
+
function a() {
|
|
543
|
+
return p("li", {
|
|
544
|
+
class: l.value
|
|
545
|
+
}, [t.value && p("a", {
|
|
546
546
|
tabindex: "0",
|
|
547
547
|
class: "page-link",
|
|
548
|
-
onClick: (
|
|
549
|
-
}, [
|
|
548
|
+
onClick: (i) => o()
|
|
549
|
+
}, [p("span", {
|
|
550
550
|
class: "f-icon f-page-first"
|
|
551
|
-
}, null)]), e.value &&
|
|
551
|
+
}, null)]), e.value && p("span", {
|
|
552
552
|
class: "page-link"
|
|
553
|
-
}, [
|
|
553
|
+
}, [p("span", {
|
|
554
554
|
class: "f-icon f-page-first"
|
|
555
555
|
}, null)])]);
|
|
556
556
|
}
|
|
557
557
|
function s() {
|
|
558
|
-
return
|
|
559
|
-
class:
|
|
560
|
-
}, [t.value &&
|
|
558
|
+
return p("li", {
|
|
559
|
+
class: l.value
|
|
560
|
+
}, [t.value && p("a", {
|
|
561
561
|
tabindex: "0",
|
|
562
562
|
class: "page-link",
|
|
563
|
-
onClick: (
|
|
564
|
-
}, [
|
|
563
|
+
onClick: (i) => g()
|
|
564
|
+
}, [p("span", {
|
|
565
565
|
class: "f-icon f-page-pre"
|
|
566
|
-
}, null)]), e.value &&
|
|
566
|
+
}, null)]), e.value && p("span", {
|
|
567
567
|
class: "page-link"
|
|
568
|
-
}, [
|
|
568
|
+
}, [p("span", {
|
|
569
569
|
class: "f-icon f-page-pre"
|
|
570
570
|
}, null)])]);
|
|
571
571
|
}
|
|
572
572
|
return {
|
|
573
|
-
renderFirstPage:
|
|
573
|
+
renderFirstPage: a,
|
|
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
|
|
579
|
+
function t(o, g, a, s) {
|
|
580
|
+
const i = Math.ceil(a / 2);
|
|
581
|
+
return o === a ? s : o === 1 ? o : a < s ? s - i < g ? s - a + o : i < g ? g - i + o : o : o;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
const
|
|
583
|
+
function l(o, g, a, s) {
|
|
584
|
+
const i = [], f = Math.ceil(a / g), b = Math.ceil(s / 2), h = o <= b, m = f - b < o, P = !h && !m, c = s < f;
|
|
585
585
|
let r = 1;
|
|
586
586
|
for (; r <= f && r <= s; ) {
|
|
587
|
-
const
|
|
588
|
-
|
|
587
|
+
const u = t(r, o, s, f), y = r === 2 && (P || m), T = r === s - 1 && (P || h), C = c && (y || T) ? "..." : "" + u;
|
|
588
|
+
i.push({ label: C, value: u }), r++;
|
|
589
589
|
}
|
|
590
|
-
e.value =
|
|
590
|
+
e.value = i;
|
|
591
591
|
}
|
|
592
|
-
return { pages: e, updatePages:
|
|
592
|
+
return { pages: e, updatePages: l };
|
|
593
593
|
}
|
|
594
|
-
const J = /* @__PURE__ */
|
|
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), l = N(n.mode), o = N(""), g = N(!1), a = N(n.pageSize), s = N(n.currentPage), i = N(n.totalItems), {
|
|
600
600
|
pages: f,
|
|
601
601
|
updatePages: b
|
|
602
|
-
} = le(), h = w(() => s.value === 1), m = w(() => n.pageList), P = w(() => Math.ceil(
|
|
602
|
+
} = le(), h = w(() => s.value === 1), m = w(() => n.pageList), P = w(() => Math.ceil(i.value / a.value)), c = w(() => s.value === P.value), r = w(() => n.showGoButton), u = w(() => s.value > 1), y = w(() => !(g.value && f.value.length <= 1)), T = w(() => !0), C = w(() => n.showPageList), S = w(() => n.showPageNumbers), A = w(() => !0), {
|
|
603
603
|
renderFirstPage: j,
|
|
604
604
|
renderPreviousPage: O
|
|
605
|
-
} = ce(s, h,
|
|
605
|
+
} = ce(s, h, u), {
|
|
606
606
|
renderLastPage: d,
|
|
607
607
|
renderNextPage: v
|
|
608
608
|
} = oe(s, c, P), {
|
|
609
609
|
renderPageInfo: M
|
|
610
|
-
} = ae(
|
|
610
|
+
} = ae(o, i), {
|
|
611
611
|
renderPageList: k
|
|
612
|
-
} = se(s,
|
|
612
|
+
} = se(s, a, m, i), {
|
|
613
613
|
renderPageNumbers: D
|
|
614
614
|
} = re(s, f), {
|
|
615
615
|
renderGotoButton: x
|
|
616
616
|
} = ne(s, P);
|
|
617
|
-
b(s.value,
|
|
618
|
-
|
|
619
|
-
}), B([s,
|
|
620
|
-
b(s.value,
|
|
617
|
+
b(s.value, a.value, i.value, 7), B(() => n.totalItems, (E) => {
|
|
618
|
+
i.value = E;
|
|
619
|
+
}), B([s, a, i], () => {
|
|
620
|
+
b(s.value, a.value, i.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(a, () => {
|
|
624
|
+
e.emit("update:pageSize", a.value), e.emit("pageSizeChanged", a.value);
|
|
625
625
|
}), B(() => n.totalItems, (E) => {
|
|
626
|
-
|
|
626
|
+
i.value = E, b(s.value, a.value, i.value, 7);
|
|
627
627
|
}), pe(() => {
|
|
628
|
-
const E = m.value.includes(
|
|
629
|
-
|
|
628
|
+
const E = m.value.includes(a.value);
|
|
629
|
+
a.value = E ? a.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": l.value === "default",
|
|
636
|
+
"pager-viewmode-simple": l.value === "simple"
|
|
637
637
|
})), F = w(() => ({
|
|
638
638
|
position: "relative",
|
|
639
|
-
"justify-content":
|
|
639
|
+
"justify-content": o.value === "center" ? "center" : "start"
|
|
640
640
|
}));
|
|
641
641
|
function V() {
|
|
642
|
-
return
|
|
642
|
+
return p(_, null, [T.value && M(), C.value && k(), A.value && j(), A.value && O(), S.value && D(), A.value && v(), A.value && d(), r.value && x()]);
|
|
643
643
|
}
|
|
644
644
|
function z() {
|
|
645
|
-
return
|
|
645
|
+
return p(_, null, [p("li", {
|
|
646
646
|
class: "page-item d-flex flex-fill"
|
|
647
|
-
}, null), A.value && j(), A.value && O(), x(),
|
|
647
|
+
}, null), A.value && j(), A.value && O(), x(), p("li", {
|
|
648
648
|
class: "page-item page-separator",
|
|
649
649
|
style: "margin-left: 10px"
|
|
650
|
-
}, [
|
|
650
|
+
}, [p("span", {
|
|
651
651
|
style: "font-size: 15px; font-weight: 200;"
|
|
652
|
-
}, [H(" /")])]),
|
|
652
|
+
}, [H(" /")])]), p("li", {
|
|
653
653
|
class: "page-item page-total",
|
|
654
654
|
style: "margin-left: 5px"
|
|
655
|
-
}, [
|
|
655
|
+
}, [p("span", {
|
|
656
656
|
style: "font-size: 16px; font-weight: 600;"
|
|
657
657
|
}, [H(" "), P.value])]), A.value && v(), A.value && d()]);
|
|
658
658
|
}
|
|
659
|
-
return () =>
|
|
659
|
+
return () => p("div", {
|
|
660
660
|
class: "pagination-container"
|
|
661
|
-
}, [y.value &&
|
|
661
|
+
}, [y.value && p("ul", {
|
|
662
662
|
role: "navigation",
|
|
663
663
|
class: $.value,
|
|
664
664
|
style: F.value
|
|
665
|
-
}, [
|
|
665
|
+
}, [l.value === "default" ? V() : z()])]);
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
668
|
function ze(n, e, t) {
|
|
669
669
|
var A;
|
|
670
|
-
function
|
|
670
|
+
function l() {
|
|
671
671
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
672
672
|
}
|
|
673
|
-
|
|
674
|
-
const
|
|
673
|
+
l();
|
|
674
|
+
const o = t && t.getStyles && t.getStyles() || "", g = t && t.getDesignerClass && t.getDesignerClass() || "", a = 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 i() {
|
|
679
679
|
return !1;
|
|
680
680
|
}
|
|
681
681
|
function f() {
|
|
@@ -704,7 +704,7 @@ function ze(n, e, t) {
|
|
|
704
704
|
}
|
|
705
705
|
function r() {
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function u(j, O) {
|
|
708
708
|
O && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(O);
|
|
709
709
|
}
|
|
710
710
|
function y(j) {
|
|
@@ -716,7 +716,7 @@ function ze(n, e, t) {
|
|
|
716
716
|
}
|
|
717
717
|
function T(j, O) {
|
|
718
718
|
const d = String(j.getAttribute("data-controltype")), v = j.getAttribute("data-feature"), M = v ? JSON.parse(v) : {};
|
|
719
|
-
M.parentComponentInstance =
|
|
719
|
+
M.parentComponentInstance = a.value;
|
|
720
720
|
let k = q(d, M);
|
|
721
721
|
t && t.onAcceptNewChildElement && (k = t.onAcceptNewChildElement(j, O, k));
|
|
722
722
|
const D = d.toLowerCase().replace("-", "_");
|
|
@@ -728,16 +728,16 @@ function ze(n, e, t) {
|
|
|
728
728
|
if (t && t.getPropsConfig)
|
|
729
729
|
return t.getPropsConfig(...j);
|
|
730
730
|
}
|
|
731
|
-
return
|
|
731
|
+
return a.value = {
|
|
732
732
|
canMove: s(),
|
|
733
|
-
canSelectParent:
|
|
733
|
+
canSelectParent: i(),
|
|
734
734
|
canDelete: f(),
|
|
735
735
|
canNested: !b(),
|
|
736
736
|
contents: e == null ? void 0 : e.schema.contents,
|
|
737
737
|
elementRef: n,
|
|
738
738
|
parent: (A = e == null ? void 0 : e.parent) == null ? void 0 : A.componentInstance,
|
|
739
739
|
schema: e == null ? void 0 : e.schema,
|
|
740
|
-
styles:
|
|
740
|
+
styles: o,
|
|
741
741
|
designerClass: g,
|
|
742
742
|
canAccepts: P,
|
|
743
743
|
getBelongedComponentInstance: h,
|
|
@@ -745,26 +745,26 @@ function ze(n, e, t) {
|
|
|
745
745
|
getDraggingDisplayText: c,
|
|
746
746
|
getPropConfig: S,
|
|
747
747
|
getDragScopeElement: r,
|
|
748
|
-
onAcceptMovedChildElement:
|
|
748
|
+
onAcceptMovedChildElement: u,
|
|
749
749
|
onAcceptNewChildElement: T,
|
|
750
750
|
onChildElementMovedOut: C,
|
|
751
751
|
addNewChildComponentSchema: y,
|
|
752
|
-
updateDragAndDropRules:
|
|
752
|
+
updateDragAndDropRules: l,
|
|
753
753
|
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || N(!1),
|
|
754
754
|
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || N(!1)
|
|
755
|
-
},
|
|
755
|
+
}, a;
|
|
756
756
|
}
|
|
757
757
|
function We() {
|
|
758
758
|
function n(e) {
|
|
759
|
-
var
|
|
759
|
+
var o, g;
|
|
760
760
|
if (!e)
|
|
761
761
|
return !1;
|
|
762
|
-
const t = ((
|
|
762
|
+
const t = ((o = e.targetContainer) == null ? void 0 : o.componentInstance) && e.targetContainer.componentInstance.value;
|
|
763
763
|
if (!t)
|
|
764
764
|
return !1;
|
|
765
|
-
const
|
|
765
|
+
const l = (g = t.schema.appearance) == null ? void 0 : g.class;
|
|
766
766
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
767
|
-
const
|
|
767
|
+
const a = t.schema.type, s = (a === "response-form" || a === "content-container") && l && l.includes("farris-form");
|
|
768
768
|
if (t.schema.type !== "response-layout-item" && !s)
|
|
769
769
|
return !1;
|
|
770
770
|
}
|
|
@@ -1348,12 +1348,12 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
|
|
|
1348
1348
|
required: Ue
|
|
1349
1349
|
}, X = /* @__PURE__ */ new Map();
|
|
1350
1350
|
function Ye() {
|
|
1351
|
-
function n(c, r,
|
|
1351
|
+
function n(c, r, u, y) {
|
|
1352
1352
|
var T;
|
|
1353
|
-
if (typeof
|
|
1354
|
-
return ((T = y[c]) == null ? void 0 : T.length) ===
|
|
1355
|
-
if (typeof
|
|
1356
|
-
const C = Object.keys(
|
|
1353
|
+
if (typeof u == "number")
|
|
1354
|
+
return ((T = y[c]) == null ? void 0 : T.length) === u;
|
|
1355
|
+
if (typeof u == "object") {
|
|
1356
|
+
const C = Object.keys(u)[0], S = u[C];
|
|
1357
1357
|
if (C === "not")
|
|
1358
1358
|
return Number(y[c].length) !== Number(S);
|
|
1359
1359
|
if (C === "moreThan")
|
|
@@ -1363,34 +1363,34 @@ function Ye() {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
return !1;
|
|
1365
1365
|
}
|
|
1366
|
-
function e(c, r,
|
|
1367
|
-
return typeof
|
|
1366
|
+
function e(c, r, u, y) {
|
|
1367
|
+
return typeof u == "boolean" ? y.childrenClassList.includes(r) === !!u : !1;
|
|
1368
1368
|
}
|
|
1369
|
-
function t(c, r,
|
|
1370
|
-
return typeof
|
|
1369
|
+
function t(c, r, u, y) {
|
|
1370
|
+
return typeof u == "boolean" ? y.parentClassList.includes(r) === !!u : !1;
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return typeof
|
|
1372
|
+
function l(c, r, u, y) {
|
|
1373
|
+
return typeof u == "boolean" ? y.parentClassList.includes(r) === !!u : !1;
|
|
1374
1374
|
}
|
|
1375
|
-
const
|
|
1375
|
+
const o = /* @__PURE__ */ new Map([
|
|
1376
1376
|
["length", n],
|
|
1377
1377
|
["hasChildren", e],
|
|
1378
|
-
["hasSibling",
|
|
1378
|
+
["hasSibling", l],
|
|
1379
1379
|
["hasParent", t]
|
|
1380
1380
|
]);
|
|
1381
1381
|
function g(c, r) {
|
|
1382
|
-
const
|
|
1383
|
-
return typeof r == "number" ? [{ target:
|
|
1382
|
+
const u = c;
|
|
1383
|
+
return typeof r == "number" ? [{ target: u, operator: "length", param: null, value: Number(r) }] : typeof r == "object" ? Object.keys(r).map((y) => {
|
|
1384
1384
|
if (y === "length")
|
|
1385
|
-
return { target:
|
|
1385
|
+
return { target: u, operator: "length", param: null, value: r[y] };
|
|
1386
1386
|
const T = y, C = r[y];
|
|
1387
|
-
return { target:
|
|
1387
|
+
return { target: u, operator: c === "children" ? "hasChildren" : c === "parent" ? "hasParent" : "hasSibling", param: T, value: C };
|
|
1388
1388
|
}) : [];
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1391
|
-
if (
|
|
1392
|
-
const
|
|
1393
|
-
return
|
|
1390
|
+
function a(c, r) {
|
|
1391
|
+
if (o.has(c.operator)) {
|
|
1392
|
+
const u = o.get(c.operator);
|
|
1393
|
+
return u && u(c.target, c.param, c.value, r) || !1;
|
|
1394
1394
|
}
|
|
1395
1395
|
return !1;
|
|
1396
1396
|
}
|
|
@@ -1398,30 +1398,30 @@ function Ye() {
|
|
|
1398
1398
|
return Object.keys(c).reduce((C, S) => {
|
|
1399
1399
|
const A = g(S, c[S]);
|
|
1400
1400
|
return C.push(...A), C;
|
|
1401
|
-
}, []).reduce((C, S) => C &&
|
|
1401
|
+
}, []).reduce((C, S) => C && a(S, r), !0);
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
const
|
|
1403
|
+
function i(c, r) {
|
|
1404
|
+
const u = Object.keys(c), y = u.includes("allOf"), T = u.includes("anyOf"), C = y || T, j = (C ? c[C ? y ? "allOf" : "anyOf" : "allOf"] : [c]).map((d) => s(d, r));
|
|
1405
1405
|
return y ? !j.includes(!1) : j.includes(!0);
|
|
1406
1406
|
}
|
|
1407
1407
|
function f(c, r) {
|
|
1408
|
-
const
|
|
1409
|
-
return
|
|
1408
|
+
const u = c.const;
|
|
1409
|
+
return u ? typeof u == "boolean" ? u : typeof u == "object" ? i(u, r) : !1 : !1;
|
|
1410
1410
|
}
|
|
1411
1411
|
function b(c) {
|
|
1412
1412
|
return (r) => {
|
|
1413
|
-
const
|
|
1413
|
+
const u = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1414
1414
|
return c && c.properties && Object.keys(c.properties).reduce((y, T) => {
|
|
1415
1415
|
const C = c.properties[T];
|
|
1416
1416
|
return y[T] = f(C, r), y;
|
|
1417
|
-
},
|
|
1417
|
+
}, u), u;
|
|
1418
1418
|
};
|
|
1419
1419
|
}
|
|
1420
|
-
function h(c, r,
|
|
1420
|
+
function h(c, r, u) {
|
|
1421
1421
|
if (r.type === "object" && r.properties) {
|
|
1422
1422
|
const { rules: y, contents: T } = r.properties;
|
|
1423
|
-
|
|
1424
|
-
(C) => h(C, T.properties[C],
|
|
1423
|
+
u.set(c, b(y)), T && Object.keys(T.properties).forEach(
|
|
1424
|
+
(C) => h(C, T.properties[C], u)
|
|
1425
1425
|
);
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
@@ -1432,15 +1432,15 @@ function Ye() {
|
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
1434
|
function P(c, r) {
|
|
1435
|
-
const
|
|
1436
|
-
return X.has(c) ? X.get(c)(r) :
|
|
1435
|
+
const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1436
|
+
return X.has(c) ? X.get(c)(r) : u;
|
|
1437
1437
|
}
|
|
1438
1438
|
return m(), { getRuleValue: P };
|
|
1439
1439
|
}
|
|
1440
1440
|
function Ze(n, e) {
|
|
1441
1441
|
var O;
|
|
1442
|
-
const t = n.schema,
|
|
1443
|
-
let s = !0,
|
|
1442
|
+
const t = n.schema, l = (O = n.parent) == null ? void 0 : O.schema, o = Ye(), g = N(!1), a = N(!1);
|
|
1443
|
+
let s = !0, i = !1, f, b = !1;
|
|
1444
1444
|
function h(d) {
|
|
1445
1445
|
return f && f.componentClassList && f.componentClassList.includes("f-form-layout") && f.componentClassList.includes("farris-form") ? d.sourceType === "control" && d.controlCategory === "input" || d.sourceType === "move" && d.controlType === "form-group" : !0;
|
|
1446
1446
|
}
|
|
@@ -1448,11 +1448,11 @@ function Ze(n, e) {
|
|
|
1448
1448
|
return !(!We().basalDragulaRuleForContainer(d) || !s || !h(d));
|
|
1449
1449
|
}
|
|
1450
1450
|
function P() {
|
|
1451
|
-
g.value = !1,
|
|
1451
|
+
g.value = !1, a.value = !1;
|
|
1452
1452
|
const d = t, v = d.appearance && d.appearance.class || "", M = v.split(" "), k = d.contents || [], D = k.length ? k[0] : null, x = D && D.appearance ? D.appearance.class : "", L = x ? x.split(" ") : [], $ = k.length ? k.reduce((W, G) => {
|
|
1453
1453
|
const I = G && G.appearance ? G.appearance.class : "", ie = I ? I.split(" ") : [];
|
|
1454
1454
|
return W.push(...ie), W;
|
|
1455
|
-
}, []) : [], F =
|
|
1455
|
+
}, []) : [], F = l, V = F && F.appearance && F.appearance.class || "", z = V ? V.split(" ") : [];
|
|
1456
1456
|
f = {
|
|
1457
1457
|
componentClass: v,
|
|
1458
1458
|
componentClassList: M,
|
|
@@ -1466,8 +1466,8 @@ function Ze(n, e) {
|
|
|
1466
1466
|
children: k,
|
|
1467
1467
|
childrenClassList: $
|
|
1468
1468
|
};
|
|
1469
|
-
const { canAccept: E, fixed: Q, hidePadding: U } =
|
|
1470
|
-
return s = E,
|
|
1469
|
+
const { canAccept: E, fixed: Q, hidePadding: U } = o.getRuleValue(M[0], f);
|
|
1470
|
+
return s = E, i = U, b = Q, !0;
|
|
1471
1471
|
}
|
|
1472
1472
|
function c(d) {
|
|
1473
1473
|
ue();
|
|
@@ -1475,7 +1475,7 @@ function Ze(n, e) {
|
|
|
1475
1475
|
function r() {
|
|
1476
1476
|
return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function u(d, v) {
|
|
1479
1479
|
const M = t;
|
|
1480
1480
|
if ((M.appearance && M.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1481
1481
|
const { label: x } = d, L = q("form-group");
|
|
@@ -1539,7 +1539,7 @@ function Ze(n, e) {
|
|
|
1539
1539
|
return !b;
|
|
1540
1540
|
}
|
|
1541
1541
|
function j() {
|
|
1542
|
-
return
|
|
1542
|
+
return i;
|
|
1543
1543
|
}
|
|
1544
1544
|
return {
|
|
1545
1545
|
canAccepts: m,
|
|
@@ -1550,25 +1550,25 @@ function Ze(n, e) {
|
|
|
1550
1550
|
onAcceptNewChildElement: C,
|
|
1551
1551
|
onAcceptMovedChildElement: c,
|
|
1552
1552
|
resolveComponentContext: P,
|
|
1553
|
-
onResolveNewComponentSchema:
|
|
1553
|
+
onResolveNewComponentSchema: u,
|
|
1554
1554
|
triggerBelongedComponentToMoveWhenMoved: g,
|
|
1555
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1555
|
+
triggerBelongedComponentToDeleteWhenDeleted: a
|
|
1556
1556
|
};
|
|
1557
1557
|
}
|
|
1558
|
-
const Ie = /* @__PURE__ */
|
|
1558
|
+
const Ie = /* @__PURE__ */ R({
|
|
1559
1559
|
name: "FPagination",
|
|
1560
1560
|
props: Z,
|
|
1561
1561
|
emits: ["pageIndexChanged", "pageSizeChanged"],
|
|
1562
1562
|
setup(n, e) {
|
|
1563
1563
|
var W;
|
|
1564
|
-
const t = N(!1),
|
|
1564
|
+
const t = N(!1), l = N(n.mode), o = N(""), g = N(!1), a = N(n.pageSize), s = N(n.currentPage), i = N(n.totalItems), f = N(), b = fe("design-item-context"), h = Ze(b.schema, (W = b.parent) == null ? void 0 : W.schema), m = ze(f, b, h);
|
|
1565
1565
|
de(() => {
|
|
1566
1566
|
f.value.componentInstance = m;
|
|
1567
1567
|
}), e.expose(m.value);
|
|
1568
1568
|
const {
|
|
1569
1569
|
pages: P,
|
|
1570
1570
|
updatePages: c
|
|
1571
|
-
} = le(), r = w(() => s.value === 1),
|
|
1571
|
+
} = le(), r = w(() => s.value === 1), u = w(() => [20, 50, 100]), y = w(() => Math.ceil(i.value / a.value)), T = w(() => s.value === y.value), C = w(() => !0), S = w(() => s.value > 1), A = w(() => !(g.value && P.value.length <= 1)), j = w(() => !0), O = w(() => !0), d = w(() => !0), v = w(() => !0), {
|
|
1572
1572
|
renderFirstPage: M,
|
|
1573
1573
|
renderPreviousPage: k
|
|
1574
1574
|
} = ce(s, r, S), {
|
|
@@ -1576,56 +1576,56 @@ const Ie = /* @__PURE__ */ K({
|
|
|
1576
1576
|
renderNextPage: x
|
|
1577
1577
|
} = oe(s, T, y), {
|
|
1578
1578
|
renderPageInfo: L
|
|
1579
|
-
} = ae(
|
|
1579
|
+
} = ae(o, i), {
|
|
1580
1580
|
renderPageList: $
|
|
1581
|
-
} = se(s,
|
|
1581
|
+
} = se(s, a, u, i), {
|
|
1582
1582
|
renderPageNumbers: F
|
|
1583
1583
|
} = re(s, P), {
|
|
1584
1584
|
renderGotoButton: V
|
|
1585
1585
|
} = ne(s, y);
|
|
1586
|
-
c(s.value,
|
|
1587
|
-
c(s.value,
|
|
1586
|
+
c(s.value, a.value, i.value, 7), B([s, a], () => {
|
|
1587
|
+
c(s.value, a.value, i.value, 7);
|
|
1588
1588
|
}), B(s, () => {
|
|
1589
1589
|
e.emit("pageIndexChanged", s.value);
|
|
1590
|
-
}), B(
|
|
1591
|
-
e.emit("pageSizeChanged",
|
|
1590
|
+
}), B(a, () => {
|
|
1591
|
+
e.emit("pageSizeChanged", a.value);
|
|
1592
1592
|
});
|
|
1593
1593
|
const z = w(() => ({
|
|
1594
1594
|
"ngx-pagination": !0,
|
|
1595
1595
|
pagination: !0,
|
|
1596
1596
|
responsive: t.value,
|
|
1597
|
-
"pager-viewmode-default":
|
|
1598
|
-
"pager-viewmode-simple":
|
|
1597
|
+
"pager-viewmode-default": l.value === "default",
|
|
1598
|
+
"pager-viewmode-simple": l.value === "simple"
|
|
1599
1599
|
})), E = w(() => ({
|
|
1600
1600
|
position: "relative",
|
|
1601
|
-
"justify-content":
|
|
1601
|
+
"justify-content": o.value === "center" ? "center" : "start"
|
|
1602
1602
|
}));
|
|
1603
1603
|
function Q() {
|
|
1604
|
-
return
|
|
1604
|
+
return p(_, null, [j.value && L(), O.value && $(), v.value && M(), v.value && k(), d.value && F(), v.value && x(), v.value && D(), C.value && V()]);
|
|
1605
1605
|
}
|
|
1606
1606
|
function U() {
|
|
1607
|
-
return
|
|
1607
|
+
return p(_, null, [p("li", {
|
|
1608
1608
|
class: "page-item d-flex flex-fill"
|
|
1609
|
-
}, null), v.value && M(), v.value && k(), V(),
|
|
1609
|
+
}, null), v.value && M(), v.value && k(), V(), p("li", {
|
|
1610
1610
|
class: "page-item page-separator",
|
|
1611
1611
|
style: "margin-left: 10px"
|
|
1612
|
-
}, [
|
|
1612
|
+
}, [p("span", {
|
|
1613
1613
|
style: "font-size: 15px; font-weight: 200;"
|
|
1614
|
-
}, [H(" /")])]),
|
|
1614
|
+
}, [H(" /")])]), p("li", {
|
|
1615
1615
|
class: "page-item page-total",
|
|
1616
1616
|
style: "margin-left: 5px"
|
|
1617
|
-
}, [
|
|
1617
|
+
}, [p("span", {
|
|
1618
1618
|
style: "font-size: 16px; font-weight: 600;"
|
|
1619
1619
|
}, [H(" "), y.value])]), v.value && x(), v.value && D()]);
|
|
1620
1620
|
}
|
|
1621
|
-
return () =>
|
|
1621
|
+
return () => p("div", {
|
|
1622
1622
|
ref: f,
|
|
1623
1623
|
class: "pagination-container"
|
|
1624
|
-
}, [A.value &&
|
|
1624
|
+
}, [A.value && p("ul", {
|
|
1625
1625
|
role: "navigation",
|
|
1626
1626
|
class: z.value,
|
|
1627
1627
|
style: E.value
|
|
1628
|
-
}, [
|
|
1628
|
+
}, [l.value === "default" ? Q() : U()])]);
|
|
1629
1629
|
}
|
|
1630
1630
|
});
|
|
1631
1631
|
J.register = (n, e, t) => {
|