@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var lt = Object.defineProperty;
|
|
2
2
|
var it = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var V = (e, t, n) => it(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as m, computed as
|
|
4
|
+
import { ref as m, computed as B, createVNode as i, createTextVNode as Y, defineComponent as _, watch as H, inject as de, onMounted as K, nextTick as oe, reactive as rt, withDirectives as pe, resolveDirective as st, Fragment as J, mergeProps as Pe, onBeforeMount as ut, withModifiers as ct, vModelText as dt, Teleport as pt, createApp as ft, onUnmounted as mt, vShow as vt } from "vue";
|
|
5
5
|
import { cloneDeep as Q } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
7
|
import yt, { useNumber as gt, useFormat as ht, useSpinner as bt, useTextBox as Ct } from "@farris/ui-vue/components/number-spinner";
|
|
@@ -390,7 +390,7 @@ function Kn() {
|
|
|
390
390
|
var I;
|
|
391
391
|
const h = n.get(y.id), P = h.appearance && h.appearance.class;
|
|
392
392
|
if (P) {
|
|
393
|
-
const T = P.split(" ").filter((R) => !R.startsWith("col-")), S = "col-" + y.columnInSM, w = "col-md-" + y.columnInMD, F = "col-xl-" + y.columnInLG,
|
|
393
|
+
const T = P.split(" ").filter((R) => !R.startsWith("col-")), S = "col-" + y.columnInSM, w = "col-md-" + y.columnInMD, F = "col-xl-" + y.columnInLG, x = "col-el-" + y.columnInEL, b = [S, w, F, x].concat(T);
|
|
394
394
|
h.appearance.class = b.join(" ");
|
|
395
395
|
}
|
|
396
396
|
if (y.fieldSetId) {
|
|
@@ -452,10 +452,10 @@ function $e(e, t) {
|
|
|
452
452
|
return () => to.parseValueSchema(e, t);
|
|
453
453
|
}
|
|
454
454
|
function no(e, t, n) {
|
|
455
|
-
return e.includes("visible") ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : $e(t.visible, n) : () => !0;
|
|
455
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : $e(t.visible, n) : () => !0;
|
|
456
456
|
}
|
|
457
457
|
function oo(e, t, n) {
|
|
458
|
-
return e.includes("readonly") ? typeof t.visible == "boolean" ? () => !!t.visible : $e(t.readonly, n) : () => !1;
|
|
458
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : $e(t.readonly, n) : () => !1;
|
|
459
459
|
}
|
|
460
460
|
function ao(e, t) {
|
|
461
461
|
const n = e.$converter || t;
|
|
@@ -465,7 +465,7 @@ function ge(e, t, n, o, a, s = "", f = "") {
|
|
|
465
465
|
return Object.keys(e).map((u) => {
|
|
466
466
|
const r = m(1), v = u, l = e[u], d = Object.keys(l), c = l.title, p = l.type, y = eo.get(p) || { type: "input-group", enableClear: !1 }, h = l.editor ? Object.assign({}, y, l.editor) : y, P = no(d, l, t), I = oo(d, l, t), C = l.type === "cascade" ? ge(l.properties, t, n, o, a, s, f) : [], T = !0;
|
|
467
467
|
let S = ao(l, f);
|
|
468
|
-
const w =
|
|
468
|
+
const w = B({
|
|
469
469
|
get() {
|
|
470
470
|
if (r.value) {
|
|
471
471
|
if (["class", "style"].find((R) => R == v) && !S && (S = ue.get("/converter/appearance.converter") || null), S && S.convertFrom)
|
|
@@ -478,8 +478,8 @@ function ge(e, t, n, o, a, s = "", f = "") {
|
|
|
478
478
|
set(b) {
|
|
479
479
|
r.value += 1, S && S.convertTo ? (S.convertTo(o, u, b, a, s), S.convertTo(n, u, b, a, s)) : (o[u] = b, n[u] = b);
|
|
480
480
|
}
|
|
481
|
-
}), F = l.refreshPanelAfterChanged,
|
|
482
|
-
return t[v] =
|
|
481
|
+
}), F = l.refreshPanelAfterChanged, x = { propertyID: v, propertyName: c, propertyType: p, propertyValue: w, editor: h, visible: P, readonly: I, cascadeConfig: C, hideCascadeTitle: T, refreshPanelAfterChanged: F };
|
|
482
|
+
return t[v] = x, x;
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
function lo(e, t, n, o, a = "") {
|
|
@@ -1228,7 +1228,7 @@ function Oe(e, t) {
|
|
|
1228
1228
|
editor: T.editor
|
|
1229
1229
|
}));
|
|
1230
1230
|
return n.value.reduce((T, S, w) => {
|
|
1231
|
-
const F = T.find((
|
|
1231
|
+
const F = T.find((x) => x.fieldCode === S.fieldCode);
|
|
1232
1232
|
return F && (F.displayText = S.value.getValue(), F.hasValue = !0), T;
|
|
1233
1233
|
}, C), C;
|
|
1234
1234
|
}
|
|
@@ -1283,7 +1283,7 @@ function Re(e, t, n) {
|
|
|
1283
1283
|
"f-filter-item-last": p === s.value.length - 1,
|
|
1284
1284
|
"f-filter-item-edit": c.id === a.value
|
|
1285
1285
|
};
|
|
1286
|
-
}, v =
|
|
1286
|
+
}, v = B(() => !u.value && e.mode === "editable");
|
|
1287
1287
|
function l(c, p) {
|
|
1288
1288
|
e.mode === "display-only" ? f(p) : o(p);
|
|
1289
1289
|
}
|
|
@@ -1316,7 +1316,7 @@ function je(e, t, n) {
|
|
|
1316
1316
|
const o = m([]), a = m(!1), s = m(""), f = m(e.resetText), g = m(e.showReset), {
|
|
1317
1317
|
clearAll: u,
|
|
1318
1318
|
reset: r
|
|
1319
|
-
} = n, v =
|
|
1319
|
+
} = n, v = B(() => a.value && o.value && o.value.length > 0), l = B(() => g.value);
|
|
1320
1320
|
function d(p) {
|
|
1321
1321
|
}
|
|
1322
1322
|
function c(p) {
|
|
@@ -1341,22 +1341,22 @@ const re = /* @__PURE__ */ _({
|
|
|
1341
1341
|
filterFields: g,
|
|
1342
1342
|
filterItems: u,
|
|
1343
1343
|
loadFilterItems: r
|
|
1344
|
-
} = f, v =
|
|
1344
|
+
} = f, v = B(() => ({
|
|
1345
1345
|
display: g.value && g.value.length ? "" : "none"
|
|
1346
1346
|
}));
|
|
1347
1347
|
H([() => e.data, () => e.fields], ([T, S]) => {
|
|
1348
1348
|
r(S, T);
|
|
1349
1349
|
});
|
|
1350
|
-
const l =
|
|
1350
|
+
const l = B(() => o.value && n.value), d = B(() => ({
|
|
1351
1351
|
"f-filter-list": !0,
|
|
1352
1352
|
"f-filter-list-extend": l.value
|
|
1353
|
-
})), c =
|
|
1353
|
+
})), c = B(() => u.value.length > 0), p = Re(e, t, f);
|
|
1354
1354
|
function y() {
|
|
1355
1355
|
return i("div", {
|
|
1356
1356
|
class: d.value
|
|
1357
1357
|
}, [u.value.map((T, S) => p(T, S))]);
|
|
1358
1358
|
}
|
|
1359
|
-
const h =
|
|
1359
|
+
const h = B(() => a.value && !o.value && s.value), P = De(), I = B(() => !o.value), C = je(e, t, f);
|
|
1360
1360
|
return () => i("div", {
|
|
1361
1361
|
class: "f-filter-wrapper",
|
|
1362
1362
|
style: v.value
|
|
@@ -1391,12 +1391,12 @@ function Ro(e, t, n) {
|
|
|
1391
1391
|
return null;
|
|
1392
1392
|
if (w.value.schema && w.value.schema.type === "component")
|
|
1393
1393
|
return w.value;
|
|
1394
|
-
const F = m(w == null ? void 0 : w.value.parent),
|
|
1395
|
-
return
|
|
1394
|
+
const F = m(w == null ? void 0 : w.value.parent), x = l(F);
|
|
1395
|
+
return x || null;
|
|
1396
1396
|
}
|
|
1397
1397
|
function d(w = t) {
|
|
1398
|
-
const { componentInstance: F, designerItemElementRef:
|
|
1399
|
-
return !F || !F.value ? null : F.value.canMove ?
|
|
1398
|
+
const { componentInstance: F, designerItemElementRef: x } = w;
|
|
1399
|
+
return !F || !F.value ? null : F.value.canMove ? x : d(w.parent);
|
|
1400
1400
|
}
|
|
1401
1401
|
function c(w) {
|
|
1402
1402
|
return !!n;
|
|
@@ -1410,16 +1410,16 @@ function Ro(e, t, n) {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
function P(w) {
|
|
1412
1412
|
const { componentType: F } = w;
|
|
1413
|
-
let
|
|
1413
|
+
let x = se(F, w);
|
|
1414
1414
|
const b = F.toLowerCase().replace("-", "_");
|
|
1415
|
-
return
|
|
1415
|
+
return x && !x.id && x.type === F && (x.id = `${b}_${Math.random().toString().slice(2, 6)}`), x;
|
|
1416
1416
|
}
|
|
1417
1417
|
function I(w, F) {
|
|
1418
|
-
const
|
|
1418
|
+
const x = String(w.getAttribute("data-controltype")), b = w.getAttribute("data-feature"), R = b ? JSON.parse(b) : {};
|
|
1419
1419
|
R.parentComponentInstance = f.value;
|
|
1420
|
-
let M = se(
|
|
1421
|
-
const N =
|
|
1422
|
-
return M && !M.id && M.type ===
|
|
1420
|
+
let M = se(x, R);
|
|
1421
|
+
const N = x.toLowerCase().replace("-", "_");
|
|
1422
|
+
return M && !M.id && M.type === x && (M.id = `${N}_${Math.random().toString().slice(2, 6)}`), M;
|
|
1423
1423
|
}
|
|
1424
1424
|
function C(w) {
|
|
1425
1425
|
}
|
|
@@ -1460,24 +1460,24 @@ const jo = /* @__PURE__ */ _({
|
|
|
1460
1460
|
filterFields: g,
|
|
1461
1461
|
filterItems: u,
|
|
1462
1462
|
loadFilterItems: r
|
|
1463
|
-
} = f, v =
|
|
1463
|
+
} = f, v = B(() => ({
|
|
1464
1464
|
display: g.value && g.value.length ? "" : "none"
|
|
1465
1465
|
})), l = m(), d = de("design-item-context"), c = Ro(l, d);
|
|
1466
1466
|
K(() => {
|
|
1467
1467
|
l.value.componentInstance = c;
|
|
1468
|
-
}), t.expose(c.value), H([() => e.data, () => e.fields], ([F,
|
|
1469
|
-
r(
|
|
1468
|
+
}), t.expose(c.value), H([() => e.data, () => e.fields], ([F, x]) => {
|
|
1469
|
+
r(x, F);
|
|
1470
1470
|
});
|
|
1471
|
-
const p =
|
|
1471
|
+
const p = B(() => o.value && n.value), y = B(() => ({
|
|
1472
1472
|
"f-filter-list": !0,
|
|
1473
1473
|
"f-filter-list-extend": p.value
|
|
1474
|
-
})), h =
|
|
1474
|
+
})), h = B(() => u.value.length > 0), P = Re(e, t, f);
|
|
1475
1475
|
function I() {
|
|
1476
1476
|
return i("div", {
|
|
1477
1477
|
class: y.value
|
|
1478
|
-
}, [u.value.map((F,
|
|
1478
|
+
}, [u.value.map((F, x) => P(F, x))]);
|
|
1479
1479
|
}
|
|
1480
|
-
const C =
|
|
1480
|
+
const C = B(() => a.value && !o.value && s.value), T = De(), S = B(() => !o.value), w = je(e, t, f);
|
|
1481
1481
|
return () => i("div", {
|
|
1482
1482
|
ref: l,
|
|
1483
1483
|
class: "f-filter-wrapper",
|
|
@@ -2029,13 +2029,13 @@ const pa = "https://json-schema.org/draft/2020-12/schema", fa = "https://farris-
|
|
|
2029
2029
|
};
|
|
2030
2030
|
Z(Ne, ba, ca, da);
|
|
2031
2031
|
function Ca(e, t, n, o) {
|
|
2032
|
-
const a = m(e.disabled), s = m(!1), f = m("text"), g = m(e.showBorder), u = m(e.textAlign), r = m(e.updateOn), v =
|
|
2032
|
+
const a = m(e.disabled), s = m(!1), f = m("text"), g = m(e.showBorder), u = m(e.textAlign), r = m(e.updateOn), v = B(() => e.editable || !e.readonly), l = B(() => e.editable && !e.disabled && !e.readonly), d = B(() => !e.disabled && s.value), c = B(() => n.value === "" || n.value === null || n.value === void 0), p = B(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = B(() => e.readonly || !e.editable), h = B(() => e.enableTitle ? n.value : ""), P = B(() => ({
|
|
2033
2033
|
"form-control": !0,
|
|
2034
2034
|
"f-utils-fill": !0,
|
|
2035
2035
|
"text-left": u.value === "left",
|
|
2036
2036
|
"text-center": u.value === "center",
|
|
2037
2037
|
"text-right": u.value === "right"
|
|
2038
|
-
})), I =
|
|
2038
|
+
})), I = B(() => {
|
|
2039
2039
|
const k = {
|
|
2040
2040
|
"f-cmp-inputgroup": !0,
|
|
2041
2041
|
"input-group": !0,
|
|
@@ -2045,7 +2045,7 @@ function Ca(e, t, n, o) {
|
|
|
2045
2045
|
"f-state-focus": d.value
|
|
2046
2046
|
};
|
|
2047
2047
|
return (e.customClass || "").split(" ").reduce((U, G) => (U[G] = !0, U), k), k;
|
|
2048
|
-
}), C =
|
|
2048
|
+
}), C = B(() => g.value ? "" : "border-width : 0 ");
|
|
2049
2049
|
function T(k, q = !0) {
|
|
2050
2050
|
n.value = k, o.value !== k && (o.value = k), q && t.emit("change", k), t.emit("update:modelValue", k), t.emit("update:value", k);
|
|
2051
2051
|
}
|
|
@@ -2066,7 +2066,7 @@ function Ca(e, t, n, o) {
|
|
|
2066
2066
|
function F(k) {
|
|
2067
2067
|
e.disabled || (g.value && (s.value = !0), v.value && t.emit("focus", k));
|
|
2068
2068
|
}
|
|
2069
|
-
function
|
|
2069
|
+
function x(k) {
|
|
2070
2070
|
t.emit("input", k.target.value);
|
|
2071
2071
|
const q = k.target.value;
|
|
2072
2072
|
o.value = q, r.value === "input" && (t.emit("update:modelValue", q), t.emit("update:value", q));
|
|
@@ -2100,7 +2100,7 @@ function Ca(e, t, n, o) {
|
|
|
2100
2100
|
onBlur: S,
|
|
2101
2101
|
onClick: w,
|
|
2102
2102
|
onFocus: F,
|
|
2103
|
-
onInput:
|
|
2103
|
+
onInput: x,
|
|
2104
2104
|
onKeydown: b,
|
|
2105
2105
|
onKeyup: R,
|
|
2106
2106
|
onMousedown: M,
|
|
@@ -2112,17 +2112,17 @@ function Ca(e, t, n, o) {
|
|
|
2112
2112
|
};
|
|
2113
2113
|
}
|
|
2114
2114
|
function Ta(e, t, n) {
|
|
2115
|
-
const o = m(!1), a =
|
|
2115
|
+
const o = m(!1), a = B(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: f, hasFocused: g, isEmpty: u } = n;
|
|
2116
2116
|
function r(y) {
|
|
2117
2117
|
o.value = y;
|
|
2118
2118
|
}
|
|
2119
2119
|
H(f, () => {
|
|
2120
2120
|
g != null && g.value ? r(!!(f != null && f.value)) : r(!1);
|
|
2121
2121
|
});
|
|
2122
|
-
const v =
|
|
2122
|
+
const v = B(() => ({
|
|
2123
2123
|
"input-group-text": !0,
|
|
2124
2124
|
"input-group-clear": !0
|
|
2125
|
-
})), l =
|
|
2125
|
+
})), l = B(() => ({
|
|
2126
2126
|
width: "24px",
|
|
2127
2127
|
display: o.value ? "flex" : "none"
|
|
2128
2128
|
}));
|
|
@@ -2157,14 +2157,14 @@ function wa() {
|
|
|
2157
2157
|
}
|
|
2158
2158
|
wa();
|
|
2159
2159
|
function xa(e, t) {
|
|
2160
|
-
const n = m(e.groupText), o =
|
|
2161
|
-
return { appendedButtonClass:
|
|
2160
|
+
const n = m(e.groupText), o = B(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = B(() => e.enableClear || !!e.groupText);
|
|
2161
|
+
return { appendedButtonClass: B(() => ({
|
|
2162
2162
|
"input-group-append": !0,
|
|
2163
2163
|
"append-force-show": o.value
|
|
2164
2164
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
2165
2165
|
}
|
|
2166
2166
|
function Ba(e, t, n, o) {
|
|
2167
|
-
const { appendedContent: a } = o, s = m(e.enableViewPassword), f =
|
|
2167
|
+
const { appendedContent: a } = o, s = m(e.enableViewPassword), f = B(() => e.type === "password"), g = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = m(!1);
|
|
2168
2168
|
H(() => [e.readonly, e.disabled], ([d, c]) => {
|
|
2169
2169
|
f.value && (n.value = d || c ? "password" : n.value, a.value = d || c ? u : a.value);
|
|
2170
2170
|
});
|
|
@@ -2183,10 +2183,10 @@ function ka(e, t, n) {
|
|
|
2183
2183
|
onInput: f,
|
|
2184
2184
|
onKeyDown: g,
|
|
2185
2185
|
textBoxValue: u
|
|
2186
|
-
} = n, r =
|
|
2186
|
+
} = n, r = B(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), v = B(() => ({
|
|
2187
2187
|
"form-control": !0,
|
|
2188
2188
|
"f-utils-fill": !0
|
|
2189
|
-
})), l =
|
|
2189
|
+
})), l = B(() => ({
|
|
2190
2190
|
"text-align": e.textAlign
|
|
2191
2191
|
}));
|
|
2192
2192
|
function d(y) {
|
|
@@ -2222,18 +2222,18 @@ function Pa(e, t, n) {
|
|
|
2222
2222
|
canUpward: a,
|
|
2223
2223
|
onClickDownButton: s,
|
|
2224
2224
|
onClickUpButton: f
|
|
2225
|
-
} = n, g =
|
|
2225
|
+
} = n, g = B(() => ({
|
|
2226
2226
|
"input-group-append": !0,
|
|
2227
2227
|
"btn-group": !0,
|
|
2228
2228
|
"btn-group-number": !0
|
|
2229
|
-
})), u =
|
|
2229
|
+
})), u = B(() => ({
|
|
2230
2230
|
btn: !0,
|
|
2231
2231
|
"btn-secondary": !0,
|
|
2232
2232
|
"btn-number-flag": !0
|
|
2233
|
-
})), r =
|
|
2233
|
+
})), r = B(() => ({
|
|
2234
2234
|
cursor: a() ? "pointer" : "not-allowed",
|
|
2235
2235
|
"margin-left": 0
|
|
2236
|
-
})), v =
|
|
2236
|
+
})), v = B(() => ({
|
|
2237
2237
|
cursor: o() ? "pointer" : "not-allowed",
|
|
2238
2238
|
"margin-left": 0
|
|
2239
2239
|
}));
|
|
@@ -2266,7 +2266,7 @@ function Ia(e, t) {
|
|
|
2266
2266
|
format: l
|
|
2267
2267
|
} = o, {
|
|
2268
2268
|
isFocus: d
|
|
2269
|
-
} = s, c =
|
|
2269
|
+
} = s, c = B(() => !e.disabled && !e.readonly);
|
|
2270
2270
|
return K(() => {
|
|
2271
2271
|
const p = r(e.modelValue);
|
|
2272
2272
|
g.value = l(p);
|
|
@@ -2298,7 +2298,7 @@ function Va(e, t, n, o) {
|
|
|
2298
2298
|
onTextBoxValueChange: S,
|
|
2299
2299
|
readonly: w,
|
|
2300
2300
|
placeholder: F,
|
|
2301
|
-
textBoxClass:
|
|
2301
|
+
textBoxClass: x,
|
|
2302
2302
|
textBoxTitle: b
|
|
2303
2303
|
} = o;
|
|
2304
2304
|
return K(() => {
|
|
@@ -2307,7 +2307,7 @@ function Va(e, t, n, o) {
|
|
|
2307
2307
|
ref: a,
|
|
2308
2308
|
name: "input-group-value",
|
|
2309
2309
|
autocomplete: s.value,
|
|
2310
|
-
class:
|
|
2310
|
+
class: x.value,
|
|
2311
2311
|
disabled: l == null ? void 0 : l.value,
|
|
2312
2312
|
maxlength: r.value,
|
|
2313
2313
|
minlength: u.value,
|
|
@@ -2328,7 +2328,7 @@ function Va(e, t, n, o) {
|
|
|
2328
2328
|
}, null);
|
|
2329
2329
|
}
|
|
2330
2330
|
function Ma(e, t) {
|
|
2331
|
-
const n =
|
|
2331
|
+
const n = B(() => e.useExtendInfo && !!e.extendInfo), o = rt({
|
|
2332
2332
|
content: e.extendInfo
|
|
2333
2333
|
});
|
|
2334
2334
|
function a() {
|
|
@@ -2347,7 +2347,7 @@ function Ea(e, t, n, o, a) {
|
|
|
2347
2347
|
const {
|
|
2348
2348
|
appendedButtonClass: s,
|
|
2349
2349
|
appendedContent: f
|
|
2350
|
-
} = n, g =
|
|
2350
|
+
} = n, g = B(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = B(() => f.value && !t.slots.groupTextTemplate), r = B(() => !!t.slots.groupTextTemplate), {
|
|
2351
2351
|
clearButtonClass: v,
|
|
2352
2352
|
clearButtonStyle: l,
|
|
2353
2353
|
onClearValue: d,
|
|
@@ -2409,7 +2409,7 @@ const $a = /* @__PURE__ */ _({
|
|
|
2409
2409
|
} = u, v = Ta(e, t, a), {
|
|
2410
2410
|
onMouseEnter: l,
|
|
2411
2411
|
onMouseLeave: d
|
|
2412
|
-
} = v, c = Ba(e, t, f, u), p = Ia(e, t), y = Va(e, t, c, a), h = Ea(e, t, u, v, c), P = Ma(e, t), I =
|
|
2412
|
+
} = v, c = Ba(e, t, f, u), p = Ia(e, t), y = Va(e, t, c, a), h = Ea(e, t, u, v, c), P = Ma(e, t), I = B(() => e.type === "number");
|
|
2413
2413
|
H(() => [e.value], ([T]) => {
|
|
2414
2414
|
n.value = T, o.value = T;
|
|
2415
2415
|
}), H(() => [e.modelValue], ([T]) => {
|
|
@@ -2444,6 +2444,8 @@ function Da() {
|
|
|
2444
2444
|
switch (a) {
|
|
2445
2445
|
case "check-box":
|
|
2446
2446
|
return "onChangeValue";
|
|
2447
|
+
case "switch":
|
|
2448
|
+
return "onModelValueChanged";
|
|
2447
2449
|
case "check-group":
|
|
2448
2450
|
return "onChangeValue";
|
|
2449
2451
|
case "combo-list":
|
|
@@ -2513,7 +2515,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2513
2515
|
resolveEditorType: c,
|
|
2514
2516
|
getChangeFunctionName: p,
|
|
2515
2517
|
getClearFunctionName: y
|
|
2516
|
-
} = Da(), h =
|
|
2518
|
+
} = Da(), h = B(() => ({
|
|
2517
2519
|
"form-group": !0,
|
|
2518
2520
|
"farris-form-group": !0,
|
|
2519
2521
|
"common-group": !0,
|
|
@@ -2525,17 +2527,17 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2525
2527
|
function I() {
|
|
2526
2528
|
t.emit("update:modelValue", "");
|
|
2527
2529
|
}
|
|
2528
|
-
const C =
|
|
2529
|
-
const T = a.value.type || "input-group", S = c(T), w = d(T, a.value), F = p(T),
|
|
2530
|
-
return w[F] = P, w[
|
|
2530
|
+
const C = B(() => {
|
|
2531
|
+
const T = a.value.type || "input-group", S = c(T), w = d(T, a.value), F = p(T), x = y(a.value.type);
|
|
2532
|
+
return w[F] = P, w[x] = I, () => i(S, Pe({
|
|
2531
2533
|
ref: l
|
|
2532
2534
|
}, w, {
|
|
2533
2535
|
modelValue: f.value,
|
|
2534
2536
|
"onUpdate:modelValue": (b) => f.value = b
|
|
2535
2537
|
}), null);
|
|
2536
2538
|
});
|
|
2537
|
-
return H([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([T, S, w, F,
|
|
2538
|
-
n.value = T, o.value = S, a.value = w, s.value = F, f.value =
|
|
2539
|
+
return H([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([T, S, w, F, x, b, R, M, N]) => {
|
|
2540
|
+
n.value = T, o.value = S, a.value = w, s.value = F, f.value = x, g.value = b, u.value = R, r.value = M, v.value = N;
|
|
2539
2541
|
}), t.expose({
|
|
2540
2542
|
editorRef: l
|
|
2541
2543
|
}), () => v.value && i("div", {
|
|
@@ -2560,7 +2562,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2560
2562
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
2561
2563
|
setup(e, t) {
|
|
2562
2564
|
var r;
|
|
2563
|
-
const n = m((r = e.category) == null ? void 0 : r.categoryId), o = m(e.elementConfig.propertyID), a = m(e.elementConfig.propertyName), s = m(e.elementConfig.editor), f = m(e.elementConfig.propertyValue), g =
|
|
2565
|
+
const n = m((r = e.category) == null ? void 0 : r.categoryId), o = m(e.elementConfig.propertyID), a = m(e.elementConfig.propertyName), s = m(e.elementConfig.editor), f = m(e.elementConfig.propertyValue), g = B(() => {
|
|
2564
2566
|
const v = e.elementConfig.visible;
|
|
2565
2567
|
return {
|
|
2566
2568
|
"farris-group-wrap": !0,
|
|
@@ -2704,7 +2706,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2704
2706
|
const h = m(""), P = m(), I = m(), C = de("SchemaService");
|
|
2705
2707
|
let T = [], S = null, w = "";
|
|
2706
2708
|
const F = m();
|
|
2707
|
-
function
|
|
2709
|
+
function x() {
|
|
2708
2710
|
y = [], F.value && F.value.categoryList && Array.isArray(F.value.categoryList) && F.value.categoryList.length > 0 && F.value.categoryList.forEach((j) => {
|
|
2709
2711
|
if (j.properties.forEach((L) => L.categoryId = j.categoryId), j.properties && Array.isArray(j.properties) && j.properties.length > 0) {
|
|
2710
2712
|
const L = j.properties.map((W) => (W.category = j, W));
|
|
@@ -2744,7 +2746,7 @@ const Ra = /* @__PURE__ */ _({
|
|
|
2744
2746
|
const j = document.querySelector(".panel-body");
|
|
2745
2747
|
if (!h.value)
|
|
2746
2748
|
P.value && j && (j.scrollTop = 0);
|
|
2747
|
-
else if (
|
|
2749
|
+
else if (x(), y && y.length > 0) {
|
|
2748
2750
|
const L = M();
|
|
2749
2751
|
L && L.length > 0 && (L[0].category.status === "closed" && (L[0].category.status = "open"), setTimeout(() => {
|
|
2750
2752
|
L.forEach((W, X) => {
|
|
@@ -3933,34 +3935,36 @@ function xe(e, t, n, o, a, s, f, g, u, r) {
|
|
|
3933
3935
|
listViewItemClass: C,
|
|
3934
3936
|
onCheckItem: T,
|
|
3935
3937
|
onClickItem: S
|
|
3936
|
-
} = f, w =
|
|
3938
|
+
} = f, w = B(() => ({
|
|
3937
3939
|
margin: v.value === "small" ? "0.25rem 0" : "10px 0"
|
|
3938
3940
|
}));
|
|
3939
|
-
function F(
|
|
3940
|
-
return
|
|
3941
|
-
class: C(
|
|
3942
|
-
id: I(
|
|
3943
|
-
key: I(
|
|
3944
|
-
onClick: (M) => S(M,
|
|
3945
|
-
onMouseenter: (M) => y(M,
|
|
3946
|
-
onMouseover: (M) => h(M,
|
|
3947
|
-
onMouseout: (M) => P(M,
|
|
3941
|
+
function F(x, b, R) {
|
|
3942
|
+
return x.checked = g.findIndexInSelectedItems(x) > -1, i("li", {
|
|
3943
|
+
class: C(x, b),
|
|
3944
|
+
id: I(x, b),
|
|
3945
|
+
key: I(x, b),
|
|
3946
|
+
onClick: (M) => S(M, x, b),
|
|
3947
|
+
onMouseenter: (M) => y(M, x, b),
|
|
3948
|
+
onMouseover: (M) => h(M, x, b),
|
|
3949
|
+
onMouseout: (M) => P(M, x, b)
|
|
3948
3950
|
}, [c.value && i("div", {
|
|
3949
3951
|
class: "f-list-select",
|
|
3950
3952
|
onClick: (M) => M.stopPropagation()
|
|
3951
3953
|
}, [i(fe, {
|
|
3952
|
-
id: "list-" + I(
|
|
3954
|
+
id: "list-" + I(x, b),
|
|
3953
3955
|
customClass: "listview-checkbox",
|
|
3954
|
-
disabled:
|
|
3955
|
-
checked:
|
|
3956
|
-
"onUpdate:checked": (M) =>
|
|
3957
|
-
onChange: (M) =>
|
|
3956
|
+
disabled: x[p.value],
|
|
3957
|
+
checked: x.checked,
|
|
3958
|
+
"onUpdate:checked": (M) => x.checked = M,
|
|
3959
|
+
onChange: (M) => {
|
|
3960
|
+
T(x, b, !M.checked);
|
|
3961
|
+
}
|
|
3958
3962
|
}, null)]), i("div", {
|
|
3959
3963
|
class: "f-list-content"
|
|
3960
3964
|
}, [i("div", {
|
|
3961
3965
|
style: w.value,
|
|
3962
|
-
title:
|
|
3963
|
-
}, [
|
|
3966
|
+
title: x.raw[d.value] || x.raw[l.value]
|
|
3967
|
+
}, [x.raw[l.value]])])]);
|
|
3964
3968
|
}
|
|
3965
3969
|
return {
|
|
3966
3970
|
renderItem: F
|
|
@@ -3991,20 +3995,20 @@ function xl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
3991
3995
|
class: h(S, w),
|
|
3992
3996
|
id: y(S, w),
|
|
3993
3997
|
key: y(S, w),
|
|
3994
|
-
onClick: (
|
|
3995
|
-
onMouseenter: (
|
|
3996
|
-
onMouseover: (
|
|
3997
|
-
onMouseout: (
|
|
3998
|
+
onClick: (x) => I(x, S, w),
|
|
3999
|
+
onMouseenter: (x) => d(x, S, w),
|
|
4000
|
+
onMouseover: (x) => c(x, S, w),
|
|
4001
|
+
onMouseout: (x) => p(x, S, w)
|
|
3998
4002
|
}, [v.value && i("div", {
|
|
3999
4003
|
class: "f-list-select",
|
|
4000
|
-
onClick: (
|
|
4004
|
+
onClick: (x) => x.stopPropagation()
|
|
4001
4005
|
}, [i(fe, {
|
|
4002
4006
|
id: "list-" + y(S, w),
|
|
4003
4007
|
customClass: "listview-checkbox",
|
|
4004
4008
|
disabled: S[l.value] || !S.checked,
|
|
4005
4009
|
checked: S.checked,
|
|
4006
|
-
"onUpdate:checked": (
|
|
4007
|
-
onChange: (
|
|
4010
|
+
"onUpdate:checked": (x) => S.checked = x,
|
|
4011
|
+
onChange: (x) => P(S, w, !x.checked)
|
|
4008
4012
|
}, null)]), i("div", {
|
|
4009
4013
|
class: "f-list-content"
|
|
4010
4014
|
}, [C(S, w, F)])]);
|
|
@@ -4030,12 +4034,12 @@ function Bl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4030
4034
|
dragend: w
|
|
4031
4035
|
} = o, {
|
|
4032
4036
|
removeItem: F
|
|
4033
|
-
} = u,
|
|
4037
|
+
} = u, x = B(() => ({
|
|
4034
4038
|
margin: v.value ? "10px 0" : "10px 0px 10px 14px"
|
|
4035
4039
|
}));
|
|
4036
4040
|
function b(k) {
|
|
4037
4041
|
return i("div", {
|
|
4038
|
-
style:
|
|
4042
|
+
style: x.value
|
|
4039
4043
|
}, [k.raw.name]);
|
|
4040
4044
|
}
|
|
4041
4045
|
function R() {
|
|
@@ -4065,7 +4069,7 @@ function Bl(e, t, n, o, a, s, f, g, u, r) {
|
|
|
4065
4069
|
disabled: k[l.value] || !k.checked,
|
|
4066
4070
|
checked: k.checked,
|
|
4067
4071
|
"onUpdate:checked": (G) => k.checked = G,
|
|
4068
|
-
onChange: (G) => P(k, q)
|
|
4072
|
+
onChange: (G) => P(k, q, !G.checked)
|
|
4069
4073
|
}, null)]), i("div", {
|
|
4070
4074
|
class: "f-list-content"
|
|
4071
4075
|
}, [M(k)]), i("div", {
|
|
@@ -4197,17 +4201,17 @@ function Ml(e, t, n, o, a, s) {
|
|
|
4197
4201
|
function S(M, N) {
|
|
4198
4202
|
return M.raw[f.value] || "";
|
|
4199
4203
|
}
|
|
4200
|
-
const w =
|
|
4201
|
-
function F(M, N) {
|
|
4202
|
-
|
|
4204
|
+
const w = B(() => !v.value);
|
|
4205
|
+
function F(M, N, k) {
|
|
4206
|
+
M.checked = k, !M.raw[g.value] && (w.value && (p.value = M.raw[f.value]), I(M));
|
|
4203
4207
|
}
|
|
4204
|
-
const
|
|
4208
|
+
const x = B(() => v.value && l.value === "OnCheckClearByClick"), b = B(() => !v.value || v.value && (l.value === "OnCheckAndClick" || l.value === "OnClick"));
|
|
4205
4209
|
function R(M, N, k) {
|
|
4206
4210
|
if (N.raw[g.value]) {
|
|
4207
4211
|
M.preventDefault(), M.stopPropagation();
|
|
4208
4212
|
return;
|
|
4209
4213
|
}
|
|
4210
|
-
p.value = N.raw[f.value], c.value = k,
|
|
4214
|
+
p.value = N.raw[f.value], c.value = k, x.value && h(n.value), b.value && (I(N), C.value = P()), t.emit("clickItem", { data: C.value, index: k }), t.emit("activeChange", C.value);
|
|
4211
4215
|
}
|
|
4212
4216
|
return {
|
|
4213
4217
|
getKey: S,
|
|
@@ -4217,11 +4221,11 @@ function Ml(e, t, n, o, a, s) {
|
|
|
4217
4221
|
};
|
|
4218
4222
|
}
|
|
4219
4223
|
function El(e, t, n, o, a, s, f) {
|
|
4220
|
-
const g = m(e.view), u = m(e.view === "CardView"), r = m({}), v = m("暂无数据"), l = Pl(), d = Il(e, t, o, l), c = Vl(e, t, o), p = Ml(e, t, n, d, l, s), y =
|
|
4224
|
+
const g = m(e.view), u = m(e.view === "CardView"), r = m({}), v = m("暂无数据"), l = Pl(), d = Il(e, t, o, l), c = Vl(e, t, o), p = Ml(e, t, n, d, l, s), y = B(() => ({
|
|
4221
4225
|
"f-list-view-group": !0,
|
|
4222
4226
|
"d-flex": u.value,
|
|
4223
4227
|
"flex-wrap": u.value
|
|
4224
|
-
})), h =
|
|
4228
|
+
})), h = B(() => !!n.value && n.value.length > 0), P = B(() => n.value.length === 0), I = B(() => P.value && !t.slots.empty);
|
|
4225
4229
|
function C() {
|
|
4226
4230
|
return g.value === "SingleView" ? xe : g.value === "DraggableView" ? Bl : (g.value === "ContentView" || g.value === "CardView") && t.slots.content ? xl : xe;
|
|
4227
4231
|
}
|
|
@@ -4230,7 +4234,7 @@ function El(e, t, n, o, a, s, f) {
|
|
|
4230
4234
|
} = T(e, t, n, d, a, l, p, s, c, f), {
|
|
4231
4235
|
renderItem: w
|
|
4232
4236
|
} = kl(e, t, n, d, a, l, p, s, c, f), F = [S, w];
|
|
4233
|
-
function
|
|
4237
|
+
function x() {
|
|
4234
4238
|
return n.value.filter((M) => M.visible !== !1).map((M, N) => F[M.type](M, N, r));
|
|
4235
4239
|
}
|
|
4236
4240
|
function b() {
|
|
@@ -4244,7 +4248,7 @@ function El(e, t, n, o, a, s, f) {
|
|
|
4244
4248
|
return i("ul", {
|
|
4245
4249
|
class: y.value,
|
|
4246
4250
|
style: "list-style: none;"
|
|
4247
|
-
}, [h.value &&
|
|
4251
|
+
}, [h.value && x(), I.value && b(), t.slots.empty && t.slots.empty()]);
|
|
4248
4252
|
}
|
|
4249
4253
|
return {
|
|
4250
4254
|
renderListArea: R
|
|
@@ -4261,14 +4265,14 @@ function $l(e, t, n) {
|
|
|
4261
4265
|
};
|
|
4262
4266
|
}
|
|
4263
4267
|
function Be(e, t, n) {
|
|
4264
|
-
const o = m(e.headerClass), a = m(e.placeholder), s = m(""), f =
|
|
4268
|
+
const o = m(e.headerClass), a = m(e.placeholder), s = m(""), f = B(() => !s.value), g = B(() => !!s.value);
|
|
4265
4269
|
function u(d) {
|
|
4266
4270
|
s.value = "";
|
|
4267
4271
|
}
|
|
4268
4272
|
H(s, (d) => {
|
|
4269
4273
|
n.search(d);
|
|
4270
4274
|
});
|
|
4271
|
-
const r =
|
|
4275
|
+
const r = B(() => {
|
|
4272
4276
|
const d = {
|
|
4273
4277
|
"form-group": !0,
|
|
4274
4278
|
"farris-form-group": !0
|
|
@@ -4318,17 +4322,17 @@ const ke = /* @__PURE__ */ _({
|
|
|
4318
4322
|
props: Ge,
|
|
4319
4323
|
emits: ["checkValuesChange", "clickItem", "selectionChange", "removeItem", "change", "activeChange"],
|
|
4320
4324
|
setup(e, t) {
|
|
4321
|
-
const n = m(), o = m(!0), a = m(!1), s = m([]), f = 0, g = m(e.columns), u = Fn(e), r = wn(e), v = xn(e, u), l = Bn(e), d = kn(e, /* @__PURE__ */ new Map(), r, u, l), c = Pn(e, d, u, s, t), p = wl(e, n), y =
|
|
4325
|
+
const n = m(), o = m(!0), a = m(!1), s = m([]), f = 0, g = m(e.columns), u = Fn(e), r = wn(e), v = xn(e, u), l = Bn(e), d = kn(e, /* @__PURE__ */ new Map(), r, u, l), c = Pn(e, d, u, s, t), p = wl(e, n), y = B(() => d.dataView.value.length), h = In(e, u), P = Vn(), I = Mn(e, {}, P), C = En(e, h, r, u, P, I), T = $n(e, u, I, C), S = On(e, u, I, C), w = Dn(e, g, d, y, f, C, T, S), {
|
|
4322
4326
|
getVisualData: F
|
|
4323
4327
|
} = w;
|
|
4324
4328
|
s.value = F(0, y.value + f - 1);
|
|
4325
|
-
const
|
|
4329
|
+
const x = B(() => {
|
|
4326
4330
|
const z = {
|
|
4327
4331
|
"f-list-view": !0,
|
|
4328
4332
|
"f-list-view-multiple": e.multiSelect
|
|
4329
4333
|
};
|
|
4330
4334
|
return e.size !== "default" && (z[`${e.size}-item`] = !0), z;
|
|
4331
|
-
}), b =
|
|
4335
|
+
}), b = B(() => !!t.slots.footer || o.value);
|
|
4332
4336
|
function R() {
|
|
4333
4337
|
return e.header === "SearchBar" ? Be : e.header === "ContentHeader" ? $l : Be;
|
|
4334
4338
|
}
|
|
@@ -4351,7 +4355,7 @@ const ke = /* @__PURE__ */ _({
|
|
|
4351
4355
|
e.multiSelect && (z.preventDefault(), z.stopPropagation());
|
|
4352
4356
|
}
|
|
4353
4357
|
return () => i("div", {
|
|
4354
|
-
class:
|
|
4358
|
+
class: x.value,
|
|
4355
4359
|
onClick: G
|
|
4356
4360
|
}, [N(), i("div", {
|
|
4357
4361
|
ref: n,
|
|
@@ -4371,7 +4375,7 @@ const ke = /* @__PURE__ */ _({
|
|
|
4371
4375
|
props: qe,
|
|
4372
4376
|
emits: ["change", "activeChange"],
|
|
4373
4377
|
setup(e, t) {
|
|
4374
|
-
const n = m(e.identifyField), o = m("已选:"), a = m("项数据"), s = m(e.displayType), f = m(!1), g = m(e.dataSource), u = m(e.selections || []), r =
|
|
4378
|
+
const n = m(e.identifyField), o = m("已选:"), a = m("项数据"), s = m(e.displayType), f = m(!1), g = m(e.dataSource), u = m(e.selections || []), r = B(() => u.value.map((b) => b[n.value])), v = /* @__PURE__ */ new Map(), l = m();
|
|
4375
4379
|
function d() {
|
|
4376
4380
|
const b = /* @__PURE__ */ new Map(), R = e.selectionValues || [];
|
|
4377
4381
|
R.length && R.reduce((N, k) => (N.set(k, !0), N), b);
|
|
@@ -4382,7 +4386,7 @@ const ke = /* @__PURE__ */ _({
|
|
|
4382
4386
|
});
|
|
4383
4387
|
}
|
|
4384
4388
|
d();
|
|
4385
|
-
const c =
|
|
4389
|
+
const c = B(() => s.value === "List"), p = B(() => s.value === "Tree");
|
|
4386
4390
|
function y(b) {
|
|
4387
4391
|
u.value = b.map((R) => Object.assign({}, R)), t.emit("change", u.value);
|
|
4388
4392
|
}
|
|
@@ -4468,13 +4472,13 @@ const ke = /* @__PURE__ */ _({
|
|
|
4468
4472
|
class: "container columns-box f-utils-fill d-flex"
|
|
4469
4473
|
}, [w()])])]);
|
|
4470
4474
|
}
|
|
4471
|
-
const
|
|
4475
|
+
const x = B(() => ({
|
|
4472
4476
|
transfer: !0,
|
|
4473
4477
|
row: !0,
|
|
4474
4478
|
"f-utils-fill": f.value
|
|
4475
4479
|
}));
|
|
4476
4480
|
return () => i("div", {
|
|
4477
|
-
class:
|
|
4481
|
+
class: x.value,
|
|
4478
4482
|
style: "height:480px"
|
|
4479
4483
|
}, [I(), F()]);
|
|
4480
4484
|
}
|
|
@@ -4534,7 +4538,7 @@ function Rl(e, t, n, o, a) {
|
|
|
4534
4538
|
const {
|
|
4535
4539
|
id: w,
|
|
4536
4540
|
code: F,
|
|
4537
|
-
labelCode:
|
|
4541
|
+
labelCode: x,
|
|
4538
4542
|
name: b,
|
|
4539
4543
|
...R
|
|
4540
4544
|
} = S;
|
|
@@ -4542,7 +4546,7 @@ function Rl(e, t, n, o, a) {
|
|
|
4542
4546
|
const M = {
|
|
4543
4547
|
id: w,
|
|
4544
4548
|
code: F,
|
|
4545
|
-
labelCode:
|
|
4549
|
+
labelCode: x,
|
|
4546
4550
|
name: b,
|
|
4547
4551
|
editor: R
|
|
4548
4552
|
};
|
|
@@ -4975,14 +4979,14 @@ const Zl = {
|
|
|
4975
4979
|
props: Zl,
|
|
4976
4980
|
emits: ["click"],
|
|
4977
4981
|
setup(e, t) {
|
|
4978
|
-
const n = m(e.popupContentPosition), o = m(e.host), a =
|
|
4982
|
+
const n = m(e.popupContentPosition), o = m(e.host), a = B(() => ({
|
|
4979
4983
|
backgroundColor: e.backgroundColor || "",
|
|
4980
4984
|
pointerEvents: "auto"
|
|
4981
4985
|
}));
|
|
4982
4986
|
function s(g) {
|
|
4983
4987
|
t.emit("click"), g.preventDefault(), g.stopPropagation();
|
|
4984
4988
|
}
|
|
4985
|
-
|
|
4989
|
+
B(() => {
|
|
4986
4990
|
const g = o.value;
|
|
4987
4991
|
if (g) {
|
|
4988
4992
|
const u = g.getBoundingClientRect(), {
|
|
@@ -4997,7 +5001,7 @@ const Zl = {
|
|
|
4997
5001
|
}
|
|
4998
5002
|
return n.value;
|
|
4999
5003
|
});
|
|
5000
|
-
const f =
|
|
5004
|
+
const f = B(() => ({
|
|
5001
5005
|
// position: 'relative',
|
|
5002
5006
|
// left: `${position.value.left}px`,
|
|
5003
5007
|
// top: `${position.value.top}px`
|
|
@@ -5070,10 +5074,10 @@ function We(e, t) {
|
|
|
5070
5074
|
return { judgeCanOpen: n };
|
|
5071
5075
|
}
|
|
5072
5076
|
function ai(e, t, n, o, a) {
|
|
5073
|
-
const s = m(e.buttonBehavior), f = m(e.popupOnInput), g =
|
|
5077
|
+
const s = m(e.buttonBehavior), f = m(e.popupOnInput), g = B(() => ({
|
|
5074
5078
|
"input-group-append": !0,
|
|
5075
5079
|
"append-force-show": e.showButtonWhenDisabled && (e.readonly || e.disable)
|
|
5076
|
-
})), { judgeCanOpen: u } = We(e, a), r =
|
|
5080
|
+
})), { judgeCanOpen: u } = We(e, a), r = B(() => e.showButtonWhenDisabled || (!e.editable || !e.readonly) && !e.disable), v = de(oi, null), l = m();
|
|
5077
5081
|
async function d(y) {
|
|
5078
5082
|
if (await u() && r.value) {
|
|
5079
5083
|
const h = !!t.slots.default;
|
|
@@ -5107,7 +5111,7 @@ function ai(e, t, n, o, a) {
|
|
|
5107
5111
|
};
|
|
5108
5112
|
}
|
|
5109
5113
|
function li(e, t, n, o, a, s) {
|
|
5110
|
-
const f = m(!1), g =
|
|
5114
|
+
const f = m(!1), g = B(() => e.enableClear && !e.readonly && !e.disable), { changeTextBoxValue: u } = s;
|
|
5111
5115
|
function r(c) {
|
|
5112
5116
|
f.value = c;
|
|
5113
5117
|
}
|
|
@@ -5139,13 +5143,13 @@ function li(e, t, n, o, a, s) {
|
|
|
5139
5143
|
};
|
|
5140
5144
|
}
|
|
5141
5145
|
function ii(e, t, n, o, a) {
|
|
5142
|
-
const s =
|
|
5146
|
+
const s = B(() => e.popupOnInput), f = B(() => e.popupOnFocus), { shouldPopupContent: g } = a, u = B(() => e.enableTitle ? n.value : ""), r = B(() => (e.disable || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), v = B(() => e.readonly || !e.editable), l = m(!1), d = B(() => !e.disable && l.value), c = B(() => ({
|
|
5143
5147
|
"text-left": e.textAlign === "left",
|
|
5144
5148
|
"text-center": e.textAlign === "center",
|
|
5145
5149
|
"text-right": e.textAlign === "right",
|
|
5146
5150
|
"form-control": !0,
|
|
5147
5151
|
"f-utils-fill": !0
|
|
5148
|
-
})), p =
|
|
5152
|
+
})), p = B(() => ({
|
|
5149
5153
|
"input-group": !0,
|
|
5150
5154
|
"f-state-disable": e.disable,
|
|
5151
5155
|
"f-state-editable": e.editable && !e.disable && !e.readonly,
|
|
@@ -5187,7 +5191,7 @@ function ii(e, t, n, o, a) {
|
|
|
5187
5191
|
function F(b) {
|
|
5188
5192
|
b.key === "Enter" && (s.value || f.value) && a.hidePopup(), t.emit("keyup", b);
|
|
5189
5193
|
}
|
|
5190
|
-
function
|
|
5194
|
+
function x(b) {
|
|
5191
5195
|
const R = b.target.value;
|
|
5192
5196
|
b.stopPropagation(), y(R);
|
|
5193
5197
|
}
|
|
@@ -5207,7 +5211,7 @@ function ii(e, t, n, o, a) {
|
|
|
5207
5211
|
onKeyDownTextBox: w,
|
|
5208
5212
|
onKeyUpTextBox: F,
|
|
5209
5213
|
onMouseDownTextBox: S,
|
|
5210
|
-
onTextBoxValueChange:
|
|
5214
|
+
onTextBoxValueChange: x
|
|
5211
5215
|
};
|
|
5212
5216
|
}
|
|
5213
5217
|
function ri(e, t, n, o) {
|
|
@@ -5280,7 +5284,7 @@ function si(e, t, n) {
|
|
|
5280
5284
|
function ui(e, t, n) {
|
|
5281
5285
|
const o = m(e.separator), {
|
|
5282
5286
|
changeTextBoxValue: a
|
|
5283
|
-
} = n, s =
|
|
5287
|
+
} = n, s = B(() => t.value ? t.value.split(o.value).map((g) => ({
|
|
5284
5288
|
name: g,
|
|
5285
5289
|
selectable: !0
|
|
5286
5290
|
})) : []);
|
|
@@ -5372,7 +5376,7 @@ const pi = /* @__PURE__ */ _({
|
|
|
5372
5376
|
} = l, y = li(e, t, a, d, v, l), {
|
|
5373
5377
|
onMouseEnterTextBox: h,
|
|
5374
5378
|
onMouseLeaveTextBox: P
|
|
5375
|
-
} = y, I =
|
|
5379
|
+
} = y, I = B(() => {
|
|
5376
5380
|
const b = {
|
|
5377
5381
|
"f-button-edit": !0,
|
|
5378
5382
|
"f-cmp-inputgroup": !0,
|
|
@@ -5390,7 +5394,7 @@ const pi = /* @__PURE__ */ _({
|
|
|
5390
5394
|
const {
|
|
5391
5395
|
renderButtonGroup: S,
|
|
5392
5396
|
buttonHandleElement: w
|
|
5393
|
-
} = ci(e, t, r, y), F = di(e, t, s),
|
|
5397
|
+
} = ci(e, t, r, y), F = di(e, t, s), x = {
|
|
5394
5398
|
commitValue: c,
|
|
5395
5399
|
elementRef: n,
|
|
5396
5400
|
hidePopup: g,
|
|
@@ -5405,10 +5409,10 @@ const pi = /* @__PURE__ */ _({
|
|
|
5405
5409
|
}
|
|
5406
5410
|
};
|
|
5407
5411
|
return K(() => {
|
|
5408
|
-
n.value.componentInstance =
|
|
5412
|
+
n.value.componentInstance = x, window.onresize = () => {
|
|
5409
5413
|
document.body.click();
|
|
5410
5414
|
};
|
|
5411
|
-
}), t.expose(
|
|
5415
|
+
}), t.expose(x), () => i(J, null, [i("div", Pe(t.attrs, {
|
|
5412
5416
|
ref: n,
|
|
5413
5417
|
class: I.value,
|
|
5414
5418
|
id: e.id
|
|
@@ -5424,7 +5428,7 @@ const pi = /* @__PURE__ */ _({
|
|
|
5424
5428
|
props: Le,
|
|
5425
5429
|
emits: ["update:modelValue"],
|
|
5426
5430
|
setup(e, t) {
|
|
5427
|
-
const n = m(null), o =
|
|
5431
|
+
const n = m(null), o = B(() => "共" + e.modelValue.length + "项"), a = m(), s = Ua(e, t, n, a), {
|
|
5428
5432
|
renderPanel: f
|
|
5429
5433
|
} = s, {
|
|
5430
5434
|
renderTransfer: g,
|