@farris/ui-vue 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +79 -79
- package/components/avatar/index.esm.js +393 -440
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +452 -498
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +31630 -31224
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as C, computed as m, provide as
|
|
2
|
-
import { cloneDeep as
|
|
3
|
-
import { resolveAppearance as
|
|
4
|
-
import { useDesignerComponent as T } from "
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as C, computed as m, provide as E, createVNode as u, inject as I, ref as y, onMounted as O } from "vue";
|
|
2
|
+
import { cloneDeep as R } from "lodash-es";
|
|
3
|
+
import { resolveAppearance as M, createPropsResolver as S } from "../dynamic-resolver/index.esm.js";
|
|
4
|
+
import { useDesignerComponent as T } from "../designer-canvas/index.esm.js";
|
|
5
|
+
const B = {}, V = {};
|
|
6
6
|
function P(t) {
|
|
7
|
-
const { properties: e, title: i } = t, o = Object.keys(e).reduce((
|
|
7
|
+
const { properties: e, title: i } = t, o = Object.keys(e).reduce((n, l) => (n[l] = e[l].type === "object" && e[l].properties ? P(e[l]) : R(e[l].default), n), {});
|
|
8
8
|
return o.id = `${i}-${Date.now()}`, o;
|
|
9
9
|
}
|
|
10
10
|
function q(t, e) {
|
|
11
11
|
const i = P(e);
|
|
12
|
-
return Object.keys(t).reduce((o,
|
|
12
|
+
return Object.keys(t).reduce((o, n) => (o[n] && typeof o[n] == "object" ? Object.assign(o[n], t[n]) : o[n] = t[n], o), i), i;
|
|
13
13
|
}
|
|
14
14
|
function x(t, e) {
|
|
15
|
-
return Object.keys(t).filter((o) => t[o] != null).reduce((o,
|
|
16
|
-
if (e.has(
|
|
17
|
-
const l = e.get(
|
|
15
|
+
return Object.keys(t).filter((o) => t[o] != null).reduce((o, n) => {
|
|
16
|
+
if (e.has(n)) {
|
|
17
|
+
const l = e.get(n);
|
|
18
18
|
if (typeof l == "string")
|
|
19
|
-
o[l] = t[
|
|
19
|
+
o[l] = t[n];
|
|
20
20
|
else {
|
|
21
|
-
const d = l(
|
|
21
|
+
const d = l(n, t[n], t);
|
|
22
22
|
Object.assign(o, d);
|
|
23
23
|
}
|
|
24
24
|
} else
|
|
25
|
-
o[
|
|
25
|
+
o[n] = t[n];
|
|
26
26
|
return o;
|
|
27
27
|
}, {});
|
|
28
28
|
}
|
|
@@ -31,69 +31,69 @@ function z(t, e, i = /* @__PURE__ */ new Map()) {
|
|
|
31
31
|
return x(o, i);
|
|
32
32
|
}
|
|
33
33
|
function H(t = {}) {
|
|
34
|
-
function e(
|
|
34
|
+
function e(s, c, r, a) {
|
|
35
35
|
if (typeof r == "number")
|
|
36
|
-
return a[
|
|
36
|
+
return a[s].length === r;
|
|
37
37
|
if (typeof r == "object") {
|
|
38
38
|
const p = Object.keys(r)[0], h = r[p];
|
|
39
39
|
if (p === "not")
|
|
40
|
-
return Number(a[
|
|
40
|
+
return Number(a[s].length) !== Number(h);
|
|
41
41
|
if (p === "moreThan")
|
|
42
|
-
return Number(a[
|
|
42
|
+
return Number(a[s].length) >= Number(h);
|
|
43
43
|
if (p === "lessThan")
|
|
44
|
-
return Number(a[
|
|
44
|
+
return Number(a[s].length) <= Number(h);
|
|
45
45
|
}
|
|
46
46
|
return !1;
|
|
47
47
|
}
|
|
48
|
-
function i(
|
|
49
|
-
return a[
|
|
48
|
+
function i(s, c, r, a) {
|
|
49
|
+
return a[s] && a[s].propertyValue && String(a[s].propertyValue.value) === String(r);
|
|
50
50
|
}
|
|
51
51
|
const o = /* @__PURE__ */ new Map([
|
|
52
52
|
["length", e],
|
|
53
53
|
["getProperty", i]
|
|
54
54
|
]);
|
|
55
|
-
Object.keys(t).reduce((
|
|
56
|
-
function s
|
|
57
|
-
const r =
|
|
58
|
-
return typeof c == "number" ? [{ target: r, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: r, operator: "getProperty", param:
|
|
55
|
+
Object.keys(t).reduce((s, c) => (s.set(c, t[c]), s), o);
|
|
56
|
+
function n(s, c) {
|
|
57
|
+
const r = s;
|
|
58
|
+
return typeof c == "number" ? [{ target: r, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: r, operator: "getProperty", param: s, value: !!c }] : typeof c == "object" ? Object.keys(c).map((a) => {
|
|
59
59
|
if (a === "length")
|
|
60
60
|
return { target: r, operator: "length", param: null, value: c[a] };
|
|
61
61
|
const p = a, h = c[a];
|
|
62
62
|
return { target: r, operator: "getProperty", param: p, value: h };
|
|
63
63
|
}) : [];
|
|
64
64
|
}
|
|
65
|
-
function l(
|
|
66
|
-
return Object.keys(
|
|
67
|
-
const p =
|
|
65
|
+
function l(s) {
|
|
66
|
+
return Object.keys(s).reduce((r, a) => {
|
|
67
|
+
const p = n(a, s[a]);
|
|
68
68
|
return r.push(...p), r;
|
|
69
69
|
}, []);
|
|
70
70
|
}
|
|
71
|
-
function d(
|
|
72
|
-
if (o.has(
|
|
73
|
-
const r = o.get(
|
|
74
|
-
return r && r(
|
|
71
|
+
function d(s, c) {
|
|
72
|
+
if (o.has(s.operator)) {
|
|
73
|
+
const r = o.get(s.operator);
|
|
74
|
+
return r && r(s.target, s.param, s.value, c) || !1;
|
|
75
75
|
}
|
|
76
76
|
return !1;
|
|
77
77
|
}
|
|
78
|
-
function f(
|
|
79
|
-
return l(
|
|
78
|
+
function f(s, c) {
|
|
79
|
+
return l(s).reduce((p, h) => p && d(h, c), !0);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
const r = Object.keys(
|
|
81
|
+
function g(s, c) {
|
|
82
|
+
const r = Object.keys(s), a = r.includes("allOf"), p = r.includes("anyOf"), h = a || p, A = (h ? s[h ? a ? "allOf" : "anyOf" : "allOf"] : [s]).map((D) => f(D, c));
|
|
83
83
|
return a ? !A.includes(!1) : A.includes(!0);
|
|
84
84
|
}
|
|
85
|
-
return { parseValueSchema:
|
|
85
|
+
return { parseValueSchema: g };
|
|
86
86
|
}
|
|
87
87
|
const L = {}, G = {};
|
|
88
88
|
H();
|
|
89
|
-
function J(t, e, i = /* @__PURE__ */ new Map(), o = (d, f,
|
|
90
|
-
return
|
|
91
|
-
const f = z(d, e, i),
|
|
92
|
-
return Object.assign(
|
|
89
|
+
function J(t, e, i = /* @__PURE__ */ new Map(), o = (d, f, g) => f, n = {}, l = (d) => d) {
|
|
90
|
+
return B[e.title] = e, V[e.title] = o, L[e.title] = n, G[e.title] = l, (d = {}) => {
|
|
91
|
+
const f = z(d, e, i), g = Object.keys(t).reduce((s, c) => (s[c] = t[c].default, s), {});
|
|
92
|
+
return Object.assign(g, f);
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
const F = /* @__PURE__ */ new Map([
|
|
96
|
-
["appearance",
|
|
96
|
+
["appearance", M],
|
|
97
97
|
["size", (t, e) => {
|
|
98
98
|
const i = {};
|
|
99
99
|
return e.width && (i.width = Number(e.width)), e.height && (i.height = Number(e.height)), i;
|
|
@@ -170,7 +170,7 @@ const F = /* @__PURE__ */ new Map([
|
|
|
170
170
|
function ee(t, e, i) {
|
|
171
171
|
return e;
|
|
172
172
|
}
|
|
173
|
-
const te = "accordion", ne = "A Farris Component",
|
|
173
|
+
const te = "accordion", ne = "A Farris Component", se = "object", oe = {
|
|
174
174
|
basic: {
|
|
175
175
|
description: "Basic Infomation",
|
|
176
176
|
title: "基本信息",
|
|
@@ -195,15 +195,15 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
195
195
|
}, re = {
|
|
196
196
|
title: te,
|
|
197
197
|
description: ne,
|
|
198
|
-
type:
|
|
199
|
-
categories:
|
|
198
|
+
type: se,
|
|
199
|
+
categories: oe
|
|
200
200
|
}, j = {
|
|
201
201
|
customClass: { type: String, default: "" },
|
|
202
202
|
height: { type: Number },
|
|
203
203
|
width: { type: Number },
|
|
204
204
|
enableFold: { type: Boolean, default: !0 },
|
|
205
205
|
expanded: { type: Boolean, default: !1 }
|
|
206
|
-
}, N = J(j, K, F, ee, re),
|
|
206
|
+
}, N = J(j, K, F, ee, re), b = /* @__PURE__ */ C({
|
|
207
207
|
name: "FAccordion",
|
|
208
208
|
props: j,
|
|
209
209
|
emits: [],
|
|
@@ -212,15 +212,15 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
212
212
|
height: t.height ? `${t.height}px` : "",
|
|
213
213
|
width: t.width ? `${t.width}px` : ""
|
|
214
214
|
}));
|
|
215
|
-
|
|
215
|
+
E("accordionContext", {
|
|
216
216
|
parentProps: t
|
|
217
217
|
});
|
|
218
218
|
const o = m(() => {
|
|
219
|
-
const
|
|
219
|
+
const n = t.customClass.split(" "), l = {
|
|
220
220
|
"farris-panel": !0,
|
|
221
221
|
accordion: !0
|
|
222
222
|
};
|
|
223
|
-
return
|
|
223
|
+
return n.reduce((d, f) => (d[f] = !0, d), l), l;
|
|
224
224
|
});
|
|
225
225
|
return () => u("div", {
|
|
226
226
|
class: o.value,
|
|
@@ -282,15 +282,15 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
282
282
|
title: { type: String, default: "" },
|
|
283
283
|
disabled: { type: Boolean, default: !1 },
|
|
284
284
|
active: { type: Boolean, default: !1 }
|
|
285
|
-
}, k =
|
|
285
|
+
}, k = S(w, fe, F), $ = /* @__PURE__ */ C({
|
|
286
286
|
name: "FAccordionItem",
|
|
287
287
|
props: w,
|
|
288
288
|
emits: [],
|
|
289
289
|
setup(t, e) {
|
|
290
|
-
const i = I("accordionContext"), o =
|
|
290
|
+
const i = I("accordionContext"), o = y(t.title), n = y(t.active);
|
|
291
291
|
function l() {
|
|
292
292
|
var r;
|
|
293
|
-
t.disabled || !((r = i == null ? void 0 : i.parentProps) != null && r.enableFold) || (
|
|
293
|
+
t.disabled || !((r = i == null ? void 0 : i.parentProps) != null && r.enableFold) || (n.value = !n.value);
|
|
294
294
|
}
|
|
295
295
|
function d(r) {
|
|
296
296
|
l();
|
|
@@ -299,21 +299,21 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
299
299
|
"f-state-disabled": t.disabled,
|
|
300
300
|
card: !0,
|
|
301
301
|
"farris-panel-item": !0,
|
|
302
|
-
"f-state-selected":
|
|
303
|
-
})),
|
|
302
|
+
"f-state-selected": n.value
|
|
303
|
+
})), g = m(() => !0), s = m(() => ({
|
|
304
304
|
"f-icon": !0,
|
|
305
|
-
"f-accordion-collapse": !
|
|
306
|
-
"f-accordion-expand":
|
|
305
|
+
"f-accordion-collapse": !n.value,
|
|
306
|
+
"f-accordion-expand": n.value
|
|
307
307
|
})), c = m(() => {
|
|
308
308
|
const r = {
|
|
309
309
|
transition: "height 0.36s ease 0s",
|
|
310
|
-
height:
|
|
310
|
+
height: n.value ? `${t.height}px` : 0
|
|
311
311
|
};
|
|
312
|
-
return
|
|
312
|
+
return n.value || (r.overflow = "hidden"), r;
|
|
313
313
|
});
|
|
314
314
|
return O(() => {
|
|
315
315
|
var r;
|
|
316
|
-
(r = i == null ? void 0 : i.parentProps) != null && r.expanded && (
|
|
316
|
+
(r = i == null ? void 0 : i.parentProps) != null && r.expanded && (n.value = !0);
|
|
317
317
|
}), () => u("div", {
|
|
318
318
|
class: f.value
|
|
319
319
|
}, [u("div", {
|
|
@@ -321,8 +321,8 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
321
321
|
onClick: d
|
|
322
322
|
}, [u("div", {
|
|
323
323
|
class: "panel-item-title"
|
|
324
|
-
}, [
|
|
325
|
-
class:
|
|
324
|
+
}, [g.value && u("span", null, [o.value]), e.slots.head && e.slots.head(), u("span", {
|
|
325
|
+
class: s.value
|
|
326
326
|
}, null)]), u("div", {
|
|
327
327
|
class: "panel-item-tool"
|
|
328
328
|
}, [e.slots.toolbar && e.slots.toolbar()]), u("div", {
|
|
@@ -342,16 +342,16 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
342
342
|
height: t.height ? `${t.height}px` : "",
|
|
343
343
|
width: t.width ? `${t.width}px` : ""
|
|
344
344
|
})), o = m(() => {
|
|
345
|
-
const f = t.customClass.split(" "),
|
|
345
|
+
const f = t.customClass.split(" "), g = {
|
|
346
346
|
"farris-panel": !0,
|
|
347
347
|
accordion: !0
|
|
348
348
|
};
|
|
349
|
-
return f.reduce((
|
|
350
|
-
}),
|
|
349
|
+
return f.reduce((s, c) => (s[c] = !0, s), g), g;
|
|
350
|
+
}), n = y(), l = I("design-item-context"), d = T(n, l);
|
|
351
351
|
return O(() => {
|
|
352
|
-
|
|
352
|
+
n.value.componentInstance = d;
|
|
353
353
|
}), e.expose(d.value), () => u("div", {
|
|
354
|
-
ref:
|
|
354
|
+
ref: n,
|
|
355
355
|
class: o.value,
|
|
356
356
|
style: i.value
|
|
357
357
|
}, [e.slots.default && e.slots.default()]);
|
|
@@ -361,28 +361,28 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
361
361
|
props: w,
|
|
362
362
|
emits: [],
|
|
363
363
|
setup(t, e) {
|
|
364
|
-
const i =
|
|
364
|
+
const i = y(t.title), o = y(!1), n = y(!1);
|
|
365
365
|
function l() {
|
|
366
366
|
o.value = !o.value;
|
|
367
367
|
}
|
|
368
|
-
function d(
|
|
368
|
+
function d(v) {
|
|
369
369
|
l();
|
|
370
370
|
}
|
|
371
371
|
const f = m(() => ({
|
|
372
|
-
"f-state-disable":
|
|
372
|
+
"f-state-disable": n.value,
|
|
373
373
|
card: !0,
|
|
374
374
|
"farris-panel-item": !0,
|
|
375
375
|
"f-state-selected": o.value
|
|
376
|
-
})),
|
|
376
|
+
})), g = m(() => !0), s = m(() => !1), c = m(() => ({
|
|
377
377
|
"f-icon": !0,
|
|
378
378
|
"f-accordion-collapse": !o.value,
|
|
379
379
|
"f-accordion-expand": o.value
|
|
380
380
|
})), r = m(() => {
|
|
381
|
-
const
|
|
381
|
+
const v = {
|
|
382
382
|
transition: "height 0.36s ease 0s",
|
|
383
383
|
height: o.value ? `${t.height}px` : 0
|
|
384
384
|
};
|
|
385
|
-
return o.value || (
|
|
385
|
+
return o.value || (v.overflow = "hidden"), v;
|
|
386
386
|
});
|
|
387
387
|
function a() {
|
|
388
388
|
return !0;
|
|
@@ -405,7 +405,7 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
405
405
|
onClick: d
|
|
406
406
|
}, [u("div", {
|
|
407
407
|
class: "panel-item-title"
|
|
408
|
-
}, [
|
|
408
|
+
}, [g.value && u("span", null, [i.value]), s.value && e.slots.head && e.slots.head(), u("span", {
|
|
409
409
|
class: c.value
|
|
410
410
|
}, null)]), u("div", {
|
|
411
411
|
class: "panel-item-tool"
|
|
@@ -418,21 +418,21 @@ const te = "accordion", ne = "A Farris Component", oe = "object", se = {
|
|
|
418
418
|
}, [e.slots.default && e.slots.default()])])]);
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
|
-
|
|
422
|
-
t.component(
|
|
421
|
+
b.install = (t) => {
|
|
422
|
+
t.component(b.name, b), t.component($.name, $);
|
|
423
423
|
};
|
|
424
|
-
|
|
425
|
-
t.accordion =
|
|
424
|
+
b.register = (t, e, i, o) => {
|
|
425
|
+
t.accordion = b, t["accordion-item"] = $, e.accordion = N, e["accordion-item"] = k;
|
|
426
426
|
};
|
|
427
|
-
|
|
427
|
+
b.registerDesigner = (t, e, i) => {
|
|
428
428
|
t.accordion = me, t["accordion-item"] = he, e.accordion = N, e["accordion-item"] = k;
|
|
429
429
|
};
|
|
430
430
|
export {
|
|
431
|
-
|
|
431
|
+
b as FAccordion,
|
|
432
432
|
$ as FAccordionItem,
|
|
433
433
|
w as accordionItemProps,
|
|
434
434
|
k as accordionItemPropsResolver,
|
|
435
435
|
j as accordionProps,
|
|
436
436
|
N as accordionPropsResolver,
|
|
437
|
-
|
|
437
|
+
b as default
|
|
438
438
|
};
|