@kong-ui-public/entities-plugins 9.202.2-pr.3253.6926b8a78.0 → 9.202.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 +30 -34
- 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 +2 -3
- package/dist/types/components/free-form/shared/EnumField.vue.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -6948,7 +6948,7 @@ const ma = /* @__PURE__ */ _e({
|
|
|
6948
6948
|
setup(e, { emit: t }) {
|
|
6949
6949
|
var I;
|
|
6950
6950
|
fr((E) => ({
|
|
6951
|
-
|
|
6951
|
+
v35a89c75: 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");
|
|
@@ -6972,7 +6972,7 @@ const ma = /* @__PURE__ */ _e({
|
|
|
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
6974
|
var $;
|
|
6975
|
-
Array.isArray(s.value) &&
|
|
6975
|
+
Array.isArray(s.value) && s.value.splice(E, 1), i("remove", E), n.appearance === "tabs" && (C.value = ($ = v.value[Math.max(0, E - 1)]) == null ? void 0 : $.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-423bff1e"]]), jx = /* @__PURE__ */ _e({
|
|
7180
7180
|
__name: "SlideTransition",
|
|
7181
7181
|
setup(e) {
|
|
7182
7182
|
const t = [
|
|
@@ -7643,55 +7643,51 @@ const ma = /* @__PURE__ */ _e({
|
|
|
7643
7643
|
setup(e, { emit: t }) {
|
|
7644
7644
|
const n = t, i = Zn(e, ["name", "items", "multiple", "autofocus"]), { getSelectItems: o } = At(), { value: a, hide: r, ...s } = on(
|
|
7645
7645
|
xt(() => e.name)
|
|
7646
|
-
), l =
|
|
7647
|
-
function c(g) {
|
|
7648
|
-
return p.value && Array.isArray(g) && g.length === 0 && !l.value.required ? null : g;
|
|
7649
|
-
}
|
|
7650
|
-
const m = co(e, "modelValue", {
|
|
7646
|
+
), l = co(e, "modelValue", {
|
|
7651
7647
|
// If multiple and value is null/undefined, return empty array for v-model
|
|
7652
|
-
get: () =>
|
|
7653
|
-
set: (
|
|
7654
|
-
a.value =
|
|
7648
|
+
get: () => d.value && (a == null ? void 0 : a.value) == null ? [] : a.value,
|
|
7649
|
+
set: (f) => {
|
|
7650
|
+
a.value = f;
|
|
7655
7651
|
}
|
|
7656
|
-
}),
|
|
7657
|
-
var
|
|
7658
|
-
return e.multiple !== void 0 ? e.multiple : ((
|
|
7659
|
-
}),
|
|
7660
|
-
return (
|
|
7661
|
-
var
|
|
7662
|
-
const
|
|
7663
|
-
return s.error ? (A(), J(
|
|
7652
|
+
}), c = Rn(s.path, i), m = j(() => e.items ? e.items : s.path ? o(s.path.value) : []), d = j(() => {
|
|
7653
|
+
var f;
|
|
7654
|
+
return e.multiple !== void 0 ? e.multiple : ((f = s.schema.value) == null ? void 0 : f.type) === "set";
|
|
7655
|
+
}), p = j(() => d.value ? tv : nv);
|
|
7656
|
+
return (f, g) => {
|
|
7657
|
+
var y;
|
|
7658
|
+
const h = ce("KAlert");
|
|
7659
|
+
return s.error ? (A(), J(h, {
|
|
7664
7660
|
key: 0,
|
|
7665
7661
|
appearance: "danger",
|
|
7666
7662
|
message: s.error.message
|
|
7667
|
-
}, null, 8, ["message"])) : cn((A(), J(u(
|
|
7668
|
-
modelValue:
|
|
7663
|
+
}, null, 8, ["message"])) : cn((A(), J(u(p), Ve({ key: 1 }, { ...i, ...u(c) }, {
|
|
7664
|
+
modelValue: l.value,
|
|
7669
7665
|
"onUpdate:modelValue": [
|
|
7670
|
-
|
|
7671
|
-
|
|
7666
|
+
g[0] || (g[0] = (_) => l.value = _),
|
|
7667
|
+
g[1] || (g[1] = (_) => n("update", _))
|
|
7672
7668
|
],
|
|
7673
7669
|
class: "ff-enum-field",
|
|
7674
|
-
clearable: !u(
|
|
7670
|
+
clearable: !u(c).required,
|
|
7675
7671
|
"data-autofocus": e.autofocus ? "true" : void 0,
|
|
7676
7672
|
"data-testid": `ff-${s.path.value}`,
|
|
7677
|
-
items:
|
|
7673
|
+
items: m.value,
|
|
7678
7674
|
"kpop-attributes": { "data-testid": `ff-enum-${s.path.value}-items` }
|
|
7679
7675
|
}), St({ _: 2 }, [
|
|
7680
|
-
"tooltip" in
|
|
7676
|
+
"tooltip" in f.$slots || (y = u(c).labelAttributes) != null && y.info ? {
|
|
7681
7677
|
name: "label-tooltip",
|
|
7682
7678
|
fn: P(() => [
|
|
7683
|
-
lt(
|
|
7679
|
+
lt(f.$slots, "tooltip", {}, () => [
|
|
7684
7680
|
W("div", {
|
|
7685
|
-
innerHTML: u(
|
|
7681
|
+
innerHTML: u(c).labelAttributes.info
|
|
7686
7682
|
}, null, 8, tA)
|
|
7687
7683
|
], !0)
|
|
7688
7684
|
]),
|
|
7689
7685
|
key: "0"
|
|
7690
7686
|
} : void 0,
|
|
7691
|
-
|
|
7687
|
+
f.$slots["item-label"] ? {
|
|
7692
7688
|
name: "item-template",
|
|
7693
|
-
fn: P(({ item:
|
|
7694
|
-
lt(
|
|
7689
|
+
fn: P(({ item: _ }) => [
|
|
7690
|
+
lt(f.$slots, "item-label", ri(Zi(_)), void 0, !0)
|
|
7695
7691
|
]),
|
|
7696
7692
|
key: "1"
|
|
7697
7693
|
} : void 0
|
|
@@ -7700,7 +7696,7 @@ const ma = /* @__PURE__ */ _e({
|
|
|
7700
7696
|
]);
|
|
7701
7697
|
};
|
|
7702
7698
|
}
|
|
7703
|
-
}), Xt = /* @__PURE__ */ Pe(nA, [["__scopeId", "data-v-
|
|
7699
|
+
}), Xt = /* @__PURE__ */ Pe(nA, [["__scopeId", "data-v-6fce68d1"]]), iA = ["data-testid"], oA = ["innerHTML"], aA = /* @__PURE__ */ _e({
|
|
7704
7700
|
inheritAttrs: !1,
|
|
7705
7701
|
__name: "JsonField",
|
|
7706
7702
|
props: {
|
|
@@ -27041,8 +27037,8 @@ const $L = /* @__PURE__ */ _e({
|
|
|
27041
27037
|
const t = e, n = Pn();
|
|
27042
27038
|
sn(wi, n == null ? void 0 : n[ai]);
|
|
27043
27039
|
function i(o, a) {
|
|
27044
|
-
var r;
|
|
27045
|
-
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace, t.onFormChange(o, a);
|
|
27040
|
+
var r, s;
|
|
27041
|
+
((r = o.config) == null ? void 0 : r.namespace) === null && delete o.config.namespace, Array.isArray((s = o.config) == null ? void 0 : s.compound_identifier) && o.config.compound_identifier.length === 0 && (o.config.compound_identifier = null), t.onFormChange(o, a);
|
|
27046
27042
|
}
|
|
27047
27043
|
return (o, a) => (A(), J(Fi, Ve(t, { "on-form-change": i }), {
|
|
27048
27044
|
default: P(() => [
|