@kong-ui-public/entities-snis 3.16.21 → 3.16.22-pr.4124.96e0dc321.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-snis",
3
- "version": "3.16.21",
3
+ "version": "3.16.22-pr.4124.96e0dc321.0",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-snis.umd.js",
6
6
  "module": "./dist/entities-snis.es.js",
@@ -21,7 +21,7 @@
21
21
  "access": "public"
22
22
  },
23
23
  "peerDependencies": {
24
- "@kong-ui-public/entities-shared": "^3.73.7",
24
+ "@kong-ui-public/entities-shared": "^3.73.8-pr.4124.96e0dc321.0",
25
25
  "@kong-ui-public/i18n": "^2.5.1",
26
26
  "@kong/icons": "^1.58.0",
27
27
  "@kong/kongponents": "^9.64.0",
@@ -30,7 +30,7 @@
30
30
  "vue-router": "^4.6.4 || ^5.0.6"
31
31
  },
32
32
  "devDependencies": {
33
- "@kong-ui-public/entities-shared": "^3.73.7",
33
+ "@kong-ui-public/entities-shared": "^3.73.8-pr.4124.96e0dc321.0",
34
34
  "@kong-ui-public/i18n": "^2.5.1",
35
35
  "@kong/design-tokens": "3.5.3",
36
36
  "@kong/icons": "^1.64.0",
@@ -1,626 +0,0 @@
1
- import { defineComponent as ge, computed as f, ref as k, watch as ce, onBeforeMount as ye, resolveComponent as C, openBlock as y, createElementBlock as z, createVNode as l, unref as e, createSlots as ue, withCtx as r, createTextVNode as S, toDisplayString as m, createBlock as _, createElementVNode as H, Teleport as Ie, createCommentVNode as q, reactive as fe } from "vue";
2
- import { useRouter as ve } from "vue-router";
3
- import { createI18n as Ee, i18nTComponent as Ne } from "@kong-ui-public/i18n";
4
- import { useAxios as he, useTableState as we, useManagedByColumn as Me, useFetcher as $e, useDeleteUrlBuilder as xe, FetcherStatus as Fe, EntityBaseTable as Be, PermissionsWrapper as L, getManagedByLabel as De, TableTags as Re, EntityFilter as Te, EntityDeleteModal as Ke, EntityTypes as Ve, useErrors as qe, EntityBaseFormType as re, useDebouncedFilter as Pe, EntityBaseForm as Oe, SupportedEntityType as Ue, EntityFormSection as pe } from "@kong-ui-public/entities-shared";
5
- import { BookIcon as me, AddIcon as le, CloudIcon as Ae } from "@kong/icons";
6
- const Le = { create: "New SNI", copy_id: "Copy ID", copy_json: "Copy JSON", edit: "Edit", delete: "Delete", clear: "Clear", loading: "Loading..." }, je = { placeholder: "Filter by exact name or ID", no_results: "No results found" }, Je = { 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.", group: "SNIs created in gateways within this group will automatically appear here.", create_cta: "New SNI", learn_more: "Learn more" } } }, Qe = { sections: { general: { title: "General information", description: "Name this SNI with the hostname it should match and add tags to group and filter it." }, 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" } } }, ze = { 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" }, He = { success: "Copied {val} to clipboard", success_brief: "Successfully copied to clipboard" }, We = {
7
- actions: Le,
8
- search: je,
9
- snis: Je,
10
- form: Qe,
11
- delete: { title: "Delete an SNI", description: "This action cannot be reversed so make sure to check the SNI usage before deleting." },
12
- errors: ze,
13
- copy: He
14
- };
15
- function Ge() {
16
- const a = Ee("en-us", We);
17
- return {
18
- i18n: a,
19
- i18nT: Ne(a)
20
- // Translation component <i18n-t>
21
- };
22
- }
23
- const be = {
24
- useI18n: Ge
25
- }, j = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", J = "/{workspace}", Q = {
26
- list: {
27
- konnect: {
28
- all: `${j}/snis`
29
- },
30
- kongManager: {
31
- all: `${J}/snis`
32
- }
33
- },
34
- form: {
35
- konnect: {
36
- create: `${j}/snis`,
37
- edit: `${j}/snis/{id}`,
38
- certificates: `${j}/certificates`
39
- },
40
- kongManager: {
41
- create: `${J}/snis`,
42
- edit: `${J}/snis/{id}`,
43
- certificates: `${J}/certificates`
44
- }
45
- }
46
- }, Xe = { class: "kong-ui-entities-snis-list" }, Ye = { class: "button-row" }, Ze = { key: 1 }, et = /* @__PURE__ */ ge({
47
- __name: "SniList",
48
- props: {
49
- /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
50
- config: {
51
- type: Object,
52
- required: !0,
53
- validator: (a) => !(!a || !["konnect", "kongManager"].includes(a?.app) || !a.createRoute || !a.getViewRoute || !a.getEditRoute || a.app === "kongManager" && !a.isExactMatch && !a.filterSchema)
54
- },
55
- // used to override the default identifier for the cache entry
56
- cacheIdentifier: {
57
- type: String,
58
- default: ""
59
- },
60
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
61
- canCreate: {
62
- type: Function,
63
- required: !1,
64
- default: async () => !0
65
- },
66
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
67
- canDelete: {
68
- type: Function,
69
- required: !1,
70
- default: async () => !0
71
- },
72
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
73
- canEdit: {
74
- type: Function,
75
- required: !1,
76
- default: async () => !0
77
- },
78
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
79
- canRetrieve: {
80
- type: Function,
81
- required: !1,
82
- default: async () => !0
83
- },
84
- /** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
85
- useActionOutside: {
86
- type: Boolean,
87
- default: !1
88
- },
89
- /** default to false, setting to true will place create button on top right of list*/
90
- useToolbarCreationButton: {
91
- type: Boolean,
92
- default: !1
93
- }
94
- },
95
- emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
96
- setup(a, { emit: x }) {
97
- const p = x, i = a, { i18n: { t: s } } = be.useI18n(), c = ve(), { axiosInstance: W } = he(i.config?.axiosRequestConfig), { hasRecords: F, handleStateChange: G } = we(() => b.value), I = f(() => F.value && i.config.app === "konnect"), E = f(() => i.config.app !== "kongManager" || !!i.config.disableSorting), o = {
98
- // the Name column is non-hidable
99
- name: { label: s("snis.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
100
- certificate: { label: s("snis.list.table_headers.certificate_id"), sortable: !1 },
101
- tags: { label: s("snis.list.table_headers.tags"), sortable: !1 }
102
- }, { defaultTablePreferences: B, tableHeaders: X } = Me(o), Y = (t) => ({
103
- style: {
104
- maxWidth: t.headerKey === "name" ? "250px" : t.headerKey === "certificate" ? "350px" : null
105
- }
106
- }), P = f(() => {
107
- let t = `${i.config.apiBaseUrl}${Q.list[i.config.app].all}`;
108
- return i.config.app === "konnect" && (t = t.replace(/{controlPlaneId}/gi, i.config?.controlPlaneId || "")), t.replace(/\/{workspace}/gi, i.config?.workspace ? `/${i.config.workspace}` : "");
109
- }), b = k(""), N = f(() => {
110
- const t = i.config.app === "konnect" || i.config.isExactMatch;
111
- if (t)
112
- return {
113
- isExactMatch: t,
114
- placeholder: s("search.placeholder")
115
- };
116
- const { name: g } = o;
117
- return {
118
- isExactMatch: t,
119
- fields: { name: g },
120
- schema: i.config.filterSchema
121
- };
122
- }), {
123
- fetcher: Z,
124
- fetcherState: ee,
125
- fetcherCacheKey: D
126
- } = $e(f(() => ({ ...i.config, cacheIdentifier: i.cacheIdentifier })), P), te = () => {
127
- b.value = "";
128
- }, ae = () => {
129
- D.value++;
130
- }, w = k(null), R = k({
131
- ctaPath: i.config.createRoute,
132
- ctaText: void 0,
133
- message: `${s("snis.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
134
- title: s("snis.title")
135
- }), ie = async (t, g) => {
136
- const h = t.id;
137
- if (!await g(h)) {
138
- p("copy:error", {
139
- entity: t,
140
- field: "id",
141
- message: s("errors.copy")
142
- });
143
- return;
144
- }
145
- p("copy:success", {
146
- entity: t,
147
- field: "id",
148
- message: s("copy.success", { val: h })
149
- });
150
- }, ne = async (t, g) => {
151
- const h = JSON.stringify(t);
152
- if (!await g(h)) {
153
- p("copy:error", {
154
- entity: t,
155
- message: s("errors.copy")
156
- });
157
- return;
158
- }
159
- p("copy:success", {
160
- entity: t,
161
- message: s("copy.success_brief")
162
- });
163
- }, oe = (t) => ({
164
- label: s("actions.edit"),
165
- to: i.config.getEditRoute(t)
166
- }), v = k(void 0), T = k(!1), M = k(!1), $ = k(""), O = xe(i.config, P.value), se = (t) => {
167
- v.value = t, T.value = !0;
168
- }, n = () => {
169
- T.value = !1, v.value = void 0;
170
- }, u = async () => {
171
- if (v.value?.id) {
172
- M.value = !0;
173
- try {
174
- await W.delete(O(v.value.id)), p("delete:success", v.value), M.value = !1, n(), D.value++;
175
- } catch (t) {
176
- $.value = t.response?.data?.message || t.message || s("errors.delete"), p("error", t);
177
- } finally {
178
- M.value = !1;
179
- }
180
- }
181
- }, K = () => {
182
- c.push(i.config.createRoute);
183
- };
184
- ce(ee, (t) => {
185
- if (t.status === Fe.Error) {
186
- w.value = {
187
- title: s("errors.general")
188
- }, t.error?.response?.data?.message && (w.value.message = t.error.response.data.message), p("error", t.error);
189
- return;
190
- }
191
- w.value = null;
192
- });
193
- const V = k(!1);
194
- return ye(async () => {
195
- V.value = await i.canCreate(), V.value && (R.value.title = s("snis.list.empty_state.title"), R.value.ctaText = s("actions.create"));
196
- }), (t, g) => {
197
- const h = C("KButton"), Se = C("KEmptyState"), _e = C("KCopy"), U = C("KDropdownItem"), de = C("KClipboardProvider");
198
- return y(), z("div", Xe, [
199
- l(e(Be), {
200
- "cache-identifier": a.cacheIdentifier,
201
- "cell-attributes": Y,
202
- "default-table-preferences": e(B),
203
- "disable-row-click": !0,
204
- "disable-sorting": E.value,
205
- "empty-state-options": R.value,
206
- "enable-entity-actions": "",
207
- "error-message": w.value,
208
- fetcher: e(Z),
209
- "fetcher-cache-key": e(D),
210
- "pagination-type": "offset",
211
- "preferences-storage-key": "kong-ui-entities-snis-list",
212
- query: b.value,
213
- "table-headers": e(X),
214
- onClearSearchInput: te,
215
- onSort: ae,
216
- onState: e(G)
217
- }, ue({
218
- "toolbar-filter": r(() => [
219
- l(e(Te), {
220
- modelValue: b.value,
221
- "onUpdate:modelValue": g[0] || (g[0] = (d) => b.value = d),
222
- config: N.value
223
- }, null, 8, ["modelValue", "config"]),
224
- a.useToolbarCreationButton ? (y(), _(e(L), {
225
- key: 0,
226
- "auth-function": a.canCreate
227
- }, {
228
- default: r(() => [
229
- l(h, {
230
- appearance: "primary",
231
- "data-testid": "toolbar-add-sni",
232
- size: "large",
233
- to: a.config.createRoute
234
- }, {
235
- default: r(() => [
236
- l(e(le)),
237
- S(" " + m(e(s)("actions.create")), 1)
238
- ]),
239
- _: 1
240
- }, 8, ["to"])
241
- ]),
242
- _: 1
243
- }, 8, ["auth-function"])) : q("", !0)
244
- ]),
245
- "toolbar-button": r(() => [
246
- (y(), _(Ie, {
247
- disabled: !a.useActionOutside,
248
- to: "#kong-ui-app-page-header-action-button"
249
- }, [
250
- H("div", Ye, [
251
- I.value ? (y(), _(h, {
252
- key: 0,
253
- appearance: "secondary",
254
- class: "open-learning-hub",
255
- "data-testid": "snis-learn-more-button",
256
- icon: "",
257
- onClick: g[1] || (g[1] = (d) => t.$emit("click:learn-more"))
258
- }, {
259
- default: r(() => [
260
- l(e(me), { decorative: "" })
261
- ]),
262
- _: 1
263
- })) : q("", !0),
264
- a.useToolbarCreationButton ? q("", !0) : (y(), _(e(L), {
265
- key: 1,
266
- "auth-function": a.canCreate
267
- }, {
268
- default: r(() => [
269
- l(h, {
270
- appearance: "primary",
271
- "data-testid": "toolbar-add-sni",
272
- size: a.useActionOutside ? "medium" : "large",
273
- to: a.config.createRoute
274
- }, {
275
- default: r(() => [
276
- l(e(le)),
277
- S(" " + m(e(s)("snis.list.toolbar_actions.new")), 1)
278
- ]),
279
- _: 1
280
- }, 8, ["size", "to"])
281
- ]),
282
- _: 1
283
- }, 8, ["auth-function"]))
284
- ])
285
- ], 8, ["disabled"]))
286
- ]),
287
- name: r(({ rowValue: d }) => [
288
- H("b", null, m(d ?? "-"), 1)
289
- ]),
290
- certificate: r(({ row: d }) => [
291
- d.certificate && d.certificate.id ? (y(), _(_e, {
292
- key: 0,
293
- class: "copy-certificate-uuid",
294
- "data-testid": "copy-certificate-uuid",
295
- text: d.certificate.id,
296
- truncate: ""
297
- }, null, 8, ["text"])) : (y(), z("span", Ze, "-"))
298
- ]),
299
- tags: r(({ rowValue: d }) => [
300
- l(e(Re), { tags: d }, null, 8, ["tags"])
301
- ]),
302
- managed_by: r(({ rowValue: d }) => [
303
- S(m(e(De)(d) ?? "-"), 1)
304
- ]),
305
- actions: r(({ row: d }) => [
306
- l(de, null, {
307
- default: r(({ copyToClipboard: A }) => [
308
- l(U, {
309
- "data-testid": "action-entity-copy-id",
310
- onClick: (Ce) => ie(d, A)
311
- }, {
312
- default: r(() => [
313
- S(m(e(s)("actions.copy_id")), 1)
314
- ]),
315
- _: 1
316
- }, 8, ["onClick"])
317
- ]),
318
- _: 2
319
- }, 1024),
320
- l(de, null, {
321
- default: r(({ copyToClipboard: A }) => [
322
- l(U, {
323
- "data-testid": "action-entity-copy-json",
324
- onClick: (Ce) => ne(d, A)
325
- }, {
326
- default: r(() => [
327
- S(m(e(s)("actions.copy_json")), 1)
328
- ]),
329
- _: 1
330
- }, 8, ["onClick"])
331
- ]),
332
- _: 2
333
- }, 1024),
334
- l(e(L), {
335
- "auth-function": () => a.canEdit(d)
336
- }, {
337
- default: r(() => [
338
- l(U, {
339
- "data-testid": "action-entity-edit",
340
- item: oe(d.id)
341
- }, null, 8, ["item"])
342
- ]),
343
- _: 2
344
- }, 1032, ["auth-function"]),
345
- l(e(L), {
346
- "auth-function": () => a.canDelete(d)
347
- }, {
348
- default: r(() => [
349
- l(U, {
350
- danger: "",
351
- "data-testid": "action-entity-delete",
352
- "has-divider": "",
353
- onClick: (A) => se(d)
354
- }, {
355
- default: r(() => [
356
- S(m(e(s)("actions.delete")), 1)
357
- ]),
358
- _: 1
359
- }, 8, ["onClick"])
360
- ]),
361
- _: 2
362
- }, 1032, ["auth-function"])
363
- ]),
364
- _: 2
365
- }, [
366
- !b.value && a.config.app === "konnect" ? {
367
- name: "empty-state",
368
- fn: r(() => [
369
- l(Se, {
370
- "data-testid": "snis-entity-empty-state",
371
- "icon-background": "",
372
- message: e(s)("snis.list.empty_state_v2.description"),
373
- title: e(s)("snis.list.empty_state_v2.title")
374
- }, ue({
375
- icon: r(() => [
376
- l(e(Ae), { decorative: "" })
377
- ]),
378
- action: r(() => [
379
- V.value ? (y(), _(h, {
380
- key: 0,
381
- "data-testid": "entity-create-button",
382
- onClick: K
383
- }, {
384
- default: r(() => [
385
- l(e(le), { decorative: "" }),
386
- S(" " + m(e(s)("snis.list.toolbar_actions.new")), 1)
387
- ]),
388
- _: 1
389
- })) : q("", !0),
390
- l(h, {
391
- appearance: "secondary",
392
- "data-testid": "entity-learn-more-button",
393
- onClick: g[2] || (g[2] = (d) => t.$emit("click:learn-more"))
394
- }, {
395
- default: r(() => [
396
- l(e(me), { decorative: "" }),
397
- S(" " + m(e(s)("snis.list.empty_state_v2.learn_more")), 1)
398
- ]),
399
- _: 1
400
- })
401
- ]),
402
- _: 2
403
- }, [
404
- a.config?.isControlPlaneGroup ? {
405
- name: "default",
406
- fn: r(() => [
407
- S(m(e(s)("snis.list.empty_state_v2.group")), 1)
408
- ]),
409
- key: "0"
410
- } : void 0
411
- ]), 1032, ["message", "title"])
412
- ]),
413
- key: "0"
414
- } : void 0
415
- ]), 1032, ["cache-identifier", "default-table-preferences", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
416
- l(e(Ke), {
417
- "action-pending": M.value,
418
- description: e(s)("delete.description"),
419
- "entity-name": v.value && (v.value.name || v.value.id),
420
- "entity-type": e(Ve).SNI,
421
- error: $.value,
422
- "need-confirm": !1,
423
- title: e(s)("delete.title"),
424
- visible: T.value,
425
- onCancel: n,
426
- onProceed: u
427
- }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
428
- ]);
429
- };
430
- }
431
- }), ke = (a, x) => {
432
- const p = a.__vccOpts || a;
433
- for (const [i, s] of x)
434
- p[i] = s;
435
- return p;
436
- }, dt = /* @__PURE__ */ ke(et, [["__scopeId", "data-v-8eedbc0b"]]), tt = { class: "kong-ui-entities-snis-form" }, at = { "data-testid": "no-search-results" }, it = {
437
- key: 2,
438
- class: "invalid-certificate-message",
439
- "data-testid": "invalid-certificate-message"
440
- }, nt = /* @__PURE__ */ ge({
441
- __name: "SniForm",
442
- props: {
443
- /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
444
- config: {
445
- type: Object,
446
- required: !0,
447
- validator: (a) => !(!a || !["konnect", "kongManager"].includes(a?.app) || a.app === "konnect" && !a.controlPlaneId || a.app === "kongManager" && typeof a.workspace != "string" || !a.cancelRoute)
448
- },
449
- /** If a valid SNI ID is provided, it will put the form in Edit mode instead of Create */
450
- sniId: {
451
- type: String,
452
- required: !1,
453
- default: null
454
- }
455
- },
456
- emits: ["update", "error", "loading"],
457
- setup(a, { emit: x }) {
458
- const p = x, i = a, s = ve(), { i18n: { t: c } } = be.useI18n(), { getMessageFromError: W } = qe(), { axiosInstance: F } = he(i.config?.axiosRequestConfig), G = f(() => Q.form[i.config.app].edit), I = f(() => i.sniId ? re.Edit : re.Create), E = f(() => i.config.certificateId && I.value === re.Create ? i.config.certificateId : ""), o = fe({
459
- fields: {
460
- name: "",
461
- tags: "",
462
- certificate_id: ""
463
- },
464
- isReadonly: !1,
465
- errorMessage: ""
466
- }), B = fe({
467
- name: "",
468
- tags: "",
469
- certificate_id: ""
470
- }), X = f(() => JSON.stringify(o.fields) !== JSON.stringify(B) && !!o.fields.name && !!(o.fields.certificate_id || E.value)), Y = (n) => {
471
- o.fields.name = n?.name || "", o.fields.tags = n?.tags?.join(", ") || "", o.fields.certificate_id = n?.certificate?.id || "", Object.assign(B, o.fields);
472
- }, P = () => {
473
- s.push(i.config.cancelRoute);
474
- }, b = f(() => {
475
- let n = `${i.config.apiBaseUrl}${Q.form[i.config.app][I.value]}`;
476
- return i.config.app === "konnect" && (n = n.replace(/{controlPlaneId}/gi, i.config?.controlPlaneId || "")), n.replace(/\/{workspace}/gi, i.config?.workspace ? `/${i.config.workspace}` : "").replace(/{id}/gi, i.sniId ?? "");
477
- }), N = f(() => ({
478
- name: o.fields.name,
479
- tags: o.fields.tags.split(",")?.map((n) => String(n || "").trim())?.filter((n) => n !== ""),
480
- certificate: { id: E.value || o.fields.certificate_id }
481
- })), Z = async () => {
482
- try {
483
- o.isReadonly = !0;
484
- let n;
485
- I.value === "create" ? n = await F.post(b.value, N.value) : I.value === "edit" && (n = i.config?.app === "konnect" ? await F.put(b.value, N.value) : await F.patch(b.value, N.value)), o.fields.name = n?.data?.name || "", o.fields.tags = n?.data?.tags?.join(", ") || "", o.fields.certificate_id = n?.data?.certificate?.id || "", Object.assign(B, o.fields), p("update", n?.data);
486
- } catch (n) {
487
- o.errorMessage = W(n), p("error", n);
488
- } finally {
489
- o.isReadonly = !1;
490
- }
491
- }, {
492
- debouncedQueryChange: ee,
493
- loading: D,
494
- allRecords: te,
495
- error: ae,
496
- validationError: w,
497
- loadItems: R,
498
- results: ie
499
- } = Pe(i.config, Q.form[i.config.app].certificates), ne = (n) => {
500
- ee(n);
501
- }, oe = f(() => ae.value ? c("errors.certificates.fetch") : ""), v = f(() => w.value ? c("errors.certificates.invalid") : ""), T = k(0), M = f(() => te.value === void 0), $ = k(/* @__PURE__ */ new Set()), O = f(() => Array.from($.value).map((u) => ({
502
- label: u,
503
- value: u,
504
- selected: o.fields.certificate_id === u
505
- }))), se = (n) => {
506
- $.value.clear();
507
- let u;
508
- for (u of n)
509
- $.value.add(u.id);
510
- };
511
- return ce(ie, (n) => {
512
- se(n);
513
- }, { immediate: !0, deep: !0 }), ce(O, () => {
514
- T.value++;
515
- }, { immediate: !0, deep: !0 }), ye(async () => {
516
- await R();
517
- }), (n, u) => {
518
- const K = C("KInput"), V = C("KSelect");
519
- return y(), z("div", tt, [
520
- l(e(Oe), {
521
- "can-submit": X.value,
522
- config: a.config,
523
- "edit-id": a.sniId,
524
- "entity-type": e(Ue).SNI,
525
- "error-message": o.errorMessage || oe.value,
526
- "fetch-url": G.value,
527
- "form-fields": N.value,
528
- "is-readonly": o.isReadonly,
529
- onCancel: P,
530
- "onFetch:error": u[3] || (u[3] = (t) => n.$emit("error", t)),
531
- "onFetch:success": Y,
532
- onLoading: u[4] || (u[4] = (t) => n.$emit("loading", t)),
533
- onSubmit: Z
534
- }, {
535
- default: r(() => [
536
- l(e(pe), {
537
- description: e(c)("form.sections.general.description"),
538
- title: e(c)("form.sections.general.title")
539
- }, {
540
- default: r(() => [
541
- l(K, {
542
- modelValue: o.fields.name,
543
- "onUpdate:modelValue": u[0] || (u[0] = (t) => o.fields.name = t),
544
- modelModifiers: { trim: !0 },
545
- autocomplete: "off",
546
- "data-testid": "sni-form-name",
547
- label: e(c)("form.fields.name.label"),
548
- placeholder: e(c)("form.fields.name.placeholder"),
549
- readonly: o.isReadonly,
550
- required: "",
551
- type: "text"
552
- }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
553
- l(K, {
554
- modelValue: o.fields.tags,
555
- "onUpdate:modelValue": u[1] || (u[1] = (t) => o.fields.tags = t),
556
- modelModifiers: { trim: !0 },
557
- autocomplete: "off",
558
- "data-testid": "sni-form-tags",
559
- help: e(c)("form.fields.tags.help"),
560
- label: e(c)("form.fields.tags.label"),
561
- "label-attributes": {
562
- info: e(c)("form.fields.tags.tooltip"),
563
- tooltipAttributes: { maxWidth: "400" }
564
- },
565
- placeholder: e(c)("form.fields.tags.placeholder"),
566
- readonly: o.isReadonly,
567
- type: "text"
568
- }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
569
- ]),
570
- _: 1
571
- }, 8, ["description", "title"]),
572
- l(e(pe), {
573
- description: e(c)("form.sections.certificate.description"),
574
- "has-divider": "",
575
- title: e(c)("form.sections.certificate.title")
576
- }, {
577
- default: r(() => [
578
- E.value ? (y(), _(K, {
579
- key: 0,
580
- "data-testid": "sni-form-certificate-id",
581
- label: e(c)("form.fields.certificate_id.label"),
582
- "model-value": E.value,
583
- readonly: "",
584
- required: "",
585
- width: "100%"
586
- }, null, 8, ["label", "model-value"])) : (y(), _(V, {
587
- key: 1,
588
- modelValue: o.fields.certificate_id,
589
- "onUpdate:modelValue": u[2] || (u[2] = (t) => o.fields.certificate_id = t),
590
- clearable: "",
591
- "data-testid": "sni-form-certificate-id",
592
- "dropdown-footer-text": M.value ? e(c)("form.fields.certificate_id.footer") : void 0,
593
- "enable-filtering": "",
594
- "filter-function": () => !0,
595
- items: O.value,
596
- label: e(c)("form.fields.certificate_id.label"),
597
- loading: e(D),
598
- placeholder: e(c)("form.fields.certificate_id.placeholder"),
599
- readonly: o.isReadonly,
600
- required: "",
601
- width: "100%",
602
- onQueryChange: ne
603
- }, {
604
- loading: r(() => [
605
- H("div", null, m(e(c)("actions.loading")), 1)
606
- ]),
607
- empty: r(() => [
608
- H("div", at, m(e(c)("search.no_results")), 1)
609
- ]),
610
- _: 1
611
- }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
612
- v.value ? (y(), z("p", it, m(v.value), 1)) : q("", !0)
613
- ]),
614
- _: 1
615
- }, 8, ["description", "title"])
616
- ]),
617
- _: 1
618
- }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
619
- ]);
620
- };
621
- }
622
- }), ut = /* @__PURE__ */ ke(nt, [["__scopeId", "data-v-25387b59"]]);
623
- export {
624
- ut as SniForm,
625
- dt as SniList
626
- };
@@ -1 +0,0 @@
1
- (function(p,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):(p=typeof globalThis<"u"?globalThis:p||self,e(p["kong-ui-public-entities-snis"]={},p.Vue,p.VueRouter,p["kong-ui-public-i18n"],p["kong-ui-public-entities-shared"],p.KongIcons))})(this,(function(p,e,Y,Z,s,h){"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.",group:"SNIs created in gateways within this group will automatically appear here.",create_cta:"New SNI",learn_more:"Learn more"}}},form:{sections:{general:{title:"General information",description:"Name this SNI with the hostname it should match and add tags to group and filter it."},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 ie(){const a=Z.createI18n("en-us",ae);return{i18n:a,i18nT:Z.i18nTComponent(a)}}const v={useI18n:ie},M="/v2/control-planes/{controlPlaneId}/core-entities/{workspace}",F="/{workspace}",$={list:{konnect:{all:`${M}/snis`},kongManager:{all:`${F}/snis`}},form:{konnect:{create:`${M}/snis`,edit:`${M}/snis/{id}`,certificates:`${M}/certificates`},kongManager:{create:`${F}/snis`,edit:`${F}/snis/{id}`,certificates:`${F}/certificates`}}},oe={class:"kong-ui-entities-snis-list"},ne={class:"button-row"},re={key:1},se=e.defineComponent({__name:"SniList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(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},useToolbarCreationButton:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(a,{emit:I}){const f=I,i=a,{i18n:{t:r}}=v.useI18n(),c=Y.useRouter(),{axiosInstance:O}=s.useAxios(i.config?.axiosRequestConfig),{hasRecords:w,handleStateChange:A}=s.useTableState(()=>y.value),b=e.computed(()=>w.value&&i.config.app==="konnect"),C=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),n={name:{label:r("snis.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},certificate:{label:r("snis.list.table_headers.certificate_id"),sortable:!1},tags:{label:r("snis.list.table_headers.tags"),sortable:!1}},{defaultTablePreferences:V,tableHeaders:U}=s.useManagedByColumn(n),j=t=>({style:{maxWidth:t.headerKey==="name"?"250px":t.headerKey==="certificate"?"350px":null}}),R=e.computed(()=>{let t=`${i.config.apiBaseUrl}${$.list[i.config.app].all}`;return i.config.app==="konnect"&&(t=t.replace(/{controlPlaneId}/gi,i.config?.controlPlaneId||"")),t.replace(/\/{workspace}/gi,i.config?.workspace?`/${i.config.workspace}`:"")}),y=e.ref(""),k=e.computed(()=>{const t=i.config.app==="konnect"||i.config.isExactMatch;if(t)return{isExactMatch:t,placeholder:r("search.placeholder")};const{name:m}=n;return{isExactMatch:t,fields:{name:m},schema:i.config.filterSchema}}),{fetcher:L,fetcherState:W,fetcherCacheKey:S}=s.useFetcher(e.computed(()=>({...i.config,cacheIdentifier:i.cacheIdentifier})),R),J=()=>{y.value=""},Q=()=>{S.value++},N=e.ref(null),B=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${r("snis.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:r("snis.title")}),z=async(t,m)=>{const g=t.id;if(!await m(g)){f("copy:error",{entity:t,field:"id",message:r("errors.copy")});return}f("copy:success",{entity:t,field:"id",message:r("copy.success",{val:g})})},H=async(t,m)=>{const g=JSON.stringify(t);if(!await m(g)){f("copy:error",{entity:t,message:r("errors.copy")});return}f("copy:success",{entity:t,message:r("copy.success_brief")})},G=t=>({label:r("actions.edit"),to:i.config.getEditRoute(t)}),u=e.ref(void 0),E=e.ref(!1),_=e.ref(!1),x=e.ref(""),q=s.useDeleteUrlBuilder(i.config,R.value),X=t=>{u.value=t,E.value=!0},o=()=>{E.value=!1,u.value=void 0},d=async()=>{if(u.value?.id){_.value=!0;try{await O.delete(q(u.value.id)),f("delete:success",u.value),_.value=!1,o(),S.value++}catch(t){x.value=t.response?.data?.message||t.message||r("errors.delete"),f("error",t)}finally{_.value=!1}}},D=()=>{c.push(i.config.createRoute)};e.watch(W,t=>{if(t.status===s.FetcherStatus.Error){N.value={title:r("errors.general")},t.error?.response?.data?.message&&(N.value.message=t.error.response.data.message),f("error",t.error);return}N.value=null});const T=e.ref(!1);return e.onBeforeMount(async()=>{T.value=await i.canCreate(),T.value&&(B.value.title=r("snis.list.empty_state.title"),B.value.ctaText=r("actions.create"))}),(t,m)=>{const g=e.resolveComponent("KButton"),me=e.resolveComponent("KEmptyState"),ue=e.resolveComponent("KCopy"),K=e.resolveComponent("KDropdownItem"),te=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",oe,[e.createVNode(e.unref(s.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"cell-attributes":j,"default-table-preferences":e.unref(V),"disable-row-click":!0,"disable-sorting":C.value,"empty-state-options":B.value,"enable-entity-actions":"","error-message":N.value,fetcher:e.unref(L),"fetcher-cache-key":e.unref(S),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-snis-list",query:y.value,"table-headers":e.unref(U),onClearSearchInput:J,onSort:Q,onState:e.unref(A)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(s.EntityFilter),{modelValue:y.value,"onUpdate:modelValue":m[0]||(m[0]=l=>y.value=l),config:k.value},null,8,["modelValue","config"]),a.useToolbarCreationButton?(e.openBlock(),e.createBlock(e.unref(s.PermissionsWrapper),{key:0,"auth-function":a.canCreate},{default:e.withCtx(()=>[e.createVNode(g,{appearance:"primary","data-testid":"toolbar-add-sni",size:"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(h.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("actions.create")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])):e.createCommentVNode("",!0)]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",ne,[b.value?(e.openBlock(),e.createBlock(g,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"snis-learn-more-button",icon:"",onClick:m[1]||(m[1]=l=>t.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(h.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),a.useToolbarCreationButton?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(s.PermissionsWrapper),{key:1,"auth-function":a.canCreate},{default:e.withCtx(()=>[e.createVNode(g,{appearance:"primary","data-testid":"toolbar-add-sni",size:a.useActionOutside?"medium":"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(h.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("snis.list.toolbar_actions.new")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"]))])],8,["disabled"]))]),name:e.withCtx(({rowValue:l})=>[e.createElementVNode("b",null,e.toDisplayString(l??"-"),1)]),certificate:e.withCtx(({row:l})=>[l.certificate&&l.certificate.id?(e.openBlock(),e.createBlock(ue,{key:0,class:"copy-certificate-uuid","data-testid":"copy-certificate-uuid",text:l.certificate.id,truncate:""},null,8,["text"])):(e.openBlock(),e.createElementBlock("span",re,"-"))]),tags:e.withCtx(({rowValue:l})=>[e.createVNode(e.unref(s.TableTags),{tags:l},null,8,["tags"])]),managed_by:e.withCtx(({rowValue:l})=>[e.createTextVNode(e.toDisplayString(e.unref(s.getManagedByLabel)(l)??"-"),1)]),actions:e.withCtx(({row:l})=>[e.createVNode(te,null,{default:e.withCtx(({copyToClipboard:P})=>[e.createVNode(K,{"data-testid":"action-entity-copy-id",onClick:ge=>z(l,P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(te,null,{default:e.withCtx(({copyToClipboard:P})=>[e.createVNode(K,{"data-testid":"action-entity-copy-json",onClick:ge=>H(l,P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>a.canEdit(l)},{default:e.withCtx(()=>[e.createVNode(K,{"data-testid":"action-entity-edit",item:G(l.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(s.PermissionsWrapper),{"auth-function":()=>a.canDelete(l)},{default:e.withCtx(()=>[e.createVNode(K,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:P=>X(l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("actions.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!y.value&&a.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>[e.createVNode(me,{"data-testid":"snis-entity-empty-state","icon-background":"",message:e.unref(r)("snis.list.empty_state_v2.description"),title:e.unref(r)("snis.list.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(h.CloudIcon),{decorative:""})]),action:e.withCtx(()=>[T.value?(e.openBlock(),e.createBlock(g,{key:0,"data-testid":"entity-create-button",onClick:D},{default:e.withCtx(()=>[e.createVNode(e.unref(h.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("snis.list.toolbar_actions.new")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(g,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:m[2]||(m[2]=l=>t.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(h.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(r)("snis.list.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[a.config?.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("snis.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["message","title"])]),key:"0"}:void 0]),1032,["cache-identifier","default-table-preferences","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(s.EntityDeleteModal),{"action-pending":_.value,description:e.unref(r)("delete.description"),"entity-name":u.value&&(u.value.name||u.value.id),"entity-type":e.unref(s.EntityTypes).SNI,error:x.value,"need-confirm":!1,title:e.unref(r)("delete.title"),visible:E.value,onCancel:o,onProceed:d},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),ee=(a,I)=>{const f=a.__vccOpts||a;for(const[i,r]of I)f[i]=r;return f},ce=ee(se,[["__scopeId","data-v-8eedbc0b"]]),le={class:"kong-ui-entities-snis-form"},de={"data-testid":"no-search-results"},fe={key:2,class:"invalid-certificate-message","data-testid":"invalid-certificate-message"},pe=ee(e.defineComponent({__name:"SniForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a?.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.cancelRoute)},sniId:{type:String,required:!1,default:null}},emits:["update","error","loading"],setup(a,{emit:I}){const f=I,i=a,r=Y.useRouter(),{i18n:{t:c}}=v.useI18n(),{getMessageFromError:O}=s.useErrors(),{axiosInstance:w}=s.useAxios(i.config?.axiosRequestConfig),A=e.computed(()=>$.form[i.config.app].edit),b=e.computed(()=>i.sniId?s.EntityBaseFormType.Edit:s.EntityBaseFormType.Create),C=e.computed(()=>i.config.certificateId&&b.value===s.EntityBaseFormType.Create?i.config.certificateId:""),n=e.reactive({fields:{name:"",tags:"",certificate_id:""},isReadonly:!1,errorMessage:""}),V=e.reactive({name:"",tags:"",certificate_id:""}),U=e.computed(()=>JSON.stringify(n.fields)!==JSON.stringify(V)&&!!n.fields.name&&!!(n.fields.certificate_id||C.value)),j=o=>{n.fields.name=o?.name||"",n.fields.tags=o?.tags?.join(", ")||"",n.fields.certificate_id=o?.certificate?.id||"",Object.assign(V,n.fields)},R=()=>{r.push(i.config.cancelRoute)},y=e.computed(()=>{let o=`${i.config.apiBaseUrl}${$.form[i.config.app][b.value]}`;return i.config.app==="konnect"&&(o=o.replace(/{controlPlaneId}/gi,i.config?.controlPlaneId||"")),o.replace(/\/{workspace}/gi,i.config?.workspace?`/${i.config.workspace}`:"").replace(/{id}/gi,i.sniId??"")}),k=e.computed(()=>({name:n.fields.name,tags:n.fields.tags.split(",")?.map(o=>String(o||"").trim())?.filter(o=>o!==""),certificate:{id:C.value||n.fields.certificate_id}})),L=async()=>{try{n.isReadonly=!0;let o;b.value==="create"?o=await w.post(y.value,k.value):b.value==="edit"&&(o=i.config?.app==="konnect"?await w.put(y.value,k.value):await w.patch(y.value,k.value)),n.fields.name=o?.data?.name||"",n.fields.tags=o?.data?.tags?.join(", ")||"",n.fields.certificate_id=o?.data?.certificate?.id||"",Object.assign(V,n.fields),f("update",o?.data)}catch(o){n.errorMessage=O(o),f("error",o)}finally{n.isReadonly=!1}},{debouncedQueryChange:W,loading:S,allRecords:J,error:Q,validationError:N,loadItems:B,results:z}=s.useDebouncedFilter(i.config,$.form[i.config.app].certificates),H=o=>{W(o)},G=e.computed(()=>Q.value?c("errors.certificates.fetch"):""),u=e.computed(()=>N.value?c("errors.certificates.invalid"):""),E=e.ref(0),_=e.computed(()=>J.value===void 0),x=e.ref(new Set),q=e.computed(()=>Array.from(x.value).map(d=>({label:d,value:d,selected:n.fields.certificate_id===d}))),X=o=>{x.value.clear();let d;for(d of o)x.value.add(d.id)};return e.watch(z,o=>{X(o)},{immediate:!0,deep:!0}),e.watch(q,()=>{E.value++},{immediate:!0,deep:!0}),e.onBeforeMount(async()=>{await B()}),(o,d)=>{const D=e.resolveComponent("KInput"),T=e.resolveComponent("KSelect");return e.openBlock(),e.createElementBlock("div",le,[e.createVNode(e.unref(s.EntityBaseForm),{"can-submit":U.value,config:a.config,"edit-id":a.sniId,"entity-type":e.unref(s.SupportedEntityType).SNI,"error-message":n.errorMessage||G.value,"fetch-url":A.value,"form-fields":k.value,"is-readonly":n.isReadonly,onCancel:R,"onFetch:error":d[3]||(d[3]=t=>o.$emit("error",t)),"onFetch:success":j,onLoading:d[4]||(d[4]=t=>o.$emit("loading",t)),onSubmit:L},{default:e.withCtx(()=>[e.createVNode(e.unref(s.EntityFormSection),{description:e.unref(c)("form.sections.general.description"),title:e.unref(c)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(D,{modelValue:n.fields.name,"onUpdate:modelValue":d[0]||(d[0]=t=>n.fields.name=t),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"sni-form-name",label:e.unref(c)("form.fields.name.label"),placeholder:e.unref(c)("form.fields.name.placeholder"),readonly:n.isReadonly,required:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(D,{modelValue:n.fields.tags,"onUpdate:modelValue":d[1]||(d[1]=t=>n.fields.tags=t),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"sni-form-tags",help:e.unref(c)("form.fields.tags.help"),label:e.unref(c)("form.fields.tags.label"),"label-attributes":{info:e.unref(c)("form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(c)("form.fields.tags.placeholder"),readonly:n.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"]),e.createVNode(e.unref(s.EntityFormSection),{description:e.unref(c)("form.sections.certificate.description"),"has-divider":"",title:e.unref(c)("form.sections.certificate.title")},{default:e.withCtx(()=>[C.value?(e.openBlock(),e.createBlock(D,{key:0,"data-testid":"sni-form-certificate-id",label:e.unref(c)("form.fields.certificate_id.label"),"model-value":C.value,readonly:"",required:"",width:"100%"},null,8,["label","model-value"])):(e.openBlock(),e.createBlock(T,{key:1,modelValue:n.fields.certificate_id,"onUpdate:modelValue":d[2]||(d[2]=t=>n.fields.certificate_id=t),clearable:"","data-testid":"sni-form-certificate-id","dropdown-footer-text":_.value?e.unref(c)("form.fields.certificate_id.footer"):void 0,"enable-filtering":"","filter-function":()=>!0,items:q.value,label:e.unref(c)("form.fields.certificate_id.label"),loading:e.unref(S),placeholder:e.unref(c)("form.fields.certificate_id.placeholder"),readonly:n.isReadonly,required:"",width:"100%",onQueryChange:H},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(c)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",de,e.toDisplayString(e.unref(c)("search.no_results")),1)]),_:1},8,["modelValue","dropdown-footer-text","items","label","loading","placeholder","readonly"])),u.value?(e.openBlock(),e.createElementBlock("p",fe,e.toDisplayString(u.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-25387b59"]]);p.SniForm=pe,p.SniList=ce,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- .deck-command-editor-wrapper[data-v-2da602e1]{isolation:isolate;position:relative}.deck-command-editor-wrapper .deck-command-editor[data-v-2da602e1]{height:300px;margin-top:12px;margin-top:var(--kui-space-50, 12px);width:100%}.deck-command-editor-wrapper .deck-command-copy-button[data-v-2da602e1]{opacity:0;position:absolute;right:10px;top:10px;transition:opacity linear .2s;transition:opacity linear var(--kui-animation-duration-20, .2s);z-index:10000}.deck-command-editor-wrapper:hover .deck-command-copy-button[data-v-2da602e1]{opacity:1}.editor-skeleton[data-v-ec59bbd1]{margin-top:4px;margin-top:var(--kui-space-20, 4px)}.config-card-fieldset[data-v-32504351]{border:solid 1px #e0e4ea;border:solid var(--kui-border-width-10, 1px) var(--kui-color-border, #e0e4ea);border-radius:4px;margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:4px}.config-card-fieldset-title[data-v-32504351]{font-size:14px;font-size:var(--kui-font-size-30, 14px);padding:0 8px;padding:0 var(--kui-space-40, 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;margin:var(--kui-space-0, 0px) var(--kui-space-60, 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-6996418f] .k-button.navigation-button{font-size:14px;font-weight:400}.navigation-link[data-v-6996418f]{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);font-size:14px;font-weight:400;text-decoration:underline}.navigation-subtitle[data-v-6996418f]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-weight:400}.config-card-details-row[data-v-2270c941]{align-items:center;border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);box-sizing:border-box;display:flex;padding:16px;padding:var(--kui-space-60, 16px);padding-left:0;width:100%}.config-card-details-row.json-array-item[data-v-2270c941]{border-bottom:none}.config-card-details-row.json-item[data-v-2270c941]{display:block}.config-card-details-row .config-card-details-label[data-v-2270c941]{box-sizing:border-box;padding-right:16px;padding-right:var(--kui-space-60, 16px);width:25%}.config-card-details-row .config-card-details-label.json-item-label[data-v-2270c941]{width:100%}.config-card-details-row .config-card-details-label.slim-label[data-v-2270c941]{width:50%}.config-card-details-row .config-card-details-label label[data-v-2270c941]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-2270c941]{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-2270c941]{min-width:0}.config-card-details-row .config-card-details-value[data-v-2270c941]{box-sizing:border-box;width:75%}.config-card-details-row .config-card-details-value.json-item-value[data-v-2270c941]{width:100%}.config-card-details-row .config-card-details-value.slim-value[data-v-2270c941]{width:50%}.config-card-details-row .config-card-details-value .truncated[data-v-2270c941]{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-2270c941]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-2270c941] .k-copy:not(:last-of-type){margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.config-card-details-row .config-card-details-value .method-badge-array[data-v-2270c941]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-2270c941]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-2270c941] .k-label{margin-bottom:0}.config-card-details-row[data-v-2270c941] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-2270c941] .config-card-details-row{width:auto}.json-endpoint-method[data-v-8736ff0c]{flex-shrink:0}.json-endpoint-url[data-v-8736ff0c]{direction:rtl;font-family:JetBrains Mono,Consolas,monospace;font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kui-font-family-code, "JetBrains Mono", Consolas, monospace);font-size:12px;font-size:var(--kui-font-size-20, 12px);margin-right:auto;max-width:var(--v6e8a5e62);min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.deck-callout[data-v-0bf1334c]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-callout .cta[data-v-0bf1334c]{background:none;border:none;color:inherit;cursor:pointer;font:inherit;font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);padding:0;text-decoration:underline}.generate-pat-modal[data-v-be3cd315] .modal-content{display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px)}.deck-config .k-select[data-v-81758ed8]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-config .k-code-block[data-v-81758ed8]{margin-top:12px;margin-top:var(--kui-space-50, 12px)}.deck-config .k-code-block.customization[data-v-81758ed8]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #e0e4ea;border:1px solid var(--kui-color-border, #e0e4ea);border-radius:8px;border-radius:var(--kui-border-radius-40, 8px)}.deck-config .step-title[data-v-81758ed8]{align-items:center;align-self:stretch;font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:16px}.deck-config .step-title[data-v-81758ed8]:not(:first-child){margin-top:16px;margin-top:var(--kui-space-60, 16px)}.deck-config .konnect-pat-actions[data-v-81758ed8]{align-items:center;display:flex;flex-direction:row;gap:8px;gap:var(--kui-space-40, 8px);margin-top:8px;margin-top:var(--kui-space-40, 8px)}.deck-config .copy-konnect-pat-alert[data-v-81758ed8]{margin-top:8px;margin-top:var(--kui-space-40, 8px)}.deck-config .customization-secret-advise[data-v-81758ed8]{font-size:14px;font-size:var(--kui-font-size-30, 14px);opacity:.7}.deck-config .customization-footer-reminder[data-v-81758ed8]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.config-card-prop-section-title[data-v-9746ddf5]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card .config-card-actions[data-v-d5d4b6f6]{align-items:center;display:flex;gap:16px;gap:var(--kui-space-60, 16px)}.kong-ui-entity-base-config-card .config-card-actions .row[data-v-d5d4b6f6]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-d5d4b6f6]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.kong-ui-entity-base-config-card .config-card-actions .sensitive-fields-checkbox[data-v-d5d4b6f6]{align-items:center}.kong-ui-entity-base-config-card .config-card-actions .sensitive-fields-checkbox[data-v-d5d4b6f6] .checkbox-label{width:max-content}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-d5d4b6f6]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card[data-v-d5d4b6f6] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-d5d4b6f6]{margin-left:8px;margin-left:var(--kui-space-40, 8px);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-onboarding-card[data-v-10c7d0b0]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb)}.kong-ui-onboarding-card .onboarding-card-subtitle[data-v-10c7d0b0]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);margin-top:4px;margin-top:var(--kui-space-20, 4px)}.kong-ui-onboarding-card .onboarding-items-grid[data-v-10c7d0b0]{display:grid;gap:16px;gap:var(--kui-space-60, 16px);grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}.kong-ui-onboarding-card .onboarding-item-wrapper[data-v-10c7d0b0]{background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;padding:0;padding:var(--kui-space-0, 0px);text-align:left;text-decoration:none}.kong-ui-onboarding-card .onboarding-item-wrapper.is-static[data-v-10c7d0b0]{cursor:default}.kong-ui-onboarding-card .onboarding-item-wrapper:not(.is-static):hover .onboarding-item[data-v-10c7d0b0]{border-color:#0044f4;border-color:var(--kui-color-border-primary, #0044f4)}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0]{flex:1}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0] .card-content{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item[data-v-10c7d0b0]:not(.vertical-item) .card-content{flex-direction:row}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item.vertical-item[data-v-10c7d0b0] .card-content{align-items:center;flex-direction:column;justify-content:center;text-align:center}.kong-ui-onboarding-card .onboarding-item-wrapper .onboarding-item.vertical-item[data-v-10c7d0b0] .card-content .onboarding-item-content{flex:none}.kong-ui-onboarding-card .onboarding-item-icon-box[data-v-10c7d0b0]{align-items:center;border:1px solid transparent;border:var(--kui-border-width-10, 1px) solid transparent;border-radius:8px;border-radius:var(--kui-border-radius-40, 8px);display:flex;flex-shrink:0;height:56px;justify-content:center;width:56px}.kong-ui-onboarding-card .onboarding-item-content[data-v-10c7d0b0]{flex:1;min-width:0}.kong-ui-onboarding-card .onboarding-item-title[data-v-10c7d0b0]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-onboarding-card .onboarding-item-description[data-v-10c7d0b0]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);line-height:16px;line-height:var(--kui-line-height-20, 16px);margin-top:4px;margin-top:var(--kui-space-20, 4px);overflow-wrap:break-word}.kong-ui-onboarding-card .onboarding-item-append-icon[data-v-10c7d0b0]{flex-shrink:0}.kong-ui-entity-base-form[data-v-b3590221]{box-sizing:border-box;max-width:1536px;max-width:var(--kui-breakpoint-desktop, 1536px);width:100%}.kong-ui-entity-base-form[data-v-b3590221] .k-slideout-title{color:#0d0e14!important;color:var(--kui-color-text, #0d0e14)!important;font-size:24px!important;font-size:var(--kui-font-size-70, 24px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:32px!important;line-height:var(--kui-line-height-60, 32px)!important;margin-bottom:16px!important;margin-bottom:var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-b3590221] .k-card.content-card{padding:0 16px!important;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-b3590221] .tab-item>div.tab-link.has-panels{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:14px!important;font-size:var(--kui-font-size-30, 14px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:24px!important;line-height:var(--kui-line-height-40, 24px)!important}.kong-ui-entity-base-form[data-v-b3590221] .tab-item.active>div.tab-link.has-panels{color:#0d0e14!important;color:var(--kui-color-text, #0d0e14)!important;font-weight:600!important;font-weight:var(--kui-font-weight-semibold, 600)!important}.kong-ui-entity-base-form[data-v-b3590221] .slideout-content{overflow-y:unset!important}.kong-ui-entity-base-form.new-form-layout[data-v-b3590221]{background-color:#0000;background-color:var(--kui-color-background-transparent, rgba(0, 0, 0, 0));border:none;padding:0}.kong-ui-entity-base-form.new-form-layout[data-v-b3590221]>.card-content>form>.form-actions{justify-content:flex-start;margin-top:20px;margin-top:var(--kui-space-70, 20px)}.kong-ui-entity-base-form.new-form-layout .form-error[data-v-b3590221]{margin:20px 0 0 16px;margin:var(--kui-space-70, 20px) 0 0 var(--kui-space-60, 16px)}.kong-ui-entity-base-form .button-customize-deck-wrapper[data-v-b3590221]{display:flex;flex-direction:row;justify-content:flex-end;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.form-actions[data-v-b3590221]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px;margin-top:var(--kui-space-80, 24px)}.form-actions[data-v-b3590221] .k-button:last-of-type,.form-actions[data-v-b3590221] .k-button:nth-last-of-type(2){margin-inline-start:16px;margin-inline-start:var(--kui-space-60, 16px)}.form-actions-reverted[data-v-b3590221]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-bcc0ec48]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-bcc0ec48]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-bcc0ec48]{display:none}.kong-ui-entity-delete-modal .message[data-v-61f55f42],.kong-ui-entity-delete-modal .description[data-v-61f55f42]{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .message strong[data-v-61f55f42]{font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-entity-delete-modal .description[data-v-61f55f42]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-modal .extra[data-v-61f55f42]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-entity-delete-modal .body-stacked-copy .description[data-v-61f55f42]{margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .description>p[data-v-61f55f42]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .message[data-v-61f55f42]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal[data-v-61f55f42] .prompt-confirmation-text{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal-stacked-copy[data-v-61f55f42] .prompt-content+.prompt-confirmation-container{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-error[data-v-61f55f42]{margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-entity-filter-input[data-v-26720193]{width:100%}.kong-ui-entity-filter-clear[data-v-26720193]{cursor:pointer}.kong-ui-entity-filter[data-v-26720193]{display:flex;position:relative}.kong-ui-entity-filter[data-v-26720193] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-26720193] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-26720193]{inset:0;position:fixed;z-index:1050}.kong-ui-entity-filter-menu[data-v-26720193]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 4px 20px #e0e4ea;box-shadow:0 4px 20px var(--kui-color-border, #e0e4ea);left:0;margin-top:16px;padding:8px 0 12px;padding:var(--kui-space-40, 8px) 0 var(--kui-space-50, 12px);position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-26720193]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:16px;line-height:var(--kui-line-height-20, 16px);list-style:none;margin:0 20px;margin:var(--kui-space-0, 0px) var(--kui-space-70, 20px);padding:16px 0;padding:var(--kui-space-60, 16px) 0;position:relative;white-space:nowrap}.menu-item-title[data-v-26720193]{align-items:center;cursor:pointer;display:flex;line-height:24px;line-height:var(--kui-line-height-40, 24px)}.menu-item-title.expanded[data-v-26720193]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633)}.menu-item-expand-icon[data-v-26720193]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-26720193]{transform:rotate(180deg)}.menu-item-indicator[data-v-26720193]{background-color:#0044f4;background-color:var(--kui-color-background-primary, #0044f4);border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-26720193]{align-items:center;display:flex;justify-content:space-between;margin-top:16px;margin-top:var(--kui-space-60, 16px)}.menu-item-body[data-v-26720193] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-26720193] .k-input{width:100%}.menu-item-body[data-v-26720193] .k-select-input .input{font-size:12px}.menu-item-body[data-v-26720193] .k-select-input .input::placeholder{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:12px}.menu-item-label[data-v-26720193]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-26720193]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-26720193]{padding:12px 20px 0;padding:var(--kui-space-50, 12px) var(--kui-space-70, 20px) 0}fieldset[data-v-ccd29028]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-ccd29028]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{column-gap:16px;column-gap:var(--kui-space-60, 16px);display:flex;flex-direction:column;padding-bottom:64px;padding-bottom:var(--kui-space-130, 64px);row-gap:12px;row-gap:var(--kui-space-50, 12px);width:100%}@media(min-width:1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{flex:1}@media(min-width:1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-ccd29028]{height:fit-content;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-ccd29028]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028] p{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:14px;font-size:var(--kui-font-size-30, 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-ccd29028]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]>*:not(:first-child){margin-top:24px;margin-top:var(--kui-space-80, 24px)}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-ccd29028]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-entity-form-block .header[data-v-7dd2f21d]{align-items:flex-start;display:flex;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-entity-form-block .step[data-v-7dd2f21d]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:1px solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;padding:var(--kui-space-20, 4px);width:32px}.kong-ui-entity-form-block .header-content[data-v-7dd2f21d]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);padding-top:4px;padding-top:var(--kui-space-20, 4px)}.kong-ui-entity-form-block .header-title[data-v-7dd2f21d]{color:#0d0e14;color:var(--kui-color-text, #0d0e14);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0}.kong-ui-entity-form-block .header-description[data-v-7dd2f21d]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0}.kong-ui-entity-form-block .header-extra[data-v-7dd2f21d]{align-items:center;display:flex;flex:0 0 auto;gap:8px;gap:var(--kui-space-40, 8px);justify-content:flex-end}.kong-ui-entity-form-block .content[data-v-7dd2f21d]{background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px);margin-top:20px;margin-top:var(--kui-space-70, 20px);padding:20px 24px;padding:var(--kui-space-70, 20px) var(--kui-space-80, 24px)}.kong-ui-entity-form-block.stepped .content[data-v-7dd2f21d]{margin-left:16px;margin-left:var(--kui-space-60, 16px)}.kong-ui-public-entity-link[data-v-28214aed]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-28214aed]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-28214aed]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-28214aed] .external-link-icon{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);margin-left:4px;margin-left:var(--kui-space-20, 4px);padding:2px;padding:var(--kui-space-10, 2px)}.kong-ui-public-entity-link .entity-link-label[data-v-28214aed]{display:inline-block;font-weight:400;font-weight:var(--kui-font-weight-regular, 400);max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-28214aed]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-28214aed]{margin-left:2px;margin-left:var(--kui-space-10, 2px)}.kong-ui-public-entity-empty-state[data-v-0b2e9081]{align-items:center;background-color:#fff;background-color:var(--kui-color-background, #ffffff);box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);gap:24px;gap:var(--kui-space-80, 24px);padding:64px 0;padding:var(--kui-space-130, 64px) var(--kui-space-0, 0px);width:100%}@media(min-width:640px){.kong-ui-public-entity-empty-state[data-v-0b2e9081]{padding:64px 96px;padding:var(--kui-space-130, 64px) var(--kui-space-150, 96px)}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-0b2e9081]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-0b2e9081]{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-0b2e9081]{align-items:center;color:#0d0e14;color:var(--kui-color-text, #0d0e14);display:flex;font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:8px;gap:var(--kui-space-40, 8px);line-height:32px;line-height:var(--kui-line-height-60, 32px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-0b2e9081]{font-size:18px;font-size:var(--kui-font-size-50, 18px)}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-0b2e9081]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-0b2e9081]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{display:flex;flex-wrap:wrap;gap:16px;gap:var(--kui-space-60, 16px);justify-content:space-around;margin-top:8px;margin-top:var(--kui-space-40, 8px);width:312px}@media(min-width:640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);gap:8px;gap:var(--kui-space-40, 8px);height:160px;padding:20px;padding:var(--kui-space-70, 20px);width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:flex;margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081] .kui-icon{height:20px!important;height:var(--kui-icon-size-40, 20px)!important;width:20px!important;width:var(--kui-icon-size-40, 20px)!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-title{font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-content{-webkit-box-orient:vertical;color:#6c7489;color:var(--kui-color-text-neutral, #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-0b2e9081]{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);padding-top:48px;padding-top:var(--kui-space-110, 48px);width:100%}@media(min-width:640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-sensitive-input[data-v-f64f729c]{display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-public-sensitive-input[data-v-f64f729c] .after-content-wrapper{align-items:center;gap:4px!important;gap:var(--kui-space-20, 4px)!important}.kong-ui-public-sensitive-input[data-v-f64f729c] .input{padding-right:var(--v673e9b78)!important}.kong-ui-public-sensitive-input .sensitive-input-action[data-v-f64f729c]{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);white-space:nowrap}.kong-ui-public-sensitive-input .sensitive-input-toggle[data-v-f64f729c]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);cursor:pointer}.kong-ui-public-sensitive-input .sensitive-input-error-message[data-v-f64f729c]{color:#d60027;color:var(--kui-color-text-danger, #d60027);font-size:12px;font-size:var(--kui-font-size-20, 12px);margin-top:-4px;margin-top:calc(-1 * var(--kui-space-20, 4px))}.kong-ui-public-sensitive-input .sensitive-input-textarea-actions[data-v-f64f729c]{display:flex;justify-content:flex-end}.kong-ui-public-sensitive-input .sensitive-input-hint[data-v-f64f729c]{align-items:center;background-color:#eefaff;background-color:var(--kui-color-background-info-weakest, #eefaff);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#0044f4;color:var(--kui-color-text-info, #0044f4);display:flex;gap:8px;gap:var(--kui-space-40, 8px);padding:8px 12px;padding:var(--kui-space-40, 8px) var(--kui-space-50, 12px)}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-hint-icon[data-v-f64f729c]{flex-shrink:0}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-hint-text[data-v-f64f729c]{flex:1;font-size:14px;font-size:var(--kui-font-size-30, 14px)}.kong-ui-public-sensitive-input .sensitive-input-hint .sensitive-input-copy[data-v-f64f729c]{display:inline-flex;font-size:12px;font-size:var(--kui-font-size-20, 12px);gap:4px;gap:var(--kui-space-20, 4px)}.button-row[data-v-8eedbc0b]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-entities-snis-list[data-v-8eedbc0b]{width:100%}.kong-ui-entities-snis-list .kong-ui-entity-filter-input[data-v-8eedbc0b]{margin-right:12px;margin-right:var(--kui-space-50, 12px)}.kong-ui-entities-snis-form[data-v-25387b59]{width:100%}.kong-ui-entities-snis-form .invalid-certificate-message[data-v-25387b59]{color:#d60027;color:var(--kui-color-text-danger, #d60027);font-size:11px;font-weight:500;margin-top:3px!important}
@@ -1,44 +0,0 @@
1
- import type { PropType } from 'vue';
2
- import type { AxiosError } from 'axios';
3
- import type { KonnectSniFormConfig, KongManagerSniFormConfig } from '../types';
4
- import '@kong-ui-public/entities-shared/dist/style.css';
5
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
- /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
7
- config: {
8
- type: PropType<KonnectSniFormConfig | KongManagerSniFormConfig>;
9
- required: true;
10
- validator: (config: KonnectSniFormConfig | KongManagerSniFormConfig) => boolean;
11
- };
12
- /** If a valid SNI ID is provided, it will put the form in Edit mode instead of Create */
13
- sniId: {
14
- type: PropType<string | null>;
15
- required: false;
16
- default: null;
17
- };
18
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
- error: (error: AxiosError<unknown, any, any>) => any;
20
- loading: (isLoading: boolean) => any;
21
- update: (data: Record<string, any>) => any;
22
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
- /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
24
- config: {
25
- type: PropType<KonnectSniFormConfig | KongManagerSniFormConfig>;
26
- required: true;
27
- validator: (config: KonnectSniFormConfig | KongManagerSniFormConfig) => boolean;
28
- };
29
- /** If a valid SNI ID is provided, it will put the form in Edit mode instead of Create */
30
- sniId: {
31
- type: PropType<string | null>;
32
- required: false;
33
- default: null;
34
- };
35
- }>> & Readonly<{
36
- onError?: ((error: AxiosError<unknown, any, any>) => any) | undefined;
37
- onLoading?: ((isLoading: boolean) => any) | undefined;
38
- onUpdate?: ((data: Record<string, any>) => any) | undefined;
39
- }>, {
40
- sniId: string | null;
41
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
42
- declare const _default: typeof __VLS_export;
43
- export default _default;
44
- //# sourceMappingURL=SniForm.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SniForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SniForm.vue"],"names":[],"mappings":"AAiVA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EAIzB,MAAM,UAAU,CAAA;AAYjB,OAAO,gDAAgD,CAAA;AA8evD,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;IAQ/E,yFAAyF;;cAEvE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;;;IAdzC,oHAAoH;;cAElG,QAAQ,CAAC,oBAAoB,GAAG,wBAAwB,CAAC;;4BAErD,oBAAoB,GAAG,wBAAwB,KAAG,OAAO;;IAQ/E,yFAAyF;;cAEvE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;;;;4EAKzC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,118 +0,0 @@
1
- import type { PropType } from 'vue';
2
- import type { AxiosError } from 'axios';
3
- import type { KongManagerSniListConfig, KonnectSniListConfig, EntityRow, CopyEventPayload } from '../types';
4
- import '@kong-ui-public/entities-shared/dist/style.css';
5
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
- /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
7
- config: {
8
- type: PropType<KonnectSniListConfig | KongManagerSniListConfig>;
9
- required: true;
10
- validator: (config: KonnectSniListConfig | KongManagerSniListConfig) => boolean;
11
- };
12
- cacheIdentifier: {
13
- type: StringConstructor;
14
- default: string;
15
- };
16
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
17
- canCreate: {
18
- type: PropType<() => boolean | Promise<boolean>>;
19
- required: false;
20
- default: () => Promise<boolean>;
21
- };
22
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
23
- canDelete: {
24
- type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
25
- required: false;
26
- default: () => Promise<boolean>;
27
- };
28
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
29
- canEdit: {
30
- type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
31
- required: false;
32
- default: () => Promise<boolean>;
33
- };
34
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
35
- canRetrieve: {
36
- type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
37
- required: false;
38
- default: () => Promise<boolean>;
39
- };
40
- /** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
41
- useActionOutside: {
42
- type: BooleanConstructor;
43
- default: boolean;
44
- };
45
- /** default to false, setting to true will place create button on top right of list*/
46
- useToolbarCreationButton: {
47
- type: BooleanConstructor;
48
- default: boolean;
49
- };
50
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
51
- error: (error: AxiosError<unknown, any, any>) => any;
52
- "click:learn-more": () => any;
53
- "copy:success": (payload: CopyEventPayload) => any;
54
- "copy:error": (payload: CopyEventPayload) => any;
55
- "delete:success": (sni: EntityRow) => any;
56
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
57
- /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
58
- config: {
59
- type: PropType<KonnectSniListConfig | KongManagerSniListConfig>;
60
- required: true;
61
- validator: (config: KonnectSniListConfig | KongManagerSniListConfig) => boolean;
62
- };
63
- cacheIdentifier: {
64
- type: StringConstructor;
65
- default: string;
66
- };
67
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
68
- canCreate: {
69
- type: PropType<() => boolean | Promise<boolean>>;
70
- required: false;
71
- default: () => Promise<boolean>;
72
- };
73
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
74
- canDelete: {
75
- type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
76
- required: false;
77
- default: () => Promise<boolean>;
78
- };
79
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
80
- canEdit: {
81
- type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
82
- required: false;
83
- default: () => Promise<boolean>;
84
- };
85
- /** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
86
- canRetrieve: {
87
- type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
88
- required: false;
89
- default: () => Promise<boolean>;
90
- };
91
- /** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
92
- useActionOutside: {
93
- type: BooleanConstructor;
94
- default: boolean;
95
- };
96
- /** default to false, setting to true will place create button on top right of list*/
97
- useToolbarCreationButton: {
98
- type: BooleanConstructor;
99
- default: boolean;
100
- };
101
- }>> & Readonly<{
102
- onError?: ((error: AxiosError<unknown, any, any>) => any) | undefined;
103
- "onClick:learn-more"?: (() => any) | undefined;
104
- "onCopy:success"?: ((payload: CopyEventPayload) => any) | undefined;
105
- "onCopy:error"?: ((payload: CopyEventPayload) => any) | undefined;
106
- "onDelete:success"?: ((sni: EntityRow) => any) | undefined;
107
- }>, {
108
- cacheIdentifier: string;
109
- canCreate: () => boolean | Promise<boolean>;
110
- canDelete: (row: EntityRow) => boolean | Promise<boolean>;
111
- canEdit: (row: EntityRow) => boolean | Promise<boolean>;
112
- canRetrieve: (row: EntityRow) => boolean | Promise<boolean>;
113
- useActionOutside: boolean;
114
- useToolbarCreationButton: boolean;
115
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
116
- declare const _default: typeof __VLS_export;
117
- export default _default;
118
- //# sourceMappingURL=SniList.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SniList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SniList.vue"],"names":[],"mappings":"AAijBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAmBvC,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;AAm/BvD,QAAA,MAAM,YAAY;IAGhB,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,qFAAqF;;;;;;;;;;;;IA7CrF,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,qFAAqF;;;;;;;;;;;;;qBA3BlD,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;;;4EAe3E,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,6 +0,0 @@
1
- import useI18n from './useI18n';
2
- declare const _default: {
3
- useI18n: typeof useI18n;
4
- };
5
- export default _default;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;;;;AAG/B,wBAEC"}
@@ -1,9 +0,0 @@
1
- import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
2
- import english from '../locales/en.json';
3
- interface UseI18nReturn {
4
- i18n: ReturnType<typeof createI18n<typeof english>>;
5
- i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
6
- }
7
- export default function useI18n(): UseI18nReturn;
8
- export {};
9
- //# sourceMappingURL=useI18n.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
@@ -1,5 +0,0 @@
1
- import SniList from './components/SniList.vue';
2
- import SniForm from './components/SniForm.vue';
3
- export { SniForm, SniList, };
4
- export * from './types';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,0BAA0B,CAAA;AAC9C,OAAO,OAAO,MAAM,0BAA0B,CAAA;AAE9C,OAAO,EACL,OAAO,EACP,OAAO,GACR,CAAA;AAED,cAAc,SAAS,CAAA"}
@@ -1,24 +0,0 @@
1
- declare const _default: {
2
- list: {
3
- konnect: {
4
- all: string;
5
- };
6
- kongManager: {
7
- all: string;
8
- };
9
- };
10
- form: {
11
- konnect: {
12
- create: string;
13
- edit: string;
14
- certificates: string;
15
- };
16
- kongManager: {
17
- create: string;
18
- edit: string;
19
- certificates: string;
20
- };
21
- };
22
- };
23
- export default _default;
24
- //# sourceMappingURL=snis-endpoints.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"snis-endpoints.d.ts","sourceRoot":"","sources":["../../src/snis-endpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAGA,wBAqBC"}
@@ -1,3 +0,0 @@
1
- export * from './sni-form';
2
- export * from './sni-list';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
@@ -1,35 +0,0 @@
1
- import type { RouteLocationRaw } from 'vue-router';
2
- import type { KonnectBaseFormConfig, KongManagerBaseFormConfig } from '@kong-ui-public/entities-shared';
3
- /** Konnect SNI form config */
4
- export interface KonnectSniFormConfig extends KonnectBaseFormConfig {
5
- /** Route to return to if canceling create/edit a SNI */
6
- cancelRoute: RouteLocationRaw;
7
- /** Certificate to bind the SNI to on creation */
8
- certificateId?: string;
9
- }
10
- /** Kong Manager SNI form config */
11
- export interface KongManagerSniFormConfig extends KongManagerBaseFormConfig {
12
- /** Route to return to if canceling create/edit a SNI */
13
- cancelRoute: RouteLocationRaw;
14
- /** Certificate to bind the SNI to on creation */
15
- certificateId?: string;
16
- }
17
- export interface SniFormFields {
18
- name: string;
19
- tags: string;
20
- certificate_id: string;
21
- }
22
- export interface SniFormState {
23
- /** Form fields */
24
- fields: SniFormFields;
25
- /** Form readonly state (only used when saving entity details) */
26
- isReadonly: boolean;
27
- /** The error message to show on the form */
28
- errorMessage: string;
29
- }
30
- export interface SelectItem {
31
- label: string;
32
- value: string | number;
33
- selected?: boolean;
34
- }
35
- //# sourceMappingURL=sni-form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sni-form.d.ts","sourceRoot":"","sources":["../../../src/types/sni-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAEvG,8BAA8B;AAC9B,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB;IACjE,wDAAwD;IACxD,WAAW,EAAE,gBAAgB,CAAA;IAC7B,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,mCAAmC;AACnC,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,wDAAwD;IACxD,WAAW,EAAE,gBAAgB,CAAA;IAC7B,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,kBAAkB;IAClB,MAAM,EAAE,aAAa,CAAA;IACrB,iEAAiE;IACjE,UAAU,EAAE,OAAO,CAAA;IACnB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAA;CACrB;AAGD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
@@ -1,32 +0,0 @@
1
- import type { RouteLocationRaw } from 'vue-router';
2
- import type { FilterSchema, KongManagerBaseTableConfig, KonnectBaseTableConfig } from '@kong-ui-public/entities-shared';
3
- export interface BaseSniListConfig {
4
- /** Route for creating an SNI */
5
- createRoute: RouteLocationRaw;
6
- /** A function that returns the route for viewing an SNI */
7
- getViewRoute: (id: string) => RouteLocationRaw;
8
- /** A function that returns the route for editing an SNI */
9
- getEditRoute: (id: string) => RouteLocationRaw;
10
- }
11
- /** Konnect SNI list config */
12
- export interface KonnectSniListConfig extends KonnectBaseTableConfig, BaseSniListConfig {
13
- }
14
- /** Kong Manager SNI list config */
15
- export interface KongManagerSniListConfig extends KongManagerBaseTableConfig, BaseSniListConfig {
16
- /** FilterSchema for fuzzy match */
17
- filterSchema?: FilterSchema;
18
- }
19
- export interface EntityRow extends Record<string, any> {
20
- id: string;
21
- name: string;
22
- }
23
- /** Copy field event payload */
24
- export interface CopyEventPayload {
25
- /** The entity row */
26
- entity: EntityRow;
27
- /** The field being copied. If omitted, the entity JSON is being copied. */
28
- field?: string;
29
- /** The toaster message */
30
- message: string;
31
- }
32
- //# sourceMappingURL=sni-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sni-list.d.ts","sourceRoot":"","sources":["../../../src/types/sni-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAEvH,MAAM,WAAW,iBAAiB;IAChC,gCAAgC;IAChC,WAAW,EAAE,gBAAgB,CAAA;IAC7B,2DAA2D;IAC3D,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IAC9C,2DAA2D;IAC3D,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;CAC/C;AAED,8BAA8B;AAC9B,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB,EAAE,iBAAiB;CAAG;AAE1F,mCAAmC;AACnC,MAAM,WAAW,wBAAyB,SAAQ,0BAA0B,EAAE,iBAAiB;IAC7F,mCAAmC;IACnC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACpD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,qBAAqB;IACrB,MAAM,EAAE,SAAS,CAAA;IACjB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB"}