@kong-ui-public/entities-key-sets 3.5.57 → 3.5.58

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,4 +1,4 @@
1
- import { defineComponent as G, ref as v, computed as S, watch as pe, onBeforeMount as ye, resolveComponent as R, openBlock as O, createElementBlock as W, createVNode as l, unref as o, withCtx as p, createBlock as me, Teleport as ge, createTextVNode as V, toDisplayString as D, createElementVNode as ke, reactive as Z } from "vue";
1
+ import { defineComponent as G, computed as v, ref as C, watch as pe, onBeforeMount as ye, resolveComponent as D, openBlock as O, createElementBlock as W, createVNode as l, unref as o, withCtx as p, createBlock as me, Teleport as ge, createTextVNode as V, toDisplayString as _, createElementVNode as ke, reactive as Z } from "vue";
2
2
  import { AddIcon as he } from "@kong/icons";
3
3
  import { useRouter as te } from "vue-router";
4
4
  import { createI18n as ve, i18nTComponent as Se } from "@kong-ui-public/i18n";
@@ -137,35 +137,39 @@ const H = {
137
137
  }
138
138
  },
139
139
  emits: ["error", "copy:success", "copy:error", "delete:success"],
140
- setup(e, { emit: C }) {
140
+ setup(e, { emit: I }) {
141
141
  var X;
142
- const m = C, t = e, { i18n: { t: s } } = H.useI18n(), g = te(), { axiosInstance: h } = ae((X = t.config) == null ? void 0 : X.axiosRequestConfig), k = v(1), U = S(() => t.config.app !== "kongManager" || !!t.config.disableSorting), E = {
142
+ const m = I, t = e, { i18n: { t: s } } = H.useI18n(), g = te(), { axiosInstance: h } = ae((X = t.config) == null ? void 0 : X.axiosRequestConfig), k = v(() => t.config.app !== "kongManager" || !!t.config.disableSorting), R = {
143
143
  // the Name column is non-hidable
144
144
  name: { label: s("keySets.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
145
145
  tags: { label: s("keySets.list.table_headers.tags") },
146
146
  id: { label: s("keySets.list.table_headers.id"), sortable: !0 }
147
- }, r = E, M = S(() => {
147
+ }, $ = R, r = v(() => {
148
148
  var i, y;
149
149
  let a = `${t.config.apiBaseUrl}${P.list[t.config.app]}`;
150
150
  return t.config.app === "konnect" ? a = a.replace(/{controlPlaneId}/gi, ((i = t.config) == null ? void 0 : i.controlPlaneId) || "") : t.config.app === "kongManager" && (a = a.replace(/\/{workspace}/gi, (y = t.config) != null && y.workspace ? `/${t.config.workspace}` : "")), a;
151
- }), K = v(""), j = S(() => {
151
+ }), S = C(""), U = v(() => {
152
152
  const a = t.config.app === "konnect" || t.config.isExactMatch;
153
153
  if (a)
154
154
  return {
155
155
  isExactMatch: a,
156
156
  placeholder: s("keySets.search.placeholder")
157
157
  };
158
- const i = { name: E.name };
158
+ const i = { name: R.name };
159
159
  return {
160
160
  isExactMatch: a,
161
161
  fields: i,
162
162
  schema: t.config.filterSchema
163
163
  };
164
- }), { fetcher: A, fetcherState: F } = be(t.config, M.value), $ = () => {
165
- K.value = "";
164
+ }), {
165
+ fetcher: j,
166
+ fetcherState: A,
167
+ fetcherCacheKey: w
168
+ } = be({ ...t.config, cacheIdentifier: t.cacheIdentifier }, r.value), K = () => {
169
+ S.value = "";
166
170
  }, N = () => {
167
- k.value++;
168
- }, I = v(null), n = (a, i) => {
171
+ w.value++;
172
+ }, E = C(null), n = (a, i) => {
169
173
  const y = a.id;
170
174
  if (!i(y)) {
171
175
  u(a, "id");
@@ -206,16 +210,16 @@ const H = {
206
210
  }), re = (a) => ({
207
211
  label: s("keySets.actions.edit"),
208
212
  to: t.config.getEditRoute(a)
209
- }), w = v(void 0), T = v(!1), B = v(!1), Q = v(""), le = Ce(t.config, M.value), ce = (a) => {
210
- w.value = a, T.value = !0;
213
+ }), M = C(void 0), T = C(!1), B = C(!1), Q = C(""), le = Ce(t.config, r.value), ce = (a) => {
214
+ M.value = a, T.value = !0;
211
215
  }, de = () => {
212
216
  T.value = !1;
213
217
  }, ue = async () => {
214
218
  var a, i, y;
215
- if ((a = w.value) != null && a.id) {
219
+ if ((a = M.value) != null && a.id) {
216
220
  B.value = !0;
217
221
  try {
218
- await h.delete(le(w.value.id)), B.value = !1, T.value = !1, k.value++, m("delete:success", w.value);
222
+ await h.delete(le(M.value.id)), B.value = !1, T.value = !1, w.value++, m("delete:success", M.value);
219
223
  } catch (b) {
220
224
  Q.value = ((y = (i = b.response) == null ? void 0 : i.data) == null ? void 0 : y.message) || b.message || s("keySets.errors.delete"), m("error", b);
221
225
  } finally {
@@ -223,17 +227,17 @@ const H = {
223
227
  }
224
228
  }
225
229
  };
226
- pe(F, (a) => {
230
+ pe(A, (a) => {
227
231
  var i, y, b;
228
232
  if (a.status === Ie.Error) {
229
- I.value = {
233
+ E.value = {
230
234
  title: s("keySets.errors.general")
231
- }, (b = (y = (i = a.error) == null ? void 0 : i.response) == null ? void 0 : y.data) != null && b.message && (I.value.message = a.error.response.data.message), m("error", a.error);
235
+ }, (b = (y = (i = a.error) == null ? void 0 : i.response) == null ? void 0 : y.data) != null && b.message && (E.value.message = a.error.response.data.message), m("error", a.error);
232
236
  return;
233
237
  }
234
- I.value = null;
238
+ E.value = null;
235
239
  });
236
- const J = v({
240
+ const J = C({
237
241
  ctaPath: t.config.createRoute,
238
242
  ctaText: void 0,
239
243
  message: `${s("keySets.list.empty_state.description")}${t.config.additionMessageForEmptyState ? ` ${t.config.additionMessageForEmptyState}` : ""}`,
@@ -242,29 +246,29 @@ const H = {
242
246
  return ye(async () => {
243
247
  await t.canCreate() && (J.value.title = s("keySets.list.empty_state.title"), J.value.ctaText = s("keySets.actions.create"));
244
248
  }), (a, i) => {
245
- const y = R("KButton"), b = R("KCopy"), _ = R("KDropdownItem"), Y = R("KClipboardProvider");
249
+ const y = D("KButton"), b = D("KCopy"), F = D("KDropdownItem"), Y = D("KClipboardProvider");
246
250
  return O(), W("div", Ve, [
247
251
  l(o(we), {
248
252
  "cache-identifier": e.cacheIdentifier,
249
- "disable-sorting": U.value,
253
+ "disable-sorting": k.value,
250
254
  "empty-state-options": J.value,
251
255
  "enable-entity-actions": "",
252
- "error-message": I.value,
253
- fetcher: o(A),
254
- "fetcher-cache-key": k.value,
256
+ "error-message": E.value,
257
+ fetcher: o(j),
258
+ "fetcher-cache-key": o(w),
255
259
  "pagination-type": "offset",
256
260
  "preferences-storage-key": "kong-ui-entities-key-sets-list",
257
- query: K.value,
258
- "table-headers": o(r),
259
- onClearSearchInput: $,
261
+ query: S.value,
262
+ "table-headers": o($),
263
+ onClearSearchInput: K,
260
264
  "onClick:row": i[1] || (i[1] = (f) => ne(f)),
261
265
  onSort: N
262
266
  }, {
263
267
  "toolbar-filter": p(() => [
264
268
  l(o(Ee), {
265
- modelValue: K.value,
266
- "onUpdate:modelValue": i[0] || (i[0] = (f) => K.value = f),
267
- config: j.value
269
+ modelValue: S.value,
270
+ "onUpdate:modelValue": i[0] || (i[0] = (f) => S.value = f),
271
+ config: U.value
268
272
  }, null, 8, ["modelValue", "config"])
269
273
  ]),
270
274
  "toolbar-button": p(() => [
@@ -284,7 +288,7 @@ const H = {
284
288
  }, {
285
289
  default: p(() => [
286
290
  l(o(he)),
287
- V(" " + D(o(s)("keySets.list.toolbar_actions.new_key_set")), 1)
291
+ V(" " + _(o(s)("keySets.list.toolbar_actions.new_key_set")), 1)
288
292
  ]),
289
293
  _: 1
290
294
  }, 8, ["size", "to"])
@@ -294,7 +298,7 @@ const H = {
294
298
  ], 8, ["disabled"]))
295
299
  ]),
296
300
  name: p(({ rowValue: f }) => [
297
- ke("b", null, D(f ?? "-"), 1)
301
+ ke("b", null, _(f ?? "-"), 1)
298
302
  ]),
299
303
  tags: p(({ rowValue: f }) => [
300
304
  l(o(Me), { tags: f }, null, 8, ["tags"])
@@ -308,12 +312,12 @@ const H = {
308
312
  actions: p(({ row: f }) => [
309
313
  l(Y, null, {
310
314
  default: p(({ copyToClipboard: x }) => [
311
- l(_, {
315
+ l(F, {
312
316
  "data-testid": "action-entity-copy-id",
313
317
  onClick: (fe) => n(f, x)
314
318
  }, {
315
319
  default: p(() => [
316
- V(D(o(s)("keySets.actions.copy_id")), 1)
320
+ V(_(o(s)("keySets.actions.copy_id")), 1)
317
321
  ]),
318
322
  _: 2
319
323
  }, 1032, ["onClick"])
@@ -322,12 +326,12 @@ const H = {
322
326
  }, 1024),
323
327
  l(Y, null, {
324
328
  default: p(({ copyToClipboard: x }) => [
325
- l(_, {
329
+ l(F, {
326
330
  "data-testid": "action-entity-copy-json",
327
331
  onClick: (fe) => c(f, x)
328
332
  }, {
329
333
  default: p(() => [
330
- V(D(o(s)("keySets.actions.copy_json")), 1)
334
+ V(_(o(s)("keySets.actions.copy_json")), 1)
331
335
  ]),
332
336
  _: 2
333
337
  }, 1032, ["onClick"])
@@ -338,7 +342,7 @@ const H = {
338
342
  "auth-function": () => e.canRetrieve(f)
339
343
  }, {
340
344
  default: p(() => [
341
- l(_, {
345
+ l(F, {
342
346
  "data-testid": "action-entity-view",
343
347
  "has-divider": "",
344
348
  item: ie(f.id)
@@ -350,7 +354,7 @@ const H = {
350
354
  "auth-function": () => e.canEdit(f)
351
355
  }, {
352
356
  default: p(() => [
353
- l(_, {
357
+ l(F, {
354
358
  "data-testid": "action-entity-edit",
355
359
  item: re(f.id)
356
360
  }, null, 8, ["item"])
@@ -361,14 +365,14 @@ const H = {
361
365
  "auth-function": () => e.canDelete(f)
362
366
  }, {
363
367
  default: p(() => [
364
- l(_, {
368
+ l(F, {
365
369
  danger: "",
366
370
  "data-testid": "action-entity-delete",
367
371
  "has-divider": "",
368
372
  onClick: (x) => ce(f)
369
373
  }, {
370
374
  default: p(() => [
371
- V(D(o(s)("keySets.actions.delete")), 1)
375
+ V(_(o(s)("keySets.actions.delete")), 1)
372
376
  ]),
373
377
  _: 2
374
378
  }, 1032, ["onClick"])
@@ -381,7 +385,7 @@ const H = {
381
385
  l(o(Ke), {
382
386
  "action-pending": B.value,
383
387
  description: o(s)("keySets.delete.description"),
384
- "entity-name": w.value && (w.value.name || w.value.id),
388
+ "entity-name": M.value && (M.value.name || M.value.id),
385
389
  "entity-type": o($e).KeySet,
386
390
  error: Q.value,
387
391
  title: o(s)("keySets.delete.title"),
@@ -392,12 +396,12 @@ const H = {
392
396
  ]);
393
397
  };
394
398
  }
395
- }), se = (e, C) => {
399
+ }), se = (e, I) => {
396
400
  const m = e.__vccOpts || e;
397
- for (const [t, s] of C)
401
+ for (const [t, s] of I)
398
402
  m[t] = s;
399
403
  return m;
400
- }, ze = /* @__PURE__ */ se(qe, [["__scopeId", "data-v-e8613139"]]), Oe = { class: "kong-ui-entities-key-sets-form" }, Pe = /* @__PURE__ */ G({
404
+ }, ze = /* @__PURE__ */ se(qe, [["__scopeId", "data-v-5a65a27f"]]), Oe = { class: "kong-ui-entities-key-sets-form" }, Pe = /* @__PURE__ */ G({
401
405
  __name: "KeySetForm",
402
406
  props: {
403
407
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -414,28 +418,28 @@ const H = {
414
418
  }
415
419
  },
416
420
  emits: ["update", "error", "loading"],
417
- setup(e, { emit: C }) {
418
- var I;
419
- const m = C, t = e, s = te(), { i18n: { t: g } } = H.useI18n(), { getMessageFromError: h } = Fe(), { axiosInstance: k } = ae((I = t.config) == null ? void 0 : I.axiosRequestConfig), U = S(() => P.form[t.config.app].edit), E = S(() => t.keySetId ? ee.Edit : ee.Create), r = Z({
421
+ setup(e, { emit: I }) {
422
+ var E;
423
+ const m = I, t = e, s = te(), { i18n: { t: g } } = H.useI18n(), { getMessageFromError: h } = Fe(), { axiosInstance: k } = ae((E = t.config) == null ? void 0 : E.axiosRequestConfig), R = v(() => P.form[t.config.app].edit), $ = v(() => t.keySetId ? ee.Edit : ee.Create), r = Z({
420
424
  fields: {
421
425
  name: "",
422
426
  tags: ""
423
427
  },
424
428
  isReadonly: !1,
425
429
  errorMessage: ""
426
- }), M = Z({
430
+ }), S = Z({
427
431
  name: "",
428
432
  tags: ""
429
- }), K = S(() => JSON.stringify(r.fields) !== JSON.stringify(M) && !!r.fields.name), j = (n) => {
433
+ }), U = v(() => JSON.stringify(r.fields) !== JSON.stringify(S) && !!r.fields.name), j = (n) => {
430
434
  var c;
431
- r.fields.name = (n == null ? void 0 : n.name) || "", r.fields.tags = ((c = n == null ? void 0 : n.tags) == null ? void 0 : c.join(", ")) || "", Object.assign(M, r.fields);
435
+ r.fields.name = (n == null ? void 0 : n.name) || "", r.fields.tags = ((c = n == null ? void 0 : n.tags) == null ? void 0 : c.join(", ")) || "", Object.assign(S, r.fields);
432
436
  }, A = () => {
433
437
  s.push(t.config.cancelRoute);
434
- }, F = S(() => {
438
+ }, w = v(() => {
435
439
  var c, d;
436
- let n = `${t.config.apiBaseUrl}${P.form[t.config.app][E.value]}`;
440
+ let n = `${t.config.apiBaseUrl}${P.form[t.config.app][$.value]}`;
437
441
  return t.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((c = t.config) == null ? void 0 : c.controlPlaneId) || "") : t.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (d = t.config) != null && d.workspace ? `/${t.config.workspace}` : "")), n = n.replace(/{id}/gi, t.keySetId), n;
438
- }), $ = S(() => {
442
+ }), K = v(() => {
439
443
  var n, c, d;
440
444
  return {
441
445
  name: r.fields.name,
@@ -446,9 +450,9 @@ const H = {
446
450
  try {
447
451
  r.isReadonly = !0;
448
452
  let d;
449
- if (E.value === "create" ? d = await k.post(F.value, $.value) : E.value === "edit" && (d = ((n = t.config) == null ? void 0 : n.app) === "konnect" ? await k.put(F.value, $.value) : await k.patch(F.value, $.value)), d) {
453
+ if ($.value === "create" ? d = await k.post(w.value, K.value) : $.value === "edit" && (d = ((n = t.config) == null ? void 0 : n.app) === "konnect" ? await k.put(w.value, K.value) : await k.patch(w.value, K.value)), d) {
450
454
  const { data: u } = d;
451
- r.fields.name = (u == null ? void 0 : u.name) || "", r.fields.tags = ((c = u == null ? void 0 : u.tags) == null ? void 0 : c.join(", ")) || "", Object.assign(M, r.fields), m("update", d == null ? void 0 : d.data);
455
+ r.fields.name = (u == null ? void 0 : u.name) || "", r.fields.tags = ((c = u == null ? void 0 : u.tags) == null ? void 0 : c.join(", ")) || "", Object.assign(S, r.fields), m("update", d == null ? void 0 : d.data);
452
456
  }
453
457
  } catch (d) {
454
458
  r.errorMessage = h(d), m("error", d);
@@ -457,16 +461,16 @@ const H = {
457
461
  }
458
462
  };
459
463
  return (n, c) => {
460
- const d = R("KInput");
464
+ const d = D("KInput");
461
465
  return O(), W("div", Oe, [
462
466
  l(o(_e), {
463
- "can-submit": K.value,
467
+ "can-submit": U.value,
464
468
  config: e.config,
465
469
  "edit-id": e.keySetId,
466
470
  "entity-type": o(oe).KeySet,
467
471
  "error-message": r.errorMessage,
468
- "fetch-url": U.value,
469
- "form-fields": $.value,
472
+ "fetch-url": R.value,
473
+ "form-fields": K.value,
470
474
  "is-readonly": r.isReadonly,
471
475
  onCancel: A,
472
476
  "onFetch:error": c[2] || (c[2] = (u) => n.$emit("error", u)),
@@ -544,7 +548,7 @@ const H = {
544
548
  },
545
549
  emits: ["loading", "fetch:error", "fetch:success"],
546
550
  setup(e) {
547
- const C = e, { i18n: { t: m } } = H.useI18n(), t = S(() => P.form[C.config.app].edit), s = v({
551
+ const I = e, { i18n: { t: m } } = H.useI18n(), t = v(() => P.form[I.config.app].edit), s = C({
548
552
  id: {},
549
553
  name: {},
550
554
  last_updated: {},
@@ -1 +1 @@
1
- (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/icons"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/icons","vue-router","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g["kong-ui-public-entities-key-sets"]={},g.Vue,g.KongIcons,g.VueRouter,g["kong-ui-public-i18n"],g["kong-ui-public-entities-shared"]))})(this,function(g,e,G,A,U,l){"use strict";const H={keySets:{title:"Key Sets",list:{toolbar_actions:{new_key_set:"New Key Set"},table_headers:{name:"Name",id:"ID",tags:"Tags"},empty_state:{title:"Configure a New Key Set",description:"A Key Set object holds a collection of asymmetric key objects. This entity allows to logically group keys by their purpose."}},actions:{create:"New Key Set",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details"},search:{placeholder:"Filter by exact name or ID"},delete:{title:"Delete a Key Set",description:"Deleting this key set will also delete keys associated. This action cannot be reversed so make sure to check the key set usage before deleting."},errors:{general:"Key sets could not be retrieved",delete:"The key set could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this key set."}},fields:{name:{label:"Name",placeholder:"Enter a unique name for this key set"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."}}}}};function Q(){const t=U.createI18n("en-us",H);return{i18n:t,i18nT:U.i18nTComponent(t)}}const F={useI18n:Q},_="/v2/control-planes/{controlPlaneId}/core-entities",B="/{workspace}",M={list:{konnect:`${_}/key-sets`,kongManager:`${B}/key-sets`},form:{konnect:{create:`${_}/key-sets`,edit:`${_}/key-sets/{id}`},kongManager:{create:`${B}/key-sets`,edit:`${B}/key-sets/{id}`}}},X={class:"kong-ui-entities-key-sets-list"},Y=e.defineComponent({__name:"KeySetList",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||!t.createRoute||!t.getViewRoute||!t.getEditRoute||t.app==="kongManager"&&!t.isExactMatch&&!t.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(t,{emit:C}){var W;const y=C,o=t,{i18n:{t:a}}=F.useI18n(),m=A.useRouter(),{axiosInstance:h}=l.useAxios((W=o.config)==null?void 0:W.axiosRequestConfig),k=e.ref(1),R=e.computed(()=>o.config.app!=="kongManager"||!!o.config.disableSorting),V={name:{label:a("keySets.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},tags:{label:a("keySets.list.table_headers.tags")},id:{label:a("keySets.list.table_headers.id"),sortable:!0}},i=V,x=e.computed(()=>{var r,u;let n=`${o.config.apiBaseUrl}${M.list[o.config.app]}`;return o.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((r=o.config)==null?void 0:r.controlPlaneId)||""):o.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(u=o.config)!=null&&u.workspace?`/${o.config.workspace}`:"")),n}),I=e.ref(""),q=e.computed(()=>{const n=o.config.app==="konnect"||o.config.isExactMatch;if(n)return{isExactMatch:n,placeholder:a("keySets.search.placeholder")};const r={name:V.name};return{isExactMatch:n,fields:r,schema:o.config.filterSchema}}),{fetcher:P,fetcherState:E}=l.useFetcher(o.config,x.value),N=()=>{I.value=""},O=()=>{k.value++},S=e.ref(null),s=(n,r)=>{const u=n.id;if(!r(u)){f(n,"id");return}d(n,"id")},c=(n,r)=>{const u=JSON.stringify(n);if(!r(u)){y("copy:error",{entity:n,message:a("keySets.errors.copy")});return}y("copy:success",{entity:n,message:a("keySets.copy.success_brief")})},d=(n,r)=>{y("copy:success",{entity:n,field:r,message:a("keySets.copy.success",{val:n[r]})})},f=(n,r)=>{y("copy:error",{entity:n,field:r,message:a("keySets.errors.copy")})},ne=async n=>{var u;await((u=o.canRetrieve)==null?void 0:u.call(o,n))&&m.push(o.config.getViewRoute(n.id))},ae=n=>({label:a("keySets.actions.view"),to:o.config.getViewRoute(n)}),se=n=>({label:a("keySets.actions.edit"),to:o.config.getEditRoute(n)}),w=e.ref(void 0),D=e.ref(!1),T=e.ref(!1),L=e.ref(""),re=l.useDeleteUrlBuilder(o.config,x.value),ie=n=>{w.value=n,D.value=!0},le=()=>{D.value=!1},ce=async()=>{var n,r,u;if((n=w.value)!=null&&n.id){T.value=!0;try{await h.delete(re(w.value.id)),T.value=!1,D.value=!1,k.value++,y("delete:success",w.value)}catch(b){L.value=((u=(r=b.response)==null?void 0:r.data)==null?void 0:u.message)||b.message||a("keySets.errors.delete"),y("error",b)}finally{T.value=!1}}};e.watch(E,n=>{var r,u,b;if(n.status===l.FetcherStatus.Error){S.value={title:a("keySets.errors.general")},(b=(u=(r=n.error)==null?void 0:r.response)==null?void 0:u.data)!=null&&b.message&&(S.value.message=n.error.response.data.message),y("error",n.error);return}S.value=null});const j=e.ref({ctaPath:o.config.createRoute,ctaText:void 0,message:`${a("keySets.list.empty_state.description")}${o.config.additionMessageForEmptyState?` ${o.config.additionMessageForEmptyState}`:""}`,title:a("keySets.title")});return e.onBeforeMount(async()=>{await o.canCreate()&&(j.value.title=a("keySets.list.empty_state.title"),j.value.ctaText=a("keySets.actions.create"))}),(n,r)=>{const u=e.resolveComponent("KButton"),b=e.resolveComponent("KCopy"),K=e.resolveComponent("KDropdownItem"),z=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(e.unref(l.EntityBaseTable),{"cache-identifier":t.cacheIdentifier,"disable-sorting":R.value,"empty-state-options":j.value,"enable-entity-actions":"","error-message":S.value,fetcher:e.unref(P),"fetcher-cache-key":k.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-key-sets-list",query:I.value,"table-headers":e.unref(i),onClearSearchInput:N,"onClick:row":r[1]||(r[1]=p=>ne(p)),onSort:O},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(l.EntityFilter),{modelValue:I.value,"onUpdate:modelValue":r[0]||(r[0]=p=>I.value=p),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!t.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canCreate()},{default:e.withCtx(()=>[e.createVNode(u,{appearance:"primary","data-testid":"toolbar-add-key-set",size:t.useActionOutside?"medium":"large",to:t.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(G.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("keySets.list.toolbar_actions.new_key_set")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:p})=>[e.createElementVNode("b",null,e.toDisplayString(p??"-"),1)]),tags:e.withCtx(({rowValue:p})=>[e.createVNode(e.unref(l.TableTags),{tags:p},null,8,["tags"])]),id:e.withCtx(({rowValue:p})=>[e.createVNode(b,{text:p,truncate:""},null,8,["text"])]),actions:e.withCtx(({row:p})=>[e.createVNode(z,null,{default:e.withCtx(({copyToClipboard:$})=>[e.createVNode(K,{"data-testid":"action-entity-copy-id",onClick:de=>s(p,$)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(z,null,{default:e.withCtx(({copyToClipboard:$})=>[e.createVNode(K,{"data-testid":"action-entity-copy-json",onClick:de=>c(p,$)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canRetrieve(p)},{default:e.withCtx(()=>[e.createVNode(K,{"data-testid":"action-entity-view","has-divider":"",item:ae(p.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canEdit(p)},{default:e.withCtx(()=>[e.createVNode(K,{"data-testid":"action-entity-edit",item:se(p.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canDelete(p)},{default:e.withCtx(()=>[e.createVNode(K,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:$=>ie(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers"]),e.createVNode(e.unref(l.EntityDeleteModal),{"action-pending":T.value,description:e.unref(a)("keySets.delete.description"),"entity-name":w.value&&(w.value.name||w.value.id),"entity-type":e.unref(l.EntityTypes).KeySet,error:L.value,title:e.unref(a)("keySets.delete.title"),visible:D.value,onCancel:le,onProceed:ce},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),J=(t,C)=>{const y=t.__vccOpts||t;for(const[o,a]of C)y[o]=a;return y},Z=J(Y,[["__scopeId","data-v-e8613139"]]),v={class:"kong-ui-entities-key-sets-form"},ee=J(e.defineComponent({__name:"KeySetForm",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string"||!t.cancelRoute)},keySetId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(t,{emit:C}){var S;const y=C,o=t,a=A.useRouter(),{i18n:{t:m}}=F.useI18n(),{getMessageFromError:h}=l.useErrors(),{axiosInstance:k}=l.useAxios((S=o.config)==null?void 0:S.axiosRequestConfig),R=e.computed(()=>M.form[o.config.app].edit),V=e.computed(()=>o.keySetId?l.EntityBaseFormType.Edit:l.EntityBaseFormType.Create),i=e.reactive({fields:{name:"",tags:""},isReadonly:!1,errorMessage:""}),x=e.reactive({name:"",tags:""}),I=e.computed(()=>JSON.stringify(i.fields)!==JSON.stringify(x)&&!!i.fields.name),q=s=>{var c;i.fields.name=(s==null?void 0:s.name)||"",i.fields.tags=((c=s==null?void 0:s.tags)==null?void 0:c.join(", "))||"",Object.assign(x,i.fields)},P=()=>{a.push(o.config.cancelRoute)},E=e.computed(()=>{var c,d;let s=`${o.config.apiBaseUrl}${M.form[o.config.app][V.value]}`;return o.config.app==="konnect"?s=s.replace(/{controlPlaneId}/gi,((c=o.config)==null?void 0:c.controlPlaneId)||""):o.config.app==="kongManager"&&(s=s.replace(/\/{workspace}/gi,(d=o.config)!=null&&d.workspace?`/${o.config.workspace}`:"")),s=s.replace(/{id}/gi,o.keySetId),s}),N=e.computed(()=>{var s,c,d;return{name:i.fields.name,tags:((d=(c=(s=i.fields.tags)==null?void 0:s.split(","))==null?void 0:c.map(f=>String(f||"").trim()))==null?void 0:d.filter(f=>f!==""))||""}}),O=async()=>{var s,c;try{i.isReadonly=!0;let d;if(V.value==="create"?d=await k.post(E.value,N.value):V.value==="edit"&&(d=((s=o.config)==null?void 0:s.app)==="konnect"?await k.put(E.value,N.value):await k.patch(E.value,N.value)),d){const{data:f}=d;i.fields.name=(f==null?void 0:f.name)||"",i.fields.tags=((c=f==null?void 0:f.tags)==null?void 0:c.join(", "))||"",Object.assign(x,i.fields),y("update",d==null?void 0:d.data)}}catch(d){i.errorMessage=h(d),y("error",d)}finally{i.isReadonly=!1}};return(s,c)=>{const d=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(l.EntityBaseForm),{"can-submit":I.value,config:t.config,"edit-id":t.keySetId,"entity-type":e.unref(l.SupportedEntityType).KeySet,"error-message":i.errorMessage,"fetch-url":R.value,"form-fields":N.value,"is-readonly":i.isReadonly,onCancel:P,"onFetch:error":c[2]||(c[2]=f=>s.$emit("error",f)),"onFetch:success":q,onLoading:c[3]||(c[3]=f=>s.$emit("loading",f)),onSubmit:O},{default:e.withCtx(()=>[e.createVNode(e.unref(l.EntityFormSection),{description:e.unref(m)("keySets.form.sections.general.description"),"has-divider":"",title:e.unref(m)("keySets.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.fields.name,"onUpdate:modelValue":c[0]||(c[0]=f=>i.fields.name=f),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-set-form-name",label:e.unref(m)("keySets.form.fields.name.label"),placeholder:e.unref(m)("keySets.form.fields.name.placeholder"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(d,{modelValue:i.fields.tags,"onUpdate:modelValue":c[1]||(c[1]=f=>i.fields.tags=f),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-set-form-tags",help:e.unref(m)("keySets.form.fields.tags.help"),label:e.unref(m)("keySets.form.fields.tags.label"),"label-attributes":{info:e.unref(m)("keySets.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(m)("keySets.form.fields.tags.placeholder"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-d1b94475"]]),te={class:"kong-ui-entities-keys-entity-config-card"},oe=e.defineComponent({__name:"KeySetConfigCard",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string"||!t.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(t){const C=t,{i18n:{t:y}}=F.useI18n(),o=e.computed(()=>M.form[C.config.app].edit),a=e.ref({id:{},name:{},last_updated:{},created:{},tags:{tooltip:y("keySets.form.fields.tags.tooltip")}});return(m,h)=>(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(e.unref(l.EntityBaseConfigCard),{config:t.config,"config-card-doc":t.configCardDoc,"config-schema":a.value,"entity-type":e.unref(l.SupportedEntityType).KeySet,"fetch-url":o.value,"hide-title":t.hideTitle,"onFetch:error":h[0]||(h[0]=k=>m.$emit("fetch:error",k)),"onFetch:success":h[1]||(h[1]=k=>m.$emit("fetch:success",k)),onLoading:h[2]||(h[2]=k=>m.$emit("loading",k))},null,8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});g.KeySetConfigCard=oe,g.KeySetForm=ee,g.KeySetList=Z,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
1
+ (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/icons"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/icons","vue-router","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g["kong-ui-public-entities-key-sets"]={},g.Vue,g.KongIcons,g.VueRouter,g["kong-ui-public-i18n"],g["kong-ui-public-entities-shared"]))})(this,function(g,e,G,A,U,l){"use strict";const H={keySets:{title:"Key Sets",list:{toolbar_actions:{new_key_set:"New Key Set"},table_headers:{name:"Name",id:"ID",tags:"Tags"},empty_state:{title:"Configure a New Key Set",description:"A Key Set object holds a collection of asymmetric key objects. This entity allows to logically group keys by their purpose."}},actions:{create:"New Key Set",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details"},search:{placeholder:"Filter by exact name or ID"},delete:{title:"Delete a Key Set",description:"Deleting this key set will also delete keys associated. This action cannot be reversed so make sure to check the key set usage before deleting."},errors:{general:"Key sets could not be retrieved",delete:"The key set could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this key set."}},fields:{name:{label:"Name",placeholder:"Enter a unique name for this key set"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."}}}}};function Q(){const t=U.createI18n("en-us",H);return{i18n:t,i18nT:U.i18nTComponent(t)}}const F={useI18n:Q},_="/v2/control-planes/{controlPlaneId}/core-entities",B="/{workspace}",K={list:{konnect:`${_}/key-sets`,kongManager:`${B}/key-sets`},form:{konnect:{create:`${_}/key-sets`,edit:`${_}/key-sets/{id}`},kongManager:{create:`${B}/key-sets`,edit:`${B}/key-sets/{id}`}}},X={class:"kong-ui-entities-key-sets-list"},Y=e.defineComponent({__name:"KeySetList",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||!t.createRoute||!t.getViewRoute||!t.getEditRoute||t.app==="kongManager"&&!t.isExactMatch&&!t.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(t,{emit:S}){var W;const y=S,o=t,{i18n:{t:a}}=F.useI18n(),m=A.useRouter(),{axiosInstance:h}=l.useAxios((W=o.config)==null?void 0:W.axiosRequestConfig),k=e.computed(()=>o.config.app!=="kongManager"||!!o.config.disableSorting),M={name:{label:a("keySets.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},tags:{label:a("keySets.list.table_headers.tags")},id:{label:a("keySets.list.table_headers.id"),sortable:!0}},N=M,i=e.computed(()=>{var r,u;let n=`${o.config.apiBaseUrl}${K.list[o.config.app]}`;return o.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((r=o.config)==null?void 0:r.controlPlaneId)||""):o.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(u=o.config)!=null&&u.workspace?`/${o.config.workspace}`:"")),n}),b=e.ref(""),R=e.computed(()=>{const n=o.config.app==="konnect"||o.config.isExactMatch;if(n)return{isExactMatch:n,placeholder:a("keySets.search.placeholder")};const r={name:M.name};return{isExactMatch:n,fields:r,schema:o.config.filterSchema}}),{fetcher:q,fetcherState:P,fetcherCacheKey:w}=l.useFetcher({...o.config,cacheIdentifier:o.cacheIdentifier},i.value),x=()=>{b.value=""},O=()=>{w.value++},V=e.ref(null),s=(n,r)=>{const u=n.id;if(!r(u)){f(n,"id");return}d(n,"id")},c=(n,r)=>{const u=JSON.stringify(n);if(!r(u)){y("copy:error",{entity:n,message:a("keySets.errors.copy")});return}y("copy:success",{entity:n,message:a("keySets.copy.success_brief")})},d=(n,r)=>{y("copy:success",{entity:n,field:r,message:a("keySets.copy.success",{val:n[r]})})},f=(n,r)=>{y("copy:error",{entity:n,field:r,message:a("keySets.errors.copy")})},ne=async n=>{var u;await((u=o.canRetrieve)==null?void 0:u.call(o,n))&&m.push(o.config.getViewRoute(n.id))},ae=n=>({label:a("keySets.actions.view"),to:o.config.getViewRoute(n)}),se=n=>({label:a("keySets.actions.edit"),to:o.config.getEditRoute(n)}),I=e.ref(void 0),D=e.ref(!1),T=e.ref(!1),L=e.ref(""),re=l.useDeleteUrlBuilder(o.config,i.value),ie=n=>{I.value=n,D.value=!0},le=()=>{D.value=!1},ce=async()=>{var n,r,u;if((n=I.value)!=null&&n.id){T.value=!0;try{await h.delete(re(I.value.id)),T.value=!1,D.value=!1,w.value++,y("delete:success",I.value)}catch(C){L.value=((u=(r=C.response)==null?void 0:r.data)==null?void 0:u.message)||C.message||a("keySets.errors.delete"),y("error",C)}finally{T.value=!1}}};e.watch(P,n=>{var r,u,C;if(n.status===l.FetcherStatus.Error){V.value={title:a("keySets.errors.general")},(C=(u=(r=n.error)==null?void 0:r.response)==null?void 0:u.data)!=null&&C.message&&(V.value.message=n.error.response.data.message),y("error",n.error);return}V.value=null});const j=e.ref({ctaPath:o.config.createRoute,ctaText:void 0,message:`${a("keySets.list.empty_state.description")}${o.config.additionMessageForEmptyState?` ${o.config.additionMessageForEmptyState}`:""}`,title:a("keySets.title")});return e.onBeforeMount(async()=>{await o.canCreate()&&(j.value.title=a("keySets.list.empty_state.title"),j.value.ctaText=a("keySets.actions.create"))}),(n,r)=>{const u=e.resolveComponent("KButton"),C=e.resolveComponent("KCopy"),E=e.resolveComponent("KDropdownItem"),z=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(e.unref(l.EntityBaseTable),{"cache-identifier":t.cacheIdentifier,"disable-sorting":k.value,"empty-state-options":j.value,"enable-entity-actions":"","error-message":V.value,fetcher:e.unref(q),"fetcher-cache-key":e.unref(w),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-key-sets-list",query:b.value,"table-headers":e.unref(N),onClearSearchInput:x,"onClick:row":r[1]||(r[1]=p=>ne(p)),onSort:O},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(l.EntityFilter),{modelValue:b.value,"onUpdate:modelValue":r[0]||(r[0]=p=>b.value=p),config:R.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!t.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canCreate()},{default:e.withCtx(()=>[e.createVNode(u,{appearance:"primary","data-testid":"toolbar-add-key-set",size:t.useActionOutside?"medium":"large",to:t.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(G.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("keySets.list.toolbar_actions.new_key_set")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:p})=>[e.createElementVNode("b",null,e.toDisplayString(p??"-"),1)]),tags:e.withCtx(({rowValue:p})=>[e.createVNode(e.unref(l.TableTags),{tags:p},null,8,["tags"])]),id:e.withCtx(({rowValue:p})=>[e.createVNode(C,{text:p,truncate:""},null,8,["text"])]),actions:e.withCtx(({row:p})=>[e.createVNode(z,null,{default:e.withCtx(({copyToClipboard:$})=>[e.createVNode(E,{"data-testid":"action-entity-copy-id",onClick:de=>s(p,$)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(z,null,{default:e.withCtx(({copyToClipboard:$})=>[e.createVNode(E,{"data-testid":"action-entity-copy-json",onClick:de=>c(p,$)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canRetrieve(p)},{default:e.withCtx(()=>[e.createVNode(E,{"data-testid":"action-entity-view","has-divider":"",item:ae(p.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canEdit(p)},{default:e.withCtx(()=>[e.createVNode(E,{"data-testid":"action-entity-edit",item:se(p.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canDelete(p)},{default:e.withCtx(()=>[e.createVNode(E,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:$=>ie(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers"]),e.createVNode(e.unref(l.EntityDeleteModal),{"action-pending":T.value,description:e.unref(a)("keySets.delete.description"),"entity-name":I.value&&(I.value.name||I.value.id),"entity-type":e.unref(l.EntityTypes).KeySet,error:L.value,title:e.unref(a)("keySets.delete.title"),visible:D.value,onCancel:le,onProceed:ce},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),J=(t,S)=>{const y=t.__vccOpts||t;for(const[o,a]of S)y[o]=a;return y},Z=J(Y,[["__scopeId","data-v-5a65a27f"]]),v={class:"kong-ui-entities-key-sets-form"},ee=J(e.defineComponent({__name:"KeySetForm",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string"||!t.cancelRoute)},keySetId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(t,{emit:S}){var V;const y=S,o=t,a=A.useRouter(),{i18n:{t:m}}=F.useI18n(),{getMessageFromError:h}=l.useErrors(),{axiosInstance:k}=l.useAxios((V=o.config)==null?void 0:V.axiosRequestConfig),M=e.computed(()=>K.form[o.config.app].edit),N=e.computed(()=>o.keySetId?l.EntityBaseFormType.Edit:l.EntityBaseFormType.Create),i=e.reactive({fields:{name:"",tags:""},isReadonly:!1,errorMessage:""}),b=e.reactive({name:"",tags:""}),R=e.computed(()=>JSON.stringify(i.fields)!==JSON.stringify(b)&&!!i.fields.name),q=s=>{var c;i.fields.name=(s==null?void 0:s.name)||"",i.fields.tags=((c=s==null?void 0:s.tags)==null?void 0:c.join(", "))||"",Object.assign(b,i.fields)},P=()=>{a.push(o.config.cancelRoute)},w=e.computed(()=>{var c,d;let s=`${o.config.apiBaseUrl}${K.form[o.config.app][N.value]}`;return o.config.app==="konnect"?s=s.replace(/{controlPlaneId}/gi,((c=o.config)==null?void 0:c.controlPlaneId)||""):o.config.app==="kongManager"&&(s=s.replace(/\/{workspace}/gi,(d=o.config)!=null&&d.workspace?`/${o.config.workspace}`:"")),s=s.replace(/{id}/gi,o.keySetId),s}),x=e.computed(()=>{var s,c,d;return{name:i.fields.name,tags:((d=(c=(s=i.fields.tags)==null?void 0:s.split(","))==null?void 0:c.map(f=>String(f||"").trim()))==null?void 0:d.filter(f=>f!==""))||""}}),O=async()=>{var s,c;try{i.isReadonly=!0;let d;if(N.value==="create"?d=await k.post(w.value,x.value):N.value==="edit"&&(d=((s=o.config)==null?void 0:s.app)==="konnect"?await k.put(w.value,x.value):await k.patch(w.value,x.value)),d){const{data:f}=d;i.fields.name=(f==null?void 0:f.name)||"",i.fields.tags=((c=f==null?void 0:f.tags)==null?void 0:c.join(", "))||"",Object.assign(b,i.fields),y("update",d==null?void 0:d.data)}}catch(d){i.errorMessage=h(d),y("error",d)}finally{i.isReadonly=!1}};return(s,c)=>{const d=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(l.EntityBaseForm),{"can-submit":R.value,config:t.config,"edit-id":t.keySetId,"entity-type":e.unref(l.SupportedEntityType).KeySet,"error-message":i.errorMessage,"fetch-url":M.value,"form-fields":x.value,"is-readonly":i.isReadonly,onCancel:P,"onFetch:error":c[2]||(c[2]=f=>s.$emit("error",f)),"onFetch:success":q,onLoading:c[3]||(c[3]=f=>s.$emit("loading",f)),onSubmit:O},{default:e.withCtx(()=>[e.createVNode(e.unref(l.EntityFormSection),{description:e.unref(m)("keySets.form.sections.general.description"),"has-divider":"",title:e.unref(m)("keySets.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.fields.name,"onUpdate:modelValue":c[0]||(c[0]=f=>i.fields.name=f),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-set-form-name",label:e.unref(m)("keySets.form.fields.name.label"),placeholder:e.unref(m)("keySets.form.fields.name.placeholder"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(d,{modelValue:i.fields.tags,"onUpdate:modelValue":c[1]||(c[1]=f=>i.fields.tags=f),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-set-form-tags",help:e.unref(m)("keySets.form.fields.tags.help"),label:e.unref(m)("keySets.form.fields.tags.label"),"label-attributes":{info:e.unref(m)("keySets.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(m)("keySets.form.fields.tags.placeholder"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-d1b94475"]]),te={class:"kong-ui-entities-keys-entity-config-card"},oe=e.defineComponent({__name:"KeySetConfigCard",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string"||!t.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(t){const S=t,{i18n:{t:y}}=F.useI18n(),o=e.computed(()=>K.form[S.config.app].edit),a=e.ref({id:{},name:{},last_updated:{},created:{},tags:{tooltip:y("keySets.form.fields.tags.tooltip")}});return(m,h)=>(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(e.unref(l.EntityBaseConfigCard),{config:t.config,"config-card-doc":t.configCardDoc,"config-schema":a.value,"entity-type":e.unref(l.SupportedEntityType).KeySet,"fetch-url":o.value,"hide-title":t.hideTitle,"onFetch:error":h[0]||(h[0]=k=>m.$emit("fetch:error",k)),"onFetch:success":h[1]||(h[1]=k=>m.$emit("fetch:success",k)),onLoading:h[2]||(h[2]=k=>m.$emit("loading",k))},null,8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});g.KeySetConfigCard=oe,g.KeySetForm=ee,g.KeySetList=Z,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-499e74da]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-499e74da]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-key-sets-list[data-v-e8613139]{width:100%}.kong-ui-entities-key-sets-list .kong-ui-entity-filter-input[data-v-e8613139]{margin-right:12px}.kong-ui-entities-key-sets-form[data-v-d1b94475]{width:100%}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-6f28b73b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-6f28b73b]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-key-sets-list[data-v-5a65a27f]{width:100%}.kong-ui-entities-key-sets-list .kong-ui-entity-filter-input[data-v-5a65a27f]{margin-right:12px}.kong-ui-entities-key-sets-form[data-v-d1b94475]{width:100%}
@@ -1 +1 @@
1
- {"version":3,"file":"KeySetList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeySetList.vue"],"names":[],"mappings":"AAgdA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBvC,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACvB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;;IAmxBrD,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;;;;;IAYrF,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;IAxCjH,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;;;;;IAYrF,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;qBAtB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;AAhD7E,wBA0DG"}
1
+ {"version":3,"file":"KeySetList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeySetList.vue"],"names":[],"mappings":"AAmdA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBvC,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACvB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;;IAsxBrD,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;;;;;IAYrF,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;IAxCjH,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;;;;;IAYrF,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;qBAtB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;AAhD7E,wBA0DG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-key-sets",
3
- "version": "3.5.57",
3
+ "version": "3.5.58",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-key-sets.umd.js",
6
6
  "module": "./dist/entities-key-sets.es.js",
@@ -26,8 +26,8 @@
26
26
  "axios": "^1.7.7",
27
27
  "vue": ">= 3.3.13 < 4",
28
28
  "vue-router": "^4.4.5",
29
- "@kong-ui-public/i18n": "^2.2.10",
30
- "@kong-ui-public/entities-shared": "^3.10.16"
29
+ "@kong-ui-public/entities-shared": "^3.10.17",
30
+ "@kong-ui-public/i18n": "^2.2.10"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@kong/icons": "^1.20.0",
@@ -35,7 +35,7 @@
35
35
  "axios": "^1.7.7",
36
36
  "vue": "^3.5.12",
37
37
  "vue-router": "^4.4.5",
38
- "@kong-ui-public/entities-shared": "^3.10.16",
38
+ "@kong-ui-public/entities-shared": "^3.10.17",
39
39
  "@kong-ui-public/i18n": "^2.2.10"
40
40
  },
41
41
  "repository": {