@farris/ui-vue 1.2.6 → 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 +150 -142
- package/components/avatar/index.esm.js +393 -457
- 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 +491 -554
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +479 -513
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +857 -743
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4883 -5182
- package/components/data-view/index.esm.js +3072 -2949
- package/components/date-picker/index.esm.js +2626 -2689
- 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 +940 -998
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +307 -293
- 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 +1747 -1627
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5877 -6176
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1454 -1524
- 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 +659 -722
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1643 -1524
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6502 -6770
- package/components/mapping-editor/index.esm.js +5639 -5939
- 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 +1098 -1130
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1317
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1479 -1513
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +706 -778
- 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 +453 -516
- 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 +555 -526
- package/components/response-toolbar/index.esm.js +1009 -1247
- package/components/schema-selector/index.esm.js +3261 -3373
- 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 +441 -504
- package/components/tabs/index.esm.js +1849 -2039
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +445 -493
- package/components/time-picker/index.esm.js +1350 -1414
- package/components/transfer/index.esm.js +146 -144
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5948 -6237
- package/components/tree-view/index.esm.js +2381 -2255
- 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 +27221 -26804
- 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/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.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/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
- 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,95 +1,95 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as N, ref as g, computed as y, createVNode as d, Fragment as S, inject as V, onMounted as $ } from "vue";
|
|
2
2
|
import { cloneDeep as q } from "lodash-es";
|
|
3
|
-
import { useDesignerComponent as L } from "
|
|
4
|
-
import { useDesignerRules as W } from "
|
|
3
|
+
import { useDesignerComponent as L } from "../designer-canvas/index.esm.js";
|
|
4
|
+
import { useDesignerRules as W } from "../dynamic-form/index.esm.js";
|
|
5
5
|
const z = {}, G = {};
|
|
6
|
-
function
|
|
7
|
-
const { properties: e, title:
|
|
8
|
-
return
|
|
6
|
+
function B(t) {
|
|
7
|
+
const { properties: e, title: c } = t, r = Object.keys(e).reduce((l, i) => (l[i] = e[i].type === "object" && e[i].properties ? B(e[i]) : q(e[i].default), l), {});
|
|
8
|
+
return r.id = `${c}-${Date.now()}`, r;
|
|
9
9
|
}
|
|
10
10
|
function J(t, e) {
|
|
11
|
-
const
|
|
12
|
-
return Object.keys(t).reduce((
|
|
11
|
+
const c = B(e);
|
|
12
|
+
return Object.keys(t).reduce((r, l) => (r[l] && typeof r[l] == "object" ? Object.assign(r[l], t[l]) : r[l] = t[l], r), c), c;
|
|
13
13
|
}
|
|
14
14
|
function Q(t, e) {
|
|
15
|
-
return Object.keys(t).filter((
|
|
16
|
-
if (e.has(
|
|
17
|
-
const i = e.get(
|
|
15
|
+
return Object.keys(t).filter((r) => t[r] != null).reduce((r, l) => {
|
|
16
|
+
if (e.has(l)) {
|
|
17
|
+
const i = e.get(l);
|
|
18
18
|
if (typeof i == "string")
|
|
19
|
-
|
|
19
|
+
r[i] = t[l];
|
|
20
20
|
else {
|
|
21
|
-
const h = i(
|
|
22
|
-
Object.assign(
|
|
21
|
+
const h = i(l, t[l], t);
|
|
22
|
+
Object.assign(r, h);
|
|
23
23
|
}
|
|
24
24
|
} else
|
|
25
|
-
|
|
26
|
-
return
|
|
25
|
+
r[l] = t[l];
|
|
26
|
+
return r;
|
|
27
27
|
}, {});
|
|
28
28
|
}
|
|
29
|
-
function U(t, e,
|
|
30
|
-
const
|
|
31
|
-
return Q(
|
|
29
|
+
function U(t, e, c = /* @__PURE__ */ new Map()) {
|
|
30
|
+
const r = J(t, e);
|
|
31
|
+
return Q(r, c);
|
|
32
32
|
}
|
|
33
33
|
function X(t = {}) {
|
|
34
|
-
function e(s,
|
|
35
|
-
if (typeof
|
|
36
|
-
return
|
|
37
|
-
if (typeof
|
|
38
|
-
const f = Object.keys(
|
|
34
|
+
function e(s, n, o, a) {
|
|
35
|
+
if (typeof o == "number")
|
|
36
|
+
return a[s].length === o;
|
|
37
|
+
if (typeof o == "object") {
|
|
38
|
+
const f = Object.keys(o)[0], C = o[f];
|
|
39
39
|
if (f === "not")
|
|
40
|
-
return Number(
|
|
40
|
+
return Number(a[s].length) !== Number(C);
|
|
41
41
|
if (f === "moreThan")
|
|
42
|
-
return Number(
|
|
42
|
+
return Number(a[s].length) >= Number(C);
|
|
43
43
|
if (f === "lessThan")
|
|
44
|
-
return Number(
|
|
44
|
+
return Number(a[s].length) <= Number(C);
|
|
45
45
|
}
|
|
46
46
|
return !1;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function c(s, n, o, a) {
|
|
49
|
+
return a[s] && a[s].propertyValue && String(a[s].propertyValue.value) === String(o);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const r = /* @__PURE__ */ new Map([
|
|
52
52
|
["length", e],
|
|
53
|
-
["getProperty",
|
|
53
|
+
["getProperty", c]
|
|
54
54
|
]);
|
|
55
|
-
Object.keys(t).reduce((s,
|
|
56
|
-
function
|
|
57
|
-
const
|
|
58
|
-
return typeof
|
|
59
|
-
if (
|
|
60
|
-
return { target:
|
|
61
|
-
const f =
|
|
62
|
-
return { target:
|
|
55
|
+
Object.keys(t).reduce((s, n) => (s.set(n, t[n]), s), r);
|
|
56
|
+
function l(s, n) {
|
|
57
|
+
const o = s;
|
|
58
|
+
return typeof n == "number" ? [{ target: o, operator: "length", param: null, value: Number(n) }] : typeof n == "boolean" ? [{ target: o, operator: "getProperty", param: s, value: !!n }] : typeof n == "object" ? Object.keys(n).map((a) => {
|
|
59
|
+
if (a === "length")
|
|
60
|
+
return { target: o, operator: "length", param: null, value: n[a] };
|
|
61
|
+
const f = a, C = n[a];
|
|
62
|
+
return { target: o, operator: "getProperty", param: f, value: C };
|
|
63
63
|
}) : [];
|
|
64
64
|
}
|
|
65
65
|
function i(s) {
|
|
66
|
-
return Object.keys(s).reduce((
|
|
67
|
-
const f =
|
|
68
|
-
return
|
|
66
|
+
return Object.keys(s).reduce((o, a) => {
|
|
67
|
+
const f = l(a, s[a]);
|
|
68
|
+
return o.push(...f), o;
|
|
69
69
|
}, []);
|
|
70
70
|
}
|
|
71
|
-
function h(s,
|
|
72
|
-
if (
|
|
73
|
-
const
|
|
74
|
-
return
|
|
71
|
+
function h(s, n) {
|
|
72
|
+
if (r.has(s.operator)) {
|
|
73
|
+
const o = r.get(s.operator);
|
|
74
|
+
return o && o(s.target, s.param, s.value, n) || !1;
|
|
75
75
|
}
|
|
76
76
|
return !1;
|
|
77
77
|
}
|
|
78
|
-
function T(s,
|
|
79
|
-
return i(s).reduce((f, C) => f && h(C,
|
|
78
|
+
function T(s, n) {
|
|
79
|
+
return i(s).reduce((f, C) => f && h(C, n), !0);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const
|
|
83
|
-
return
|
|
81
|
+
function A(s, n) {
|
|
82
|
+
const o = Object.keys(s), a = o.includes("allOf"), f = o.includes("anyOf"), C = a || f, O = (C ? s[C ? a ? "allOf" : "anyOf" : "allOf"] : [s]).map((M) => T(M, n));
|
|
83
|
+
return a ? !O.includes(!1) : O.includes(!0);
|
|
84
84
|
}
|
|
85
|
-
return { parseValueSchema:
|
|
85
|
+
return { parseValueSchema: A };
|
|
86
86
|
}
|
|
87
87
|
const Y = {}, Z = {};
|
|
88
88
|
X();
|
|
89
|
-
function _(t, e,
|
|
90
|
-
return z[e.title] = e, G[e.title] =
|
|
91
|
-
const T = U(h, e,
|
|
92
|
-
return Object.assign(
|
|
89
|
+
function _(t, e, c = /* @__PURE__ */ new Map(), r = (h, T, A) => T, l = {}, i = (h) => h) {
|
|
90
|
+
return z[e.title] = e, G[e.title] = r, Y[e.title] = l, Z[e.title] = i, (h = {}) => {
|
|
91
|
+
const T = U(h, e, c), A = Object.keys(t).reduce((s, n) => (s[n] = t[n].default, s), {});
|
|
92
|
+
return Object.assign(A, T);
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
function K(t, e) {
|
|
@@ -201,7 +201,7 @@ const ee = /* @__PURE__ */ new Map([
|
|
|
201
201
|
properties: ae,
|
|
202
202
|
required: le
|
|
203
203
|
};
|
|
204
|
-
function ie(t, e,
|
|
204
|
+
function ie(t, e, c) {
|
|
205
205
|
return e;
|
|
206
206
|
}
|
|
207
207
|
const ue = "page-footer", de = "A Farris Component", pe = "object", fe = {
|
|
@@ -291,7 +291,7 @@ const ue = "page-footer", de = "A Farris Component", pe = "object", fe = {
|
|
|
291
291
|
description: de,
|
|
292
292
|
type: pe,
|
|
293
293
|
categories: fe
|
|
294
|
-
},
|
|
294
|
+
}, I = {
|
|
295
295
|
/**
|
|
296
296
|
* 组件自定义样式
|
|
297
297
|
*/
|
|
@@ -332,26 +332,26 @@ const ue = "page-footer", de = "A Farris Component", pe = "object", fe = {
|
|
|
332
332
|
* 是否显示上方扩展区域
|
|
333
333
|
*/
|
|
334
334
|
showHeader: { type: String, default: !1 }
|
|
335
|
-
},
|
|
335
|
+
}, D = _(I, ce, ee, ie, me), E = /* @__PURE__ */ N({
|
|
336
336
|
name: "FPageFooter",
|
|
337
|
-
props:
|
|
337
|
+
props: I,
|
|
338
338
|
emits: [],
|
|
339
339
|
setup(t, e) {
|
|
340
|
-
const
|
|
341
|
-
function
|
|
342
|
-
u && u.stopImmediatePropagation(),
|
|
340
|
+
const c = g(t.collapsed), r = y(() => t.collapsedText), l = g(t.contentClass), i = y(() => t.enableCollapse), h = y(() => t.expandedText), T = g(t.headerClass), A = g(t.headerContentClass), s = g(t.headerToolbarClass), n = y(() => t.showHeader), o = g(t.customClass);
|
|
341
|
+
function a(u) {
|
|
342
|
+
u && u.stopImmediatePropagation(), c.value = !c.value;
|
|
343
343
|
}
|
|
344
344
|
function f() {
|
|
345
345
|
return i.value && d("div", {
|
|
346
346
|
class: "toolbar--collapse",
|
|
347
|
-
onClick: (u) =>
|
|
347
|
+
onClick: (u) => a(u)
|
|
348
348
|
}, [d("span", {
|
|
349
349
|
class: "toobar--collapse-text"
|
|
350
|
-
}, [
|
|
350
|
+
}, [c.value ? h.value : r.value]), d("i", {
|
|
351
351
|
class: "f-icon toolbar--collapse-icon"
|
|
352
352
|
}, null)]);
|
|
353
353
|
}
|
|
354
|
-
const C =
|
|
354
|
+
const C = y(() => {
|
|
355
355
|
const u = {
|
|
356
356
|
"f-toolbar": !0
|
|
357
357
|
};
|
|
@@ -362,18 +362,18 @@ const ue = "page-footer", de = "A Farris Component", pe = "object", fe = {
|
|
|
362
362
|
class: C.value
|
|
363
363
|
}, [e.slots.headerToolbar && e.slots.headerToolbar(), !e.slots.headerToolbar && f()]);
|
|
364
364
|
}
|
|
365
|
-
const P =
|
|
365
|
+
const P = y(() => {
|
|
366
366
|
const u = {
|
|
367
367
|
"f-content": !0
|
|
368
368
|
};
|
|
369
|
-
return
|
|
369
|
+
return A.value.split(" ").reduce((m, v) => (m[v] = !0, m), u), u;
|
|
370
370
|
});
|
|
371
371
|
function O() {
|
|
372
|
-
return d(
|
|
372
|
+
return d(S, null, [e.slots.headerContent && d("div", {
|
|
373
373
|
class: P.value
|
|
374
374
|
}, [e.slots.headerContent()]), F()]);
|
|
375
375
|
}
|
|
376
|
-
const w =
|
|
376
|
+
const w = y(() => {
|
|
377
377
|
const u = {
|
|
378
378
|
"f-cmp-footer-header": !0
|
|
379
379
|
};
|
|
@@ -384,39 +384,39 @@ const ue = "page-footer", de = "A Farris Component", pe = "object", fe = {
|
|
|
384
384
|
class: w.value
|
|
385
385
|
}, [e.slots.header && e.slots.header(), !e.slots.header && O()]);
|
|
386
386
|
}
|
|
387
|
-
const R =
|
|
387
|
+
const R = y(() => {
|
|
388
388
|
const u = {
|
|
389
389
|
"f-cmp-footer": !0,
|
|
390
|
-
"f-state-collapse": i.value &&
|
|
390
|
+
"f-state-collapse": i.value && c.value,
|
|
391
391
|
"f-cmp-footer-accordion": i.value
|
|
392
392
|
};
|
|
393
|
-
return
|
|
394
|
-
}),
|
|
393
|
+
return o.value.split(" ").reduce((m, v) => (m[v] = !0, m), u), u;
|
|
394
|
+
}), k = y(() => {
|
|
395
395
|
const u = {
|
|
396
396
|
"f-cmp-footer-content": !0
|
|
397
397
|
};
|
|
398
|
-
return
|
|
398
|
+
return l.value.split(" ").reduce((m, v) => (m[v] = !0, m), u), u;
|
|
399
399
|
});
|
|
400
400
|
return () => d("div", {
|
|
401
401
|
class: R.value
|
|
402
402
|
}, [d("footer", {
|
|
403
403
|
class: "f-cmp-footer-container"
|
|
404
|
-
}, [
|
|
405
|
-
class:
|
|
404
|
+
}, [n.value && M(), d("div", {
|
|
405
|
+
class: k.value
|
|
406
406
|
}, [e.slots.default && e.slots.default()])])]);
|
|
407
407
|
}
|
|
408
|
-
}), ge = /* @__PURE__ */
|
|
408
|
+
}), ge = /* @__PURE__ */ N({
|
|
409
409
|
name: "FPageFooterDesign",
|
|
410
|
-
props:
|
|
410
|
+
props: I,
|
|
411
411
|
emits: [],
|
|
412
412
|
setup(t, e) {
|
|
413
413
|
var v;
|
|
414
|
-
const
|
|
414
|
+
const c = g(t.collapsed), r = g(t.collapsedText), l = g(t.contentClass), i = g(t.enableCollapse), h = g(t.expandedText), T = g(t.headerClass), A = g(t.headerContentClass), s = g(t.headerToolbarClass), n = g(t.showHeader), o = g(), a = V("design-item-context"), f = W(a.schema, (v = a.parent) == null ? void 0 : v.schema), C = L(o, a, f);
|
|
415
415
|
$(() => {
|
|
416
|
-
|
|
416
|
+
o.value.componentInstance = C;
|
|
417
417
|
}), e.expose(C.value);
|
|
418
418
|
function F(p) {
|
|
419
|
-
p && p.stopImmediatePropagation(),
|
|
419
|
+
p && p.stopImmediatePropagation(), c.value = !c.value;
|
|
420
420
|
}
|
|
421
421
|
function P() {
|
|
422
422
|
return i.value && d("div", {
|
|
@@ -424,79 +424,79 @@ const ue = "page-footer", de = "A Farris Component", pe = "object", fe = {
|
|
|
424
424
|
onClick: (p) => F(p)
|
|
425
425
|
}, [d("span", {
|
|
426
426
|
class: "toobar--collapse-text"
|
|
427
|
-
}, [
|
|
427
|
+
}, [c.value ? h.value : r.value]), d("i", {
|
|
428
428
|
class: "f-icon toolbar--collapse-icon"
|
|
429
429
|
}, null)]);
|
|
430
430
|
}
|
|
431
|
-
const O =
|
|
431
|
+
const O = y(() => {
|
|
432
432
|
const p = {
|
|
433
433
|
"f-toolbar": !0
|
|
434
434
|
};
|
|
435
|
-
return s.value.split(" ").reduce((
|
|
435
|
+
return s.value.split(" ").reduce((b, j) => (b[j] = !0, b), p), p;
|
|
436
436
|
});
|
|
437
437
|
function w() {
|
|
438
438
|
return d("div", {
|
|
439
439
|
class: O.value
|
|
440
440
|
}, [e.slots.headerToolbar && e.slots.headerToolbar(), !e.slots.headerToolbar && P()]);
|
|
441
441
|
}
|
|
442
|
-
const M =
|
|
442
|
+
const M = y(() => {
|
|
443
443
|
const p = {
|
|
444
444
|
"f-content": !0
|
|
445
445
|
};
|
|
446
|
-
return
|
|
446
|
+
return A.value.split(" ").reduce((b, j) => (b[j] = !0, b), p), p;
|
|
447
447
|
});
|
|
448
448
|
function R() {
|
|
449
|
-
return d(
|
|
449
|
+
return d(S, null, [e.slots.headerContent && d("div", {
|
|
450
450
|
class: M.value
|
|
451
451
|
}, [e.slots.headerContent()]), w()]);
|
|
452
452
|
}
|
|
453
|
-
const
|
|
453
|
+
const k = y(() => {
|
|
454
454
|
const p = {
|
|
455
455
|
"f-cmp-footer-header": !0
|
|
456
456
|
};
|
|
457
|
-
return T.value.split(" ").reduce((
|
|
457
|
+
return T.value.split(" ").reduce((b, j) => (b[j] = !0, b), p), p;
|
|
458
458
|
});
|
|
459
459
|
function u() {
|
|
460
460
|
return d("header", {
|
|
461
|
-
class:
|
|
461
|
+
class: k.value
|
|
462
462
|
}, [e.slots.header && e.slots.header(), !e.slots.header && R()]);
|
|
463
463
|
}
|
|
464
|
-
const H =
|
|
464
|
+
const H = y(() => {
|
|
465
465
|
const p = {
|
|
466
466
|
"f-cmp-footer": !0,
|
|
467
|
-
"f-state-collapse": i.value &&
|
|
467
|
+
"f-state-collapse": i.value && c.value,
|
|
468
468
|
"f-cmp-footer-accordion": i.value
|
|
469
469
|
};
|
|
470
|
-
return T.value.split(" ").reduce((
|
|
471
|
-
}), m =
|
|
470
|
+
return T.value.split(" ").reduce((b, j) => (b[j] = !0, b), p), p;
|
|
471
|
+
}), m = y(() => {
|
|
472
472
|
const p = {
|
|
473
473
|
"f-cmp-footer-content": !0
|
|
474
474
|
};
|
|
475
|
-
return
|
|
475
|
+
return l.value.split(" ").reduce((b, j) => (b[j] = !0, b), p), p;
|
|
476
476
|
});
|
|
477
477
|
return () => d("div", {
|
|
478
|
-
ref:
|
|
478
|
+
ref: o,
|
|
479
479
|
class: H.value
|
|
480
480
|
}, [d("footer", {
|
|
481
481
|
class: "f-cmp-footer-container"
|
|
482
|
-
}, [
|
|
482
|
+
}, [n.value && u(), d("div", {
|
|
483
483
|
class: m.value
|
|
484
484
|
}, [e.slots.default && e.slots.default()])])]);
|
|
485
485
|
}
|
|
486
486
|
}), ve = {
|
|
487
487
|
install(t) {
|
|
488
|
-
t.component(
|
|
488
|
+
t.component(E.name, E);
|
|
489
489
|
},
|
|
490
|
-
register(t, e,
|
|
491
|
-
t["page-footer"] =
|
|
490
|
+
register(t, e, c, r) {
|
|
491
|
+
t["page-footer"] = E, e["page-footer"] = D;
|
|
492
492
|
},
|
|
493
|
-
registerDesigner(t, e,
|
|
494
|
-
t["page-footer"] = ge, e["page-footer"] =
|
|
493
|
+
registerDesigner(t, e, c) {
|
|
494
|
+
t["page-footer"] = ge, e["page-footer"] = D;
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
export {
|
|
498
|
-
|
|
498
|
+
E as FPageFooter,
|
|
499
499
|
ve as default,
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
I as pageFooterProps,
|
|
501
|
+
D as propsResolver
|
|
502
502
|
};
|