@farris/ui-vue 1.6.5-beta.8 → 1.6.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/avatar/index.esm.js +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -6
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +220 -220
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +381 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15445 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4685 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6989 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -525,16 +525,16 @@ function An(e, t, n) {
|
|
|
525
525
|
const p = d.$converter || g;
|
|
526
526
|
return typeof p == "string" && p && a.has(p) ? a.get(p) || null : p || null;
|
|
527
527
|
}
|
|
528
|
-
function h(d, g, p, w, k, B = "",
|
|
528
|
+
function h(d, g, p, w, k, B = "", M = "") {
|
|
529
529
|
return Object.keys(d).map((y) => {
|
|
530
|
-
const x = C(1),
|
|
530
|
+
const x = C(1), E = y, I = d[y], R = Object.keys(I), O = I.title, F = I.type, S = o.get(F) || { type: "input-group", enableClear: !1 }, T = I.editor ? Object.assign({}, S, I.editor) : Object.assign({}, S), P = u(R, I, g), L = s(R, I, g);
|
|
531
531
|
T.readonly = T.readonly === void 0 ? L() : T.readonly;
|
|
532
|
-
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B,
|
|
533
|
-
let j = c(I,
|
|
532
|
+
const _ = I.type === "cascade" ? h(I.properties, g, p, w, k, B, M) : [], V = !0;
|
|
533
|
+
let j = c(I, M);
|
|
534
534
|
const G = N({
|
|
535
535
|
get() {
|
|
536
536
|
if (x.value) {
|
|
537
|
-
if (["class", "style"].find((de) => de ===
|
|
537
|
+
if (["class", "style"].find((de) => de === E) && !j && (j = a.get("/converter/appearance.converter") || null), j && j.convertFrom)
|
|
538
538
|
return j.convertFrom(p, y, k, B);
|
|
539
539
|
const le = p[y];
|
|
540
540
|
return Object.prototype.hasOwnProperty.call(I, "defaultValue") && (le === void 0 || typeof le == "string" && le === "") ? I.type === "boolean" ? I.defaultValue : I.defaultValue || "" : le;
|
|
@@ -544,42 +544,42 @@ function An(e, t, n) {
|
|
|
544
544
|
set(le) {
|
|
545
545
|
x.value += 1, j && j.convertTo ? (j.convertTo(w, y, le, k, B), j.convertTo(p, y, le, k, B)) : (w[y] = le, p[y] = le);
|
|
546
546
|
}
|
|
547
|
-
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID:
|
|
548
|
-
return g[
|
|
547
|
+
}), { refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve } = I, X = { propertyID: E, propertyName: O, propertyType: F, propertyValue: G, editor: T, visible: P, readonly: L, cascadeConfig: _, hideCascadeTitle: V, refreshPanelAfterChanged: W, description: ee, isExpand: ce, parentPropertyID: ve };
|
|
548
|
+
return g[E] = X, X;
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
function f(d, g, p = {}) {
|
|
552
552
|
const w = {}, k = e[d];
|
|
553
|
-
return k && k.categories ? Object.keys(k.categories).map((
|
|
554
|
-
const b = k.categories[
|
|
555
|
-
return { categoryId:
|
|
553
|
+
return k && k.categories ? Object.keys(k.categories).map((M) => {
|
|
554
|
+
const b = k.categories[M], y = b == null ? void 0 : b.title, x = h(b.properties || {}, w, {}, p, g);
|
|
555
|
+
return { categoryId: M, categoryName: y, properties: x };
|
|
556
556
|
}) : [];
|
|
557
557
|
}
|
|
558
558
|
function r(d, g, p, w, k = "") {
|
|
559
|
-
const B = g.$ref.schema,
|
|
559
|
+
const B = g.$ref.schema, M = g.$ref.converter, b = p[B], y = b.type, x = n(b), E = {}, I = e[y];
|
|
560
560
|
if (I && I.categories) {
|
|
561
|
-
const R = I.categories[d],
|
|
562
|
-
|
|
563
|
-
R.properties[T].$converter =
|
|
561
|
+
const R = I.categories[d], O = R == null ? void 0 : R.title;
|
|
562
|
+
M && Object.keys(R.properties).forEach((T) => {
|
|
563
|
+
R.properties[T].$converter = M;
|
|
564
564
|
});
|
|
565
|
-
const F = (R == null ? void 0 : R.properties) || {}, S = h(F,
|
|
566
|
-
return { categoryId: d, categoryName:
|
|
565
|
+
const F = (R == null ? void 0 : R.properties) || {}, S = h(F, E, x, b, w, k);
|
|
566
|
+
return { categoryId: d, categoryName: O, properties: S };
|
|
567
567
|
}
|
|
568
568
|
return { categoryId: d, categoryName: "", properties: [] };
|
|
569
569
|
}
|
|
570
570
|
function m(d, g, p, w, k) {
|
|
571
|
-
const B = d.type,
|
|
571
|
+
const B = d.type, M = n(d), b = {};
|
|
572
572
|
let y = k || e[B];
|
|
573
573
|
if (y && Object.keys(y).length === 0 && p && p.getPropConfig && (y = p.getPropConfig(w)), y && y.categories) {
|
|
574
574
|
const x = [];
|
|
575
|
-
return Object.keys(y.categories).map((
|
|
576
|
-
const I = y.categories[
|
|
575
|
+
return Object.keys(y.categories).map((E) => {
|
|
576
|
+
const I = y.categories[E];
|
|
577
577
|
if (I.$ref) {
|
|
578
|
-
x.push(r(
|
|
578
|
+
x.push(r(E, I, d, g, w));
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
|
-
const R = I == null ? void 0 : I.title,
|
|
582
|
-
x.push({ categoryId:
|
|
581
|
+
const R = I == null ? void 0 : I.title, O = I == null ? void 0 : I.tabId, F = I == null ? void 0 : I.tabName, S = I == null ? void 0 : I.hide, T = I == null ? void 0 : I.hideTitle, P = h(I.properties || {}, b, M, d, g, w, I.$converter), { setPropertyRelates: L } = I, _ = I == null ? void 0 : I.parentPropertyID;
|
|
582
|
+
x.push({ categoryId: E, categoryName: R, tabId: O, tabName: F, hide: S, properties: P, hideTitle: T, setPropertyRelates: L, parentPropertyID: _ });
|
|
583
583
|
}), x;
|
|
584
584
|
}
|
|
585
585
|
return [];
|
|
@@ -1256,7 +1256,7 @@ function Rl(e, t) {
|
|
|
1256
1256
|
c.value && ((c.value.n || c.value.s) && ((V = u.value) != null && V.height) && (ee.style.height = u.value.height + "px"), (c.value.w || c.value.e) && ((j = u.value) != null && j.width) && (ee.style.width = u.value.width + "px"), s.value && ((G = s.value) != null && G.x && (ee.style.left = s.value.x + "px"), (W = s.value) != null && W.y && (ee.style.top = s.value.y + "px")));
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function M() {
|
|
1260
1260
|
const V = e.minHeight ? e.minHeight : 1, j = e.minWidth ? e.minWidth : 1;
|
|
1261
1261
|
u.value && s.value && c.value && l.value && (u.value.height < V && (u.value.height = V, c.value.n && i.value && (s.value.y = i.value.y + (l.value.height - V))), u.value.width < j && (u.value.width = j, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - j))), e.maxHeight && u.value.height > e.maxHeight && (u.value.height = e.maxHeight, i.value && c.value.n && (s.value.y = i.value.y + (l.value.height - e.maxHeight))), e.maxWidth && u.value.width > e.maxWidth && (u.value.width = e.maxWidth, c.value.w && i.value && (s.value.x = i.value.x + (l.value.width - e.maxWidth))));
|
|
1262
1262
|
}
|
|
@@ -1274,7 +1274,7 @@ function Rl(e, t) {
|
|
|
1274
1274
|
return;
|
|
1275
1275
|
V.subtract(o.value);
|
|
1276
1276
|
const j = V.x, G = V.y;
|
|
1277
|
-
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(),
|
|
1277
|
+
c.value.n ? (s.value.y = i.value.y + G, u.value.height = l.value.height - G) : c.value.s && (u.value.height = l.value.height + G), c.value.e ? u.value.width = l.value.width + j : c.value.w && (u.value.width = l.value.width - j, s.value.x = i.value.x + j), b(), M(), B();
|
|
1278
1278
|
}
|
|
1279
1279
|
function x(V) {
|
|
1280
1280
|
if (!h.value)
|
|
@@ -1282,7 +1282,7 @@ function Rl(e, t) {
|
|
|
1282
1282
|
const j = re.fromEvent(V);
|
|
1283
1283
|
j && y(j);
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function E() {
|
|
1286
1286
|
if (n.value) {
|
|
1287
1287
|
const {
|
|
1288
1288
|
width: V,
|
|
@@ -1305,7 +1305,7 @@ function Rl(e, t) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
function I(V) {
|
|
1307
1307
|
if (n.value) {
|
|
1308
|
-
const j =
|
|
1308
|
+
const j = E();
|
|
1309
1309
|
r.value = j;
|
|
1310
1310
|
}
|
|
1311
1311
|
o.value = void 0, l.value = null, i.value = null, u.value = null, s.value = null, c.value = null, h.value = null, document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", I);
|
|
@@ -1313,48 +1313,48 @@ function Rl(e, t) {
|
|
|
1313
1313
|
function R() {
|
|
1314
1314
|
document.addEventListener("mousemove", x), document.addEventListener("mouseup", I);
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function O(V) {
|
|
1317
1317
|
V instanceof MouseEvent && V.button === 2 || g.value && (document.body.click(), V.stopPropagation(), V.preventDefault(), o.value = re.fromEvent(V), h.value = V.target, k(V), R());
|
|
1318
1318
|
}
|
|
1319
1319
|
function F(V) {
|
|
1320
1320
|
return n.value = V, m.value && v(ot, null, [v("div", {
|
|
1321
1321
|
class: "fv-resizable-handle fv-resizable-n",
|
|
1322
1322
|
type: "n",
|
|
1323
|
-
onMousedown: (j) =>
|
|
1323
|
+
onMousedown: (j) => O(j)
|
|
1324
1324
|
}, null), v("div", {
|
|
1325
1325
|
class: "fv-resizable-handle fv-resizable-e",
|
|
1326
1326
|
type: "e",
|
|
1327
|
-
onMousedown: (j) =>
|
|
1327
|
+
onMousedown: (j) => O(j)
|
|
1328
1328
|
}, null), v("div", {
|
|
1329
1329
|
class: "fv-resizable-handle fv-resizable-s",
|
|
1330
1330
|
type: "s",
|
|
1331
|
-
onMousedown: (j) =>
|
|
1331
|
+
onMousedown: (j) => O(j)
|
|
1332
1332
|
}, null), v("div", {
|
|
1333
1333
|
class: "fv-resizable-handle fv-resizable-w",
|
|
1334
1334
|
type: "w",
|
|
1335
|
-
onMousedown: (j) =>
|
|
1335
|
+
onMousedown: (j) => O(j)
|
|
1336
1336
|
}, null), v("div", {
|
|
1337
1337
|
class: "fv-resizable-handle fv-resizable-ne",
|
|
1338
1338
|
type: "ne",
|
|
1339
|
-
onMousedown: (j) =>
|
|
1339
|
+
onMousedown: (j) => O(j)
|
|
1340
1340
|
}, null), v("div", {
|
|
1341
1341
|
class: "fv-resizable-handle fv-resizable-se fv-resizable-diagonal",
|
|
1342
1342
|
type: "se",
|
|
1343
|
-
onMousedown: (j) =>
|
|
1343
|
+
onMousedown: (j) => O(j)
|
|
1344
1344
|
}, null), v("div", {
|
|
1345
1345
|
class: "fv-resizable-handle fv-resizable-sw",
|
|
1346
1346
|
type: "sw",
|
|
1347
|
-
onMousedown: (j) =>
|
|
1347
|
+
onMousedown: (j) => O(j)
|
|
1348
1348
|
}, null), v("div", {
|
|
1349
1349
|
class: "fv-resizable-handle fv-resizable-nw",
|
|
1350
1350
|
type: "nw",
|
|
1351
|
-
onMousedown: (j) =>
|
|
1351
|
+
onMousedown: (j) => O(j)
|
|
1352
1352
|
}, null)]);
|
|
1353
1353
|
}
|
|
1354
1354
|
function S(V = !0) {
|
|
1355
1355
|
document.body.click();
|
|
1356
1356
|
const j = a.value || document.body, G = nt.getCurrent(j), W = n.value;
|
|
1357
|
-
V && W && (d.value =
|
|
1357
|
+
V && W && (d.value = E(), d.value.transform = W.style.transform), G && W && (u.value = G, u.value.height -= 14, u.value.width -= 14, W.style.height = u.value.height + "px", W.style.width = u.value.width + "px", W.style.left = "7px", W.style.top = "7px", W.style.transform = "", r.value = {
|
|
1358
1358
|
size: u.value,
|
|
1359
1359
|
position: {
|
|
1360
1360
|
x: 0,
|
|
@@ -1418,33 +1418,33 @@ function Vl(e, t, n) {
|
|
|
1418
1418
|
Z(() => n.value, (x) => {
|
|
1419
1419
|
i.value.style.cursor = x ? "move" : "default";
|
|
1420
1420
|
});
|
|
1421
|
-
function m(x,
|
|
1422
|
-
if (
|
|
1421
|
+
function m(x, E) {
|
|
1422
|
+
if (E.tagName === "BUTTON")
|
|
1423
1423
|
return !1;
|
|
1424
|
-
if (
|
|
1424
|
+
if (E === x)
|
|
1425
1425
|
return !0;
|
|
1426
|
-
for (const I in
|
|
1427
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1426
|
+
for (const I in E.children)
|
|
1427
|
+
if (Object.prototype.hasOwnProperty.call(E.children, I) && m(x, E.children[I]))
|
|
1428
1428
|
return !0;
|
|
1429
1429
|
return !1;
|
|
1430
1430
|
}
|
|
1431
1431
|
function d() {
|
|
1432
|
-
var R,
|
|
1433
|
-
let x = f.value.x + h.value.x,
|
|
1434
|
-
l.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (
|
|
1435
|
-
const I = `translate3d(${Math.round(x)}px, ${Math.round(
|
|
1436
|
-
a.value && (a.value.style.transform = I), r.value.x = x, r.value.y =
|
|
1432
|
+
var R, O;
|
|
1433
|
+
let x = f.value.x + h.value.x, E = f.value.y + h.value.y;
|
|
1434
|
+
l.value === "x" ? (x = ((R = c.value) == null ? void 0 : R.x) || 0, f.value.x = 0) : l.value === "y" && (E = ((O = c.value) == null ? void 0 : O.y) || 0, f.value.y = 0);
|
|
1435
|
+
const I = `translate3d(${Math.round(x)}px, ${Math.round(E)}px, 0px)`;
|
|
1436
|
+
a.value && (a.value.style.transform = I), r.value.x = x, r.value.y = E;
|
|
1437
1437
|
}
|
|
1438
1438
|
function g() {
|
|
1439
1439
|
if (!u.value || !a.value)
|
|
1440
1440
|
return null;
|
|
1441
|
-
const x = u.value.getBoundingClientRect(),
|
|
1442
|
-
top: x.top <
|
|
1443
|
-
right: x.right >
|
|
1444
|
-
bottom: x.bottom >
|
|
1445
|
-
left: x.left <
|
|
1441
|
+
const x = u.value.getBoundingClientRect(), E = a.value.getBoundingClientRect(), I = {
|
|
1442
|
+
top: x.top < E.top,
|
|
1443
|
+
right: x.right > E.right,
|
|
1444
|
+
bottom: x.bottom > E.bottom,
|
|
1445
|
+
left: x.left < E.left
|
|
1446
1446
|
};
|
|
1447
|
-
return I.top || (f.value.y -=
|
|
1447
|
+
return I.top || (f.value.y -= E.top - x.top), I.bottom || (f.value.y -= E.bottom - x.bottom), I.right || (f.value.x -= E.right - x.right), I.left || (f.value.x -= E.left - x.left), d(), I;
|
|
1448
1448
|
}
|
|
1449
1449
|
function p(x) {
|
|
1450
1450
|
x && (c.value && x.subtract(c.value), f.value.set(x), d(), g());
|
|
@@ -1459,7 +1459,7 @@ function Vl(e, t, n) {
|
|
|
1459
1459
|
function B() {
|
|
1460
1460
|
!s.value && i.value && (s.value = !0, i.value.classList.add("ng-dragging"), document.addEventListener("mousemove", w), document.addEventListener("mouseup", k));
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function M() {
|
|
1463
1463
|
if (a.value) {
|
|
1464
1464
|
const x = re.getTransformInfo(a.value);
|
|
1465
1465
|
h.value.set(x);
|
|
@@ -1470,27 +1470,27 @@ function Vl(e, t, n) {
|
|
|
1470
1470
|
function b(x) {
|
|
1471
1471
|
if (!n.value || x instanceof MouseEvent && x.button === 2)
|
|
1472
1472
|
return;
|
|
1473
|
-
const
|
|
1474
|
-
i.value !== void 0 &&
|
|
1473
|
+
const E = x.target || x.srcElement;
|
|
1474
|
+
i.value !== void 0 && E && !m(E, i.value) || o.value !== !1 && (document.body.click(), x.stopPropagation(), x.preventDefault(), c.value = re.fromEvent(x, a.value), M(), B());
|
|
1475
1475
|
}
|
|
1476
|
-
function y(x,
|
|
1477
|
-
if (o.value &&
|
|
1476
|
+
function y(x, E, I) {
|
|
1477
|
+
if (o.value && E) {
|
|
1478
1478
|
if (x)
|
|
1479
1479
|
i.value = x;
|
|
1480
1480
|
else if (e.dragHandle) {
|
|
1481
1481
|
if (e.dragHandle instanceof HTMLElement)
|
|
1482
1482
|
i.value = e.dragHandle;
|
|
1483
1483
|
else if (typeof e.dragHandle == "string") {
|
|
1484
|
-
const R =
|
|
1484
|
+
const R = E.querySelector(e.dragHandle);
|
|
1485
1485
|
R && (i.value = R);
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
|
-
a.value =
|
|
1488
|
+
a.value = E, u.value = I, i.value ? (i.value.classList.add("ng-draggable"), i.value.addEventListener("mousedown", b)) : o.value = !1;
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
return {
|
|
1492
1492
|
registerDraggle: y,
|
|
1493
|
-
resetTranslate:
|
|
1493
|
+
resetTranslate: M
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
1496
1496
|
function Xn(e, t) {
|
|
@@ -1527,9 +1527,9 @@ const at = /* @__PURE__ */ ae({
|
|
|
1527
1527
|
emits: ["update:modelValue", "accept", "cancel", "closed", "resize", "esc", "enter", "stopMove"],
|
|
1528
1528
|
setup(e, t) {
|
|
1529
1529
|
const n = C(e.width || 300), a = C(e.height || 200), o = C(e.modelValue), l = C(""), i = C(e.class), u = C(e.fitContent), s = C(e.showHeader), c = C(""), h = C(e.showCloseButton), f = C(e.showMaxButton), r = C(!1), m = C(e.dialogType), d = C(e.src), g = C(""), p = C(e.showButtons), w = C(e.title), k = C(e.containment || null), B = C(), {
|
|
1530
|
-
t:
|
|
1530
|
+
t: M
|
|
1531
1531
|
} = St();
|
|
1532
|
-
w.value === "错误提示" && (w.value =
|
|
1532
|
+
w.value === "错误提示" && (w.value = M("messageBox.errorTitle"));
|
|
1533
1533
|
const b = C(!1);
|
|
1534
1534
|
function y($, Q) {
|
|
1535
1535
|
const ue = Q ? "accept" : "cancel";
|
|
@@ -1544,19 +1544,19 @@ const at = /* @__PURE__ */ ae({
|
|
|
1544
1544
|
}
|
|
1545
1545
|
const x = [{
|
|
1546
1546
|
name: "cancel",
|
|
1547
|
-
text:
|
|
1547
|
+
text: M("messageBox.cancel") || "取消",
|
|
1548
1548
|
class: "btn btn-secondary",
|
|
1549
1549
|
handle: ($) => {
|
|
1550
1550
|
y($, !1);
|
|
1551
1551
|
}
|
|
1552
1552
|
}, {
|
|
1553
1553
|
name: "accept",
|
|
1554
|
-
text:
|
|
1554
|
+
text: M("messageBox.ok") || "确定",
|
|
1555
1555
|
class: "btn btn-primary",
|
|
1556
1556
|
handle: ($) => {
|
|
1557
1557
|
y($, !0);
|
|
1558
1558
|
}
|
|
1559
|
-
}],
|
|
1559
|
+
}], E = C(e.buttons && e.buttons.length ? e.buttons : x), I = N(() => !!c.value), R = N(() => !!p.value && !!E.value), O = C(), F = C(), S = C(!1), {
|
|
1560
1560
|
renderResizeBar: T,
|
|
1561
1561
|
maximize: P,
|
|
1562
1562
|
restore: L,
|
|
@@ -1579,7 +1579,7 @@ const at = /* @__PURE__ */ ae({
|
|
|
1579
1579
|
$ !== Q && (w.value = $);
|
|
1580
1580
|
}), Z(() => e.modelValue, ($, Q) => {
|
|
1581
1581
|
$ !== Q && (o.value = $, o.value && e.draggable && Ue(() => {
|
|
1582
|
-
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(
|
|
1582
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(O.value, F.value, _.value), W());
|
|
1583
1583
|
}), $ || (k.value && (k.value = null), ve())), o.value ? b.value = ce() : (S.value = !1, j.value = e.draggable);
|
|
1584
1584
|
}), Z(() => e.showHeader, ($, Q) => {
|
|
1585
1585
|
$ !== Q && (s.value = $);
|
|
@@ -1663,13 +1663,13 @@ const at = /* @__PURE__ */ ae({
|
|
|
1663
1663
|
$.handle && await $.handle(Q, $) && t.emit("closed", Q);
|
|
1664
1664
|
}
|
|
1665
1665
|
function Ae($) {
|
|
1666
|
-
$.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (
|
|
1666
|
+
$.width && (n.value = $.width), $.height && (a.value = $.height), $.buttons && (E.value = $.buttons), $.title && (w.value = $.title);
|
|
1667
1667
|
}
|
|
1668
1668
|
let ze = null, Oe = null;
|
|
1669
1669
|
Pa(() => {
|
|
1670
1670
|
b.value = ce();
|
|
1671
1671
|
}), be(() => {
|
|
1672
|
-
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(
|
|
1672
|
+
F.value && !k.value && (k.value = F.value.parentElement, _.value = k.value, ee(O.value, F.value, _.value)), X.value && document.body.classList.add("modal-open"), ze = Ll(e, t), Oe = $l(e, t);
|
|
1673
1673
|
}), kt(() => {
|
|
1674
1674
|
G && G(), ze && ze.remove(), Oe && Oe.remove();
|
|
1675
1675
|
}), t.expose({
|
|
@@ -1702,7 +1702,7 @@ const at = /* @__PURE__ */ ae({
|
|
|
1702
1702
|
return v("div", {
|
|
1703
1703
|
class: "modal-footer",
|
|
1704
1704
|
style: rt.value
|
|
1705
|
-
}, [
|
|
1705
|
+
}, [E.value && E.value.map(($) => {
|
|
1706
1706
|
const Q = C($.disabled);
|
|
1707
1707
|
return v("button", {
|
|
1708
1708
|
name: $.name,
|
|
@@ -1719,7 +1719,7 @@ const at = /* @__PURE__ */ ae({
|
|
|
1719
1719
|
}
|
|
1720
1720
|
function Qe() {
|
|
1721
1721
|
return v("div", {
|
|
1722
|
-
ref:
|
|
1722
|
+
ref: O,
|
|
1723
1723
|
class: "modal-header",
|
|
1724
1724
|
style: $e.value
|
|
1725
1725
|
}, [t.slots.headerTemplate ? t.slots.headerTemplate() : v("div", {
|
|
@@ -2200,11 +2200,11 @@ var Jl = { exports: {} };
|
|
|
2200
2200
|
2: [function(n, a, o) {
|
|
2201
2201
|
(function(l) {
|
|
2202
2202
|
var i = n("contra/emitter"), u = n("crossvent"), s = n("./classes"), c = document, h = c.documentElement;
|
|
2203
|
-
function f(
|
|
2203
|
+
function f(O, F) {
|
|
2204
2204
|
var S = arguments.length;
|
|
2205
|
-
S === 1 && Array.isArray(
|
|
2205
|
+
S === 1 && Array.isArray(O) === !1 && (F = O, O = []);
|
|
2206
2206
|
var T, P, L, _, V, j, G, W, ee, ce = null, ve, X, le = !1, de = 0, ne, U = F || {};
|
|
2207
|
-
U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = yt), U.containers === void 0 && (U.containers =
|
|
2207
|
+
U.moves === void 0 && (U.moves = k), U.accepts === void 0 && (U.accepts = k), U.invalid === void 0 && (U.invalid = yt), U.containers === void 0 && (U.containers = O || []), U.isContainer === void 0 && (U.isContainer = w), U.copy === void 0 && (U.copy = !1), U.copySortSource === void 0 && (U.copySortSource = !1), U.revertOnSpill === void 0 && (U.revertOnSpill = !1), U.removeOnSpill === void 0 && (U.removeOnSpill = !1), U.direction === void 0 && (U.direction = "vertical"), U.ignoreInputTextSelection === void 0 && (U.ignoreInputTextSelection = !0), U.mirrorContainer === void 0 && (U.mirrorContainer = c.body);
|
|
2208
2208
|
var oe = i({
|
|
2209
2209
|
containers: U.containers,
|
|
2210
2210
|
start: Oe,
|
|
@@ -2269,7 +2269,7 @@ var Jl = { exports: {} };
|
|
|
2269
2269
|
return;
|
|
2270
2270
|
var H = b(D);
|
|
2271
2271
|
if (H && !U.invalid(D, z)) {
|
|
2272
|
-
var Y = U.moves(D, H, z,
|
|
2272
|
+
var Y = U.moves(D, H, z, E(D));
|
|
2273
2273
|
if (Y)
|
|
2274
2274
|
return {
|
|
2275
2275
|
item: D,
|
|
@@ -2286,7 +2286,7 @@ var Jl = { exports: {} };
|
|
|
2286
2286
|
z && He(z);
|
|
2287
2287
|
}
|
|
2288
2288
|
function He(D) {
|
|
2289
|
-
Xt(D.item, D.source) && (W = D.item.cloneNode(!0), oe.emit("cloned", W, D.item, "copy")), P = D.source, L = D.item, j = G =
|
|
2289
|
+
Xt(D.item, D.source) && (W = D.item.cloneNode(!0), oe.emit("cloned", W, D.item, "copy")), P = D.source, L = D.item, j = G = E(D.item), oe.dragging = !0, oe.emit("drag", L, P);
|
|
2290
2290
|
}
|
|
2291
2291
|
function yt() {
|
|
2292
2292
|
return !1;
|
|
@@ -2328,7 +2328,7 @@ var Jl = { exports: {} };
|
|
|
2328
2328
|
}
|
|
2329
2329
|
function ue(D, z) {
|
|
2330
2330
|
var H;
|
|
2331
|
-
return z !== void 0 ? H = z : T ? H = G : H =
|
|
2331
|
+
return z !== void 0 ? H = z : T ? H = G : H = E(W || L), D === P && H === j;
|
|
2332
2332
|
}
|
|
2333
2333
|
function fe(D, z, H) {
|
|
2334
2334
|
for (var Y = D; Y && !K(); )
|
|
@@ -2376,7 +2376,7 @@ var Jl = { exports: {} };
|
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
2378
|
function Lt(D, z, H) {
|
|
2379
|
-
(D === z || D ===
|
|
2379
|
+
(D === z || D === E(z)) && (G = E(z)), (D === null && H || D !== z && D !== E(z)) && (G = D);
|
|
2380
2380
|
}
|
|
2381
2381
|
function $t(D) {
|
|
2382
2382
|
s.rm(D, "gu-hide");
|
|
@@ -2492,17 +2492,17 @@ var Jl = { exports: {} };
|
|
|
2492
2492
|
var Ee = Y - pe.top, xe = H - pe.left, he = pe.bottom - Y, ht = pe.right - H, gt = Math.min(xe, ht, Ee, he), bt;
|
|
2493
2493
|
return le ? bt = ht < xe : bt = he === gt || ht === gt || xe === gt, Me(bt);
|
|
2494
2494
|
}
|
|
2495
|
-
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top +
|
|
2495
|
+
return Me(K ? H > pe.left + B(pe) / 2 : Y > pe.top + M(pe) / 2);
|
|
2496
2496
|
}
|
|
2497
2497
|
function Me(pe) {
|
|
2498
|
-
return pe ?
|
|
2498
|
+
return pe ? E(z) : z;
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
2501
|
function Xt(D, z) {
|
|
2502
2502
|
return typeof U.copy == "boolean" ? U.copy : U.copy(D, z);
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
|
-
function r(
|
|
2505
|
+
function r(O) {
|
|
2506
2506
|
const F = Array.from(window.scrollContainerList);
|
|
2507
2507
|
if (F.length === 1) {
|
|
2508
2508
|
const T = Array.from(window.scrollContainerList)[0];
|
|
@@ -2510,18 +2510,18 @@ var Jl = { exports: {} };
|
|
|
2510
2510
|
}
|
|
2511
2511
|
const S = m(F);
|
|
2512
2512
|
for (const T of S)
|
|
2513
|
-
if (T.contains(
|
|
2513
|
+
if (T.contains(O))
|
|
2514
2514
|
return T;
|
|
2515
2515
|
return null;
|
|
2516
2516
|
}
|
|
2517
|
-
function m(
|
|
2517
|
+
function m(O) {
|
|
2518
2518
|
const F = [];
|
|
2519
|
-
return
|
|
2519
|
+
return O.forEach((S) => {
|
|
2520
2520
|
const T = document.getElementById(S);
|
|
2521
2521
|
T && F.push(T);
|
|
2522
2522
|
}), F.sort((S, T) => S.contains(T) ? 1 : T.contains(S) ? -1 : 0), F;
|
|
2523
2523
|
}
|
|
2524
|
-
function d(
|
|
2524
|
+
function d(O, F, S, T) {
|
|
2525
2525
|
var P = {
|
|
2526
2526
|
mouseup: "touchend",
|
|
2527
2527
|
mousedown: "touchstart",
|
|
@@ -2535,23 +2535,23 @@ var Jl = { exports: {} };
|
|
|
2535
2535
|
mousedown: "MSPointerDown",
|
|
2536
2536
|
mousemove: "MSPointerMove"
|
|
2537
2537
|
};
|
|
2538
|
-
l.navigator.pointerEnabled ? u[F](
|
|
2538
|
+
l.navigator.pointerEnabled ? u[F](O, L[S], T) : l.navigator.msPointerEnabled ? u[F](O, _[S], T) : (u[F](O, P[S], T), u[F](O, S, T));
|
|
2539
2539
|
}
|
|
2540
|
-
function g(
|
|
2541
|
-
if (
|
|
2542
|
-
return
|
|
2543
|
-
if (
|
|
2544
|
-
return
|
|
2545
|
-
if (
|
|
2546
|
-
return
|
|
2547
|
-
var F =
|
|
2540
|
+
function g(O) {
|
|
2541
|
+
if (O.touches !== void 0)
|
|
2542
|
+
return O.touches.length;
|
|
2543
|
+
if (O.which !== void 0 && O.which !== 0)
|
|
2544
|
+
return O.which;
|
|
2545
|
+
if (O.buttons !== void 0)
|
|
2546
|
+
return O.buttons;
|
|
2547
|
+
var F = O.button;
|
|
2548
2548
|
if (F !== void 0)
|
|
2549
2549
|
return F & 1 ? 1 : F & 2 ? 3 : F & 4 ? 2 : 0;
|
|
2550
2550
|
}
|
|
2551
|
-
function p(
|
|
2552
|
-
|
|
2553
|
-
var T =
|
|
2554
|
-
return
|
|
2551
|
+
function p(O, F, S) {
|
|
2552
|
+
O = O || {};
|
|
2553
|
+
var T = O.className || "", P;
|
|
2554
|
+
return O.className += " gu-hide", P = c.elementFromPoint(F, S), O.className = T, P;
|
|
2555
2555
|
}
|
|
2556
2556
|
function w() {
|
|
2557
2557
|
return !1;
|
|
@@ -2559,42 +2559,42 @@ var Jl = { exports: {} };
|
|
|
2559
2559
|
function k() {
|
|
2560
2560
|
return !0;
|
|
2561
2561
|
}
|
|
2562
|
-
function B(
|
|
2563
|
-
return
|
|
2562
|
+
function B(O) {
|
|
2563
|
+
return O.width || O.right - O.left;
|
|
2564
2564
|
}
|
|
2565
|
-
function O
|
|
2566
|
-
return
|
|
2565
|
+
function M(O) {
|
|
2566
|
+
return O.height || O.bottom - O.top;
|
|
2567
2567
|
}
|
|
2568
|
-
function b(
|
|
2569
|
-
return
|
|
2568
|
+
function b(O) {
|
|
2569
|
+
return O.parentNode === c ? null : O.parentNode;
|
|
2570
2570
|
}
|
|
2571
|
-
function y(
|
|
2572
|
-
return
|
|
2571
|
+
function y(O) {
|
|
2572
|
+
return O.tagName === "INPUT" || O.tagName === "TEXTAREA" || O.tagName === "SELECT" || x(O);
|
|
2573
2573
|
}
|
|
2574
|
-
function x(
|
|
2575
|
-
return !
|
|
2574
|
+
function x(O) {
|
|
2575
|
+
return !O || O.contentEditable === "false" ? !1 : O.contentEditable === "true" ? !0 : x(b(O));
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2578
|
-
return
|
|
2577
|
+
function E(O) {
|
|
2578
|
+
return O.nextElementSibling || F();
|
|
2579
2579
|
function F() {
|
|
2580
|
-
var S =
|
|
2580
|
+
var S = O;
|
|
2581
2581
|
do
|
|
2582
2582
|
S = S.nextSibling;
|
|
2583
2583
|
while (S && S.nodeType !== 1);
|
|
2584
2584
|
return S;
|
|
2585
2585
|
}
|
|
2586
2586
|
}
|
|
2587
|
-
function I(
|
|
2588
|
-
return
|
|
2587
|
+
function I(O) {
|
|
2588
|
+
return O.targetTouches && O.targetTouches.length ? O.targetTouches[0] : O.changedTouches && O.changedTouches.length ? O.changedTouches[0] : O;
|
|
2589
2589
|
}
|
|
2590
|
-
function R(
|
|
2590
|
+
function R(O, F) {
|
|
2591
2591
|
var S = I(F), T = {
|
|
2592
2592
|
pageX: "clientX",
|
|
2593
2593
|
// IE8
|
|
2594
2594
|
pageY: "clientY"
|
|
2595
2595
|
// IE8
|
|
2596
2596
|
};
|
|
2597
|
-
return
|
|
2597
|
+
return O in T && !(O in S) && T[O] in S && (O = T[O]), S[O];
|
|
2598
2598
|
}
|
|
2599
2599
|
a.exports = f;
|
|
2600
2600
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -2657,26 +2657,26 @@ var Jl = { exports: {} };
|
|
|
2657
2657
|
remove: h,
|
|
2658
2658
|
fabricate: p
|
|
2659
2659
|
};
|
|
2660
|
-
function r(b, y, x,
|
|
2661
|
-
return b.addEventListener(y, x,
|
|
2660
|
+
function r(b, y, x, E) {
|
|
2661
|
+
return b.addEventListener(y, x, E);
|
|
2662
2662
|
}
|
|
2663
2663
|
function m(b, y, x) {
|
|
2664
2664
|
return b.attachEvent("on" + y, k(b, y, x));
|
|
2665
2665
|
}
|
|
2666
|
-
function d(b, y, x,
|
|
2667
|
-
return b.removeEventListener(y, x,
|
|
2666
|
+
function d(b, y, x, E) {
|
|
2667
|
+
return b.removeEventListener(y, x, E);
|
|
2668
2668
|
}
|
|
2669
2669
|
function g(b, y, x) {
|
|
2670
|
-
var
|
|
2671
|
-
if (
|
|
2672
|
-
return b.detachEvent("on" + y,
|
|
2670
|
+
var E = B(b, y, x);
|
|
2671
|
+
if (E)
|
|
2672
|
+
return b.detachEvent("on" + y, E);
|
|
2673
2673
|
}
|
|
2674
2674
|
function p(b, y, x) {
|
|
2675
|
-
var
|
|
2676
|
-
b.dispatchEvent ? b.dispatchEvent(
|
|
2675
|
+
var E = u.indexOf(y) === -1 ? R() : I();
|
|
2676
|
+
b.dispatchEvent ? b.dispatchEvent(E) : b.fireEvent("on" + y, E);
|
|
2677
2677
|
function I() {
|
|
2678
|
-
var
|
|
2679
|
-
return s.createEvent ? (
|
|
2678
|
+
var O;
|
|
2679
|
+
return s.createEvent ? (O = s.createEvent("Event"), O.initEvent(y, !0, !0)) : s.createEventObject && (O = s.createEventObject()), O;
|
|
2680
2680
|
}
|
|
2681
2681
|
function R() {
|
|
2682
2682
|
return new i(y, { detail: x });
|
|
@@ -2693,26 +2693,26 @@ var Jl = { exports: {} };
|
|
|
2693
2693
|
};
|
|
2694
2694
|
}
|
|
2695
2695
|
function k(b, y, x) {
|
|
2696
|
-
var
|
|
2696
|
+
var E = B(b, y, x) || w(b, y, x);
|
|
2697
2697
|
return f.push({
|
|
2698
|
-
wrapper:
|
|
2698
|
+
wrapper: E,
|
|
2699
2699
|
element: b,
|
|
2700
2700
|
type: y,
|
|
2701
2701
|
fn: x
|
|
2702
|
-
}),
|
|
2702
|
+
}), E;
|
|
2703
2703
|
}
|
|
2704
2704
|
function B(b, y, x) {
|
|
2705
|
-
var
|
|
2706
|
-
if (
|
|
2707
|
-
var I = f[
|
|
2708
|
-
return f.splice(
|
|
2705
|
+
var E = M(b, y, x);
|
|
2706
|
+
if (E) {
|
|
2707
|
+
var I = f[E].wrapper;
|
|
2708
|
+
return f.splice(E, 1), I;
|
|
2709
2709
|
}
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2712
|
-
var
|
|
2713
|
-
for (
|
|
2714
|
-
if (I = f[
|
|
2715
|
-
return
|
|
2711
|
+
function M(b, y, x) {
|
|
2712
|
+
var E, I;
|
|
2713
|
+
for (E = 0; E < f.length; E++)
|
|
2714
|
+
if (I = f[E], I.element === b && I.type === y && I.fn === x)
|
|
2715
|
+
return E;
|
|
2716
2716
|
}
|
|
2717
2717
|
}).call(this, typeof qe < "u" ? qe : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2718
2718
|
}, { "./eventmap": 7, "custom-event": 8 }],
|
|
@@ -2770,33 +2770,33 @@ var Jl = { exports: {} };
|
|
|
2770
2770
|
u = c;
|
|
2771
2771
|
}
|
|
2772
2772
|
})();
|
|
2773
|
-
function h(
|
|
2773
|
+
function h(M) {
|
|
2774
2774
|
if (i === setTimeout)
|
|
2775
|
-
return setTimeout(
|
|
2775
|
+
return setTimeout(M, 0);
|
|
2776
2776
|
if ((i === s || !i) && setTimeout)
|
|
2777
|
-
return i = setTimeout, setTimeout(
|
|
2777
|
+
return i = setTimeout, setTimeout(M, 0);
|
|
2778
2778
|
try {
|
|
2779
|
-
return i(
|
|
2779
|
+
return i(M, 0);
|
|
2780
2780
|
} catch {
|
|
2781
2781
|
try {
|
|
2782
|
-
return i.call(null,
|
|
2782
|
+
return i.call(null, M, 0);
|
|
2783
2783
|
} catch {
|
|
2784
|
-
return i.call(this,
|
|
2784
|
+
return i.call(this, M, 0);
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
|
-
function f(
|
|
2788
|
+
function f(M) {
|
|
2789
2789
|
if (u === clearTimeout)
|
|
2790
|
-
return clearTimeout(
|
|
2790
|
+
return clearTimeout(M);
|
|
2791
2791
|
if ((u === c || !u) && clearTimeout)
|
|
2792
|
-
return u = clearTimeout, clearTimeout(
|
|
2792
|
+
return u = clearTimeout, clearTimeout(M);
|
|
2793
2793
|
try {
|
|
2794
|
-
return u(
|
|
2794
|
+
return u(M);
|
|
2795
2795
|
} catch {
|
|
2796
2796
|
try {
|
|
2797
|
-
return u.call(null,
|
|
2797
|
+
return u.call(null, M);
|
|
2798
2798
|
} catch {
|
|
2799
|
-
return u.call(this,
|
|
2799
|
+
return u.call(this, M);
|
|
2800
2800
|
}
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
@@ -2806,38 +2806,38 @@ var Jl = { exports: {} };
|
|
|
2806
2806
|
}
|
|
2807
2807
|
function w() {
|
|
2808
2808
|
if (!m) {
|
|
2809
|
-
var
|
|
2809
|
+
var M = h(p);
|
|
2810
2810
|
m = !0;
|
|
2811
2811
|
for (var b = r.length; b; ) {
|
|
2812
2812
|
for (d = r, r = []; ++g < b; )
|
|
2813
2813
|
d && d[g].run();
|
|
2814
2814
|
g = -1, b = r.length;
|
|
2815
2815
|
}
|
|
2816
|
-
d = null, m = !1, f(
|
|
2816
|
+
d = null, m = !1, f(M);
|
|
2817
2817
|
}
|
|
2818
2818
|
}
|
|
2819
|
-
l.nextTick = function(
|
|
2819
|
+
l.nextTick = function(M) {
|
|
2820
2820
|
var b = new Array(arguments.length - 1);
|
|
2821
2821
|
if (arguments.length > 1)
|
|
2822
2822
|
for (var y = 1; y < arguments.length; y++)
|
|
2823
2823
|
b[y - 1] = arguments[y];
|
|
2824
|
-
r.push(new k(
|
|
2824
|
+
r.push(new k(M, b)), r.length === 1 && !m && h(w);
|
|
2825
2825
|
};
|
|
2826
|
-
function k(
|
|
2827
|
-
this.fun =
|
|
2826
|
+
function k(M, b) {
|
|
2827
|
+
this.fun = M, this.array = b;
|
|
2828
2828
|
}
|
|
2829
2829
|
k.prototype.run = function() {
|
|
2830
2830
|
this.fun.apply(null, this.array);
|
|
2831
2831
|
}, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {};
|
|
2832
2832
|
function B() {
|
|
2833
2833
|
}
|
|
2834
|
-
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(
|
|
2834
|
+
l.on = B, l.addListener = B, l.once = B, l.off = B, l.removeListener = B, l.removeAllListeners = B, l.emit = B, l.prependListener = B, l.prependOnceListener = B, l.listeners = function(M) {
|
|
2835
2835
|
return [];
|
|
2836
|
-
}, l.binding = function(
|
|
2836
|
+
}, l.binding = function(M) {
|
|
2837
2837
|
throw new Error("process.binding is not supported");
|
|
2838
2838
|
}, l.cwd = function() {
|
|
2839
2839
|
return "/";
|
|
2840
|
-
}, l.chdir = function(
|
|
2840
|
+
}, l.chdir = function(M) {
|
|
2841
2841
|
throw new Error("process.chdir is not supported");
|
|
2842
2842
|
}, l.umask = function() {
|
|
2843
2843
|
return 0;
|
|
@@ -2918,12 +2918,12 @@ const Ql = {
|
|
|
2918
2918
|
locale: n,
|
|
2919
2919
|
t: a
|
|
2920
2920
|
} = St(), o = C(e.animate), l = "fadeOut", i = N(() => e.options), u = C(!1), s = N(() => i.value.title && i.value.message), c = N(() => !i.value.title && i.value.message), h = N(() => {
|
|
2921
|
-
const
|
|
2921
|
+
const M = {
|
|
2922
2922
|
animated: u.value,
|
|
2923
2923
|
toast: !0,
|
|
2924
2924
|
"toast--only-content": !s.value
|
|
2925
2925
|
};
|
|
2926
|
-
return
|
|
2926
|
+
return M[e.animate] = !1, M[l] = u.value, M["toasty-type-" + i.value.type] = !0, i.value.theme && (M[i.value.theme] = !0), M;
|
|
2927
2927
|
}), f = N(() => {
|
|
2928
2928
|
const y = `f-icon-${i.value && i.value.type ? i.value.type.replace("toasty-type-", "") : "default"}`, x = {
|
|
2929
2929
|
"f-icon": !0
|
|
@@ -2933,24 +2933,24 @@ const Ql = {
|
|
|
2933
2933
|
wordBreak: "keep-all",
|
|
2934
2934
|
overflowWrap: "break-word"
|
|
2935
2935
|
} : {});
|
|
2936
|
-
function p(
|
|
2937
|
-
|
|
2936
|
+
function p(M) {
|
|
2937
|
+
M.stopPropagation(), M.preventDefault(), u.value = !1, setTimeout(() => {
|
|
2938
2938
|
t.emit("close", i.value);
|
|
2939
2939
|
}, 200);
|
|
2940
2940
|
}
|
|
2941
|
-
function w(
|
|
2941
|
+
function w(M, b) {
|
|
2942
2942
|
}
|
|
2943
|
-
function k(
|
|
2944
|
-
return `f-preten-link ${
|
|
2943
|
+
function k(M) {
|
|
2944
|
+
return `f-preten-link ${M.customClass ? M.customClass : ""}`;
|
|
2945
2945
|
}
|
|
2946
2946
|
Z(o, () => {
|
|
2947
2947
|
o.value;
|
|
2948
2948
|
});
|
|
2949
2949
|
const B = () => {
|
|
2950
|
-
var
|
|
2950
|
+
var M;
|
|
2951
2951
|
return v(ot, null, [v("div", {
|
|
2952
2952
|
class: "after-toast-msg text-right"
|
|
2953
|
-
}, [!t.slots.default && ((
|
|
2953
|
+
}, [!t.slots.default && ((M = i.value.buttons) == null ? void 0 : M.map((b) => v("span", {
|
|
2954
2954
|
class: k(b),
|
|
2955
2955
|
onClick: (y) => void 0
|
|
2956
2956
|
}, [b.text]))), t.slots.default && t.slots.default()])]);
|
|
@@ -3321,19 +3321,19 @@ function ti(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3321
3321
|
} = l, {
|
|
3322
3322
|
columnContext: k,
|
|
3323
3323
|
hasLeftFixedColumn: B,
|
|
3324
|
-
hasRightFixedColumn:
|
|
3324
|
+
hasRightFixedColumn: M
|
|
3325
3325
|
} = i, {
|
|
3326
3326
|
gridDataStyle: b,
|
|
3327
3327
|
leftFixedGridDataStyle: y,
|
|
3328
3328
|
rightFixedGridDataStyle: x
|
|
3329
3329
|
} = m, {
|
|
3330
|
-
renderDataRow:
|
|
3331
|
-
} = Ya(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [
|
|
3330
|
+
renderDataRow: E
|
|
3331
|
+
} = Ya(e, t, k, p, u, s, c, h, f, r, m, d, g), I = [E];
|
|
3332
3332
|
function R(P, L) {
|
|
3333
3333
|
const _ = w(P);
|
|
3334
3334
|
return p.value.filter((V) => V.visible !== !1).map((V, j) => I[V.type](V, _, L, j));
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function O() {
|
|
3337
3337
|
return v("div", {
|
|
3338
3338
|
ref: a,
|
|
3339
3339
|
class: "fv-grid-content-left-fixed"
|
|
@@ -3362,7 +3362,7 @@ function ti(e, t, n, a, o, l, i, u, s, c, h, f, r, m, d, g, p) {
|
|
|
3362
3362
|
}
|
|
3363
3363
|
function T() {
|
|
3364
3364
|
const P = [];
|
|
3365
|
-
return B.value && P.push(
|
|
3365
|
+
return B.value && P.push(O()), P.push(F()), M.value && P.push(S()), P;
|
|
3366
3366
|
}
|
|
3367
3367
|
return {
|
|
3368
3368
|
renderDataArea: T
|
|
@@ -3379,14 +3379,14 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3379
3379
|
} = i, s = C(), c = C(), h = C(), f = C(), r = C(), m = C([]), d = C(!1), g = C(((pn = e.rowOption) == null ? void 0 : pn.wrapContent) || !1), p = Ja(e, i), w = Qa(e, t), k = Za(e), {
|
|
3380
3380
|
collapseField: B
|
|
3381
3381
|
} = k, {
|
|
3382
|
-
showLoading:
|
|
3382
|
+
showLoading: M,
|
|
3383
3383
|
renderLoading: b
|
|
3384
3384
|
} = Ka(e, s), y = eo(e, /* @__PURE__ */ new Map(), w, k, i), {
|
|
3385
3385
|
dataView: x
|
|
3386
|
-
} = y,
|
|
3386
|
+
} = y, E = to(e, y, i, m, t), {
|
|
3387
3387
|
showSelection: I,
|
|
3388
3388
|
selectedValues: R
|
|
3389
|
-
} =
|
|
3389
|
+
} = E, O = no(e, m, y, i, E, t), F = N(() => e.disabled), S = N(() => e.virtualized ? Math.min(y.dataView.value.length, o.value) : y.dataView.value.length), T = ao(e, y), {
|
|
3390
3390
|
shouldRenderPagination: P
|
|
3391
3391
|
} = T, {
|
|
3392
3392
|
containerStyleObject: L
|
|
@@ -3405,9 +3405,9 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3405
3405
|
updateColumnRenderContext: X
|
|
3406
3406
|
} = W;
|
|
3407
3407
|
ce(y, ee);
|
|
3408
|
-
const le = uo(e, ve), de = co(e, t,
|
|
3408
|
+
const le = uo(e, ve), de = co(e, t, E, i), ne = fo(e, t, i, de, m), U = po(e), oe = mo(e, ne, U), Xe = yo(e, y, ne, k, i, U, oe), $e = vo(e, l, y, S, 0, Xe), {
|
|
3409
3409
|
getVisualData: Be
|
|
3410
|
-
} = $e, it = ho(e, ve), Je = go(e,
|
|
3410
|
+
} = $e, it = ho(e, ve), Je = go(e, E), {
|
|
3411
3411
|
sidebarWidth: rt
|
|
3412
3412
|
} = Je, se = bo(e, y, m, ve, $e, S, 0, rt), {
|
|
3413
3413
|
onWheel: mt,
|
|
@@ -3432,13 +3432,13 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3432
3432
|
"fv-grid-wrap-content": g.value
|
|
3433
3433
|
})), {
|
|
3434
3434
|
renderDataArea: ue
|
|
3435
|
-
} = ti(e, t, h, f, r, it, W, y, ne, k, de,
|
|
3435
|
+
} = ti(e, t, h, f, r, it, W, y, ne, k, de, E, O, se, $e, U, m), {
|
|
3436
3436
|
renderGridHeader: fe,
|
|
3437
3437
|
renderGridColumnResizeOverlay: Ie,
|
|
3438
3438
|
shouldShowHeader: Lt
|
|
3439
|
-
} = xo(e, t, c, f, r, W, y, ut, st, w, We, Qe, le,
|
|
3439
|
+
} = xo(e, t, c, f, r, W, y, ut, st, w, We, Qe, le, E, Je, ee, se, Oe, m), {
|
|
3440
3440
|
renderDataGridSidebar: $t
|
|
3441
|
-
} = Fo(e, de,
|
|
3441
|
+
} = Fo(e, de, E, Je, se), {
|
|
3442
3442
|
renderDisableMask: At
|
|
3443
3443
|
} = To(), {
|
|
3444
3444
|
renderHorizontalScrollbar: zt
|
|
@@ -3455,7 +3455,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3455
3455
|
be(() => {
|
|
3456
3456
|
c.value && (o.value = Math.max(Math.ceil(c.value.clientHeight / a), o.value), m.value = Be(0, S.value + 0 - 1), _a(c.value, Wt), Ne(), Ue(() => {
|
|
3457
3457
|
c.value && (Ae.value = c.value.clientWidth), h.value && (Oe.value = h.value.clientWidth, ze.value = h.value.clientHeight);
|
|
3458
|
-
})),
|
|
3458
|
+
})), M.value && b();
|
|
3459
3459
|
}), kt(() => {
|
|
3460
3460
|
}), Z(Oe, () => {
|
|
3461
3461
|
c.value && Ne();
|
|
@@ -3467,7 +3467,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3467
3467
|
y.expandTo(q), y.reOrderVisibleIndex(), He();
|
|
3468
3468
|
}
|
|
3469
3469
|
function vt() {
|
|
3470
|
-
const q =
|
|
3470
|
+
const q = E.getSelectionRow();
|
|
3471
3471
|
return q ? q.dataIndex - 1 : -1;
|
|
3472
3472
|
}
|
|
3473
3473
|
function Gt() {
|
|
@@ -3483,8 +3483,8 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3483
3483
|
y.insertNewChildDataItems(q, ge);
|
|
3484
3484
|
}
|
|
3485
3485
|
function Yt() {
|
|
3486
|
-
const q = vt(), J =
|
|
3487
|
-
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J &&
|
|
3486
|
+
const q = vt(), J = O.getNextSelectableHierarchyItemId(q);
|
|
3487
|
+
y.removeHierarchyDataItem(q), m.value = Be(0, S.value + 0 - 1), J && O.selectItemById(J);
|
|
3488
3488
|
}
|
|
3489
3489
|
function Tt(q) {
|
|
3490
3490
|
ne.onEditingRow(q);
|
|
@@ -3505,7 +3505,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3505
3505
|
q && (y.load(q), y.reOrderVisibleIndex(), J != null && J.keepScrollPosition ? se.scrollTo(se.offsetY.value) : He());
|
|
3506
3506
|
}
|
|
3507
3507
|
function Y(q) {
|
|
3508
|
-
|
|
3508
|
+
O.selectItemById(q);
|
|
3509
3509
|
}
|
|
3510
3510
|
function K(q) {
|
|
3511
3511
|
const J = m.value.find((me) => me.raw[i.idField.value] === q);
|
|
@@ -3515,25 +3515,25 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3515
3515
|
de.activeRowById(q);
|
|
3516
3516
|
}
|
|
3517
3517
|
function Te(q) {
|
|
3518
|
-
|
|
3518
|
+
O.selectItemByIds(q);
|
|
3519
3519
|
}
|
|
3520
3520
|
function Ce() {
|
|
3521
|
-
return
|
|
3521
|
+
return E.getSelectedItems();
|
|
3522
3522
|
}
|
|
3523
3523
|
function Se() {
|
|
3524
|
-
|
|
3524
|
+
E.clearSelection();
|
|
3525
3525
|
}
|
|
3526
3526
|
const Me = N(() => !m.value || !m.value.length), {
|
|
3527
3527
|
renderEmpty: pe
|
|
3528
3528
|
} = Mo(e, t);
|
|
3529
3529
|
function Ee() {
|
|
3530
|
-
return
|
|
3530
|
+
return E.getSelectionRow();
|
|
3531
3531
|
}
|
|
3532
3532
|
function xe(q) {
|
|
3533
|
-
|
|
3533
|
+
O.unSelectItemByIds(q);
|
|
3534
3534
|
}
|
|
3535
3535
|
function he() {
|
|
3536
|
-
return
|
|
3536
|
+
return E.currentSelectedDataId.value;
|
|
3537
3537
|
}
|
|
3538
3538
|
function ht(q, J, me) {
|
|
3539
3539
|
const ge = x.value.find((Fe) => Fe[u.value] === q);
|
|
@@ -3587,7 +3587,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3587
3587
|
me && de.changeRow(me);
|
|
3588
3588
|
}
|
|
3589
3589
|
function xa() {
|
|
3590
|
-
|
|
3590
|
+
E.keepSelectingOnPaging.value || Se(), y.updateVisibleDataSummary(m.value);
|
|
3591
3591
|
}
|
|
3592
3592
|
t.expose({
|
|
3593
3593
|
activeRowById: te,
|
|
@@ -3625,7 +3625,7 @@ const ni = /* @__PURE__ */ ae({
|
|
|
3625
3625
|
...L.value,
|
|
3626
3626
|
borderRadius: "5px"
|
|
3627
3627
|
}));
|
|
3628
|
-
Eo(e, t, y, se, T,
|
|
3628
|
+
Eo(e, t, y, se, T, E);
|
|
3629
3629
|
const Ba = N(() => ({
|
|
3630
3630
|
"d-flex": !0,
|
|
3631
3631
|
"justify-content-between": P.value && I.value,
|
|
@@ -3795,7 +3795,7 @@ const li = "https://json-schema.org/draft/2020-12/schema", ii = "https://farris-
|
|
|
3795
3795
|
};
|
|
3796
3796
|
Pe(gi, fi, ai, oi, hi);
|
|
3797
3797
|
function Kn(e, t, n) {
|
|
3798
|
-
var
|
|
3798
|
+
var O;
|
|
3799
3799
|
const a = n && n.getStyles && n.getStyles() || "", o = n && n.getDesignerClass && n.getDesignerClass() || "", l = C();
|
|
3800
3800
|
let i;
|
|
3801
3801
|
function u() {
|
|
@@ -3854,7 +3854,7 @@ function Kn(e, t, n) {
|
|
|
3854
3854
|
if (n && n.getPropsConfig)
|
|
3855
3855
|
return n.getPropsConfig(...F);
|
|
3856
3856
|
}
|
|
3857
|
-
function
|
|
3857
|
+
function M(F) {
|
|
3858
3858
|
if (!F)
|
|
3859
3859
|
return;
|
|
3860
3860
|
const S = t == null ? void 0 : t.schema, { formSchemaUtils: T } = F;
|
|
@@ -3870,7 +3870,7 @@ function Kn(e, t, n) {
|
|
|
3870
3870
|
T.removeCommunicationInComponent(S);
|
|
3871
3871
|
}
|
|
3872
3872
|
function y(F) {
|
|
3873
|
-
n && n.onRemoveComponent && n.onRemoveComponent(),
|
|
3873
|
+
n && n.onRemoveComponent && n.onRemoveComponent(), M(F), b(F), t != null && t.schema.contents && t.schema.contents.map((S) => {
|
|
3874
3874
|
let T = S.id;
|
|
3875
3875
|
S.type === "component-ref" && (T = S.component);
|
|
3876
3876
|
const P = e.value.querySelectorAll(`#${T}-design-item`);
|
|
@@ -3884,7 +3884,7 @@ function Kn(e, t, n) {
|
|
|
3884
3884
|
if (n && n.getCustomButtons)
|
|
3885
3885
|
return n.getCustomButtons();
|
|
3886
3886
|
}
|
|
3887
|
-
function
|
|
3887
|
+
function E(F) {
|
|
3888
3888
|
var T, P;
|
|
3889
3889
|
if (!((T = t == null ? void 0 : t.schema) != null && T.id))
|
|
3890
3890
|
return;
|
|
@@ -3907,7 +3907,7 @@ function Kn(e, t, n) {
|
|
|
3907
3907
|
function I(F) {
|
|
3908
3908
|
var L;
|
|
3909
3909
|
const { changeObject: S } = F, { propertyID: T, propertyValue: P } = S;
|
|
3910
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((L = F == null ? void 0 : F.changeObject) == null ? void 0 : L.propertyID) && T && P && (
|
|
3910
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((L = F == null ? void 0 : F.changeObject) == null ? void 0 : L.propertyID) && T && P && (E(), i)) {
|
|
3911
3911
|
const _ = i.getControlBasicInfoMap(), V = _.keys().toArray().filter((j) => {
|
|
3912
3912
|
var G, W;
|
|
3913
3913
|
return ((G = _.get(j)) == null ? void 0 : G.reliedComponentId) === ((W = t == null ? void 0 : t.schema) == null ? void 0 : W.id);
|
|
@@ -3929,7 +3929,7 @@ function Kn(e, t, n) {
|
|
|
3929
3929
|
canNested: !h(),
|
|
3930
3930
|
contents: t == null ? void 0 : t.schema.contents,
|
|
3931
3931
|
elementRef: e,
|
|
3932
|
-
parent: (
|
|
3932
|
+
parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
|
|
3933
3933
|
schema: t == null ? void 0 : t.schema,
|
|
3934
3934
|
styles: a,
|
|
3935
3935
|
designerClass: o,
|
|
@@ -3947,7 +3947,7 @@ function Kn(e, t, n) {
|
|
|
3947
3947
|
onRemoveComponent: y,
|
|
3948
3948
|
getCustomButtons: x,
|
|
3949
3949
|
onPropertyChanged: R,
|
|
3950
|
-
setComponentBasicInfoMap:
|
|
3950
|
+
setComponentBasicInfoMap: E,
|
|
3951
3951
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
3952
3952
|
}, l;
|
|
3953
3953
|
}
|
|
@@ -4463,7 +4463,7 @@ function tr(e, t, n, a) {
|
|
|
4463
4463
|
}, [u.value])]);
|
|
4464
4464
|
}
|
|
4465
4465
|
function nr(e, t, n, a, o) {
|
|
4466
|
-
const l = C(e.type), i = C(e.buttons), u = C(e.exceptionInfo), s = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), h = C(e.showCancelButton), f = C(e.showOkButton), r = N(() => !!(i.value && i.value.length)), m = N(() => u.value && u.value.
|
|
4466
|
+
const l = C(e.type), i = C(e.buttons), u = C(e.exceptionInfo), s = C(o.ok || e.okButtonText), c = C(o.cancel || e.cancelButtonText), h = C(e.showCancelButton), f = C(e.showOkButton), r = N(() => !!(i.value && i.value.length)), m = N(() => !!(u.value && u.value.detail)), d = N(() => !(i.value && i.value.length) && (f.value || h.value)), g = tr(e, n, a, o);
|
|
4467
4467
|
s.value === "关闭" ? s.value = o.close : s.value === "知道了" && (s.value = o.exception.roger);
|
|
4468
4468
|
function p(k) {
|
|
4469
4469
|
l.value === "question" && t.emit("reject"), t.emit("close");
|
|
@@ -4768,44 +4768,44 @@ function ir(e, t, n, a, o) {
|
|
|
4768
4768
|
"f-state-focus": d.value,
|
|
4769
4769
|
"input-group--has-clear": e.enableClear && c.value
|
|
4770
4770
|
}));
|
|
4771
|
-
function w(
|
|
4772
|
-
n.value =
|
|
4771
|
+
function w(O, F = !0) {
|
|
4772
|
+
n.value = O, F && (t.emit("change", O), t.emit("update:modelValue", O));
|
|
4773
4773
|
}
|
|
4774
|
-
function k(
|
|
4775
|
-
u.value = !1, w(
|
|
4774
|
+
function k(O) {
|
|
4775
|
+
u.value = !1, w(O, !0);
|
|
4776
4776
|
}
|
|
4777
4777
|
Z(
|
|
4778
4778
|
() => e.modelValue,
|
|
4779
|
-
(
|
|
4780
|
-
n.value =
|
|
4779
|
+
(O) => {
|
|
4780
|
+
n.value = O;
|
|
4781
4781
|
}
|
|
4782
4782
|
);
|
|
4783
|
-
function B(
|
|
4784
|
-
m.value = !1, t.emit("blur",
|
|
4783
|
+
function B(O) {
|
|
4784
|
+
m.value = !1, t.emit("blur", O), O.stopPropagation();
|
|
4785
4785
|
}
|
|
4786
|
-
function O
|
|
4787
|
-
t.emit("click",
|
|
4786
|
+
function M(O) {
|
|
4787
|
+
t.emit("click", O), s(), t.slots.default && !e.disable && !e.readonly && e.popupOnClick && o.togglePopup();
|
|
4788
4788
|
}
|
|
4789
|
-
function b(
|
|
4790
|
-
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus",
|
|
4789
|
+
function b(O) {
|
|
4790
|
+
!e.disable && !e.readonly && (m.value = !0, r.value || (t.emit("focus", O), i.value && !u.value && o.popup()));
|
|
4791
4791
|
}
|
|
4792
|
-
function y(
|
|
4793
|
-
t.emit("input",
|
|
4794
|
-
const F =
|
|
4792
|
+
function y(O) {
|
|
4793
|
+
t.emit("input", O);
|
|
4794
|
+
const F = O.target.value;
|
|
4795
4795
|
a.value = F, n.value !== F && w(F, e.updateOn === "change"), l.value && !u.value && o.popup();
|
|
4796
4796
|
}
|
|
4797
|
-
function x(
|
|
4798
|
-
|
|
4797
|
+
function x(O) {
|
|
4798
|
+
O.target.tagName !== "INPUT" && O.preventDefault(), O.stopPropagation();
|
|
4799
4799
|
}
|
|
4800
|
-
function
|
|
4801
|
-
t.emit("keydown",
|
|
4800
|
+
function E(O) {
|
|
4801
|
+
t.emit("keydown", O);
|
|
4802
4802
|
}
|
|
4803
|
-
function I(
|
|
4804
|
-
|
|
4803
|
+
function I(O) {
|
|
4804
|
+
O.key === "Enter" && (l.value || i.value) && o.hidePopup(), t.emit("keyup", O);
|
|
4805
4805
|
}
|
|
4806
|
-
function R(
|
|
4807
|
-
const F =
|
|
4808
|
-
|
|
4806
|
+
function R(O) {
|
|
4807
|
+
const F = O.target.value;
|
|
4808
|
+
O.stopPropagation(), w(F);
|
|
4809
4809
|
}
|
|
4810
4810
|
return {
|
|
4811
4811
|
hasFocusedTextBox: d,
|
|
@@ -4818,10 +4818,10 @@ function ir(e, t, n, a, o) {
|
|
|
4818
4818
|
changeTextBoxValue: w,
|
|
4819
4819
|
commitValue: k,
|
|
4820
4820
|
onBlurTextBox: B,
|
|
4821
|
-
onClickTextBox:
|
|
4821
|
+
onClickTextBox: M,
|
|
4822
4822
|
onFocusTextBox: b,
|
|
4823
4823
|
onInput: y,
|
|
4824
|
-
onKeyDownTextBox:
|
|
4824
|
+
onKeyDownTextBox: E,
|
|
4825
4825
|
onKeyUpTextBox: I,
|
|
4826
4826
|
onMouseDownTextBox: x,
|
|
4827
4827
|
onTextBoxValueChange: R
|
|
@@ -4850,7 +4850,7 @@ function rr(e, t, n, a) {
|
|
|
4850
4850
|
if (!!t.slots.default) {
|
|
4851
4851
|
if (!m && !l.value && !await i())
|
|
4852
4852
|
return;
|
|
4853
|
-
l.value = !l.value, await Ue(), s();
|
|
4853
|
+
l.value = !l.value, l.value && (await Ue(), s());
|
|
4854
4854
|
}
|
|
4855
4855
|
}
|
|
4856
4856
|
async function h(m = !1) {
|
|
@@ -4891,12 +4891,12 @@ function sr(e, t, n) {
|
|
|
4891
4891
|
"border-bottom-right-radius": "6px"
|
|
4892
4892
|
}));
|
|
4893
4893
|
be(() => {
|
|
4894
|
-
var x,
|
|
4895
|
-
e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((
|
|
4894
|
+
var x, E;
|
|
4895
|
+
e.selectOnCreated && ((x = a.value) == null || x.select()), e.focusOnCreated && ((E = a.value) == null || E.focus({
|
|
4896
4896
|
preventScroll: !0
|
|
4897
4897
|
})), p.value || (p.value = "button-edit_" + w(8)), p.value = p.value + "-textbox";
|
|
4898
4898
|
});
|
|
4899
|
-
const B = C(!1),
|
|
4899
|
+
const B = C(!1), M = (x) => {
|
|
4900
4900
|
x.preventDefault(), B.value = !0;
|
|
4901
4901
|
}, b = (x) => {
|
|
4902
4902
|
x.preventDefault(), B.value = !1, f(x);
|
|
@@ -4929,7 +4929,7 @@ function sr(e, t, n) {
|
|
|
4929
4929
|
onKeyup: m,
|
|
4930
4930
|
onMousedown: d,
|
|
4931
4931
|
onCompositionend: b,
|
|
4932
|
-
onCompositionstart:
|
|
4932
|
+
onCompositionstart: M
|
|
4933
4933
|
}, null);
|
|
4934
4934
|
}
|
|
4935
4935
|
function ur(e, t, n) {
|
|
@@ -5058,7 +5058,7 @@ const Rt = /* @__PURE__ */ ae({
|
|
|
5058
5058
|
} = r, p = lr(e, t, o, m, f, r), {
|
|
5059
5059
|
onMouseEnterTextBox: w,
|
|
5060
5060
|
onMouseLeaveTextBox: k
|
|
5061
|
-
} = p, B = C(!1),
|
|
5061
|
+
} = p, B = C(!1), M = N(() => {
|
|
5062
5062
|
const L = {
|
|
5063
5063
|
"f-button-edit": !0,
|
|
5064
5064
|
"f-cmp-inputgroup": !0,
|
|
@@ -5078,24 +5078,24 @@ const Rt = /* @__PURE__ */ ae({
|
|
|
5078
5078
|
const _ = Array.from(n.value.querySelectorAll(".farris-tag-item"));
|
|
5079
5079
|
return _ && _.length && (L = _.map((V) => V.offsetTop).filter((V) => V > 20).length), L;
|
|
5080
5080
|
}
|
|
5081
|
-
const
|
|
5081
|
+
const E = C(x());
|
|
5082
5082
|
an(() => {
|
|
5083
|
-
|
|
5083
|
+
E.value = x();
|
|
5084
5084
|
});
|
|
5085
5085
|
function I() {
|
|
5086
|
-
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [ur(e, o, r)(), !!
|
|
5086
|
+
return e.multiSelect && e.inputType === "tag" ? () => v(ot, null, [ur(e, o, r)(), !!E.value && v("div", {
|
|
5087
5087
|
class: "d-flex flex-row mr-2 more-tags",
|
|
5088
5088
|
"more-tags": !0
|
|
5089
5089
|
}, [v("span", {
|
|
5090
5090
|
class: "multi--more-text"
|
|
5091
|
-
}, [ie("+"),
|
|
5091
|
+
}, [ie("+"), E.value])])]) : sr(e, o, r);
|
|
5092
5092
|
}
|
|
5093
5093
|
let R = I();
|
|
5094
5094
|
Z([() => e.multiSelect, () => e.inputType], () => {
|
|
5095
5095
|
R = I();
|
|
5096
5096
|
});
|
|
5097
5097
|
const {
|
|
5098
|
-
renderButtonGroup:
|
|
5098
|
+
renderButtonGroup: O,
|
|
5099
5099
|
buttonHandleElement: F
|
|
5100
5100
|
} = cr(e, t, h, p), S = dr(e, t, l), T = C(i.value), P = {
|
|
5101
5101
|
displayText: f,
|
|
@@ -5147,7 +5147,7 @@ const Rt = /* @__PURE__ */ ae({
|
|
|
5147
5147
|
var L, _;
|
|
5148
5148
|
return v(ot, null, [v("div", pt(t.attrs, {
|
|
5149
5149
|
ref: n,
|
|
5150
|
-
class:
|
|
5150
|
+
class: M.value,
|
|
5151
5151
|
id: e.id ? e.id : void 0,
|
|
5152
5152
|
style: b.value
|
|
5153
5153
|
}), [v("div", {
|
|
@@ -5156,7 +5156,7 @@ const Rt = /* @__PURE__ */ ae({
|
|
|
5156
5156
|
style: y.value,
|
|
5157
5157
|
onMouseenter: w,
|
|
5158
5158
|
onMouseleave: k
|
|
5159
|
-
}, [(_ = (L = t.slots).precontent) == null ? void 0 : _.call(L), R(),
|
|
5159
|
+
}, [(_ = (L = t.slots).precontent) == null ? void 0 : _.call(L), R(), O()])]), T.value && S()]);
|
|
5160
5160
|
};
|
|
5161
5161
|
}
|
|
5162
5162
|
}), fr = "https://json-schema.org/draft/2020-12/schema", pr = "https://farris-design.gitee.io/field-selector.schema.json", mr = "field-selector", yr = "A Farris Input Component", vr = "object", hr = {
|
|
@@ -5843,8 +5843,8 @@ const un = {
|
|
|
5843
5843
|
const k = (p = s.value) == null ? void 0 : p[0];
|
|
5844
5844
|
let B = k;
|
|
5845
5845
|
if (!je(k)) {
|
|
5846
|
-
const
|
|
5847
|
-
b === "number" &&
|
|
5846
|
+
const M = typeof k, b = typeof ((w = a.value[0]) == null ? void 0 : w[e.valueField || e.idField]);
|
|
5847
|
+
b === "number" && M !== b && (B = Number(k)), b === "boolean" && M !== b && (B = k === "true" ? !0 : k === "false" ? !1 : k), g(B);
|
|
5848
5848
|
}
|
|
5849
5849
|
}
|
|
5850
5850
|
}), t.expose({
|
|
@@ -5878,8 +5878,8 @@ function Nr(e) {
|
|
|
5878
5878
|
function i(r) {
|
|
5879
5879
|
const m = e.multiSelect ? String(r).split(e.separator) : [String(r)], d = m.map((w) => [w, !0]), g = new Map(d);
|
|
5880
5880
|
return o.value.filter((w) => g.has(String(w[e.valueField]))).sort((w, k) => {
|
|
5881
|
-
const B = m.indexOf(w[e.valueField]),
|
|
5882
|
-
return B -
|
|
5881
|
+
const B = m.indexOf(w[e.valueField]), M = m.indexOf(k[e.valueField]);
|
|
5882
|
+
return B - M;
|
|
5883
5883
|
});
|
|
5884
5884
|
}
|
|
5885
5885
|
function u(r) {
|
|
@@ -5906,9 +5906,9 @@ function Nr(e) {
|
|
|
5906
5906
|
const { url: r, method: m = "GET", headers: d = { "Content-Type": "application/json;charset=utf-8;" }, body: g = null } = e.remote, p = m.toLowerCase() === "get" ? { method: m, headers: d } : { method: m, headers: d, body: g };
|
|
5907
5907
|
let w = !1;
|
|
5908
5908
|
fetch(new Request(r, p)).then((k) => {
|
|
5909
|
-
var
|
|
5909
|
+
var M, b;
|
|
5910
5910
|
if (k.status === 200)
|
|
5911
|
-
return w = !!((b = (
|
|
5911
|
+
return w = !!((b = (M = k.headers) == null ? void 0 : M.get("content-type")) != null && b.includes("application/json")), w ? k.text() : k.json();
|
|
5912
5912
|
throw k.status === 405 ? new Error(t("comboList.remoteError")) : new Error(k.statusText);
|
|
5913
5913
|
}).then((k) => {
|
|
5914
5914
|
k.length && (o.value = w ? JSON.parse(k) : k);
|
|
@@ -5948,14 +5948,14 @@ const lt = /* @__PURE__ */ ae({
|
|
|
5948
5948
|
function B() {
|
|
5949
5949
|
!w.value && o.value && o.value.hidePopup();
|
|
5950
5950
|
}
|
|
5951
|
-
function
|
|
5951
|
+
function M(S) {
|
|
5952
5952
|
h.value = S.map((P) => P[e.textField]).join(e.separator);
|
|
5953
5953
|
let T = "";
|
|
5954
5954
|
S.length === 1 ? T = S[0][e.valueField] : T = S.map((P) => P[e.valueField]).join(e.separator), r.value !== T && (r.value = T, t.emit("update:modelValue", r.value), t.emit("change", S, r.value));
|
|
5955
5955
|
}
|
|
5956
5956
|
function b() {
|
|
5957
5957
|
const S = g(r.value);
|
|
5958
|
-
|
|
5958
|
+
M(S);
|
|
5959
5959
|
}
|
|
5960
5960
|
function y() {
|
|
5961
5961
|
s.value || h.value;
|
|
@@ -5964,24 +5964,26 @@ const lt = /* @__PURE__ */ ae({
|
|
|
5964
5964
|
var T;
|
|
5965
5965
|
r.value = "", (T = a.value) == null || T.activeRowById(""), t.emit("update:modelValue", ""), t.emit("change", [], ""), t.emit("clear");
|
|
5966
5966
|
}
|
|
5967
|
-
function
|
|
5967
|
+
function E(S) {
|
|
5968
5968
|
var T, P;
|
|
5969
5969
|
e.enableSearch && e.enableHighlightSearch && ((T = a.value) == null || T.search(S)), (P = a.value) == null || P.activeRowById(S), t.emit("change", [r.value], r.value);
|
|
5970
5970
|
}
|
|
5971
5971
|
function I(S) {
|
|
5972
5972
|
if (e.multiSelect) {
|
|
5973
|
-
const T =
|
|
5973
|
+
const T = d(S);
|
|
5974
|
+
e.viewType;
|
|
5975
|
+
const L = T.map((_) => _[e.idField || e.valueField]).join(e.separator);
|
|
5974
5976
|
r.value !== L && (r.value = L, t.emit("update:modelValue", r.value), t.emit("change", T, r.value));
|
|
5975
5977
|
}
|
|
5976
5978
|
}
|
|
5977
5979
|
function R() {
|
|
5978
5980
|
return h.value;
|
|
5979
5981
|
}
|
|
5980
|
-
function
|
|
5982
|
+
function O(S) {
|
|
5981
5983
|
const {
|
|
5982
5984
|
value: T
|
|
5983
5985
|
} = S.target;
|
|
5984
|
-
|
|
5986
|
+
E(T), t.emit("input", T);
|
|
5985
5987
|
}
|
|
5986
5988
|
function F() {
|
|
5987
5989
|
o.value.hidePopup();
|
|
@@ -6014,7 +6016,7 @@ const lt = /* @__PURE__ */ ae({
|
|
|
6014
6016
|
onClick: y,
|
|
6015
6017
|
onChange: I,
|
|
6016
6018
|
onBlur: b,
|
|
6017
|
-
onInput:
|
|
6019
|
+
onInput: O,
|
|
6018
6020
|
beforeOpen: e.beforeOpen,
|
|
6019
6021
|
placement: e.placement,
|
|
6020
6022
|
popupMinWidth: e.minPanelWidth,
|
|
@@ -6037,7 +6039,7 @@ const lt = /* @__PURE__ */ ae({
|
|
|
6037
6039
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
6038
6040
|
width: e.fitEditor ? k.value : void 0,
|
|
6039
6041
|
onSelectionChange: (S) => {
|
|
6040
|
-
|
|
6042
|
+
M(S), B();
|
|
6041
6043
|
}
|
|
6042
6044
|
}, null)]
|
|
6043
6045
|
});
|
|
@@ -6053,7 +6055,7 @@ class Ir extends Po {
|
|
|
6053
6055
|
super(t, n);
|
|
6054
6056
|
}
|
|
6055
6057
|
getCommonEditorProperties(t) {
|
|
6056
|
-
var n, a, o
|
|
6058
|
+
var n, a, o;
|
|
6057
6059
|
return {
|
|
6058
6060
|
viewType: {
|
|
6059
6061
|
visible: !!((n = t.editor) != null && n.multiSelect),
|
|
@@ -6087,14 +6089,15 @@ class Ir extends Po {
|
|
|
6087
6089
|
title: "允许编辑",
|
|
6088
6090
|
type: "boolean",
|
|
6089
6091
|
refreshPanelAfterChanged: !0,
|
|
6090
|
-
readonly:
|
|
6091
|
-
|
|
6092
|
-
enableHighlightSearch: {
|
|
6093
|
-
visible: !!((u = t.editor) != null && u.editable),
|
|
6094
|
-
description: "编辑状态下启用高亮搜索",
|
|
6095
|
-
title: "启用高亮搜索",
|
|
6096
|
-
type: "boolean"
|
|
6092
|
+
readonly: !0
|
|
6093
|
+
// readonly: !!propertyData.editor?.multiSelect && (propertyData.editor?.viewType === 'tag' || !propertyData.editor!.viewType)
|
|
6097
6094
|
}
|
|
6095
|
+
// enableHighlightSearch: {
|
|
6096
|
+
// visible: !!propertyData.editor?.editable,
|
|
6097
|
+
// description: "编辑状态下启用高亮搜索",
|
|
6098
|
+
// title: "启用高亮搜索",
|
|
6099
|
+
// type: "boolean"
|
|
6100
|
+
// },
|
|
6098
6101
|
};
|
|
6099
6102
|
}
|
|
6100
6103
|
getEditorProperties(t) {
|
|
@@ -6161,7 +6164,7 @@ class Ir extends Po {
|
|
|
6161
6164
|
// },
|
|
6162
6165
|
// },
|
|
6163
6166
|
body: {
|
|
6164
|
-
visible:
|
|
6167
|
+
visible: !1,
|
|
6165
6168
|
$converter: bn,
|
|
6166
6169
|
description: "",
|
|
6167
6170
|
title: "服务端API参数",
|
|
@@ -6193,7 +6196,8 @@ class Ir extends Po {
|
|
|
6193
6196
|
editor: {
|
|
6194
6197
|
nullable: !0,
|
|
6195
6198
|
min: 0,
|
|
6196
|
-
useThousands: !1
|
|
6199
|
+
useThousands: !1,
|
|
6200
|
+
needValid: !0
|
|
6197
6201
|
}
|
|
6198
6202
|
},
|
|
6199
6203
|
...this.getCommonEditorProperties(t)
|
|
@@ -6270,7 +6274,8 @@ class Ir extends Po {
|
|
|
6270
6274
|
editor: {
|
|
6271
6275
|
nullable: !0,
|
|
6272
6276
|
min: 0,
|
|
6273
|
-
useThousands: !1
|
|
6277
|
+
useThousands: !1,
|
|
6278
|
+
needValid: !0
|
|
6274
6279
|
}
|
|
6275
6280
|
},
|
|
6276
6281
|
...this.getCommonEditorProperties(t)
|
|
@@ -6521,19 +6526,19 @@ function sa(e) {
|
|
|
6521
6526
|
return o.value > 0 && (p.cursor = "n-resize"), p;
|
|
6522
6527
|
});
|
|
6523
6528
|
function h(p, w, k, B) {
|
|
6524
|
-
const
|
|
6525
|
-
if (
|
|
6526
|
-
const { left: b, right: y, width: x } =
|
|
6527
|
-
let
|
|
6528
|
-
B === "right" && (
|
|
6529
|
+
const M = e.value;
|
|
6530
|
+
if (M) {
|
|
6531
|
+
const { left: b, right: y, width: x } = M.getBoundingClientRect();
|
|
6532
|
+
let E = p.clientX - b;
|
|
6533
|
+
B === "right" && (E = y - p.clientX), E > w && (E = w), E < k && (E = k), B === "right" && (E = x - E), a.value = E;
|
|
6529
6534
|
}
|
|
6530
6535
|
}
|
|
6531
6536
|
function f(p, w, k, B) {
|
|
6532
|
-
const
|
|
6533
|
-
if (
|
|
6534
|
-
const { top: b, bottom: y, height: x } =
|
|
6535
|
-
let
|
|
6536
|
-
B === "bottom" && (
|
|
6537
|
+
const M = e.value;
|
|
6538
|
+
if (M) {
|
|
6539
|
+
const { top: b, bottom: y, height: x } = M.getBoundingClientRect();
|
|
6540
|
+
let E = p.clientY - b;
|
|
6541
|
+
B === "bottom" && (E = y - p.clientY), E > w && (E = w), E < k && (E = k), B === "bottom" && (E = x - E), o.value = E;
|
|
6537
6542
|
}
|
|
6538
6543
|
}
|
|
6539
6544
|
function r() {
|
|
@@ -6554,20 +6559,20 @@ function sa(e) {
|
|
|
6554
6559
|
function d(p, w) {
|
|
6555
6560
|
const k = r(), B = m();
|
|
6556
6561
|
if (k && B) {
|
|
6557
|
-
const
|
|
6562
|
+
const M = B == null ? void 0 : B.right, b = B == null ? void 0 : B.left;
|
|
6558
6563
|
if (p === "left" && b)
|
|
6559
|
-
return
|
|
6560
|
-
if (p === "right" &&
|
|
6564
|
+
return M ? k.width - M.clientWidth - w : k.width - w;
|
|
6565
|
+
if (p === "right" && M)
|
|
6561
6566
|
return b ? k.width - b.clientWidth - w : k.width - w;
|
|
6562
6567
|
}
|
|
6563
6568
|
}
|
|
6564
6569
|
function g(p, w) {
|
|
6565
6570
|
const k = r(), B = m();
|
|
6566
6571
|
if (k && B) {
|
|
6567
|
-
const
|
|
6572
|
+
const M = B == null ? void 0 : B.bottom, b = B == null ? void 0 : B.top;
|
|
6568
6573
|
if (p === "top" && b)
|
|
6569
|
-
return
|
|
6570
|
-
if (p === "bottom" &&
|
|
6574
|
+
return M ? k.height - M.clientHeight - w : k.height - w;
|
|
6575
|
+
if (p === "bottom" && M)
|
|
6571
6576
|
return b ? k.height - b.clientHeight - w : k.height - w;
|
|
6572
6577
|
}
|
|
6573
6578
|
}
|
|
@@ -6829,38 +6834,38 @@ function ca(e, t, n, a, o) {
|
|
|
6829
6834
|
let g = "", p, w, k;
|
|
6830
6835
|
function B(y) {
|
|
6831
6836
|
if ((g === "left" || g === "right") && w) {
|
|
6832
|
-
const { left: x } = w.getBoundingClientRect(), { width:
|
|
6833
|
-
let R = g === "left" ? (
|
|
6837
|
+
const { left: x } = w.getBoundingClientRect(), { width: E } = p.getBoundingClientRect(), I = y.clientX - x;
|
|
6838
|
+
let R = g === "left" ? (E || 0) + (I - l.value) : (E || 0) - (I - l.value);
|
|
6834
6839
|
R = n.value > 0 ? Math.max(n.value, R) : R;
|
|
6835
|
-
const
|
|
6836
|
-
|
|
6840
|
+
const O = d(g, n.value);
|
|
6841
|
+
O != null && (R = O > R ? R : O), e.value = R;
|
|
6837
6842
|
}
|
|
6838
6843
|
if ((g === "top" || g === "bottom") && w) {
|
|
6839
|
-
const { top: x } = w.getBoundingClientRect(), { height:
|
|
6840
|
-
let R = g === "top" ? (
|
|
6844
|
+
const { top: x } = w.getBoundingClientRect(), { height: E } = p.getBoundingClientRect(), I = y.clientY - x;
|
|
6845
|
+
let R = g === "top" ? (E || 0) + (I - c.value) : (E || 0) - (I - c.value);
|
|
6841
6846
|
R = a.value > 0 ? Math.max(a.value, R) : R;
|
|
6842
|
-
const
|
|
6843
|
-
|
|
6847
|
+
const O = m(g, a.value);
|
|
6848
|
+
O != null && (R = O > R ? R : O), t.value = R;
|
|
6844
6849
|
}
|
|
6845
6850
|
i.value = 0, h.value = 0, l.value = -1, c.value = -1, u.value = !1, s.value = !1, document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", B), document.body.style.userSelect = "", g = "", p = null, w = null;
|
|
6846
6851
|
}
|
|
6847
|
-
function
|
|
6848
|
-
if (g = x, p =
|
|
6849
|
-
const { left: R } = w.getBoundingClientRect(),
|
|
6850
|
-
i.value =
|
|
6852
|
+
function M(y, x, E) {
|
|
6853
|
+
if (g = x, p = E, u.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6854
|
+
const { left: R } = w.getBoundingClientRect(), O = y.clientX - R;
|
|
6855
|
+
i.value = O, l.value = O;
|
|
6851
6856
|
const F = d(g, n.value) || 0;
|
|
6852
6857
|
k = (S) => f(S, F, n.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6853
6858
|
}
|
|
6854
6859
|
}
|
|
6855
|
-
function b(y, x,
|
|
6856
|
-
if (g = x, p =
|
|
6860
|
+
function b(y, x, E) {
|
|
6861
|
+
if (g = x, p = E, s.value = !0, w = y.composedPath().find((R) => (R.className || "").split(" ")[0] === "f-layout"), w) {
|
|
6857
6862
|
const { top: R } = w.getBoundingClientRect();
|
|
6858
6863
|
h.value = y.clientY - R, c.value = y.clientY - R;
|
|
6859
|
-
const
|
|
6860
|
-
k = (F) => r(F,
|
|
6864
|
+
const O = m(g, a.value) || 0;
|
|
6865
|
+
k = (F) => r(F, O, a.value, g), document.addEventListener("mousemove", k), document.addEventListener("mouseup", B), document.body.style.userSelect = "none";
|
|
6861
6866
|
}
|
|
6862
6867
|
}
|
|
6863
|
-
return { onClickHorizontalResizeBar:
|
|
6868
|
+
return { onClickHorizontalResizeBar: M, onClickVerticalResizeBar: b };
|
|
6864
6869
|
}
|
|
6865
6870
|
const Re = /* @__PURE__ */ ae({
|
|
6866
6871
|
name: "FLayoutPane",
|
|
@@ -6893,14 +6898,14 @@ const Re = /* @__PURE__ */ ae({
|
|
|
6893
6898
|
"f-page-content-main": c.value === "center"
|
|
6894
6899
|
};
|
|
6895
6900
|
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6896
|
-
}),
|
|
6901
|
+
}), M = N(() => {
|
|
6897
6902
|
const b = {};
|
|
6898
6903
|
return (u.value && c.value === "left" || c.value === "right") && (b.width = `${u.value}px`), (i.value && c.value === "bottom" || c.value === "top") && (b.height = `${i.value}px`), e.visible || (b.display = "none"), b;
|
|
6899
6904
|
});
|
|
6900
6905
|
return () => v("div", {
|
|
6901
6906
|
ref: s,
|
|
6902
6907
|
class: B.value,
|
|
6903
|
-
style:
|
|
6908
|
+
style: M.value,
|
|
6904
6909
|
"data-position": c.value
|
|
6905
6910
|
}, [t.slots.default && t.slots.default(), w.value && v("span", {
|
|
6906
6911
|
class: p.value,
|
|
@@ -6990,7 +6995,7 @@ const ps = /* @__PURE__ */ ae({
|
|
|
6990
6995
|
"f-page-content-main": f.value === "center"
|
|
6991
6996
|
};
|
|
6992
6997
|
return e.customClass && String(e.customClass).split(" ").reduce((y, x) => (y[x] = !0, y), b), b;
|
|
6993
|
-
}),
|
|
6998
|
+
}), M = N(() => {
|
|
6994
6999
|
const b = {
|
|
6995
7000
|
flex: "1"
|
|
6996
7001
|
};
|
|
@@ -6999,7 +7004,7 @@ const ps = /* @__PURE__ */ ae({
|
|
|
6999
7004
|
return () => v("div", {
|
|
7000
7005
|
ref: n,
|
|
7001
7006
|
class: B.value,
|
|
7002
|
-
style:
|
|
7007
|
+
style: M.value
|
|
7003
7008
|
}, [v("div", {
|
|
7004
7009
|
ref: a,
|
|
7005
7010
|
class: "drag-container",
|
|
@@ -9787,7 +9792,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9787
9792
|
item: T
|
|
9788
9793
|
});
|
|
9789
9794
|
}
|
|
9790
|
-
function
|
|
9795
|
+
function M({
|
|
9791
9796
|
$event: S,
|
|
9792
9797
|
node: T
|
|
9793
9798
|
}) {
|
|
@@ -9802,7 +9807,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9802
9807
|
return v(cu, {
|
|
9803
9808
|
data: u.value,
|
|
9804
9809
|
formatter: c,
|
|
9805
|
-
onDblclickNode:
|
|
9810
|
+
onDblclickNode: M
|
|
9806
9811
|
}, null);
|
|
9807
9812
|
}
|
|
9808
9813
|
function y() {
|
|
@@ -9840,8 +9845,8 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9840
9845
|
h.value[S] = !0;
|
|
9841
9846
|
}
|
|
9842
9847
|
});
|
|
9843
|
-
function
|
|
9844
|
-
const P = S.children.map((_) =>
|
|
9848
|
+
function E(S, T) {
|
|
9849
|
+
const P = S.children.map((_) => E(_, T)).filter((_) => _ !== null);
|
|
9845
9850
|
return S.data.name.toLowerCase().includes(T.toLowerCase()) || S.data.bindingPath.toLowerCase().includes(T.toLowerCase()) ? {
|
|
9846
9851
|
data: {
|
|
9847
9852
|
...S.data
|
|
@@ -9856,13 +9861,13 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9856
9861
|
} : null;
|
|
9857
9862
|
}
|
|
9858
9863
|
function I(S, T) {
|
|
9859
|
-
return S.map((P) =>
|
|
9864
|
+
return S.map((P) => E(P, T)).filter((P) => P !== null);
|
|
9860
9865
|
}
|
|
9861
9866
|
function R() {
|
|
9862
9867
|
const S = I((o == null ? void 0 : o.fields) || [], i.value);
|
|
9863
9868
|
u.value = S;
|
|
9864
9869
|
}
|
|
9865
|
-
function
|
|
9870
|
+
function O() {
|
|
9866
9871
|
u.value = (o == null ? void 0 : o.fields) || [];
|
|
9867
9872
|
}
|
|
9868
9873
|
function F(S) {
|
|
@@ -9892,7 +9897,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9892
9897
|
modelValue: i.value,
|
|
9893
9898
|
"onUpdate:modelValue": (S) => i.value = S,
|
|
9894
9899
|
onClickButton: R,
|
|
9895
|
-
onClear:
|
|
9900
|
+
onClear: O,
|
|
9896
9901
|
onKeyup: F
|
|
9897
9902
|
}, null)]), b()])]), v("li", {
|
|
9898
9903
|
class: r.value("variables")
|
|
@@ -9972,10 +9977,10 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9972
9977
|
}
|
|
9973
9978
|
Z(() => a.value, (b, y, x) => {
|
|
9974
9979
|
if (b) {
|
|
9975
|
-
const
|
|
9980
|
+
const E = setTimeout(() => {
|
|
9976
9981
|
m(b);
|
|
9977
9982
|
}, 200);
|
|
9978
|
-
x(() => clearTimeout(
|
|
9983
|
+
x(() => clearTimeout(E));
|
|
9979
9984
|
}
|
|
9980
9985
|
});
|
|
9981
9986
|
function w() {
|
|
@@ -9987,7 +9992,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
9987
9992
|
function B(b) {
|
|
9988
9993
|
b.key === "Enter" && w();
|
|
9989
9994
|
}
|
|
9990
|
-
function
|
|
9995
|
+
function M() {
|
|
9991
9996
|
return r.value.length ? r.value.map((b) => v("li", {
|
|
9992
9997
|
"function-type": b,
|
|
9993
9998
|
class: c.value(b)
|
|
@@ -10045,7 +10050,7 @@ const ru = /* @__PURE__ */ ae({
|
|
|
10045
10050
|
default: () => [v("ul", {
|
|
10046
10051
|
class: "w-100 functions-list",
|
|
10047
10052
|
style: "user-select: none"
|
|
10048
|
-
}, [
|
|
10053
|
+
}, [M()])]
|
|
10049
10054
|
}), v(Re, {
|
|
10050
10055
|
"custom-class": "position-relative",
|
|
10051
10056
|
position: "bottom",
|
|
@@ -10121,8 +10126,8 @@ function yu(e, t, n) {
|
|
|
10121
10126
|
if (a.value) {
|
|
10122
10127
|
let w = Object.keys(p);
|
|
10123
10128
|
const { types: k, functions: B } = a.value;
|
|
10124
|
-
return k && k.length && (w = w.filter((
|
|
10125
|
-
|
|
10129
|
+
return k && k.length && (w = w.filter((M) => k.includes(M))), B && B.length && Object.values(p).forEach((M) => {
|
|
10130
|
+
M.items.forEach((b) => {
|
|
10126
10131
|
B.includes(b.name) && (b.visible = !1);
|
|
10127
10132
|
});
|
|
10128
10133
|
}), p;
|
|
@@ -10160,20 +10165,20 @@ function yu(e, t, n) {
|
|
|
10160
10165
|
if (!p)
|
|
10161
10166
|
return "";
|
|
10162
10167
|
const w = o(p), k = l(n, "name2key");
|
|
10163
|
-
for (let
|
|
10168
|
+
for (let M = 0; M < w.length; M++) {
|
|
10164
10169
|
let b = 0;
|
|
10165
|
-
if (b === 0 && k && w[
|
|
10166
|
-
const y = w[
|
|
10167
|
-
if (k.has(y) && w[
|
|
10170
|
+
if (b === 0 && k && w[M].length > 2 && w[M][0] === '"' && w[M][w[M].length - 1] === '"') {
|
|
10171
|
+
const y = w[M].substring(1, w[M].length - 1);
|
|
10172
|
+
if (k.has(y) && w[M - 1] === "(" && w[M + 1] === ")") {
|
|
10168
10173
|
const x = k.get(y);
|
|
10169
|
-
x !== void 0 && (w[
|
|
10174
|
+
x !== void 0 && (w[M] = `"${x}"`, b = 1);
|
|
10170
10175
|
}
|
|
10171
10176
|
}
|
|
10172
10177
|
if (b === 0) {
|
|
10173
10178
|
const y = Object.values(t).map((x) => x.items).flat();
|
|
10174
10179
|
for (let x = 0; x < y.length; x++)
|
|
10175
|
-
if (w[
|
|
10176
|
-
w[
|
|
10180
|
+
if (w[M] === y[x].name) {
|
|
10181
|
+
w[M] = y[x].keyFront + "." + y[x].key, b = 1;
|
|
10177
10182
|
break;
|
|
10178
10183
|
}
|
|
10179
10184
|
}
|
|
@@ -10182,13 +10187,13 @@ function yu(e, t, n) {
|
|
|
10182
10187
|
return JSON.stringify({ expr: B, sexpr: "" });
|
|
10183
10188
|
}
|
|
10184
10189
|
function m(p, w, k, B) {
|
|
10185
|
-
let
|
|
10190
|
+
let M = "";
|
|
10186
10191
|
const b = [];
|
|
10187
10192
|
for (const y of w)
|
|
10188
10193
|
y.keyFront === "Math" && b.push(y.key);
|
|
10189
10194
|
for (let y = 0; y < p.length; y++) {
|
|
10190
10195
|
if (p[y] === "Math" && p[y + 1] === "." && !b.includes(p[y + 2])) {
|
|
10191
|
-
|
|
10196
|
+
M = M + p[y] + p[y + 1] + p[y + 2], y = y + 2;
|
|
10192
10197
|
continue;
|
|
10193
10198
|
}
|
|
10194
10199
|
if (B.includes(p[y]) && p[y + 1] === ".") {
|
|
@@ -10197,23 +10202,23 @@ function yu(e, t, n) {
|
|
|
10197
10202
|
} else {
|
|
10198
10203
|
let x = 0;
|
|
10199
10204
|
if (x === 0 && p[y].length > 2 && p[y][0] === '"' && p[y][p[y].length - 1] === '"') {
|
|
10200
|
-
const
|
|
10201
|
-
if (k.has(
|
|
10202
|
-
const I = k.get(
|
|
10203
|
-
I !== void 0 && (
|
|
10205
|
+
const E = p[y].substring(1, p[y].length - 1);
|
|
10206
|
+
if (k.has(E) && p[y - 1] === "(" && p[y + 1] === ")") {
|
|
10207
|
+
const I = k.get(E);
|
|
10208
|
+
I !== void 0 && (M = M + `"${I}"`, x = 1);
|
|
10204
10209
|
}
|
|
10205
10210
|
}
|
|
10206
10211
|
if (x === 0) {
|
|
10207
|
-
for (let
|
|
10208
|
-
if (p[y] === w[
|
|
10209
|
-
|
|
10212
|
+
for (let E = 0; E < w.length; E++)
|
|
10213
|
+
if (p[y] === w[E].key && w[E].type.toLowerCase() !== "advanced") {
|
|
10214
|
+
M = M + w[E].name, x = 1;
|
|
10210
10215
|
break;
|
|
10211
10216
|
}
|
|
10212
10217
|
}
|
|
10213
|
-
x === 0 && (
|
|
10218
|
+
x === 0 && (M = M + p[y]);
|
|
10214
10219
|
}
|
|
10215
10220
|
}
|
|
10216
|
-
return
|
|
10221
|
+
return M;
|
|
10217
10222
|
}
|
|
10218
10223
|
function d(p) {
|
|
10219
10224
|
if (!p)
|
|
@@ -10261,7 +10266,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10261
10266
|
props: Vr,
|
|
10262
10267
|
emits: [],
|
|
10263
10268
|
setup(e, t) {
|
|
10264
|
-
var
|
|
10269
|
+
var O;
|
|
10265
10270
|
const n = C(), a = C(e.validateMessage), o = C(e.messageType), l = C(e.modelValue), i = C(), u = [{
|
|
10266
10271
|
label: "提示",
|
|
10267
10272
|
value: "info"
|
|
@@ -10303,8 +10308,8 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10303
10308
|
return S.push(T.data), (P = T.children) != null && P.length && S.push(...k(T.children)), S;
|
|
10304
10309
|
}, []);
|
|
10305
10310
|
}
|
|
10306
|
-
const B = k(((
|
|
10307
|
-
function
|
|
10311
|
+
const B = k(((O = e == null ? void 0 : e.entities) == null ? void 0 : O.fields) || []);
|
|
10312
|
+
function M(F) {
|
|
10308
10313
|
return F.map((S) => {
|
|
10309
10314
|
const T = B.find((P) => P.bindingPath === S);
|
|
10310
10315
|
return T && T.type === "entity" ? `${S}[0]` : S;
|
|
@@ -10318,7 +10323,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10318
10323
|
}) {
|
|
10319
10324
|
var V;
|
|
10320
10325
|
const L = f(S);
|
|
10321
|
-
T = e.isServerSide ?
|
|
10326
|
+
T = e.isServerSide ? M(S.parents) : T;
|
|
10322
10327
|
let _ = `${T}.${L}`;
|
|
10323
10328
|
P === L && (_ = L), (V = i.value) == null || V.insertText(`${_}`);
|
|
10324
10329
|
}
|
|
@@ -10334,7 +10339,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10334
10339
|
var F;
|
|
10335
10340
|
return (F = i.value) == null ? void 0 : F.getContent();
|
|
10336
10341
|
}
|
|
10337
|
-
function
|
|
10342
|
+
function E() {
|
|
10338
10343
|
var S;
|
|
10339
10344
|
const F = (S = i.value) == null ? void 0 : S.getContent();
|
|
10340
10345
|
return {
|
|
@@ -10357,7 +10362,7 @@ const hu = /* @__PURE__ */ ae({
|
|
|
10357
10362
|
}
|
|
10358
10363
|
}), t.expose({
|
|
10359
10364
|
getExpressionContext: x,
|
|
10360
|
-
getExpressionValue:
|
|
10365
|
+
getExpressionValue: E,
|
|
10361
10366
|
resetExpression: R
|
|
10362
10367
|
}), () => v("div", {
|
|
10363
10368
|
ref: n,
|
|
@@ -10651,11 +10656,11 @@ const Tu = /* @__PURE__ */ ae({
|
|
|
10651
10656
|
if (typeof k == "object") {
|
|
10652
10657
|
const {
|
|
10653
10658
|
canClose: B,
|
|
10654
|
-
message:
|
|
10659
|
+
message: M
|
|
10655
10660
|
} = k;
|
|
10656
10661
|
if (!B)
|
|
10657
|
-
return
|
|
10658
|
-
message:
|
|
10662
|
+
return M && (n == null || n.error({
|
|
10663
|
+
message: M
|
|
10659
10664
|
})), !1;
|
|
10660
10665
|
}
|
|
10661
10666
|
}
|
|
@@ -11357,7 +11362,7 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11357
11362
|
return F ? F.shown : !1;
|
|
11358
11363
|
}), {
|
|
11359
11364
|
onValueChange: B,
|
|
11360
|
-
resetDataSource:
|
|
11365
|
+
resetDataSource: M
|
|
11361
11366
|
} = Hu({
|
|
11362
11367
|
comboEditorRef: n,
|
|
11363
11368
|
dataSource: f,
|
|
@@ -11379,7 +11384,7 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11379
11384
|
}
|
|
11380
11385
|
b();
|
|
11381
11386
|
}
|
|
11382
|
-
function
|
|
11387
|
+
function E(F) {
|
|
11383
11388
|
var S;
|
|
11384
11389
|
d.value = "", k.value && ((S = n.value) == null || S.hidePopup()), t.emit("update:modelValue", ""), t.emit("change", null, d.value), t.emit("clear");
|
|
11385
11390
|
}
|
|
@@ -11392,7 +11397,7 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11392
11397
|
Z([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([F, S, T, P, L]) => {
|
|
11393
11398
|
a.value = F, m.value = S, o.value = T, l.value = P, i.value = L;
|
|
11394
11399
|
});
|
|
11395
|
-
const
|
|
11400
|
+
const O = () => {
|
|
11396
11401
|
if (s.value = Le(f.value), w.value && d.value) {
|
|
11397
11402
|
const F = [];
|
|
11398
11403
|
p(f.value, F), d.value.split(e.separator).reduce((S, T) => (S[T] = F.find((P) => P.id === T), S), h);
|
|
@@ -11415,11 +11420,11 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11415
11420
|
popupOnClick: !0,
|
|
11416
11421
|
modelValue: r.value,
|
|
11417
11422
|
"onUpdate:modelValue": (F) => r.value = F,
|
|
11418
|
-
onClear:
|
|
11423
|
+
onClear: E,
|
|
11419
11424
|
onInput: B,
|
|
11420
11425
|
focusOnCreated: e.focusOnCreated,
|
|
11421
11426
|
selectOnCreated: e.selectOnCreated,
|
|
11422
|
-
beforeOpen:
|
|
11427
|
+
beforeOpen: O,
|
|
11423
11428
|
placement: e.placement,
|
|
11424
11429
|
popupMinWidth: e.minPanelWidth
|
|
11425
11430
|
}, {
|
|
@@ -11442,7 +11447,7 @@ const Pt = /* @__PURE__ */ ae({
|
|
|
11442
11447
|
searchHandler: B,
|
|
11443
11448
|
onUnSelectItem: I,
|
|
11444
11449
|
onSelectItem: R,
|
|
11445
|
-
onClearSearch:
|
|
11450
|
+
onClearSearch: M
|
|
11446
11451
|
}, null)]
|
|
11447
11452
|
});
|
|
11448
11453
|
}
|
|
@@ -11532,14 +11537,14 @@ const Wu = /* @__PURE__ */ ae({
|
|
|
11532
11537
|
itemIntoView: g
|
|
11533
11538
|
} = Ca(e, t, s), p = C(e.expressionOptions || {});
|
|
11534
11539
|
function w(B) {
|
|
11535
|
-
var
|
|
11540
|
+
var M, b;
|
|
11536
11541
|
switch (B.expresstype) {
|
|
11537
11542
|
case Ve.Variable:
|
|
11538
11543
|
return v(Ga, {
|
|
11539
11544
|
modelValue: B.value,
|
|
11540
11545
|
"onUpdate:modelValue": (y) => B.value = y,
|
|
11541
11546
|
showOutline: !1,
|
|
11542
|
-
fieldData: (
|
|
11547
|
+
fieldData: (M = e.formContextData) == null ? void 0 : M.fieldData,
|
|
11543
11548
|
varData: (b = e.formContextData) == null ? void 0 : b.varData
|
|
11544
11549
|
}, null);
|
|
11545
11550
|
case Ve.Expression:
|
|
@@ -11558,9 +11563,9 @@ const Wu = /* @__PURE__ */ ae({
|
|
|
11558
11563
|
}, null);
|
|
11559
11564
|
}
|
|
11560
11565
|
}
|
|
11561
|
-
function k(B,
|
|
11566
|
+
function k(B, M, b) {
|
|
11562
11567
|
return v(lt, {
|
|
11563
|
-
data:
|
|
11568
|
+
data: M,
|
|
11564
11569
|
modelValue: B[b],
|
|
11565
11570
|
"onUpdate:modelValue": (y) => B[b] = y,
|
|
11566
11571
|
textField: "label",
|
|
@@ -11599,24 +11604,24 @@ const Wu = /* @__PURE__ */ ae({
|
|
|
11599
11604
|
style: "width: 60px"
|
|
11600
11605
|
}, [v("b", null, [ie("关系")])])])]), v("tbody", {
|
|
11601
11606
|
ref: s
|
|
11602
|
-
}, [c.value.map((B,
|
|
11603
|
-
index:
|
|
11604
|
-
class: d.value(
|
|
11605
|
-
onClick: (b) => m(B,
|
|
11607
|
+
}, [c.value.map((B, M) => v("tr", {
|
|
11608
|
+
index: M,
|
|
11609
|
+
class: d.value(M),
|
|
11610
|
+
onClick: (b) => m(B, M)
|
|
11606
11611
|
}, [v("td", {
|
|
11607
11612
|
style: "text-overflow: unset;",
|
|
11608
11613
|
align: "center",
|
|
11609
11614
|
class: "px-1"
|
|
11610
11615
|
}, [v("button", {
|
|
11611
11616
|
title: "插入",
|
|
11612
|
-
onClick: (b) => f(
|
|
11617
|
+
onClick: (b) => f(M, b),
|
|
11613
11618
|
type: "button",
|
|
11614
11619
|
class: "btn btn-link p-1 mr-0"
|
|
11615
11620
|
}, [v("span", {
|
|
11616
11621
|
class: "f-icon f-icon-plus"
|
|
11617
11622
|
}, null)]), v("button", {
|
|
11618
11623
|
title: "移除",
|
|
11619
|
-
onClick: (b) => r(
|
|
11624
|
+
onClick: (b) => r(M, b),
|
|
11620
11625
|
type: "button",
|
|
11621
11626
|
class: "btn btn-link p-1 m-0"
|
|
11622
11627
|
}, [v("span", {
|
|
@@ -11858,14 +11863,14 @@ function Uu(e, t) {
|
|
|
11858
11863
|
function B({ index: y }) {
|
|
11859
11864
|
n.value = y;
|
|
11860
11865
|
}
|
|
11861
|
-
function
|
|
11866
|
+
function M(y) {
|
|
11862
11867
|
if (y.length % 2 !== 0)
|
|
11863
11868
|
return !1;
|
|
11864
11869
|
let x = "";
|
|
11865
|
-
for (const
|
|
11866
|
-
if (
|
|
11867
|
-
x +=
|
|
11868
|
-
else if (
|
|
11870
|
+
for (const E of y)
|
|
11871
|
+
if (E === "(")
|
|
11872
|
+
x += E;
|
|
11873
|
+
else if (E === ")") {
|
|
11869
11874
|
if (!x.endsWith("("))
|
|
11870
11875
|
return !1;
|
|
11871
11876
|
x = x.slice(0, -1);
|
|
@@ -11876,18 +11881,18 @@ function Uu(e, t) {
|
|
|
11876
11881
|
const y = t.value.length;
|
|
11877
11882
|
if (!y)
|
|
11878
11883
|
return !0;
|
|
11879
|
-
let x = !0,
|
|
11884
|
+
let x = !0, E = !0;
|
|
11880
11885
|
if (e.editorType !== "sort") {
|
|
11881
|
-
t.value[y - 1].relation = ct.Empty,
|
|
11886
|
+
t.value[y - 1].relation = ct.Empty, E = !t.value.slice(0, -1).some(
|
|
11882
11887
|
(F) => F.relation === ct.Empty || !F.relation
|
|
11883
11888
|
);
|
|
11884
|
-
const
|
|
11885
|
-
x = O
|
|
11889
|
+
const O = t.value.flatMap((F) => [F.lbracket, F.rbracket]).join("");
|
|
11890
|
+
x = M(O);
|
|
11886
11891
|
}
|
|
11887
11892
|
const I = t.value.some((R) => !R[i]);
|
|
11888
11893
|
return [
|
|
11889
11894
|
{ result: x, message: "括号不匹配,请检查。" },
|
|
11890
|
-
{ result:
|
|
11895
|
+
{ result: E, message: "关系设置不完整,请检查。" },
|
|
11891
11896
|
{ result: !I, message: "字段不允许为空,请检查。" }
|
|
11892
11897
|
].find((R) => !R.result);
|
|
11893
11898
|
}
|
|
@@ -11928,18 +11933,18 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11928
11933
|
onMoveTop: w,
|
|
11929
11934
|
onInsert: k,
|
|
11930
11935
|
onRemove: B,
|
|
11931
|
-
activeRowIndex:
|
|
11936
|
+
activeRowIndex: M,
|
|
11932
11937
|
onSelectRow: b,
|
|
11933
11938
|
canClear: y,
|
|
11934
11939
|
canMove: x,
|
|
11935
|
-
validateCondition:
|
|
11940
|
+
validateCondition: E,
|
|
11936
11941
|
resetActiveRow: I
|
|
11937
11942
|
} = Uu(e, c), R = N(() => e.editorType === "sort" ? "排序条件编辑器" : "过滤条件编辑器");
|
|
11938
|
-
function
|
|
11943
|
+
function O() {
|
|
11939
11944
|
return e.editorType === "sort" ? v(Gu, {
|
|
11940
11945
|
conditions: c.value,
|
|
11941
11946
|
fields: u.value,
|
|
11942
|
-
activeIndex:
|
|
11947
|
+
activeIndex: M.value,
|
|
11943
11948
|
onInsert: (j) => k(j),
|
|
11944
11949
|
onRemove: (j) => B(j),
|
|
11945
11950
|
idField: e.idField,
|
|
@@ -11951,7 +11956,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11951
11956
|
conditions: c.value,
|
|
11952
11957
|
fields: u.value,
|
|
11953
11958
|
idField: e.idField,
|
|
11954
|
-
activeIndex:
|
|
11959
|
+
activeIndex: M.value,
|
|
11955
11960
|
onInsert: (j) => k(j),
|
|
11956
11961
|
onRemove: (j) => B(j),
|
|
11957
11962
|
onRowClick: (j) => b(j),
|
|
@@ -11969,7 +11974,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11969
11974
|
originalConditions: h,
|
|
11970
11975
|
FMessageBoxService: ft
|
|
11971
11976
|
});
|
|
11972
|
-
return o == null || o.clearAll(), j && (
|
|
11977
|
+
return o == null || o.clearAll(), j && (M.value = -1, a.success("过滤条件配置成功!")), j;
|
|
11973
11978
|
}
|
|
11974
11979
|
return !0;
|
|
11975
11980
|
}
|
|
@@ -11984,7 +11989,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11984
11989
|
resizeable: !0,
|
|
11985
11990
|
draggable: !0,
|
|
11986
11991
|
closedCallback: () => {
|
|
11987
|
-
|
|
11992
|
+
M.value = -1;
|
|
11988
11993
|
},
|
|
11989
11994
|
buttons: [{
|
|
11990
11995
|
name: "cancel",
|
|
@@ -11997,7 +12002,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
11997
12002
|
class: "btn btn-primary",
|
|
11998
12003
|
disabled: S,
|
|
11999
12004
|
handle: async (j) => {
|
|
12000
|
-
const G =
|
|
12005
|
+
const G = E();
|
|
12001
12006
|
return F.value ? !0 : typeof G == "object" && G !== null && G && G.message ? (a.warning(G.message), !1) : await T();
|
|
12002
12007
|
}
|
|
12003
12008
|
}]
|
|
@@ -12060,7 +12065,7 @@ const _u = /* @__PURE__ */ ae({
|
|
|
12060
12065
|
}, [v("div", {
|
|
12061
12066
|
style: "border-top: 1px solid white; position: absolute; top: 0; width: 100%; z-index: 2;",
|
|
12062
12067
|
class: "shading-border-top"
|
|
12063
|
-
}, null),
|
|
12068
|
+
}, null), O(), v(qu, {
|
|
12064
12069
|
canClear: y,
|
|
12065
12070
|
canMove: x,
|
|
12066
12071
|
onAdd: r,
|