@farris/ui-vue 1.2.8 → 1.3.0
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 +180 -180
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +419 -331
- 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.css +1 -1
- package/components/button-edit/index.esm.js +346 -326
- 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 +384 -384
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +205 -205
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +555 -467
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +239 -239
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1072 -364
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +129 -129
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +582 -327
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2433 -1134
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +307 -234
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6762 -4946
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4977 -3489
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3525 -2811
- 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 +38 -37
- 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 +282 -282
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2684 -1039
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +149 -101
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.esm.js +303 -290
- 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 +573 -518
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +99 -99
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3607 -2799
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5438 -8236
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1679 -1759
- 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 +421 -421
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +677 -593
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +326 -326
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +272 -199
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3739 -2273
- 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 +11255 -9004
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6046 -5314
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +588 -444
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +568 -485
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +542 -454
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1967 -1105
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +160 -160
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +1282 -1151
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +705 -555
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +270 -270
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2231 -1517
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +813 -909
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3781 -2566
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +101 -101
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +538 -450
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +238 -233
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +155 -155
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1243 -1180
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +988 -877
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5413 -4867
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +199 -199
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +646 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +144 -144
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +464 -391
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +249 -249
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +483 -394
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2366 -2208
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +397 -399
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +394 -394
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +451 -367
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1252 -1144
- 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 +510 -499
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5463 -9330
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +4058 -2597
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +510 -504
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +220 -220
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +653 -394
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +1028 -1028
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +20407 -18556
- 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/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/component.props.d.ts +7 -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/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +8 -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 +3 -1
- package/types/data-grid/src/data-grid.props.d.ts +3 -2
- 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 +36 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- 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/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +12 -2
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- 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/tabs/src/tabs.props.d.ts +1 -0
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,111 +1,114 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { ref as k, watch as B, createVNode as f, computed as P, defineComponent as ee, watchEffect as fe, Fragment as W, createTextVNode as U, nextTick as de, inject as ge, onMounted as ye } from "vue";
|
|
2
|
+
import { isPlainObject as K, cloneDeep as me } from "lodash-es";
|
|
3
|
+
import { BaseControlProperty as be } from "../property-panel/index.esm.js/src/composition/entity/base-property";
|
|
4
|
+
import { useResponseLayoutEditorSetting as he } from "../response-layout-editor/index.esm.js/src/composition/converter/use-response-layout-editor-setting";
|
|
5
|
+
import { DgControl as ve } from "../designer-canvas/index.esm.js/src/composition/dg-control";
|
|
6
|
+
import { withInstall as Ce } from "../common/index.esm.js";
|
|
7
|
+
const te = {}, ne = {};
|
|
5
8
|
function Y(n) {
|
|
6
|
-
const { properties: e, title: t } = n,
|
|
7
|
-
return
|
|
9
|
+
const { properties: e, title: t, ignore: p } = n, c = p && Array.isArray(p), y = Object.keys(e).reduce((o, a) => ((!c || !p.find((s) => s == a)) && (o[a] = e[a].type === "object" && e[a].properties ? Y(e[a]) : me(e[a].default)), o), {});
|
|
10
|
+
return (!c || !p.find((o) => o == "id")) && (y.id = `${t}-${Date.now()}`), y;
|
|
8
11
|
}
|
|
9
|
-
function q(n, e = {}) {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
let
|
|
13
|
-
const
|
|
14
|
-
return
|
|
12
|
+
function q(n, e = {}, t) {
|
|
13
|
+
const p = te[n];
|
|
14
|
+
if (p) {
|
|
15
|
+
let c = Y(p);
|
|
16
|
+
const y = ne[n];
|
|
17
|
+
return c = y ? y({ getSchemaByType: q }, c, e, t) : c, c;
|
|
15
18
|
}
|
|
16
19
|
return null;
|
|
17
20
|
}
|
|
18
|
-
function
|
|
21
|
+
function je(n, e) {
|
|
19
22
|
const t = Y(e);
|
|
20
|
-
return Object.keys(n).reduce((
|
|
23
|
+
return Object.keys(n).reduce((p, c) => (p[c] && K(p[c]) && K(n[c]) ? Object.assign(p[c], n[c]) : p[c] = n[c], p), t), t;
|
|
21
24
|
}
|
|
22
|
-
function
|
|
23
|
-
return Object.keys(n).filter((
|
|
24
|
-
if (e.has(
|
|
25
|
-
const
|
|
26
|
-
if (typeof
|
|
27
|
-
|
|
25
|
+
function Pe(n, e) {
|
|
26
|
+
return Object.keys(n).filter((p) => n[p] != null).reduce((p, c) => {
|
|
27
|
+
if (e.has(c)) {
|
|
28
|
+
const y = e.get(c);
|
|
29
|
+
if (typeof y == "string")
|
|
30
|
+
p[y] = n[c];
|
|
28
31
|
else {
|
|
29
|
-
const
|
|
30
|
-
Object.assign(
|
|
32
|
+
const o = y(c, n[c], n);
|
|
33
|
+
Object.assign(p, o);
|
|
31
34
|
}
|
|
32
35
|
} else
|
|
33
|
-
|
|
34
|
-
return
|
|
36
|
+
p[c] = n[c];
|
|
37
|
+
return p;
|
|
35
38
|
}, {});
|
|
36
39
|
}
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
return
|
|
40
|
+
function we(n, e, t = /* @__PURE__ */ new Map()) {
|
|
41
|
+
const p = je(n, e);
|
|
42
|
+
return Pe(p, t);
|
|
40
43
|
}
|
|
41
|
-
function
|
|
42
|
-
function e(
|
|
43
|
-
if (typeof
|
|
44
|
-
return m[
|
|
45
|
-
if (typeof
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return Number(m[
|
|
49
|
-
if (
|
|
50
|
-
return Number(m[
|
|
51
|
-
if (
|
|
52
|
-
return Number(m[
|
|
44
|
+
function Ne(n = {}) {
|
|
45
|
+
function e(r, g, d, m) {
|
|
46
|
+
if (typeof d == "number")
|
|
47
|
+
return m[r].length === d;
|
|
48
|
+
if (typeof d == "object") {
|
|
49
|
+
const C = Object.keys(d)[0], l = d[C];
|
|
50
|
+
if (C === "not")
|
|
51
|
+
return Number(m[r].length) !== Number(l);
|
|
52
|
+
if (C === "moreThan")
|
|
53
|
+
return Number(m[r].length) >= Number(l);
|
|
54
|
+
if (C === "lessThan")
|
|
55
|
+
return Number(m[r].length) <= Number(l);
|
|
53
56
|
}
|
|
54
57
|
return !1;
|
|
55
58
|
}
|
|
56
|
-
function t(
|
|
57
|
-
return m[
|
|
59
|
+
function t(r, g, d, m) {
|
|
60
|
+
return m[r] && m[r].propertyValue && String(m[r].propertyValue.value) === String(d);
|
|
58
61
|
}
|
|
59
|
-
const
|
|
62
|
+
const p = /* @__PURE__ */ new Map([
|
|
60
63
|
["length", e],
|
|
61
64
|
["getProperty", t]
|
|
62
65
|
]);
|
|
63
|
-
Object.keys(n).reduce((
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return typeof
|
|
66
|
+
Object.keys(n).reduce((r, g) => (r.set(g, n[g]), r), p);
|
|
67
|
+
function c(r, g) {
|
|
68
|
+
const d = r;
|
|
69
|
+
return typeof g == "number" ? [{ target: d, operator: "length", param: null, value: Number(g) }] : typeof g == "boolean" ? [{ target: d, operator: "getProperty", param: r, value: !!g }] : typeof g == "object" ? Object.keys(g).map((m) => {
|
|
67
70
|
if (m === "length")
|
|
68
|
-
return { target:
|
|
69
|
-
const
|
|
70
|
-
return { target:
|
|
71
|
+
return { target: d, operator: "length", param: null, value: g[m] };
|
|
72
|
+
const C = m, l = g[m];
|
|
73
|
+
return { target: d, operator: "getProperty", param: C, value: l };
|
|
71
74
|
}) : [];
|
|
72
75
|
}
|
|
73
|
-
function
|
|
74
|
-
return Object.keys(
|
|
75
|
-
const
|
|
76
|
-
return
|
|
76
|
+
function y(r) {
|
|
77
|
+
return Object.keys(r).reduce((d, m) => {
|
|
78
|
+
const C = c(m, r[m]);
|
|
79
|
+
return d.push(...C), d;
|
|
77
80
|
}, []);
|
|
78
81
|
}
|
|
79
|
-
function
|
|
80
|
-
if (
|
|
81
|
-
const
|
|
82
|
-
return
|
|
82
|
+
function o(r, g) {
|
|
83
|
+
if (p.has(r.operator)) {
|
|
84
|
+
const d = p.get(r.operator);
|
|
85
|
+
return d && d(r.target, r.param, r.value, g) || !1;
|
|
83
86
|
}
|
|
84
87
|
return !1;
|
|
85
88
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
89
|
+
function a(r, g) {
|
|
90
|
+
return y(r).reduce((C, l) => C && o(l, g), !0);
|
|
88
91
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
return m ? !
|
|
92
|
+
function s(r, g) {
|
|
93
|
+
const d = Object.keys(r), m = d.includes("allOf"), C = d.includes("anyOf"), l = m || C, b = (l ? r[l ? m ? "allOf" : "anyOf" : "allOf"] : [r]).map((j) => a(j, g));
|
|
94
|
+
return m ? !b.includes(!1) : b.includes(!0);
|
|
92
95
|
}
|
|
93
|
-
return { parseValueSchema:
|
|
96
|
+
return { parseValueSchema: s };
|
|
94
97
|
}
|
|
95
|
-
const
|
|
96
|
-
|
|
97
|
-
function
|
|
98
|
-
return
|
|
99
|
-
const
|
|
100
|
-
return Object.assign(
|
|
98
|
+
const ke = {}, Ae = {};
|
|
99
|
+
Ne();
|
|
100
|
+
function Le(n, e, t = /* @__PURE__ */ new Map(), p = (o, a, s) => a, c = {}, y = (o) => o) {
|
|
101
|
+
return te[e.title] = e, ne[e.title] = p, ke[e.title] = c, Ae[e.title] = y, (o = {}) => {
|
|
102
|
+
const a = we(o, e, t), s = Object.keys(n).reduce((r, g) => (r[g] = n[g].default, r), {});
|
|
103
|
+
return Object.assign(s, a);
|
|
101
104
|
};
|
|
102
105
|
}
|
|
103
|
-
function
|
|
106
|
+
function Te(n, e) {
|
|
104
107
|
return { customClass: e.class, customStyle: e.style };
|
|
105
108
|
}
|
|
106
|
-
const
|
|
107
|
-
["appearance",
|
|
108
|
-
]),
|
|
109
|
+
const Se = /* @__PURE__ */ new Map([
|
|
110
|
+
["appearance", Te]
|
|
111
|
+
]), Me = "https://json-schema.org/draft/2020-12/schema", Oe = "https://farris-design.gitee.io/pagination.schema.json", xe = "pagination", De = "A Farris Component", Ee = "object", Be = {
|
|
109
112
|
id: {
|
|
110
113
|
description: "The unique identifier for a pagination",
|
|
111
114
|
type: "string"
|
|
@@ -197,18 +200,18 @@ const Ne = /* @__PURE__ */ new Map([
|
|
|
197
200
|
type: "sting",
|
|
198
201
|
default: ""
|
|
199
202
|
}
|
|
200
|
-
},
|
|
203
|
+
}, Fe = [
|
|
201
204
|
"id",
|
|
202
205
|
"type"
|
|
203
|
-
],
|
|
204
|
-
$schema:
|
|
205
|
-
$id:
|
|
206
|
-
title:
|
|
207
|
-
description:
|
|
208
|
-
type:
|
|
209
|
-
properties:
|
|
210
|
-
required:
|
|
211
|
-
},
|
|
206
|
+
], Ie = {
|
|
207
|
+
$schema: Me,
|
|
208
|
+
$id: Oe,
|
|
209
|
+
title: xe,
|
|
210
|
+
description: De,
|
|
211
|
+
type: Ee,
|
|
212
|
+
properties: Be,
|
|
213
|
+
required: Fe
|
|
214
|
+
}, $e = "pagination", Ve = "A Farris Component", qe = "object", ze = {
|
|
212
215
|
basic: {
|
|
213
216
|
description: "Basic Infomation",
|
|
214
217
|
title: "基本信息",
|
|
@@ -290,13 +293,13 @@ const Ne = /* @__PURE__ */ new Map([
|
|
|
290
293
|
}
|
|
291
294
|
}
|
|
292
295
|
}
|
|
293
|
-
},
|
|
294
|
-
title:
|
|
295
|
-
description:
|
|
296
|
-
type:
|
|
297
|
-
categories:
|
|
296
|
+
}, Ge = {
|
|
297
|
+
title: $e,
|
|
298
|
+
description: Ve,
|
|
299
|
+
type: qe,
|
|
300
|
+
categories: ze
|
|
298
301
|
};
|
|
299
|
-
function
|
|
302
|
+
function We(n, e, t) {
|
|
300
303
|
return e;
|
|
301
304
|
}
|
|
302
305
|
const Z = {
|
|
@@ -332,440 +335,446 @@ const Z = {
|
|
|
332
335
|
* 自定义每页数量
|
|
333
336
|
*/
|
|
334
337
|
pageList: { type: Array, default: [20, 50, 100] }
|
|
335
|
-
},
|
|
336
|
-
function
|
|
337
|
-
const t =
|
|
338
|
-
B(
|
|
339
|
-
|
|
340
|
-
}), B(n, (
|
|
341
|
-
|
|
338
|
+
}, oe = Le(Z, Ie, Se, We, Ge);
|
|
339
|
+
function se(n, e) {
|
|
340
|
+
const t = k("跳转至"), p = k(""), c = k(n.value);
|
|
341
|
+
B(c, (s, r) => {
|
|
342
|
+
s >= 1 && s <= e.value ? n.value = s : c.value = r;
|
|
343
|
+
}), B(n, (s) => {
|
|
344
|
+
c.value !== s && (c.value = s);
|
|
342
345
|
});
|
|
343
|
-
function
|
|
344
|
-
|
|
346
|
+
function y(s) {
|
|
347
|
+
c.value = s.target.valueAsNumber;
|
|
345
348
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
349
|
+
function o(s) {
|
|
350
|
+
s.key === "Enter" && (c.value = s.target.valueAsNumber);
|
|
348
351
|
}
|
|
349
|
-
function
|
|
350
|
-
return
|
|
352
|
+
function a() {
|
|
353
|
+
return f("li", {
|
|
351
354
|
class: "page-goto-input d-flex flex-row",
|
|
352
355
|
style: "padding-left: 10px; white-space: nowrap;"
|
|
353
|
-
}, [
|
|
356
|
+
}, [f("span", {
|
|
354
357
|
class: "pg-message-text"
|
|
355
|
-
}, [t.value]),
|
|
358
|
+
}, [t.value]), f("input", {
|
|
356
359
|
type: "number",
|
|
357
360
|
class: "form-control farris-gotopagenumber",
|
|
358
|
-
value:
|
|
361
|
+
value: c.value,
|
|
359
362
|
min: "1",
|
|
360
363
|
max: e.value,
|
|
361
364
|
style: "display: inline-block;margin-left:3px;",
|
|
362
|
-
onBlur: (
|
|
363
|
-
onKeyup: (
|
|
364
|
-
}, null),
|
|
365
|
+
onBlur: (s) => y(s),
|
|
366
|
+
onKeyup: (s) => o(s)
|
|
367
|
+
}, null), p.value]);
|
|
365
368
|
}
|
|
366
369
|
return {
|
|
367
|
-
renderGotoButton:
|
|
370
|
+
renderGotoButton: a
|
|
368
371
|
};
|
|
369
372
|
}
|
|
370
|
-
function
|
|
371
|
-
const
|
|
373
|
+
function ae(n, e, t) {
|
|
374
|
+
const p = P(() => ({
|
|
372
375
|
"page-item": !0,
|
|
373
376
|
disabled: e.value
|
|
374
377
|
}));
|
|
375
|
-
function
|
|
378
|
+
function c(s) {
|
|
376
379
|
n.value = n.value < t.value ? n.value + 1 : t.value;
|
|
377
380
|
}
|
|
378
|
-
function
|
|
381
|
+
function y(s) {
|
|
379
382
|
n.value = t.value;
|
|
380
383
|
}
|
|
381
|
-
function
|
|
382
|
-
return
|
|
383
|
-
class:
|
|
384
|
-
}, [!e.value &&
|
|
384
|
+
function o() {
|
|
385
|
+
return f("li", {
|
|
386
|
+
class: p.value
|
|
387
|
+
}, [!e.value && f("a", {
|
|
385
388
|
class: "page-link",
|
|
386
389
|
tabindex: "0",
|
|
387
|
-
onClick: (
|
|
388
|
-
}, [
|
|
390
|
+
onClick: (s) => c()
|
|
391
|
+
}, [f("span", {
|
|
389
392
|
class: "f-icon f-page-next"
|
|
390
|
-
}, null)]), e.value &&
|
|
393
|
+
}, null)]), e.value && f("span", {
|
|
391
394
|
class: "page-link"
|
|
392
|
-
}, [
|
|
395
|
+
}, [f("span", {
|
|
393
396
|
class: "f-icon f-page-next"
|
|
394
397
|
}, null)])]);
|
|
395
398
|
}
|
|
396
|
-
function
|
|
397
|
-
return
|
|
398
|
-
class:
|
|
399
|
-
}, [!e.value &&
|
|
399
|
+
function a() {
|
|
400
|
+
return f("li", {
|
|
401
|
+
class: p.value
|
|
402
|
+
}, [!e.value && f("a", {
|
|
400
403
|
class: "page-link",
|
|
401
404
|
tabindex: "0",
|
|
402
|
-
onClick: (
|
|
403
|
-
}, [
|
|
405
|
+
onClick: (s) => y()
|
|
406
|
+
}, [f("span", {
|
|
404
407
|
class: "f-icon f-page-last"
|
|
405
|
-
}, null)]), e.value &&
|
|
408
|
+
}, null)]), e.value && f("span", {
|
|
406
409
|
class: "page-link"
|
|
407
|
-
}, [
|
|
410
|
+
}, [f("span", {
|
|
408
411
|
class: "f-icon f-page-last"
|
|
409
412
|
}, null)])]);
|
|
410
413
|
}
|
|
411
414
|
return {
|
|
412
|
-
renderLastPage:
|
|
413
|
-
renderNextPage:
|
|
415
|
+
renderLastPage: a,
|
|
416
|
+
renderNextPage: o
|
|
414
417
|
};
|
|
415
418
|
}
|
|
416
|
-
function
|
|
417
|
-
const t =
|
|
419
|
+
function re(n, e) {
|
|
420
|
+
const t = k("共"), p = k("条"), c = P(() => ({
|
|
418
421
|
"pagination-message": !0,
|
|
419
422
|
"text-truncate": !0,
|
|
420
423
|
"d-flex": !0,
|
|
421
424
|
"ml-auto": n.value === "right",
|
|
422
425
|
"flex-fill": n.value === "right"
|
|
423
426
|
}));
|
|
424
|
-
function
|
|
425
|
-
return
|
|
426
|
-
class:
|
|
427
|
-
}, [
|
|
427
|
+
function y() {
|
|
428
|
+
return f("li", {
|
|
429
|
+
class: c.value
|
|
430
|
+
}, [f("div", {
|
|
428
431
|
class: "text-truncate",
|
|
429
432
|
style: "line-height: 26px"
|
|
430
|
-
}, [
|
|
433
|
+
}, [f("span", {
|
|
431
434
|
class: "pg-message-text"
|
|
432
|
-
}, [t.value]),
|
|
435
|
+
}, [t.value]), f("b", {
|
|
433
436
|
class: "pg-message-total"
|
|
434
|
-
}, [e.value]),
|
|
437
|
+
}, [e.value]), f("span", {
|
|
435
438
|
class: "pg-message-text"
|
|
436
|
-
}, [
|
|
439
|
+
}, [p.value])])]);
|
|
437
440
|
}
|
|
438
441
|
return {
|
|
439
|
-
renderPageInfo:
|
|
442
|
+
renderPageInfo: y
|
|
440
443
|
};
|
|
441
444
|
}
|
|
442
|
-
function
|
|
443
|
-
const
|
|
445
|
+
function ce(n, e, t, p) {
|
|
446
|
+
const c = k(!1), y = k("显示"), o = k("条"), a = P(() => ({
|
|
444
447
|
dropup: !0,
|
|
445
448
|
"dropdown-right": !0,
|
|
446
449
|
"pg-pagelist": !0,
|
|
447
|
-
"pagelist-disabled":
|
|
448
|
-
show:
|
|
449
|
-
})),
|
|
450
|
+
"pagelist-disabled": p.value === 0,
|
|
451
|
+
show: c.value
|
|
452
|
+
})), s = P(() => ({
|
|
450
453
|
"dropdown-menu": !0,
|
|
451
|
-
show:
|
|
452
|
-
})),
|
|
454
|
+
show: c.value
|
|
455
|
+
})), r = (i) => ({
|
|
453
456
|
"w-100": !0,
|
|
454
457
|
"dropdown-item": !0,
|
|
455
|
-
active: e.value ===
|
|
458
|
+
active: e.value === i
|
|
456
459
|
});
|
|
457
|
-
function
|
|
458
|
-
|
|
460
|
+
function g(i) {
|
|
461
|
+
c.value = !0;
|
|
459
462
|
}
|
|
460
|
-
function
|
|
461
|
-
|
|
463
|
+
function d(i) {
|
|
464
|
+
c.value = !1;
|
|
462
465
|
}
|
|
463
|
-
function m(
|
|
464
|
-
const
|
|
465
|
-
return Math.ceil(
|
|
466
|
+
function m(i, u, b) {
|
|
467
|
+
const j = i * u - u + 1;
|
|
468
|
+
return Math.ceil(j / b);
|
|
466
469
|
}
|
|
467
|
-
function
|
|
468
|
-
n.value = m(n.value, e.value, u), e.value = u,
|
|
470
|
+
function C(i, u) {
|
|
471
|
+
n.value = m(n.value, e.value, u), e.value = u, c.value = !1;
|
|
469
472
|
}
|
|
470
|
-
function
|
|
471
|
-
return
|
|
473
|
+
function l() {
|
|
474
|
+
return f("li", {
|
|
472
475
|
class: "pagination-pagelist"
|
|
473
|
-
}, [
|
|
474
|
-
class:
|
|
475
|
-
onMouseenter: (
|
|
476
|
-
onMouseleave: (
|
|
477
|
-
}, [
|
|
476
|
+
}, [f("div", {
|
|
477
|
+
class: a.value,
|
|
478
|
+
onMouseenter: (i) => g(),
|
|
479
|
+
onMouseleave: (i) => d()
|
|
480
|
+
}, [f("div", {
|
|
478
481
|
class: "pg-pagelist-info"
|
|
479
|
-
}, [
|
|
482
|
+
}, [f("span", {
|
|
480
483
|
class: "pagelist-text"
|
|
481
|
-
}, [
|
|
484
|
+
}, [y.value]), f("b", {
|
|
482
485
|
class: "cur-pagesize"
|
|
483
|
-
}, [e.value]),
|
|
486
|
+
}, [e.value]), f("span", {
|
|
484
487
|
class: "pagelist-text"
|
|
485
|
-
}, [
|
|
488
|
+
}, [o.value]), f("i", {
|
|
486
489
|
class: "f-icon f-icon-dropdown"
|
|
487
|
-
}, null)]),
|
|
488
|
-
class:
|
|
490
|
+
}, null)]), f("div", {
|
|
491
|
+
class: s.value,
|
|
489
492
|
style: "margin-bottom: -1px;"
|
|
490
|
-
}, [t.value.map((
|
|
491
|
-
class:
|
|
492
|
-
onClick: (u) =>
|
|
493
|
-
}, [
|
|
493
|
+
}, [t.value.map((i) => f("li", {
|
|
494
|
+
class: r(i),
|
|
495
|
+
onClick: (u) => C(u, i)
|
|
496
|
+
}, [f("span", null, [i])]))])])]);
|
|
494
497
|
}
|
|
495
498
|
return {
|
|
496
|
-
renderPageList:
|
|
499
|
+
renderPageList: l
|
|
497
500
|
};
|
|
498
501
|
}
|
|
499
|
-
function
|
|
500
|
-
const t = (
|
|
502
|
+
function le(n, e) {
|
|
503
|
+
const t = (o) => ({
|
|
501
504
|
"page-item": !0,
|
|
502
|
-
current: n.value ===
|
|
503
|
-
ellipsis:
|
|
504
|
-
}),
|
|
505
|
+
current: n.value === o.value,
|
|
506
|
+
ellipsis: o.label === "..."
|
|
507
|
+
}), p = (o) => ({
|
|
505
508
|
"f-icon": !0,
|
|
506
|
-
"f-icon-arrow-seek-left":
|
|
507
|
-
"f-icon-arrow-seek-right":
|
|
509
|
+
"f-icon-arrow-seek-left": o.value < n.value,
|
|
510
|
+
"f-icon-arrow-seek-right": o.value > n.value
|
|
508
511
|
});
|
|
509
|
-
function o
|
|
510
|
-
n.value =
|
|
512
|
+
function c(o, a) {
|
|
513
|
+
n.value = a;
|
|
511
514
|
}
|
|
512
|
-
function
|
|
513
|
-
return e.value.map((
|
|
514
|
-
class: t(
|
|
515
|
-
}, [n.value !==
|
|
515
|
+
function y() {
|
|
516
|
+
return e.value.map((o) => f("li", {
|
|
517
|
+
class: t(o)
|
|
518
|
+
}, [n.value !== o.value && f("a", {
|
|
516
519
|
class: "page-link",
|
|
517
520
|
tabindex: "0",
|
|
518
|
-
onClick: (
|
|
519
|
-
}, [
|
|
521
|
+
onClick: (a) => c(a, o.value)
|
|
522
|
+
}, [f("span", {
|
|
520
523
|
class: "page-link-label"
|
|
521
|
-
}, [
|
|
522
|
-
class:
|
|
523
|
-
}, null)]), n.value ===
|
|
524
|
+
}, [o.label]), o.label === "..." && f("i", {
|
|
525
|
+
class: p(o)
|
|
526
|
+
}, null)]), n.value === o.value && f("span", {
|
|
524
527
|
class: "page-link"
|
|
525
|
-
}, [
|
|
528
|
+
}, [o.label])]));
|
|
526
529
|
}
|
|
527
530
|
return {
|
|
528
|
-
renderPageNumbers:
|
|
531
|
+
renderPageNumbers: y
|
|
529
532
|
};
|
|
530
533
|
}
|
|
531
|
-
function
|
|
532
|
-
const
|
|
534
|
+
function ie(n, e, t) {
|
|
535
|
+
const p = P(() => ({
|
|
533
536
|
"page-item": !0,
|
|
534
537
|
disabled: e.value
|
|
535
538
|
}));
|
|
536
|
-
function
|
|
539
|
+
function c(s) {
|
|
537
540
|
n.value = 1;
|
|
538
541
|
}
|
|
539
|
-
function
|
|
542
|
+
function y(s) {
|
|
540
543
|
n.value = n.value > 2 ? n.value - 1 : 1;
|
|
541
544
|
}
|
|
542
|
-
function
|
|
543
|
-
return
|
|
544
|
-
class:
|
|
545
|
-
}, [t.value &&
|
|
545
|
+
function o() {
|
|
546
|
+
return f("li", {
|
|
547
|
+
class: p.value
|
|
548
|
+
}, [t.value && f("a", {
|
|
546
549
|
tabindex: "0",
|
|
547
550
|
class: "page-link",
|
|
548
|
-
onClick: (
|
|
549
|
-
}, [
|
|
551
|
+
onClick: (s) => c()
|
|
552
|
+
}, [f("span", {
|
|
550
553
|
class: "f-icon f-page-first"
|
|
551
|
-
}, null)]), e.value &&
|
|
554
|
+
}, null)]), e.value && f("span", {
|
|
552
555
|
class: "page-link"
|
|
553
|
-
}, [
|
|
556
|
+
}, [f("span", {
|
|
554
557
|
class: "f-icon f-page-first"
|
|
555
558
|
}, null)])]);
|
|
556
559
|
}
|
|
557
|
-
function
|
|
558
|
-
return
|
|
559
|
-
class:
|
|
560
|
-
}, [t.value &&
|
|
560
|
+
function a() {
|
|
561
|
+
return f("li", {
|
|
562
|
+
class: p.value
|
|
563
|
+
}, [t.value && f("a", {
|
|
561
564
|
tabindex: "0",
|
|
562
565
|
class: "page-link",
|
|
563
|
-
onClick: (
|
|
564
|
-
}, [
|
|
566
|
+
onClick: (s) => y()
|
|
567
|
+
}, [f("span", {
|
|
565
568
|
class: "f-icon f-page-pre"
|
|
566
|
-
}, null)]), e.value &&
|
|
569
|
+
}, null)]), e.value && f("span", {
|
|
567
570
|
class: "page-link"
|
|
568
|
-
}, [
|
|
571
|
+
}, [f("span", {
|
|
569
572
|
class: "f-icon f-page-pre"
|
|
570
573
|
}, null)])]);
|
|
571
574
|
}
|
|
572
575
|
return {
|
|
573
|
-
renderFirstPage:
|
|
574
|
-
renderPreviousPage:
|
|
576
|
+
renderFirstPage: o,
|
|
577
|
+
renderPreviousPage: a
|
|
575
578
|
};
|
|
576
579
|
}
|
|
577
|
-
function
|
|
578
|
-
const e =
|
|
579
|
-
function t(
|
|
580
|
-
const
|
|
581
|
-
return
|
|
582
|
-
}
|
|
583
|
-
function
|
|
584
|
-
const
|
|
585
|
-
let
|
|
586
|
-
for (;
|
|
587
|
-
const u = t(
|
|
588
|
-
|
|
580
|
+
function pe(n) {
|
|
581
|
+
const e = k([]);
|
|
582
|
+
function t(c, y, o, a) {
|
|
583
|
+
const s = Math.ceil(o / 2);
|
|
584
|
+
return c === o ? a : c === 1 ? c : o < a ? a - s < y ? a - o + c : s < y ? y - s + c : c : c;
|
|
585
|
+
}
|
|
586
|
+
function p(c, y, o, a) {
|
|
587
|
+
const s = [], r = Math.ceil(o / y), g = Math.ceil(a / 2), d = c <= g, m = r - g < c, C = !d && !m, l = a < r;
|
|
588
|
+
let i = 1;
|
|
589
|
+
for (; i <= r && i <= a; ) {
|
|
590
|
+
const u = t(i, c, a, r), b = i === 2 && (C || m), w = i === a - 1 && (C || d), j = l && (b || w) ? "..." : "" + u;
|
|
591
|
+
s.push({ label: j, value: u }), i++;
|
|
589
592
|
}
|
|
590
|
-
e.value =
|
|
593
|
+
e.value = s;
|
|
591
594
|
}
|
|
592
|
-
return { pages: e, updatePages:
|
|
595
|
+
return { pages: e, updatePages: p };
|
|
593
596
|
}
|
|
594
|
-
const
|
|
597
|
+
const _ = /* @__PURE__ */ ee({
|
|
595
598
|
name: "FPagination",
|
|
596
599
|
props: Z,
|
|
597
600
|
emits: ["pageIndexChanged", "pageSizeChanged", "update:currentPage", "update:pageSize"],
|
|
598
601
|
setup(n, e) {
|
|
599
|
-
const t =
|
|
600
|
-
pages:
|
|
601
|
-
updatePages:
|
|
602
|
-
} =
|
|
603
|
-
renderFirstPage:
|
|
602
|
+
const t = k(!1), p = k(n.mode), c = k(""), y = k(!1), o = k(n.pageSize), a = k(n.currentPage), s = k(n.totalItems), {
|
|
603
|
+
pages: r,
|
|
604
|
+
updatePages: g
|
|
605
|
+
} = pe(), d = P(() => a.value === 1), m = P(() => n.pageList), C = P(() => Math.ceil(s.value / o.value)), l = P(() => a.value === C.value), i = P(() => n.showGoButton), u = P(() => a.value > 1), b = P(() => !(y.value && r.value.length <= 1)), w = P(() => !0), j = P(() => n.showPageList), N = P(() => n.showPageNumbers), L = P(() => !0), {
|
|
606
|
+
renderFirstPage: v,
|
|
604
607
|
renderPreviousPage: O
|
|
605
|
-
} =
|
|
606
|
-
renderLastPage:
|
|
607
|
-
renderNextPage:
|
|
608
|
-
} =
|
|
609
|
-
renderPageInfo:
|
|
610
|
-
} =
|
|
611
|
-
renderPageList:
|
|
612
|
-
} =
|
|
613
|
-
renderPageNumbers:
|
|
614
|
-
} =
|
|
615
|
-
renderGotoButton:
|
|
616
|
-
} =
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}), B([
|
|
620
|
-
|
|
621
|
-
}), B(s, () => {
|
|
622
|
-
e.emit("update:currentPage", s.value), e.emit("pageIndexChanged", s.value);
|
|
608
|
+
} = ie(a, d, u), {
|
|
609
|
+
renderLastPage: S,
|
|
610
|
+
renderNextPage: h
|
|
611
|
+
} = ae(a, l, C), {
|
|
612
|
+
renderPageInfo: A
|
|
613
|
+
} = re(c, s), {
|
|
614
|
+
renderPageList: T
|
|
615
|
+
} = ce(a, o, m, s), {
|
|
616
|
+
renderPageNumbers: M
|
|
617
|
+
} = le(a, r), {
|
|
618
|
+
renderGotoButton: D
|
|
619
|
+
} = se(a, C);
|
|
620
|
+
g(a.value, o.value, s.value, 7), B(() => n.totalItems, (E) => {
|
|
621
|
+
s.value = E;
|
|
622
|
+
}), B([a, o, s], () => {
|
|
623
|
+
g(a.value, o.value, s.value, 7);
|
|
623
624
|
}), B(a, () => {
|
|
624
|
-
e.emit("update:
|
|
625
|
+
e.emit("update:currentPage", a.value), e.emit("pageIndexChanged", {
|
|
626
|
+
pageIndex: a.value,
|
|
627
|
+
pageSize: o.value
|
|
628
|
+
});
|
|
629
|
+
}), B(o, () => {
|
|
630
|
+
e.emit("update:pageSize", o.value), e.emit("pageSizeChanged", {
|
|
631
|
+
pageIndex: a.value,
|
|
632
|
+
pageSize: o.value
|
|
633
|
+
});
|
|
625
634
|
}), B(() => n.totalItems, (E) => {
|
|
626
|
-
|
|
627
|
-
}),
|
|
628
|
-
const E = m.value.includes(
|
|
629
|
-
|
|
635
|
+
s.value = E, g(a.value, o.value, s.value, 7);
|
|
636
|
+
}), fe(() => {
|
|
637
|
+
const E = m.value.includes(o.value);
|
|
638
|
+
o.value = E ? o.value : m.value[0];
|
|
630
639
|
})();
|
|
631
|
-
const
|
|
640
|
+
const x = P(() => ({
|
|
632
641
|
"ngx-pagination": !0,
|
|
633
642
|
pagination: !0,
|
|
634
643
|
responsive: t.value,
|
|
635
|
-
"pager-viewmode-default":
|
|
636
|
-
"pager-viewmode-simple":
|
|
637
|
-
})),
|
|
644
|
+
"pager-viewmode-default": p.value === "default",
|
|
645
|
+
"pager-viewmode-simple": p.value === "simple"
|
|
646
|
+
})), I = P(() => ({
|
|
638
647
|
position: "relative",
|
|
639
|
-
"justify-content":
|
|
648
|
+
"justify-content": c.value === "center" ? "center" : "start"
|
|
640
649
|
}));
|
|
641
|
-
function
|
|
642
|
-
return
|
|
650
|
+
function $() {
|
|
651
|
+
return f(W, null, [w.value && A(), j.value && T(), L.value && v(), L.value && O(), N.value && M(), L.value && h(), L.value && S(), i.value && D()]);
|
|
643
652
|
}
|
|
644
|
-
function
|
|
645
|
-
return
|
|
653
|
+
function V() {
|
|
654
|
+
return f(W, null, [f("li", {
|
|
646
655
|
class: "page-item d-flex flex-fill"
|
|
647
|
-
}, null),
|
|
656
|
+
}, null), L.value && v(), L.value && O(), D(), f("li", {
|
|
648
657
|
class: "page-item page-separator",
|
|
649
658
|
style: "margin-left: 10px"
|
|
650
|
-
}, [
|
|
659
|
+
}, [f("span", {
|
|
651
660
|
style: "font-size: 15px; font-weight: 200;"
|
|
652
|
-
}, [
|
|
661
|
+
}, [U(" /")])]), f("li", {
|
|
653
662
|
class: "page-item page-total",
|
|
654
663
|
style: "margin-left: 5px"
|
|
655
|
-
}, [
|
|
664
|
+
}, [f("span", {
|
|
656
665
|
style: "font-size: 16px; font-weight: 600;"
|
|
657
|
-
}, [
|
|
666
|
+
}, [U(" "), C.value])]), L.value && h(), L.value && S()]);
|
|
658
667
|
}
|
|
659
|
-
return () =>
|
|
668
|
+
return () => f("div", {
|
|
660
669
|
class: "pagination-container"
|
|
661
|
-
}, [
|
|
670
|
+
}, [b.value && f("ul", {
|
|
662
671
|
role: "navigation",
|
|
663
|
-
class:
|
|
664
|
-
style:
|
|
665
|
-
}, [
|
|
672
|
+
class: x.value,
|
|
673
|
+
style: I.value
|
|
674
|
+
}, [p.value === "default" ? $() : V()])]);
|
|
666
675
|
}
|
|
667
676
|
});
|
|
668
|
-
function
|
|
669
|
-
var
|
|
670
|
-
function
|
|
677
|
+
function Ue(n, e, t) {
|
|
678
|
+
var L;
|
|
679
|
+
function p() {
|
|
671
680
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
672
681
|
}
|
|
673
|
-
|
|
674
|
-
const
|
|
675
|
-
function
|
|
682
|
+
p();
|
|
683
|
+
const c = t && t.getStyles && t.getStyles() || "", y = t && t.getDesignerClass && t.getDesignerClass() || "", o = k();
|
|
684
|
+
function a() {
|
|
676
685
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
677
686
|
}
|
|
678
|
-
function
|
|
687
|
+
function s() {
|
|
679
688
|
return !1;
|
|
680
689
|
}
|
|
681
|
-
function
|
|
690
|
+
function r() {
|
|
682
691
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
683
692
|
}
|
|
684
|
-
function
|
|
693
|
+
function g() {
|
|
685
694
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
686
695
|
}
|
|
687
|
-
function
|
|
688
|
-
if (!
|
|
696
|
+
function d(v) {
|
|
697
|
+
if (!v || !v.value)
|
|
689
698
|
return null;
|
|
690
|
-
if (
|
|
691
|
-
return
|
|
692
|
-
const O =
|
|
693
|
-
return
|
|
699
|
+
if (v.value.schema && v.value.schema.type === "component")
|
|
700
|
+
return v.value;
|
|
701
|
+
const O = k(v == null ? void 0 : v.value.parent), S = d(O);
|
|
702
|
+
return S || null;
|
|
694
703
|
}
|
|
695
|
-
function m(
|
|
696
|
-
const { componentInstance: O, designerItemElementRef:
|
|
697
|
-
return !O || !O.value ? null : O.value.canMove ?
|
|
704
|
+
function m(v = e) {
|
|
705
|
+
const { componentInstance: O, designerItemElementRef: S } = v;
|
|
706
|
+
return !O || !O.value ? null : O.value.canMove ? S : m(v.parent);
|
|
698
707
|
}
|
|
699
|
-
function
|
|
700
|
-
return !!t && t.canAccepts(
|
|
708
|
+
function C(v) {
|
|
709
|
+
return !!t && t.canAccepts(v);
|
|
701
710
|
}
|
|
702
|
-
function
|
|
711
|
+
function l() {
|
|
703
712
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
704
713
|
}
|
|
705
|
-
function
|
|
714
|
+
function i() {
|
|
706
715
|
}
|
|
707
|
-
function u(
|
|
716
|
+
function u(v, O) {
|
|
708
717
|
O && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(O);
|
|
709
718
|
}
|
|
710
|
-
function
|
|
711
|
-
const { componentType:
|
|
712
|
-
let
|
|
713
|
-
t && t.onResolveNewComponentSchema && (
|
|
714
|
-
const
|
|
715
|
-
return
|
|
719
|
+
function b(v, O) {
|
|
720
|
+
const { componentType: S } = v;
|
|
721
|
+
let h = q(S, v, O);
|
|
722
|
+
t && t.onResolveNewComponentSchema && (h = t.onResolveNewComponentSchema(v, h));
|
|
723
|
+
const A = S.toLowerCase().replace("-", "_");
|
|
724
|
+
return h && !h.id && h.type === S && (h.id = `${A}_${Math.random().toString().slice(2, 6)}`), h;
|
|
716
725
|
}
|
|
717
|
-
function
|
|
718
|
-
const
|
|
719
|
-
|
|
720
|
-
let
|
|
721
|
-
t && t.onAcceptNewChildElement && (
|
|
722
|
-
const
|
|
723
|
-
return
|
|
726
|
+
function w(v, O) {
|
|
727
|
+
const S = String(v.getAttribute("data-controltype")), h = v.getAttribute("data-feature"), A = h ? JSON.parse(h) : {};
|
|
728
|
+
A.parentComponentInstance = o.value;
|
|
729
|
+
let T = q(S, A);
|
|
730
|
+
t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(v, O, T));
|
|
731
|
+
const M = S.toLowerCase().replace("-", "_");
|
|
732
|
+
return T && !T.id && T.type === S && (T.id = `${M}_${Math.random().toString().slice(2, 6)}`), T;
|
|
724
733
|
}
|
|
725
|
-
function
|
|
734
|
+
function j(v) {
|
|
726
735
|
}
|
|
727
|
-
function
|
|
736
|
+
function N(...v) {
|
|
728
737
|
if (t && t.getPropsConfig)
|
|
729
|
-
return t.getPropsConfig(...
|
|
738
|
+
return t.getPropsConfig(...v);
|
|
730
739
|
}
|
|
731
|
-
return
|
|
732
|
-
canMove:
|
|
733
|
-
canSelectParent:
|
|
734
|
-
canDelete:
|
|
735
|
-
canNested: !
|
|
740
|
+
return o.value = {
|
|
741
|
+
canMove: a(),
|
|
742
|
+
canSelectParent: s(),
|
|
743
|
+
canDelete: r(),
|
|
744
|
+
canNested: !g(),
|
|
736
745
|
contents: e == null ? void 0 : e.schema.contents,
|
|
737
746
|
elementRef: n,
|
|
738
|
-
parent: (
|
|
747
|
+
parent: (L = e == null ? void 0 : e.parent) == null ? void 0 : L.componentInstance,
|
|
739
748
|
schema: e == null ? void 0 : e.schema,
|
|
740
|
-
styles:
|
|
741
|
-
designerClass:
|
|
742
|
-
canAccepts:
|
|
743
|
-
getBelongedComponentInstance:
|
|
749
|
+
styles: c,
|
|
750
|
+
designerClass: y,
|
|
751
|
+
canAccepts: C,
|
|
752
|
+
getBelongedComponentInstance: d,
|
|
744
753
|
getDraggableDesignItemElement: m,
|
|
745
|
-
getDraggingDisplayText:
|
|
746
|
-
getPropConfig:
|
|
747
|
-
getDragScopeElement:
|
|
754
|
+
getDraggingDisplayText: l,
|
|
755
|
+
getPropConfig: N,
|
|
756
|
+
getDragScopeElement: i,
|
|
748
757
|
onAcceptMovedChildElement: u,
|
|
749
|
-
onAcceptNewChildElement:
|
|
750
|
-
onChildElementMovedOut:
|
|
751
|
-
addNewChildComponentSchema:
|
|
752
|
-
updateDragAndDropRules:
|
|
753
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
754
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
755
|
-
},
|
|
758
|
+
onAcceptNewChildElement: w,
|
|
759
|
+
onChildElementMovedOut: j,
|
|
760
|
+
addNewChildComponentSchema: b,
|
|
761
|
+
updateDragAndDropRules: p,
|
|
762
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || k(!1),
|
|
763
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || k(!1)
|
|
764
|
+
}, o;
|
|
756
765
|
}
|
|
757
|
-
function
|
|
766
|
+
function _e() {
|
|
758
767
|
function n(e) {
|
|
759
|
-
var
|
|
768
|
+
var c, y;
|
|
760
769
|
if (!e)
|
|
761
770
|
return !1;
|
|
762
|
-
const t = ((
|
|
771
|
+
const t = ((c = e.targetContainer) == null ? void 0 : c.componentInstance) && e.targetContainer.componentInstance.value;
|
|
763
772
|
if (!t)
|
|
764
773
|
return !1;
|
|
765
|
-
const
|
|
774
|
+
const p = (y = t.schema.appearance) == null ? void 0 : y.class;
|
|
766
775
|
if (e.controlCategory === "input" || e.controlType === "form-group") {
|
|
767
|
-
const
|
|
768
|
-
if (t.schema.type !== "response-layout-item" && !
|
|
776
|
+
const o = t.schema.type, a = (o === "response-form" || o === "content-container") && p && p.includes("farris-form");
|
|
777
|
+
if (t.schema.type !== "response-layout-item" && !a)
|
|
769
778
|
return !1;
|
|
770
779
|
}
|
|
771
780
|
return e.controlType !== "field-set";
|
|
@@ -774,7 +783,7 @@ function We() {
|
|
|
774
783
|
basalDragulaRuleForContainer: n
|
|
775
784
|
};
|
|
776
785
|
}
|
|
777
|
-
const
|
|
786
|
+
const Xe = "https://json-schema.org/draft/2020-12/schema", He = "https://farris-design.gitee.io/dragging-rules.schema.json", Je = "Dragging Rules", Qe = "The rules of designer canvas", Ye = "object", Ze = {
|
|
778
787
|
"f-page": {
|
|
779
788
|
description: "The root class of page designed by farris.",
|
|
780
789
|
type: "object",
|
|
@@ -1193,6 +1202,80 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
|
|
|
1193
1202
|
"f-list-nav-left": {
|
|
1194
1203
|
description: "",
|
|
1195
1204
|
type: "object"
|
|
1205
|
+
},
|
|
1206
|
+
"f-struct-data-grid-in-nav": {
|
|
1207
|
+
description: "",
|
|
1208
|
+
type: "object",
|
|
1209
|
+
properties: {
|
|
1210
|
+
contents: {
|
|
1211
|
+
type: "object",
|
|
1212
|
+
properties: {
|
|
1213
|
+
"f-section-form": {
|
|
1214
|
+
description: "",
|
|
1215
|
+
type: "object",
|
|
1216
|
+
properties: {
|
|
1217
|
+
rules: {
|
|
1218
|
+
type: "object",
|
|
1219
|
+
properties: {
|
|
1220
|
+
canAccept: {
|
|
1221
|
+
type: "boolean",
|
|
1222
|
+
const: !1
|
|
1223
|
+
},
|
|
1224
|
+
fixed: {
|
|
1225
|
+
type: "boolean",
|
|
1226
|
+
const: !0
|
|
1227
|
+
},
|
|
1228
|
+
hidePadding: {
|
|
1229
|
+
type: "boolean",
|
|
1230
|
+
const: !0
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
"f-section-grid": {
|
|
1237
|
+
description: "",
|
|
1238
|
+
type: "object",
|
|
1239
|
+
properties: {
|
|
1240
|
+
rules: {
|
|
1241
|
+
type: "object",
|
|
1242
|
+
properties: {
|
|
1243
|
+
canAccept: {
|
|
1244
|
+
type: "boolean",
|
|
1245
|
+
const: !1
|
|
1246
|
+
},
|
|
1247
|
+
fixed: {
|
|
1248
|
+
type: "boolean",
|
|
1249
|
+
const: !0
|
|
1250
|
+
},
|
|
1251
|
+
hidePadding: {
|
|
1252
|
+
type: "boolean",
|
|
1253
|
+
const: !0
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
rules: {
|
|
1262
|
+
type: "object",
|
|
1263
|
+
properties: {
|
|
1264
|
+
canAccept: {
|
|
1265
|
+
type: "boolean",
|
|
1266
|
+
const: !1
|
|
1267
|
+
},
|
|
1268
|
+
fixed: {
|
|
1269
|
+
type: "boolean",
|
|
1270
|
+
const: !0
|
|
1271
|
+
},
|
|
1272
|
+
hidePadding: {
|
|
1273
|
+
type: "boolean",
|
|
1274
|
+
const: !0
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1196
1279
|
}
|
|
1197
1280
|
}
|
|
1198
1281
|
}
|
|
@@ -1338,306 +1421,373 @@ const Ge = "https://json-schema.org/draft/2020-12/schema", qe = "https://farris-
|
|
|
1338
1421
|
description: "",
|
|
1339
1422
|
type: "object"
|
|
1340
1423
|
}
|
|
1341
|
-
},
|
|
1342
|
-
$schema:
|
|
1343
|
-
$id:
|
|
1344
|
-
title:
|
|
1345
|
-
description:
|
|
1346
|
-
type:
|
|
1347
|
-
properties:
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1352
|
-
var T;
|
|
1424
|
+
}, Re = {
|
|
1425
|
+
$schema: Xe,
|
|
1426
|
+
$id: He,
|
|
1427
|
+
title: Je,
|
|
1428
|
+
description: Qe,
|
|
1429
|
+
type: Ye,
|
|
1430
|
+
properties: Ze
|
|
1431
|
+
}, Q = /* @__PURE__ */ new Map();
|
|
1432
|
+
function Ke() {
|
|
1433
|
+
function n(l, i, u, b) {
|
|
1434
|
+
var w;
|
|
1353
1435
|
if (typeof u == "number")
|
|
1354
|
-
return ((
|
|
1436
|
+
return ((w = b[l]) == null ? void 0 : w.length) === u;
|
|
1355
1437
|
if (typeof u == "object") {
|
|
1356
|
-
const
|
|
1357
|
-
if (
|
|
1358
|
-
return Number(
|
|
1359
|
-
if (
|
|
1360
|
-
return Number(
|
|
1361
|
-
if (
|
|
1362
|
-
return Number(
|
|
1438
|
+
const j = Object.keys(u)[0], N = u[j];
|
|
1439
|
+
if (j === "not")
|
|
1440
|
+
return Number(b[l].length) !== Number(N);
|
|
1441
|
+
if (j === "moreThan")
|
|
1442
|
+
return Number(b[l].length) >= Number(N);
|
|
1443
|
+
if (j === "lessThan")
|
|
1444
|
+
return Number(b[l].length) <= Number(N);
|
|
1363
1445
|
}
|
|
1364
1446
|
return !1;
|
|
1365
1447
|
}
|
|
1366
|
-
function e(
|
|
1367
|
-
return typeof u == "boolean" ?
|
|
1448
|
+
function e(l, i, u, b) {
|
|
1449
|
+
return typeof u == "boolean" ? b.childrenClassList.includes(i) === !!u : !1;
|
|
1368
1450
|
}
|
|
1369
|
-
function t(
|
|
1370
|
-
return typeof u == "boolean" ?
|
|
1451
|
+
function t(l, i, u, b) {
|
|
1452
|
+
return typeof u == "boolean" ? b.parentClassList.includes(i) === !!u : !1;
|
|
1371
1453
|
}
|
|
1372
|
-
function l
|
|
1373
|
-
return typeof u == "boolean" ?
|
|
1454
|
+
function p(l, i, u, b) {
|
|
1455
|
+
return typeof u == "boolean" ? b.parentClassList.includes(i) === !!u : !1;
|
|
1374
1456
|
}
|
|
1375
|
-
const
|
|
1457
|
+
const c = /* @__PURE__ */ new Map([
|
|
1376
1458
|
["length", n],
|
|
1377
1459
|
["hasChildren", e],
|
|
1378
|
-
["hasSibling",
|
|
1460
|
+
["hasSibling", p],
|
|
1379
1461
|
["hasParent", t]
|
|
1380
1462
|
]);
|
|
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:
|
|
1463
|
+
function y(l, i) {
|
|
1464
|
+
const u = l;
|
|
1465
|
+
return typeof i == "number" ? [{ target: u, operator: "length", param: null, value: Number(i) }] : typeof i == "object" ? Object.keys(i).map((b) => {
|
|
1466
|
+
if (b === "length")
|
|
1467
|
+
return { target: u, operator: "length", param: null, value: i[b] };
|
|
1468
|
+
const w = b, j = i[b];
|
|
1469
|
+
return { target: u, operator: l === "children" ? "hasChildren" : l === "parent" ? "hasParent" : "hasSibling", param: w, value: j };
|
|
1388
1470
|
}) : [];
|
|
1389
1471
|
}
|
|
1390
|
-
function
|
|
1391
|
-
if (
|
|
1392
|
-
const u =
|
|
1393
|
-
return u && u(
|
|
1472
|
+
function o(l, i) {
|
|
1473
|
+
if (c.has(l.operator)) {
|
|
1474
|
+
const u = c.get(l.operator);
|
|
1475
|
+
return u && u(l.target, l.param, l.value, i) || !1;
|
|
1394
1476
|
}
|
|
1395
1477
|
return !1;
|
|
1396
1478
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return Object.keys(
|
|
1399
|
-
const
|
|
1400
|
-
return
|
|
1401
|
-
}, []).reduce((
|
|
1479
|
+
function a(l, i) {
|
|
1480
|
+
return Object.keys(l).reduce((j, N) => {
|
|
1481
|
+
const L = y(N, l[N]);
|
|
1482
|
+
return j.push(...L), j;
|
|
1483
|
+
}, []).reduce((j, N) => j && o(N, i), !0);
|
|
1402
1484
|
}
|
|
1403
|
-
function
|
|
1404
|
-
const u = Object.keys(
|
|
1405
|
-
return
|
|
1485
|
+
function s(l, i) {
|
|
1486
|
+
const u = Object.keys(l), b = u.includes("allOf"), w = u.includes("anyOf"), j = b || w, v = (j ? l[j ? b ? "allOf" : "anyOf" : "allOf"] : [l]).map((S) => a(S, i));
|
|
1487
|
+
return b ? !v.includes(!1) : v.includes(!0);
|
|
1406
1488
|
}
|
|
1407
|
-
function
|
|
1408
|
-
const u =
|
|
1409
|
-
return u ? typeof u == "boolean" ? u : typeof u == "object" ?
|
|
1489
|
+
function r(l, i) {
|
|
1490
|
+
const u = l.const;
|
|
1491
|
+
return u ? typeof u == "boolean" ? u : typeof u == "object" ? s(u, i) : !1 : !1;
|
|
1410
1492
|
}
|
|
1411
|
-
function
|
|
1412
|
-
return (
|
|
1493
|
+
function g(l) {
|
|
1494
|
+
return (i) => {
|
|
1413
1495
|
const u = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
1414
|
-
return
|
|
1415
|
-
const
|
|
1416
|
-
return
|
|
1496
|
+
return l && l.properties && Object.keys(l.properties).reduce((b, w) => {
|
|
1497
|
+
const j = l.properties[w];
|
|
1498
|
+
return b[w] = r(j, i), b;
|
|
1417
1499
|
}, u), u;
|
|
1418
1500
|
};
|
|
1419
1501
|
}
|
|
1420
|
-
function
|
|
1421
|
-
if (
|
|
1422
|
-
const { rules:
|
|
1423
|
-
u.set(
|
|
1424
|
-
(
|
|
1502
|
+
function d(l, i, u) {
|
|
1503
|
+
if (i.type === "object" && i.properties) {
|
|
1504
|
+
const { rules: b, contents: w } = i.properties;
|
|
1505
|
+
u.set(l, g(b)), w && Object.keys(w.properties).forEach(
|
|
1506
|
+
(j) => d(j, w.properties[j], u)
|
|
1425
1507
|
);
|
|
1426
1508
|
}
|
|
1427
1509
|
}
|
|
1428
1510
|
function m() {
|
|
1429
|
-
const { properties:
|
|
1430
|
-
Object.keys(
|
|
1431
|
-
|
|
1511
|
+
const { properties: l } = Re;
|
|
1512
|
+
Object.keys(l).forEach((i) => {
|
|
1513
|
+
d(i, l[i], Q);
|
|
1432
1514
|
});
|
|
1433
1515
|
}
|
|
1434
|
-
function
|
|
1516
|
+
function C(l, i) {
|
|
1435
1517
|
const u = { canAccept: !0, fixed: !1, hidePadding: !0 };
|
|
1436
|
-
return
|
|
1518
|
+
return Q.has(l) ? Q.get(l)(i) : u;
|
|
1519
|
+
}
|
|
1520
|
+
return m(), { getRuleValue: C };
|
|
1521
|
+
}
|
|
1522
|
+
function et(n, e) {
|
|
1523
|
+
function t(s, r = null) {
|
|
1524
|
+
if (r) return r;
|
|
1525
|
+
const g = n.getComponentById(e);
|
|
1526
|
+
return n.selectNode(g, (d) => d.id === s);
|
|
1527
|
+
}
|
|
1528
|
+
function p(s) {
|
|
1529
|
+
const r = n.getComponentById(s);
|
|
1530
|
+
return !(!r || !r.componentType || !r.componentType.startsWith("form"));
|
|
1531
|
+
}
|
|
1532
|
+
function c(s) {
|
|
1533
|
+
const r = t(s.id), g = he(n), d = [];
|
|
1534
|
+
g.getResonseFormLayoutConfig(r, d, 1);
|
|
1535
|
+
const m = d.map((N) => N.columnInSM), C = d.map((N) => N.columnInMD), l = d.map((N) => N.columnInLG), i = d.map((N) => N.columnInEL), u = y(m) ? m[0] : 0, b = y(C) ? C[0] : 0, w = y(l) ? l[0] : 0, j = y(i) ? i[0] : 0;
|
|
1536
|
+
return {
|
|
1537
|
+
uniqueColClassInSM: u,
|
|
1538
|
+
uniqueColClassInMD: b,
|
|
1539
|
+
uniqueColClassInLG: w,
|
|
1540
|
+
uniqueColClassInEL: j
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
function y(s) {
|
|
1544
|
+
const r = new Set(s);
|
|
1545
|
+
return Array.from(r).length === 1;
|
|
1546
|
+
}
|
|
1547
|
+
function o(s, r, g) {
|
|
1548
|
+
s = t(g, s), s.contents.forEach((d) => {
|
|
1549
|
+
if (d.type === ve.fieldset.type) {
|
|
1550
|
+
o(d, r, d.id);
|
|
1551
|
+
return;
|
|
1552
|
+
}
|
|
1553
|
+
d.appearance || (d.appearance = {});
|
|
1554
|
+
const m = d.appearance.class;
|
|
1555
|
+
d.appearance.class = a(m, r);
|
|
1556
|
+
});
|
|
1557
|
+
}
|
|
1558
|
+
function a(s, r) {
|
|
1559
|
+
let g, d, m, C, l = [];
|
|
1560
|
+
if (s) {
|
|
1561
|
+
const N = s.split(" "), L = N.filter((v) => v.startsWith("col-"));
|
|
1562
|
+
g = L.find((v) => /^col-([1-9]|10|11|12)$/.test(v)), d = L.find((v) => /^col-md-([1-9]|10|11|12)$/.test(v)), m = L.find((v) => /^col-xl-([1-9]|10|11|12)$/.test(v)), C = L.find((v) => /^col-el-([1-9]|10|11|12)$/.test(v)), l = N.filter((v) => !v.startsWith("col-"));
|
|
1563
|
+
}
|
|
1564
|
+
const i = r.uniqueColClassInSM ? "col-" + r.uniqueColClassInSM : g, u = r.uniqueColClassInMD ? "col-md-" + r.uniqueColClassInMD : d, b = r.uniqueColClassInLG ? "col-xl-" + r.uniqueColClassInLG : m, w = r.uniqueColClassInEL ? "col-el-" + r.uniqueColClassInEL : C;
|
|
1565
|
+
return [i, u, b, w].concat(l).join(" ");
|
|
1566
|
+
}
|
|
1567
|
+
return { checkIsInFormComponent: p, assembleUnifiedLayoutContext: c, changeFormControlsByUnifiedLayoutConfig: o };
|
|
1568
|
+
}
|
|
1569
|
+
class tt extends be {
|
|
1570
|
+
constructor(e, t) {
|
|
1571
|
+
super(e, t);
|
|
1572
|
+
}
|
|
1573
|
+
getPropertyConfig(e, t) {
|
|
1574
|
+
var p = this;
|
|
1575
|
+
this.propertyConfig.categories.basic = this.getBasicPropConfig(e);
|
|
1576
|
+
const { checkIsInFormComponent: c, assembleUnifiedLayoutContext: y, changeFormControlsByUnifiedLayoutConfig: o } = et(this.formSchemaUtils, this.componentId), a = this.getAppearanceConfig(e);
|
|
1577
|
+
return a.properties.unifiedLayout = {
|
|
1578
|
+
title: "统一布局配置",
|
|
1579
|
+
description: "统一配置卡片区域内所有控件的宽度,只支持标准模式",
|
|
1580
|
+
visible: c(this.componentId),
|
|
1581
|
+
refreshPanelAfterChanged: !0,
|
|
1582
|
+
editor: {
|
|
1583
|
+
type: "response-form-layout-setting",
|
|
1584
|
+
initialState: y(e)
|
|
1585
|
+
}
|
|
1586
|
+
}, a.setPropertyRelates = function(s, r) {
|
|
1587
|
+
if (s)
|
|
1588
|
+
switch (s && s.propertyID) {
|
|
1589
|
+
case "unifiedLayout": {
|
|
1590
|
+
o(null, s.propertyValue, e.id), p.updateElementByParentContainer(e.id, t);
|
|
1591
|
+
break;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
}, this.propertyConfig.categories.appearance = a, this.propertyConfig;
|
|
1437
1595
|
}
|
|
1438
|
-
return m(), { getRuleValue: P };
|
|
1439
1596
|
}
|
|
1440
|
-
function
|
|
1441
|
-
var
|
|
1442
|
-
const t = n.schema,
|
|
1443
|
-
let
|
|
1444
|
-
function h
|
|
1445
|
-
return
|
|
1446
|
-
}
|
|
1447
|
-
function m(
|
|
1448
|
-
return !(!
|
|
1449
|
-
}
|
|
1450
|
-
function
|
|
1451
|
-
|
|
1452
|
-
const
|
|
1453
|
-
const
|
|
1454
|
-
return
|
|
1455
|
-
}, []) : [],
|
|
1456
|
-
|
|
1457
|
-
componentClass:
|
|
1458
|
-
componentClassList:
|
|
1459
|
-
childContents:
|
|
1597
|
+
function nt(n, e) {
|
|
1598
|
+
var S;
|
|
1599
|
+
const t = n.schema, p = (S = n.parent) == null ? void 0 : S.schema, c = Ke(), y = k(!1), o = k(!1);
|
|
1600
|
+
let a = !0, s = !1, r, g = !1;
|
|
1601
|
+
function d(h) {
|
|
1602
|
+
return r && r.componentClassList && r.componentClassList.includes("f-form-layout") && r.componentClassList.includes("farris-form") ? h.sourceType === "control" && h.controlCategory === "input" || h.sourceType === "move" && h.controlType === "form-group" : !0;
|
|
1603
|
+
}
|
|
1604
|
+
function m(h) {
|
|
1605
|
+
return !(!_e().basalDragulaRuleForContainer(h) || !a || !d(h));
|
|
1606
|
+
}
|
|
1607
|
+
function C() {
|
|
1608
|
+
y.value = !1, o.value = !1;
|
|
1609
|
+
const h = t, A = h.appearance && h.appearance.class || "", T = A.split(" "), M = h.contents || [], D = M.length ? M[0] : null, F = D && D.appearance ? D.appearance.class : "", x = F ? F.split(" ") : [], I = M.length ? M.reduce((G, J) => {
|
|
1610
|
+
const R = J && J.appearance ? J.appearance.class : "", ue = R ? R.split(" ") : [];
|
|
1611
|
+
return G.push(...ue), G;
|
|
1612
|
+
}, []) : [], $ = p, V = $ && $.appearance && $.appearance.class || "", E = V ? V.split(" ") : [];
|
|
1613
|
+
r = {
|
|
1614
|
+
componentClass: A,
|
|
1615
|
+
componentClassList: T,
|
|
1616
|
+
childContents: M,
|
|
1460
1617
|
firstChildContent: D,
|
|
1461
|
-
firstChildClass:
|
|
1462
|
-
firstChildClassList:
|
|
1463
|
-
parent:
|
|
1618
|
+
firstChildClass: F,
|
|
1619
|
+
firstChildClassList: x,
|
|
1620
|
+
parent: $,
|
|
1464
1621
|
parentClass: V,
|
|
1465
|
-
parentClassList:
|
|
1466
|
-
children:
|
|
1467
|
-
childrenClassList:
|
|
1622
|
+
parentClassList: E,
|
|
1623
|
+
children: M,
|
|
1624
|
+
childrenClassList: I
|
|
1468
1625
|
};
|
|
1469
|
-
const { canAccept:
|
|
1470
|
-
return
|
|
1626
|
+
const { canAccept: X, fixed: H, hidePadding: z } = c.getRuleValue(T[0], r);
|
|
1627
|
+
return a = X, s = z, g = H, !0;
|
|
1471
1628
|
}
|
|
1472
|
-
function
|
|
1473
|
-
|
|
1629
|
+
function l(h) {
|
|
1630
|
+
de();
|
|
1474
1631
|
}
|
|
1475
|
-
function
|
|
1632
|
+
function i() {
|
|
1476
1633
|
return t.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
1477
1634
|
}
|
|
1478
|
-
function u(
|
|
1479
|
-
const
|
|
1480
|
-
if ((
|
|
1481
|
-
const { label:
|
|
1482
|
-
return
|
|
1635
|
+
function u(h, A) {
|
|
1636
|
+
const T = t;
|
|
1637
|
+
if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1638
|
+
const { label: F } = h, x = q("form-group");
|
|
1639
|
+
return x.editor = A, x.label = F, b(x), delete x.editor.id, delete x.editor.binding, delete x.editor.appearance, delete x.editor.visible, x;
|
|
1483
1640
|
}
|
|
1484
|
-
return
|
|
1485
|
-
}
|
|
1486
|
-
function
|
|
1487
|
-
const
|
|
1488
|
-
if (
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1641
|
+
return A;
|
|
1642
|
+
}
|
|
1643
|
+
function b(h) {
|
|
1644
|
+
const A = n.componentInstance.value.getBelongedComponentInstance(n.componentInstance);
|
|
1645
|
+
if (A && A.schema && A.schema.componentType) {
|
|
1646
|
+
const T = A.schema.formColumns;
|
|
1647
|
+
let M = w(T);
|
|
1648
|
+
M = e.formSchemaUtils.getControlClassByFormUnifiedLayout(M, "", n.schema), h.appearance || (h.appearance = {}), h.appearance.class = M;
|
|
1491
1649
|
}
|
|
1492
1650
|
}
|
|
1493
|
-
function
|
|
1494
|
-
let
|
|
1495
|
-
switch (
|
|
1496
|
-
case
|
|
1497
|
-
|
|
1651
|
+
function w(h) {
|
|
1652
|
+
let A = "";
|
|
1653
|
+
switch (h) {
|
|
1654
|
+
case 1: {
|
|
1655
|
+
A = "col-12 col-md-12 col-xl-12 col-el-12";
|
|
1498
1656
|
break;
|
|
1499
1657
|
}
|
|
1500
|
-
case
|
|
1501
|
-
|
|
1658
|
+
case 2: {
|
|
1659
|
+
A = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1502
1660
|
break;
|
|
1503
1661
|
}
|
|
1504
|
-
case
|
|
1505
|
-
|
|
1662
|
+
case 3: {
|
|
1663
|
+
A = "col-12 col-md-6 col-xl-4 col-el-4";
|
|
1506
1664
|
break;
|
|
1507
1665
|
}
|
|
1508
|
-
case
|
|
1509
|
-
|
|
1510
|
-
break;
|
|
1511
|
-
}
|
|
1512
|
-
case "form-col-4": {
|
|
1513
|
-
v = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1514
|
-
break;
|
|
1515
|
-
}
|
|
1516
|
-
case "form-col-6": {
|
|
1517
|
-
v = "col-12 col-md-6 col-xl-6 col-el-6";
|
|
1518
|
-
break;
|
|
1519
|
-
}
|
|
1520
|
-
case "frame": {
|
|
1521
|
-
v = "col-12";
|
|
1666
|
+
case 4: {
|
|
1667
|
+
A = "col-12 col-md-6 col-xl-3 col-el-2";
|
|
1522
1668
|
break;
|
|
1523
1669
|
}
|
|
1524
1670
|
}
|
|
1525
|
-
return
|
|
1671
|
+
return A;
|
|
1526
1672
|
}
|
|
1527
|
-
function
|
|
1528
|
-
const
|
|
1529
|
-
if ((
|
|
1530
|
-
const
|
|
1531
|
-
return
|
|
1673
|
+
function j(h, A, T) {
|
|
1674
|
+
const M = t;
|
|
1675
|
+
if ((M.appearance && M.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
1676
|
+
const x = String(h.innerText), I = q("form-group");
|
|
1677
|
+
return I.editor = T, I.label = x, I;
|
|
1532
1678
|
}
|
|
1533
|
-
return
|
|
1679
|
+
return T;
|
|
1680
|
+
}
|
|
1681
|
+
function N() {
|
|
1682
|
+
return !g;
|
|
1534
1683
|
}
|
|
1535
|
-
function
|
|
1536
|
-
return !
|
|
1684
|
+
function L() {
|
|
1685
|
+
return !g;
|
|
1537
1686
|
}
|
|
1538
|
-
function
|
|
1539
|
-
return
|
|
1687
|
+
function v() {
|
|
1688
|
+
return s;
|
|
1540
1689
|
}
|
|
1541
|
-
function
|
|
1542
|
-
return
|
|
1690
|
+
function O(h) {
|
|
1691
|
+
return new tt(h, e).getPropertyConfig(t, n.componentInstance.value);
|
|
1543
1692
|
}
|
|
1544
1693
|
return {
|
|
1545
1694
|
canAccepts: m,
|
|
1546
|
-
checkCanDeleteComponent:
|
|
1547
|
-
checkCanMoveComponent:
|
|
1548
|
-
getStyles:
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1695
|
+
checkCanDeleteComponent: L,
|
|
1696
|
+
checkCanMoveComponent: N,
|
|
1697
|
+
getStyles: i,
|
|
1698
|
+
getPropsConfig: O,
|
|
1699
|
+
hideNestedPaddingInDesginerView: v,
|
|
1700
|
+
onAcceptNewChildElement: j,
|
|
1701
|
+
onAcceptMovedChildElement: l,
|
|
1702
|
+
resolveComponentContext: C,
|
|
1553
1703
|
onResolveNewComponentSchema: u,
|
|
1554
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1555
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1704
|
+
triggerBelongedComponentToMoveWhenMoved: y,
|
|
1705
|
+
triggerBelongedComponentToDeleteWhenDeleted: o
|
|
1556
1706
|
};
|
|
1557
1707
|
}
|
|
1558
|
-
const
|
|
1708
|
+
const ot = /* @__PURE__ */ ee({
|
|
1559
1709
|
name: "FPagination",
|
|
1560
1710
|
props: Z,
|
|
1561
1711
|
emits: ["pageIndexChanged", "pageSizeChanged"],
|
|
1562
1712
|
setup(n, e) {
|
|
1563
|
-
var
|
|
1564
|
-
const t =
|
|
1565
|
-
|
|
1566
|
-
|
|
1713
|
+
var z;
|
|
1714
|
+
const t = k(!1), p = k(n.mode), c = k(""), y = k(!1), o = k(n.pageSize), a = k(n.currentPage), s = k(n.totalItems), r = k(), g = ge("design-item-context"), d = nt(g.schema, (z = g.parent) == null ? void 0 : z.schema), m = Ue(r, g, d);
|
|
1715
|
+
ye(() => {
|
|
1716
|
+
r.value.componentInstance = m;
|
|
1567
1717
|
}), e.expose(m.value);
|
|
1568
1718
|
const {
|
|
1569
|
-
pages:
|
|
1570
|
-
updatePages:
|
|
1571
|
-
} =
|
|
1572
|
-
renderFirstPage:
|
|
1573
|
-
renderPreviousPage:
|
|
1574
|
-
} =
|
|
1575
|
-
renderLastPage:
|
|
1576
|
-
renderNextPage:
|
|
1577
|
-
} =
|
|
1578
|
-
renderPageInfo:
|
|
1579
|
-
} =
|
|
1580
|
-
renderPageList:
|
|
1581
|
-
} =
|
|
1582
|
-
renderPageNumbers:
|
|
1583
|
-
} =
|
|
1584
|
-
renderGotoButton:
|
|
1585
|
-
} =
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
}), B(s, () => {
|
|
1589
|
-
e.emit("pageIndexChanged", s.value);
|
|
1719
|
+
pages: C,
|
|
1720
|
+
updatePages: l
|
|
1721
|
+
} = pe(), i = P(() => a.value === 1), u = P(() => [20, 50, 100]), b = P(() => Math.ceil(s.value / o.value)), w = P(() => a.value === b.value), j = P(() => !0), N = P(() => a.value > 1), L = P(() => !(y.value && C.value.length <= 1)), v = P(() => !0), O = P(() => !0), S = P(() => !0), h = P(() => !0), {
|
|
1722
|
+
renderFirstPage: A,
|
|
1723
|
+
renderPreviousPage: T
|
|
1724
|
+
} = ie(a, i, N), {
|
|
1725
|
+
renderLastPage: M,
|
|
1726
|
+
renderNextPage: D
|
|
1727
|
+
} = ae(a, w, b), {
|
|
1728
|
+
renderPageInfo: F
|
|
1729
|
+
} = re(c, s), {
|
|
1730
|
+
renderPageList: x
|
|
1731
|
+
} = ce(a, o, u, s), {
|
|
1732
|
+
renderPageNumbers: I
|
|
1733
|
+
} = le(a, C), {
|
|
1734
|
+
renderGotoButton: $
|
|
1735
|
+
} = se(a, b);
|
|
1736
|
+
l(a.value, o.value, s.value, 7), B([a, o], () => {
|
|
1737
|
+
l(a.value, o.value, s.value, 7);
|
|
1590
1738
|
}), B(a, () => {
|
|
1591
|
-
e.emit("
|
|
1739
|
+
e.emit("pageIndexChanged", a.value);
|
|
1740
|
+
}), B(o, () => {
|
|
1741
|
+
e.emit("pageSizeChanged", o.value);
|
|
1592
1742
|
});
|
|
1593
|
-
const
|
|
1743
|
+
const V = P(() => ({
|
|
1594
1744
|
"ngx-pagination": !0,
|
|
1595
1745
|
pagination: !0,
|
|
1596
1746
|
responsive: t.value,
|
|
1597
|
-
"pager-viewmode-default":
|
|
1598
|
-
"pager-viewmode-simple":
|
|
1599
|
-
})), E =
|
|
1747
|
+
"pager-viewmode-default": p.value === "default",
|
|
1748
|
+
"pager-viewmode-simple": p.value === "simple"
|
|
1749
|
+
})), E = P(() => ({
|
|
1600
1750
|
position: "relative",
|
|
1601
|
-
"justify-content":
|
|
1751
|
+
"justify-content": c.value === "center" ? "center" : "start"
|
|
1602
1752
|
}));
|
|
1603
|
-
function
|
|
1604
|
-
return
|
|
1753
|
+
function X() {
|
|
1754
|
+
return f(W, null, [v.value && F(), O.value && x(), h.value && A(), h.value && T(), S.value && I(), h.value && D(), h.value && M(), j.value && $()]);
|
|
1605
1755
|
}
|
|
1606
|
-
function
|
|
1607
|
-
return
|
|
1756
|
+
function H() {
|
|
1757
|
+
return f(W, null, [f("li", {
|
|
1608
1758
|
class: "page-item d-flex flex-fill"
|
|
1609
|
-
}, null),
|
|
1759
|
+
}, null), h.value && A(), h.value && T(), $(), f("li", {
|
|
1610
1760
|
class: "page-item page-separator",
|
|
1611
1761
|
style: "margin-left: 10px"
|
|
1612
|
-
}, [
|
|
1762
|
+
}, [f("span", {
|
|
1613
1763
|
style: "font-size: 15px; font-weight: 200;"
|
|
1614
|
-
}, [
|
|
1764
|
+
}, [U(" /")])]), f("li", {
|
|
1615
1765
|
class: "page-item page-total",
|
|
1616
1766
|
style: "margin-left: 5px"
|
|
1617
|
-
}, [
|
|
1767
|
+
}, [f("span", {
|
|
1618
1768
|
style: "font-size: 16px; font-weight: 600;"
|
|
1619
|
-
}, [
|
|
1769
|
+
}, [U(" "), b.value])]), h.value && D(), h.value && M()]);
|
|
1620
1770
|
}
|
|
1621
|
-
return () =>
|
|
1622
|
-
ref:
|
|
1771
|
+
return () => f("div", {
|
|
1772
|
+
ref: r,
|
|
1623
1773
|
class: "pagination-container"
|
|
1624
|
-
}, [
|
|
1774
|
+
}, [L.value && f("ul", {
|
|
1625
1775
|
role: "navigation",
|
|
1626
|
-
class:
|
|
1776
|
+
class: V.value,
|
|
1627
1777
|
style: E.value
|
|
1628
|
-
}, [
|
|
1778
|
+
}, [p.value === "default" ? X() : H()])]);
|
|
1629
1779
|
}
|
|
1630
1780
|
});
|
|
1631
|
-
|
|
1632
|
-
n.pagination =
|
|
1781
|
+
_.register = (n, e, t) => {
|
|
1782
|
+
n.pagination = _, e.pagination = oe;
|
|
1633
1783
|
};
|
|
1634
|
-
|
|
1635
|
-
n.pagination =
|
|
1784
|
+
_.registerDesigner = (n, e, t) => {
|
|
1785
|
+
n.pagination = ot, e.pagination = oe;
|
|
1636
1786
|
};
|
|
1637
|
-
const
|
|
1787
|
+
const pt = Ce(_);
|
|
1638
1788
|
export {
|
|
1639
|
-
|
|
1640
|
-
|
|
1789
|
+
_ as FPagination,
|
|
1790
|
+
pt as default,
|
|
1641
1791
|
Z as paginationProps,
|
|
1642
|
-
|
|
1792
|
+
oe as propsResolver
|
|
1643
1793
|
};
|