@farris/ui-vue 1.6.5-beta.7 → 1.6.5
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 +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +360 -361
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +524 -520
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +190 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +309 -309
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1125 -1124
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +472 -472
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3387 -3321
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +177 -177
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +644 -644
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1773 -1760
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +879 -869
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +1091 -1077
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +215 -215
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +139 -141
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1387 -1383
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +217 -217
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +283 -283
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +194 -194
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +463 -462
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +883 -876
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +59 -57
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +739 -739
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +535 -535
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1456 -1443
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1875 -1866
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +151 -147
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1236 -1233
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +1097 -1083
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +103 -98
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1596 -1593
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +684 -684
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +935 -929
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +190 -192
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +124 -124
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2363 -2278
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +227 -227
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/designer/button-edit/index.esm.js +353 -353
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +7 -3
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +38 -33
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +3562 -3536
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +3 -3
- package/designer/data-view/index.umd.cjs +3 -3
- package/designer/farris-designer.all.esm.js +4203 -4193
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/input-group/index.esm.js +97 -97
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1868 -1854
- package/designer/list-view/index.umd.cjs +8 -8
- package/designer/radio-group/index.esm.js +954 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +16195 -16126
- package/farris.all.umd.cjs +30 -30
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as w, computed as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ref as w, computed as C, defineComponent as J, onMounted as Q, watch as pe, createVNode as X, inject as me } from "vue";
|
|
2
|
+
import { cloneDeep as _, isPlainObject as H } from "lodash-es";
|
|
3
|
+
import { useTimeAgo as de, useDateFormat as ve, useNumberFormat as ge } from "../common/index.esm.js";
|
|
4
4
|
import { getSchemaByTypeForDesigner as be } from "../dynamic-resolver/index.esm.js";
|
|
5
5
|
function Z(e, t) {
|
|
6
6
|
let r;
|
|
7
7
|
function c(o) {
|
|
8
|
-
const { properties:
|
|
8
|
+
const { properties: l, title: d, ignore: i } = o, a = i && Array.isArray(i), n = Object.keys(l).reduce((m, S) => ((!a || !i.find((N) => N === S)) && (m[S] = l[S].type === "object" && l[S].properties ? c(l[S]) : _(l[S].default)), m), {});
|
|
9
9
|
if (d && (!a || !i.find((m) => m === "id"))) {
|
|
10
10
|
const m = d.toLowerCase().replace(/-/g, "_");
|
|
11
11
|
n.id = `${m}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -13,9 +13,9 @@ function Z(e, t) {
|
|
|
13
13
|
return n;
|
|
14
14
|
}
|
|
15
15
|
function v(o) {
|
|
16
|
-
const { properties:
|
|
16
|
+
const { properties: l, title: d, required: i } = o;
|
|
17
17
|
if (i && Array.isArray(i)) {
|
|
18
|
-
const a = i.reduce((n, m) => (n[m] =
|
|
18
|
+
const a = i.reduce((n, m) => (n[m] = l[m].type === "object" && l[m].properties ? c(l[m]) : _(l[m].default), n), {});
|
|
19
19
|
if (d && i.find((n) => n === "id")) {
|
|
20
20
|
const n = d.toLowerCase().replace(/-/g, "_");
|
|
21
21
|
a.id = `${n}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -26,23 +26,23 @@ function Z(e, t) {
|
|
|
26
26
|
type: d
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function T(o,
|
|
29
|
+
function T(o, l = {}, d) {
|
|
30
30
|
const i = e[o];
|
|
31
31
|
if (i) {
|
|
32
32
|
let a = v(i);
|
|
33
33
|
const n = t[o];
|
|
34
|
-
return a = n ? n({ getSchemaByType: T }, a,
|
|
34
|
+
return a = n ? n({ getSchemaByType: T }, a, l, d) : a, r != null && r.appendIdentifyForNewControl && r.appendIdentifyForNewControl(a), a;
|
|
35
35
|
}
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
function b(o,
|
|
39
|
-
const d = c(
|
|
40
|
-
return Object.keys(d).reduce((i, a) => (Object.prototype.hasOwnProperty.call(o, a) && (i[a] &&
|
|
38
|
+
function b(o, l) {
|
|
39
|
+
const d = c(l);
|
|
40
|
+
return Object.keys(d).reduce((i, a) => (Object.prototype.hasOwnProperty.call(o, a) && (i[a] && H(i[a]) && H(o[a] || !o[a]) ? Object.assign(i[a], o[a] || {}) : i[a] = o[a]), i), d), d;
|
|
41
41
|
}
|
|
42
|
-
function h(o,
|
|
42
|
+
function h(o, l) {
|
|
43
43
|
return Object.keys(o).filter((i) => o[i] != null).reduce((i, a) => {
|
|
44
|
-
if (
|
|
45
|
-
const n =
|
|
44
|
+
if (l.has(a)) {
|
|
45
|
+
const n = l.get(a);
|
|
46
46
|
if (typeof n == "string")
|
|
47
47
|
i[n] = o[a];
|
|
48
48
|
else {
|
|
@@ -54,15 +54,15 @@ function Z(e, t) {
|
|
|
54
54
|
return i;
|
|
55
55
|
}, {});
|
|
56
56
|
}
|
|
57
|
-
function D(o,
|
|
58
|
-
const i = b(o,
|
|
57
|
+
function D(o, l, d = /* @__PURE__ */ new Map()) {
|
|
58
|
+
const i = b(o, l);
|
|
59
59
|
return h(i, d);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function s(o) {
|
|
62
62
|
var d;
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
65
|
-
const i = e[
|
|
63
|
+
const l = o.type;
|
|
64
|
+
if (l) {
|
|
65
|
+
const i = e[l];
|
|
66
66
|
if (!i)
|
|
67
67
|
return o;
|
|
68
68
|
const a = b(o, i), n = ((d = o.editor) == null ? void 0 : d.type) || "";
|
|
@@ -77,60 +77,60 @@ function Z(e, t) {
|
|
|
77
77
|
function u(o) {
|
|
78
78
|
r = o;
|
|
79
79
|
}
|
|
80
|
-
return { getSchemaByType: T, resolveSchemaWithDefaultValue:
|
|
80
|
+
return { getSchemaByType: T, resolveSchemaWithDefaultValue: s, resolveSchemaToProps: D, mappingSchemaToProps: h, setDesignerContext: u };
|
|
81
81
|
}
|
|
82
|
-
const K = {}, I = {}, { resolveSchemaWithDefaultValue: ye, resolveSchemaToProps: he, mappingSchemaToProps: Se } = Z(K, I);
|
|
82
|
+
const K = {}, I = {}, { getSchemaByType: Tt, resolveSchemaWithDefaultValue: ye, resolveSchemaToProps: he, mappingSchemaToProps: Se, setDesignerContext: Ft } = Z(K, I);
|
|
83
83
|
function Te(e = {}) {
|
|
84
|
-
function t(
|
|
84
|
+
function t(s, u, o, l) {
|
|
85
85
|
if (typeof o == "number")
|
|
86
|
-
return s
|
|
86
|
+
return l[s].length === o;
|
|
87
87
|
if (typeof o == "object") {
|
|
88
88
|
const d = Object.keys(o)[0], i = o[d];
|
|
89
89
|
if (d === "not")
|
|
90
|
-
return Number(s
|
|
90
|
+
return Number(l[s].length) !== Number(i);
|
|
91
91
|
if (d === "moreThan")
|
|
92
|
-
return Number(s
|
|
92
|
+
return Number(l[s].length) >= Number(i);
|
|
93
93
|
if (d === "lessThan")
|
|
94
|
-
return Number(s
|
|
94
|
+
return Number(l[s].length) <= Number(i);
|
|
95
95
|
}
|
|
96
96
|
return !1;
|
|
97
97
|
}
|
|
98
|
-
function r(
|
|
99
|
-
return s
|
|
98
|
+
function r(s, u, o, l) {
|
|
99
|
+
return l[s] && l[s].propertyValue && String(l[s].propertyValue.value) === String(o);
|
|
100
100
|
}
|
|
101
101
|
const c = /* @__PURE__ */ new Map([
|
|
102
102
|
["length", t],
|
|
103
103
|
["getProperty", r]
|
|
104
104
|
]);
|
|
105
|
-
Object.keys(e).reduce((
|
|
106
|
-
function v(
|
|
107
|
-
const o =
|
|
108
|
-
return typeof u == "number" ? [{ target: o, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: o, operator: "getProperty", param:
|
|
109
|
-
if (
|
|
110
|
-
return { target: o, operator: "length", param: null, value: u[
|
|
111
|
-
const d =
|
|
105
|
+
Object.keys(e).reduce((s, u) => (s.set(u, e[u]), s), c);
|
|
106
|
+
function v(s, u) {
|
|
107
|
+
const o = s;
|
|
108
|
+
return typeof u == "number" ? [{ target: o, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: o, operator: "getProperty", param: s, value: !!u }] : typeof u == "object" ? Object.keys(u).map((l) => {
|
|
109
|
+
if (l === "length")
|
|
110
|
+
return { target: o, operator: "length", param: null, value: u[l] };
|
|
111
|
+
const d = l, i = u[l];
|
|
112
112
|
return { target: o, operator: "getProperty", param: d, value: i };
|
|
113
113
|
}) : [];
|
|
114
114
|
}
|
|
115
|
-
function T(
|
|
116
|
-
return Object.keys(
|
|
117
|
-
const d = v(
|
|
115
|
+
function T(s) {
|
|
116
|
+
return Object.keys(s).reduce((o, l) => {
|
|
117
|
+
const d = v(l, s[l]);
|
|
118
118
|
return o.push(...d), o;
|
|
119
119
|
}, []);
|
|
120
120
|
}
|
|
121
|
-
function b(
|
|
122
|
-
if (c.has(
|
|
123
|
-
const o = c.get(
|
|
124
|
-
return o && o(
|
|
121
|
+
function b(s, u) {
|
|
122
|
+
if (c.has(s.operator)) {
|
|
123
|
+
const o = c.get(s.operator);
|
|
124
|
+
return o && o(s.target, s.param, s.value, u) || !1;
|
|
125
125
|
}
|
|
126
126
|
return !1;
|
|
127
127
|
}
|
|
128
|
-
function h(
|
|
129
|
-
return T(
|
|
128
|
+
function h(s, u) {
|
|
129
|
+
return T(s).reduce((d, i) => d && b(i, u), !0);
|
|
130
130
|
}
|
|
131
|
-
function D(
|
|
132
|
-
const o = Object.keys(
|
|
133
|
-
return
|
|
131
|
+
function D(s, u) {
|
|
132
|
+
const o = Object.keys(s), l = o.includes("allOf"), d = o.includes("anyOf"), i = l || d, m = (i ? s[i ? l ? "allOf" : "anyOf" : "allOf"] : [s]).map((N) => h(N, u));
|
|
133
|
+
return l ? !m.includes(!1) : m.includes(!0);
|
|
134
134
|
}
|
|
135
135
|
return { parseValueSchema: D };
|
|
136
136
|
}
|
|
@@ -304,12 +304,12 @@ const Fe = {
|
|
|
304
304
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = c.bindingField, e.binding.field = c.id, e.binding.fullPath = c.path, e.path = c.bindingPath;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
},
|
|
307
|
+
}, Be = {
|
|
308
308
|
convertTo: (e, t, r, c) => {
|
|
309
309
|
e.pagination || (e.pagination = {}), e.pagination[t] = r;
|
|
310
310
|
},
|
|
311
311
|
convertFrom: (e, t, r) => e.pagination ? e.pagination[t] : e[t]
|
|
312
|
-
},
|
|
312
|
+
}, Re = {
|
|
313
313
|
convertTo: (e, t, r, c) => {
|
|
314
314
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = r;
|
|
315
315
|
},
|
|
@@ -334,12 +334,12 @@ const Fe = {
|
|
|
334
334
|
e.size || (e.size = {}), e.size[t] = r;
|
|
335
335
|
},
|
|
336
336
|
convertFrom: (e, t, r) => e.size ? e.size[t] : e[t]
|
|
337
|
-
},
|
|
337
|
+
}, Ce = {
|
|
338
338
|
convertFrom: (e, t, r) => {
|
|
339
339
|
var c, v;
|
|
340
340
|
return (c = e.formatter) != null && c.data && t === "formatterEnumData" && !e.formatterEnumData ? (v = e.formatter) == null ? void 0 : v.data : e.formatterEnumData;
|
|
341
341
|
}
|
|
342
|
-
},
|
|
342
|
+
}, Le = {
|
|
343
343
|
convertTo: (e, t, r, c) => {
|
|
344
344
|
e.sort || (e.sort = {}), e.sort[t] = r;
|
|
345
345
|
},
|
|
@@ -350,7 +350,7 @@ const Fe = {
|
|
|
350
350
|
if (t === "multiSort")
|
|
351
351
|
return !!((v = e.sort) != null && v.multiSort);
|
|
352
352
|
}
|
|
353
|
-
},
|
|
353
|
+
}, We = {
|
|
354
354
|
convertTo: (e, t, r, c) => {
|
|
355
355
|
e.filter || (e.filter = {}), e.filter[t] = r;
|
|
356
356
|
},
|
|
@@ -359,7 +359,7 @@ const Fe = {
|
|
|
359
359
|
if (t === "mode")
|
|
360
360
|
return ((c = e.filter) == null ? void 0 : c.mode) || "client";
|
|
361
361
|
}
|
|
362
|
-
},
|
|
362
|
+
}, Ue = {
|
|
363
363
|
convertTo: (e, t, r, c) => {
|
|
364
364
|
e.rowOption ? e.rowOption[t] = r : e.rowOption = {
|
|
365
365
|
[t]: r
|
|
@@ -390,14 +390,14 @@ function te(e, t, r) {
|
|
|
390
390
|
["/converter/group.converter", ke],
|
|
391
391
|
["/converter/form-group-label.converter", ze],
|
|
392
392
|
["/converter/field-selector.converter", $e],
|
|
393
|
-
["/converter/pagination.converter",
|
|
394
|
-
["/converter/row-number.converter",
|
|
393
|
+
["/converter/pagination.converter", Be],
|
|
394
|
+
["/converter/row-number.converter", Re],
|
|
395
395
|
["/converter/grid-selection.converter", xe],
|
|
396
396
|
["/converter/size.converter", qe],
|
|
397
|
-
["/converter/change-formatter-enum.converter",
|
|
398
|
-
["/converter/grid-sort.converter",
|
|
399
|
-
["/converter/grid-filter.converter",
|
|
400
|
-
["/converter/row-option.converter",
|
|
397
|
+
["/converter/change-formatter-enum.converter", Ce],
|
|
398
|
+
["/converter/grid-sort.converter", Le],
|
|
399
|
+
["/converter/grid-filter.converter", We],
|
|
400
|
+
["/converter/row-option.converter", Ue]
|
|
401
401
|
]), v = /* @__PURE__ */ new Map([
|
|
402
402
|
["string", { type: "input-group", enableClear: !1 }],
|
|
403
403
|
["boolean", {
|
|
@@ -432,20 +432,20 @@ function te(e, t, r) {
|
|
|
432
432
|
function D(i, a, n) {
|
|
433
433
|
return i.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : b(a.readonly, n) : () => !1;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function s(i, a) {
|
|
436
436
|
const n = i.$converter || a;
|
|
437
437
|
return typeof n == "string" && n && c.has(n) ? c.get(n) || null : n || null;
|
|
438
438
|
}
|
|
439
439
|
function u(i, a, n, m, S, N = "", E = "") {
|
|
440
440
|
return Object.keys(i).map((O) => {
|
|
441
|
-
const
|
|
441
|
+
const B = w(1), R = O, p = i[O], k = Object.keys(p), z = p.title, f = p.type, y = v.get(f) || { type: "input-group", enableClear: !1 }, g = p.editor ? Object.assign({}, y, p.editor) : Object.assign({}, y), F = h(k, p, a), P = D(k, p, a);
|
|
442
442
|
g.readonly = g.readonly === void 0 ? P() : g.readonly;
|
|
443
443
|
const $ = p.type === "cascade" ? u(p.properties, a, n, m, S, N, E) : [], q = !0;
|
|
444
|
-
let j =
|
|
445
|
-
const x =
|
|
444
|
+
let j = s(p, E);
|
|
445
|
+
const x = C({
|
|
446
446
|
get() {
|
|
447
|
-
if (
|
|
448
|
-
if (["class", "style"].find((fe) => fe ===
|
|
447
|
+
if (B.value) {
|
|
448
|
+
if (["class", "style"].find((fe) => fe === R) && !j && (j = c.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
449
449
|
return j.convertFrom(n, O, S, N);
|
|
450
450
|
const A = n[O];
|
|
451
451
|
return Object.prototype.hasOwnProperty.call(p, "defaultValue") && (A === void 0 || typeof A == "string" && A === "") ? p.type === "boolean" ? p.defaultValue : p.defaultValue || "" : A;
|
|
@@ -453,27 +453,27 @@ function te(e, t, r) {
|
|
|
453
453
|
return null;
|
|
454
454
|
},
|
|
455
455
|
set(A) {
|
|
456
|
-
|
|
456
|
+
B.value += 1, j && j.convertTo ? (j.convertTo(m, O, A, S, N), j.convertTo(n, O, A, S, N)) : (m[O] = A, n[O] = A);
|
|
457
457
|
}
|
|
458
|
-
}), { refreshPanelAfterChanged:
|
|
459
|
-
return a[
|
|
458
|
+
}), { refreshPanelAfterChanged: L, description: se, isExpand: le, parentPropertyID: ue } = p, Y = { propertyID: R, propertyName: z, propertyType: f, propertyValue: x, editor: g, visible: F, readonly: P, cascadeConfig: $, hideCascadeTitle: q, refreshPanelAfterChanged: L, description: se, isExpand: le, parentPropertyID: ue };
|
|
459
|
+
return a[R] = Y, Y;
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
462
|
function o(i, a, n = {}) {
|
|
463
463
|
const m = {}, S = e[i];
|
|
464
464
|
return S && S.categories ? Object.keys(S.categories).map((E) => {
|
|
465
|
-
const M = S.categories[E], O = M == null ? void 0 : M.title,
|
|
466
|
-
return { categoryId: E, categoryName: O, properties:
|
|
465
|
+
const M = S.categories[E], O = M == null ? void 0 : M.title, B = u(M.properties || {}, m, {}, n, a);
|
|
466
|
+
return { categoryId: E, categoryName: O, properties: B };
|
|
467
467
|
}) : [];
|
|
468
468
|
}
|
|
469
|
-
function
|
|
470
|
-
const N = a.$ref.schema, E = a.$ref.converter, M = n[N], O = M.type,
|
|
469
|
+
function l(i, a, n, m, S = "") {
|
|
470
|
+
const N = a.$ref.schema, E = a.$ref.converter, M = n[N], O = M.type, B = r(M), R = {}, p = e[O];
|
|
471
471
|
if (p && p.categories) {
|
|
472
472
|
const k = p.categories[i], z = k == null ? void 0 : k.title;
|
|
473
473
|
E && Object.keys(k.properties).forEach((g) => {
|
|
474
474
|
k.properties[g].$converter = E;
|
|
475
475
|
});
|
|
476
|
-
const f = (k == null ? void 0 : k.properties) || {}, y = u(f,
|
|
476
|
+
const f = (k == null ? void 0 : k.properties) || {}, y = u(f, R, B, M, m, S);
|
|
477
477
|
return { categoryId: i, categoryName: z, properties: y };
|
|
478
478
|
}
|
|
479
479
|
return { categoryId: i, categoryName: "", properties: [] };
|
|
@@ -482,16 +482,16 @@ function te(e, t, r) {
|
|
|
482
482
|
const N = i.type, E = r(i), M = {};
|
|
483
483
|
let O = S || e[N];
|
|
484
484
|
if (O && Object.keys(O).length === 0 && n && n.getPropConfig && (O = n.getPropConfig(m)), O && O.categories) {
|
|
485
|
-
const
|
|
486
|
-
return Object.keys(O.categories).map((
|
|
487
|
-
const p = O.categories[
|
|
485
|
+
const B = [];
|
|
486
|
+
return Object.keys(O.categories).map((R) => {
|
|
487
|
+
const p = O.categories[R];
|
|
488
488
|
if (p.$ref) {
|
|
489
|
-
|
|
489
|
+
B.push(l(R, p, i, a, m));
|
|
490
490
|
return;
|
|
491
491
|
}
|
|
492
492
|
const k = p == null ? void 0 : p.title, z = p == null ? void 0 : p.tabId, f = p == null ? void 0 : p.tabName, y = p == null ? void 0 : p.hide, g = p == null ? void 0 : p.hideTitle, F = u(p.properties || {}, M, E, i, a, m, p.$converter), { setPropertyRelates: P } = p, $ = p == null ? void 0 : p.parentPropertyID;
|
|
493
|
-
|
|
494
|
-
}),
|
|
493
|
+
B.push({ categoryId: R, categoryName: k, tabId: z, tabName: f, hide: y, properties: F, hideTitle: g, setPropertyRelates: P, parentPropertyID: $ });
|
|
494
|
+
}), B;
|
|
495
495
|
}
|
|
496
496
|
return [];
|
|
497
497
|
}
|
|
@@ -503,14 +503,14 @@ function te(e, t, r) {
|
|
|
503
503
|
}
|
|
504
504
|
const re = {}, ne = {};
|
|
505
505
|
te(re, ne, ye);
|
|
506
|
-
const oe = {}, ie = {}, { resolveSchemaWithDefaultValue:
|
|
507
|
-
te(ae, ce,
|
|
508
|
-
function
|
|
506
|
+
const oe = {}, ie = {}, { getSchemaByType: Dt, resolveSchemaWithDefaultValue: Ye, resolveSchemaToProps: Ot, mappingSchemaToProps: Pt, setDesignerContext: wt } = Z(oe, ie), ae = {}, ce = {};
|
|
507
|
+
te(ae, ce, Ye);
|
|
508
|
+
function _e(e, t, r = /* @__PURE__ */ new Map(), c = (b, h, D, s) => h, v = {}, T = (b) => b) {
|
|
509
509
|
return K[t.title] = t, I[t.title] = c, re[t.title] = v, ne[t.title] = T, oe[t.title] = t, ie[t.title] = c, ae[t.title] = v, ce[t.title] = T, (b = {}, h = !0) => {
|
|
510
510
|
if (!h)
|
|
511
511
|
return Se(b, r);
|
|
512
|
-
const D = he(b, t, r),
|
|
513
|
-
return Object.assign(
|
|
512
|
+
const D = he(b, t, r), s = Object.keys(e).reduce((u, o) => (u[o] = e[o].default, u), {});
|
|
513
|
+
return Object.assign(s, D);
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
516
|
function He(e, t) {
|
|
@@ -622,7 +622,7 @@ const Je = "text", Qe = "A Farris Component", Xe = "object", Ze = {
|
|
|
622
622
|
type: nt,
|
|
623
623
|
properties: ot,
|
|
624
624
|
required: it
|
|
625
|
-
},
|
|
625
|
+
}, U = {
|
|
626
626
|
// 组件值
|
|
627
627
|
modelValue: { type: [String, Number, Boolean], default: "" },
|
|
628
628
|
// 是否是密码
|
|
@@ -663,18 +663,18 @@ const Je = "text", Qe = "A Farris Component", Xe = "object", Ze = {
|
|
|
663
663
|
dateRangeDelimiter: { type: String, default: "~" },
|
|
664
664
|
// 枚举项的分隔符
|
|
665
665
|
enumDelimiter: { type: String, default: "," }
|
|
666
|
-
}, V =
|
|
666
|
+
}, V = _e(U, at, Ve, Ge, Ke);
|
|
667
667
|
function ct(e) {
|
|
668
668
|
let t;
|
|
669
669
|
return /Y/g.test(e) === !0 ? t = e.replace(/Y/g, "y") : t = e, /D/g.test(t) === !0 && (t = t.replace(/D/g, "d")), t;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function st(e, t, r, c, v) {
|
|
672
672
|
if (e == null || e === "")
|
|
673
673
|
return "";
|
|
674
674
|
if (t && t.length) {
|
|
675
675
|
const T = ("" + e).split(r), b = [];
|
|
676
676
|
for (let h = 0; h < T.length; h++) {
|
|
677
|
-
const D = t.find((
|
|
677
|
+
const D = t.find((s) => s[v] === T[h]);
|
|
678
678
|
D ? b.push(D[c]) : b.push(T[h]);
|
|
679
679
|
}
|
|
680
680
|
return b.length > 0 ? b.join(r) : "";
|
|
@@ -683,9 +683,9 @@ function lt(e, t, r, c, v) {
|
|
|
683
683
|
}
|
|
684
684
|
function G(e, t) {
|
|
685
685
|
let r;
|
|
686
|
-
return t || (t = "YYYY-MM-DD"), t === "timeago" ?
|
|
686
|
+
return t || (t = "YYYY-MM-DD"), t === "timeago" ? de().formatTo(e) : (t === "hh:mm:ss" || t === "HH:mm:ss" ? r = e : r = ve().formatTo(e, ct(t)), r);
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function lt(e, t) {
|
|
689
689
|
return !e && !t || t && t.type && t.type === "number" && (t.formatter || (t.useThousands ? t.precision !== void 0 ? e = "n" + t.precision : e = "n2" : t.precision !== void 0 ? e = "f" + t.precision : e = "f2")), e;
|
|
690
690
|
}
|
|
691
691
|
function ut(e) {
|
|
@@ -702,24 +702,24 @@ function mt(e, t, r, c, v, T, b) {
|
|
|
702
702
|
return e.toString();
|
|
703
703
|
if (r && r.type && r.type === "number" && r.formatter)
|
|
704
704
|
return r.formatter(e);
|
|
705
|
-
const h = ut(t.substring(0, 1)), D = Number(t.substring(1)),
|
|
705
|
+
const h = ut(t.substring(0, 1)), D = Number(t.substring(1)), s = {};
|
|
706
706
|
let u;
|
|
707
707
|
if (!/C|D|F|N|P/g.test(h))
|
|
708
708
|
return;
|
|
709
|
-
c && Object.assign(
|
|
710
|
-
const { formatTo: o } =
|
|
709
|
+
c && Object.assign(s, { groupSeparator: c }), v && Object.assign(s, { decimalSeparator: v }), T && Object.assign(s, { format: T });
|
|
710
|
+
const { formatTo: o } = ge();
|
|
711
711
|
switch (h) {
|
|
712
712
|
case "C":
|
|
713
|
-
Object.assign(
|
|
713
|
+
Object.assign(s, { prefix: "¥", precision: D }), u = o(e, s);
|
|
714
714
|
break;
|
|
715
715
|
case "D":
|
|
716
716
|
u = ft(e, D, b);
|
|
717
717
|
break;
|
|
718
718
|
case "F":
|
|
719
|
-
Object.assign(
|
|
719
|
+
Object.assign(s, { prefix: "", groupSeparator: "", precision: D }), u = o(e, s);
|
|
720
720
|
break;
|
|
721
721
|
case "N":
|
|
722
|
-
Object.assign(
|
|
722
|
+
Object.assign(s, { prefix: "", precision: D }), u = o(e, s);
|
|
723
723
|
break;
|
|
724
724
|
case "P":
|
|
725
725
|
u = pt(e, D);
|
|
@@ -730,16 +730,16 @@ function mt(e, t, r, c, v, T, b) {
|
|
|
730
730
|
function dt(e) {
|
|
731
731
|
return e === !0 ? "是" : e === !1 || e == null || e === "" || typeof e > "u" ? "否" : e;
|
|
732
732
|
}
|
|
733
|
-
const
|
|
733
|
+
const W = /* @__PURE__ */ J({
|
|
734
734
|
name: "FText",
|
|
735
|
-
props:
|
|
735
|
+
props: U,
|
|
736
736
|
emits: ["update:modelValue", "valueChange"],
|
|
737
737
|
setup(e, t) {
|
|
738
|
-
const r = w(e.textarea), c = w(e.password), v = w(e.autoSize), T = w(e.dateRange), b = w(e.type), h = w(e.format), D = w(),
|
|
738
|
+
const r = w(e.textarea), c = w(e.password), v = w(e.autoSize), T = w(e.dateRange), b = w(e.type), h = w(e.format), D = w(), s = w(), u = w(""), o = C(() => ({
|
|
739
739
|
"f-form-control-text": !r.value,
|
|
740
740
|
"f-form-context-textarea": r,
|
|
741
741
|
"f-component-text-auto-size": v.value
|
|
742
|
-
})),
|
|
742
|
+
})), l = C(() => ({
|
|
743
743
|
"text-align": e.textAlign,
|
|
744
744
|
height: !v.value && e.height > 0 ? `${e.height}px` : "",
|
|
745
745
|
"min-height": v.value && e.height > 0 ? `${e.height}px` : "",
|
|
@@ -747,8 +747,8 @@ const U = /* @__PURE__ */ J({
|
|
|
747
747
|
}));
|
|
748
748
|
Q(() => {
|
|
749
749
|
if (r.value) {
|
|
750
|
-
const n =
|
|
751
|
-
|
|
750
|
+
const n = s.value.parentElement.className;
|
|
751
|
+
s.value.parentElement.className = n + " f-cmp-text-is-textarea";
|
|
752
752
|
}
|
|
753
753
|
});
|
|
754
754
|
function d(n) {
|
|
@@ -773,10 +773,10 @@ const U = /* @__PURE__ */ J({
|
|
|
773
773
|
}
|
|
774
774
|
break;
|
|
775
775
|
case "number":
|
|
776
|
-
h.value =
|
|
776
|
+
h.value = lt(h.value, e.numberOptions), m = mt(n, h.value, e.numberOptions, e.groupSeparator, e.decimalSeparator, e.amountExpression, e.decimalFilledSymbol);
|
|
777
777
|
break;
|
|
778
778
|
case "enum":
|
|
779
|
-
m =
|
|
779
|
+
m = st(n, e.enumConvertedDatas, e.enumDelimiter, e.textField, e.valueField);
|
|
780
780
|
break;
|
|
781
781
|
case "boolean":
|
|
782
782
|
m = dt(n);
|
|
@@ -784,20 +784,20 @@ const U = /* @__PURE__ */ J({
|
|
|
784
784
|
}
|
|
785
785
|
return m;
|
|
786
786
|
}
|
|
787
|
-
const i =
|
|
787
|
+
const i = C(() => {
|
|
788
788
|
const n = d(e.modelValue);
|
|
789
789
|
return D.value !== n && (t.emit("valueChange", n), D.value = n), n;
|
|
790
790
|
});
|
|
791
791
|
function a() {
|
|
792
|
-
const n =
|
|
792
|
+
const n = s.value;
|
|
793
793
|
Math.abs(n.scrollWidth - n.clientWidth) > 2 || Math.abs(n.scrollHeight - n.clientHeight) > 2 ? u.value = i.value : u.value = "";
|
|
794
794
|
}
|
|
795
795
|
return pe(() => e.modelValue, (n, m) => {
|
|
796
796
|
n !== m && t.emit("update:modelValue", n);
|
|
797
797
|
}), () => X("span", {
|
|
798
798
|
class: o.value,
|
|
799
|
-
style:
|
|
800
|
-
ref:
|
|
799
|
+
style: l.value,
|
|
800
|
+
ref: s,
|
|
801
801
|
onMouseenter: () => a(),
|
|
802
802
|
title: u.value
|
|
803
803
|
}, [i.value]);
|
|
@@ -813,7 +813,7 @@ function vt(e, t, r) {
|
|
|
813
813
|
function D() {
|
|
814
814
|
return !1;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function s() {
|
|
817
817
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
818
818
|
}
|
|
819
819
|
function u() {
|
|
@@ -827,16 +827,16 @@ function vt(e, t, r) {
|
|
|
827
827
|
const y = w(f == null ? void 0 : f.value.parent), g = o(y);
|
|
828
828
|
return g || null;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function l(f = t) {
|
|
831
831
|
var P;
|
|
832
832
|
const { componentInstance: y, designerItemElementRef: g } = f;
|
|
833
833
|
if (!y || !y.value)
|
|
834
834
|
return null;
|
|
835
835
|
const { getCustomButtons: F } = y.value;
|
|
836
|
-
return y.value.canMove || F && ((P = F()) != null && P.length) ? g :
|
|
836
|
+
return y.value.canMove || F && ((P = F()) != null && P.length) ? g : l(f.parent);
|
|
837
837
|
}
|
|
838
838
|
function d(f) {
|
|
839
|
-
return
|
|
839
|
+
return !!r;
|
|
840
840
|
}
|
|
841
841
|
function i() {
|
|
842
842
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
@@ -883,17 +883,17 @@ function vt(e, t, r) {
|
|
|
883
883
|
});
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
|
-
function
|
|
886
|
+
function B() {
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function R(f) {
|
|
889
889
|
var g, F;
|
|
890
890
|
if (!((g = t == null ? void 0 : t.schema) != null && g.id))
|
|
891
891
|
return;
|
|
892
892
|
!b && f && (b = f.formSchemaUtils);
|
|
893
893
|
let y = "";
|
|
894
894
|
{
|
|
895
|
-
const { text: P, title: $, label: q, mainTitle: j, name: x, type:
|
|
896
|
-
y = P || $ || q || j || x || ((F = ee[
|
|
895
|
+
const { text: P, title: $, label: q, mainTitle: j, name: x, type: L } = t.schema;
|
|
896
|
+
y = P || $ || q || j || x || ((F = ee[L]) == null ? void 0 : F.name);
|
|
897
897
|
}
|
|
898
898
|
y && b.getControlBasicInfoMap().set(t.schema.id, {
|
|
899
899
|
componentTitle: y,
|
|
@@ -903,10 +903,10 @@ function vt(e, t, r) {
|
|
|
903
903
|
function p(f) {
|
|
904
904
|
var P;
|
|
905
905
|
const { changeObject: y } = f, { propertyID: g, propertyValue: F } = y;
|
|
906
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((P = f == null ? void 0 : f.changeObject) == null ? void 0 : P.propertyID) && g && F && (
|
|
906
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((P = f == null ? void 0 : f.changeObject) == null ? void 0 : P.propertyID) && g && F && (R(), b)) {
|
|
907
907
|
const $ = b.getControlBasicInfoMap(), q = $.keys().toArray().filter((j) => {
|
|
908
|
-
var x,
|
|
909
|
-
return ((x = $.get(j)) == null ? void 0 : x.reliedComponentId) === ((
|
|
908
|
+
var x, L;
|
|
909
|
+
return ((x = $.get(j)) == null ? void 0 : x.reliedComponentId) === ((L = t == null ? void 0 : t.schema) == null ? void 0 : L.id);
|
|
910
910
|
});
|
|
911
911
|
q != null && q.length && q.forEach((j) => {
|
|
912
912
|
const x = $.get(j).parentPathName.split(" > ");
|
|
@@ -920,7 +920,7 @@ function vt(e, t, r) {
|
|
|
920
920
|
return T.value = {
|
|
921
921
|
canMove: h(),
|
|
922
922
|
canSelectParent: D(),
|
|
923
|
-
canDelete:
|
|
923
|
+
canDelete: s(),
|
|
924
924
|
canNested: !u(),
|
|
925
925
|
contents: t == null ? void 0 : t.schema.contents,
|
|
926
926
|
elementRef: e,
|
|
@@ -930,7 +930,7 @@ function vt(e, t, r) {
|
|
|
930
930
|
designerClass: v,
|
|
931
931
|
canAccepts: d,
|
|
932
932
|
getBelongedComponentInstance: o,
|
|
933
|
-
getDraggableDesignItemElement:
|
|
933
|
+
getDraggableDesignItemElement: l,
|
|
934
934
|
getDraggingDisplayText: i,
|
|
935
935
|
getPropConfig: N,
|
|
936
936
|
getDragScopeElement: a,
|
|
@@ -940,51 +940,51 @@ function vt(e, t, r) {
|
|
|
940
940
|
triggerBelongedComponentToMoveWhenMoved: w(!1),
|
|
941
941
|
triggerBelongedComponentToDeleteWhenDeleted: w(!1),
|
|
942
942
|
onRemoveComponent: O,
|
|
943
|
-
getCustomButtons:
|
|
943
|
+
getCustomButtons: B,
|
|
944
944
|
onPropertyChanged: k,
|
|
945
|
-
setComponentBasicInfoMap:
|
|
945
|
+
setComponentBasicInfoMap: R,
|
|
946
946
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
947
947
|
}, T;
|
|
948
948
|
}
|
|
949
949
|
const gt = /* @__PURE__ */ J({
|
|
950
950
|
name: "FTextDesign",
|
|
951
|
-
props:
|
|
951
|
+
props: U,
|
|
952
952
|
emits: ["update:modelValue"],
|
|
953
953
|
setup(e, t) {
|
|
954
|
-
const r = w(!0), c = w(!0), v = w(""), T = w(0), b = w(0), h = w(e.modelValue), D =
|
|
954
|
+
const r = w(!0), c = w(!0), v = w(""), T = w(0), b = w(0), h = w(e.modelValue), D = C(() => ({
|
|
955
955
|
"f-form-control-text": !r.value,
|
|
956
956
|
"f-form-context-textarea": r,
|
|
957
957
|
"f-component-text-auto-size": c.value
|
|
958
|
-
})),
|
|
958
|
+
})), s = C(() => ({
|
|
959
959
|
textalign: v.value,
|
|
960
960
|
height: !c.value && T.value > 0 ? `${T.value}px` : "",
|
|
961
961
|
"min-height": !c.value && T.value > 0 ? `${T.value}px` : "",
|
|
962
962
|
"max-height": !c.value && b.value > 0 ? `${b.value}px` : ""
|
|
963
963
|
}));
|
|
964
|
-
|
|
965
|
-
const u = w(), o = me("design-item-context"),
|
|
964
|
+
C(() => "");
|
|
965
|
+
const u = w(), o = me("design-item-context"), l = vt(u, o);
|
|
966
966
|
return Q(() => {
|
|
967
|
-
u.value.componentInstance =
|
|
968
|
-
}), t.expose(
|
|
967
|
+
u.value.componentInstance = l;
|
|
968
|
+
}), t.expose(l.value), () => X("span", {
|
|
969
969
|
ref: u,
|
|
970
970
|
class: D.value,
|
|
971
|
-
style:
|
|
971
|
+
style: s.value
|
|
972
972
|
}, [h.value]);
|
|
973
973
|
}
|
|
974
|
-
}),
|
|
974
|
+
}), Nt = {
|
|
975
975
|
install(e) {
|
|
976
|
-
e.component(
|
|
976
|
+
e.component(W.name, W);
|
|
977
977
|
},
|
|
978
978
|
register(e, t, r, c) {
|
|
979
|
-
e.text =
|
|
979
|
+
e.text = W, t.text = V;
|
|
980
980
|
},
|
|
981
981
|
registerDesigner(e, t, r) {
|
|
982
982
|
e.text = gt, t.text = V;
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
985
|
export {
|
|
986
|
-
|
|
987
|
-
|
|
986
|
+
W as FText,
|
|
987
|
+
Nt as default,
|
|
988
988
|
V as propsResolver,
|
|
989
|
-
|
|
989
|
+
U as textProps
|
|
990
990
|
};
|