@kong-ui-public/entities-plugins 9.4.0 → 9.4.1

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.
@@ -1,7 +1,7 @@
1
1
  var Jo = Object.defineProperty;
2
2
  var Xo = (e, t, n) => t in e ? Jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Be = (e, t, n) => Xo(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ref as Z, resolveComponent as V, openBlock as p, createElementBlock as I, createBlock as H, resolveDynamicComponent as Ye, withCtx as E, Fragment as Ae, renderList as Ee, createCommentVNode as ie, createSlots as Dt, renderSlot as ct, normalizeClass as Ie, createTextVNode as me, toDisplayString as F, createVNode as G, createElementVNode as y, normalizeProps as Qo, guardReactiveProps as Zo, defineComponent as ye, provide as rn, useSlots as Xn, computed as N, onMounted as Rn, unref as g, nextTick as Bn, mergeProps as rt, toRefs as Nt, isRef as kn, inject as Es, onBeforeMount as ln, Transition as Wo, resolveDirective as ws, withDirectives as Ke, vModelText as tn, vModelCheckbox as _o, vModelSelect as $o, vModelDynamic as er, vModelRadio as tr, vShow as nr, watch as lt, reactive as mn, Teleport as Cs, withModifiers as fn, onUnmounted as Bs, normalizeStyle as Os, mergeModels as ia, useModel as ir } from "vue";
4
+ import { ref as Z, resolveComponent as V, openBlock as p, createElementBlock as I, createBlock as H, resolveDynamicComponent as Ye, withCtx as E, Fragment as Ae, renderList as Ee, createCommentVNode as ie, createSlots as Dt, renderSlot as ct, normalizeClass as Oe, createTextVNode as me, toDisplayString as F, createVNode as G, createElementVNode as y, normalizeProps as Qo, guardReactiveProps as Zo, defineComponent as ye, provide as rn, useSlots as Xn, computed as N, onMounted as Rn, unref as g, nextTick as Bn, mergeProps as rt, toRefs as Nt, isRef as kn, inject as Es, onBeforeMount as ln, Transition as Wo, resolveDirective as ws, withDirectives as Ke, vModelText as tn, vModelCheckbox as _o, vModelSelect as $o, vModelDynamic as er, vModelRadio as tr, vShow as nr, watch as lt, reactive as mn, Teleport as Cs, withModifiers as fn, onUnmounted as Bs, normalizeStyle as Os, mergeModels as ia, useModel as ir } from "vue";
5
5
  import { useStringHelpers as Pi, ConfigurationSchemaType as Fe, useAxios as Kt, useDebouncedFilter as aa, useHelpers as Qn, useErrors as Zn, EntityBaseFormType as xt, EntityBaseForm as ar, SupportedEntityType as Ei, JsonCodeBlock as sr, YamlCodeBlock as or, TerraformCodeBlock as rr, useGatewayFeatureSupported as lr, useFetcher as cr, useDeleteUrlBuilder as ur, FetcherStatus as dr, EntityBaseTable as pr, EntityFilter as Ar, PermissionsWrapper as Gt, TableTags as gr, EntityToggleModal as mr, EntityDeleteModal as Is, EntityTypes as Ms, ConfigurationSchemaSection as Wt, useSchemaProvider as fr, EntityBaseConfigCard as hr, InternalLinkItem as Ln } from "@kong-ui-public/entities-shared";
6
6
  import { useRouter as Wn, useRoute as vr } from "vue-router";
7
7
  import { createI18n as cn, i18nTComponent as Rs } from "@kong-ui-public/i18n";
@@ -4292,9 +4292,9 @@ var Da = sn && sn.isMap, YA = Da ? Ni(Da) : jA, HA = "[object Set]";
4292
4292
  function VA(e) {
4293
4293
  return It(e) && At(e) == HA;
4294
4294
  }
4295
- var ja = sn && sn.isSet, FA = ja ? Ni(ja) : VA, NA = 1, KA = 2, zA = 4, ro = "[object Arguments]", qA = "[object Array]", JA = "[object Boolean]", XA = "[object Date]", QA = "[object Error]", lo = "[object Function]", ZA = "[object GeneratorFunction]", WA = "[object Map]", _A = "[object Number]", co = "[object Object]", $A = "[object RegExp]", eg = "[object Set]", tg = "[object String]", ng = "[object Symbol]", ig = "[object WeakMap]", ag = "[object ArrayBuffer]", sg = "[object DataView]", og = "[object Float32Array]", rg = "[object Float64Array]", lg = "[object Int8Array]", cg = "[object Int16Array]", ug = "[object Int32Array]", dg = "[object Uint8Array]", pg = "[object Uint8ClampedArray]", Ag = "[object Uint16Array]", gg = "[object Uint32Array]", Oe = {};
4296
- Oe[ro] = Oe[qA] = Oe[ag] = Oe[sg] = Oe[JA] = Oe[XA] = Oe[og] = Oe[rg] = Oe[lg] = Oe[cg] = Oe[ug] = Oe[WA] = Oe[_A] = Oe[co] = Oe[$A] = Oe[eg] = Oe[tg] = Oe[ng] = Oe[dg] = Oe[pg] = Oe[Ag] = Oe[gg] = !0;
4297
- Oe[QA] = Oe[lo] = Oe[ig] = !1;
4295
+ var ja = sn && sn.isSet, FA = ja ? Ni(ja) : VA, NA = 1, KA = 2, zA = 4, ro = "[object Arguments]", qA = "[object Array]", JA = "[object Boolean]", XA = "[object Date]", QA = "[object Error]", lo = "[object Function]", ZA = "[object GeneratorFunction]", WA = "[object Map]", _A = "[object Number]", co = "[object Object]", $A = "[object RegExp]", eg = "[object Set]", tg = "[object String]", ng = "[object Symbol]", ig = "[object WeakMap]", ag = "[object ArrayBuffer]", sg = "[object DataView]", og = "[object Float32Array]", rg = "[object Float64Array]", lg = "[object Int8Array]", cg = "[object Int16Array]", ug = "[object Int32Array]", dg = "[object Uint8Array]", pg = "[object Uint8ClampedArray]", Ag = "[object Uint16Array]", gg = "[object Uint32Array]", Ie = {};
4296
+ Ie[ro] = Ie[qA] = Ie[ag] = Ie[sg] = Ie[JA] = Ie[XA] = Ie[og] = Ie[rg] = Ie[lg] = Ie[cg] = Ie[ug] = Ie[WA] = Ie[_A] = Ie[co] = Ie[$A] = Ie[eg] = Ie[tg] = Ie[ng] = Ie[dg] = Ie[pg] = Ie[Ag] = Ie[gg] = !0;
4297
+ Ie[QA] = Ie[lo] = Ie[ig] = !1;
4298
4298
  function bn(e, t, n, i, a, s) {
4299
4299
  var o, r = t & NA, c = t & KA, d = t & zA;
4300
4300
  if (o !== void 0)
@@ -4313,7 +4313,7 @@ function bn(e, t, n, i, a, s) {
4313
4313
  if (o = c || m ? {} : LA(e), !r)
4314
4314
  return c ? _p(e, Np(o, e)) : Zp(e, jp(o, e));
4315
4315
  } else {
4316
- if (!Oe[A])
4316
+ if (!Ie[A])
4317
4317
  return a ? e : {};
4318
4318
  o = PA(e, A, r);
4319
4319
  }
@@ -5233,7 +5233,7 @@ function Cm(e, t, n, i, a, s) {
5233
5233
  y("span", null, F(s.titleText), 1)
5234
5234
  ]),
5235
5235
  y("div", {
5236
- class: Ie(["advanced-field-dropdown", s.openClass])
5236
+ class: Oe(["advanced-field-dropdown", s.openClass])
5237
5237
  }, [
5238
5238
  G(o, {
5239
5239
  model: e.model,
@@ -5766,7 +5766,7 @@ const Qt = {
5766
5766
  function Jm(e, t, n, i, a, s) {
5767
5767
  const o = V("AddIcon"), r = V("TrashIcon"), c = V("KButton");
5768
5768
  return p(), I("div", {
5769
- class: Ie(["field-dropdown", { active: a.contentVisible }])
5769
+ class: Oe(["field-dropdown", { active: a.contentVisible }])
5770
5770
  }, [
5771
5771
  y("div", {
5772
5772
  class: "title",
@@ -5845,7 +5845,7 @@ function of(e, t, n, i, a, s) {
5845
5845
  }, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (p(), I("div", Zm, [
5846
5846
  y("table", {
5847
5847
  id: e.getFieldID(e.schema),
5848
- class: Ie(e.schema.fieldClasses)
5848
+ class: Oe(e.schema.fieldClasses)
5849
5849
  }, [
5850
5850
  (p(!0), I(Ae, null, Ee(e.value, (c, d) => (p(), I("tr", { key: d }, [
5851
5851
  y("td", null, F(d), 1),
@@ -6010,7 +6010,7 @@ function yf(e, t, n, i, a, s) {
6010
6010
  const o = V("TrashIcon"), r = V("KButton"), c = V("vue-form-generator");
6011
6011
  return p(), I("div", {
6012
6012
  id: e.getFieldID(e.schema),
6013
- class: Ie(["object-advanced-wrapper", e.schema.fieldClasses])
6013
+ class: Oe(["object-advanced-wrapper", e.schema.fieldClasses])
6014
6014
  }, [
6015
6015
  (p(!0), I(Ae, null, Ee(e.value, (d, u) => (p(), I("div", {
6016
6016
  key: u,
@@ -6065,7 +6065,7 @@ function yf(e, t, n, i, a, s) {
6065
6065
  ])
6066
6066
  ], 8, cf))), 128)),
6067
6067
  y("div", {
6068
- class: Ie(["input-wrapper", { indent: s.hasObjectKeys }])
6068
+ class: Oe(["input-wrapper", { indent: s.hasObjectKeys }])
6069
6069
  }, [
6070
6070
  y("div", ff, [
6071
6071
  Ke(y("input", {
@@ -6256,7 +6256,7 @@ const ko = /* @__PURE__ */ Te(rf, [["render", yf], ["__scopeId", "data-v-3a00058
6256
6256
  id: g(c)(e.schema),
6257
6257
  modelValue: g(u),
6258
6258
  "onUpdate:modelValue": S[0] || (S[0] = (K) => kn(u) ? u.value = K : null),
6259
- class: Ie(e.schema.fieldClasses),
6259
+ class: Oe(e.schema.fieldClasses),
6260
6260
  clearable: !e.schema.required,
6261
6261
  disabled: e.disabled || void 0,
6262
6262
  items: A.value,
@@ -6338,11 +6338,11 @@ function Mf(e, t, n, i, a, s) {
6338
6338
  return e.schema ? (p(), I("div", {
6339
6339
  key: 0,
6340
6340
  id: e.getFieldID(e.schema),
6341
- class: Ie(e.schema.fieldClasses)
6341
+ class: Oe(e.schema.fieldClasses)
6342
6342
  }, [
6343
6343
  (p(!0), I(Ae, null, Ee(e.value, (d, u) => (p(), I("div", {
6344
6344
  key: u,
6345
- class: Ie(e.schema.fieldItemsClasses)
6345
+ class: Oe(e.schema.fieldItemsClasses)
6346
6346
  }, [
6347
6347
  e.schema.items && e.schema.itemContainerComponent ? (p(), H(Ye(e.schema.itemContainerComponent), {
6348
6348
  key: 0,
@@ -6440,7 +6440,7 @@ function Mf(e, t, n, i, a, s) {
6440
6440
  ], 2))), 128)),
6441
6441
  G(c, {
6442
6442
  appearance: "tertiary",
6443
- class: Ie(e.schema.newElementButtonLabelClasses),
6443
+ class: Oe(e.schema.newElementButtonLabelClasses),
6444
6444
  "data-testid": `add-${e.getFieldID(e.schema)}`,
6445
6445
  type: "button",
6446
6446
  onClick: s.newElement
@@ -6536,7 +6536,7 @@ function Hf(e, t, n, i, a, s) {
6536
6536
  disabled: e.disabled || null
6537
6537
  }, [
6538
6538
  (p(!0), I(Ae, null, Ee(s.items, (r) => (p(), I("div", {
6539
- class: Ie(["list-row", { "is-checked": s.isItemChecked(r) }])
6539
+ class: Oe(["list-row", { "is-checked": s.isItemChecked(r) }])
6540
6540
  }, [
6541
6541
  y("label", null, [
6542
6542
  Ke(y("input", {
@@ -6559,7 +6559,7 @@ function Hf(e, t, n, i, a, s) {
6559
6559
  disabled: e.disabled || null
6560
6560
  }, [
6561
6561
  y("div", {
6562
- class: Ie(["mainRow", { expanded: a.comboExpanded }]),
6562
+ class: Oe(["mainRow", { expanded: a.comboExpanded }]),
6563
6563
  onClick: t[0] || (t[0] = (...r) => s.onExpandCombo && s.onExpandCombo(...r))
6564
6564
  }, [
6565
6565
  y("div", Df, F(s.selectedCount) + " selected", 1),
@@ -6567,7 +6567,7 @@ function Hf(e, t, n, i, a, s) {
6567
6567
  ], 2),
6568
6568
  y("div", jf, [
6569
6569
  a.comboExpanded ? (p(!0), I(Ae, { key: 0 }, Ee(s.items, (r) => (p(), I("div", {
6570
- class: Ie(["list-row", { "is-checked": s.isItemChecked(r) }])
6570
+ class: Oe(["list-row", { "is-checked": s.isItemChecked(r) }])
6571
6571
  }, [
6572
6572
  y("label", null, [
6573
6573
  Ke(y("input", {
@@ -6756,7 +6756,7 @@ function Qf(e, t, n, i, a, s) {
6756
6756
  ]))), 128)),
6757
6757
  G(r, {
6758
6758
  appearance: "tertiary",
6759
- class: Ie(e.schema.newElementButtonLabelClasses),
6759
+ class: Oe(e.schema.newElementButtonLabelClasses),
6760
6760
  "data-testid": `${e.getFieldID(e.schema)}-add-pair`,
6761
6761
  type: "button",
6762
6762
  onClick: s.addPair
@@ -6803,7 +6803,7 @@ const Zf = /* @__PURE__ */ Te(Nf, [["render", Qf], ["__scopeId", "data-v-70998d5
6803
6803
  return (s, o) => {
6804
6804
  const r = V("KLabel");
6805
6805
  return p(), I("span", {
6806
- class: Ie(["field-label", e.schema.fieldClasses])
6806
+ class: Oe(["field-label", e.schema.fieldClasses])
6807
6807
  }, [
6808
6808
  G(r, {
6809
6809
  id: g(i)(e.schema)
@@ -6885,7 +6885,7 @@ function uh(e, t, n, i, a, s) {
6885
6885
  class: "option-group"
6886
6886
  }, [
6887
6887
  y("label", {
6888
- class: Ie(["k-label", `${r.label}-check`])
6888
+ class: Oe(["k-label", `${r.label}-check`])
6889
6889
  }, [
6890
6890
  Ke(y("input", {
6891
6891
  "onUpdate:modelValue": t[0] || (t[0] = (d) => a.checkedGroup = d),
@@ -7095,7 +7095,7 @@ const dh = /* @__PURE__ */ Te(nh, [["render", uh], ["__scopeId", "data-v-0aaaf59
7095
7095
  modelValue: g(u),
7096
7096
  "onUpdate:modelValue": k[0] || (k[0] = (b) => kn(u) ? u.value = b : null),
7097
7097
  autocomplete: e.schema.autocomplete,
7098
- class: Ie(e.schema.fieldClasses),
7098
+ class: Oe(e.schema.fieldClasses),
7099
7099
  disabled: e.disabled || void 0,
7100
7100
  label: g(u) ? e.schema.textOn || g(s)("vfg.labels.on") : e.schema.textOff || g(s)("vfg.labels.off"),
7101
7101
  "label-attributes": { info: e.schema.help },
@@ -7343,12 +7343,12 @@ const dh = /* @__PURE__ */ Te(nh, [["render", uh], ["__scopeId", "data-v-0aaaf59
7343
7343
  function xh(e, t, n, i, a, s) {
7344
7344
  const o = V("KExternalLink"), r = V("KLabel");
7345
7345
  return p(), I("div", {
7346
- class: Ie(["form-group", e.getFieldRowClasses(n.field)])
7346
+ class: Oe(["form-group", e.getFieldRowClasses(n.field)])
7347
7347
  }, [
7348
7348
  s.fieldTypeHasLabel(n.field) ? (p(), H(r, {
7349
7349
  key: 0,
7350
7350
  "aria-describedby": n.field.help ? s.getTooltipId(n.field) : void 0,
7351
- class: Ie([n.field.labelClasses, "form-group-label"]),
7351
+ class: Oe([n.field.labelClasses, "form-group-label"]),
7352
7352
  for: s.getFieldID(n.field),
7353
7353
  info: !n.options.helpAsHtml && n.field.help ? n.field.help : void 0,
7354
7354
  "tooltip-attributes": n.field.help ? {
@@ -7402,7 +7402,7 @@ function xh(e, t, n, i, a, s) {
7402
7402
  s.buttonVisibility(n.field) ? (p(), I("div", Mh, [
7403
7403
  (p(!0), I(Ae, null, Ee(n.field.buttons, (c, d) => (p(), I("button", {
7404
7404
  key: d,
7405
- class: Ie(c.classes),
7405
+ class: Oe(c.classes),
7406
7406
  type: s.getButtonType(c),
7407
7407
  onClick: (u) => s.buttonClickHandler(c, n.field, u),
7408
7408
  textContent: F(c.label)
@@ -7619,7 +7619,7 @@ function Dh(e, t, n, i, a, s) {
7619
7619
  (u = c.slots) != null && u.beforeContent ? ct(e.$slots, (A = c.slots) == null ? void 0 : A.beforeContent, { key: 0 }) : ie("", !0),
7620
7620
  c.fields.length === 0 && (m = c.slots) != null && m.emptyState ? ct(e.$slots, (k = c.slots) == null ? void 0 : k.emptyState, { key: 1 }) : (p(), H(Ye(n.tag), {
7621
7621
  key: 2,
7622
- class: Ie(e.getFieldRowClasses(c))
7622
+ class: Oe(e.getFieldRowClasses(c))
7623
7623
  }, {
7624
7624
  default: E(() => [
7625
7625
  (p(!0), I(Ae, null, Ee(c.fields, (L) => (p(), I(Ae, {
@@ -7652,7 +7652,7 @@ function Dh(e, t, n, i, a, s) {
7652
7652
  }, {
7653
7653
  default: E(() => [
7654
7654
  (p(), H(Ye(n.tag), {
7655
- class: Ie(e.getFieldRowClasses(c))
7655
+ class: Oe(e.getFieldRowClasses(c))
7656
7656
  }, {
7657
7657
  default: E(() => [
7658
7658
  (p(!0), I(Ae, null, Ee(c.collapsible.nestedCollapsible.fields, (L) => (p(), I(Ae, {
@@ -7691,7 +7691,7 @@ function Dh(e, t, n, i, a, s) {
7691
7691
  } : void 0
7692
7692
  ]), 1032, ["title"])) : (p(), H(Ye(n.tag), {
7693
7693
  key: 1,
7694
- class: Ie(e.getFieldRowClasses(c))
7694
+ class: Oe(e.getFieldRowClasses(c))
7695
7695
  }, {
7696
7696
  default: E(() => [
7697
7697
  c.legend ? (p(), I("legend", Lh, F(c.legend), 1)) : ie("", !0),
@@ -8844,18 +8844,19 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
8844
8844
  _: 1
8845
8845
  }, 8, ["title"])) : ie("", !0),
8846
8846
  G(Q, {
8847
+ class: Oe({ "rla-last-vfg": j.formModel["config-strategy"] !== "redis" }),
8847
8848
  model: j.formModel,
8848
8849
  options: j.formOptions,
8849
8850
  schema: c.value.afterStrategy,
8850
8851
  onModelUpdated: Y[7] || (Y[7] = (x, oe) => j.onModelUpdated(x, oe))
8851
- }, null, 8, ["model", "options", "schema"])
8852
+ }, null, 8, ["class", "model", "options", "schema"])
8852
8853
  ]),
8853
8854
  _: 1
8854
8855
  }, 8, ["modelValue", "trigger-label"])
8855
8856
  ], 64);
8856
8857
  };
8857
8858
  }
8858
- }), Cv = /* @__PURE__ */ Te(wv, [["__scopeId", "data-v-3840f6a9"]]), Bv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8859
+ }), Cv = /* @__PURE__ */ Te(wv, [["__scopeId", "data-v-7089d0ea"]]), Bv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8859
8860
  __proto__: null,
8860
8861
  ACMEForm: rv,
8861
8862
  ExitTransformer: Wh,
@@ -12153,7 +12154,7 @@ const sE = { class: "kong-ui-entities-plugins-list" }, oE = { class: "name-cell-
12153
12154
  }, {
12154
12155
  default: E(({ isAllowed: Pe }) => [
12155
12156
  G(q, {
12156
- class: Ie(Pe || "disabled"),
12157
+ class: Oe(Pe || "disabled"),
12157
12158
  onClick: fn((fe) => Pe && de.type && W(de.type, se), ["stop"])
12158
12159
  }, {
12159
12160
  default: E(() => [
@@ -12380,7 +12381,7 @@ const sE = { class: "kong-ui-entities-plugins-list" }, oE = { class: "name-cell-
12380
12381
  }, {
12381
12382
  default: E(() => [
12382
12383
  y("a", {
12383
- class: Ie(["plugin-select-card", { disabled: r.value }]),
12384
+ class: Oe(["plugin-select-card", { disabled: r.value }]),
12384
12385
  "data-testid": `${e.plugin.id}-card`,
12385
12386
  role: "button",
12386
12387
  onClick: K[1] || (K[1] = (R) => r.value || k.value ? void 0 : u())
@@ -12388,7 +12389,7 @@ const sE = { class: "kong-ui-entities-plugins-list" }, oE = { class: "name-cell-
12388
12389
  y("div", fE, [
12389
12390
  y("div", hE, [
12390
12391
  y("span", {
12391
- class: Ie({ "non-custom-title": !k.value })
12392
+ class: Oe({ "non-custom-title": !k.value })
12392
12393
  }, F(e.plugin.name), 3)
12393
12394
  ]),
12394
12395
  c.value ? (p(), I("div", vE, [
@@ -12440,7 +12441,7 @@ const sE = { class: "kong-ui-entities-plugins-list" }, oE = { class: "name-cell-
12440
12441
  ])) : ie("", !0)
12441
12442
  ]),
12442
12443
  y("div", {
12443
- class: Ie(["plugin-card-body", { "custom-plugin": k.value }]),
12444
+ class: Oe(["plugin-card-body", { "custom-plugin": k.value }]),
12444
12445
  "data-testid": e.plugin.name,
12445
12446
  title: e.plugin.available ? e.plugin.name : g(s)("plugins.select.unavailable_tooltip"),
12446
12447
  onClick: S