@kong-ui-public/entities-snis 3.5.75 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as ce, computed as y, ref as _, watch as ne, onBeforeMount as de, resolveComponent as F, openBlock as S, createElementBlock as A, createVNode as f, unref as a, withCtx as u, createBlock as L, Teleport as me, createTextVNode as j, toDisplayString as C, createElementVNode as oe, reactive as re, createCommentVNode as ge } from "vue";
2
- import { createI18n as ye, i18nTComponent as ve } from "@kong-ui-public/i18n";
3
- import { useAxios as fe, useFetcher as he, useDeleteUrlBuilder as be, FetcherStatus as ke, EntityBaseTable as Ie, EntityFilter as _e, PermissionsWrapper as ie, TableTags as Ce, EntityDeleteModal as Se, EntityTypes as Ee, useErrors as Me, EntityBaseFormType as ae, useDebouncedFilter as $e, EntityBaseForm as xe, SupportedEntityType as Fe, EntityFormSection as le } from "@kong-ui-public/entities-shared";
4
- import { AddIcon as Ne } from "@kong/icons";
5
- import { useRouter as we } from "vue-router";
6
- const De = {
1
+ import { defineComponent as me, computed as g, ref as k, watch as le, onBeforeMount as ge, resolveComponent as D, openBlock as h, createElementBlock as W, createVNode as d, unref as a, createSlots as Se, withCtx as u, createBlock as F, Teleport as de, createElementVNode as P, createCommentVNode as ye, createTextVNode as H, toDisplayString as I, reactive as ue } from "vue";
2
+ import { useRouter as ve } from "vue-router";
3
+ import { createI18n as Ce, i18nTComponent as _e } from "@kong-ui-public/i18n";
4
+ import { useAxios as be, useTableState as Ee, useFetcher as $e, useDeleteUrlBuilder as Ne, FetcherStatus as Me, EntityBaseTable as we, EntityFilter as xe, PermissionsWrapper as se, TableTags as De, EntityEmptyState as Fe, EntityDeleteModal as Re, EntityTypes as Be, useErrors as Te, EntityBaseFormType as re, useDebouncedFilter as Ve, EntityBaseForm as Ke, SupportedEntityType as Oe, EntityFormSection as fe } from "@kong-ui-public/entities-shared";
5
+ import { BookIcon as pe, AddIcon as Ue, CloudIcon as qe } from "@kong/icons";
6
+ const Pe = {
7
7
  create: "New SNI",
8
8
  copy_id: "Copy ID",
9
9
  copy_json: "Copy JSON",
@@ -11,10 +11,10 @@ const De = {
11
11
  delete: "Delete",
12
12
  clear: "Clear",
13
13
  loading: "Loading..."
14
- }, Re = {
14
+ }, Ae = {
15
15
  placeholder: "Filter by exact name or ID",
16
16
  no_results: "No results found"
17
- }, Be = {
17
+ }, Le = {
18
18
  title: "SNIs",
19
19
  list: {
20
20
  toolbar_actions: {
@@ -29,9 +29,14 @@ const De = {
29
29
  empty_state: {
30
30
  title: "Configure a New SNI",
31
31
  description: "SNIs are used to map hostnames to a certificate."
32
+ },
33
+ empty_state_v2: {
34
+ title: "Configure your first SNI",
35
+ description: "Server Name Indications (SNIs) map hostnames to SSL/TLS certificates, enabling secure connections for domain-specific traffic.",
36
+ create_cta: "New SNI"
32
37
  }
33
38
  }
34
- }, Te = {
39
+ }, je = {
35
40
  sections: {
36
41
  general: {
37
42
  title: "General Information",
@@ -59,7 +64,7 @@ const De = {
59
64
  footer: "Search by exact ID to find certificates not included in the list"
60
65
  }
61
66
  }
62
- }, Ve = {
67
+ }, Je = {
63
68
  delete: "The SNI could not be deleted at this time.",
64
69
  general: "SNIs could not be retrieved",
65
70
  certificates: {
@@ -67,55 +72,55 @@ const De = {
67
72
  invalid: "Please select a valid certificate ID"
68
73
  },
69
74
  copy: "Failed to copy to clipboard"
70
- }, Ke = {
75
+ }, Qe = {
71
76
  success: "Copied {val} to clipboard",
72
77
  success_brief: "Successfully copied to clipboard"
73
- }, qe = {
74
- actions: De,
75
- search: Re,
76
- snis: Be,
77
- form: Te,
78
+ }, ze = {
79
+ actions: Pe,
80
+ search: Ae,
81
+ snis: Le,
82
+ form: je,
78
83
  delete: {
79
84
  title: "Delete an SNI",
80
85
  description: "This action cannot be reversed so make sure to check the SNI usage before deleting."
81
86
  },
82
- errors: Ve,
83
- copy: Ke
87
+ errors: Je,
88
+ copy: Qe
84
89
  };
85
- function Pe() {
86
- const i = ye("en-us", qe);
90
+ function He() {
91
+ const i = Ce("en-us", ze);
87
92
  return {
88
93
  i18n: i,
89
- i18nT: ve(i)
94
+ i18nT: _e(i)
90
95
  // Translation component <i18n-t>
91
96
  };
92
97
  }
93
- const ue = {
94
- useI18n: Pe
95
- }, K = "/v2/control-planes/{controlPlaneId}/core-entities", q = "/{workspace}", P = {
98
+ const he = {
99
+ useI18n: He
100
+ }, O = "/v2/control-planes/{controlPlaneId}/core-entities", U = "/{workspace}", q = {
96
101
  list: {
97
102
  konnect: {
98
- all: `${K}/snis`
103
+ all: `${O}/snis`
99
104
  },
100
105
  kongManager: {
101
- all: `${q}/snis`
106
+ all: `${U}/snis`
102
107
  }
103
108
  },
104
109
  form: {
105
110
  konnect: {
106
- create: `${K}/snis`,
107
- edit: `${K}/snis/{id}`,
108
- validate: `${K}/v1/schemas/json/sni/validate`,
109
- certificates: `${K}/certificates`
111
+ create: `${O}/snis`,
112
+ edit: `${O}/snis/{id}`,
113
+ validate: `${O}/v1/schemas/json/sni/validate`,
114
+ certificates: `${O}/certificates`
110
115
  },
111
116
  kongManager: {
112
- create: `${q}/snis`,
113
- edit: `${q}/snis/{id}`,
114
- validate: `${q}/schemas/snis/validate`,
115
- certificates: `${q}/certificates`
117
+ create: `${U}/snis`,
118
+ edit: `${U}/snis/{id}`,
119
+ validate: `${U}/schemas/snis/validate`,
120
+ certificates: `${U}/certificates`
116
121
  }
117
122
  }
118
- }, Ue = { class: "kong-ui-entities-snis-list" }, Oe = { key: 1 }, je = /* @__PURE__ */ ce({
123
+ }, We = "#00abd2", Ge = "24px", Xe = { class: "kong-ui-entities-snis-list" }, Ze = { class: "button-row" }, Ye = { class: "empty-state-icon-gateway" }, et = { key: 1 }, tt = /* @__PURE__ */ me({
119
124
  __name: "SniList",
120
125
  props: {
121
126
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -157,229 +162,255 @@ const ue = {
157
162
  useActionOutside: {
158
163
  type: Boolean,
159
164
  default: !1
165
+ },
166
+ /**
167
+ * Enables the new empty state design, this prop can be removed when
168
+ * the khcp-14756-empty-states-m2 FF is removed.
169
+ */
170
+ enableV2EmptyStates: {
171
+ type: Boolean,
172
+ default: !1
160
173
  }
161
174
  },
162
- emits: ["error", "copy:success", "copy:error", "delete:success"],
163
- setup(i, { emit: N }) {
164
- var O;
165
- const v = N, e = i, { i18n: { t: l } } = ue.useI18n(), { axiosInstance: c } = fe((O = e.config) == null ? void 0 : O.axiosRequestConfig), J = y(() => e.config.app !== "kongManager" || !!e.config.disableSorting), E = {
175
+ emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
176
+ setup(i, { emit: R }) {
177
+ var o;
178
+ const y = R, t = i, { i18n: { t: l } } = he.useI18n(), p = ve(), { axiosInstance: G } = be((o = t.config) == null ? void 0 : o.axiosRequestConfig), { hasRecords: S, handleStateChange: X } = Ee(() => C.value), E = g(() => S.value && t.config.app === "konnect"), $ = g(() => !t.enableV2EmptyStates && t.config.app === "konnect"), s = g(() => t.config.app !== "kongManager" || !!t.config.disableSorting), N = {
166
179
  // the Name column is non-hidable
167
180
  name: { label: l("snis.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
168
181
  certificate: { label: l("snis.list.table_headers.certificate_id"), sortable: !1 },
169
182
  tags: { label: l("snis.list.table_headers.tags"), sortable: !1 }
170
- }, Q = E, $ = (n) => ({
183
+ }, Z = N, Y = (e) => ({
171
184
  style: {
172
- maxWidth: n.headerKey === "name" ? "250px" : n.headerKey === "certificate" ? "350px" : null
185
+ maxWidth: e.headerKey === "name" ? "250px" : e.headerKey === "certificate" ? "350px" : null
173
186
  }
174
- }), M = y(() => {
175
- var d, p;
176
- let n = `${e.config.apiBaseUrl}${P.list[e.config.app].all}`;
177
- return e.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((d = e.config) == null ? void 0 : d.controlPlaneId) || "") : e.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (p = e.config) != null && p.workspace ? `/${e.config.workspace}` : "")), n;
178
- }), r = _(""), w = y(() => {
179
- const n = e.config.app === "konnect" || e.config.isExactMatch;
180
- if (n)
187
+ }), A = g(() => {
188
+ var c, r;
189
+ let e = `${t.config.apiBaseUrl}${q.list[t.config.app].all}`;
190
+ return t.config.app === "konnect" ? e = e.replace(/{controlPlaneId}/gi, ((c = t.config) == null ? void 0 : c.controlPlaneId) || "") : t.config.app === "kongManager" && (e = e.replace(/\/{workspace}/gi, (r = t.config) != null && r.workspace ? `/${t.config.workspace}` : "")), e;
191
+ }), C = k(""), B = g(() => {
192
+ const e = t.config.app === "konnect" || t.config.isExactMatch;
193
+ if (e)
181
194
  return {
182
- isExactMatch: n,
195
+ isExactMatch: e,
183
196
  placeholder: l("search.placeholder")
184
197
  };
185
- const { name: d } = E;
198
+ const { name: c } = N;
186
199
  return {
187
- isExactMatch: n,
188
- fields: { name: d },
189
- schema: e.config.filterSchema
200
+ isExactMatch: e,
201
+ fields: { name: c },
202
+ schema: t.config.filterSchema
190
203
  };
191
204
  }), {
192
- fetcher: W,
193
- fetcherState: z,
194
- fetcherCacheKey: D
195
- } = he({ ...e.config, cacheIdentifier: e.cacheIdentifier }, M.value), G = () => {
196
- r.value = "";
197
- }, R = () => {
198
- D.value++;
199
- }, b = _(null), B = _({
200
- ctaPath: e.config.createRoute,
205
+ fetcher: _,
206
+ fetcherState: ee,
207
+ fetcherCacheKey: T
208
+ } = $e({ ...t.config, cacheIdentifier: t.cacheIdentifier }, A.value), te = () => {
209
+ C.value = "";
210
+ }, ae = () => {
211
+ T.value++;
212
+ }, M = k(null), V = k({
213
+ ctaPath: t.config.createRoute,
201
214
  ctaText: void 0,
202
- message: `${l("snis.list.empty_state.description")}${e.config.additionMessageForEmptyState ? ` ${e.config.additionMessageForEmptyState}` : ""}`,
215
+ message: `${l("snis.list.empty_state.description")}${t.config.additionMessageForEmptyState ? ` ${t.config.additionMessageForEmptyState}` : ""}`,
203
216
  title: l("snis.title")
204
- }), H = (n, d) => {
205
- const p = n.id;
206
- if (!d(p)) {
207
- v("copy:error", {
208
- entity: n,
217
+ }), ie = (e, c) => {
218
+ const r = e.id;
219
+ if (!c(r)) {
220
+ y("copy:error", {
221
+ entity: e,
209
222
  field: "id",
210
223
  message: l("errors.copy")
211
224
  });
212
225
  return;
213
226
  }
214
- v("copy:success", {
215
- entity: n,
227
+ y("copy:success", {
228
+ entity: e,
216
229
  field: "id",
217
- message: l("copy.success", { val: p })
230
+ message: l("copy.success", { val: r })
218
231
  });
219
- }, X = (n, d) => {
220
- const p = JSON.stringify(n);
221
- if (!d(p)) {
222
- v("copy:error", {
223
- entity: n,
232
+ }, ne = (e, c) => {
233
+ const r = JSON.stringify(e);
234
+ if (!c(r)) {
235
+ y("copy:error", {
236
+ entity: e,
224
237
  message: l("errors.copy")
225
238
  });
226
239
  return;
227
240
  }
228
- v("copy:success", {
229
- entity: n,
241
+ y("copy:success", {
242
+ entity: e,
230
243
  message: l("copy.success_brief")
231
244
  });
232
- }, Y = (n) => ({
245
+ }, oe = (e) => ({
233
246
  label: l("actions.edit"),
234
- to: e.config.getEditRoute(n)
235
- }), k = _(void 0), T = _(!1), x = _(!1), U = _(""), Z = be(e.config, M.value), ee = (n) => {
236
- k.value = n, T.value = !0;
237
- }, V = () => {
238
- T.value = !1, k.value = void 0;
239
- }, te = async () => {
240
- var n, d, p;
241
- if ((n = k.value) != null && n.id) {
247
+ to: t.config.getEditRoute(e)
248
+ }), b = k(void 0), w = k(!1), x = k(!1), L = k(""), K = Ne(t.config, A.value), j = (e) => {
249
+ b.value = e, w.value = !0;
250
+ }, J = () => {
251
+ w.value = !1, b.value = void 0;
252
+ }, Q = async () => {
253
+ var e, c, r;
254
+ if ((e = b.value) != null && e.id) {
242
255
  x.value = !0;
243
256
  try {
244
- await c.delete(Z(k.value.id)), v("delete:success", k.value), x.value = !1, V(), D.value++;
245
- } catch (h) {
246
- U.value = ((p = (d = h.response) == null ? void 0 : d.data) == null ? void 0 : p.message) || h.message || l("errors.delete"), v("error", h);
257
+ await G.delete(K(b.value.id)), y("delete:success", b.value), x.value = !1, J(), T.value++;
258
+ } catch (v) {
259
+ L.value = ((r = (c = v.response) == null ? void 0 : c.data) == null ? void 0 : r.message) || v.message || l("errors.delete"), y("error", v);
247
260
  } finally {
248
261
  x.value = !1;
249
262
  }
250
263
  }
264
+ }, n = () => {
265
+ p.push(t.config.createRoute);
251
266
  };
252
- return ne(z, (n) => {
253
- var d, p, h;
254
- if (n.status === ke.Error) {
255
- b.value = {
267
+ return le(ee, (e) => {
268
+ var c, r, v;
269
+ if (e.status === Me.Error) {
270
+ M.value = {
256
271
  title: l("errors.general")
257
- }, (h = (p = (d = n.error) == null ? void 0 : d.response) == null ? void 0 : p.data) != null && h.message && (b.value.message = n.error.response.data.message), v("error", n.error);
272
+ }, (v = (r = (c = e.error) == null ? void 0 : c.response) == null ? void 0 : r.data) != null && v.message && (M.value.message = e.error.response.data.message), y("error", e.error);
258
273
  return;
259
274
  }
260
- b.value = null;
261
- }), de(async () => {
262
- await e.canCreate() && (B.value.title = l("snis.list.empty_state.title"), B.value.ctaText = l("actions.create"));
263
- }), (n, d) => {
264
- const p = F("KButton"), h = F("KCopy"), t = F("KDropdownItem"), s = F("KClipboardProvider");
265
- return S(), A("div", Ue, [
266
- f(a(Ie), {
275
+ M.value = null;
276
+ }), ge(async () => {
277
+ await t.canCreate() && (V.value.title = l("snis.list.empty_state.title"), V.value.ctaText = l("actions.create"));
278
+ }), (e, c) => {
279
+ const r = D("KButton"), v = D("KCopy"), f = D("KDropdownItem"), ce = D("KClipboardProvider");
280
+ return h(), W("div", Xe, [
281
+ d(a(we), {
267
282
  "cache-identifier": i.cacheIdentifier,
268
- "cell-attributes": $,
283
+ "cell-attributes": Y,
269
284
  "disable-row-click": !0,
270
- "disable-sorting": J.value,
271
- "empty-state-options": B.value,
285
+ "disable-sorting": s.value,
286
+ "empty-state-options": V.value,
272
287
  "enable-entity-actions": "",
273
- "error-message": b.value,
274
- fetcher: a(W),
275
- "fetcher-cache-key": a(D),
288
+ "error-message": M.value,
289
+ fetcher: a(_),
290
+ "fetcher-cache-key": a(T),
276
291
  "pagination-type": "offset",
277
292
  "preferences-storage-key": "kong-ui-entities-snis-list",
278
- query: r.value,
279
- "table-headers": a(Q),
280
- onClearSearchInput: G,
281
- onSort: R
282
- }, {
293
+ query: C.value,
294
+ "table-headers": a(Z),
295
+ onClearSearchInput: te,
296
+ onSort: ae,
297
+ onState: a(X)
298
+ }, Se({
283
299
  "toolbar-filter": u(() => [
284
- f(a(_e), {
285
- modelValue: r.value,
286
- "onUpdate:modelValue": d[0] || (d[0] = (o) => r.value = o),
287
- config: w.value
300
+ d(a(xe), {
301
+ modelValue: C.value,
302
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => C.value = m),
303
+ config: B.value
288
304
  }, null, 8, ["modelValue", "config"])
289
305
  ]),
290
306
  "toolbar-button": u(() => [
291
- (S(), L(me, {
307
+ (h(), F(de, {
292
308
  disabled: !i.useActionOutside,
293
309
  to: "#kong-ui-app-page-header-action-button"
294
310
  }, [
295
- f(a(ie), {
296
- "auth-function": () => i.canCreate()
297
- }, {
298
- default: u(() => [
299
- f(p, {
300
- appearance: "primary",
301
- "data-testid": "toolbar-add-sni",
302
- size: i.useActionOutside ? "medium" : "large",
303
- to: i.config.createRoute
304
- }, {
305
- default: u(() => [
306
- f(a(Ne)),
307
- j(" " + C(a(l)("snis.list.toolbar_actions.new")), 1)
308
- ]),
309
- _: 1
310
- }, 8, ["size", "to"])
311
- ]),
312
- _: 1
313
- }, 8, ["auth-function"])
311
+ P("div", Ze, [
312
+ E.value ? (h(), F(r, {
313
+ key: 0,
314
+ appearance: "secondary",
315
+ class: "open-learning-hub",
316
+ "data-testid": "snis-learn-more-button",
317
+ icon: "",
318
+ onClick: c[1] || (c[1] = (m) => e.$emit("click:learn-more"))
319
+ }, {
320
+ default: u(() => [
321
+ d(a(pe), { decorative: "" })
322
+ ]),
323
+ _: 1
324
+ })) : ye("", !0),
325
+ d(a(se), {
326
+ "auth-function": () => i.canCreate()
327
+ }, {
328
+ default: u(() => [
329
+ d(r, {
330
+ appearance: "primary",
331
+ "data-testid": "toolbar-add-sni",
332
+ size: i.useActionOutside ? "medium" : "large",
333
+ to: i.config.createRoute
334
+ }, {
335
+ default: u(() => [
336
+ d(a(Ue)),
337
+ H(" " + I(a(l)("snis.list.toolbar_actions.new")), 1)
338
+ ]),
339
+ _: 1
340
+ }, 8, ["size", "to"])
341
+ ]),
342
+ _: 1
343
+ }, 8, ["auth-function"])
344
+ ])
314
345
  ], 8, ["disabled"]))
315
346
  ]),
316
- name: u(({ rowValue: o }) => [
317
- oe("b", null, C(o ?? "-"), 1)
347
+ name: u(({ rowValue: m }) => [
348
+ P("b", null, I(m ?? "-"), 1)
318
349
  ]),
319
- certificate: u(({ row: o }) => [
320
- o.certificate && o.certificate.id ? (S(), L(h, {
350
+ certificate: u(({ row: m }) => [
351
+ m.certificate && m.certificate.id ? (h(), F(v, {
321
352
  key: 0,
322
353
  class: "copy-certificate-uuid",
323
354
  "data-testid": "copy-certificate-uuid",
324
- text: o.certificate.id,
355
+ text: m.certificate.id,
325
356
  truncate: ""
326
- }, null, 8, ["text"])) : (S(), A("span", Oe, "-"))
357
+ }, null, 8, ["text"])) : (h(), W("span", et, "-"))
327
358
  ]),
328
- tags: u(({ rowValue: o }) => [
329
- f(a(Ce), { tags: o }, null, 8, ["tags"])
359
+ tags: u(({ rowValue: m }) => [
360
+ d(a(De), { tags: m }, null, 8, ["tags"])
330
361
  ]),
331
- actions: u(({ row: o }) => [
332
- f(s, null, {
333
- default: u(({ copyToClipboard: I }) => [
334
- f(t, {
362
+ actions: u(({ row: m }) => [
363
+ d(ce, null, {
364
+ default: u(({ copyToClipboard: z }) => [
365
+ d(f, {
335
366
  "data-testid": "action-entity-copy-id",
336
- onClick: (g) => H(o, I)
367
+ onClick: (Ie) => ie(m, z)
337
368
  }, {
338
369
  default: u(() => [
339
- j(C(a(l)("actions.copy_id")), 1)
370
+ H(I(a(l)("actions.copy_id")), 1)
340
371
  ]),
341
372
  _: 2
342
373
  }, 1032, ["onClick"])
343
374
  ]),
344
375
  _: 2
345
376
  }, 1024),
346
- f(s, null, {
347
- default: u(({ copyToClipboard: I }) => [
348
- f(t, {
377
+ d(ce, null, {
378
+ default: u(({ copyToClipboard: z }) => [
379
+ d(f, {
349
380
  "data-testid": "action-entity-copy-json",
350
- onClick: (g) => X(o, I)
381
+ onClick: (Ie) => ne(m, z)
351
382
  }, {
352
383
  default: u(() => [
353
- j(C(a(l)("actions.copy_json")), 1)
384
+ H(I(a(l)("actions.copy_json")), 1)
354
385
  ]),
355
386
  _: 2
356
387
  }, 1032, ["onClick"])
357
388
  ]),
358
389
  _: 2
359
390
  }, 1024),
360
- f(a(ie), {
361
- "auth-function": () => i.canEdit(o)
391
+ d(a(se), {
392
+ "auth-function": () => i.canEdit(m)
362
393
  }, {
363
394
  default: u(() => [
364
- f(t, {
395
+ d(f, {
365
396
  "data-testid": "action-entity-edit",
366
- item: Y(o.id)
397
+ item: oe(m.id)
367
398
  }, null, 8, ["item"])
368
399
  ]),
369
400
  _: 2
370
401
  }, 1032, ["auth-function"]),
371
- f(a(ie), {
372
- "auth-function": () => i.canDelete(o)
402
+ d(a(se), {
403
+ "auth-function": () => i.canDelete(m)
373
404
  }, {
374
405
  default: u(() => [
375
- f(t, {
406
+ d(f, {
376
407
  danger: "",
377
408
  "data-testid": "action-entity-delete",
378
409
  "has-divider": "",
379
- onClick: (I) => ee(o)
410
+ onClick: (z) => j(m)
380
411
  }, {
381
412
  default: u(() => [
382
- j(C(a(l)("actions.delete")), 1)
413
+ H(I(a(l)("actions.delete")), 1)
383
414
  ]),
384
415
  _: 2
385
416
  }, 1032, ["onClick"])
@@ -387,33 +418,83 @@ const ue = {
387
418
  _: 2
388
419
  }, 1032, ["auth-function"])
389
420
  ]),
390
- _: 1
391
- }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
392
- f(a(Se), {
421
+ _: 2
422
+ }, [
423
+ !a(S) && $.value ? {
424
+ name: "outside-actions",
425
+ fn: u(() => [
426
+ (h(), F(de, {
427
+ disabled: !i.useActionOutside,
428
+ to: "#kong-ui-app-page-header-action-button"
429
+ }, [
430
+ d(r, {
431
+ appearance: "secondary",
432
+ class: "open-learning-hub",
433
+ "data-testid": "sni-learn-more-button",
434
+ icon: "",
435
+ onClick: c[2] || (c[2] = (m) => e.$emit("click:learn-more"))
436
+ }, {
437
+ default: u(() => [
438
+ d(a(pe), { decorative: "" })
439
+ ]),
440
+ _: 1
441
+ })
442
+ ], 8, ["disabled"]))
443
+ ]),
444
+ key: "0"
445
+ } : void 0,
446
+ i.enableV2EmptyStates && i.config.app === "konnect" ? {
447
+ name: "empty-state",
448
+ fn: u(() => [
449
+ d(a(Fe), {
450
+ "action-button-text": a(l)("snis.list.toolbar_actions.new"),
451
+ appearance: "secondary",
452
+ "can-create": () => i.canCreate(),
453
+ description: a(l)("snis.list.empty_state_v2.description"),
454
+ "learn-more": i.config.app === "konnect",
455
+ title: a(l)("snis.list.empty_state_v2.title"),
456
+ "onClick:create": n,
457
+ "onClick:learnMore": c[3] || (c[3] = (m) => e.$emit("click:learn-more"))
458
+ }, {
459
+ image: u(() => [
460
+ P("div", Ye, [
461
+ d(a(qe), {
462
+ color: a(We),
463
+ size: a(Ge)
464
+ }, null, 8, ["color", "size"])
465
+ ])
466
+ ]),
467
+ _: 1
468
+ }, 8, ["action-button-text", "can-create", "description", "learn-more", "title"])
469
+ ]),
470
+ key: "1"
471
+ } : void 0
472
+ ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
473
+ d(a(Re), {
393
474
  "action-pending": x.value,
394
475
  description: a(l)("delete.description"),
395
- "entity-name": k.value && (k.value.name || k.value.id),
396
- "entity-type": a(Ee).SNI,
397
- error: U.value,
476
+ "entity-name": b.value && (b.value.name || b.value.id),
477
+ "entity-type": a(Be).SNI,
478
+ error: L.value,
398
479
  "need-confirm": !1,
399
480
  title: a(l)("delete.title"),
400
- visible: T.value,
401
- onCancel: V,
402
- onProceed: te
481
+ visible: w.value,
482
+ onCancel: J,
483
+ onProceed: Q
403
484
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
404
485
  ]);
405
486
  };
406
487
  }
407
- }), pe = (i, N) => {
408
- const v = i.__vccOpts || i;
409
- for (const [e, l] of N)
410
- v[e] = l;
411
- return v;
412
- }, Ye = /* @__PURE__ */ pe(je, [["__scopeId", "data-v-38777abd"]]), Ae = { class: "kong-ui-entities-snis-form" }, Le = { "data-testid": "no-search-results" }, Je = {
488
+ }), ke = (i, R) => {
489
+ const y = i.__vccOpts || i;
490
+ for (const [t, l] of R)
491
+ y[t] = l;
492
+ return y;
493
+ }, ut = /* @__PURE__ */ ke(tt, [["__scopeId", "data-v-dfdb7df6"]]), at = { class: "kong-ui-entities-snis-form" }, it = { "data-testid": "no-search-results" }, nt = {
413
494
  key: 2,
414
495
  class: "invalid-certificate-message",
415
496
  "data-testid": "invalid-certificate-message"
416
- }, Qe = /* @__PURE__ */ ce({
497
+ }, ot = /* @__PURE__ */ me({
417
498
  __name: "SniForm",
418
499
  props: {
419
500
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -430,9 +511,9 @@ const ue = {
430
511
  }
431
512
  },
432
513
  emits: ["update", "error", "loading"],
433
- setup(i, { emit: N }) {
434
- var h;
435
- const v = N, e = i, l = we(), { i18n: { t: c } } = ue.useI18n(), { getMessageFromError: J } = Me(), { axiosInstance: E } = fe((h = e.config) == null ? void 0 : h.axiosRequestConfig), Q = y(() => P.form[e.config.app].edit), $ = y(() => e.sniId ? ae.Edit : ae.Create), M = y(() => e.config.certificateId && $.value === ae.Create ? e.config.certificateId : ""), r = re({
514
+ setup(i, { emit: R }) {
515
+ var Q;
516
+ const y = R, t = i, l = ve(), { i18n: { t: p } } = he.useI18n(), { getMessageFromError: G } = Te(), { axiosInstance: S } = be((Q = t.config) == null ? void 0 : Q.axiosRequestConfig), X = g(() => q.form[t.config.app].edit), E = g(() => t.sniId ? re.Edit : re.Create), $ = g(() => t.config.certificateId && E.value === re.Create ? t.config.certificateId : ""), s = ue({
436
517
  fields: {
437
518
  name: "",
438
519
  tags: "",
@@ -440,163 +521,163 @@ const ue = {
440
521
  },
441
522
  isReadonly: !1,
442
523
  errorMessage: ""
443
- }), w = re({
524
+ }), N = ue({
444
525
  name: "",
445
526
  tags: "",
446
527
  certificate_id: ""
447
- }), W = y(() => JSON.stringify(r.fields) !== JSON.stringify(w) && !!r.fields.name && !!(r.fields.certificate_id || M.value)), z = (t) => {
448
- var s, o;
449
- r.fields.name = (t == null ? void 0 : t.name) || "", r.fields.tags = ((s = t == null ? void 0 : t.tags) == null ? void 0 : s.join(", ")) || "", r.fields.certificate_id = ((o = t == null ? void 0 : t.certificate) == null ? void 0 : o.id) || "", Object.assign(w, r.fields);
450
- }, D = () => {
451
- l.push(e.config.cancelRoute);
452
- }, G = y(() => {
453
- var s, o;
454
- let t = `${e.config.apiBaseUrl}${P.form[e.config.app].validate}`;
455
- return e.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((s = e.config) == null ? void 0 : s.controlPlaneId) || "") : e.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (o = e.config) != null && o.workspace ? `/${e.config.workspace}` : "")), t = t.replace(/{id}/gi, e.sniId), t;
456
- }), R = y(() => {
457
- var s, o;
458
- let t = `${e.config.apiBaseUrl}${P.form[e.config.app][$.value]}`;
459
- return e.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((s = e.config) == null ? void 0 : s.controlPlaneId) || "") : e.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (o = e.config) != null && o.workspace ? `/${e.config.workspace}` : "")), t = t.replace(/{id}/gi, e.sniId), t;
460
- }), b = y(() => {
461
- var t, s;
528
+ }), Z = g(() => JSON.stringify(s.fields) !== JSON.stringify(N) && !!s.fields.name && !!(s.fields.certificate_id || $.value)), Y = (n) => {
529
+ var o, e;
530
+ s.fields.name = (n == null ? void 0 : n.name) || "", s.fields.tags = ((o = n == null ? void 0 : n.tags) == null ? void 0 : o.join(", ")) || "", s.fields.certificate_id = ((e = n == null ? void 0 : n.certificate) == null ? void 0 : e.id) || "", Object.assign(N, s.fields);
531
+ }, A = () => {
532
+ l.push(t.config.cancelRoute);
533
+ }, C = g(() => {
534
+ var o, e;
535
+ let n = `${t.config.apiBaseUrl}${q.form[t.config.app].validate}`;
536
+ return t.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((o = t.config) == null ? void 0 : o.controlPlaneId) || "") : t.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (e = t.config) != null && e.workspace ? `/${t.config.workspace}` : "")), n = n.replace(/{id}/gi, t.sniId), n;
537
+ }), B = g(() => {
538
+ var o, e;
539
+ let n = `${t.config.apiBaseUrl}${q.form[t.config.app][E.value]}`;
540
+ return t.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((o = t.config) == null ? void 0 : o.controlPlaneId) || "") : t.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (e = t.config) != null && e.workspace ? `/${t.config.workspace}` : "")), n = n.replace(/{id}/gi, t.sniId), n;
541
+ }), _ = g(() => {
542
+ var n, o;
462
543
  return {
463
- name: r.fields.name,
464
- tags: (s = (t = r.fields.tags.split(",")) == null ? void 0 : t.map((o) => String(o || "").trim())) == null ? void 0 : s.filter((o) => o !== ""),
465
- certificate: { id: M.value || r.fields.certificate_id }
544
+ name: s.fields.name,
545
+ tags: (o = (n = s.fields.tags.split(",")) == null ? void 0 : n.map((e) => String(e || "").trim())) == null ? void 0 : o.filter((e) => e !== ""),
546
+ certificate: { id: $.value || s.fields.certificate_id }
466
547
  };
467
- }), B = async () => {
468
- var t, s, o, I, g, se;
548
+ }), ee = async () => {
549
+ var n, o, e, c, r, v;
469
550
  try {
470
- r.isReadonly = !0;
471
- let m;
472
- await E.post(G.value, b.value), $.value === "create" ? m = await E.post(R.value, b.value) : $.value === "edit" && (m = ((t = e.config) == null ? void 0 : t.app) === "konnect" ? await E.put(R.value, b.value) : await E.patch(R.value, b.value)), r.fields.name = ((s = m == null ? void 0 : m.data) == null ? void 0 : s.name) || "", r.fields.tags = ((I = (o = m == null ? void 0 : m.data) == null ? void 0 : o.tags) == null ? void 0 : I.join(", ")) || "", r.fields.certificate_id = ((se = (g = m == null ? void 0 : m.data) == null ? void 0 : g.certificate) == null ? void 0 : se.id) || "", Object.assign(w, r.fields), v("update", m == null ? void 0 : m.data);
473
- } catch (m) {
474
- r.errorMessage = J(m), v("error", m);
551
+ s.isReadonly = !0;
552
+ let f;
553
+ await S.post(C.value, _.value), E.value === "create" ? f = await S.post(B.value, _.value) : E.value === "edit" && (f = ((n = t.config) == null ? void 0 : n.app) === "konnect" ? await S.put(B.value, _.value) : await S.patch(B.value, _.value)), s.fields.name = ((o = f == null ? void 0 : f.data) == null ? void 0 : o.name) || "", s.fields.tags = ((c = (e = f == null ? void 0 : f.data) == null ? void 0 : e.tags) == null ? void 0 : c.join(", ")) || "", s.fields.certificate_id = ((v = (r = f == null ? void 0 : f.data) == null ? void 0 : r.certificate) == null ? void 0 : v.id) || "", Object.assign(N, s.fields), y("update", f == null ? void 0 : f.data);
554
+ } catch (f) {
555
+ s.errorMessage = G(f), y("error", f);
475
556
  } finally {
476
- r.isReadonly = !1;
557
+ s.isReadonly = !1;
477
558
  }
478
559
  }, {
479
- debouncedQueryChange: H,
480
- loading: X,
481
- allRecords: Y,
482
- error: k,
483
- validationError: T,
484
- loadItems: x,
485
- results: U
486
- } = $e(e.config, P.form[e.config.app].certificates), Z = (t) => {
487
- H(t);
488
- }, ee = y(() => k.value ? c("errors.certificates.fetch") : ""), V = y(() => T.value ? c("errors.certificates.invalid") : ""), te = _(0), O = y(() => Y.value === void 0), n = _(/* @__PURE__ */ new Set()), d = y(() => Array.from(n.value).map((s) => ({
489
- label: s,
490
- value: s,
491
- selected: r.fields.certificate_id === s
492
- }))), p = (t) => {
493
- n.value.clear();
494
- let s;
495
- for (s of t)
496
- n.value.add(s.id);
560
+ debouncedQueryChange: T,
561
+ loading: te,
562
+ allRecords: ae,
563
+ error: M,
564
+ validationError: V,
565
+ loadItems: ie,
566
+ results: ne
567
+ } = Ve(t.config, q.form[t.config.app].certificates), oe = (n) => {
568
+ T(n);
569
+ }, b = g(() => M.value ? p("errors.certificates.fetch") : ""), w = g(() => V.value ? p("errors.certificates.invalid") : ""), x = k(0), L = g(() => ae.value === void 0), K = k(/* @__PURE__ */ new Set()), j = g(() => Array.from(K.value).map((o) => ({
570
+ label: o,
571
+ value: o,
572
+ selected: s.fields.certificate_id === o
573
+ }))), J = (n) => {
574
+ K.value.clear();
575
+ let o;
576
+ for (o of n)
577
+ K.value.add(o.id);
497
578
  };
498
- return ne(U, (t) => {
499
- p(t);
500
- }, { immediate: !0, deep: !0 }), ne(d, () => {
501
- te.value++;
502
- }, { immediate: !0, deep: !0 }), de(async () => {
503
- await x();
504
- }), (t, s) => {
505
- const o = F("KInput"), I = F("KSelect");
506
- return S(), A("div", Ae, [
507
- f(a(xe), {
508
- "can-submit": W.value,
579
+ return le(ne, (n) => {
580
+ J(n);
581
+ }, { immediate: !0, deep: !0 }), le(j, () => {
582
+ x.value++;
583
+ }, { immediate: !0, deep: !0 }), ge(async () => {
584
+ await ie();
585
+ }), (n, o) => {
586
+ const e = D("KInput"), c = D("KSelect");
587
+ return h(), W("div", at, [
588
+ d(a(Ke), {
589
+ "can-submit": Z.value,
509
590
  config: i.config,
510
591
  "edit-id": i.sniId,
511
- "entity-type": a(Fe).SNI,
512
- "error-message": r.errorMessage || ee.value,
513
- "fetch-url": Q.value,
514
- "form-fields": b.value,
515
- "is-readonly": r.isReadonly,
516
- onCancel: D,
517
- "onFetch:error": s[3] || (s[3] = (g) => t.$emit("error", g)),
518
- "onFetch:success": z,
519
- onLoading: s[4] || (s[4] = (g) => t.$emit("loading", g)),
520
- onSubmit: B
592
+ "entity-type": a(Oe).SNI,
593
+ "error-message": s.errorMessage || b.value,
594
+ "fetch-url": X.value,
595
+ "form-fields": _.value,
596
+ "is-readonly": s.isReadonly,
597
+ onCancel: A,
598
+ "onFetch:error": o[3] || (o[3] = (r) => n.$emit("error", r)),
599
+ "onFetch:success": Y,
600
+ onLoading: o[4] || (o[4] = (r) => n.$emit("loading", r)),
601
+ onSubmit: ee
521
602
  }, {
522
603
  default: u(() => [
523
- f(a(le), {
524
- description: a(c)("form.sections.general.description"),
525
- title: a(c)("form.sections.general.title")
604
+ d(a(fe), {
605
+ description: a(p)("form.sections.general.description"),
606
+ title: a(p)("form.sections.general.title")
526
607
  }, {
527
608
  default: u(() => [
528
- f(o, {
529
- modelValue: r.fields.name,
530
- "onUpdate:modelValue": s[0] || (s[0] = (g) => r.fields.name = g),
609
+ d(e, {
610
+ modelValue: s.fields.name,
611
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => s.fields.name = r),
531
612
  modelModifiers: { trim: !0 },
532
613
  autocomplete: "off",
533
614
  "data-testid": "sni-form-name",
534
- label: a(c)("form.fields.name.label"),
535
- placeholder: a(c)("form.fields.name.placeholder"),
536
- readonly: r.isReadonly,
615
+ label: a(p)("form.fields.name.label"),
616
+ placeholder: a(p)("form.fields.name.placeholder"),
617
+ readonly: s.isReadonly,
537
618
  required: "",
538
619
  type: "text"
539
620
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
540
- f(o, {
541
- modelValue: r.fields.tags,
542
- "onUpdate:modelValue": s[1] || (s[1] = (g) => r.fields.tags = g),
621
+ d(e, {
622
+ modelValue: s.fields.tags,
623
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => s.fields.tags = r),
543
624
  modelModifiers: { trim: !0 },
544
625
  autocomplete: "off",
545
626
  "data-testid": "sni-form-tags",
546
- help: a(c)("form.fields.tags.help"),
547
- label: a(c)("form.fields.tags.label"),
627
+ help: a(p)("form.fields.tags.help"),
628
+ label: a(p)("form.fields.tags.label"),
548
629
  "label-attributes": {
549
- info: a(c)("form.fields.tags.tooltip"),
630
+ info: a(p)("form.fields.tags.tooltip"),
550
631
  tooltipAttributes: { maxWidth: "400" }
551
632
  },
552
- placeholder: a(c)("form.fields.tags.placeholder"),
553
- readonly: r.isReadonly,
633
+ placeholder: a(p)("form.fields.tags.placeholder"),
634
+ readonly: s.isReadonly,
554
635
  type: "text"
555
636
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
556
637
  ]),
557
638
  _: 1
558
639
  }, 8, ["description", "title"]),
559
- f(a(le), {
560
- description: a(c)("form.sections.certificate.description"),
640
+ d(a(fe), {
641
+ description: a(p)("form.sections.certificate.description"),
561
642
  "has-divider": "",
562
- title: a(c)("form.sections.certificate.title")
643
+ title: a(p)("form.sections.certificate.title")
563
644
  }, {
564
645
  default: u(() => [
565
- M.value ? (S(), L(o, {
646
+ $.value ? (h(), F(e, {
566
647
  key: 0,
567
648
  "data-testid": "sni-form-certificate-id",
568
- label: a(c)("form.fields.certificate_id.label"),
569
- "model-value": M.value,
649
+ label: a(p)("form.fields.certificate_id.label"),
650
+ "model-value": $.value,
570
651
  readonly: "",
571
652
  required: "",
572
653
  width: "100%"
573
- }, null, 8, ["label", "model-value"])) : (S(), L(I, {
654
+ }, null, 8, ["label", "model-value"])) : (h(), F(c, {
574
655
  key: 1,
575
- modelValue: r.fields.certificate_id,
576
- "onUpdate:modelValue": s[2] || (s[2] = (g) => r.fields.certificate_id = g),
656
+ modelValue: s.fields.certificate_id,
657
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => s.fields.certificate_id = r),
577
658
  clearable: "",
578
659
  "data-testid": "sni-form-certificate-id",
579
- "dropdown-footer-text": O.value ? a(c)("form.fields.certificate_id.footer") : void 0,
660
+ "dropdown-footer-text": L.value ? a(p)("form.fields.certificate_id.footer") : void 0,
580
661
  "enable-filtering": "",
581
662
  "filter-function": () => !0,
582
- items: d.value,
583
- label: a(c)("form.fields.certificate_id.label"),
584
- loading: a(X),
585
- placeholder: a(c)("form.fields.certificate_id.placeholder"),
586
- readonly: r.isReadonly,
663
+ items: j.value,
664
+ label: a(p)("form.fields.certificate_id.label"),
665
+ loading: a(te),
666
+ placeholder: a(p)("form.fields.certificate_id.placeholder"),
667
+ readonly: s.isReadonly,
587
668
  required: "",
588
669
  width: "100%",
589
- onQueryChange: Z
670
+ onQueryChange: oe
590
671
  }, {
591
672
  loading: u(() => [
592
- oe("div", null, C(a(c)("actions.loading")), 1)
673
+ P("div", null, I(a(p)("actions.loading")), 1)
593
674
  ]),
594
675
  empty: u(() => [
595
- oe("div", Le, C(a(c)("search.no_results")), 1)
676
+ P("div", it, I(a(p)("search.no_results")), 1)
596
677
  ]),
597
678
  _: 1
598
679
  }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
599
- V.value ? (S(), A("p", Je, C(V.value), 1)) : ge("", !0)
680
+ w.value ? (h(), W("p", nt, I(w.value), 1)) : ye("", !0)
600
681
  ]),
601
682
  _: 1
602
683
  }, 8, ["description", "title"])
@@ -606,8 +687,8 @@ const ue = {
606
687
  ]);
607
688
  };
608
689
  }
609
- }), Ze = /* @__PURE__ */ pe(Qe, [["__scopeId", "data-v-414e41d7"]]);
690
+ }), ft = /* @__PURE__ */ ke(ot, [["__scopeId", "data-v-414e41d7"]]);
610
691
  export {
611
- Ze as SniForm,
612
- Ye as SniList
692
+ ft as SniForm,
693
+ ut as SniList
613
694
  };
@@ -1 +1 @@
1
- (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared"),require("@kong/icons"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/i18n","@kong-ui-public/entities-shared","@kong/icons","vue-router"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y["kong-ui-public-entities-snis"]={},y.Vue,y["kong-ui-public-i18n"],y["kong-ui-public-entities-shared"],y.KongIcons,y.VueRouter))})(this,function(y,e,G,c,Z,v){"use strict";const ee={actions:{create:"New SNI",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",loading:"Loading..."},search:{placeholder:"Filter by exact name or ID",no_results:"No results found"},snis:{title:"SNIs",list:{toolbar_actions:{new:"New SNI"},table_headers:{name:"Name",id:"ID",certificate_id:"SSL Certificate ID",tags:"Tags"},empty_state:{title:"Configure a New SNI",description:"SNIs are used to map hostnames to a certificate."}}},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this SNI."},certificate:{title:"Certificate",description:"Map an existing Certificate object to hostnames"}},fields:{name:{label:"Name",placeholder:"Enter a unique name for this SNI"},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."},certificate_id:{label:"SSL Certificate ID",placeholder:"Enter or select a Certificate ID",footer:"Search by exact ID to find certificates not included in the list"}}},delete:{title:"Delete an SNI",description:"This action cannot be reversed so make sure to check the SNI usage before deleting."},errors:{delete:"The SNI could not be deleted at this time.",general:"SNIs could not be retrieved",certificates:{fetch:"Could not fetch available certificates",invalid:"Please select a valid certificate ID"},copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}};function te(){const a=G.createI18n("en-us",ee);return{i18n:a,i18nT:G.i18nTComponent(a)}}const H={useI18n:te},w="/v2/control-planes/{controlPlaneId}/core-entities",V="/{workspace}",S={list:{konnect:{all:`${w}/snis`},kongManager:{all:`${V}/snis`}},form:{konnect:{create:`${w}/snis`,edit:`${w}/snis/{id}`,validate:`${w}/v1/schemas/json/sni/validate`,certificates:`${w}/certificates`},kongManager:{create:`${V}/snis`,edit:`${V}/snis/{id}`,validate:`${V}/schemas/snis/validate`,certificates:`${V}/certificates`}}},ie={class:"kong-ui-entities-snis-list"},ae={key:1},oe=e.defineComponent({__name:"SniList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.createRoute||!a.getViewRoute||!a.getEditRoute||a.app==="kongManager"&&!a.isExactMatch&&!a.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(a,{emit:E}){var q;const g=E,t=a,{i18n:{t:l}}=H.useI18n(),{axiosInstance:d}=c.useAxios((q=t.config)==null?void 0:q.axiosRequestConfig),P=e.computed(()=>t.config.app!=="kongManager"||!!t.config.disableSorting),I={name:{label:l("snis.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},certificate:{label:l("snis.list.table_headers.certificate_id"),sortable:!1},tags:{label:l("snis.list.table_headers.tags"),sortable:!1}},K=I,x=o=>({style:{maxWidth:o.headerKey==="name"?"250px":o.headerKey==="certificate"?"350px":null}}),_=e.computed(()=>{var f,p;let o=`${t.config.apiBaseUrl}${S.list[t.config.app].all}`;return t.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((f=t.config)==null?void 0:f.controlPlaneId)||""):t.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(p=t.config)!=null&&p.workspace?`/${t.config.workspace}`:"")),o}),s=e.ref(""),B=e.computed(()=>{const o=t.config.app==="konnect"||t.config.isExactMatch;if(o)return{isExactMatch:o,placeholder:l("search.placeholder")};const{name:f}=I;return{isExactMatch:o,fields:{name:f},schema:t.config.filterSchema}}),{fetcher:O,fetcherState:U,fetcherCacheKey:D}=c.useFetcher({...t.config,cacheIdentifier:t.cacheIdentifier},_.value),j=()=>{s.value=""},M=()=>{D.value++},b=e.ref(null),F=e.ref({ctaPath:t.config.createRoute,ctaText:void 0,message:`${l("snis.list.empty_state.description")}${t.config.additionMessageForEmptyState?` ${t.config.additionMessageForEmptyState}`:""}`,title:l("snis.title")}),A=(o,f)=>{const p=o.id;if(!f(p)){g("copy:error",{entity:o,field:"id",message:l("errors.copy")});return}g("copy:success",{entity:o,field:"id",message:l("copy.success",{val:p})})},L=(o,f)=>{const p=JSON.stringify(o);if(!f(p)){g("copy:error",{entity:o,message:l("errors.copy")});return}g("copy:success",{entity:o,message:l("copy.success_brief")})},J=o=>({label:l("actions.edit"),to:t.config.getEditRoute(o)}),k=e.ref(void 0),$=e.ref(!1),N=e.ref(!1),R=e.ref(""),W=c.useDeleteUrlBuilder(t.config,_.value),Q=o=>{k.value=o,$.value=!0},T=()=>{$.value=!1,k.value=void 0},z=async()=>{var o,f,p;if((o=k.value)!=null&&o.id){N.value=!0;try{await d.delete(W(k.value.id)),g("delete:success",k.value),N.value=!1,T(),D.value++}catch(h){R.value=((p=(f=h.response)==null?void 0:f.data)==null?void 0:p.message)||h.message||l("errors.delete"),g("error",h)}finally{N.value=!1}}};return e.watch(U,o=>{var f,p,h;if(o.status===c.FetcherStatus.Error){b.value={title:l("errors.general")},(h=(p=(f=o.error)==null?void 0:f.response)==null?void 0:p.data)!=null&&h.message&&(b.value.message=o.error.response.data.message),g("error",o.error);return}b.value=null}),e.onBeforeMount(async()=>{await t.canCreate()&&(F.value.title=l("snis.list.empty_state.title"),F.value.ctaText=l("actions.create"))}),(o,f)=>{const p=e.resolveComponent("KButton"),h=e.resolveComponent("KCopy"),i=e.resolveComponent("KDropdownItem"),r=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(e.unref(c.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"cell-attributes":x,"disable-row-click":!0,"disable-sorting":P.value,"empty-state-options":F.value,"enable-entity-actions":"","error-message":b.value,fetcher:e.unref(O),"fetcher-cache-key":e.unref(D),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-snis-list",query:s.value,"table-headers":e.unref(K),onClearSearchInput:j,onSort:M},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(c.EntityFilter),{modelValue:s.value,"onUpdate:modelValue":f[0]||(f[0]=n=>s.value=n),config:B.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(c.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(p,{appearance:"primary","data-testid":"toolbar-add-sni",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(Z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(l)("snis.list.toolbar_actions.new")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:n})=>[e.createElementVNode("b",null,e.toDisplayString(n??"-"),1)]),certificate:e.withCtx(({row:n})=>[n.certificate&&n.certificate.id?(e.openBlock(),e.createBlock(h,{key:0,class:"copy-certificate-uuid","data-testid":"copy-certificate-uuid",text:n.certificate.id,truncate:""},null,8,["text"])):(e.openBlock(),e.createElementBlock("span",ae,"-"))]),tags:e.withCtx(({rowValue:n})=>[e.createVNode(e.unref(c.TableTags),{tags:n},null,8,["tags"])]),actions:e.withCtx(({row:n})=>[e.createVNode(r,null,{default:e.withCtx(({copyToClipboard:C})=>[e.createVNode(i,{"data-testid":"action-entity-copy-id",onClick:m=>A(n,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(r,null,{default:e.withCtx(({copyToClipboard:C})=>[e.createVNode(i,{"data-testid":"action-entity-copy-json",onClick:m=>L(n,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(c.PermissionsWrapper),{"auth-function":()=>a.canEdit(n)},{default:e.withCtx(()=>[e.createVNode(i,{"data-testid":"action-entity-edit",item:J(n.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(c.PermissionsWrapper),{"auth-function":()=>a.canDelete(n)},{default:e.withCtx(()=>[e.createVNode(i,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:C=>Q(n)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("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(c.EntityDeleteModal),{"action-pending":N.value,description:e.unref(l)("delete.description"),"entity-name":k.value&&(k.value.name||k.value.id),"entity-type":e.unref(c.EntityTypes).SNI,error:R.value,"need-confirm":!1,title:e.unref(l)("delete.title"),visible:$.value,onCancel:T,onProceed:z},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),X=(a,E)=>{const g=a.__vccOpts||a;for(const[t,l]of E)g[t]=l;return g},ne=X(oe,[["__scopeId","data-v-38777abd"]]),re={class:"kong-ui-entities-snis-form"},se={"data-testid":"no-search-results"},le={key:2,class:"invalid-certificate-message","data-testid":"invalid-certificate-message"},ce=X(e.defineComponent({__name:"SniForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.cancelRoute)},sniId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(a,{emit:E}){var h;const g=E,t=a,l=v.useRouter(),{i18n:{t:d}}=H.useI18n(),{getMessageFromError:P}=c.useErrors(),{axiosInstance:I}=c.useAxios((h=t.config)==null?void 0:h.axiosRequestConfig),K=e.computed(()=>S.form[t.config.app].edit),x=e.computed(()=>t.sniId?c.EntityBaseFormType.Edit:c.EntityBaseFormType.Create),_=e.computed(()=>t.config.certificateId&&x.value===c.EntityBaseFormType.Create?t.config.certificateId:""),s=e.reactive({fields:{name:"",tags:"",certificate_id:""},isReadonly:!1,errorMessage:""}),B=e.reactive({name:"",tags:"",certificate_id:""}),O=e.computed(()=>JSON.stringify(s.fields)!==JSON.stringify(B)&&!!s.fields.name&&!!(s.fields.certificate_id||_.value)),U=i=>{var r,n;s.fields.name=(i==null?void 0:i.name)||"",s.fields.tags=((r=i==null?void 0:i.tags)==null?void 0:r.join(", "))||"",s.fields.certificate_id=((n=i==null?void 0:i.certificate)==null?void 0:n.id)||"",Object.assign(B,s.fields)},D=()=>{l.push(t.config.cancelRoute)},j=e.computed(()=>{var r,n;let i=`${t.config.apiBaseUrl}${S.form[t.config.app].validate}`;return t.config.app==="konnect"?i=i.replace(/{controlPlaneId}/gi,((r=t.config)==null?void 0:r.controlPlaneId)||""):t.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(n=t.config)!=null&&n.workspace?`/${t.config.workspace}`:"")),i=i.replace(/{id}/gi,t.sniId),i}),M=e.computed(()=>{var r,n;let i=`${t.config.apiBaseUrl}${S.form[t.config.app][x.value]}`;return t.config.app==="konnect"?i=i.replace(/{controlPlaneId}/gi,((r=t.config)==null?void 0:r.controlPlaneId)||""):t.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(n=t.config)!=null&&n.workspace?`/${t.config.workspace}`:"")),i=i.replace(/{id}/gi,t.sniId),i}),b=e.computed(()=>{var i,r;return{name:s.fields.name,tags:(r=(i=s.fields.tags.split(","))==null?void 0:i.map(n=>String(n||"").trim()))==null?void 0:r.filter(n=>n!==""),certificate:{id:_.value||s.fields.certificate_id}}}),F=async()=>{var i,r,n,C,m,Y;try{s.isReadonly=!0;let u;await I.post(j.value,b.value),x.value==="create"?u=await I.post(M.value,b.value):x.value==="edit"&&(u=((i=t.config)==null?void 0:i.app)==="konnect"?await I.put(M.value,b.value):await I.patch(M.value,b.value)),s.fields.name=((r=u==null?void 0:u.data)==null?void 0:r.name)||"",s.fields.tags=((C=(n=u==null?void 0:u.data)==null?void 0:n.tags)==null?void 0:C.join(", "))||"",s.fields.certificate_id=((Y=(m=u==null?void 0:u.data)==null?void 0:m.certificate)==null?void 0:Y.id)||"",Object.assign(B,s.fields),g("update",u==null?void 0:u.data)}catch(u){s.errorMessage=P(u),g("error",u)}finally{s.isReadonly=!1}},{debouncedQueryChange:A,loading:L,allRecords:J,error:k,validationError:$,loadItems:N,results:R}=c.useDebouncedFilter(t.config,S.form[t.config.app].certificates),W=i=>{A(i)},Q=e.computed(()=>k.value?d("errors.certificates.fetch"):""),T=e.computed(()=>$.value?d("errors.certificates.invalid"):""),z=e.ref(0),q=e.computed(()=>J.value===void 0),o=e.ref(new Set),f=e.computed(()=>Array.from(o.value).map(r=>({label:r,value:r,selected:s.fields.certificate_id===r}))),p=i=>{o.value.clear();let r;for(r of i)o.value.add(r.id)};return e.watch(R,i=>{p(i)},{immediate:!0,deep:!0}),e.watch(f,()=>{z.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await N()}),(i,r)=>{const n=e.resolveComponent("KInput"),C=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",re,[e.createVNode(e.unref(c.EntityBaseForm),{"can-submit":O.value,config:a.config,"edit-id":a.sniId,"entity-type":e.unref(c.SupportedEntityType).SNI,"error-message":s.errorMessage||Q.value,"fetch-url":K.value,"form-fields":b.value,"is-readonly":s.isReadonly,onCancel:D,"onFetch:error":r[3]||(r[3]=m=>i.$emit("error",m)),"onFetch:success":U,onLoading:r[4]||(r[4]=m=>i.$emit("loading",m)),onSubmit:F},{default:e.withCtx(()=>[e.createVNode(e.unref(c.EntityFormSection),{description:e.unref(d)("form.sections.general.description"),title:e.unref(d)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:s.fields.name,"onUpdate:modelValue":r[0]||(r[0]=m=>s.fields.name=m),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"sni-form-name",label:e.unref(d)("form.fields.name.label"),placeholder:e.unref(d)("form.fields.name.placeholder"),readonly:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(n,{modelValue:s.fields.tags,"onUpdate:modelValue":r[1]||(r[1]=m=>s.fields.tags=m),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"sni-form-tags",help:e.unref(d)("form.fields.tags.help"),label:e.unref(d)("form.fields.tags.label"),"label-attributes":{info:e.unref(d)("form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(d)("form.fields.tags.placeholder"),readonly:s.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"]),e.createVNode(e.unref(c.EntityFormSection),{description:e.unref(d)("form.sections.certificate.description"),"has-divider":"",title:e.unref(d)("form.sections.certificate.title")},{default:e.withCtx(()=>[_.value?(e.openBlock(),e.createBlock(n,{key:0,"data-testid":"sni-form-certificate-id",label:e.unref(d)("form.fields.certificate_id.label"),"model-value":_.value,readonly:"",required:"",width:"100%"},null,8,["label","model-value"])):(e.openBlock(),e.createBlock(C,{key:1,modelValue:s.fields.certificate_id,"onUpdate:modelValue":r[2]||(r[2]=m=>s.fields.certificate_id=m),clearable:"","data-testid":"sni-form-certificate-id","dropdown-footer-text":q.value?e.unref(d)("form.fields.certificate_id.footer"):void 0,"enable-filtering":"","filter-function":()=>!0,items:f.value,label:e.unref(d)("form.fields.certificate_id.label"),loading:e.unref(L),placeholder:e.unref(d)("form.fields.certificate_id.placeholder"),readonly:s.isReadonly,required:"",width:"100%",onQueryChange:W},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",se,e.toDisplayString(e.unref(d)("search.no_results")),1)]),_:1},8,["modelValue","dropdown-footer-text","items","label","loading","placeholder","readonly"])),T.value?(e.openBlock(),e.createElementBlock("p",le,e.toDisplayString(T.value),1)):e.createCommentVNode("",!0)]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-414e41d7"]]);y.SniForm=ce,y.SniList=ne,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
1
+ (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared"),require("@kong/icons")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong-ui-public/i18n","@kong-ui-public/entities-shared","@kong/icons"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g["kong-ui-public-entities-snis"]={},g.Vue,g.VueRouter,g["kong-ui-public-i18n"],g["kong-ui-public-entities-shared"],g.KongIcons))})(this,function(g,e,Y,v,d,R){"use strict";const ae={actions:{create:"New SNI",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",loading:"Loading..."},search:{placeholder:"Filter by exact name or ID",no_results:"No results found"},snis:{title:"SNIs",list:{toolbar_actions:{new:"New SNI"},table_headers:{name:"Name",id:"ID",certificate_id:"SSL Certificate ID",tags:"Tags"},empty_state:{title:"Configure a New SNI",description:"SNIs are used to map hostnames to a certificate."},empty_state_v2:{title:"Configure your first SNI",description:"Server Name Indications (SNIs) map hostnames to SSL/TLS certificates, enabling secure connections for domain-specific traffic.",create_cta:"New SNI"}}},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this SNI."},certificate:{title:"Certificate",description:"Map an existing Certificate object to hostnames"}},fields:{name:{label:"Name",placeholder:"Enter a unique name for this SNI"},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."},certificate_id:{label:"SSL Certificate ID",placeholder:"Enter or select a Certificate ID",footer:"Search by exact ID to find certificates not included in the list"}}},delete:{title:"Delete an SNI",description:"This action cannot be reversed so make sure to check the SNI usage before deleting."},errors:{delete:"The SNI could not be deleted at this time.",general:"SNIs could not be retrieved",certificates:{fetch:"Could not fetch available certificates",invalid:"Please select a valid certificate ID"},copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}};function ne(){const a=v.createI18n("en-us",ae);return{i18n:a,i18nT:v.i18nTComponent(a)}}const ee={useI18n:ne},V="/v2/control-planes/{controlPlaneId}/core-entities",E="/{workspace}",B={list:{konnect:{all:`${V}/snis`},kongManager:{all:`${E}/snis`}},form:{konnect:{create:`${V}/snis`,edit:`${V}/snis/{id}`,validate:`${V}/v1/schemas/json/sni/validate`,certificates:`${V}/certificates`},kongManager:{create:`${E}/snis`,edit:`${E}/snis/{id}`,validate:`${E}/schemas/snis/validate`,certificates:`${E}/certificates`}}},oe="#00abd2",re="24px",se={class:"kong-ui-entities-snis-list"},ce={class:"button-row"},le={class:"empty-state-icon-gateway"},de={key:1},fe=e.defineComponent({__name:"SniList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.createRoute||!a.getViewRoute||!a.getEditRoute||a.app==="kongManager"&&!a.isExactMatch&&!a.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},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(a,{emit:$}){var o;const m=$,i=a,{i18n:{t:c}}=ee.useI18n(),p=Y.useRouter(),{axiosInstance:j}=d.useAxios((o=i.config)==null?void 0:o.axiosRequestConfig),{hasRecords:b,handleStateChange:L}=d.useTableState(()=>k.value),I=e.computed(()=>b.value&&i.config.app==="konnect"),N=e.computed(()=>!i.enableV2EmptyStates&&i.config.app==="konnect"),r=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),_={name:{label:c("snis.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},certificate:{label:c("snis.list.table_headers.certificate_id"),sortable:!1},tags:{label:c("snis.list.table_headers.tags"),sortable:!1}},J=_,Q=t=>({style:{maxWidth:t.headerKey==="name"?"250px":t.headerKey==="certificate"?"350px":null}}),q=e.computed(()=>{var l,s;let t=`${i.config.apiBaseUrl}${B.list[i.config.app].all}`;return i.config.app==="konnect"?t=t.replace(/{controlPlaneId}/gi,((l=i.config)==null?void 0:l.controlPlaneId)||""):i.config.app==="kongManager"&&(t=t.replace(/\/{workspace}/gi,(s=i.config)!=null&&s.workspace?`/${i.config.workspace}`:"")),t}),k=e.ref(""),D=e.computed(()=>{const t=i.config.app==="konnect"||i.config.isExactMatch;if(t)return{isExactMatch:t,placeholder:c("search.placeholder")};const{name:l}=_;return{isExactMatch:t,fields:{name:l},schema:i.config.filterSchema}}),{fetcher:C,fetcherState:W,fetcherCacheKey:M}=d.useFetcher({...i.config,cacheIdentifier:i.cacheIdentifier},q.value),z=()=>{k.value=""},H=()=>{M.value++},w=e.ref(null),T=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${c("snis.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:c("snis.title")}),G=(t,l)=>{const s=t.id;if(!l(s)){m("copy:error",{entity:t,field:"id",message:c("errors.copy")});return}m("copy:success",{entity:t,field:"id",message:c("copy.success",{val:s})})},X=(t,l)=>{const s=JSON.stringify(t);if(!l(s)){m("copy:error",{entity:t,message:c("errors.copy")});return}m("copy:success",{entity:t,message:c("copy.success_brief")})},Z=t=>({label:c("actions.edit"),to:i.config.getEditRoute(t)}),h=e.ref(void 0),x=e.ref(!1),S=e.ref(!1),K=e.ref(""),F=d.useDeleteUrlBuilder(i.config,q.value),O=t=>{h.value=t,x.value=!0},P=()=>{x.value=!1,h.value=void 0},U=async()=>{var t,l,s;if((t=h.value)!=null&&t.id){S.value=!0;try{await j.delete(F(h.value.id)),m("delete:success",h.value),S.value=!1,P(),M.value++}catch(y){K.value=((s=(l=y.response)==null?void 0:l.data)==null?void 0:s.message)||y.message||c("errors.delete"),m("error",y)}finally{S.value=!1}}},n=()=>{p.push(i.config.createRoute)};return e.watch(W,t=>{var l,s,y;if(t.status===d.FetcherStatus.Error){w.value={title:c("errors.general")},(y=(s=(l=t.error)==null?void 0:l.response)==null?void 0:s.data)!=null&&y.message&&(w.value.message=t.error.response.data.message),m("error",t.error);return}w.value=null}),e.onBeforeMount(async()=>{await i.canCreate()&&(T.value.title=c("snis.list.empty_state.title"),T.value.ctaText=c("actions.create"))}),(t,l)=>{const s=e.resolveComponent("KButton"),y=e.resolveComponent("KCopy"),f=e.resolveComponent("KDropdownItem"),ie=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",se,[e.createVNode(e.unref(d.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"cell-attributes":Q,"disable-row-click":!0,"disable-sorting":r.value,"empty-state-options":T.value,"enable-entity-actions":"","error-message":w.value,fetcher:e.unref(C),"fetcher-cache-key":e.unref(M),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-snis-list",query:k.value,"table-headers":e.unref(J),onClearSearchInput:z,onSort:H,onState:e.unref(L)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(d.EntityFilter),{modelValue:k.value,"onUpdate:modelValue":l[0]||(l[0]=u=>k.value=u),config:D.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",ce,[I.value?(e.openBlock(),e.createBlock(s,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"snis-learn-more-button",icon:"",onClick:l[1]||(l[1]=u=>t.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(R.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(d.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.createVNode(s,{appearance:"primary","data-testid":"toolbar-add-sni",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(R.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(c)("snis.list.toolbar_actions.new")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:u})=>[e.createElementVNode("b",null,e.toDisplayString(u??"-"),1)]),certificate:e.withCtx(({row:u})=>[u.certificate&&u.certificate.id?(e.openBlock(),e.createBlock(y,{key:0,class:"copy-certificate-uuid","data-testid":"copy-certificate-uuid",text:u.certificate.id,truncate:""},null,8,["text"])):(e.openBlock(),e.createElementBlock("span",de,"-"))]),tags:e.withCtx(({rowValue:u})=>[e.createVNode(e.unref(d.TableTags),{tags:u},null,8,["tags"])]),actions:e.withCtx(({row:u})=>[e.createVNode(ie,null,{default:e.withCtx(({copyToClipboard:A})=>[e.createVNode(f,{"data-testid":"action-entity-copy-id",onClick:he=>G(u,A)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(ie,null,{default:e.withCtx(({copyToClipboard:A})=>[e.createVNode(f,{"data-testid":"action-entity-copy-json",onClick:he=>X(u,A)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(d.PermissionsWrapper),{"auth-function":()=>a.canEdit(u)},{default:e.withCtx(()=>[e.createVNode(f,{"data-testid":"action-entity-edit",item:Z(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(d.PermissionsWrapper),{"auth-function":()=>a.canDelete(u)},{default:e.withCtx(()=>[e.createVNode(f,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:A=>O(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(b)&&N.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(s,{appearance:"secondary",class:"open-learning-hub","data-testid":"sni-learn-more-button",icon:"",onClick:l[2]||(l[2]=u=>t.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(R.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,a.enableV2EmptyStates&&a.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>[e.createVNode(e.unref(d.EntityEmptyState),{"action-button-text":e.unref(c)("snis.list.toolbar_actions.new"),appearance:"secondary","can-create":()=>a.canCreate(),description:e.unref(c)("snis.list.empty_state_v2.description"),"learn-more":a.config.app==="konnect",title:e.unref(c)("snis.list.empty_state_v2.title"),"onClick:create":n,"onClick:learnMore":l[3]||(l[3]=u=>t.$emit("click:learn-more"))},{image:e.withCtx(()=>[e.createElementVNode("div",le,[e.createVNode(e.unref(R.CloudIcon),{color:e.unref(oe),size:e.unref(re)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(d.EntityDeleteModal),{"action-pending":S.value,description:e.unref(c)("delete.description"),"entity-name":h.value&&(h.value.name||h.value.id),"entity-type":e.unref(d.EntityTypes).SNI,error:K.value,"need-confirm":!1,title:e.unref(c)("delete.title"),visible:x.value,onCancel:P,onProceed:U},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),te=(a,$)=>{const m=a.__vccOpts||a;for(const[i,c]of $)m[i]=c;return m},pe=te(fe,[["__scopeId","data-v-dfdb7df6"]]),ue={class:"kong-ui-entities-snis-form"},me={"data-testid":"no-search-results"},ge={key:2,class:"invalid-certificate-message","data-testid":"invalid-certificate-message"},ye=te(e.defineComponent({__name:"SniForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.cancelRoute)},sniId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(a,{emit:$}){var U;const m=$,i=a,c=Y.useRouter(),{i18n:{t:p}}=ee.useI18n(),{getMessageFromError:j}=d.useErrors(),{axiosInstance:b}=d.useAxios((U=i.config)==null?void 0:U.axiosRequestConfig),L=e.computed(()=>B.form[i.config.app].edit),I=e.computed(()=>i.sniId?d.EntityBaseFormType.Edit:d.EntityBaseFormType.Create),N=e.computed(()=>i.config.certificateId&&I.value===d.EntityBaseFormType.Create?i.config.certificateId:""),r=e.reactive({fields:{name:"",tags:"",certificate_id:""},isReadonly:!1,errorMessage:""}),_=e.reactive({name:"",tags:"",certificate_id:""}),J=e.computed(()=>JSON.stringify(r.fields)!==JSON.stringify(_)&&!!r.fields.name&&!!(r.fields.certificate_id||N.value)),Q=n=>{var o,t;r.fields.name=(n==null?void 0:n.name)||"",r.fields.tags=((o=n==null?void 0:n.tags)==null?void 0:o.join(", "))||"",r.fields.certificate_id=((t=n==null?void 0:n.certificate)==null?void 0:t.id)||"",Object.assign(_,r.fields)},q=()=>{c.push(i.config.cancelRoute)},k=e.computed(()=>{var o,t;let n=`${i.config.apiBaseUrl}${B.form[i.config.app].validate}`;return i.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((o=i.config)==null?void 0:o.controlPlaneId)||""):i.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(t=i.config)!=null&&t.workspace?`/${i.config.workspace}`:"")),n=n.replace(/{id}/gi,i.sniId),n}),D=e.computed(()=>{var o,t;let n=`${i.config.apiBaseUrl}${B.form[i.config.app][I.value]}`;return i.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((o=i.config)==null?void 0:o.controlPlaneId)||""):i.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(t=i.config)!=null&&t.workspace?`/${i.config.workspace}`:"")),n=n.replace(/{id}/gi,i.sniId),n}),C=e.computed(()=>{var n,o;return{name:r.fields.name,tags:(o=(n=r.fields.tags.split(","))==null?void 0:n.map(t=>String(t||"").trim()))==null?void 0:o.filter(t=>t!==""),certificate:{id:N.value||r.fields.certificate_id}}}),W=async()=>{var n,o,t,l,s,y;try{r.isReadonly=!0;let f;await b.post(k.value,C.value),I.value==="create"?f=await b.post(D.value,C.value):I.value==="edit"&&(f=((n=i.config)==null?void 0:n.app)==="konnect"?await b.put(D.value,C.value):await b.patch(D.value,C.value)),r.fields.name=((o=f==null?void 0:f.data)==null?void 0:o.name)||"",r.fields.tags=((l=(t=f==null?void 0:f.data)==null?void 0:t.tags)==null?void 0:l.join(", "))||"",r.fields.certificate_id=((y=(s=f==null?void 0:f.data)==null?void 0:s.certificate)==null?void 0:y.id)||"",Object.assign(_,r.fields),m("update",f==null?void 0:f.data)}catch(f){r.errorMessage=j(f),m("error",f)}finally{r.isReadonly=!1}},{debouncedQueryChange:M,loading:z,allRecords:H,error:w,validationError:T,loadItems:G,results:X}=d.useDebouncedFilter(i.config,B.form[i.config.app].certificates),Z=n=>{M(n)},h=e.computed(()=>w.value?p("errors.certificates.fetch"):""),x=e.computed(()=>T.value?p("errors.certificates.invalid"):""),S=e.ref(0),K=e.computed(()=>H.value===void 0),F=e.ref(new Set),O=e.computed(()=>Array.from(F.value).map(o=>({label:o,value:o,selected:r.fields.certificate_id===o}))),P=n=>{F.value.clear();let o;for(o of n)F.value.add(o.id)};return e.watch(X,n=>{P(n)},{immediate:!0,deep:!0}),e.watch(O,()=>{S.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await G()}),(n,o)=>{const t=e.resolveComponent("KInput"),l=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(e.unref(d.EntityBaseForm),{"can-submit":J.value,config:a.config,"edit-id":a.sniId,"entity-type":e.unref(d.SupportedEntityType).SNI,"error-message":r.errorMessage||h.value,"fetch-url":L.value,"form-fields":C.value,"is-readonly":r.isReadonly,onCancel:q,"onFetch:error":o[3]||(o[3]=s=>n.$emit("error",s)),"onFetch:success":Q,onLoading:o[4]||(o[4]=s=>n.$emit("loading",s)),onSubmit:W},{default:e.withCtx(()=>[e.createVNode(e.unref(d.EntityFormSection),{description:e.unref(p)("form.sections.general.description"),title:e.unref(p)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(t,{modelValue:r.fields.name,"onUpdate:modelValue":o[0]||(o[0]=s=>r.fields.name=s),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"sni-form-name",label:e.unref(p)("form.fields.name.label"),placeholder:e.unref(p)("form.fields.name.placeholder"),readonly:r.isReadonly,required:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(t,{modelValue:r.fields.tags,"onUpdate:modelValue":o[1]||(o[1]=s=>r.fields.tags=s),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"sni-form-tags",help:e.unref(p)("form.fields.tags.help"),label:e.unref(p)("form.fields.tags.label"),"label-attributes":{info:e.unref(p)("form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(p)("form.fields.tags.placeholder"),readonly:r.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"]),e.createVNode(e.unref(d.EntityFormSection),{description:e.unref(p)("form.sections.certificate.description"),"has-divider":"",title:e.unref(p)("form.sections.certificate.title")},{default:e.withCtx(()=>[N.value?(e.openBlock(),e.createBlock(t,{key:0,"data-testid":"sni-form-certificate-id",label:e.unref(p)("form.fields.certificate_id.label"),"model-value":N.value,readonly:"",required:"",width:"100%"},null,8,["label","model-value"])):(e.openBlock(),e.createBlock(l,{key:1,modelValue:r.fields.certificate_id,"onUpdate:modelValue":o[2]||(o[2]=s=>r.fields.certificate_id=s),clearable:"","data-testid":"sni-form-certificate-id","dropdown-footer-text":K.value?e.unref(p)("form.fields.certificate_id.footer"):void 0,"enable-filtering":"","filter-function":()=>!0,items:O.value,label:e.unref(p)("form.fields.certificate_id.label"),loading:e.unref(z),placeholder:e.unref(p)("form.fields.certificate_id.placeholder"),readonly:r.isReadonly,required:"",width:"100%",onQueryChange:Z},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(p)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",me,e.toDisplayString(e.unref(p)("search.no_results")),1)]),_:1},8,["modelValue","dropdown-footer-text","items","label","loading","placeholder","readonly"])),x.value?(e.openBlock(),e.createElementBlock("p",ge,e.toDisplayString(x.value),1)):e.createCommentVNode("",!0)]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-414e41d7"]]);g.SniForm=ye,g.SniList=pe,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{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(--54aebfa2);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-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.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-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{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-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-775534d4]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-775534d4]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-775534d4]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-775534d4]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-775534d4]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-775534d4]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-775534d4]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-775534d4]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-775534d4]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-775534d4] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-775534d4]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-775534d4]{width:640px}}.kong-ui-entities-snis-list[data-v-38777abd]{width:100%}.kong-ui-entities-snis-list .kong-ui-entity-filter-input[data-v-38777abd]{margin-right:12px}.kong-ui-entities-snis-form[data-v-414e41d7]{width:100%}.kong-ui-entities-snis-form .invalid-certificate-message[data-v-414e41d7]{color:#d60027;font-size:11px;font-weight:500;margin-top:3px!important}
1
+ .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{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(--54aebfa2);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-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.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-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{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-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-775534d4]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-775534d4]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-775534d4]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-775534d4]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-775534d4]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-775534d4]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-775534d4]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-775534d4]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-775534d4]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-775534d4] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-775534d4]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-775534d4]{width:640px}}.button-row[data-v-dfdb7df6]{align-items:center;display:flex;gap:12px}.kong-ui-entities-snis-list[data-v-dfdb7df6]{width:100%}.kong-ui-entities-snis-list .kong-ui-entity-filter-input[data-v-dfdb7df6]{margin-right:12px}.kong-ui-entities-snis-form[data-v-414e41d7]{width:100%}.kong-ui-entities-snis-form .invalid-certificate-message[data-v-414e41d7]{color:#d60027;font-size:11px;font-weight:500;margin-top:3px!important}
@@ -42,8 +42,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
42
42
  type: BooleanConstructor;
43
43
  default: boolean;
44
44
  };
45
+ /**
46
+ * Enables the new empty state design, this prop can be removed when
47
+ * the khcp-14756-empty-states-m2 FF is removed.
48
+ */
49
+ enableV2EmptyStates: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
45
53
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
46
54
  error: (error: AxiosError<unknown, any>) => any;
55
+ "click:learn-more": () => any;
47
56
  "copy:success": (payload: CopyEventPayload) => any;
48
57
  "copy:error": (payload: CopyEventPayload) => any;
49
58
  "delete:success": (sni: EntityRow) => any;
@@ -87,8 +96,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
87
96
  type: BooleanConstructor;
88
97
  default: boolean;
89
98
  };
99
+ /**
100
+ * Enables the new empty state design, this prop can be removed when
101
+ * the khcp-14756-empty-states-m2 FF is removed.
102
+ */
103
+ enableV2EmptyStates: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
90
107
  }>> & Readonly<{
91
108
  onError?: ((error: AxiosError<unknown, any>) => any) | undefined;
109
+ "onClick:learn-more"?: (() => any) | undefined;
92
110
  "onCopy:success"?: ((payload: CopyEventPayload) => any) | undefined;
93
111
  "onCopy:error"?: ((payload: CopyEventPayload) => any) | undefined;
94
112
  "onDelete:success"?: ((sni: EntityRow) => any) | undefined;
@@ -99,6 +117,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
99
117
  canEdit: (row: EntityRow) => boolean | Promise<boolean>;
100
118
  canRetrieve: (row: EntityRow) => boolean | Promise<boolean>;
101
119
  useActionOutside: boolean;
120
+ enableV2EmptyStates: boolean;
102
121
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
103
122
  export default _default;
104
123
  //# sourceMappingURL=SniList.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SniList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SniList.vue"],"names":[],"mappings":"AAucA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAevC,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;;IA2vBrD,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;;;;;IAY/E,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,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;;;;;IAY/E,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":"SniList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SniList.vue"],"names":[],"mappings":"AAkiBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAkBvC,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;;IAm8BrD,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;;;;;IAY/E,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;;;;;IAKjH;;;OAGG;;;;;;;;;;;;IAhDH,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;;;;;IAY/E,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;;;;;IAKjH;;;OAGG;;;;;;;;;;;;;qBA9BgC,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;;;;AAjD7E,wBAmEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-snis",
3
- "version": "3.5.75",
3
+ "version": "3.6.0",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-snis.umd.js",
6
6
  "module": "./dist/entities-snis.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/entities-shared": "^3.17.1",
30
- "@kong-ui-public/i18n": "^2.2.10"
29
+ "@kong-ui-public/i18n": "^2.2.10",
30
+ "@kong-ui-public/entities-shared": "^3.17.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@kong/design-tokens": "1.17.2",
@@ -36,8 +36,8 @@
36
36
  "axios": "^1.7.7",
37
37
  "vue": "^3.5.12",
38
38
  "vue-router": "^4.4.5",
39
- "@kong-ui-public/i18n": "^2.2.10",
40
- "@kong-ui-public/entities-shared": "^3.17.1"
39
+ "@kong-ui-public/entities-shared": "^3.17.1",
40
+ "@kong-ui-public/i18n": "^2.2.10"
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",