@farris/ui-vue 1.6.5 → 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 +1 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +2 -2
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +7 -5
- 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 +1 -1
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +3 -2
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +1 -1
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +498 -495
- 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 +1 -1
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +3 -2
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1 -1
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +256 -254
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +416 -394
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +388 -386
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +1 -1
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/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/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +80 -81
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +237 -237
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1 -1
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +9 -3
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +114 -112
- package/components/order/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1 -1
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +485 -463
- 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 +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +544 -545
- 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 +6 -4
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.esm.js +1 -1
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +9 -7
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +77 -78
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +5 -3
- package/components/tabs/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +1 -1
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -2
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/video/index.esm.js +1 -1
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.esm.js +211 -211
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +1 -1
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +25 -26
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +15 -9
- package/designer/data-grid/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +917 -916
- package/designer/farris-designer.all.umd.cjs +5 -5
- package/designer/input-group/index.esm.js +2 -1
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +685 -689
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/radio-group/index.esm.js +7 -3
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +5641 -5603
- package/farris.all.umd.cjs +21 -21
- package/locales/data-grid/ui/en.json +2 -1
- 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 +2 -1
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +2 -1
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
|
@@ -1726,7 +1726,7 @@ function Pn(e, a) {
|
|
|
1726
1726
|
return _ && (A.label = _.title), A;
|
|
1727
1727
|
});
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function S(g) {
|
|
1730
1730
|
g.columns && (g.columns = D(g.columns), g.searchFields && (g.searchFields = V(g.searchFields, g.columns))), g.navigation && g.navigation.columns && (g.navigation.columns = D(g.navigation.columns), g.navigation.searchFields && (g.navigation.searchFields = V(g.navigation.searchFields, g.navigation.columns)));
|
|
1731
1731
|
}
|
|
1732
1732
|
function q() {
|
|
@@ -1734,7 +1734,7 @@ function Pn(e, a) {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
function R(g) {
|
|
1736
1736
|
const L = q();
|
|
1737
|
-
return L ? L(l.uri, g).then((A) => (
|
|
1737
|
+
return L ? L(l.uri, g).then((A) => (S(A), r.value = !1, A)) : new Promise((A, _) => {
|
|
1738
1738
|
A({
|
|
1739
1739
|
...e
|
|
1740
1740
|
});
|
|
@@ -1744,10 +1744,10 @@ function Pn(e, a) {
|
|
|
1744
1744
|
const L = u();
|
|
1745
1745
|
return L === -1 ? !0 : L === 0 ? !1 : g <= L;
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function C(g, L = !1, A = "layer") {
|
|
1748
1748
|
g.forEach((_) => {
|
|
1749
1749
|
var Y;
|
|
1750
|
-
_.collapse = L ? !1 : l.loadTreeDataType === "all" ? !j(Me(_.data, A)) : !(_.expanded ?? !0), _.hasChildren = !_.leaf, (Y = _.children) != null && Y.length &&
|
|
1750
|
+
_.collapse = L ? !1 : l.loadTreeDataType === "all" ? !j(Me(_.data, A)) : !(_.expanded ?? !0), _.hasChildren = !_.leaf, (Y = _.children) != null && Y.length && C(_.children, L, A);
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
1753
|
async function k(g, L) {
|
|
@@ -1759,7 +1759,7 @@ function Pn(e, a) {
|
|
|
1759
1759
|
const { items: ne, treeInfo: J } = ee.navigation || ee;
|
|
1760
1760
|
if (l.loadDataType === be.default && (l.loadTreeDataType = (J == null ? void 0 : J.loadDataType) || be.all), ne != null && ne.length && J) {
|
|
1761
1761
|
const { dataField: O, layerField: z } = J;
|
|
1762
|
-
|
|
1762
|
+
C(ne, !1, `${O}.${z}`);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
e.beforeLoadData && (ee = await e.beforeLoadData({ data: ee })), L(ee);
|
|
@@ -1787,7 +1787,7 @@ function Pn(e, a) {
|
|
|
1787
1787
|
if (!(g != null && g.length))
|
|
1788
1788
|
return g;
|
|
1789
1789
|
const A = L ? (ee = l.navigation) == null ? void 0 : ee.treeInfo : l.treeInfo, { dataField: _, layerField: Y } = A || {};
|
|
1790
|
-
return _ && Y &&
|
|
1790
|
+
return _ && Y && C(g, !0, `${_}.${Y}`), g;
|
|
1791
1791
|
}
|
|
1792
1792
|
function $() {
|
|
1793
1793
|
try {
|
|
@@ -1941,7 +1941,7 @@ function Je(e, a) {
|
|
|
1941
1941
|
if (u == null && u === "")
|
|
1942
1942
|
return;
|
|
1943
1943
|
const I = u;
|
|
1944
|
-
o.data.favorites = ((D = o.data) == null ? void 0 : D.favorites) || [], o.favoriteItems = o.favoriteItems || [], T === "add" ? (c.value = !1, o.data.favorites = Array.from(/* @__PURE__ */ new Set([...((V = o.data) == null ? void 0 : V.favorites) || [], I])), o.favoriteItems = [...o.favoriteItems, m]) : (c.value = !0, o.data.favorites = o.data.favorites.filter((
|
|
1944
|
+
o.data.favorites = ((D = o.data) == null ? void 0 : D.favorites) || [], o.favoriteItems = o.favoriteItems || [], T === "add" ? (c.value = !1, o.data.favorites = Array.from(/* @__PURE__ */ new Set([...((V = o.data) == null ? void 0 : V.favorites) || [], I])), o.favoriteItems = [...o.favoriteItems, m]) : (c.value = !0, o.data.favorites = o.data.favorites.filter((S) => S !== I), o.favoriteItems = o.favoriteItems.filter((S) => S[a] !== I)), n == null || n.saveUserData(!0).then((S) => {
|
|
1945
1945
|
const q = T === "add" ? i.messages.addedFavSuccess : i.messages.cancelFavSuccess;
|
|
1946
1946
|
t == null || t.success({
|
|
1947
1947
|
message: q,
|
|
@@ -2065,9 +2065,9 @@ function vt(e, a) {
|
|
|
2065
2065
|
}
|
|
2066
2066
|
const D = c();
|
|
2067
2067
|
if (m) {
|
|
2068
|
-
const V = new Map(T.map((
|
|
2069
|
-
I.forEach((
|
|
2070
|
-
D.has(
|
|
2068
|
+
const V = new Map(T.map((S) => [S[o.value], S]));
|
|
2069
|
+
I.forEach((S) => {
|
|
2070
|
+
D.has(S) || D.set(S, V.get(S));
|
|
2071
2071
|
});
|
|
2072
2072
|
} else
|
|
2073
2073
|
I.forEach((V) => {
|
|
@@ -2146,17 +2146,17 @@ function yt(e, a, t) {
|
|
|
2146
2146
|
} = Te(e, s), {
|
|
2147
2147
|
updatePageInfo: V
|
|
2148
2148
|
} = mt(e, F), {
|
|
2149
|
-
updateSelections:
|
|
2149
|
+
updateSelections: S,
|
|
2150
2150
|
isSelected: q,
|
|
2151
2151
|
getPrimaryKey: R
|
|
2152
2152
|
} = o, {
|
|
2153
2153
|
loadAndSelect: j
|
|
2154
|
-
} = bt(e, s),
|
|
2154
|
+
} = bt(e, s), C = p(e.pagination), k = u(), x = m(), P = N(), X = N([]), {
|
|
2155
2155
|
navSelectedItems: ie,
|
|
2156
2156
|
getNavigationIdField: $,
|
|
2157
2157
|
getRelationFilter: Z
|
|
2158
2158
|
} = t;
|
|
2159
|
-
V(
|
|
2159
|
+
V(C);
|
|
2160
2160
|
const g = N(F.default), {
|
|
2161
2161
|
setColumns: L
|
|
2162
2162
|
} = Je(e, h.idField), A = N({
|
|
@@ -2206,7 +2206,7 @@ function yt(e, a, t) {
|
|
|
2206
2206
|
navNodePathCode: r(U[0].data, se)
|
|
2207
2207
|
}) : de;
|
|
2208
2208
|
}), ee = W([() => f == null ? void 0 : f.columns, () => f == null ? void 0 : f.items, () => f == null ? void 0 : f.pageInfo, () => f == null ? void 0 : f.total, () => f == null ? void 0 : f.selectedData], ([U, K, se, de, fe]) => {
|
|
2209
|
-
P.value && (U && L(P.value, U), fe && fe.length &&
|
|
2209
|
+
P.value && (U && L(P.value, U), fe && fe.length && S(fe), K && _(K, de || 0, se));
|
|
2210
2210
|
});
|
|
2211
2211
|
W(() => e.idValue, (U) => {
|
|
2212
2212
|
X.value = U.split(e.separator);
|
|
@@ -2217,17 +2217,17 @@ function yt(e, a, t) {
|
|
|
2217
2217
|
if (q(K))
|
|
2218
2218
|
return;
|
|
2219
2219
|
}
|
|
2220
|
-
|
|
2220
|
+
S(U), a.emit("selectionsChanged", {
|
|
2221
2221
|
items: U
|
|
2222
2222
|
});
|
|
2223
2223
|
}
|
|
2224
2224
|
function J(U, K) {
|
|
2225
|
-
!h.multiSelect && e.openType === "Modal" && (
|
|
2225
|
+
!h.multiSelect && e.openType === "Modal" && (S([K]), a.emit("dblClickRow", {
|
|
2226
2226
|
items: [K]
|
|
2227
2227
|
}));
|
|
2228
2228
|
}
|
|
2229
2229
|
function O(U) {
|
|
2230
|
-
|
|
2230
|
+
S(U == null ? void 0 : U.raw, !1);
|
|
2231
2231
|
}
|
|
2232
2232
|
function z() {
|
|
2233
2233
|
const U = {
|
|
@@ -2375,8 +2375,8 @@ function Tt(e, a) {
|
|
|
2375
2375
|
var D;
|
|
2376
2376
|
return !((D = I.children) != null && D.some(
|
|
2377
2377
|
(V) => {
|
|
2378
|
-
var
|
|
2379
|
-
return (
|
|
2378
|
+
var S;
|
|
2379
|
+
return (S = e.selectionState.value) == null ? void 0 : S.some(
|
|
2380
2380
|
(q) => q[n.idField] === V.id
|
|
2381
2381
|
);
|
|
2382
2382
|
}
|
|
@@ -2395,12 +2395,12 @@ function Tt(e, a) {
|
|
|
2395
2395
|
return ((I = T[u]) == null ? void 0 : I.call(T)) ?? [];
|
|
2396
2396
|
}
|
|
2397
2397
|
function f(p, u = {}, m = !1) {
|
|
2398
|
-
const { field: T = "*", value: I = "" } = u, D = !!I, { layerType: V, dataField:
|
|
2398
|
+
const { field: T = "*", value: I = "" } = u, D = !!I, { layerType: V, dataField: S, pathField: q, layerField: R } = m ? n.navTreeInfo : n.treeInfo, j = V === "parentId", C = { category: m ? "navchildren" : "children", searchField: T, searchValue: I, searchType: "like" };
|
|
2399
2399
|
if (j)
|
|
2400
|
-
|
|
2400
|
+
C.parentId = p.raw.id;
|
|
2401
2401
|
else {
|
|
2402
|
-
const x = p.raw[
|
|
2403
|
-
|
|
2402
|
+
const x = p.raw[S];
|
|
2403
|
+
C.parentPath = Ce(x, q), C.parentLayer = Ce(x, R);
|
|
2404
2404
|
}
|
|
2405
2405
|
const k = {
|
|
2406
2406
|
searchValue: "",
|
|
@@ -2408,7 +2408,7 @@ function Tt(e, a) {
|
|
|
2408
2408
|
enableFullTree: n.enableFullTree,
|
|
2409
2409
|
loadTreeDataType: n.loadTreeDataType === "all" ? "loadall" : "layerload"
|
|
2410
2410
|
};
|
|
2411
|
-
return D && (k.enableFullTree = !1, k.loadTreeDataType = "layerload", j && (
|
|
2411
|
+
return D && (k.enableFullTree = !1, k.loadTreeDataType = "layerload", j && (C.searchValue = "", C.searchField = "*")), k.searchValue = JSON.stringify(C), k;
|
|
2412
2412
|
}
|
|
2413
2413
|
function y(p, u = !1) {
|
|
2414
2414
|
const { isEnableCascadeCheck: m } = a, { layerType: T } = u ? n.navTreeInfo : n.treeInfo, I = n.loadTreeDataType !== "all" && T === "pathcode" && m() && (n.cascadeValue === "both" || n.cascadeValue === "down");
|
|
@@ -2442,12 +2442,12 @@ function Tt(e, a) {
|
|
|
2442
2442
|
parents: [...I]
|
|
2443
2443
|
})), V = v(t.flattenTreeNodes || [], I);
|
|
2444
2444
|
V && (V.children = [...D], (q = t.flattenTreeNodes) == null || q.push(...D));
|
|
2445
|
-
const { isDropdownMode:
|
|
2445
|
+
const { isDropdownMode: S } = a;
|
|
2446
2446
|
qe(() => {
|
|
2447
|
-
var
|
|
2448
|
-
if (m.addChildrenToNode(D, u),
|
|
2447
|
+
var C;
|
|
2448
|
+
if (m.addChildrenToNode(D, u), S())
|
|
2449
2449
|
return;
|
|
2450
|
-
const R = ((
|
|
2450
|
+
const R = ((C = e.selectionState.value) == null ? void 0 : C.map((k) => k[n.idField])) ?? [], j = D.filter((k) => R.includes(k.id)).map((k) => k.id);
|
|
2451
2451
|
j.length && m.selectItemByIds(j);
|
|
2452
2452
|
});
|
|
2453
2453
|
}
|
|
@@ -2482,12 +2482,12 @@ function wt(e, a) {
|
|
|
2482
2482
|
unSelectTreeNodes: u,
|
|
2483
2483
|
updateSelections: m,
|
|
2484
2484
|
getSelectionIds: T
|
|
2485
|
-
} = r, I = f(), D = y(), V = N(),
|
|
2485
|
+
} = r, I = f(), D = y(), V = N(), S = N([]), {
|
|
2486
2486
|
loadAndSelect: q
|
|
2487
2487
|
} = bt(e, i), {
|
|
2488
2488
|
loadData: R,
|
|
2489
2489
|
expandAllNodes: j,
|
|
2490
|
-
getData:
|
|
2490
|
+
getData: C
|
|
2491
2491
|
} = n, {
|
|
2492
2492
|
flattenTreeNodes: k,
|
|
2493
2493
|
getTreeNodeWithCascadeValue: x,
|
|
@@ -2519,7 +2519,7 @@ function wt(e, a) {
|
|
|
2519
2519
|
const M = Ce(b.raw, c.idField), G = L(M);
|
|
2520
2520
|
if (X(b.raw)) {
|
|
2521
2521
|
const te = ie(b.raw);
|
|
2522
|
-
|
|
2522
|
+
C(te).then((le) => {
|
|
2523
2523
|
const U = (le.items || []).filter((se) => !se.addtional && (se.selectable || se.selectable === void 0));
|
|
2524
2524
|
U && U.length && h(U);
|
|
2525
2525
|
const K = (U || []).map((se) => se.id);
|
|
@@ -2532,7 +2532,7 @@ function wt(e, a) {
|
|
|
2532
2532
|
const M = Ce(b.raw, c.idField), G = L(M);
|
|
2533
2533
|
if (G.length && V.value.selectItemByIds([M, ...G]), X(b.raw)) {
|
|
2534
2534
|
const te = ie(b.raw);
|
|
2535
|
-
|
|
2535
|
+
C(te).then((le) => {
|
|
2536
2536
|
const U = (le.items || []).filter((K) => !K.addtional && (K.selectable || K.selectable === void 0));
|
|
2537
2537
|
U && U.length && h(U);
|
|
2538
2538
|
});
|
|
@@ -2563,7 +2563,7 @@ function wt(e, a) {
|
|
|
2563
2563
|
if (V.value.hasChildren(b))
|
|
2564
2564
|
return Promise.resolve();
|
|
2565
2565
|
const M = b.raw.id, G = P(b, s.default);
|
|
2566
|
-
return
|
|
2566
|
+
return C(G).then((te) => {
|
|
2567
2567
|
$((te == null ? void 0 : te.items) ?? [], M, V.value);
|
|
2568
2568
|
});
|
|
2569
2569
|
}
|
|
@@ -2604,7 +2604,7 @@ function wt(e, a) {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
return {
|
|
2606
2606
|
treegridRef: V,
|
|
2607
|
-
selectionTreeValues:
|
|
2607
|
+
selectionTreeValues: S,
|
|
2608
2608
|
renderTreeGrid: w,
|
|
2609
2609
|
unwatches: J
|
|
2610
2610
|
};
|
|
@@ -2779,7 +2779,7 @@ function Mn(e, a) {
|
|
|
2779
2779
|
const O = p((J = e.navigation) == null ? void 0 : J.pagination);
|
|
2780
2780
|
T(O, !0);
|
|
2781
2781
|
}
|
|
2782
|
-
const
|
|
2782
|
+
const S = N(f.navigation), q = {
|
|
2783
2783
|
enableSelectRow: !0,
|
|
2784
2784
|
multiSelect: !1,
|
|
2785
2785
|
showCheckbox: !1,
|
|
@@ -2788,10 +2788,10 @@ function Mn(e, a) {
|
|
|
2788
2788
|
fitColumns: !0,
|
|
2789
2789
|
fitMode: "percentage",
|
|
2790
2790
|
resizeColumn: !0
|
|
2791
|
-
}, j = N(),
|
|
2791
|
+
}, j = N(), C = N(), k = N("id");
|
|
2792
2792
|
W(() => f.navigation, (O) => {
|
|
2793
2793
|
var z;
|
|
2794
|
-
|
|
2794
|
+
S.value = O, (z = C.value) == null || z.updatePagination(O);
|
|
2795
2795
|
});
|
|
2796
2796
|
function x(O, z, w) {
|
|
2797
2797
|
var b, M, G;
|
|
@@ -2812,12 +2812,12 @@ function Mn(e, a) {
|
|
|
2812
2812
|
enable: U
|
|
2813
2813
|
});
|
|
2814
2814
|
}
|
|
2815
|
-
T(te, !0), (b =
|
|
2815
|
+
T(te, !0), (b = C.value) == null || b.updateDataSource(O);
|
|
2816
2816
|
} else m() && ((M = y.navigation) != null && M.value && (O = c(O, !0)), (G = j.value) == null || G.updateDataSource(O));
|
|
2817
2817
|
}
|
|
2818
2818
|
function P(O) {
|
|
2819
2819
|
var z, w;
|
|
2820
|
-
u() ? (z =
|
|
2820
|
+
u() ? (z = C.value) == null || z.updateColumns(O) : m() && ((w = j.value) == null || w.updateColumns(O));
|
|
2821
2821
|
}
|
|
2822
2822
|
W([() => d == null ? void 0 : d.columns, () => d == null ? void 0 : d.items, () => d == null ? void 0 : d.pageInfo, () => d == null ? void 0 : d.total], ([O, z, w, b]) => {
|
|
2823
2823
|
O && P(O), x(z, b || 0, w);
|
|
@@ -2853,7 +2853,7 @@ function Mn(e, a) {
|
|
|
2853
2853
|
}) {
|
|
2854
2854
|
var M;
|
|
2855
2855
|
let w = z;
|
|
2856
|
-
((M =
|
|
2856
|
+
((M = S.value) == null ? void 0 : M.size) !== O && (w = 1);
|
|
2857
2857
|
const b = {
|
|
2858
2858
|
size: O,
|
|
2859
2859
|
index: w
|
|
@@ -2892,8 +2892,8 @@ function Mn(e, a) {
|
|
|
2892
2892
|
}
|
|
2893
2893
|
function A() {
|
|
2894
2894
|
return E(Re, {
|
|
2895
|
-
ref:
|
|
2896
|
-
pagination:
|
|
2895
|
+
ref: C,
|
|
2896
|
+
pagination: S.value,
|
|
2897
2897
|
summary: {
|
|
2898
2898
|
enable: !1
|
|
2899
2899
|
},
|
|
@@ -2985,7 +2985,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
2985
2985
|
navSelectedItems: p,
|
|
2986
2986
|
getNavigationIdField: u,
|
|
2987
2987
|
getRelationFilter: m
|
|
2988
|
-
}),
|
|
2988
|
+
}), S = H(() => v() ? T : D), q = F();
|
|
2989
2989
|
function R(k) {
|
|
2990
2990
|
var P;
|
|
2991
2991
|
const x = (P = r.dialog) == null ? void 0 : P.title;
|
|
@@ -3001,7 +3001,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3001
3001
|
s[P] = k[P];
|
|
3002
3002
|
});
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3004
|
+
function C() {
|
|
3005
3005
|
const k = {};
|
|
3006
3006
|
e.enableToSelect && (k.selectedInfo = o()), l.value != null && (k.search = {
|
|
3007
3007
|
field: "*",
|
|
@@ -3018,7 +3018,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3018
3018
|
});
|
|
3019
3019
|
}
|
|
3020
3020
|
return Se(() => {
|
|
3021
|
-
|
|
3021
|
+
C(), document.body.classList.add("lookup-modal-open");
|
|
3022
3022
|
}), Ae(() => {
|
|
3023
3023
|
document.body.classList.remove("lookup-modal-open");
|
|
3024
3024
|
}), () => {
|
|
@@ -3038,7 +3038,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3038
3038
|
}, [f(), E("div", {
|
|
3039
3039
|
class: "f-utils-fill px-2",
|
|
3040
3040
|
style: "position: relative;"
|
|
3041
|
-
}, [
|
|
3041
|
+
}, [S.value()])])]
|
|
3042
3042
|
})]
|
|
3043
3043
|
});
|
|
3044
3044
|
};
|
|
@@ -3082,19 +3082,19 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3082
3082
|
W(() => e.selectedIds, ($, Z) => {
|
|
3083
3083
|
JSON.stringify($) !== JSON.stringify(Z) && (f.value = $, f.value.length ? V(f.value) : I.value.clearSelection());
|
|
3084
3084
|
});
|
|
3085
|
-
function
|
|
3085
|
+
function S($, Z) {
|
|
3086
3086
|
Z && Z.length && y(I.value, Z, v()), $ && (v() && ($ = r($)), I.value.updateDataSource($ || [])), V(f.value || []);
|
|
3087
3087
|
}
|
|
3088
3088
|
function q() {
|
|
3089
3089
|
i().then(($) => {
|
|
3090
|
-
$ ?
|
|
3090
|
+
$ ? S($.items || [], $.columns) : S([], null);
|
|
3091
3091
|
});
|
|
3092
3092
|
}
|
|
3093
3093
|
W(() => o.value, ($, Z) => {
|
|
3094
3094
|
var g;
|
|
3095
|
-
$ === ue.favorite && (D() ? q() :
|
|
3095
|
+
$ === ue.favorite && (D() ? q() : S([], (g = l.lookupState) == null ? void 0 : g.columns));
|
|
3096
3096
|
}), W(() => F.value, ($, Z) => {
|
|
3097
|
-
o.value === ue.favorite && $ && (v() ? q() :
|
|
3097
|
+
o.value === ue.favorite && $ && (v() ? q() : S(n.favoriteItems || [], null), F.value = !1);
|
|
3098
3098
|
});
|
|
3099
3099
|
const R = {
|
|
3100
3100
|
fitColumns: !0,
|
|
@@ -3106,7 +3106,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3106
3106
|
showCheckbox: e.multiSelect,
|
|
3107
3107
|
multiSelectMode: "OnCheckAndClick"
|
|
3108
3108
|
};
|
|
3109
|
-
function
|
|
3109
|
+
function C($) {
|
|
3110
3110
|
v() ? u($) : h($);
|
|
3111
3111
|
}
|
|
3112
3112
|
function k($) {
|
|
@@ -3138,7 +3138,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3138
3138
|
showBorder: !0,
|
|
3139
3139
|
virtualized: !0,
|
|
3140
3140
|
rowOption: t,
|
|
3141
|
-
onSelectionUpdate:
|
|
3141
|
+
onSelectionUpdate: C,
|
|
3142
3142
|
onUnSelectItem: k,
|
|
3143
3143
|
onDblclickNode: P
|
|
3144
3144
|
}, null);
|
|
@@ -3161,7 +3161,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3161
3161
|
virtualized: !0,
|
|
3162
3162
|
fit: !0,
|
|
3163
3163
|
selection: j,
|
|
3164
|
-
onSelectionUpdate:
|
|
3164
|
+
onSelectionUpdate: C,
|
|
3165
3165
|
onUnSelectItem: k,
|
|
3166
3166
|
onDoubleClickRow: x
|
|
3167
3167
|
}, null);
|
|
@@ -3242,7 +3242,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3242
3242
|
width: "0px",
|
|
3243
3243
|
height: "0px"
|
|
3244
3244
|
});
|
|
3245
|
-
let
|
|
3245
|
+
let S;
|
|
3246
3246
|
function q() {
|
|
3247
3247
|
var $, Z;
|
|
3248
3248
|
const x = (($ = h.value) == null ? void 0 : $.offsetHeight) - 100, P = 200, X = s.value.length * 28 + 60, ie = X > x ? x : X < P ? P : X;
|
|
@@ -3259,9 +3259,9 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3259
3259
|
keepScrollTop: !0
|
|
3260
3260
|
});
|
|
3261
3261
|
}), W(() => h.value, (x) => {
|
|
3262
|
-
|
|
3262
|
+
S = new ResizeObserver(() => {
|
|
3263
3263
|
h.value && q();
|
|
3264
|
-
}),
|
|
3264
|
+
}), S.observe(h.value);
|
|
3265
3265
|
});
|
|
3266
3266
|
const R = H(() => (s.value || []).length > 0), j = H(() => ({
|
|
3267
3267
|
display: "flex",
|
|
@@ -3270,7 +3270,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3270
3270
|
cursor: R.value ? "pointer" : "not-allowed",
|
|
3271
3271
|
pointerEvents: R.value ? "auto" : "none"
|
|
3272
3272
|
}));
|
|
3273
|
-
function
|
|
3273
|
+
function C() {
|
|
3274
3274
|
const x = c == null ? void 0 : c.messages.clearSelections;
|
|
3275
3275
|
t == null || t.question(x, "", () => {
|
|
3276
3276
|
l();
|
|
@@ -3279,7 +3279,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3279
3279
|
Se(() => {
|
|
3280
3280
|
q();
|
|
3281
3281
|
}), Ae(() => {
|
|
3282
|
-
|
|
3282
|
+
S && h.value && S.unobserve(h.value);
|
|
3283
3283
|
});
|
|
3284
3284
|
function k() {
|
|
3285
3285
|
var x;
|
|
@@ -3296,7 +3296,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3296
3296
|
}, null), [[Mt("popover"), f.value, "toggle"]]), R.value && E("button", {
|
|
3297
3297
|
class: "btn btn-link btn-sm p-0 pl-2",
|
|
3298
3298
|
style: "line-height:24px",
|
|
3299
|
-
onClick:
|
|
3299
|
+
onClick: C
|
|
3300
3300
|
}, [c.buttons.clear])]), E(Ht, {
|
|
3301
3301
|
id: "lookup-selected-popover",
|
|
3302
3302
|
customStyles: {
|
|
@@ -3434,7 +3434,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3434
3434
|
function V(P) {
|
|
3435
3435
|
a.emit("closeModal", P);
|
|
3436
3436
|
}
|
|
3437
|
-
async function
|
|
3437
|
+
async function S(P) {
|
|
3438
3438
|
await m() && V(P);
|
|
3439
3439
|
}
|
|
3440
3440
|
async function q(P) {
|
|
@@ -3445,7 +3445,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3445
3445
|
}
|
|
3446
3446
|
const j = H(() => ({
|
|
3447
3447
|
transform: `translate3d(${t.value === ue.favorite ? 84 : 0}px, 0px, 0px)`
|
|
3448
|
-
})),
|
|
3448
|
+
})), C = H(() => (P) => ({
|
|
3449
3449
|
visibility: t.value === P ? "visible" : "hidden",
|
|
3450
3450
|
position: "absolute",
|
|
3451
3451
|
top: 0,
|
|
@@ -3506,10 +3506,10 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3506
3506
|
style: "position: relative;"
|
|
3507
3507
|
}, [E("div", {
|
|
3508
3508
|
class: "h-100 d-flex flex-column f-utils-fill w-100",
|
|
3509
|
-
style:
|
|
3509
|
+
style: C.value(ue.dataList)
|
|
3510
3510
|
}, [a.slots.default && a.slots.default()]), E("div", {
|
|
3511
3511
|
class: "h-100 d-flex flex-column px-2 f-utils-fill w-100",
|
|
3512
|
-
style:
|
|
3512
|
+
style: C.value(ue.favorite)
|
|
3513
3513
|
}, [a.slots.fav && a.slots.fav()])]), E("div", {
|
|
3514
3514
|
class: "modal-footer"
|
|
3515
3515
|
}, [E("div", {
|
|
@@ -3537,7 +3537,7 @@ const Nn = /* @__PURE__ */ me({
|
|
|
3537
3537
|
name: "accept",
|
|
3538
3538
|
type: "button",
|
|
3539
3539
|
class: "btn btn-primary",
|
|
3540
|
-
onClick:
|
|
3540
|
+
onClick: S
|
|
3541
3541
|
}, [i.ok])])]);
|
|
3542
3542
|
}
|
|
3543
3543
|
});
|
|
@@ -3563,8 +3563,8 @@ function jn(e, a, t, {
|
|
|
3563
3563
|
const r = Q(Ge, null), d = Q("FLoadingService"), f = N(), y = N(
|
|
3564
3564
|
"accept"
|
|
3565
3565
|
/* accept */
|
|
3566
|
-
), F = N(), { lookupStates: v } = c, { queryState: h, lookupState: p, navigationState: u, pageInfoState: m, searchState: T, selectionState: I, lookupOptions: D } = v, { isDoubleList: V } = Te(e, v),
|
|
3567
|
-
D.dialog =
|
|
3566
|
+
), F = N(), { lookupStates: v } = c, { queryState: h, lookupState: p, navigationState: u, pageInfoState: m, searchState: T, selectionState: I, lookupOptions: D } = v, { isDoubleList: V } = Te(e, v), S = Object.assign({}, un, D.dialog);
|
|
3567
|
+
D.dialog = S;
|
|
3568
3568
|
const q = { position: "top-center" }, R = () => {
|
|
3569
3569
|
const w = t.value.map((M) => Me(M, D.textField)).join(e.separator), b = t.value.map((M) => M[D.idField]).join(e.separator);
|
|
3570
3570
|
i.value = w, c.idValues.value = b, a.emit("update:modelValue", w), a.emit("update:idValue", b);
|
|
@@ -3575,14 +3575,14 @@ function jn(e, a, t, {
|
|
|
3575
3575
|
message: w.message
|
|
3576
3576
|
} : { shouldClose: w, message: "" };
|
|
3577
3577
|
}
|
|
3578
|
-
const
|
|
3578
|
+
const C = async () => {
|
|
3579
3579
|
const w = { items: t.value, mappingFields: D.mappingFields, options: { ...D } };
|
|
3580
3580
|
a.emit("update:dataMapping", w), Be(e, w);
|
|
3581
3581
|
const b = await n(w);
|
|
3582
3582
|
return j(b);
|
|
3583
3583
|
};
|
|
3584
3584
|
async function k() {
|
|
3585
|
-
return R(), await
|
|
3585
|
+
return R(), await C();
|
|
3586
3586
|
}
|
|
3587
3587
|
function x() {
|
|
3588
3588
|
return y.value = "cancel", !0;
|
|
@@ -3617,18 +3617,18 @@ function jn(e, a, t, {
|
|
|
3617
3617
|
return G ? (y.value = "accept", !0) : (te && (r == null || r.warning({ message: te, ...q })), !1);
|
|
3618
3618
|
}
|
|
3619
3619
|
function g() {
|
|
3620
|
-
const w = (
|
|
3620
|
+
const w = (S == null ? void 0 : S.height) || 620, b = (S == null ? void 0 : S.width) || 590, M = (S == null ? void 0 : S.minWidth) || 300, G = (S == null ? void 0 : S.minHeight) || 200, te = {
|
|
3621
3621
|
height: w,
|
|
3622
3622
|
width: b,
|
|
3623
3623
|
minWidth: M,
|
|
3624
3624
|
minHeight: G
|
|
3625
3625
|
};
|
|
3626
|
-
return V() && (te.width = (
|
|
3626
|
+
return V() && (te.width = (S == null ? void 0 : S.width) || 960), te;
|
|
3627
3627
|
}
|
|
3628
|
-
const { width: L, height: A, minHeight: _, minWidth: Y } = g(), ee = !0, ne = ee && ((
|
|
3629
|
-
|
|
3628
|
+
const { width: L, height: A, minHeight: _, minWidth: Y } = g(), ee = !0, ne = ee && ((S == null ? void 0 : S.resizeable) == null ? !0 : S == null ? void 0 : S.resizeable);
|
|
3629
|
+
S.rememberSize = S.rememberSize && ne;
|
|
3630
3630
|
const J = {
|
|
3631
|
-
title:
|
|
3631
|
+
title: S == null ? void 0 : S.title,
|
|
3632
3632
|
fitContent: !1,
|
|
3633
3633
|
showHeader: !1,
|
|
3634
3634
|
dragHandle: ".lookup-modal-header",
|
|
@@ -3638,7 +3638,7 @@ function jn(e, a, t, {
|
|
|
3638
3638
|
minHeight: _,
|
|
3639
3639
|
resizeable: ne,
|
|
3640
3640
|
draggable: ee,
|
|
3641
|
-
enableEsc: (
|
|
3641
|
+
enableEsc: (S == null ? void 0 : S.enableEsc) == null ? !0 : S == null ? void 0 : S.enableEsc,
|
|
3642
3642
|
closedCallback: (w, b) => {
|
|
3643
3643
|
const M = { type: y.value, button: w == null ? void 0 : w.target };
|
|
3644
3644
|
if ((b === "esc" || b === "icon") && (M.type = "esc"), M.type === "accept" && (M.items = t.value), (M.type === "cancel" || M.type === "esc") && (e.allowFreeInput || (i.value = e.modelValue)), s && e.enableUserData) {
|
|
@@ -3651,7 +3651,7 @@ function jn(e, a, t, {
|
|
|
3651
3651
|
},
|
|
3652
3652
|
showButtons: !1,
|
|
3653
3653
|
resizeHandle: (w) => {
|
|
3654
|
-
if (
|
|
3654
|
+
if (S.rememberSize) {
|
|
3655
3655
|
f.value = w;
|
|
3656
3656
|
const { width: b, height: M } = w.newSize.size;
|
|
3657
3657
|
!(w.isMaximized ?? !1) && s.setDialogSize({ width: Math.round(b), height: Math.round(M) });
|
|
@@ -3670,7 +3670,7 @@ function jn(e, a, t, {
|
|
|
3670
3670
|
};
|
|
3671
3671
|
async function O() {
|
|
3672
3672
|
var w;
|
|
3673
|
-
if (e.enableUserData && (await s.getUserData(), (w = s == null ? void 0 : s.userDataState) != null && w.data &&
|
|
3673
|
+
if (e.enableUserData && (await s.getUserData(), (w = s == null ? void 0 : s.userDataState) != null && w.data && S.rememberSize)) {
|
|
3674
3674
|
const { size: b } = s.userDataState.data;
|
|
3675
3675
|
b && Object.assign(J, b);
|
|
3676
3676
|
}
|
|
@@ -3694,7 +3694,7 @@ function jn(e, a, t, {
|
|
|
3694
3694
|
submitDialog: Z,
|
|
3695
3695
|
destroyed: ie,
|
|
3696
3696
|
setModelAndIdValue: R,
|
|
3697
|
-
runDictPickedAsync:
|
|
3697
|
+
runDictPickedAsync: C
|
|
3698
3698
|
};
|
|
3699
3699
|
}
|
|
3700
3700
|
function qn(e) {
|
|
@@ -3712,61 +3712,61 @@ function Wn(e, a, t) {
|
|
|
3712
3712
|
return qt(R) && p.value && !f.value ? (u.value = !0, p.value = !1, !1) : p.value;
|
|
3713
3713
|
}
|
|
3714
3714
|
function T(R) {
|
|
3715
|
-
var
|
|
3715
|
+
var C;
|
|
3716
3716
|
if (!R || R.length !== 1)
|
|
3717
3717
|
return;
|
|
3718
3718
|
const [j] = R;
|
|
3719
|
-
return (
|
|
3719
|
+
return (C = j.children) != null && C.length ? T(j.children) : j.data;
|
|
3720
3720
|
}
|
|
3721
3721
|
function I(R, j) {
|
|
3722
3722
|
var k;
|
|
3723
3723
|
if (!j || j.length !== 1)
|
|
3724
3724
|
return !1;
|
|
3725
|
-
const [
|
|
3726
|
-
return R ? (k =
|
|
3725
|
+
const [C] = j;
|
|
3726
|
+
return R ? (k = C.children) != null && k.length ? T(C.children) : C.data : C;
|
|
3727
3727
|
}
|
|
3728
3728
|
async function D(R) {
|
|
3729
3729
|
const j = {
|
|
3730
3730
|
search: { field: "*", value: R, type: e.openType === "Modal" ? "equal" : "like" },
|
|
3731
3731
|
action: "search"
|
|
3732
3732
|
};
|
|
3733
|
-
p.value && (document.body.classList.add("lookup-modal-open"), d.loadData(j, async (
|
|
3733
|
+
p.value && (document.body.classList.add("lookup-modal-open"), d.loadData(j, async (C) => {
|
|
3734
3734
|
var k;
|
|
3735
|
-
if (
|
|
3736
|
-
const x = F(
|
|
3735
|
+
if (C.searchFields && C.columns) {
|
|
3736
|
+
const x = F(C.searchFields, C.columns);
|
|
3737
3737
|
v.searchFields = x;
|
|
3738
3738
|
}
|
|
3739
3739
|
if (p.value = !1, e.openType === "Modal") {
|
|
3740
|
-
const x = I(((k =
|
|
3740
|
+
const x = I(((k = C.displayType) == null ? void 0 : k.toLowerCase()) === "treelist", C.items);
|
|
3741
3741
|
if (x) {
|
|
3742
3742
|
c.value = [x], s(), h.value = "", document.body.classList.remove("lookup-modal-open");
|
|
3743
3743
|
return;
|
|
3744
3744
|
}
|
|
3745
3745
|
l();
|
|
3746
3746
|
} else
|
|
3747
|
-
v.action = R ? "search" : "list", v.items =
|
|
3747
|
+
v.action = R ? "search" : "list", v.items = C.items, v.total = C.total, v.selectedData = C.selectedData || [], C.pageInfo && (v.pageInfo = { ...C.pageInfo });
|
|
3748
3748
|
}));
|
|
3749
3749
|
}
|
|
3750
3750
|
function V(R, j) {
|
|
3751
3751
|
var k;
|
|
3752
|
-
let
|
|
3753
|
-
if (
|
|
3752
|
+
let C = (k = R.target) == null ? void 0 : k.value;
|
|
3753
|
+
if (C !== "" && (C = C.trim()), m(C)) {
|
|
3754
3754
|
if (e.allowFreeInput)
|
|
3755
3755
|
if (e.openType === "Modal") {
|
|
3756
|
-
nt(e, a,
|
|
3756
|
+
nt(e, a, C, r);
|
|
3757
3757
|
return;
|
|
3758
3758
|
} else {
|
|
3759
3759
|
const { popupState: x } = y;
|
|
3760
|
-
x.canClose = !0, c.value = [], nt(e, a,
|
|
3760
|
+
x.canClose = !0, c.value = [], nt(e, a, C, r);
|
|
3761
3761
|
}
|
|
3762
3762
|
if (e.openType !== "Modal" && !f.value) {
|
|
3763
3763
|
l(), p.value = !1;
|
|
3764
3764
|
return;
|
|
3765
3765
|
}
|
|
3766
|
-
r.uri ? D(
|
|
3766
|
+
r.uri ? D(C) : a.emit("textChanged", { value: C, type: j ? "blur" : "enter" });
|
|
3767
3767
|
}
|
|
3768
3768
|
}
|
|
3769
|
-
function
|
|
3769
|
+
function S(R) {
|
|
3770
3770
|
n.value && V(R, !0);
|
|
3771
3771
|
}
|
|
3772
3772
|
function q(R) {
|
|
@@ -3775,7 +3775,7 @@ function Wn(e, a, t) {
|
|
|
3775
3775
|
return {
|
|
3776
3776
|
changeOnBlur: n,
|
|
3777
3777
|
changeOnEnter: i,
|
|
3778
|
-
onInputBlur:
|
|
3778
|
+
onInputBlur: S,
|
|
3779
3779
|
onEnterKeyDown: q,
|
|
3780
3780
|
isClear: u,
|
|
3781
3781
|
queryDataBySearchKeys: D
|
|
@@ -3900,67 +3900,67 @@ function Jn(e, a, t, {
|
|
|
3900
3900
|
ge(Ee, p);
|
|
3901
3901
|
const u = Q(Ge, null), m = H(() => {
|
|
3902
3902
|
var k;
|
|
3903
|
-
const
|
|
3904
|
-
return
|
|
3903
|
+
const C = (k = t.value) == null ? void 0 : k.popoverRef;
|
|
3904
|
+
return C ? C.shown : !1;
|
|
3905
3905
|
});
|
|
3906
3906
|
async function T() {
|
|
3907
3907
|
if (!f.canClose)
|
|
3908
3908
|
return !1;
|
|
3909
3909
|
if (!y.value.length)
|
|
3910
|
-
return !0;
|
|
3911
|
-
let
|
|
3912
|
-
v.multiSelect ?
|
|
3910
|
+
return r(), !0;
|
|
3911
|
+
let C = null;
|
|
3912
|
+
v.multiSelect ? C = await d() : C = await s();
|
|
3913
3913
|
const {
|
|
3914
3914
|
shouldClose: k,
|
|
3915
3915
|
message: x
|
|
3916
|
-
} =
|
|
3916
|
+
} = C;
|
|
3917
3917
|
return k ? !0 : (x && (u == null || u.warning({
|
|
3918
3918
|
message: x,
|
|
3919
3919
|
position: "top-center"
|
|
3920
3920
|
})), f.canClose = !1, !1);
|
|
3921
3921
|
}
|
|
3922
3922
|
async function I() {
|
|
3923
|
-
var
|
|
3924
|
-
(
|
|
3923
|
+
var C;
|
|
3924
|
+
(C = t.value) == null || C.hidePopup();
|
|
3925
3925
|
}
|
|
3926
|
-
e.openType === "Popup" && W(() => y.value, (
|
|
3926
|
+
e.openType === "Popup" && W(() => y.value, (C) => {
|
|
3927
3927
|
m.value && e.multiSelect && r();
|
|
3928
3928
|
});
|
|
3929
3929
|
const D = () => {
|
|
3930
3930
|
const {
|
|
3931
|
-
width:
|
|
3931
|
+
width: C,
|
|
3932
3932
|
height: k
|
|
3933
3933
|
} = e.dialog;
|
|
3934
3934
|
return {
|
|
3935
|
-
width:
|
|
3935
|
+
width: C || 460,
|
|
3936
3936
|
height: k || 380
|
|
3937
3937
|
};
|
|
3938
3938
|
}, V = H(() => {
|
|
3939
|
-
var
|
|
3940
|
-
return (
|
|
3939
|
+
var C;
|
|
3940
|
+
return (C = t.value) == null ? void 0 : C.popoverRef;
|
|
3941
3941
|
});
|
|
3942
|
-
async function
|
|
3942
|
+
async function S() {
|
|
3943
3943
|
m.value && I(), F.value = "", l(), a.emit("popupClosed"), f.canClose = !0, document.body.classList.remove("lookup-modal-open");
|
|
3944
3944
|
}
|
|
3945
3945
|
function q() {
|
|
3946
|
-
var
|
|
3947
|
-
m.value || (
|
|
3946
|
+
var C;
|
|
3947
|
+
m.value || (C = t.value) == null || C.showPopup();
|
|
3948
3948
|
}
|
|
3949
3949
|
function R() {
|
|
3950
3950
|
f.canClose = !0, v.multiSelect || I();
|
|
3951
3951
|
}
|
|
3952
3952
|
function j() {
|
|
3953
3953
|
const {
|
|
3954
|
-
width:
|
|
3954
|
+
width: C,
|
|
3955
3955
|
height: k
|
|
3956
3956
|
} = D();
|
|
3957
3957
|
return E(Hn, ot({
|
|
3958
|
-
width:
|
|
3958
|
+
width: C,
|
|
3959
3959
|
height: k,
|
|
3960
3960
|
useHttpComposition: n,
|
|
3961
3961
|
locales: c,
|
|
3962
3962
|
selectionsManager: i,
|
|
3963
|
-
onHiddenPopup:
|
|
3963
|
+
onHiddenPopup: S,
|
|
3964
3964
|
onSelectionsChanged: R
|
|
3965
3965
|
}, e), null);
|
|
3966
3966
|
}
|
|
@@ -3991,11 +3991,11 @@ const we = /* @__PURE__ */ me({
|
|
|
3991
3991
|
dictPicked: D
|
|
3992
3992
|
} = qn(e), {
|
|
3993
3993
|
modalOptions: V,
|
|
3994
|
-
beforeOpenDialog:
|
|
3994
|
+
beforeOpenDialog: S,
|
|
3995
3995
|
dialogSize: q,
|
|
3996
3996
|
customData: R,
|
|
3997
3997
|
updateModelValue: j,
|
|
3998
|
-
cancelDialog:
|
|
3998
|
+
cancelDialog: C,
|
|
3999
3999
|
submitDialog: k,
|
|
4000
4000
|
destroyed: x,
|
|
4001
4001
|
setModelAndIdValue: P,
|
|
@@ -4037,7 +4037,7 @@ const we = /* @__PURE__ */ me({
|
|
|
4037
4037
|
isClear: ne,
|
|
4038
4038
|
queryDataBySearchKeys: J
|
|
4039
4039
|
} = Wn(e, a, {
|
|
4040
|
-
beforeOpenDialog:
|
|
4040
|
+
beforeOpenDialog: S,
|
|
4041
4041
|
updateModelValue: j,
|
|
4042
4042
|
selectedItems: y,
|
|
4043
4043
|
openDialog: _,
|
|
@@ -4067,7 +4067,7 @@ const we = /* @__PURE__ */ me({
|
|
|
4067
4067
|
(B || re) && ((ke = i.value) == null || ke.forceClosePopup());
|
|
4068
4068
|
});
|
|
4069
4069
|
async function b() {
|
|
4070
|
-
a.emit("update:modelValue", ""), w(""), c.value === "Popup" && g.value && (h.canClose = !0, ne.value || (F.value = !0, J("")));
|
|
4070
|
+
a.emit("update:modelValue", ""), w(""), v.value = "", c.value === "Popup" && g.value && (h.canClose = !0, ne.value || (F.value = !0, J("")));
|
|
4071
4071
|
const B = {
|
|
4072
4072
|
items: null,
|
|
4073
4073
|
mappingFields: f.mappingFields,
|
|
@@ -4156,7 +4156,7 @@ const we = /* @__PURE__ */ me({
|
|
|
4156
4156
|
buttonBehavior: c.value,
|
|
4157
4157
|
modalOptions: O,
|
|
4158
4158
|
onClear: b,
|
|
4159
|
-
beforeOpen:
|
|
4159
|
+
beforeOpen: S,
|
|
4160
4160
|
onBlur: Y,
|
|
4161
4161
|
onKeydown: ee,
|
|
4162
4162
|
placeholder: r.placeholder,
|
|
@@ -4180,7 +4180,7 @@ const we = /* @__PURE__ */ me({
|
|
|
4180
4180
|
useHttpComposition: d,
|
|
4181
4181
|
userDataService: p,
|
|
4182
4182
|
useDialog: {
|
|
4183
|
-
cancelDialog:
|
|
4183
|
+
cancelDialog: C,
|
|
4184
4184
|
submitDialog: k
|
|
4185
4185
|
},
|
|
4186
4186
|
showSelectedList: u.value,
|