@kong-ui-public/entities-plugins 8.7.1 → 8.7.2
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/dist/entities-plugins.es.js +8 -12
- package/dist/entities-plugins.umd.js +19 -19
- package/dist/style.css +1 -1
- package/package.json +8 -8
|
@@ -273,19 +273,16 @@ function zc(e, t, n, i = {
|
|
|
273
273
|
}, S = z(""), j = async (O) => {
|
|
274
274
|
var k, m, f;
|
|
275
275
|
if (S.value !== O) {
|
|
276
|
-
if (O
|
|
276
|
+
if (S.value = O ?? "", !O) {
|
|
277
277
|
p.value = A.value;
|
|
278
278
|
return;
|
|
279
|
-
}
|
|
280
|
-
S.value = O || "";
|
|
279
|
+
}
|
|
281
280
|
if (v.value === void 0)
|
|
282
281
|
try {
|
|
283
282
|
if (l.value = !0, u.value = "", c.value = "", e.app === "konnect") {
|
|
284
|
-
|
|
285
|
-
O && (E += `/${O}`);
|
|
286
|
-
const { data: B } = await a.get(`${E}?size=${n}`);
|
|
283
|
+
const E = `${M.value}/${O}`, { data: B } = await a.get(`${E}?size=${n}`);
|
|
287
284
|
i.fetchedItemsKey in B ? p.value = B[i.fetchedItemsKey] : B != null && B[i.exactMatchKey ?? "id"] ? p.value = [B] : p.value = [];
|
|
288
|
-
} else
|
|
285
|
+
} else {
|
|
289
286
|
const E = [];
|
|
290
287
|
I(O) && i.searchKeys.includes("id") ? E.push((async () => {
|
|
291
288
|
const { data: R } = await a.get(`${M.value}/${O}`);
|
|
@@ -303,15 +300,14 @@ function zc(e, t, n, i = {
|
|
|
303
300
|
V.has(H.id) || (V.add(H.id), p.value.push(H));
|
|
304
301
|
});
|
|
305
302
|
});
|
|
306
|
-
}
|
|
307
|
-
p.value = A.value;
|
|
303
|
+
}
|
|
308
304
|
} catch (E) {
|
|
309
305
|
((m = E == null ? void 0 : E.response) == null ? void 0 : m.status) === 404 ? c.value = r("debouncedFilter.errors.invalid") : (p.value = [], u.value = r("debouncedFilter.errors.fetch"));
|
|
310
306
|
} finally {
|
|
311
307
|
l.value = !1;
|
|
312
308
|
}
|
|
313
309
|
else
|
|
314
|
-
l.value = !0, c.value = "",
|
|
310
|
+
l.value = !0, c.value = "", p.value = (f = v.value) == null ? void 0 : f.filter((E) => {
|
|
315
311
|
var B;
|
|
316
312
|
let V = !1;
|
|
317
313
|
for (const R of i.searchKeys) {
|
|
@@ -319,7 +315,7 @@ function zc(e, t, n, i = {
|
|
|
319
315
|
N != null && N.includes(O.toLowerCase()) && (V = !0);
|
|
320
316
|
}
|
|
321
317
|
return V;
|
|
322
|
-
}), (!p.value || !p.value.length) && (c.value = r("debouncedFilter.errors.invalid"))
|
|
318
|
+
}), (!p.value || !p.value.length) && (c.value = r("debouncedFilter.errors.invalid")), l.value = !1;
|
|
323
319
|
}
|
|
324
320
|
};
|
|
325
321
|
return {
|
|
@@ -9868,7 +9864,7 @@ const y0 = /* @__PURE__ */ Re(f0, [["render", v0], ["__scopeId", "data-v-6f4089b
|
|
|
9868
9864
|
]);
|
|
9869
9865
|
};
|
|
9870
9866
|
}
|
|
9871
|
-
}), Zl = /* @__PURE__ */ Re(H0, [["__scopeId", "data-v-
|
|
9867
|
+
}), Zl = /* @__PURE__ */ Re(H0, [["__scopeId", "data-v-eb9975cc"]]), V0 = (e) => (Ze("data-v-37458a0a"), e = e(), Qe(), e), F0 = { class: "multi-item-wrapper" }, K0 = /* @__PURE__ */ V0(() => /* @__PURE__ */ y("hr", null, null, -1)), z0 = /* @__PURE__ */ ue({
|
|
9872
9868
|
__name: "FieldArrayMultiItem",
|
|
9873
9869
|
emits: ["remove-item"],
|
|
9874
9870
|
setup(e) {
|