@farris/ui-vue 1.2.4 → 1.2.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 +58 -58
- package/components/accordion/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +1 -1
- package/components/capsule/index.umd.cjs +1 -1
- package/components/common/index.esm.js +2 -2
- package/components/common/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +137 -135
- package/components/condition/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +2316 -2299
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +1929 -1920
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/style.css +1 -1
- package/components/designer-outline/index.esm.js +44 -42
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-toolbox/index.esm.js +28 -467
- package/components/designer-toolbox/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +836 -790
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +382 -378
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +1167 -1150
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +131 -127
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/style.css +1 -1
- package/components/list-view/index.esm.js +128 -124
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +2156 -2139
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +3137 -3120
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +511 -469
- package/components/nav/index.umd.cjs +2 -2
- package/components/order/index.esm.js +859 -815
- package/components/order/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +491 -449
- package/components/pagination/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +75 -73
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +63 -61
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2002 -1956
- package/components/schema-selector/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +165 -192
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2 -2
- package/components/tabs/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +95 -93
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +2316 -2299
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +296 -295
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +2517 -2483
- package/farris.all.umd.cjs +7 -7
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/condition/index.d.ts +60 -1
- package/types/data-view/components/column-setting/column-setting.component.d.ts +2 -1
- package/types/data-view/composition/types.d.ts +2 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +3 -3
- package/types/list-view/src/composition/types.d.ts +1 -1
- package/types/message-box/index.d.ts +84 -1
- package/types/notify/index.d.ts +84 -1
- package/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
|
@@ -36,8 +36,8 @@ import nt from "@farris/ui-vue/components/order";
|
|
|
36
36
|
import ot from "@farris/ui-vue/components/page-header";
|
|
37
37
|
import rt from "@farris/ui-vue/components/page-footer";
|
|
38
38
|
import it from "@farris/ui-vue/components/pagination";
|
|
39
|
-
import
|
|
40
|
-
import
|
|
39
|
+
import at from "@farris/ui-vue/components/progress";
|
|
40
|
+
import lt from "@farris/ui-vue/components/query-solution";
|
|
41
41
|
import st from "@farris/ui-vue/components/radio-group";
|
|
42
42
|
import ut from "@farris/ui-vue/components/rate";
|
|
43
43
|
import ct from "@farris/ui-vue/components/response-toolbar";
|
|
@@ -62,7 +62,7 @@ import St from "@farris/ui-vue/components/video";
|
|
|
62
62
|
import Vt from "@farris/ui-vue/components/textarea";
|
|
63
63
|
import Et from "@farris/ui-vue/components/schema-selector";
|
|
64
64
|
import "@farris/ui-vue/components/external-container";
|
|
65
|
-
const
|
|
65
|
+
const ae = {
|
|
66
66
|
conditions: { type: Array, default: [] },
|
|
67
67
|
fields: { type: Array, default: [] },
|
|
68
68
|
key: { type: String, default: "" },
|
|
@@ -389,7 +389,7 @@ class Dt {
|
|
|
389
389
|
return !this.value;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
class
|
|
392
|
+
class le {
|
|
393
393
|
constructor(t = { value: "" }) {
|
|
394
394
|
w(this, "editorType", "text");
|
|
395
395
|
w(this, "value");
|
|
@@ -441,66 +441,66 @@ function se() {
|
|
|
441
441
|
case "radio-group":
|
|
442
442
|
return new Dt(n);
|
|
443
443
|
default:
|
|
444
|
-
return new
|
|
444
|
+
return new le(n);
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
return { createConditionValue: e };
|
|
448
448
|
}
|
|
449
449
|
function ue(e, t) {
|
|
450
450
|
const n = I(e.fields), o = I([]), r = /* @__PURE__ */ new Map(), { createConditionValue: p } = se();
|
|
451
|
-
function d(
|
|
452
|
-
switch (
|
|
451
|
+
function d(l) {
|
|
452
|
+
switch (l.editor ? l.editor.type : "input-group") {
|
|
453
453
|
case "date-range":
|
|
454
|
-
|
|
454
|
+
l.editor.type = "date-picker";
|
|
455
455
|
break;
|
|
456
456
|
case "datetime-range":
|
|
457
|
-
|
|
457
|
+
l.editor.type = "datetime-picker";
|
|
458
458
|
break;
|
|
459
459
|
case "number-range":
|
|
460
|
-
|
|
460
|
+
l.editor.type = "number-spinner";
|
|
461
461
|
break;
|
|
462
462
|
}
|
|
463
|
-
return
|
|
463
|
+
return l.editor;
|
|
464
464
|
}
|
|
465
|
-
function v(
|
|
466
|
-
return
|
|
465
|
+
function v(l) {
|
|
466
|
+
return l.map((c) => Object.assign({}, c)).map((c) => (c.editor = d(c), c));
|
|
467
467
|
}
|
|
468
|
-
function k(
|
|
469
|
-
n.value.reduce((u, c) => (
|
|
468
|
+
function k(l = !0) {
|
|
469
|
+
n.value.reduce((u, c) => (l || (c.editor = d(c)), u.set(c.labelCode, c), u), r);
|
|
470
470
|
}
|
|
471
|
-
function s(
|
|
472
|
-
return
|
|
471
|
+
function s(l) {
|
|
472
|
+
return l.forEach((u) => {
|
|
473
473
|
if (u && typeof u.valueConfig == "object") {
|
|
474
474
|
const c = r.get(u.fieldCode);
|
|
475
475
|
u.value = p(c.editor.type, u.valueConfig.content);
|
|
476
476
|
}
|
|
477
|
-
}),
|
|
477
|
+
}), l;
|
|
478
478
|
}
|
|
479
479
|
return { convertToSingleControl: v, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: k, initialConditionValue: s };
|
|
480
480
|
}
|
|
481
481
|
function Wt(e, t, n) {
|
|
482
482
|
const o = I(null), r = I(n), p = I(0), d = P(() => s(p.value));
|
|
483
483
|
function v() {
|
|
484
|
-
r.value && (o.value = new ResizeObserver(k((
|
|
485
|
-
const u =
|
|
484
|
+
r.value && (o.value = new ResizeObserver(k((l) => {
|
|
485
|
+
const u = l[0];
|
|
486
486
|
p.value = u.contentRect.width;
|
|
487
487
|
})), o.value.observe(r.value));
|
|
488
488
|
}
|
|
489
|
-
function k(
|
|
489
|
+
function k(l, u) {
|
|
490
490
|
let c = null;
|
|
491
491
|
return function() {
|
|
492
492
|
const V = arguments;
|
|
493
493
|
c || (c = setTimeout(() => {
|
|
494
494
|
c = null;
|
|
495
|
-
}, 500),
|
|
495
|
+
}, 500), l(...V));
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
|
-
function s(
|
|
498
|
+
function s(l) {
|
|
499
499
|
let c = "col-12";
|
|
500
|
-
return
|
|
500
|
+
return l > 250 * 6 ? c = "col-2" : l > 250 * 4 ? c = "col-3" : l > 250 * 3 ? c = "col-4" : l > 250 * 2 && (c = "col-6"), c;
|
|
501
501
|
}
|
|
502
|
-
return W([n], ([
|
|
503
|
-
r.value =
|
|
502
|
+
return W([n], ([l]) => {
|
|
503
|
+
r.value = l, v();
|
|
504
504
|
}), {
|
|
505
505
|
conditionClass: d,
|
|
506
506
|
resizeObserver: o
|
|
@@ -508,17 +508,17 @@ function Wt(e, t, n) {
|
|
|
508
508
|
}
|
|
509
509
|
const re = /* @__PURE__ */ Z({
|
|
510
510
|
name: "FConditionFields",
|
|
511
|
-
props:
|
|
511
|
+
props: ae,
|
|
512
512
|
emits: ["valueChange", "blur", "focus", "click", "input"],
|
|
513
513
|
setup(e, t) {
|
|
514
514
|
const n = I(), o = I(e.key), r = I(e.isControlInline), p = I(e.conditions), d = ue(e), {
|
|
515
515
|
initialConditionValue: v,
|
|
516
516
|
fieldMap: k,
|
|
517
517
|
loadFieldConfigs: s
|
|
518
|
-
} = d,
|
|
518
|
+
} = d, l = Wt(e, t, n), {
|
|
519
519
|
conditionClass: u,
|
|
520
520
|
resizeObserver: c
|
|
521
|
-
} =
|
|
521
|
+
} = l;
|
|
522
522
|
s(!0), v(p.value), be(() => {
|
|
523
523
|
var T;
|
|
524
524
|
(T = c.value) == null || T.unobserve(n.value);
|
|
@@ -584,7 +584,7 @@ function Zt(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
584
584
|
return Qt(o, n);
|
|
585
585
|
}
|
|
586
586
|
function _t(e = {}) {
|
|
587
|
-
function t(s,
|
|
587
|
+
function t(s, l, u, c) {
|
|
588
588
|
if (typeof u == "number")
|
|
589
589
|
return c[s].length === u;
|
|
590
590
|
if (typeof u == "object") {
|
|
@@ -598,20 +598,20 @@ function _t(e = {}) {
|
|
|
598
598
|
}
|
|
599
599
|
return !1;
|
|
600
600
|
}
|
|
601
|
-
function n(s,
|
|
601
|
+
function n(s, l, u, c) {
|
|
602
602
|
return c[s] && c[s].propertyValue && String(c[s].propertyValue.value) === String(u);
|
|
603
603
|
}
|
|
604
604
|
const o = /* @__PURE__ */ new Map([
|
|
605
605
|
["length", t],
|
|
606
606
|
["getProperty", n]
|
|
607
607
|
]);
|
|
608
|
-
Object.keys(e).reduce((s,
|
|
609
|
-
function r(s,
|
|
608
|
+
Object.keys(e).reduce((s, l) => (s.set(l, e[l]), s), o);
|
|
609
|
+
function r(s, l) {
|
|
610
610
|
const u = s;
|
|
611
|
-
return typeof
|
|
611
|
+
return typeof l == "number" ? [{ target: u, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: u, operator: "getProperty", param: s, value: !!l }] : typeof l == "object" ? Object.keys(l).map((c) => {
|
|
612
612
|
if (c === "length")
|
|
613
|
-
return { target: u, operator: "length", param: null, value:
|
|
614
|
-
const V = c, E =
|
|
613
|
+
return { target: u, operator: "length", param: null, value: l[c] };
|
|
614
|
+
const V = c, E = l[c];
|
|
615
615
|
return { target: u, operator: "getProperty", param: V, value: E };
|
|
616
616
|
}) : [];
|
|
617
617
|
}
|
|
@@ -621,18 +621,18 @@ function _t(e = {}) {
|
|
|
621
621
|
return u.push(...V), u;
|
|
622
622
|
}, []);
|
|
623
623
|
}
|
|
624
|
-
function d(s,
|
|
624
|
+
function d(s, l) {
|
|
625
625
|
if (o.has(s.operator)) {
|
|
626
626
|
const u = o.get(s.operator);
|
|
627
|
-
return u && u(s.target, s.param, s.value,
|
|
627
|
+
return u && u(s.target, s.param, s.value, l) || !1;
|
|
628
628
|
}
|
|
629
629
|
return !1;
|
|
630
630
|
}
|
|
631
|
-
function v(s,
|
|
632
|
-
return p(s).reduce((V, E) => V && d(E,
|
|
631
|
+
function v(s, l) {
|
|
632
|
+
return p(s).reduce((V, E) => V && d(E, l), !0);
|
|
633
633
|
}
|
|
634
|
-
function k(s,
|
|
635
|
-
const u = Object.keys(s), c = u.includes("allOf"), V = u.includes("anyOf"), E = c || V, T = (E ? s[E ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((M) => v(M,
|
|
634
|
+
function k(s, l) {
|
|
635
|
+
const u = Object.keys(s), c = u.includes("allOf"), V = u.includes("anyOf"), E = c || V, T = (E ? s[E ? c ? "allOf" : "anyOf" : "allOf"] : [s]).map((M) => v(M, l));
|
|
636
636
|
return c ? !T.includes(!1) : T.includes(!0);
|
|
637
637
|
}
|
|
638
638
|
return { parseValueSchema: k };
|
|
@@ -641,7 +641,7 @@ const Jt = {}, Xt = {};
|
|
|
641
641
|
_t();
|
|
642
642
|
function X(e, t, n = /* @__PURE__ */ new Map(), o = (d, v, k) => v, r = {}, p = (d) => d) {
|
|
643
643
|
return zt[t.title] = t, Ut[t.title] = o, Jt[t.title] = r, Xt[t.title] = p, (d = {}) => {
|
|
644
|
-
const v = Zt(d, t, n), k = Object.keys(e).reduce((s,
|
|
644
|
+
const v = Zt(d, t, n), k = Object.keys(e).reduce((s, l) => (s[l] = e[l].default, s), {});
|
|
645
645
|
return Object.assign(k, v);
|
|
646
646
|
};
|
|
647
647
|
}
|
|
@@ -666,7 +666,7 @@ function en(e, t, n) {
|
|
|
666
666
|
const o = Yt(e, t, n, t.id);
|
|
667
667
|
return Kt(e, o, n, t.id);
|
|
668
668
|
}
|
|
669
|
-
const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-design.gitee.io/response-form.schema.json", on = "response-form", rn = "A Farris Data Collection Component",
|
|
669
|
+
const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-design.gitee.io/response-form.schema.json", on = "response-form", rn = "A Farris Data Collection Component", an = "object", ln = {
|
|
670
670
|
id: {
|
|
671
671
|
description: "The unique identifier for a form group",
|
|
672
672
|
type: "string"
|
|
@@ -702,8 +702,8 @@ const tn = "https://json-schema.org/draft/2020-12/schema", nn = "https://farris-
|
|
|
702
702
|
$id: nn,
|
|
703
703
|
title: on,
|
|
704
704
|
description: rn,
|
|
705
|
-
type:
|
|
706
|
-
properties:
|
|
705
|
+
type: an,
|
|
706
|
+
properties: ln,
|
|
707
707
|
required: sn
|
|
708
708
|
}, cn = "response-form", dn = "A Farris Component", pn = "object", fn = {
|
|
709
709
|
basic: {
|
|
@@ -1120,14 +1120,14 @@ const In = "https://json-schema.org/draft/2020-12/schema", Sn = "https://farris-
|
|
|
1120
1120
|
};
|
|
1121
1121
|
X(me, jn, kn, Bn);
|
|
1122
1122
|
function Ln(e, t, n, o) {
|
|
1123
|
-
const r = I(e.disabled), p = I(!1), d = I("text"), v = I(e.showBorder), k = I(e.textAlign), s = I(e.updateOn),
|
|
1123
|
+
const r = I(e.disabled), p = I(!1), d = I("text"), v = I(e.showBorder), k = I(e.textAlign), s = I(e.updateOn), l = P(() => e.editable || !e.readonly), u = P(() => e.editable && !e.disabled && !e.readonly), c = P(() => !e.disabled && p.value), V = P(() => n.value === "" || n.value === null || n.value === void 0), E = P(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), O = P(() => e.readonly || !e.editable), q = P(() => e.enableTitle ? n.value : ""), T = P(() => ({
|
|
1124
1124
|
"form-control": !0,
|
|
1125
1125
|
"f-utils-fill": !0,
|
|
1126
1126
|
"text-left": k.value === "left",
|
|
1127
1127
|
"text-center": k.value === "center",
|
|
1128
1128
|
"text-right": k.value === "right"
|
|
1129
1129
|
})), x = P(() => {
|
|
1130
|
-
const
|
|
1130
|
+
const a = {
|
|
1131
1131
|
"f-cmp-inputgroup": !0,
|
|
1132
1132
|
"input-group": !0,
|
|
1133
1133
|
"f-state-disable": r.value,
|
|
@@ -1135,46 +1135,46 @@ function Ln(e, t, n, o) {
|
|
|
1135
1135
|
"f-state-readonly": O.value,
|
|
1136
1136
|
"f-state-focus": c.value
|
|
1137
1137
|
};
|
|
1138
|
-
return (e.customClass || "").split(" ").reduce((S, D) => (S[D] = !0, S),
|
|
1138
|
+
return (e.customClass || "").split(" ").reduce((S, D) => (S[D] = !0, S), a), a;
|
|
1139
1139
|
}), M = P(() => v.value ? "" : "border-width : 0 ");
|
|
1140
|
-
function j(
|
|
1141
|
-
n.value =
|
|
1140
|
+
function j(a, y = !0) {
|
|
1141
|
+
n.value = a, o.value !== a && (o.value = a), y && t.emit("change", a), t.emit("update:modelValue", a), t.emit("update:value", a);
|
|
1142
1142
|
}
|
|
1143
1143
|
W(
|
|
1144
1144
|
() => e.modelValue,
|
|
1145
|
-
(
|
|
1146
|
-
|
|
1145
|
+
(a, y) => {
|
|
1146
|
+
a !== y && (n.value = a, o.value = a);
|
|
1147
1147
|
}
|
|
1148
|
-
), W(() => e.disabled, (
|
|
1149
|
-
|
|
1148
|
+
), W(() => e.disabled, (a, y) => {
|
|
1149
|
+
a !== y && (r.value = a);
|
|
1150
1150
|
});
|
|
1151
|
-
function $(
|
|
1152
|
-
return p.value = !1, t.emit("blur",
|
|
1151
|
+
function $(a) {
|
|
1152
|
+
return p.value = !1, t.emit("blur", a), a.stopPropagation(), !1;
|
|
1153
1153
|
}
|
|
1154
|
-
function R(
|
|
1155
|
-
t.emit("click",
|
|
1154
|
+
function R(a) {
|
|
1155
|
+
t.emit("click", a);
|
|
1156
1156
|
}
|
|
1157
|
-
function A(
|
|
1158
|
-
e.disabled || (v.value && (p.value = !0),
|
|
1157
|
+
function A(a) {
|
|
1158
|
+
e.disabled || (v.value && (p.value = !0), l.value && t.emit("focus", a));
|
|
1159
1159
|
}
|
|
1160
|
-
function z(
|
|
1161
|
-
t.emit("input",
|
|
1162
|
-
const y =
|
|
1160
|
+
function z(a) {
|
|
1161
|
+
t.emit("input", a.target.value);
|
|
1162
|
+
const y = a.target.value;
|
|
1163
1163
|
o.value = y, s.value === "input" && (t.emit("update:modelValue", y), t.emit("update:value", y));
|
|
1164
1164
|
}
|
|
1165
|
-
function i(
|
|
1166
|
-
t.emit("keydown",
|
|
1165
|
+
function i(a) {
|
|
1166
|
+
t.emit("keydown", a);
|
|
1167
1167
|
}
|
|
1168
|
-
function m(
|
|
1169
|
-
t.emit("keyup",
|
|
1168
|
+
function m(a) {
|
|
1169
|
+
t.emit("keyup", a);
|
|
1170
1170
|
}
|
|
1171
|
-
function f(
|
|
1172
|
-
|
|
1171
|
+
function f(a) {
|
|
1172
|
+
a.target.tagName !== "INPUT" && a.preventDefault(), a.stopPropagation();
|
|
1173
1173
|
}
|
|
1174
|
-
function B(
|
|
1174
|
+
function B(a) {
|
|
1175
1175
|
if (s.value === "blur") {
|
|
1176
|
-
const y =
|
|
1177
|
-
|
|
1176
|
+
const y = a.target.value;
|
|
1177
|
+
a.stopPropagation(), j(y);
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
1180
|
return {
|
|
@@ -1210,7 +1210,7 @@ function An(e, t, n) {
|
|
|
1210
1210
|
W(d, () => {
|
|
1211
1211
|
v != null && v.value ? s(!!(d != null && d.value)) : s(!1);
|
|
1212
1212
|
});
|
|
1213
|
-
const
|
|
1213
|
+
const l = P(() => ({
|
|
1214
1214
|
"input-group-text": !0,
|
|
1215
1215
|
"input-group-clear": !0
|
|
1216
1216
|
})), u = P(() => ({
|
|
@@ -1226,7 +1226,7 @@ function An(e, t, n) {
|
|
|
1226
1226
|
function E(O) {
|
|
1227
1227
|
r.value && s(!1);
|
|
1228
1228
|
}
|
|
1229
|
-
return { clearButtonClass:
|
|
1229
|
+
return { clearButtonClass: l, clearButtonStyle: u, hasShownClearButton: o, onClearValue: c, onMouseEnter: V, onMouseLeave: E, shouldShowClearButton: r };
|
|
1230
1230
|
}
|
|
1231
1231
|
const Nn = ["moz", "ms", "webkit"];
|
|
1232
1232
|
function $n() {
|
|
@@ -1259,13 +1259,13 @@ function qn(e, t, n, o) {
|
|
|
1259
1259
|
W(() => [e.readonly, e.disabled], ([c, V]) => {
|
|
1260
1260
|
d.value && (n.value = c || V ? "password" : n.value, r.value = c || V ? k : r.value);
|
|
1261
1261
|
});
|
|
1262
|
-
function
|
|
1262
|
+
function l() {
|
|
1263
1263
|
return s.value = !s.value, n.value = s.value ? "text" : "password", r.value = s.value ? v : k, !1;
|
|
1264
1264
|
}
|
|
1265
1265
|
function u() {
|
|
1266
1266
|
n.value = d.value ? "password" : "text", r.value = d.value ? p.value ? k : "" : r.value;
|
|
1267
1267
|
}
|
|
1268
|
-
return u(), { isPassword: d, onClickAppendedButton:
|
|
1268
|
+
return u(), { isPassword: d, onClickAppendedButton: l };
|
|
1269
1269
|
}
|
|
1270
1270
|
function Dn(e, t, n) {
|
|
1271
1271
|
const o = I(), {
|
|
@@ -1274,7 +1274,7 @@ function Dn(e, t, n) {
|
|
|
1274
1274
|
onInput: d,
|
|
1275
1275
|
onKeyDown: v,
|
|
1276
1276
|
textBoxValue: k
|
|
1277
|
-
} = n, s = P(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
1277
|
+
} = n, s = P(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), l = P(() => ({
|
|
1278
1278
|
"form-control": !0,
|
|
1279
1279
|
"f-utils-fill": !0
|
|
1280
1280
|
})), u = P(() => ({
|
|
@@ -1293,7 +1293,7 @@ function Dn(e, t, n) {
|
|
|
1293
1293
|
await te, V();
|
|
1294
1294
|
}), () => C("input", {
|
|
1295
1295
|
ref: o,
|
|
1296
|
-
class:
|
|
1296
|
+
class: l.value,
|
|
1297
1297
|
style: u.value,
|
|
1298
1298
|
type: "text",
|
|
1299
1299
|
value: k.value,
|
|
@@ -1324,7 +1324,7 @@ function Wn(e, t, n) {
|
|
|
1324
1324
|
})), s = P(() => ({
|
|
1325
1325
|
cursor: r() ? "pointer" : "not-allowed",
|
|
1326
1326
|
"margin-left": 0
|
|
1327
|
-
})),
|
|
1327
|
+
})), l = P(() => ({
|
|
1328
1328
|
cursor: o() ? "pointer" : "not-allowed",
|
|
1329
1329
|
"margin-left": 0
|
|
1330
1330
|
}));
|
|
@@ -1341,7 +1341,7 @@ function Wn(e, t, n) {
|
|
|
1341
1341
|
}, null)]), C("button", {
|
|
1342
1342
|
title: "downButton",
|
|
1343
1343
|
class: k.value,
|
|
1344
|
-
style:
|
|
1344
|
+
style: l.value,
|
|
1345
1345
|
onClick: p,
|
|
1346
1346
|
disabled: !o()
|
|
1347
1347
|
}, [C("span", {
|
|
@@ -1353,7 +1353,7 @@ function zn(e, t) {
|
|
|
1353
1353
|
displayValue: v,
|
|
1354
1354
|
modelValue: k,
|
|
1355
1355
|
getRealValue: s
|
|
1356
|
-
} = n,
|
|
1356
|
+
} = n, l = Dn(e, t, p), {
|
|
1357
1357
|
format: u
|
|
1358
1358
|
} = o, {
|
|
1359
1359
|
isFocus: c
|
|
@@ -1370,12 +1370,12 @@ function zn(e, t) {
|
|
|
1370
1370
|
v.value = u(k.value);
|
|
1371
1371
|
}), () => C("div", {
|
|
1372
1372
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1373
|
-
}, [
|
|
1373
|
+
}, [l(), V.value && d()]);
|
|
1374
1374
|
}
|
|
1375
1375
|
function Un(e, t, n, o) {
|
|
1376
1376
|
const r = I(), p = I(e.autocomplete), d = I(e.enableTitle), {
|
|
1377
1377
|
isPassword: v
|
|
1378
|
-
} = n, k = I(e.minLength), s = I(e.maxLength),
|
|
1378
|
+
} = n, k = I(e.minLength), s = I(e.maxLength), l = I(e.tabIndex), {
|
|
1379
1379
|
disabled: u,
|
|
1380
1380
|
displayText: c,
|
|
1381
1381
|
inputType: V,
|
|
@@ -1404,7 +1404,7 @@ function Un(e, t, n, o) {
|
|
|
1404
1404
|
minlength: k.value,
|
|
1405
1405
|
placeholder: A.value,
|
|
1406
1406
|
readonly: R == null ? void 0 : R.value,
|
|
1407
|
-
tabindex:
|
|
1407
|
+
tabindex: l.value,
|
|
1408
1408
|
title: d.value && !v.value ? i.value : "",
|
|
1409
1409
|
type: V.value,
|
|
1410
1410
|
value: c == null ? void 0 : c.value,
|
|
@@ -1439,7 +1439,7 @@ function Qn(e, t, n, o, r) {
|
|
|
1439
1439
|
appendedButtonClass: p,
|
|
1440
1440
|
appendedContent: d
|
|
1441
1441
|
} = n, v = P(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), k = P(() => d.value && !t.slots.groupTextTemplate), s = P(() => !!t.slots.groupTextTemplate), {
|
|
1442
|
-
clearButtonClass:
|
|
1442
|
+
clearButtonClass: l,
|
|
1443
1443
|
clearButtonStyle: u,
|
|
1444
1444
|
onClearValue: c,
|
|
1445
1445
|
shouldShowClearButton: V
|
|
@@ -1447,7 +1447,7 @@ function Qn(e, t, n, o, r) {
|
|
|
1447
1447
|
function E() {
|
|
1448
1448
|
return C("span", {
|
|
1449
1449
|
id: "clearIcon",
|
|
1450
|
-
class:
|
|
1450
|
+
class: l.value,
|
|
1451
1451
|
style: u.value,
|
|
1452
1452
|
onClick: (A) => c(A)
|
|
1453
1453
|
}, [C("i", {
|
|
@@ -1497,10 +1497,10 @@ const Zn = /* @__PURE__ */ Z({
|
|
|
1497
1497
|
inputGroupStyle: v
|
|
1498
1498
|
} = r, k = Gn(e), {
|
|
1499
1499
|
shouldShowAppendedButton: s
|
|
1500
|
-
} = k,
|
|
1500
|
+
} = k, l = An(e, t, r), {
|
|
1501
1501
|
onMouseEnter: u,
|
|
1502
1502
|
onMouseLeave: c
|
|
1503
|
-
} =
|
|
1503
|
+
} = l, V = qn(e, t, d, k), E = zn(e, t), O = Un(e, t, V, r), q = Qn(e, t, k, l, V), T = Hn(e, t), x = P(() => e.type === "number");
|
|
1504
1504
|
W(() => [e.value], ([j]) => {
|
|
1505
1505
|
n.value = j, o.value = j;
|
|
1506
1506
|
}), W(() => [e.modelValue], ([j]) => {
|
|
@@ -1520,7 +1520,7 @@ const Zn = /* @__PURE__ */ Z({
|
|
|
1520
1520
|
}), g = {}, h = {}, b = {}, F = {};
|
|
1521
1521
|
let ie = !1;
|
|
1522
1522
|
function _n() {
|
|
1523
|
-
ie || (ie = !0, Pe.register(g, h, b, F), Me.register(g, h, b, F), Oe.register(g, h, b, F), je.register(g, h, b, F), Le.register(g, h, b, F), Ae.register(g, h, b, F), Ne.register(g, h, b, F), K.register(g, h, b, F), $e.register(g, h, b, F), Ge.register(g, h, b, F), Re.register(g, h, b, F), qe.register(g, h, b, F), De.register(g, h, b, F), We.register(g, h, b, F), xe.register(g, h, b, F), ze.register(g, h, b, F), Ue.register(g, h, b, F), He.register(g, h, b, F), Qe.register(g, h, b, F), Ze.register(g, h, b, F), _e.register(g, h, b, F), Xe.register(g, h, b, F), Je.register(g, h, b, F), Ye.register(g, h, b, F), Ke.register(g, h, b, F), et.register(g, h, b, F), tt.register(g, h, b, F), Be.register(g, h, b, F), nt.register(g, h, b, F), ot.register(g, h, b, F), rt.register(g, h, b, F), it.register(g, h, b, F),
|
|
1523
|
+
ie || (ie = !0, Pe.register(g, h, b, F), Me.register(g, h, b, F), Oe.register(g, h, b, F), je.register(g, h, b, F), Le.register(g, h, b, F), Ae.register(g, h, b, F), Ne.register(g, h, b, F), K.register(g, h, b, F), $e.register(g, h, b, F), Ge.register(g, h, b, F), Re.register(g, h, b, F), qe.register(g, h, b, F), De.register(g, h, b, F), We.register(g, h, b, F), xe.register(g, h, b, F), ze.register(g, h, b, F), Ue.register(g, h, b, F), He.register(g, h, b, F), Qe.register(g, h, b, F), Ze.register(g, h, b, F), _e.register(g, h, b, F), Xe.register(g, h, b, F), Je.register(g, h, b, F), Ye.register(g, h, b, F), Ke.register(g, h, b, F), et.register(g, h, b, F), tt.register(g, h, b, F), Be.register(g, h, b, F), nt.register(g, h, b, F), ot.register(g, h, b, F), rt.register(g, h, b, F), it.register(g, h, b, F), at.register(g, h, b, F), lt.register(g, h, b, F), st.register(g, h, b, F), ut.register(g, h, b, F), dt.register(g, h, b, F), pt.register(g, h, b, F), ct.register(g, h, b, F), Et.register(g, h, b), ft.register(g, h, b, F), mt.register(g, h, b, F), gt.register(g, h, b, F), ht.register(g, h, b, F), vt.register(g, h, b, F), yt.register(g, h, b, F), bt.register(g, h, b, F), Ct.register(g, h, b, F), Ft.register(g, h, b, F), wt.register(g, h, b, F), Tt.register(g, h, b, F), xt.register(g, h, b, F), Bt.register(g, h, b, F), kt.register(g, h, b, F), It.register(g, h, b, F), St.register(g, h, b, F), Vt.register(g, h, b, F));
|
|
1524
1524
|
}
|
|
1525
1525
|
function Jn() {
|
|
1526
1526
|
_n();
|
|
@@ -1535,6 +1535,8 @@ function Jn() {
|
|
|
1535
1535
|
switch (r) {
|
|
1536
1536
|
case "check-box":
|
|
1537
1537
|
return "onChangeValue";
|
|
1538
|
+
case "switch":
|
|
1539
|
+
return "onModelValueChanged";
|
|
1538
1540
|
case "check-group":
|
|
1539
1541
|
return "onChangeValue";
|
|
1540
1542
|
case "combo-list":
|
|
@@ -1597,7 +1599,7 @@ const Xn = /* @__PURE__ */ Z({
|
|
|
1597
1599
|
props: fe,
|
|
1598
1600
|
emits: ["change", "update:modelValue"],
|
|
1599
1601
|
setup(e, t) {
|
|
1600
|
-
const n = I(e.id), o = I(e.customClass), r = I(e.editor), p = I(e.label), d = I(e.modelValue), v = I(e.readonly), k = I(e.required), s = I(e.showLabel),
|
|
1602
|
+
const n = I(e.id), o = I(e.customClass), r = I(e.editor), p = I(e.label), d = I(e.modelValue), v = I(e.readonly), k = I(e.required), s = I(e.showLabel), l = I(e.visible);
|
|
1601
1603
|
I(e.type);
|
|
1602
1604
|
const u = I(), {
|
|
1603
1605
|
resolveEditorProps: c,
|
|
@@ -1626,10 +1628,10 @@ const Xn = /* @__PURE__ */ Z({
|
|
|
1626
1628
|
}), null);
|
|
1627
1629
|
});
|
|
1628
1630
|
return W([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([j, $, R, A, z, i, m, f, B]) => {
|
|
1629
|
-
n.value = j, o.value = $, r.value = R, p.value = A, d.value = z, v.value = i, k.value = m, s.value = f,
|
|
1631
|
+
n.value = j, o.value = $, r.value = R, p.value = A, d.value = z, v.value = i, k.value = m, s.value = f, l.value = B;
|
|
1630
1632
|
}), t.expose({
|
|
1631
1633
|
editorRef: u
|
|
1632
|
-
}), () =>
|
|
1634
|
+
}), () => l.value && C("div", {
|
|
1633
1635
|
id: `${n.value}-input-group`,
|
|
1634
1636
|
class: o.value
|
|
1635
1637
|
}, [C("div", {
|
|
@@ -1731,7 +1733,7 @@ function no(e, t, n) {
|
|
|
1731
1733
|
if (!d)
|
|
1732
1734
|
return [];
|
|
1733
1735
|
const v = d.editor.type, k = new Set(to[v]);
|
|
1734
|
-
return eo.filter((
|
|
1736
|
+
return eo.filter((l) => k.has(l.value));
|
|
1735
1737
|
}
|
|
1736
1738
|
return { getCompareOperators: r };
|
|
1737
1739
|
}
|
|
@@ -1745,7 +1747,7 @@ function oo() {
|
|
|
1745
1747
|
fieldName: "",
|
|
1746
1748
|
compareType: he.Equal,
|
|
1747
1749
|
valueType: ge.Value,
|
|
1748
|
-
value: new
|
|
1750
|
+
value: new le(),
|
|
1749
1751
|
relation: 0,
|
|
1750
1752
|
conditionId: Date.now()
|
|
1751
1753
|
};
|
|
@@ -1764,47 +1766,47 @@ function oo() {
|
|
|
1764
1766
|
function v(i) {
|
|
1765
1767
|
const m = /* @__PURE__ */ new Map();
|
|
1766
1768
|
let f = 0;
|
|
1767
|
-
return i.forEach((B,
|
|
1769
|
+
return i.forEach((B, a) => {
|
|
1768
1770
|
var y, S;
|
|
1769
|
-
if (f += ((y = B.lBracket) == null ? void 0 : y.length) || 0, m.set(
|
|
1771
|
+
if (f += ((y = B.lBracket) == null ? void 0 : y.length) || 0, m.set(a, f), f -= ((S = B.rBracket) == null ? void 0 : S.length) || 0, f < 0)
|
|
1770
1772
|
throw new Error("The right bracket is out of range.");
|
|
1771
1773
|
}), m;
|
|
1772
1774
|
}
|
|
1773
|
-
function k(i, m, f, B,
|
|
1775
|
+
function k(i, m, f, B, a) {
|
|
1774
1776
|
for (let y = 0; y < m; y++) {
|
|
1775
|
-
const S = i + (y + 1), D = p(
|
|
1777
|
+
const S = i + (y + 1), D = p(a, S);
|
|
1776
1778
|
f.children.push(D), n.set(D.groupId, f), f = f.children[f.children.length - 1], B.push(f);
|
|
1777
1779
|
}
|
|
1778
1780
|
return f;
|
|
1779
1781
|
}
|
|
1780
|
-
function s(i, m, f, B,
|
|
1782
|
+
function s(i, m, f, B, a) {
|
|
1781
1783
|
for (let G = m; G <= 0; G++)
|
|
1782
1784
|
B.pop();
|
|
1783
1785
|
const y = B[B.length - 1];
|
|
1784
1786
|
if (!y)
|
|
1785
1787
|
throw new Error("The group path is out of range");
|
|
1786
|
-
const S = i + m, D = p(
|
|
1788
|
+
const S = i + m, D = p(a, S);
|
|
1787
1789
|
return y.children.push(D), n.set(D.groupId, y), f = y.children[y.children.length - 1], B.push(f), f;
|
|
1788
1790
|
}
|
|
1789
|
-
function
|
|
1791
|
+
function l(i, m, f, B) {
|
|
1790
1792
|
f.pop();
|
|
1791
|
-
const
|
|
1792
|
-
return
|
|
1793
|
+
const a = f[f.length - 1], y = p(B, i);
|
|
1794
|
+
return a.children.push(y), n.set(y.groupId, a), m = a.children[a.children.length - 1], f.push(m), m;
|
|
1793
1795
|
}
|
|
1794
|
-
function u(i, m, f, B,
|
|
1796
|
+
function u(i, m, f, B, a, y) {
|
|
1795
1797
|
let S = i[i.length - 1];
|
|
1796
1798
|
if (!S)
|
|
1797
1799
|
throw new Error("The group path is out of range");
|
|
1798
1800
|
const D = m.get(B) || 0, G = m.get(f) || 0;
|
|
1799
1801
|
if (f < 0 || f === B)
|
|
1800
1802
|
return i[i.length - 1];
|
|
1801
|
-
const N = D - G, L =
|
|
1802
|
-
return S = N > 0 ? k(G, N, S, i, L) : S, S = N < 0 ? s(G, N, S, i, L) : S, S = N === 0 && G > 0 && D > 0 &&
|
|
1803
|
+
const N = D - G, L = a && a.relation !== void 0 ? a.relation : 1;
|
|
1804
|
+
return S = N > 0 ? k(G, N, S, i, L) : S, S = N < 0 ? s(G, N, S, i, L) : S, S = N === 0 && G > 0 && D > 0 && a && y && !!a.rBracket && !!y.lBracket ? l(G, S, i, L) : S, S;
|
|
1803
1805
|
}
|
|
1804
1806
|
function c(i) {
|
|
1805
|
-
const f = { relation: i.length && i[0].relation !== void 0 ? i[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f],
|
|
1807
|
+
const f = { relation: i.length && i[0].relation !== void 0 ? i[0].relation : 1, items: [], children: [], path: [], groupId: 0, level: 0 }, B = [f], a = v(i);
|
|
1806
1808
|
return i.forEach((y, S) => {
|
|
1807
|
-
const D = S - 1, G = i[D], N = u(B,
|
|
1809
|
+
const D = S - 1, G = i[D], N = u(B, a, D, S, G, y);
|
|
1808
1810
|
N.items.push(y), t.set(y.conditionId, N);
|
|
1809
1811
|
}), e.value = f, f;
|
|
1810
1812
|
}
|
|
@@ -1817,7 +1819,7 @@ function oo() {
|
|
|
1817
1819
|
return;
|
|
1818
1820
|
const m = t.get(i.conditionId);
|
|
1819
1821
|
if (m) {
|
|
1820
|
-
const f = m.items.findIndex((
|
|
1822
|
+
const f = m.items.findIndex((a) => a.conditionId === i.conditionId) + 1, B = r();
|
|
1821
1823
|
t.set(B.conditionId, m), m.items.splice(f, 0, B), d();
|
|
1822
1824
|
}
|
|
1823
1825
|
}
|
|
@@ -1826,21 +1828,21 @@ function oo() {
|
|
|
1826
1828
|
m && (m.items = m.items.filter((f) => f.conditionId !== i.conditionId), t.delete(i.conditionId), z(), d());
|
|
1827
1829
|
}
|
|
1828
1830
|
function q(i, m, f, B) {
|
|
1829
|
-
i.reduce((
|
|
1831
|
+
i.reduce((a, y) => {
|
|
1830
1832
|
const S = y.conditionId !== void 0, D = y.groupId !== void 0;
|
|
1831
1833
|
if (S) {
|
|
1832
1834
|
const G = y;
|
|
1833
|
-
f.push(G),
|
|
1835
|
+
f.push(G), a.items.set(G.conditionId, G);
|
|
1834
1836
|
}
|
|
1835
1837
|
if (D) {
|
|
1836
1838
|
const G = y;
|
|
1837
|
-
B.push(G),
|
|
1839
|
+
B.push(G), a.groups.set(G.groupId, G);
|
|
1838
1840
|
}
|
|
1839
|
-
return
|
|
1841
|
+
return a;
|
|
1840
1842
|
}, m);
|
|
1841
1843
|
}
|
|
1842
|
-
function T(i, m, f, B,
|
|
1843
|
-
i && (i.items = m.length ? i.items.filter((y) => !f.has(y.conditionId)) : i.items, i.children = B.length ? i.children.filter((y) => !
|
|
1844
|
+
function T(i, m, f, B, a) {
|
|
1845
|
+
i && (i.items = m.length ? i.items.filter((y) => !f.has(y.conditionId)) : i.items, i.children = B.length ? i.children.filter((y) => !a.has(y.groupId)) : i.children);
|
|
1844
1846
|
}
|
|
1845
1847
|
function x(i, m, f) {
|
|
1846
1848
|
m.forEach((B) => {
|
|
@@ -1850,19 +1852,19 @@ function oo() {
|
|
|
1850
1852
|
});
|
|
1851
1853
|
}
|
|
1852
1854
|
function M(i) {
|
|
1853
|
-
const m = i[0], f = m.conditionId !== void 0 ? t.get(m.conditionId) : n.get(m.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() },
|
|
1855
|
+
const m = i[0], f = m.conditionId !== void 0 ? t.get(m.conditionId) : n.get(m.groupId), B = { items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Map() }, a = [], y = [];
|
|
1854
1856
|
if (f) {
|
|
1855
|
-
q(i, B,
|
|
1857
|
+
q(i, B, a, y), T(f, a, B.items, y, B.groups);
|
|
1856
1858
|
const S = p(f.relation, f.level + 1);
|
|
1857
|
-
x(S,
|
|
1859
|
+
x(S, a, y), f.children.push(S), n.set(S.groupId, f), d();
|
|
1858
1860
|
}
|
|
1859
1861
|
}
|
|
1860
1862
|
function j(i) {
|
|
1861
1863
|
const m = [...i.items], f = [...i.children], B = n.get(i.groupId);
|
|
1862
|
-
B && (B.children = B.children.filter((
|
|
1863
|
-
B.items.push(
|
|
1864
|
-
}), f.forEach((
|
|
1865
|
-
B.children.push(
|
|
1864
|
+
B && (B.children = B.children.filter((a) => a.groupId !== i.groupId), n.delete(i.groupId), m.forEach((a) => {
|
|
1865
|
+
B.items.push(a), t.set(a.conditionId, B);
|
|
1866
|
+
}), f.forEach((a) => {
|
|
1867
|
+
B.children.push(a), n.set(a.groupId, B);
|
|
1866
1868
|
}), d());
|
|
1867
1869
|
}
|
|
1868
1870
|
function $(i) {
|
|
@@ -1871,13 +1873,13 @@ function oo() {
|
|
|
1871
1873
|
let R;
|
|
1872
1874
|
function A(i) {
|
|
1873
1875
|
const { relation: m } = i;
|
|
1874
|
-
return (i.children && i.children.length ? i.children.map((B,
|
|
1876
|
+
return (i.children && i.children.length ? i.children.map((B, a, y) => {
|
|
1875
1877
|
const S = R(B);
|
|
1876
|
-
return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation =
|
|
1878
|
+
return S[0].lBracket = (S[0].lBracket || "") + "(", S[S.length - 1].rBracket = (S[S.length - 1].rBracket || "") + ")", S[S.length - 1].relation = a < y.length - 1 ? m : 0, S;
|
|
1877
1879
|
}) : []).flat();
|
|
1878
1880
|
}
|
|
1879
1881
|
R = (i = e.value) => {
|
|
1880
|
-
const { relation: m } = i, f = i.items.map((
|
|
1882
|
+
const { relation: m } = i, f = i.items.map((a, y, S) => (a.lBracket = y === 0 ? "(" : "", a.rBracket = y === S.length - 1 ? ")" : "", a.relation = y < S.length - 1 ? m || 1 : 0, a)), B = A(i);
|
|
1881
1883
|
return [...f, ...B];
|
|
1882
1884
|
};
|
|
1883
1885
|
function z(i) {
|
|
@@ -1914,14 +1916,14 @@ function ro(e, t, n) {
|
|
|
1914
1916
|
M.level > x.level ? (j.push(M), M = d.get(M.groupId)) : M.level === x.level && (x = d.get(x.groupId), x && j.unshift(x));
|
|
1915
1917
|
return j;
|
|
1916
1918
|
}
|
|
1917
|
-
function
|
|
1918
|
-
r.value.add(T.groupId), T.items.forEach((x) => o.value.add(x.conditionId)), T.children.forEach((x) =>
|
|
1919
|
+
function l(T) {
|
|
1920
|
+
r.value.add(T.groupId), T.items.forEach((x) => o.value.add(x.conditionId)), T.children.forEach((x) => l(x));
|
|
1919
1921
|
}
|
|
1920
1922
|
function u(T) {
|
|
1921
1923
|
const { conditionId: x } = T;
|
|
1922
1924
|
o.value.add(x), v = o.value.size === 0 ? p.get(x) : v;
|
|
1923
1925
|
const M = p.get(T.conditionId);
|
|
1924
|
-
s(M).forEach(($) =>
|
|
1926
|
+
s(M).forEach(($) => l($));
|
|
1925
1927
|
}
|
|
1926
1928
|
const c = P(() => o.value.size === 0 && r.value.size === 1), V = function(T) {
|
|
1927
1929
|
r.value.delete(T.groupId), T.items.forEach((M) => k(M)), T.children.forEach((M) => !c.value && V(M));
|
|
@@ -1950,7 +1952,7 @@ function ro(e, t, n) {
|
|
|
1950
1952
|
}
|
|
1951
1953
|
const Y = /* @__PURE__ */ Z({
|
|
1952
1954
|
name: "FConditionList",
|
|
1953
|
-
props:
|
|
1955
|
+
props: ae,
|
|
1954
1956
|
emits: ["valueChange", "labelCodeChange", "compareTypeChange"],
|
|
1955
1957
|
setup(e, t) {
|
|
1956
1958
|
const n = I(e.key), o = I(e.conditions), r = ue(e), {
|
|
@@ -1959,7 +1961,7 @@ const Y = /* @__PURE__ */ Z({
|
|
|
1959
1961
|
fieldMap: v,
|
|
1960
1962
|
loadFieldConfigs: k
|
|
1961
1963
|
} = r, s = oo(), {
|
|
1962
|
-
addCondition:
|
|
1964
|
+
addCondition: l,
|
|
1963
1965
|
changeGroupRelation: u,
|
|
1964
1966
|
getConditions: c,
|
|
1965
1967
|
group: V,
|
|
@@ -1996,7 +1998,7 @@ const Y = /* @__PURE__ */ Z({
|
|
|
1996
1998
|
function B(N, L) {
|
|
1997
1999
|
t.emit("valueChange", N, L);
|
|
1998
2000
|
}
|
|
1999
|
-
function
|
|
2001
|
+
function a(N) {
|
|
2000
2002
|
return N.items.map((L) => {
|
|
2001
2003
|
var H;
|
|
2002
2004
|
return C("div", {
|
|
@@ -2069,7 +2071,7 @@ const Y = /* @__PURE__ */ Z({
|
|
|
2069
2071
|
class: "condition-list-content"
|
|
2070
2072
|
}, [C("div", {
|
|
2071
2073
|
class: "condition-list-content-group"
|
|
2072
|
-
}, [
|
|
2074
|
+
}, [a(N), N.children && N.children.map((L) => S(L))]), y(N)]);
|
|
2073
2075
|
}
|
|
2074
2076
|
function D() {
|
|
2075
2077
|
V($.getSelectedGroupItem()), $.clear();
|
|
@@ -2079,7 +2081,7 @@ const Y = /* @__PURE__ */ Z({
|
|
|
2079
2081
|
class: "condition-list-bottom"
|
|
2080
2082
|
}, [C("div", {
|
|
2081
2083
|
class: "add-condition-btn mb-1 mr-3",
|
|
2082
|
-
onClick:
|
|
2084
|
+
onClick: l
|
|
2083
2085
|
}, [C("span", {
|
|
2084
2086
|
class: "f-icon f-icon-filter-add"
|
|
2085
2087
|
}, null), C("span", {
|
|
@@ -2112,7 +2114,7 @@ export {
|
|
|
2112
2114
|
re as FConditionFields,
|
|
2113
2115
|
Y as FConditionList,
|
|
2114
2116
|
ge as ValueType,
|
|
2115
|
-
|
|
2117
|
+
ae as conditionProps,
|
|
2116
2118
|
Y as default,
|
|
2117
2119
|
oo as useCondition
|
|
2118
2120
|
};
|