@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
|
@@ -3,34 +3,34 @@ import { cloneDeep as x } from "lodash-es";
|
|
|
3
3
|
import "bignumber.js";
|
|
4
4
|
const z = {}, G = {};
|
|
5
5
|
function k(n) {
|
|
6
|
-
const { properties: e, title: t } = n, r = Object.keys(e).reduce((
|
|
6
|
+
const { properties: e, title: t } = n, r = Object.keys(e).reduce((s, b) => (s[b] = e[b].type === "object" && e[b].properties ? k(e[b]) : x(e[b].default), s), {});
|
|
7
7
|
return r.id = `${t}-${Date.now()}`, r;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function N(n, e = {}) {
|
|
10
10
|
const t = z[n];
|
|
11
11
|
if (t) {
|
|
12
12
|
let r = k(t);
|
|
13
|
-
const
|
|
14
|
-
return r =
|
|
13
|
+
const s = G[n];
|
|
14
|
+
return r = s ? s({ getSchemaByType: N }, r, e) : r, r;
|
|
15
15
|
}
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
function I(n, e) {
|
|
19
19
|
const t = k(e);
|
|
20
|
-
return Object.keys(n).reduce((r,
|
|
20
|
+
return Object.keys(n).reduce((r, s) => (r[s] && typeof r[s] == "object" ? Object.assign(r[s], n[s]) : r[s] = n[s], r), t), t;
|
|
21
21
|
}
|
|
22
22
|
function ee(n, e) {
|
|
23
|
-
return Object.keys(n).filter((r) => n[r] != null).reduce((r,
|
|
24
|
-
if (e.has(
|
|
25
|
-
const b = e.get(
|
|
23
|
+
return Object.keys(n).filter((r) => n[r] != null).reduce((r, s) => {
|
|
24
|
+
if (e.has(s)) {
|
|
25
|
+
const b = e.get(s);
|
|
26
26
|
if (typeof b == "string")
|
|
27
|
-
r[b] = n[
|
|
27
|
+
r[b] = n[s];
|
|
28
28
|
else {
|
|
29
|
-
const h = b(
|
|
29
|
+
const h = b(s, n[s], n);
|
|
30
30
|
Object.assign(r, h);
|
|
31
31
|
}
|
|
32
32
|
} else
|
|
33
|
-
r[
|
|
33
|
+
r[s] = n[s];
|
|
34
34
|
return r;
|
|
35
35
|
}, {});
|
|
36
36
|
}
|
|
@@ -61,7 +61,7 @@ function ne(n = {}) {
|
|
|
61
61
|
["getProperty", t]
|
|
62
62
|
]);
|
|
63
63
|
Object.keys(n).reduce((p, d) => (p.set(d, n[d]), p), r);
|
|
64
|
-
function
|
|
64
|
+
function s(p, d) {
|
|
65
65
|
const f = p;
|
|
66
66
|
return typeof d == "number" ? [{ target: f, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: f, operator: "getProperty", param: p, value: !!d }] : typeof d == "object" ? Object.keys(d).map((y) => {
|
|
67
67
|
if (y === "length")
|
|
@@ -72,7 +72,7 @@ function ne(n = {}) {
|
|
|
72
72
|
}
|
|
73
73
|
function b(p) {
|
|
74
74
|
return Object.keys(p).reduce((f, y) => {
|
|
75
|
-
const A =
|
|
75
|
+
const A = s(y, p[y]);
|
|
76
76
|
return f.push(...A), f;
|
|
77
77
|
}, []);
|
|
78
78
|
}
|
|
@@ -87,15 +87,15 @@ function ne(n = {}) {
|
|
|
87
87
|
return b(p).reduce((A, o) => A && h(o, d), !0);
|
|
88
88
|
}
|
|
89
89
|
function P(p, d) {
|
|
90
|
-
const f = Object.keys(p), y = f.includes("allOf"), A = f.includes("anyOf"), o = y || A, u = (o ? p[o ? y ? "allOf" : "anyOf" : "allOf"] : [p]).map((
|
|
90
|
+
const f = Object.keys(p), y = f.includes("allOf"), A = f.includes("anyOf"), o = y || A, u = (o ? p[o ? y ? "allOf" : "anyOf" : "allOf"] : [p]).map((a) => j(a, d));
|
|
91
91
|
return y ? !u.includes(!1) : u.includes(!0);
|
|
92
92
|
}
|
|
93
93
|
return { parseValueSchema: P };
|
|
94
94
|
}
|
|
95
95
|
const oe = {}, re = {};
|
|
96
96
|
ne();
|
|
97
|
-
function ce(n, e, t = /* @__PURE__ */ new Map(), r = (h, j, P) => j,
|
|
98
|
-
return z[e.title] = e, G[e.title] = r, oe[e.title] =
|
|
97
|
+
function ce(n, e, t = /* @__PURE__ */ new Map(), r = (h, j, P) => j, s = {}, b = (h) => h) {
|
|
98
|
+
return z[e.title] = e, G[e.title] = r, oe[e.title] = s, re[e.title] = b, (h = {}) => {
|
|
99
99
|
const j = te(h, e, t), P = Object.keys(n).reduce((p, d) => (p[d] = n[d].default, p), {});
|
|
100
100
|
return Object.assign(P, j);
|
|
101
101
|
};
|
|
@@ -231,10 +231,10 @@ const L = {
|
|
|
231
231
|
});
|
|
232
232
|
function Ae() {
|
|
233
233
|
function n(e) {
|
|
234
|
-
var
|
|
234
|
+
var s, b;
|
|
235
235
|
if (!e)
|
|
236
236
|
return !1;
|
|
237
|
-
const t = ((
|
|
237
|
+
const t = ((s = e.targetContainer) == null ? void 0 : s.componentInstance) && e.targetContainer.componentInstance.value;
|
|
238
238
|
if (!t)
|
|
239
239
|
return !1;
|
|
240
240
|
const r = (b = t.schema.appearance) == null ? void 0 : b.class;
|
|
@@ -813,7 +813,7 @@ const Te = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-
|
|
|
813
813
|
description: "",
|
|
814
814
|
type: "object"
|
|
815
815
|
}
|
|
816
|
-
}, Ee = [],
|
|
816
|
+
}, Ee = [], Ne = {
|
|
817
817
|
$schema: Te,
|
|
818
818
|
$id: Pe,
|
|
819
819
|
title: we,
|
|
@@ -822,18 +822,18 @@ const Te = "https://json-schema.org/draft/2020-12/schema", Pe = "https://farris-
|
|
|
822
822
|
properties: Me,
|
|
823
823
|
required: Ee
|
|
824
824
|
}, F = /* @__PURE__ */ new Map();
|
|
825
|
-
function
|
|
825
|
+
function Se() {
|
|
826
826
|
function n(o, l, c, u) {
|
|
827
827
|
var v;
|
|
828
828
|
if (typeof c == "number")
|
|
829
829
|
return ((v = u[o]) == null ? void 0 : v.length) === c;
|
|
830
830
|
if (typeof c == "object") {
|
|
831
|
-
const
|
|
832
|
-
if (
|
|
831
|
+
const a = Object.keys(c)[0], C = c[a];
|
|
832
|
+
if (a === "not")
|
|
833
833
|
return Number(u[o].length) !== Number(C);
|
|
834
|
-
if (
|
|
834
|
+
if (a === "moreThan")
|
|
835
835
|
return Number(u[o].length) >= Number(C);
|
|
836
|
-
if (
|
|
836
|
+
if (a === "lessThan")
|
|
837
837
|
return Number(u[o].length) <= Number(C);
|
|
838
838
|
}
|
|
839
839
|
return !1;
|
|
@@ -847,7 +847,7 @@ function Ne() {
|
|
|
847
847
|
function r(o, l, c, u) {
|
|
848
848
|
return typeof c == "boolean" ? u.parentClassList.includes(l) === !!c : !1;
|
|
849
849
|
}
|
|
850
|
-
const
|
|
850
|
+
const s = /* @__PURE__ */ new Map([
|
|
851
851
|
["length", n],
|
|
852
852
|
["hasChildren", e],
|
|
853
853
|
["hasSibling", r],
|
|
@@ -858,25 +858,25 @@ function Ne() {
|
|
|
858
858
|
return typeof l == "number" ? [{ target: c, operator: "length", param: null, value: Number(l) }] : typeof l == "object" ? Object.keys(l).map((u) => {
|
|
859
859
|
if (u === "length")
|
|
860
860
|
return { target: c, operator: "length", param: null, value: l[u] };
|
|
861
|
-
const v = u,
|
|
862
|
-
return { target: c, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: v, value:
|
|
861
|
+
const v = u, a = l[u];
|
|
862
|
+
return { target: c, operator: o === "children" ? "hasChildren" : o === "parent" ? "hasParent" : "hasSibling", param: v, value: a };
|
|
863
863
|
}) : [];
|
|
864
864
|
}
|
|
865
865
|
function h(o, l) {
|
|
866
|
-
if (
|
|
867
|
-
const c =
|
|
866
|
+
if (s.has(o.operator)) {
|
|
867
|
+
const c = s.get(o.operator);
|
|
868
868
|
return c && c(o.target, o.param, o.value, l) || !1;
|
|
869
869
|
}
|
|
870
870
|
return !1;
|
|
871
871
|
}
|
|
872
872
|
function j(o, l) {
|
|
873
|
-
return Object.keys(o).reduce((
|
|
873
|
+
return Object.keys(o).reduce((a, C) => {
|
|
874
874
|
const T = b(C, o[C]);
|
|
875
|
-
return
|
|
876
|
-
}, []).reduce((
|
|
875
|
+
return a.push(...T), a;
|
|
876
|
+
}, []).reduce((a, C) => a && h(C, l), !0);
|
|
877
877
|
}
|
|
878
878
|
function P(o, l) {
|
|
879
|
-
const c = Object.keys(o), u = c.includes("allOf"), v = c.includes("anyOf"),
|
|
879
|
+
const c = Object.keys(o), u = c.includes("allOf"), v = c.includes("anyOf"), a = u || v, i = (a ? o[a ? u ? "allOf" : "anyOf" : "allOf"] : [o]).map((m) => j(m, l));
|
|
880
880
|
return u ? !i.includes(!1) : i.includes(!0);
|
|
881
881
|
}
|
|
882
882
|
function p(o, l) {
|
|
@@ -887,8 +887,8 @@ function Ne() {
|
|
|
887
887
|
return (l) => {
|
|
888
888
|
const c = { canAccept: !0, fixed: !1, hidePadding: !1 };
|
|
889
889
|
return o && o.properties && Object.keys(o.properties).reduce((u, v) => {
|
|
890
|
-
const
|
|
891
|
-
return u[v] = p(
|
|
890
|
+
const a = o.properties[v];
|
|
891
|
+
return u[v] = p(a, l), u;
|
|
892
892
|
}, c), c;
|
|
893
893
|
};
|
|
894
894
|
}
|
|
@@ -896,12 +896,12 @@ function Ne() {
|
|
|
896
896
|
if (l.type === "object" && l.properties) {
|
|
897
897
|
const { rules: u, contents: v } = l.properties;
|
|
898
898
|
c.set(o, d(u)), v && Object.keys(v.properties).forEach(
|
|
899
|
-
(
|
|
899
|
+
(a) => f(a, v.properties[a], c)
|
|
900
900
|
);
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
function y() {
|
|
904
|
-
const { properties: o } =
|
|
904
|
+
const { properties: o } = Ne;
|
|
905
905
|
Object.keys(o).forEach((l) => {
|
|
906
906
|
f(l, o[l], F);
|
|
907
907
|
});
|
|
@@ -913,18 +913,18 @@ function Ne() {
|
|
|
913
913
|
return y(), { getRuleValue: A };
|
|
914
914
|
}
|
|
915
915
|
function $e(n, e) {
|
|
916
|
-
const t =
|
|
916
|
+
const t = Se(), r = M(!1), s = M(!1);
|
|
917
917
|
let b = !0, h = !1, j, P = !1;
|
|
918
|
-
function p(
|
|
919
|
-
return j && j.componentClassList && j.componentClassList.includes("f-form-layout") && j.componentClassList.includes("farris-form") ?
|
|
918
|
+
function p(a) {
|
|
919
|
+
return j && j.componentClassList && j.componentClassList.includes("f-form-layout") && j.componentClassList.includes("farris-form") ? a.sourceType === "control" && a.controlCategory === "input" || a.sourceType === "move" && a.controlType === "form-group" : !0;
|
|
920
920
|
}
|
|
921
|
-
function d(
|
|
922
|
-
return !(!Ae().basalDragulaRuleForContainer(
|
|
921
|
+
function d(a) {
|
|
922
|
+
return !(!Ae().basalDragulaRuleForContainer(a) || !b || !p(a));
|
|
923
923
|
}
|
|
924
924
|
function f() {
|
|
925
|
-
r.value = !1,
|
|
926
|
-
const
|
|
927
|
-
const B =
|
|
925
|
+
r.value = !1, s.value = !1;
|
|
926
|
+
const a = n, C = a.appearance && a.appearance.class || "", T = C.split(" "), i = a.contents || [], g = i.length ? i[0] : null, m = g && g.appearance ? g.appearance.class : "", w = m ? m.split(" ") : [], O = i.length ? i.reduce((V, S) => {
|
|
927
|
+
const B = S && S.appearance ? S.appearance.class : "", X = B ? B.split(" ") : [];
|
|
928
928
|
return V.push(...X), V;
|
|
929
929
|
}, []) : [], D = e, E = D && D.appearance && D.appearance.class || "", J = E ? E.split(" ") : [];
|
|
930
930
|
j = {
|
|
@@ -943,24 +943,24 @@ function $e(n, e) {
|
|
|
943
943
|
const { canAccept: H, fixed: Q, hidePadding: U } = t.getRuleValue(T[0], j);
|
|
944
944
|
return b = H, h = U, P = Q, !0;
|
|
945
945
|
}
|
|
946
|
-
function y(
|
|
946
|
+
function y(a) {
|
|
947
947
|
Y();
|
|
948
948
|
}
|
|
949
949
|
function A() {
|
|
950
950
|
return n.componentType ? "display:inherit;flex-direction:inherit;margin-bottom:10px" : "";
|
|
951
951
|
}
|
|
952
|
-
function o(
|
|
952
|
+
function o(a, C) {
|
|
953
953
|
const T = n;
|
|
954
954
|
if ((T.appearance && T.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
955
|
-
const { label: m } =
|
|
955
|
+
const { label: m } = a, w = N("form-group");
|
|
956
956
|
return w.editor = C, w.label = m, w;
|
|
957
957
|
}
|
|
958
958
|
return C;
|
|
959
959
|
}
|
|
960
|
-
function l(
|
|
960
|
+
function l(a, C, T) {
|
|
961
961
|
const i = n;
|
|
962
962
|
if ((i.appearance && i.appearance.class || "").split(" ").includes("f-form-layout")) {
|
|
963
|
-
const w = String(
|
|
963
|
+
const w = String(a.innerText), O = N("form-group");
|
|
964
964
|
return O.editor = T, O.label = w, O;
|
|
965
965
|
}
|
|
966
966
|
return T;
|
|
@@ -982,7 +982,7 @@ function $e(n, e) {
|
|
|
982
982
|
onAcceptMovedChildElement: y,
|
|
983
983
|
onResolveNewComponentSchema: o,
|
|
984
984
|
triggerBelongedComponentToMoveWhenMoved: r,
|
|
985
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
985
|
+
triggerBelongedComponentToDeleteWhenDeleted: s,
|
|
986
986
|
checkCanMoveComponent: c,
|
|
987
987
|
checkCanDeleteComponent: u,
|
|
988
988
|
hideNestedPaddingInDesginerView: v
|
|
@@ -994,7 +994,7 @@ function Fe(n, e, t) {
|
|
|
994
994
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
995
995
|
}
|
|
996
996
|
r();
|
|
997
|
-
const
|
|
997
|
+
const s = t && t.getStyles && t.getStyles() || "", b = t && t.getDesignerClass && t.getDesignerClass() || "", h = M();
|
|
998
998
|
function j() {
|
|
999
999
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
1000
1000
|
}
|
|
@@ -1032,7 +1032,7 @@ function Fe(n, e, t) {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
function u(i) {
|
|
1034
1034
|
const { componentType: g } = i;
|
|
1035
|
-
let m =
|
|
1035
|
+
let m = N(g, i);
|
|
1036
1036
|
t && t.onResolveNewComponentSchema && (m = t.onResolveNewComponentSchema(i, m));
|
|
1037
1037
|
const w = g.toLowerCase().replace("-", "_");
|
|
1038
1038
|
return m && !m.id && m.type === g && (m.id = `${w}_${Math.random().toString().slice(2, 6)}`), m;
|
|
@@ -1040,12 +1040,12 @@ function Fe(n, e, t) {
|
|
|
1040
1040
|
function v(i, g) {
|
|
1041
1041
|
const m = String(i.getAttribute("data-controltype")), w = i.getAttribute("data-feature"), O = w ? JSON.parse(w) : {};
|
|
1042
1042
|
O.parentComponentInstance = h.value;
|
|
1043
|
-
let D =
|
|
1043
|
+
let D = N(m, O);
|
|
1044
1044
|
t && t.onAcceptNewChildElement && (D = t.onAcceptNewChildElement(i, g, D));
|
|
1045
1045
|
const E = m.toLowerCase().replace("-", "_");
|
|
1046
1046
|
return D && !D.id && D.type === m && (D.id = `${E}_${Math.random().toString().slice(2, 6)}`), D;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function a(i) {
|
|
1049
1049
|
}
|
|
1050
1050
|
function C(...i) {
|
|
1051
1051
|
if (t && t.getPropsConfig)
|
|
@@ -1060,7 +1060,7 @@ function Fe(n, e, t) {
|
|
|
1060
1060
|
elementRef: n,
|
|
1061
1061
|
parent: (T = e == null ? void 0 : e.parent) == null ? void 0 : T.componentInstance,
|
|
1062
1062
|
schema: e == null ? void 0 : e.schema,
|
|
1063
|
-
styles:
|
|
1063
|
+
styles: s,
|
|
1064
1064
|
designerClass: b,
|
|
1065
1065
|
canAccepts: A,
|
|
1066
1066
|
getBelongedComponentInstance: f,
|
|
@@ -1070,7 +1070,7 @@ function Fe(n, e, t) {
|
|
|
1070
1070
|
getDragScopeElement: l,
|
|
1071
1071
|
onAcceptMovedChildElement: c,
|
|
1072
1072
|
onAcceptNewChildElement: v,
|
|
1073
|
-
onChildElementMovedOut:
|
|
1073
|
+
onChildElementMovedOut: a,
|
|
1074
1074
|
addNewChildComponentSchema: u,
|
|
1075
1075
|
updateDragAndDropRules: r,
|
|
1076
1076
|
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
|
|
@@ -1081,10 +1081,10 @@ const ke = ["moz", "ms", "webkit"];
|
|
|
1081
1081
|
function Le() {
|
|
1082
1082
|
let n = 0;
|
|
1083
1083
|
return (e) => {
|
|
1084
|
-
const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)),
|
|
1084
|
+
const t = (/* @__PURE__ */ new Date()).getTime(), r = Math.max(0, 16 - (t - n)), s = setTimeout(() => {
|
|
1085
1085
|
e(t + r);
|
|
1086
1086
|
}, r);
|
|
1087
|
-
return n = t + r,
|
|
1087
|
+
return n = t + r, s;
|
|
1088
1088
|
};
|
|
1089
1089
|
}
|
|
1090
1090
|
function Ve() {
|
|
@@ -1097,7 +1097,7 @@ function Ve() {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
Ve();
|
|
1099
1099
|
function Be(n, e) {
|
|
1100
|
-
return ((e == null ? void 0 : e.split(" ")) || []).reduce((r,
|
|
1100
|
+
return ((e == null ? void 0 : e.split(" ")) || []).reduce((r, s) => (s && (r[s] = !0), r), n), n;
|
|
1101
1101
|
}
|
|
1102
1102
|
const qe = /* @__PURE__ */ W({
|
|
1103
1103
|
name: "FContentContainerDesign",
|
|
@@ -1105,7 +1105,7 @@ const qe = /* @__PURE__ */ W({
|
|
|
1105
1105
|
emits: [],
|
|
1106
1106
|
setup(n, e) {
|
|
1107
1107
|
var j;
|
|
1108
|
-
const t = M(), r = Z("design-item-context"),
|
|
1108
|
+
const t = M(), r = Z("design-item-context"), s = $e(r.schema, (j = r.parent) == null ? void 0 : j.schema), b = Fe(t, r, s), h = R(() => Be({
|
|
1109
1109
|
"drag-container": !0
|
|
1110
1110
|
}, n == null ? void 0 : n.customClass));
|
|
1111
1111
|
return K(() => {
|