@farris/ui-vue 1.3.4 → 1.3.6
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 +16 -16
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +65 -65
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +13 -13
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +504 -490
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +247 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +356 -344
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +159 -145
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +127 -128
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +15 -15
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +101 -87
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +9 -7
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +181 -167
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +746 -730
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +9 -7
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +789 -777
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3096 -3069
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +257 -243
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +322 -306
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +177 -163
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +78 -82
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +501 -487
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +37 -37
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +487 -472
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +440 -433
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +594 -587
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +2766 -2739
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +402 -388
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +201 -202
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +264 -245
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +157 -143
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +314 -298
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +862 -843
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1031 -1015
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +169 -155
- package/components/nav/index.umd.cjs +2 -2
- package/components/number-range/index.esm.js +150 -137
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +207 -194
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +427 -414
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +22 -22
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +510 -492
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +192 -178
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +234 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +288 -277
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +62 -61
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +776 -770
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +296 -283
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +222 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +187 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +554 -542
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +483 -469
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +634 -619
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +228 -214
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +419 -406
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +162 -148
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +308 -284
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +279 -265
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +183 -170
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +307 -294
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +320 -306
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +245 -231
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +260 -247
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +409 -396
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +424 -410
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +383 -376
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +595 -575
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +325 -311
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +304 -290
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +99 -85
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +947 -933
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +5492 -5470
- package/farris.all.umd.cjs +13 -13
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
|
@@ -32,8 +32,8 @@ import Tt from "../list-nav/index.esm.js";
|
|
|
32
32
|
import wt from "../list-view/index.esm.js";
|
|
33
33
|
import kt from "../lookup/index.esm.js";
|
|
34
34
|
import Bt from "../mapping-editor/index.esm.js";
|
|
35
|
-
import
|
|
36
|
-
import
|
|
35
|
+
import Pt from "../nav/index.esm.js";
|
|
36
|
+
import St from "../number-range/index.esm.js";
|
|
37
37
|
import Et from "../order/index.esm.js";
|
|
38
38
|
import It from "../page-header/index.esm.js";
|
|
39
39
|
import Ot from "../page-footer/index.esm.js";
|
|
@@ -159,7 +159,7 @@ function me(e) {
|
|
|
159
159
|
}
|
|
160
160
|
function te(e, t) {
|
|
161
161
|
const n = me(t);
|
|
162
|
-
return Object.keys(n).reduce((o, r) => (o[r] && se(o[r]) && se(e[r] || !e[r]) ? Object.assign(o[r], e[r] || {}) : o[r] = e[r], o), n), n;
|
|
162
|
+
return Object.keys(n).reduce((o, r) => (Object.prototype.hasOwnProperty.call(e, r) && (o[r] && se(o[r]) && se(e[r] || !e[r]) ? Object.assign(o[r], e[r] || {}) : o[r] = e[r]), o), n), n;
|
|
163
163
|
}
|
|
164
164
|
function cn(e, t) {
|
|
165
165
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
@@ -328,16 +328,16 @@ function kn(e, t, n) {
|
|
|
328
328
|
function Bn(e, t, n) {
|
|
329
329
|
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.readonly == "boolean" ? () => !!t.readonly : ye(t.readonly, n) : () => !1;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Pn(e, t) {
|
|
332
332
|
const n = e.$converter || t;
|
|
333
333
|
return typeof n == "string" && n && ne.has(n) ? ne.get(n) || null : n || null;
|
|
334
334
|
}
|
|
335
335
|
function re(e, t, n, o, r, d = "", u = "") {
|
|
336
336
|
return Object.keys(e).map((c) => {
|
|
337
|
-
const i = F(1), g = c, a = e[c], v = Object.keys(a), s = a.title, b = a.type, B = Tn.get(b) || { type: "input-group", enableClear: !1 },
|
|
338
|
-
|
|
339
|
-
const L = a.type === "cascade" ? re(a.properties, t, n, o, r, d, u) : [],
|
|
340
|
-
let E =
|
|
337
|
+
const i = F(1), g = c, a = e[c], v = Object.keys(a), s = a.title, b = a.type, B = Tn.get(b) || { type: "input-group", enableClear: !1 }, P = a.editor ? Object.assign({}, B, a.editor) : Object.assign({}, B), M = kn(v, a, t), j = Bn(v, a, t);
|
|
338
|
+
P.readonly = j();
|
|
339
|
+
const L = a.type === "cascade" ? re(a.properties, t, n, o, r, d, u) : [], S = !0;
|
|
340
|
+
let E = Pn(a, u);
|
|
341
341
|
const O = N({
|
|
342
342
|
get() {
|
|
343
343
|
if (i.value) {
|
|
@@ -351,16 +351,16 @@ function re(e, t, n, o, r, d = "", u = "") {
|
|
|
351
351
|
set(V) {
|
|
352
352
|
i.value += 1, E && E.convertTo ? (E.convertTo(o, c, V, r, d), E.convertTo(n, c, V, r, d)) : (o[c] = V, n[c] = V);
|
|
353
353
|
}
|
|
354
|
-
}), { refreshPanelAfterChanged: k } = a, $ = { propertyID: g, propertyName: s, propertyType: b, propertyValue: O, editor:
|
|
354
|
+
}), { refreshPanelAfterChanged: k } = a, $ = { propertyID: g, propertyName: s, propertyType: b, propertyValue: O, editor: P, visible: M, readonly: j, cascadeConfig: L, hideCascadeTitle: S, refreshPanelAfterChanged: k };
|
|
355
355
|
return t[g] = $, $;
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Sn(e, t, n, o, r = "") {
|
|
359
359
|
const d = t.$ref.schema, u = t.$ref.converter, T = n[d], c = T.type, i = ge(T), g = {}, a = oe[c];
|
|
360
360
|
if (a && a.categories) {
|
|
361
361
|
const v = a.categories[e], s = v == null ? void 0 : v.title;
|
|
362
|
-
u && Object.keys(v.properties).forEach((
|
|
363
|
-
v.properties[
|
|
362
|
+
u && Object.keys(v.properties).forEach((P) => {
|
|
363
|
+
v.properties[P].$converter = u;
|
|
364
364
|
});
|
|
365
365
|
const b = (v == null ? void 0 : v.properties) || {}, B = re(b, g, i, T, o, r);
|
|
366
366
|
return { categoryId: e, categoryName: s, properties: B };
|
|
@@ -375,11 +375,11 @@ function K(e, t, n, o, r) {
|
|
|
375
375
|
return Object.keys(c.categories).map((g) => {
|
|
376
376
|
const a = c.categories[g];
|
|
377
377
|
if (a.$ref) {
|
|
378
|
-
i.push(
|
|
378
|
+
i.push(Sn(g, a, e, t, o));
|
|
379
379
|
return;
|
|
380
380
|
}
|
|
381
|
-
const v = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, b = a == null ? void 0 : a.tabName, B = a == null ? void 0 : a.hide,
|
|
382
|
-
i.push({ categoryId: g, categoryName: v, tabId: s, tabName: b, hide: B, properties: M, hideTitle:
|
|
381
|
+
const v = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, b = a == null ? void 0 : a.tabName, B = a == null ? void 0 : a.hide, P = a == null ? void 0 : a.hideTitle, M = re(a.properties || {}, T, u, e, t, o, a.$converter), { setPropertyRelates: j } = a;
|
|
382
|
+
i.push({ categoryId: g, categoryName: v, tabId: s, tabName: b, hide: B, properties: M, hideTitle: P, setPropertyRelates: j });
|
|
383
383
|
}), i;
|
|
384
384
|
}
|
|
385
385
|
return [];
|
|
@@ -438,7 +438,8 @@ const On = /* @__PURE__ */ new Map([
|
|
|
438
438
|
},
|
|
439
439
|
editor: {
|
|
440
440
|
description: "",
|
|
441
|
-
type: "obejct"
|
|
441
|
+
type: "obejct",
|
|
442
|
+
default: {}
|
|
442
443
|
},
|
|
443
444
|
label: {
|
|
444
445
|
description: "",
|
|
@@ -456,7 +457,8 @@ const On = /* @__PURE__ */ new Map([
|
|
|
456
457
|
}
|
|
457
458
|
}, Rn = [
|
|
458
459
|
"id",
|
|
459
|
-
"type"
|
|
460
|
+
"type",
|
|
461
|
+
"editor"
|
|
460
462
|
], $n = {
|
|
461
463
|
$schema: Nn,
|
|
462
464
|
$id: Mn,
|
|
@@ -714,7 +716,6 @@ const Wn = "https://json-schema.org/draft/2020-12/schema", Hn = "https://farris-
|
|
|
714
716
|
default: ""
|
|
715
717
|
}
|
|
716
718
|
}, Jn = [
|
|
717
|
-
"id",
|
|
718
719
|
"type"
|
|
719
720
|
], Xn = [
|
|
720
721
|
"id",
|
|
@@ -933,11 +934,11 @@ function ro(e, t, n, o) {
|
|
|
933
934
|
inputType: s,
|
|
934
935
|
onBlur: b,
|
|
935
936
|
onFocus: B,
|
|
936
|
-
onInput:
|
|
937
|
+
onInput: P,
|
|
937
938
|
onClick: M,
|
|
938
939
|
onKeydown: j,
|
|
939
940
|
onKeyup: L,
|
|
940
|
-
onMousedown:
|
|
941
|
+
onMousedown: S,
|
|
941
942
|
onTextBoxValueChange: E,
|
|
942
943
|
readonly: O,
|
|
943
944
|
placeholder: k,
|
|
@@ -964,10 +965,10 @@ function ro(e, t, n, o) {
|
|
|
964
965
|
onClick: M,
|
|
965
966
|
onChange: E,
|
|
966
967
|
onFocus: B,
|
|
967
|
-
onInput:
|
|
968
|
+
onInput: P,
|
|
968
969
|
onKeydown: j,
|
|
969
970
|
onKeyup: L,
|
|
970
|
-
onMousedown:
|
|
971
|
+
onMousedown: S
|
|
971
972
|
}, null);
|
|
972
973
|
}
|
|
973
974
|
function ao(e, t) {
|
|
@@ -1009,7 +1010,7 @@ function io(e, t, n, o, r) {
|
|
|
1009
1010
|
function B(k) {
|
|
1010
1011
|
t.emit("iconMouseEnter", k);
|
|
1011
1012
|
}
|
|
1012
|
-
function
|
|
1013
|
+
function P(k) {
|
|
1013
1014
|
t.emit("iconMouseLeave", k);
|
|
1014
1015
|
}
|
|
1015
1016
|
function M(k) {
|
|
@@ -1022,16 +1023,16 @@ function io(e, t, n, o, r) {
|
|
|
1022
1023
|
return l("span", {
|
|
1023
1024
|
class: "input-group-text",
|
|
1024
1025
|
onMouseenter: (k) => B(k),
|
|
1025
|
-
onMouseleave: (k) =>
|
|
1026
|
+
onMouseleave: (k) => P(k),
|
|
1026
1027
|
innerHTML: u.value,
|
|
1027
1028
|
onClick: (k) => j(k)
|
|
1028
1029
|
}, null);
|
|
1029
1030
|
}
|
|
1030
|
-
function
|
|
1031
|
+
function S() {
|
|
1031
1032
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1032
1033
|
}
|
|
1033
1034
|
function E() {
|
|
1034
|
-
return c.value ? L : i.value ?
|
|
1035
|
+
return c.value ? L : i.value ? S : "";
|
|
1035
1036
|
}
|
|
1036
1037
|
const O = E();
|
|
1037
1038
|
return () => l("div", {
|
|
@@ -1052,11 +1053,11 @@ const lo = /* @__PURE__ */ W({
|
|
|
1052
1053
|
} = c, g = ze(e, t, r), {
|
|
1053
1054
|
onMouseEnter: a,
|
|
1054
1055
|
onMouseLeave: v
|
|
1055
|
-
} = g, s = eo(e, t, u, c), b = oo(e, t), B = ro(e, t, s, r),
|
|
1056
|
-
R(() => [e.value], ([
|
|
1057
|
-
n.value =
|
|
1058
|
-
}), R(() => [e.modelValue], ([
|
|
1059
|
-
n.value =
|
|
1056
|
+
} = g, s = eo(e, t, u, c), b = oo(e, t), B = ro(e, t, s, r), P = io(e, t, c, g, s), M = ao(e, t), j = N(() => e.type === "number");
|
|
1057
|
+
R(() => [e.value], ([S]) => {
|
|
1058
|
+
n.value = S, o.value = S;
|
|
1059
|
+
}), R(() => [e.modelValue], ([S]) => {
|
|
1060
|
+
n.value = S, o.value = S;
|
|
1060
1061
|
}), q(() => {
|
|
1061
1062
|
e.value && (n.value = e.value, o.value = e.value);
|
|
1062
1063
|
});
|
|
@@ -1066,13 +1067,13 @@ const lo = /* @__PURE__ */ W({
|
|
|
1066
1067
|
style: T.value,
|
|
1067
1068
|
onMouseenter: a,
|
|
1068
1069
|
onMouseleave: v
|
|
1069
|
-
}, [j.value ? b() : l(z, null, [M(), B(), i.value &&
|
|
1070
|
+
}, [j.value ? b() : l(z, null, [M(), B(), i.value && P()])])]);
|
|
1070
1071
|
return () => L();
|
|
1071
1072
|
}
|
|
1072
1073
|
}), p = {}, f = {}, m = {}, y = {};
|
|
1073
1074
|
let ue = !1;
|
|
1074
1075
|
function so() {
|
|
1075
|
-
ue || (ue = !0, tt.register(p, f, m, y), et.register(p, f, m, y), nt.register(p, f, m, y), ot.register(p, f, m, y), rt.register(p, f, m, y), at.register(p, f, m, y), it.register(p, f, m, y), lt.register(p, f, m, y), st.register(p, f, m, y), ut.register(p, f, m, y), dt.register(p, f, m, y), ct.register(p, f, m, y), pt.register(p, f, m, y), ft.register(p, f, m, y), mt.register(p, f, m, y), gt.register(p, f, m, y), yt.register(p, f, m, y), vt.register(p, f, m, y), bt.register(p, f, m, y), Ct.register(p, f, m, y), Ft.register(p, f, m, y), xt.register(p, f, m, y), wt.register(p, f, m, y), Tt.register(p, f, m, y), kt.register(p, f, m, y), Bt.register(p, f, m, y),
|
|
1076
|
+
ue || (ue = !0, tt.register(p, f, m, y), et.register(p, f, m, y), nt.register(p, f, m, y), ot.register(p, f, m, y), rt.register(p, f, m, y), at.register(p, f, m, y), it.register(p, f, m, y), lt.register(p, f, m, y), st.register(p, f, m, y), ut.register(p, f, m, y), dt.register(p, f, m, y), ct.register(p, f, m, y), pt.register(p, f, m, y), ft.register(p, f, m, y), mt.register(p, f, m, y), gt.register(p, f, m, y), yt.register(p, f, m, y), vt.register(p, f, m, y), bt.register(p, f, m, y), Ct.register(p, f, m, y), Ft.register(p, f, m, y), xt.register(p, f, m, y), wt.register(p, f, m, y), Tt.register(p, f, m, y), kt.register(p, f, m, y), Bt.register(p, f, m, y), Pt.register(p, f, m, y), St.register(p, f, m, y), Ze.register(p, f, m, y), Et.register(p, f, m, y), It.register(p, f, m, y), Ot.register(p, f, m, y), Nt.register(p, f, m, y), Mt.register(p, f, m, y), Vt.register(p, f, m, y), jt.register(p, f, m, y), Lt.register(p, f, m, y), Rt.register(p, f, m, y), $t.register(p, f, m, y), Dt.register(p, f, m, y), on.register(p, f, m), At.register(p, f, m, y), Gt.register(p, f, m, y), Ut.register(p, f, m, y), qt.register(p, f, m, y), Wt.register(p, f, m, y), Ht.register(p, f, m, y), Qt.register(p, f, m, y), _t.register(p, f, m, y), zt.register(p, f, m, y), Zt.register(p, f, m, y), Jt.register(p, f, m, y), Xt.register(p, f, m, y), Kt.register(p, f, m, y), Yt.register(p, f, m, y), en.register(p, f, m, y), tn.register(p, f, m, y), nn.register(p, f, m, y), rn.register(p, f, m, y), ht.register(p, f, m, y), an.register(p, f, m, y));
|
|
1076
1077
|
}
|
|
1077
1078
|
function uo() {
|
|
1078
1079
|
so();
|
|
@@ -1169,20 +1170,20 @@ const co = /* @__PURE__ */ W({
|
|
|
1169
1170
|
resolveEditorType: s,
|
|
1170
1171
|
getChangeFunctionName: b,
|
|
1171
1172
|
getClearFunctionName: B
|
|
1172
|
-
} = uo(),
|
|
1173
|
+
} = uo(), P = N(() => ({
|
|
1173
1174
|
"form-group": !0,
|
|
1174
1175
|
"farris-form-group": !0,
|
|
1175
1176
|
"common-group": !0,
|
|
1176
1177
|
"q-state-readonly": T.value
|
|
1177
1178
|
}));
|
|
1178
|
-
function M(
|
|
1179
|
-
u.value = E !== void 0 ? E :
|
|
1179
|
+
function M(S, E) {
|
|
1180
|
+
u.value = E !== void 0 ? E : S, t.emit("update:modelValue", u.value), t.emit("change", u.value);
|
|
1180
1181
|
}
|
|
1181
1182
|
function j() {
|
|
1182
1183
|
t.emit("update:modelValue", "");
|
|
1183
1184
|
}
|
|
1184
1185
|
const L = N(() => {
|
|
1185
|
-
const
|
|
1186
|
+
const S = r.value.type || "input-group", E = s(S), O = v(S, r.value), k = b(S), $ = B(r.value.type);
|
|
1186
1187
|
return $ && (O[$] = j), O[k] = M, (O.id == null || O.id === "") && (O.id = n.value), () => l(E, We({
|
|
1187
1188
|
ref: a
|
|
1188
1189
|
}, O, {
|
|
@@ -1190,8 +1191,8 @@ const co = /* @__PURE__ */ W({
|
|
|
1190
1191
|
"onUpdate:modelValue": (V) => u.value = V
|
|
1191
1192
|
}), t.slots);
|
|
1192
1193
|
});
|
|
1193
|
-
return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([
|
|
1194
|
-
n.value =
|
|
1194
|
+
return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([S, E, O, k, $, V, G, Z, J]) => {
|
|
1195
|
+
n.value = S, o.value = E, r.value = O, d.value = k, u.value = $, T.value = V, c.value = G, i.value = Z, g.value = J;
|
|
1195
1196
|
}), t.expose({
|
|
1196
1197
|
editorRef: a
|
|
1197
1198
|
}), () => g.value && l("div", {
|
|
@@ -1201,7 +1202,7 @@ const co = /* @__PURE__ */ W({
|
|
|
1201
1202
|
}, [l("div", {
|
|
1202
1203
|
class: "farris-group-wrap"
|
|
1203
1204
|
}, [l("div", {
|
|
1204
|
-
class:
|
|
1205
|
+
class: P.value
|
|
1205
1206
|
}, [i.value && l(Gn, {
|
|
1206
1207
|
id: `${n.value}-lable`,
|
|
1207
1208
|
required: c.value,
|
|
@@ -1360,8 +1361,8 @@ const co = /* @__PURE__ */ W({
|
|
|
1360
1361
|
setup(e, t) {
|
|
1361
1362
|
const n = F(e.width), o = F(e.isWidePanel), r = F(e.enableSearch), d = F(e.mode), u = F(e.isPersitOpenState), T = F(e.isShowPanel), c = F(), i = F(), g = F(e.showCloseBtn), a = F(e.selectedTabId), v = F(!0), s = F(e.isWhiteTheme);
|
|
1362
1363
|
let b = [], B = [];
|
|
1363
|
-
const
|
|
1364
|
-
let
|
|
1364
|
+
const P = F(""), M = F(), j = F(), L = He("SchemaService");
|
|
1365
|
+
let S = [], E = null, O = "";
|
|
1365
1366
|
const k = F(), $ = F(0);
|
|
1366
1367
|
function V() {
|
|
1367
1368
|
B = [], k.value && k.value.categoryList && Array.isArray(k.value.categoryList) && k.value.categoryList.length > 0 && k.value.categoryList.forEach((C) => {
|
|
@@ -1385,7 +1386,7 @@ const co = /* @__PURE__ */ W({
|
|
|
1385
1386
|
});
|
|
1386
1387
|
}
|
|
1387
1388
|
function J() {
|
|
1388
|
-
return B.filter((C) => C.visible ? !!(C.propertyID && C.propertyID.startsWith(
|
|
1389
|
+
return B.filter((C) => C.visible ? !!(C.propertyID && C.propertyID.startsWith(P.value) || C.propertyName && (C.propertyName.startsWith(P.value) || C.propertyName.includes(P.value))) : !1);
|
|
1389
1390
|
}
|
|
1390
1391
|
function Fe(x, C, h) {
|
|
1391
1392
|
if (x === 0) {
|
|
@@ -1397,11 +1398,11 @@ const co = /* @__PURE__ */ W({
|
|
|
1397
1398
|
}
|
|
1398
1399
|
}
|
|
1399
1400
|
function ae(x) {
|
|
1400
|
-
|
|
1401
|
+
S && S.length > 0 && (S.forEach((h) => {
|
|
1401
1402
|
h.style.cssText = "";
|
|
1402
|
-
}),
|
|
1403
|
+
}), S = []), P.value = x || P.value;
|
|
1403
1404
|
const C = document.querySelector(".panel-body");
|
|
1404
|
-
if (!
|
|
1405
|
+
if (!P.value)
|
|
1405
1406
|
M.value && C && (C.scrollTop = 0);
|
|
1406
1407
|
else if (V(), B && B.length > 0) {
|
|
1407
1408
|
const h = J();
|
|
@@ -1410,7 +1411,7 @@ const co = /* @__PURE__ */ W({
|
|
|
1410
1411
|
const Y = I.propertyType === "cascade" ? `.${I.categoryId}-${I.propertyID} div.col-form-label` : `.property-item .${I.categoryId}-${I.propertyID} label.col-form-label`, _ = document.querySelector(Y);
|
|
1411
1412
|
_ && (Fe(A, C, _), Z(_, {
|
|
1412
1413
|
color: "#5B89FE"
|
|
1413
|
-
}),
|
|
1414
|
+
}), S.push(_));
|
|
1414
1415
|
});
|
|
1415
1416
|
}, 50));
|
|
1416
1417
|
}
|
|
@@ -1434,7 +1435,7 @@ const co = /* @__PURE__ */ W({
|
|
|
1434
1435
|
u.value || (v.value = !1), t.emit("closePropertyPanel");
|
|
1435
1436
|
}
|
|
1436
1437
|
function X(x) {
|
|
1437
|
-
|
|
1438
|
+
P.value = "", ae();
|
|
1438
1439
|
}
|
|
1439
1440
|
function ke(x) {
|
|
1440
1441
|
!x.status || x.status === "open" ? x.status = "closed" : x.status = "open";
|
|
@@ -1474,14 +1475,14 @@ const co = /* @__PURE__ */ W({
|
|
|
1474
1475
|
a.value = (C = k.value) == null ? void 0 : C.tabId;
|
|
1475
1476
|
}
|
|
1476
1477
|
R(() => [e.schema, e.isShowPanel], () => {
|
|
1477
|
-
i.value = e.schema, !e.schema || !e.schema.type ? c.value = [] : c.value = K(i.value, L, E, O), Q(), X(
|
|
1478
|
+
i.value = e.schema, !e.schema || !e.schema.type ? c.value = [] : c.value = K(i.value, L, E, O), Q(), X(P.value), $.value++;
|
|
1478
1479
|
}), q(() => {
|
|
1479
1480
|
Q();
|
|
1480
1481
|
});
|
|
1481
1482
|
function Be(x, C) {
|
|
1482
|
-
(!i.value || C) && (i.value = C || e.schema), c.value = K(i.value, L, E, O, x), Q(), X(
|
|
1483
|
+
(!i.value || C) && (i.value = C || e.schema), c.value = K(i.value, L, E, O, x), Q(), X(P.value);
|
|
1483
1484
|
}
|
|
1484
|
-
function
|
|
1485
|
+
function Pe(x, C) {
|
|
1485
1486
|
E = x, O = C;
|
|
1486
1487
|
}
|
|
1487
1488
|
function ie() {
|
|
@@ -1489,7 +1490,7 @@ const co = /* @__PURE__ */ W({
|
|
|
1489
1490
|
H();
|
|
1490
1491
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1491
1492
|
}
|
|
1492
|
-
function
|
|
1493
|
+
function Se() {
|
|
1493
1494
|
if (g.value)
|
|
1494
1495
|
return l("div", {
|
|
1495
1496
|
class: "title-actions"
|
|
@@ -1523,14 +1524,14 @@ const co = /* @__PURE__ */ W({
|
|
|
1523
1524
|
placeholder: "输入属性名称或编号快速定位",
|
|
1524
1525
|
autocomplete: "off",
|
|
1525
1526
|
onKeyup: (C) => xe(C),
|
|
1526
|
-
value:
|
|
1527
|
+
value: P.value
|
|
1527
1528
|
}, null), l("div", {
|
|
1528
1529
|
class: "input-group-append",
|
|
1529
1530
|
style: "margin-left: 0px;"
|
|
1530
1531
|
}, [l("span", {
|
|
1531
1532
|
class: "input-group-text input-group-clear",
|
|
1532
1533
|
style: [{
|
|
1533
|
-
display:
|
|
1534
|
+
display: P.value && P.value.length > 0 ? "" : "none"
|
|
1534
1535
|
}],
|
|
1535
1536
|
onClick: (C) => X()
|
|
1536
1537
|
}, [l("i", {
|
|
@@ -1607,7 +1608,7 @@ const co = /* @__PURE__ */ W({
|
|
|
1607
1608
|
}, null)]);
|
|
1608
1609
|
}
|
|
1609
1610
|
function De(x) {
|
|
1610
|
-
k.value = x, a.value = k.value.tabId,
|
|
1611
|
+
k.value = x, a.value = k.value.tabId, P.value = "";
|
|
1611
1612
|
}
|
|
1612
1613
|
function Re() {
|
|
1613
1614
|
return b.map((x) => l("div", {
|
|
@@ -1620,13 +1621,13 @@ const co = /* @__PURE__ */ W({
|
|
|
1620
1621
|
}, [l("span", null, [x.tabName])]));
|
|
1621
1622
|
}
|
|
1622
1623
|
return q(() => {
|
|
1623
|
-
H(
|
|
1624
|
+
H(P.value);
|
|
1624
1625
|
}), Qe(() => {
|
|
1625
|
-
u.value && (v.value = T.value), Q(), H(
|
|
1626
|
+
u.value && (v.value = T.value), Q(), H(P.value);
|
|
1626
1627
|
}), R(k, () => {
|
|
1627
1628
|
}), t.expose({
|
|
1628
1629
|
updatePropertyConfig: Be,
|
|
1629
|
-
updateDesignerItem:
|
|
1630
|
+
updateDesignerItem: Pe
|
|
1630
1631
|
}), () => l(z, null, [l("div", {
|
|
1631
1632
|
ref: M,
|
|
1632
1633
|
class: ["property-panel", {
|
|
@@ -1642,7 +1643,7 @@ const co = /* @__PURE__ */ W({
|
|
|
1642
1643
|
}, {
|
|
1643
1644
|
only: b.length === 1
|
|
1644
1645
|
}]
|
|
1645
|
-
}, [Re(),
|
|
1646
|
+
}, [Re(), Se()]), Ie(), Me()]), Le(), Ve()])]);
|
|
1646
1647
|
}
|
|
1647
1648
|
});
|
|
1648
1649
|
class Br {
|
|
@@ -1813,7 +1814,7 @@ D(U, "fieldControlTypeMapping", {
|
|
|
1813
1814
|
});
|
|
1814
1815
|
let de = U;
|
|
1815
1816
|
var mo = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(mo || {});
|
|
1816
|
-
const
|
|
1817
|
+
const Pr = {
|
|
1817
1818
|
install(e) {
|
|
1818
1819
|
e.component(ce.name, ce);
|
|
1819
1820
|
}
|
|
@@ -1823,7 +1824,7 @@ export {
|
|
|
1823
1824
|
ce as FPropertyPanel,
|
|
1824
1825
|
mo as PropertyType,
|
|
1825
1826
|
de as SchemaDOMMapping,
|
|
1826
|
-
|
|
1827
|
+
Pr as default,
|
|
1827
1828
|
In as propertyPanelItemProps,
|
|
1828
1829
|
ln as propertyPanelProps
|
|
1829
1830
|
};
|