@kong-ui-public/entities-snis 3.5.57 → 3.5.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/entities-snis.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ce,
|
|
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
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
|
|
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
4
|
import { AddIcon as Ne } from "@kong/icons";
|
|
5
5
|
import { useRouter as we } from "vue-router";
|
|
6
6
|
const De = {
|
|
@@ -160,36 +160,40 @@ const ue = {
|
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
163
|
-
setup(i, { emit:
|
|
164
|
-
var
|
|
165
|
-
const v =
|
|
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 = {
|
|
166
166
|
// the Name column is non-hidable
|
|
167
167
|
name: { label: l("snis.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
168
168
|
certificate: { label: l("snis.list.table_headers.certificate_id"), sortable: !1 },
|
|
169
169
|
tags: { label: l("snis.list.table_headers.tags"), sortable: !1 }
|
|
170
|
-
},
|
|
170
|
+
}, Q = E, $ = (n) => ({
|
|
171
171
|
style: {
|
|
172
|
-
maxWidth:
|
|
172
|
+
maxWidth: n.headerKey === "name" ? "250px" : n.headerKey === "certificate" ? "350px" : null
|
|
173
173
|
}
|
|
174
|
-
}),
|
|
174
|
+
}), M = y(() => {
|
|
175
175
|
var d, p;
|
|
176
|
-
let
|
|
177
|
-
return e.config.app === "konnect" ?
|
|
178
|
-
}),
|
|
179
|
-
const
|
|
180
|
-
if (
|
|
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)
|
|
181
181
|
return {
|
|
182
|
-
isExactMatch:
|
|
182
|
+
isExactMatch: n,
|
|
183
183
|
placeholder: l("search.placeholder")
|
|
184
184
|
};
|
|
185
|
-
const { name: d } =
|
|
185
|
+
const { name: d } = E;
|
|
186
186
|
return {
|
|
187
|
-
isExactMatch:
|
|
187
|
+
isExactMatch: n,
|
|
188
188
|
fields: { name: d },
|
|
189
189
|
schema: e.config.filterSchema
|
|
190
190
|
};
|
|
191
|
-
}), {
|
|
192
|
-
|
|
191
|
+
}), {
|
|
192
|
+
fetcher: W,
|
|
193
|
+
fetcherState: z,
|
|
194
|
+
fetcherCacheKey: D
|
|
195
|
+
} = he({ ...e.config, cacheIdentifier: e.cacheIdentifier }, M.value), G = () => {
|
|
196
|
+
r.value = "";
|
|
193
197
|
}, R = () => {
|
|
194
198
|
D.value++;
|
|
195
199
|
}, b = _(null), B = _({
|
|
@@ -197,98 +201,98 @@ const ue = {
|
|
|
197
201
|
ctaText: void 0,
|
|
198
202
|
message: `${l("snis.list.empty_state.description")}${e.config.additionMessageForEmptyState ? ` ${e.config.additionMessageForEmptyState}` : ""}`,
|
|
199
203
|
title: l("snis.title")
|
|
200
|
-
}), H = (
|
|
201
|
-
const p =
|
|
204
|
+
}), H = (n, d) => {
|
|
205
|
+
const p = n.id;
|
|
202
206
|
if (!d(p)) {
|
|
203
207
|
v("copy:error", {
|
|
204
|
-
entity:
|
|
208
|
+
entity: n,
|
|
205
209
|
field: "id",
|
|
206
210
|
message: l("errors.copy")
|
|
207
211
|
});
|
|
208
212
|
return;
|
|
209
213
|
}
|
|
210
214
|
v("copy:success", {
|
|
211
|
-
entity:
|
|
215
|
+
entity: n,
|
|
212
216
|
field: "id",
|
|
213
217
|
message: l("copy.success", { val: p })
|
|
214
218
|
});
|
|
215
|
-
}, X = (
|
|
216
|
-
const p = JSON.stringify(
|
|
219
|
+
}, X = (n, d) => {
|
|
220
|
+
const p = JSON.stringify(n);
|
|
217
221
|
if (!d(p)) {
|
|
218
222
|
v("copy:error", {
|
|
219
|
-
entity:
|
|
223
|
+
entity: n,
|
|
220
224
|
message: l("errors.copy")
|
|
221
225
|
});
|
|
222
226
|
return;
|
|
223
227
|
}
|
|
224
228
|
v("copy:success", {
|
|
225
|
-
entity:
|
|
229
|
+
entity: n,
|
|
226
230
|
message: l("copy.success_brief")
|
|
227
231
|
});
|
|
228
|
-
}, Y = (
|
|
232
|
+
}, Y = (n) => ({
|
|
229
233
|
label: l("actions.edit"),
|
|
230
|
-
to: e.config.getEditRoute(
|
|
231
|
-
}), k = _(void 0), T = _(!1),
|
|
232
|
-
k.value =
|
|
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;
|
|
233
237
|
}, V = () => {
|
|
234
238
|
T.value = !1, k.value = void 0;
|
|
235
239
|
}, te = async () => {
|
|
236
|
-
var
|
|
237
|
-
if ((
|
|
238
|
-
|
|
240
|
+
var n, d, p;
|
|
241
|
+
if ((n = k.value) != null && n.id) {
|
|
242
|
+
x.value = !0;
|
|
239
243
|
try {
|
|
240
|
-
await c.delete(Z(k.value.id)), v("delete:success", k.value),
|
|
244
|
+
await c.delete(Z(k.value.id)), v("delete:success", k.value), x.value = !1, V(), D.value++;
|
|
241
245
|
} catch (h) {
|
|
242
|
-
|
|
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);
|
|
243
247
|
} finally {
|
|
244
|
-
|
|
248
|
+
x.value = !1;
|
|
245
249
|
}
|
|
246
250
|
}
|
|
247
251
|
};
|
|
248
|
-
return
|
|
252
|
+
return ne(z, (n) => {
|
|
249
253
|
var d, p, h;
|
|
250
|
-
if (
|
|
254
|
+
if (n.status === ke.Error) {
|
|
251
255
|
b.value = {
|
|
252
256
|
title: l("errors.general")
|
|
253
|
-
}, (h = (p = (d =
|
|
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);
|
|
254
258
|
return;
|
|
255
259
|
}
|
|
256
260
|
b.value = null;
|
|
257
261
|
}), de(async () => {
|
|
258
262
|
await e.canCreate() && (B.value.title = l("snis.list.empty_state.title"), B.value.ctaText = l("actions.create"));
|
|
259
|
-
}), (
|
|
260
|
-
const p =
|
|
261
|
-
return
|
|
262
|
-
f(
|
|
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), {
|
|
263
267
|
"cache-identifier": i.cacheIdentifier,
|
|
264
|
-
"cell-attributes":
|
|
268
|
+
"cell-attributes": $,
|
|
265
269
|
"disable-row-click": !0,
|
|
266
|
-
"disable-sorting":
|
|
270
|
+
"disable-sorting": J.value,
|
|
267
271
|
"empty-state-options": B.value,
|
|
268
272
|
"enable-entity-actions": "",
|
|
269
273
|
"error-message": b.value,
|
|
270
|
-
fetcher:
|
|
271
|
-
"fetcher-cache-key": D
|
|
274
|
+
fetcher: a(W),
|
|
275
|
+
"fetcher-cache-key": a(D),
|
|
272
276
|
"pagination-type": "offset",
|
|
273
277
|
"preferences-storage-key": "kong-ui-entities-snis-list",
|
|
274
|
-
query:
|
|
275
|
-
"table-headers":
|
|
278
|
+
query: r.value,
|
|
279
|
+
"table-headers": a(Q),
|
|
276
280
|
onClearSearchInput: G,
|
|
277
281
|
onSort: R
|
|
278
282
|
}, {
|
|
279
283
|
"toolbar-filter": u(() => [
|
|
280
|
-
f(
|
|
281
|
-
modelValue:
|
|
282
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
283
|
-
config:
|
|
284
|
+
f(a(_e), {
|
|
285
|
+
modelValue: r.value,
|
|
286
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => r.value = o),
|
|
287
|
+
config: w.value
|
|
284
288
|
}, null, 8, ["modelValue", "config"])
|
|
285
289
|
]),
|
|
286
290
|
"toolbar-button": u(() => [
|
|
287
|
-
(
|
|
291
|
+
(S(), L(me, {
|
|
288
292
|
disabled: !i.useActionOutside,
|
|
289
293
|
to: "#kong-ui-app-page-header-action-button"
|
|
290
294
|
}, [
|
|
291
|
-
f(
|
|
295
|
+
f(a(ie), {
|
|
292
296
|
"auth-function": () => i.canCreate()
|
|
293
297
|
}, {
|
|
294
298
|
default: u(() => [
|
|
@@ -299,8 +303,8 @@ const ue = {
|
|
|
299
303
|
to: i.config.createRoute
|
|
300
304
|
}, {
|
|
301
305
|
default: u(() => [
|
|
302
|
-
f(
|
|
303
|
-
|
|
306
|
+
f(a(Ne)),
|
|
307
|
+
j(" " + C(a(l)("snis.list.toolbar_actions.new")), 1)
|
|
304
308
|
]),
|
|
305
309
|
_: 1
|
|
306
310
|
}, 8, ["size", "to"])
|
|
@@ -309,30 +313,30 @@ const ue = {
|
|
|
309
313
|
}, 8, ["auth-function"])
|
|
310
314
|
], 8, ["disabled"]))
|
|
311
315
|
]),
|
|
312
|
-
name: u(({ rowValue:
|
|
313
|
-
|
|
316
|
+
name: u(({ rowValue: o }) => [
|
|
317
|
+
oe("b", null, C(o ?? "-"), 1)
|
|
314
318
|
]),
|
|
315
|
-
certificate: u(({ row:
|
|
316
|
-
|
|
319
|
+
certificate: u(({ row: o }) => [
|
|
320
|
+
o.certificate && o.certificate.id ? (S(), L(h, {
|
|
317
321
|
key: 0,
|
|
318
322
|
class: "copy-certificate-uuid",
|
|
319
323
|
"data-testid": "copy-certificate-uuid",
|
|
320
|
-
text:
|
|
324
|
+
text: o.certificate.id,
|
|
321
325
|
truncate: ""
|
|
322
|
-
}, null, 8, ["text"])) : (
|
|
326
|
+
}, null, 8, ["text"])) : (S(), A("span", Oe, "-"))
|
|
323
327
|
]),
|
|
324
|
-
tags: u(({ rowValue:
|
|
325
|
-
f(
|
|
328
|
+
tags: u(({ rowValue: o }) => [
|
|
329
|
+
f(a(Ce), { tags: o }, null, 8, ["tags"])
|
|
326
330
|
]),
|
|
327
|
-
actions: u(({ row:
|
|
331
|
+
actions: u(({ row: o }) => [
|
|
328
332
|
f(s, null, {
|
|
329
333
|
default: u(({ copyToClipboard: I }) => [
|
|
330
334
|
f(t, {
|
|
331
335
|
"data-testid": "action-entity-copy-id",
|
|
332
|
-
onClick: (g) => H(
|
|
336
|
+
onClick: (g) => H(o, I)
|
|
333
337
|
}, {
|
|
334
338
|
default: u(() => [
|
|
335
|
-
|
|
339
|
+
j(C(a(l)("actions.copy_id")), 1)
|
|
336
340
|
]),
|
|
337
341
|
_: 2
|
|
338
342
|
}, 1032, ["onClick"])
|
|
@@ -343,39 +347,39 @@ const ue = {
|
|
|
343
347
|
default: u(({ copyToClipboard: I }) => [
|
|
344
348
|
f(t, {
|
|
345
349
|
"data-testid": "action-entity-copy-json",
|
|
346
|
-
onClick: (g) => X(
|
|
350
|
+
onClick: (g) => X(o, I)
|
|
347
351
|
}, {
|
|
348
352
|
default: u(() => [
|
|
349
|
-
|
|
353
|
+
j(C(a(l)("actions.copy_json")), 1)
|
|
350
354
|
]),
|
|
351
355
|
_: 2
|
|
352
356
|
}, 1032, ["onClick"])
|
|
353
357
|
]),
|
|
354
358
|
_: 2
|
|
355
359
|
}, 1024),
|
|
356
|
-
f(
|
|
357
|
-
"auth-function": () => i.canEdit(
|
|
360
|
+
f(a(ie), {
|
|
361
|
+
"auth-function": () => i.canEdit(o)
|
|
358
362
|
}, {
|
|
359
363
|
default: u(() => [
|
|
360
364
|
f(t, {
|
|
361
365
|
"data-testid": "action-entity-edit",
|
|
362
|
-
item: Y(
|
|
366
|
+
item: Y(o.id)
|
|
363
367
|
}, null, 8, ["item"])
|
|
364
368
|
]),
|
|
365
369
|
_: 2
|
|
366
370
|
}, 1032, ["auth-function"]),
|
|
367
|
-
f(
|
|
368
|
-
"auth-function": () => i.canDelete(
|
|
371
|
+
f(a(ie), {
|
|
372
|
+
"auth-function": () => i.canDelete(o)
|
|
369
373
|
}, {
|
|
370
374
|
default: u(() => [
|
|
371
375
|
f(t, {
|
|
372
376
|
danger: "",
|
|
373
377
|
"data-testid": "action-entity-delete",
|
|
374
378
|
"has-divider": "",
|
|
375
|
-
onClick: (I) => ee(
|
|
379
|
+
onClick: (I) => ee(o)
|
|
376
380
|
}, {
|
|
377
381
|
default: u(() => [
|
|
378
|
-
|
|
382
|
+
j(C(a(l)("actions.delete")), 1)
|
|
379
383
|
]),
|
|
380
384
|
_: 2
|
|
381
385
|
}, 1032, ["onClick"])
|
|
@@ -385,14 +389,14 @@ const ue = {
|
|
|
385
389
|
]),
|
|
386
390
|
_: 1
|
|
387
391
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
388
|
-
f(
|
|
389
|
-
"action-pending":
|
|
390
|
-
description:
|
|
392
|
+
f(a(Se), {
|
|
393
|
+
"action-pending": x.value,
|
|
394
|
+
description: a(l)("delete.description"),
|
|
391
395
|
"entity-name": k.value && (k.value.name || k.value.id),
|
|
392
|
-
"entity-type":
|
|
393
|
-
error:
|
|
396
|
+
"entity-type": a(Ee).SNI,
|
|
397
|
+
error: U.value,
|
|
394
398
|
"need-confirm": !1,
|
|
395
|
-
title:
|
|
399
|
+
title: a(l)("delete.title"),
|
|
396
400
|
visible: T.value,
|
|
397
401
|
onCancel: V,
|
|
398
402
|
onProceed: te
|
|
@@ -400,12 +404,12 @@ const ue = {
|
|
|
400
404
|
]);
|
|
401
405
|
};
|
|
402
406
|
}
|
|
403
|
-
}), pe = (i,
|
|
407
|
+
}), pe = (i, N) => {
|
|
404
408
|
const v = i.__vccOpts || i;
|
|
405
|
-
for (const [e, l] of
|
|
409
|
+
for (const [e, l] of N)
|
|
406
410
|
v[e] = l;
|
|
407
411
|
return v;
|
|
408
|
-
}, Ye = /* @__PURE__ */ pe(je, [["__scopeId", "data-v-
|
|
412
|
+
}, Ye = /* @__PURE__ */ pe(je, [["__scopeId", "data-v-38777abd"]]), Ae = { class: "kong-ui-entities-snis-form" }, Le = { "data-testid": "no-search-results" }, Je = {
|
|
409
413
|
key: 2,
|
|
410
414
|
class: "invalid-certificate-message",
|
|
411
415
|
"data-testid": "invalid-certificate-message"
|
|
@@ -426,9 +430,9 @@ const ue = {
|
|
|
426
430
|
}
|
|
427
431
|
},
|
|
428
432
|
emits: ["update", "error", "loading"],
|
|
429
|
-
setup(i, { emit:
|
|
433
|
+
setup(i, { emit: N }) {
|
|
430
434
|
var h;
|
|
431
|
-
const v =
|
|
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({
|
|
432
436
|
fields: {
|
|
433
437
|
name: "",
|
|
434
438
|
tags: "",
|
|
@@ -436,38 +440,38 @@ const ue = {
|
|
|
436
440
|
},
|
|
437
441
|
isReadonly: !1,
|
|
438
442
|
errorMessage: ""
|
|
439
|
-
}),
|
|
443
|
+
}), w = re({
|
|
440
444
|
name: "",
|
|
441
445
|
tags: "",
|
|
442
446
|
certificate_id: ""
|
|
443
|
-
}),
|
|
444
|
-
var s,
|
|
445
|
-
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 = ((
|
|
446
|
-
},
|
|
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 = () => {
|
|
447
451
|
l.push(e.config.cancelRoute);
|
|
448
452
|
}, G = y(() => {
|
|
449
|
-
var s,
|
|
453
|
+
var s, o;
|
|
450
454
|
let t = `${e.config.apiBaseUrl}${P.form[e.config.app].validate}`;
|
|
451
|
-
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, (
|
|
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;
|
|
452
456
|
}), R = y(() => {
|
|
453
|
-
var s,
|
|
457
|
+
var s, o;
|
|
454
458
|
let t = `${e.config.apiBaseUrl}${P.form[e.config.app][$.value]}`;
|
|
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, (
|
|
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;
|
|
456
460
|
}), b = y(() => {
|
|
457
461
|
var t, s;
|
|
458
462
|
return {
|
|
459
463
|
name: r.fields.name,
|
|
460
|
-
tags: (s = (t = r.fields.tags.split(",")) == null ? void 0 : t.map((
|
|
461
|
-
certificate: { id:
|
|
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 }
|
|
462
466
|
};
|
|
463
467
|
}), B = async () => {
|
|
464
|
-
var t, s,
|
|
468
|
+
var t, s, o, I, g, se;
|
|
465
469
|
try {
|
|
466
470
|
r.isReadonly = !0;
|
|
467
471
|
let m;
|
|
468
|
-
await
|
|
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);
|
|
469
473
|
} catch (m) {
|
|
470
|
-
r.errorMessage =
|
|
474
|
+
r.errorMessage = J(m), v("error", m);
|
|
471
475
|
} finally {
|
|
472
476
|
r.isReadonly = !1;
|
|
473
477
|
}
|
|
@@ -477,122 +481,122 @@ const ue = {
|
|
|
477
481
|
allRecords: Y,
|
|
478
482
|
error: k,
|
|
479
483
|
validationError: T,
|
|
480
|
-
loadItems:
|
|
481
|
-
results:
|
|
484
|
+
loadItems: x,
|
|
485
|
+
results: U
|
|
482
486
|
} = $e(e.config, P.form[e.config.app].certificates), Z = (t) => {
|
|
483
487
|
H(t);
|
|
484
|
-
}, ee = y(() => k.value ? c("errors.certificates.fetch") : ""), V = y(() => T.value ? c("errors.certificates.invalid") : ""), te = _(0),
|
|
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) => ({
|
|
485
489
|
label: s,
|
|
486
490
|
value: s,
|
|
487
491
|
selected: r.fields.certificate_id === s
|
|
488
492
|
}))), p = (t) => {
|
|
489
|
-
|
|
493
|
+
n.value.clear();
|
|
490
494
|
let s;
|
|
491
495
|
for (s of t)
|
|
492
|
-
|
|
496
|
+
n.value.add(s.id);
|
|
493
497
|
};
|
|
494
|
-
return
|
|
498
|
+
return ne(U, (t) => {
|
|
495
499
|
p(t);
|
|
496
|
-
}, { immediate: !0, deep: !0 }),
|
|
500
|
+
}, { immediate: !0, deep: !0 }), ne(d, () => {
|
|
497
501
|
te.value++;
|
|
498
502
|
}, { immediate: !0, deep: !0 }), de(async () => {
|
|
499
|
-
await
|
|
503
|
+
await x();
|
|
500
504
|
}), (t, s) => {
|
|
501
|
-
const
|
|
502
|
-
return
|
|
503
|
-
f(
|
|
504
|
-
"can-submit":
|
|
505
|
+
const o = F("KInput"), I = F("KSelect");
|
|
506
|
+
return S(), A("div", Ae, [
|
|
507
|
+
f(a(xe), {
|
|
508
|
+
"can-submit": W.value,
|
|
505
509
|
config: i.config,
|
|
506
510
|
"edit-id": i.sniId,
|
|
507
|
-
"entity-type":
|
|
511
|
+
"entity-type": a(Fe).SNI,
|
|
508
512
|
"error-message": r.errorMessage || ee.value,
|
|
509
|
-
"fetch-url":
|
|
513
|
+
"fetch-url": Q.value,
|
|
510
514
|
"form-fields": b.value,
|
|
511
515
|
"is-readonly": r.isReadonly,
|
|
512
|
-
onCancel:
|
|
516
|
+
onCancel: D,
|
|
513
517
|
"onFetch:error": s[3] || (s[3] = (g) => t.$emit("error", g)),
|
|
514
|
-
"onFetch:success":
|
|
518
|
+
"onFetch:success": z,
|
|
515
519
|
onLoading: s[4] || (s[4] = (g) => t.$emit("loading", g)),
|
|
516
520
|
onSubmit: B
|
|
517
521
|
}, {
|
|
518
522
|
default: u(() => [
|
|
519
|
-
f(
|
|
520
|
-
description:
|
|
521
|
-
title:
|
|
523
|
+
f(a(le), {
|
|
524
|
+
description: a(c)("form.sections.general.description"),
|
|
525
|
+
title: a(c)("form.sections.general.title")
|
|
522
526
|
}, {
|
|
523
527
|
default: u(() => [
|
|
524
|
-
f(
|
|
528
|
+
f(o, {
|
|
525
529
|
modelValue: r.fields.name,
|
|
526
530
|
"onUpdate:modelValue": s[0] || (s[0] = (g) => r.fields.name = g),
|
|
527
531
|
modelModifiers: { trim: !0 },
|
|
528
532
|
autocomplete: "off",
|
|
529
533
|
"data-testid": "sni-form-name",
|
|
530
|
-
label:
|
|
531
|
-
placeholder:
|
|
534
|
+
label: a(c)("form.fields.name.label"),
|
|
535
|
+
placeholder: a(c)("form.fields.name.placeholder"),
|
|
532
536
|
readonly: r.isReadonly,
|
|
533
537
|
required: "",
|
|
534
538
|
type: "text"
|
|
535
539
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
536
|
-
f(
|
|
540
|
+
f(o, {
|
|
537
541
|
modelValue: r.fields.tags,
|
|
538
542
|
"onUpdate:modelValue": s[1] || (s[1] = (g) => r.fields.tags = g),
|
|
539
543
|
modelModifiers: { trim: !0 },
|
|
540
544
|
autocomplete: "off",
|
|
541
545
|
"data-testid": "sni-form-tags",
|
|
542
|
-
help:
|
|
543
|
-
label:
|
|
546
|
+
help: a(c)("form.fields.tags.help"),
|
|
547
|
+
label: a(c)("form.fields.tags.label"),
|
|
544
548
|
"label-attributes": {
|
|
545
|
-
info:
|
|
549
|
+
info: a(c)("form.fields.tags.tooltip"),
|
|
546
550
|
tooltipAttributes: { maxWidth: "400" }
|
|
547
551
|
},
|
|
548
|
-
placeholder:
|
|
552
|
+
placeholder: a(c)("form.fields.tags.placeholder"),
|
|
549
553
|
readonly: r.isReadonly,
|
|
550
554
|
type: "text"
|
|
551
555
|
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
552
556
|
]),
|
|
553
557
|
_: 1
|
|
554
558
|
}, 8, ["description", "title"]),
|
|
555
|
-
f(
|
|
556
|
-
description:
|
|
559
|
+
f(a(le), {
|
|
560
|
+
description: a(c)("form.sections.certificate.description"),
|
|
557
561
|
"has-divider": "",
|
|
558
|
-
title:
|
|
562
|
+
title: a(c)("form.sections.certificate.title")
|
|
559
563
|
}, {
|
|
560
564
|
default: u(() => [
|
|
561
|
-
|
|
565
|
+
M.value ? (S(), L(o, {
|
|
562
566
|
key: 0,
|
|
563
567
|
"data-testid": "sni-form-certificate-id",
|
|
564
|
-
label:
|
|
565
|
-
"model-value":
|
|
568
|
+
label: a(c)("form.fields.certificate_id.label"),
|
|
569
|
+
"model-value": M.value,
|
|
566
570
|
readonly: "",
|
|
567
571
|
required: "",
|
|
568
572
|
width: "100%"
|
|
569
|
-
}, null, 8, ["label", "model-value"])) : (
|
|
573
|
+
}, null, 8, ["label", "model-value"])) : (S(), L(I, {
|
|
570
574
|
key: 1,
|
|
571
575
|
modelValue: r.fields.certificate_id,
|
|
572
576
|
"onUpdate:modelValue": s[2] || (s[2] = (g) => r.fields.certificate_id = g),
|
|
573
577
|
clearable: "",
|
|
574
578
|
"data-testid": "sni-form-certificate-id",
|
|
575
|
-
"dropdown-footer-text":
|
|
579
|
+
"dropdown-footer-text": O.value ? a(c)("form.fields.certificate_id.footer") : void 0,
|
|
576
580
|
"enable-filtering": "",
|
|
577
581
|
"filter-function": () => !0,
|
|
578
582
|
items: d.value,
|
|
579
|
-
label:
|
|
580
|
-
loading:
|
|
581
|
-
placeholder:
|
|
583
|
+
label: a(c)("form.fields.certificate_id.label"),
|
|
584
|
+
loading: a(X),
|
|
585
|
+
placeholder: a(c)("form.fields.certificate_id.placeholder"),
|
|
582
586
|
readonly: r.isReadonly,
|
|
583
587
|
required: "",
|
|
584
588
|
width: "100%",
|
|
585
589
|
onQueryChange: Z
|
|
586
590
|
}, {
|
|
587
591
|
loading: u(() => [
|
|
588
|
-
|
|
592
|
+
oe("div", null, C(a(c)("actions.loading")), 1)
|
|
589
593
|
]),
|
|
590
594
|
empty: u(() => [
|
|
591
|
-
|
|
595
|
+
oe("div", Le, C(a(c)("search.no_results")), 1)
|
|
592
596
|
]),
|
|
593
597
|
_: 1
|
|
594
598
|
}, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
|
|
595
|
-
V.value ? (
|
|
599
|
+
V.value ? (S(), A("p", Je, C(V.value), 1)) : ge("", !0)
|
|
596
600
|
]),
|
|
597
601
|
_: 1
|
|
598
602
|
}, 8, ["description", "title"])
|
|
@@ -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},V="/v2/control-planes/{controlPlaneId}/core-entities",S="/{workspace}",E={list:{konnect:{all:`${V}/snis`},kongManager:{all:`${S}/snis`}},form:{konnect:{create:`${V}/snis`,edit:`${V}/snis/{id}`,validate:`${V}/v1/schemas/json/sni/validate`,certificates:`${V}/certificates`},kongManager:{create:`${S}/snis`,edit:`${S}/snis/{id}`,validate:`${S}/schemas/snis/validate`,certificates:`${S}/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:B}){var P;const g=B,t=a,{i18n:{t:l}}=H.useI18n(),{axiosInstance:d}=c.useAxios((P=t.config)==null?void 0:P.axiosRequestConfig),D=e.ref(1),I=e.computed(()=>t.config.app!=="kongManager"||!!t.config.disableSorting),R={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}},x=R,N=o=>({style:{maxWidth:o.headerKey==="name"?"250px":o.headerKey==="certificate"?"350px":null}}),s=e.computed(()=>{var f,p;let o=`${t.config.apiBaseUrl}${E.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}),_=e.ref(""),K=e.computed(()=>{const o=t.config.app==="konnect"||t.config.isExactMatch;if(o)return{isExactMatch:o,placeholder:l("search.placeholder")};const{name:f}=R;return{isExactMatch:o,fields:{name:f},schema:t.config.filterSchema}}),{fetcher:O,fetcherState:U}=c.useFetcher(t.config,s.value),j=()=>{_.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),w=e.ref(!1),q=e.ref(""),W=c.useDeleteUrlBuilder(t.config,s.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){w.value=!0;try{await d.delete(W(k.value.id)),g("delete:success",k.value),w.value=!1,T(),D.value++}catch(h){q.value=((p=(f=h.response)==null?void 0:f.data)==null?void 0:p.message)||h.message||l("errors.delete"),g("error",h)}finally{w.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":N,"disable-row-click":!0,"disable-sorting":I.value,"empty-state-options":F.value,"enable-entity-actions":"","error-message":b.value,fetcher:e.unref(O),"fetcher-cache-key":D.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-snis-list",query:_.value,"table-headers":e.unref(x),onClearSearchInput:j,onSort:M},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(c.EntityFilter),{modelValue:_.value,"onUpdate:modelValue":f[0]||(f[0]=n=>_.value=n),config:K.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":w.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:q.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,B)=>{const g=a.__vccOpts||a;for(const[t,l]of B)g[t]=l;return g},ne=X(oe,[["__scopeId","data-v-70dc188c"]]),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:B}){var h;const g=B,t=a,l=v.useRouter(),{i18n:{t:d}}=H.useI18n(),{getMessageFromError:D}=c.useErrors(),{axiosInstance:I}=c.useAxios((h=t.config)==null?void 0:h.axiosRequestConfig),R=e.computed(()=>E.form[t.config.app].edit),x=e.computed(()=>t.sniId?c.EntityBaseFormType.Edit:c.EntityBaseFormType.Create),N=e.computed(()=>t.config.certificateId&&x.value===c.EntityBaseFormType.Create?t.config.certificateId:""),s=e.reactive({fields:{name:"",tags:"",certificate_id:""},isReadonly:!1,errorMessage:""}),_=e.reactive({name:"",tags:"",certificate_id:""}),K=e.computed(()=>JSON.stringify(s.fields)!==JSON.stringify(_)&&!!s.fields.name&&!!(s.fields.certificate_id||N.value)),O=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(_,s.fields)},U=()=>{l.push(t.config.cancelRoute)},j=e.computed(()=>{var r,n;let i=`${t.config.apiBaseUrl}${E.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}${E.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:N.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(_,s.fields),g("update",u==null?void 0:u.data)}catch(u){s.errorMessage=D(u),g("error",u)}finally{s.isReadonly=!1}},{debouncedQueryChange:A,loading:L,allRecords:J,error:k,validationError:$,loadItems:w,results:q}=c.useDebouncedFilter(t.config,E.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),P=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(q,i=>{p(i)},{immediate:!0,deep:!0}),e.watch(f,()=>{z.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await w()}),(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":K.value,config:a.config,"edit-id":a.sniId,"entity-type":e.unref(c.SupportedEntityType).SNI,"error-message":s.errorMessage||Q.value,"fetch-url":R.value,"form-fields":b.value,"is-readonly":s.isReadonly,onCancel:U,"onFetch:error":r[3]||(r[3]=m=>i.$emit("error",m)),"onFetch:success":O,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(()=>[N.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":N.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":P.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(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"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-499e74da]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-499e74da]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-snis-list[data-v-70dc188c]{width:100%}.kong-ui-entities-snis-list .kong-ui-entity-filter-input[data-v-70dc188c]{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-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-6f28b73b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-6f28b73b]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SniList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SniList.vue"],"names":[],"mappings":"
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-snis",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.58",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-snis.umd.js",
|
|
6
6
|
"module": "./dist/entities-snis.es.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.4.5",
|
|
29
29
|
"@kong-ui-public/i18n": "^2.2.10",
|
|
30
|
-
"@kong-ui-public/entities-shared": "^3.10.
|
|
30
|
+
"@kong-ui-public/entities-shared": "^3.10.17"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@kong/design-tokens": "1.17.2",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"axios": "^1.7.7",
|
|
37
37
|
"vue": "^3.5.12",
|
|
38
38
|
"vue-router": "^4.4.5",
|
|
39
|
-
"@kong-ui-public/entities-shared": "^3.10.
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.10.17",
|
|
40
40
|
"@kong-ui-public/i18n": "^2.2.10"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|