@kong-ui-public/entities-plugins 9.202.1 → 9.202.2-pr.3253.b624ef723.0
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 +12 -7
- package/dist/entities-plugins.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/free-form/plugins/rate-limiting-advanced/RateLimitingAdvancedForm.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/ArrayField.vue.d.ts.map +1 -1
- package/dist/types/components/free-form/shared/EnumField.vue.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -6948,7 +6948,7 @@ const ma = /* @__PURE__ */ _e({
|
|
|
6948
6948
|
setup(e, { emit: t }) {
|
|
6949
6949
|
var I;
|
|
6950
6950
|
fr((E) => ({
|
|
6951
|
-
|
|
6951
|
+
v001f7318: U.value
|
|
6952
6952
|
}));
|
|
6953
6953
|
const n = e, i = t, { i18n: { t: o } } = Ze(), { getDefault: a, getSchema: r } = At(), { value: s, hide: l, ...c } = on(xt(n, "name")), m = Rn(c.path, xt({ ...n, ...ca() })), d = j(() => {
|
|
6954
6954
|
if (!c.path) throw new Error("Field path is required for sub-schema retrieval");
|
|
@@ -6971,8 +6971,8 @@ const ma = /* @__PURE__ */ _e({
|
|
|
6971
6971
|
const E = a(Et(c.path.value, Fu));
|
|
6972
6972
|
Array.isArray(s.value) || (s.value = []), s.value.push(E), i("add"), n.appearance === "tabs" && (await wn(), C.value = ($ = v.value[v.value.length - 1]) == null ? void 0 : $.hash), await wn(), T(f.value.length + 1);
|
|
6973
6973
|
}, k = async (E) => {
|
|
6974
|
-
var
|
|
6975
|
-
Array.isArray(s.value) && s.value.splice(E, 1), i("remove", E), n.appearance === "tabs" && (C.value = (
|
|
6974
|
+
var $, R, O;
|
|
6975
|
+
Array.isArray(s.value) && (s.value.splice(E, 1), s.value.length === 0 && !((R = ($ = c.schema) == null ? void 0 : $.value) != null && R.required) && (s.value = null)), i("remove", E), n.appearance === "tabs" && (C.value = (O = v.value[Math.max(0, E - 1)]) == null ? void 0 : O.hash);
|
|
6976
6976
|
}, w = It("root");
|
|
6977
6977
|
function T(E) {
|
|
6978
6978
|
if (!w.value)
|
|
@@ -7176,7 +7176,7 @@ const ma = /* @__PURE__ */ _e({
|
|
|
7176
7176
|
]);
|
|
7177
7177
|
};
|
|
7178
7178
|
}
|
|
7179
|
-
}), $i = /* @__PURE__ */ Pe(Kx, [["__scopeId", "data-v-
|
|
7179
|
+
}), $i = /* @__PURE__ */ Pe(Kx, [["__scopeId", "data-v-a883358f"]]), jx = /* @__PURE__ */ _e({
|
|
7180
7180
|
__name: "SlideTransition",
|
|
7181
7181
|
setup(e) {
|
|
7182
7182
|
const t = [
|
|
@@ -7647,6 +7647,11 @@ const ma = /* @__PURE__ */ _e({
|
|
|
7647
7647
|
// If multiple and value is null/undefined, return empty array for v-model
|
|
7648
7648
|
get: () => d.value && (a == null ? void 0 : a.value) == null ? [] : a.value,
|
|
7649
7649
|
set: (f) => {
|
|
7650
|
+
var g, h;
|
|
7651
|
+
if (d.value && Array.isArray(f) && f.length === 0 && !((h = (g = s.schema) == null ? void 0 : g.value) != null && h.required)) {
|
|
7652
|
+
a.value = null;
|
|
7653
|
+
return;
|
|
7654
|
+
}
|
|
7650
7655
|
a.value = f;
|
|
7651
7656
|
}
|
|
7652
7657
|
}), c = Rn(s.path, i), m = j(() => e.items ? e.items : s.path ? o(s.path.value) : []), d = j(() => {
|
|
@@ -7696,7 +7701,7 @@ const ma = /* @__PURE__ */ _e({
|
|
|
7696
7701
|
]);
|
|
7697
7702
|
};
|
|
7698
7703
|
}
|
|
7699
|
-
}), Xt = /* @__PURE__ */ Pe(nA, [["__scopeId", "data-v-
|
|
7704
|
+
}), Xt = /* @__PURE__ */ Pe(nA, [["__scopeId", "data-v-906abe4a"]]), iA = ["data-testid"], oA = ["innerHTML"], aA = /* @__PURE__ */ _e({
|
|
7700
7705
|
inheritAttrs: !1,
|
|
7701
7706
|
__name: "JsonField",
|
|
7702
7707
|
props: {
|
|
@@ -27037,8 +27042,8 @@ const $L = /* @__PURE__ */ _e({
|
|
|
27037
27042
|
const t = e, n = Pn();
|
|
27038
27043
|
sn(wi, n == null ? void 0 : n[ai]);
|
|
27039
27044
|
function i(o, a) {
|
|
27040
|
-
var r
|
|
27041
|
-
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace,
|
|
27045
|
+
var r;
|
|
27046
|
+
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace, t.onFormChange(o, a);
|
|
27042
27047
|
}
|
|
27043
27048
|
return (o, a) => (A(), J(Fi, Ve(t, { "on-form-change": i }), {
|
|
27044
27049
|
default: P(() => [
|