@kong-ui-public/entities-snis 2.1.19 → 2.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/entities-snis.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as x, computed as S, watch as ne, renderSlot as G, createCommentVNode as X, unref as s, onBeforeMount as xe, resolveComponent as j, openBlock as b, createBlock as V, withCtx as
|
|
1
|
+
import { defineComponent as ee, ref as x, computed as S, watch as ne, renderSlot as G, createCommentVNode as X, unref as s, onBeforeMount as xe, resolveComponent as j, openBlock as b, createBlock as V, withCtx as p, createElementVNode as K, toDisplayString as O, createElementBlock as F, withModifiers as be, createVNode as C, createTextVNode as J, createSlots as We, withDirectives as me, vShow as ye, renderList as Te, Fragment as Je, useSlots as ct, normalizeClass as ke, onMounted as ut, onUnmounted as dt, inject as pt, resolveDynamicComponent as we, mergeProps as Me, normalizeStyle as ft, pushScopeId as mt, popScopeId as yt, reactive as Ke } from "vue";
|
|
2
2
|
import { createI18n as Ee, i18nTComponent as Ye } from "@kong-ui-public/i18n";
|
|
3
|
-
import
|
|
3
|
+
import gt from "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
5
5
|
import { useRouter as Ze } from "vue-router";
|
|
6
|
-
const
|
|
6
|
+
const vt = {
|
|
7
7
|
create: "New SNI",
|
|
8
8
|
copy_id: "Copy ID",
|
|
9
9
|
copy_json: "Copy JSON",
|
|
@@ -11,10 +11,10 @@ const ht = {
|
|
|
11
11
|
delete: "Delete",
|
|
12
12
|
clear: "Clear",
|
|
13
13
|
loading: "Loading..."
|
|
14
|
-
},
|
|
14
|
+
}, ht = {
|
|
15
15
|
placeholder: "Filter by exact name or ID",
|
|
16
16
|
no_results: "No results found"
|
|
17
|
-
},
|
|
17
|
+
}, bt = {
|
|
18
18
|
title: "SNIs",
|
|
19
19
|
list: {
|
|
20
20
|
toolbar_actions: {
|
|
@@ -31,7 +31,7 @@ const ht = {
|
|
|
31
31
|
description: "SNIs are used to map hostnames to a certificate."
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, kt = {
|
|
35
35
|
sections: {
|
|
36
36
|
general: {
|
|
37
37
|
title: "General Information",
|
|
@@ -59,7 +59,7 @@ const ht = {
|
|
|
59
59
|
footer: "Search by exact ID to find certificates not included in the list"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
},
|
|
62
|
+
}, wt = {
|
|
63
63
|
delete: "The SNI could not be deleted at this time.",
|
|
64
64
|
general: "SNIs could not be retrieved",
|
|
65
65
|
certificates: {
|
|
@@ -67,23 +67,23 @@ const ht = {
|
|
|
67
67
|
invalid: "Please select a valid certificate ID"
|
|
68
68
|
},
|
|
69
69
|
copy: "Failed to copy to clipboard"
|
|
70
|
-
},
|
|
70
|
+
}, St = {
|
|
71
71
|
success: "Copied {val} to clipboard",
|
|
72
72
|
success_brief: "Successfully copied to clipboard"
|
|
73
|
-
},
|
|
74
|
-
actions:
|
|
75
|
-
search:
|
|
76
|
-
snis:
|
|
77
|
-
form:
|
|
73
|
+
}, _t = {
|
|
74
|
+
actions: vt,
|
|
75
|
+
search: ht,
|
|
76
|
+
snis: bt,
|
|
77
|
+
form: kt,
|
|
78
78
|
delete: {
|
|
79
79
|
title: "Delete an SNI",
|
|
80
80
|
description: "This action cannot be reversed so make sure to check the SNI usage before deleting."
|
|
81
81
|
},
|
|
82
|
-
errors:
|
|
83
|
-
copy:
|
|
82
|
+
errors: wt,
|
|
83
|
+
copy: St
|
|
84
84
|
};
|
|
85
|
-
function
|
|
86
|
-
const e = Ee("en-us",
|
|
85
|
+
function It() {
|
|
86
|
+
const e = Ee("en-us", _t);
|
|
87
87
|
return {
|
|
88
88
|
i18n: e,
|
|
89
89
|
i18nT: Ye(e)
|
|
@@ -91,7 +91,7 @@ function Ct() {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
const Ge = {
|
|
94
|
-
useI18n:
|
|
94
|
+
useI18n: It
|
|
95
95
|
}, fe = {
|
|
96
96
|
list: {
|
|
97
97
|
konnect: {
|
|
@@ -119,14 +119,14 @@ const Ge = {
|
|
|
119
119
|
var Qe = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Qe || {}), he = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(he || {}), oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(oe || {});
|
|
120
120
|
function Ne(e = {}) {
|
|
121
121
|
return {
|
|
122
|
-
axiosInstance:
|
|
122
|
+
axiosInstance: gt.create({
|
|
123
123
|
withCredentials: !0,
|
|
124
124
|
timeout: 3e4,
|
|
125
125
|
...e
|
|
126
126
|
})
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ct() {
|
|
130
130
|
return {
|
|
131
131
|
debounce: (e, a) => {
|
|
132
132
|
let t;
|
|
@@ -138,12 +138,12 @@ function xt() {
|
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const _e = "khcp-user-table-preferences", xt = {
|
|
142
142
|
pageSize: 30,
|
|
143
143
|
sortColumnKey: void 0,
|
|
144
144
|
sortColumnOrder: void 0
|
|
145
145
|
};
|
|
146
|
-
function
|
|
146
|
+
function Tt() {
|
|
147
147
|
const e = (t) => {
|
|
148
148
|
if (typeof t == "string")
|
|
149
149
|
try {
|
|
@@ -153,38 +153,38 @@ function Et() {
|
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
}, a = () => {
|
|
156
|
-
const t = e(localStorage.getItem(
|
|
156
|
+
const t = e(localStorage.getItem(_e));
|
|
157
157
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
158
158
|
};
|
|
159
159
|
return {
|
|
160
160
|
setTablePreferences: (t, r) => {
|
|
161
161
|
try {
|
|
162
162
|
const n = a();
|
|
163
|
-
n.set(t, r), localStorage.setItem(
|
|
163
|
+
n.set(t, r), localStorage.setItem(_e, JSON.stringify(Object.fromEntries(n.entries())));
|
|
164
164
|
} catch (n) {
|
|
165
165
|
console.error("useTablePreferences(setTablePreferences)", n);
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
getTablePreferences: (t) => {
|
|
169
169
|
const r = a();
|
|
170
|
-
return (r == null ? void 0 : r.get(t)) || void 0 ||
|
|
170
|
+
return (r == null ? void 0 : r.get(t)) || void 0 || xt;
|
|
171
171
|
},
|
|
172
172
|
deleteAllTablePreferences: () => {
|
|
173
|
-
localStorage.removeItem(
|
|
173
|
+
localStorage.removeItem(_e);
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
const
|
|
177
|
+
const Et = {
|
|
178
178
|
actions: {
|
|
179
179
|
copyId: "Copy ID",
|
|
180
180
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
181
181
|
copyToClipboard: "Copied successfully!",
|
|
182
182
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
183
183
|
}
|
|
184
|
-
},
|
|
184
|
+
}, Nt = {
|
|
185
185
|
message: "Are you sure you want to delete this {entityType}?",
|
|
186
186
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
187
|
-
},
|
|
187
|
+
}, $t = {
|
|
188
188
|
actions: {
|
|
189
189
|
save: "Save",
|
|
190
190
|
cancel: "Cancel",
|
|
@@ -193,13 +193,13 @@ const Nt = {
|
|
|
193
193
|
errors: {
|
|
194
194
|
edit: "The entity could not be edited at this time."
|
|
195
195
|
}
|
|
196
|
-
},
|
|
196
|
+
}, At = {
|
|
197
197
|
emptyState: {
|
|
198
198
|
noSearchResultsTitle: "No results found",
|
|
199
199
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
200
200
|
noSearchResultsCtaText: "Clear"
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, Ot = {
|
|
203
203
|
title: "Configuration",
|
|
204
204
|
actions: {
|
|
205
205
|
copy: "Copy JSON"
|
|
@@ -237,7 +237,7 @@ const Nt = {
|
|
|
237
237
|
entryTitle: "Entry {index}",
|
|
238
238
|
structuredFormat: "Structured"
|
|
239
239
|
}
|
|
240
|
-
},
|
|
240
|
+
}, Mt = {
|
|
241
241
|
filterButtonText: "Filter",
|
|
242
242
|
fieldLabel: "Filter by:",
|
|
243
243
|
inputPlaceholder: "Enter a value",
|
|
@@ -245,15 +245,15 @@ const Nt = {
|
|
|
245
245
|
applyButtonText: "Apply",
|
|
246
246
|
clearButtonText: "Clear",
|
|
247
247
|
clearAllButtonText: "Clear all filters"
|
|
248
|
-
},
|
|
248
|
+
}, Kt = {
|
|
249
249
|
errors: {
|
|
250
250
|
fetch: "Could not fetch available items",
|
|
251
251
|
invalid: "Please select a valid value"
|
|
252
252
|
}
|
|
253
|
-
},
|
|
253
|
+
}, jt = {
|
|
254
254
|
unexpected: "An unexpected error has occurred",
|
|
255
255
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
256
|
-
},
|
|
256
|
+
}, qt = {
|
|
257
257
|
enable: {
|
|
258
258
|
title: "Enable {entityType}",
|
|
259
259
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -264,19 +264,19 @@ const Nt = {
|
|
|
264
264
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
265
265
|
confirmText: "Yes, disable"
|
|
266
266
|
}
|
|
267
|
-
},
|
|
268
|
-
global:
|
|
269
|
-
deleteModal:
|
|
270
|
-
baseForm:
|
|
271
|
-
baseTable:
|
|
272
|
-
baseConfigCard:
|
|
273
|
-
filter:
|
|
274
|
-
debouncedFilter:
|
|
275
|
-
errors:
|
|
276
|
-
toggleModal:
|
|
267
|
+
}, Pt = {
|
|
268
|
+
global: Et,
|
|
269
|
+
deleteModal: Nt,
|
|
270
|
+
baseForm: $t,
|
|
271
|
+
baseTable: At,
|
|
272
|
+
baseConfigCard: Ot,
|
|
273
|
+
filter: Mt,
|
|
274
|
+
debouncedFilter: Kt,
|
|
275
|
+
errors: jt,
|
|
276
|
+
toggleModal: qt
|
|
277
277
|
};
|
|
278
278
|
function $e() {
|
|
279
|
-
const e = Ee("en-us",
|
|
279
|
+
const e = Ee("en-us", Pt);
|
|
280
280
|
return {
|
|
281
281
|
i18n: e,
|
|
282
282
|
i18nT: Ye(e)
|
|
@@ -327,16 +327,16 @@ function Xe() {
|
|
|
327
327
|
isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function Rt(e, a, t, r = {
|
|
331
331
|
fetchedItemsKey: "data",
|
|
332
332
|
searchKeys: ["id"]
|
|
333
333
|
}) {
|
|
334
334
|
t || (t = "100");
|
|
335
335
|
const { axiosInstance: n } = Ne({
|
|
336
336
|
headers: e.requestHeaders
|
|
337
|
-
}), { i18n: { t: i } } = $e(), { debounce: o } =
|
|
337
|
+
}), { i18n: { t: i } } = $e(), { debounce: o } = Ct(), u = o(async (w) => {
|
|
338
338
|
await E(w);
|
|
339
|
-
}, 200), m = x(!1),
|
|
339
|
+
}, 200), m = x(!1), f = x(""), _ = x(""), l = x([]), N = x([]), k = x(void 0), D = s(a);
|
|
340
340
|
let y = `${e.apiBaseUrl}${D}`;
|
|
341
341
|
e.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
342
342
|
const { isValidUuid: $ } = Xe(), d = async () => {
|
|
@@ -345,7 +345,7 @@ function Ft(e, a, t, r = {
|
|
|
345
345
|
const { data: w } = await n.get(`${y}?size=${t}`);
|
|
346
346
|
w != null && w.next || (k.value = r.fetchedItemsKey in w ? w[r.fetchedItemsKey] : []), N.value = r.fetchedItemsKey in w ? w[r.fetchedItemsKey] : [], l.value = N.value;
|
|
347
347
|
} catch {
|
|
348
|
-
l.value = [],
|
|
348
|
+
l.value = [], f.value = i("debouncedFilter.errors.fetch");
|
|
349
349
|
} finally {
|
|
350
350
|
m.value = !1;
|
|
351
351
|
}
|
|
@@ -354,7 +354,7 @@ function Ft(e, a, t, r = {
|
|
|
354
354
|
if (T.value !== w)
|
|
355
355
|
if (T.value = w || "", k.value === void 0)
|
|
356
356
|
try {
|
|
357
|
-
if (m.value = !0,
|
|
357
|
+
if (m.value = !0, f.value = "", _.value = "", e.app === "konnect") {
|
|
358
358
|
let v = y + "";
|
|
359
359
|
w && (v += `/${w}`);
|
|
360
360
|
const { data: U } = await n.get(`${v}?size=${t}`);
|
|
@@ -380,7 +380,7 @@ function Ft(e, a, t, r = {
|
|
|
380
380
|
} else
|
|
381
381
|
l.value = N.value;
|
|
382
382
|
} catch (v) {
|
|
383
|
-
((A = v == null ? void 0 : v.response) == null ? void 0 : A.status) === 404 ? _.value = i("debouncedFilter.errors.invalid") : (l.value = [],
|
|
383
|
+
((A = v == null ? void 0 : v.response) == null ? void 0 : A.status) === 404 ? _.value = i("debouncedFilter.errors.invalid") : (l.value = [], f.value = i("debouncedFilter.errors.fetch"));
|
|
384
384
|
} finally {
|
|
385
385
|
m.value = !1;
|
|
386
386
|
}
|
|
@@ -397,7 +397,7 @@ function Ft(e, a, t, r = {
|
|
|
397
397
|
};
|
|
398
398
|
return {
|
|
399
399
|
loading: m,
|
|
400
|
-
error:
|
|
400
|
+
error: f,
|
|
401
401
|
validationError: _,
|
|
402
402
|
results: l,
|
|
403
403
|
allRecords: k,
|
|
@@ -405,13 +405,13 @@ function Ft(e, a, t, r = {
|
|
|
405
405
|
debouncedQueryChange: u
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ft(e, a) {
|
|
409
409
|
const t = s(a), r = S(
|
|
410
410
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
411
411
|
);
|
|
412
412
|
return r.value.search = "", (n) => `${r.value.href}/${n}`;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function Ut() {
|
|
415
415
|
const { i18n: { t: e } } = $e();
|
|
416
416
|
return {
|
|
417
417
|
getMessageFromError: (a) => {
|
|
@@ -439,7 +439,7 @@ function Bt() {
|
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Bt(e) {
|
|
443
443
|
const a = window.location.origin, t = a.endsWith("/") ? a : `${a}/`;
|
|
444
444
|
try {
|
|
445
445
|
const r = e.join("/"), n = `${t}${r}`, i = e.some((o) => o.trim() === "");
|
|
@@ -457,18 +457,18 @@ function et(e, a) {
|
|
|
457
457
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
458
458
|
);
|
|
459
459
|
return (o) => {
|
|
460
|
-
const { page: u, pageSize: m, offset:
|
|
460
|
+
const { page: u, pageSize: m, offset: f, sortColumnKey: _, sortColumnOrder: l, query: N } = o;
|
|
461
461
|
try {
|
|
462
462
|
let k = new URL(i.value.href);
|
|
463
463
|
return n.value && N ? (k.search = "", k = t.value.app === "konnect" ? new URL(`${k.href}?filter[name][contains]=${N}`) : new URL(`${k.href}/${N}/`)) : (n.value || new URLSearchParams(N).forEach((D, y) => {
|
|
464
464
|
k.searchParams.append(y, D);
|
|
465
|
-
}), _ && k.searchParams.append("sort_by", _), l === "desc" && k.searchParams.append("sort_desc", "1"), k.searchParams.append("size", String(m))),
|
|
465
|
+
}), _ && k.searchParams.append("sort_by", _), l === "desc" && k.searchParams.append("sort_desc", "1"), k.searchParams.append("size", String(m))), f && u !== 1 && k.searchParams.append("offset", String(f)), k.href;
|
|
466
466
|
} catch (k) {
|
|
467
467
|
return console.error("RouteList(fetcher)", k), r.value;
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Dt(e, a, t = "data") {
|
|
472
472
|
const r = s(a), { axiosInstance: n } = Ne({
|
|
473
473
|
headers: e.requestHeaders
|
|
474
474
|
}), i = et(e, r), o = x({
|
|
@@ -479,15 +479,15 @@ function Vt(e, a, t = "data") {
|
|
|
479
479
|
o.value = { status: oe.Loading };
|
|
480
480
|
let m = i(u);
|
|
481
481
|
m.includes("filter[name]") && (m = `${m}&page[size]=${u.pageSize}&page[number]=${u.page}`);
|
|
482
|
-
const { data:
|
|
482
|
+
const { data: f } = await n.get(m), _ = t && t.replace(/[^\w-_]/gi, "");
|
|
483
483
|
let l;
|
|
484
|
-
|
|
484
|
+
f[_] && Array.isArray(f[_]) ? l = f[_] : Array.isArray(f) ? l = f : l = Object.keys(f).length ? [f] : [];
|
|
485
485
|
const N = {
|
|
486
486
|
data: l,
|
|
487
487
|
total: l.length,
|
|
488
|
-
...
|
|
488
|
+
...f.offset ? {
|
|
489
489
|
pagination: {
|
|
490
|
-
offset:
|
|
490
|
+
offset: f.offset
|
|
491
491
|
}
|
|
492
492
|
} : null
|
|
493
493
|
};
|
|
@@ -496,23 +496,23 @@ function Vt(e, a, t = "data") {
|
|
|
496
496
|
response: N
|
|
497
497
|
}, N;
|
|
498
498
|
} catch (m) {
|
|
499
|
-
const
|
|
499
|
+
const f = {
|
|
500
500
|
data: [],
|
|
501
501
|
total: 0
|
|
502
502
|
};
|
|
503
503
|
return u.query && m.response.status === 404 ? (o.value = {
|
|
504
504
|
status: oe.NoResults,
|
|
505
|
-
response:
|
|
505
|
+
response: f,
|
|
506
506
|
error: m
|
|
507
|
-
},
|
|
507
|
+
}, f) : (o.value = {
|
|
508
508
|
status: oe.Error,
|
|
509
|
-
response:
|
|
509
|
+
response: f,
|
|
510
510
|
error: m
|
|
511
|
-
},
|
|
511
|
+
}, f);
|
|
512
512
|
}
|
|
513
513
|
}, fetcherState: o };
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Vt() {
|
|
516
516
|
const e = (t, r = "_") => t ? t.split(r).map((n) => n.toLowerCase() === "id" ? n.toUpperCase() : n.charAt(0).toUpperCase() + n.substring(1)).join(" ") : "", a = /(?:^|[\s-:'"])\w/g;
|
|
517
517
|
return {
|
|
518
518
|
capitalize: (t) => t ? t.replace(a, (r) => r.toUpperCase()) : "",
|
|
@@ -529,24 +529,24 @@ const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
529
529
|
}, qe = (e) => e === "*" || e === "x" || e === "X", Pe = (e) => {
|
|
530
530
|
const a = parseInt(e, 10);
|
|
531
531
|
return isNaN(a) ? e : a;
|
|
532
|
-
},
|
|
532
|
+
}, Lt = (e, a) => typeof e != typeof a ? [String(e), String(a)] : [e, a], zt = (e, a) => {
|
|
533
533
|
if (qe(e) || qe(a))
|
|
534
534
|
return 0;
|
|
535
|
-
const [t, r] =
|
|
535
|
+
const [t, r] = Lt(Pe(e), Pe(a));
|
|
536
536
|
return t > r ? 1 : t < r ? -1 : 0;
|
|
537
537
|
}, Re = (e, a) => {
|
|
538
538
|
for (let t = 0; t < Math.max(e.length, a.length); t++) {
|
|
539
|
-
const r =
|
|
539
|
+
const r = zt(e[t] || "0", a[t] || "0");
|
|
540
540
|
if (r !== 0)
|
|
541
541
|
return r;
|
|
542
542
|
}
|
|
543
543
|
return 0;
|
|
544
|
-
},
|
|
544
|
+
}, Ht = (e, a) => {
|
|
545
545
|
const t = je(e), r = je(a), n = t.pop(), i = r.pop(), o = Re(t, r);
|
|
546
546
|
return o !== 0 ? o : n && i ? Re(n.split("."), i.split(".")) : n || i ? n ? -1 : 1 : 0;
|
|
547
547
|
}, Fe = (e, a, t) => {
|
|
548
|
-
|
|
549
|
-
const r =
|
|
548
|
+
Wt(t);
|
|
549
|
+
const r = Ht(e, a);
|
|
550
550
|
return rt[t].includes(r);
|
|
551
551
|
}, rt = {
|
|
552
552
|
">": [1],
|
|
@@ -555,18 +555,18 @@ const tt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
555
555
|
"<=": [-1, 0],
|
|
556
556
|
"<": [-1],
|
|
557
557
|
"!=": [-1, 1]
|
|
558
|
-
}, Ue = Object.keys(rt),
|
|
558
|
+
}, Ue = Object.keys(rt), Wt = (e) => {
|
|
559
559
|
if (typeof e != "string")
|
|
560
560
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
561
561
|
if (Ue.indexOf(e) === -1)
|
|
562
562
|
throw new Error(`Invalid operator, expected one of ${Ue.join("|")}`);
|
|
563
|
-
},
|
|
564
|
-
function
|
|
563
|
+
}, Jt = (e) => typeof e == "string" && /^[v\d]/.test(e) && tt.test(e);
|
|
564
|
+
function Yt(e) {
|
|
565
565
|
const { gatewayInfo: a, supportedRange: t } = e;
|
|
566
566
|
if (!a)
|
|
567
567
|
return !0;
|
|
568
568
|
const { edition: r, version: n } = a;
|
|
569
|
-
if (!
|
|
569
|
+
if (!Jt(n))
|
|
570
570
|
return console.error("Invalid version"), !1;
|
|
571
571
|
const i = t[r];
|
|
572
572
|
if (!i)
|
|
@@ -574,7 +574,7 @@ function Zt(e) {
|
|
|
574
574
|
const [o, u] = i;
|
|
575
575
|
return !(o && Fe(n, o, "<") || u && Fe(n, u, ">"));
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function Zt(e) {
|
|
578
578
|
const a = x(0), t = x(0), r = x(!1);
|
|
579
579
|
return ne(e, (n) => {
|
|
580
580
|
n && !r.value && (a.value = n.offsetWidth, t.value = n.scrollWidth, r.value = !0);
|
|
@@ -584,56 +584,56 @@ function Gt(e) {
|
|
|
584
584
|
}
|
|
585
585
|
const se = {
|
|
586
586
|
useAxios: Ne,
|
|
587
|
-
useDebouncedFilter:
|
|
588
|
-
useDeleteUrlBuilder:
|
|
589
|
-
useErrors:
|
|
590
|
-
useExternalLinkCreator:
|
|
591
|
-
useFetcher:
|
|
587
|
+
useDebouncedFilter: Rt,
|
|
588
|
+
useDeleteUrlBuilder: Ft,
|
|
589
|
+
useErrors: Ut,
|
|
590
|
+
useExternalLinkCreator: Bt,
|
|
591
|
+
useFetcher: Dt,
|
|
592
592
|
useFetchUrlBuilder: et,
|
|
593
593
|
useHelpers: Xe,
|
|
594
|
-
useStringHelpers:
|
|
594
|
+
useStringHelpers: Vt,
|
|
595
595
|
useI18n: $e,
|
|
596
|
-
useGatewayFeatureSupported:
|
|
597
|
-
useTruncationDetector:
|
|
596
|
+
useGatewayFeatureSupported: Yt,
|
|
597
|
+
useTruncationDetector: Zt
|
|
598
598
|
}, ue = (e, a) => {
|
|
599
599
|
const t = e.__vccOpts || e;
|
|
600
600
|
for (const [r, n] of a)
|
|
601
601
|
t[r] = n;
|
|
602
602
|
return t;
|
|
603
|
-
},
|
|
603
|
+
}, Gt = "#0044f4", Qt = "#3a3f51";
|
|
604
604
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
605
605
|
function at(e) {
|
|
606
606
|
return typeof e > "u" || e === null;
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function Xt(e) {
|
|
609
609
|
return typeof e == "object" && e !== null;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function er(e) {
|
|
612
612
|
return Array.isArray(e) ? e : at(e) ? [] : [e];
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function tr(e, a) {
|
|
615
615
|
var t, r, n, i;
|
|
616
616
|
if (a)
|
|
617
617
|
for (i = Object.keys(a), t = 0, r = i.length; t < r; t += 1)
|
|
618
618
|
n = i[t], e[n] = a[n];
|
|
619
619
|
return e;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function rr(e, a) {
|
|
622
622
|
var t = "", r;
|
|
623
623
|
for (r = 0; r < a; r += 1)
|
|
624
624
|
t += e;
|
|
625
625
|
return t;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function ar(e) {
|
|
628
628
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
isNothing:
|
|
632
|
-
isObject:
|
|
633
|
-
toArray:
|
|
634
|
-
repeat:
|
|
635
|
-
isNegativeZero:
|
|
636
|
-
extend:
|
|
630
|
+
var nr = at, ir = Xt, or = er, lr = rr, sr = ar, cr = tr, Ae = {
|
|
631
|
+
isNothing: nr,
|
|
632
|
+
isObject: ir,
|
|
633
|
+
toArray: or,
|
|
634
|
+
repeat: lr,
|
|
635
|
+
isNegativeZero: sr,
|
|
636
|
+
extend: cr
|
|
637
637
|
};
|
|
638
638
|
function nt(e, a) {
|
|
639
639
|
var t = "", r = e.reason || "(unknown reason)";
|
|
@@ -649,7 +649,7 @@ ge.prototype.constructor = ge;
|
|
|
649
649
|
ge.prototype.toString = function(e) {
|
|
650
650
|
return this.name + ": " + nt(this, e);
|
|
651
651
|
};
|
|
652
|
-
var le = ge,
|
|
652
|
+
var le = ge, ur = [
|
|
653
653
|
"kind",
|
|
654
654
|
"multi",
|
|
655
655
|
"resolve",
|
|
@@ -660,12 +660,12 @@ var le = ge, dr = [
|
|
|
660
660
|
"representName",
|
|
661
661
|
"defaultStyle",
|
|
662
662
|
"styleAliases"
|
|
663
|
-
],
|
|
663
|
+
], dr = [
|
|
664
664
|
"scalar",
|
|
665
665
|
"sequence",
|
|
666
666
|
"mapping"
|
|
667
667
|
];
|
|
668
|
-
function
|
|
668
|
+
function pr(e) {
|
|
669
669
|
var a = {};
|
|
670
670
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
671
671
|
e[t].forEach(function(r) {
|
|
@@ -673,18 +673,18 @@ function fr(e) {
|
|
|
673
673
|
});
|
|
674
674
|
}), a;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function fr(e, a) {
|
|
677
677
|
if (a = a || {}, Object.keys(a).forEach(function(t) {
|
|
678
|
-
if (
|
|
678
|
+
if (ur.indexOf(t) === -1)
|
|
679
679
|
throw new le('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
680
680
|
}), this.options = a, this.tag = e, this.kind = a.kind || null, this.resolve = a.resolve || function() {
|
|
681
681
|
return !0;
|
|
682
682
|
}, this.construct = a.construct || function(t) {
|
|
683
683
|
return t;
|
|
684
|
-
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases =
|
|
684
|
+
}, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = pr(a.styleAliases || null), dr.indexOf(this.kind) === -1)
|
|
685
685
|
throw new le('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
686
686
|
}
|
|
687
|
-
var z =
|
|
687
|
+
var z = fr;
|
|
688
688
|
function Be(e, a) {
|
|
689
689
|
var t = [];
|
|
690
690
|
return e[a].forEach(function(r) {
|
|
@@ -694,7 +694,7 @@ function Be(e, a) {
|
|
|
694
694
|
}), t[n] = r;
|
|
695
695
|
}), t;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function mr() {
|
|
698
698
|
var e = {
|
|
699
699
|
scalar: {},
|
|
700
700
|
sequence: {},
|
|
@@ -739,47 +739,47 @@ Ce.prototype.extend = function(e) {
|
|
|
739
739
|
throw new le("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
740
740
|
});
|
|
741
741
|
var r = Object.create(Ce.prototype);
|
|
742
|
-
return r.implicit = (this.implicit || []).concat(a), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Be(r, "implicit"), r.compiledExplicit = Be(r, "explicit"), r.compiledTypeMap =
|
|
742
|
+
return r.implicit = (this.implicit || []).concat(a), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Be(r, "implicit"), r.compiledExplicit = Be(r, "explicit"), r.compiledTypeMap = mr(r.compiledImplicit, r.compiledExplicit), r;
|
|
743
743
|
};
|
|
744
|
-
var
|
|
744
|
+
var yr = Ce, gr = new z("tag:yaml.org,2002:str", {
|
|
745
745
|
kind: "scalar",
|
|
746
746
|
construct: function(e) {
|
|
747
747
|
return e !== null ? e : "";
|
|
748
748
|
}
|
|
749
|
-
}),
|
|
749
|
+
}), vr = new z("tag:yaml.org,2002:seq", {
|
|
750
750
|
kind: "sequence",
|
|
751
751
|
construct: function(e) {
|
|
752
752
|
return e !== null ? e : [];
|
|
753
753
|
}
|
|
754
|
-
}),
|
|
754
|
+
}), hr = new z("tag:yaml.org,2002:map", {
|
|
755
755
|
kind: "mapping",
|
|
756
756
|
construct: function(e) {
|
|
757
757
|
return e !== null ? e : {};
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
759
|
+
}), br = new yr({
|
|
760
760
|
explicit: [
|
|
761
|
+
gr,
|
|
761
762
|
vr,
|
|
762
|
-
hr
|
|
763
|
-
br
|
|
763
|
+
hr
|
|
764
764
|
]
|
|
765
765
|
});
|
|
766
|
-
function
|
|
766
|
+
function kr(e) {
|
|
767
767
|
if (e === null)
|
|
768
768
|
return !0;
|
|
769
769
|
var a = e.length;
|
|
770
770
|
return a === 1 && e === "~" || a === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function wr() {
|
|
773
773
|
return null;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Sr(e) {
|
|
776
776
|
return e === null;
|
|
777
777
|
}
|
|
778
|
-
var
|
|
778
|
+
var _r = new z("tag:yaml.org,2002:null", {
|
|
779
779
|
kind: "scalar",
|
|
780
|
-
resolve:
|
|
781
|
-
construct:
|
|
782
|
-
predicate:
|
|
780
|
+
resolve: kr,
|
|
781
|
+
construct: wr,
|
|
782
|
+
predicate: Sr,
|
|
783
783
|
represent: {
|
|
784
784
|
canonical: function() {
|
|
785
785
|
return "~";
|
|
@@ -799,23 +799,23 @@ var Ir = new z("tag:yaml.org,2002:null", {
|
|
|
799
799
|
},
|
|
800
800
|
defaultStyle: "lowercase"
|
|
801
801
|
});
|
|
802
|
-
function
|
|
802
|
+
function Ir(e) {
|
|
803
803
|
if (e === null)
|
|
804
804
|
return !1;
|
|
805
805
|
var a = e.length;
|
|
806
806
|
return a === 4 && (e === "true" || e === "True" || e === "TRUE") || a === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Cr(e) {
|
|
809
809
|
return e === "true" || e === "True" || e === "TRUE";
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function xr(e) {
|
|
812
812
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
813
813
|
}
|
|
814
|
-
var
|
|
814
|
+
var Tr = new z("tag:yaml.org,2002:bool", {
|
|
815
815
|
kind: "scalar",
|
|
816
|
-
resolve:
|
|
817
|
-
construct:
|
|
818
|
-
predicate:
|
|
816
|
+
resolve: Ir,
|
|
817
|
+
construct: Cr,
|
|
818
|
+
predicate: xr,
|
|
819
819
|
represent: {
|
|
820
820
|
lowercase: function(e) {
|
|
821
821
|
return e ? "true" : "false";
|
|
@@ -829,16 +829,16 @@ var Er = new z("tag:yaml.org,2002:bool", {
|
|
|
829
829
|
},
|
|
830
830
|
defaultStyle: "lowercase"
|
|
831
831
|
});
|
|
832
|
-
function
|
|
832
|
+
function Er(e) {
|
|
833
833
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function Nr(e) {
|
|
836
836
|
return 48 <= e && e <= 55;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function $r(e) {
|
|
839
839
|
return 48 <= e && e <= 57;
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Ar(e) {
|
|
842
842
|
if (e === null)
|
|
843
843
|
return !1;
|
|
844
844
|
var a = e.length, t = 0, r = !1, n;
|
|
@@ -859,7 +859,7 @@ function Or(e) {
|
|
|
859
859
|
if (n === "x") {
|
|
860
860
|
for (t++; t < a; t++)
|
|
861
861
|
if (n = e[t], n !== "_") {
|
|
862
|
-
if (!
|
|
862
|
+
if (!Er(e.charCodeAt(t)))
|
|
863
863
|
return !1;
|
|
864
864
|
r = !0;
|
|
865
865
|
}
|
|
@@ -868,7 +868,7 @@ function Or(e) {
|
|
|
868
868
|
if (n === "o") {
|
|
869
869
|
for (t++; t < a; t++)
|
|
870
870
|
if (n = e[t], n !== "_") {
|
|
871
|
-
if (
|
|
871
|
+
if (!Nr(e.charCodeAt(t)))
|
|
872
872
|
return !1;
|
|
873
873
|
r = !0;
|
|
874
874
|
}
|
|
@@ -879,13 +879,13 @@ function Or(e) {
|
|
|
879
879
|
return !1;
|
|
880
880
|
for (; t < a; t++)
|
|
881
881
|
if (n = e[t], n !== "_") {
|
|
882
|
-
if (
|
|
882
|
+
if (!$r(e.charCodeAt(t)))
|
|
883
883
|
return !1;
|
|
884
884
|
r = !0;
|
|
885
885
|
}
|
|
886
886
|
return !(!r || n === "_");
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Or(e) {
|
|
889
889
|
var a = e, t = 1, r;
|
|
890
890
|
if (a.indexOf("_") !== -1 && (a = a.replace(/_/g, "")), r = a[0], (r === "-" || r === "+") && (r === "-" && (t = -1), a = a.slice(1), r = a[0]), a === "0")
|
|
891
891
|
return 0;
|
|
@@ -899,14 +899,14 @@ function Mr(e) {
|
|
|
899
899
|
}
|
|
900
900
|
return t * parseInt(a, 10);
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function Mr(e) {
|
|
903
903
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Ae.isNegativeZero(e);
|
|
904
904
|
}
|
|
905
|
-
var
|
|
905
|
+
var Kr = new z("tag:yaml.org,2002:int", {
|
|
906
906
|
kind: "scalar",
|
|
907
|
-
resolve:
|
|
908
|
-
construct:
|
|
909
|
-
predicate:
|
|
907
|
+
resolve: Ar,
|
|
908
|
+
construct: Or,
|
|
909
|
+
predicate: Mr,
|
|
910
910
|
represent: {
|
|
911
911
|
binary: function(e) {
|
|
912
912
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -929,21 +929,21 @@ var jr = new z("tag:yaml.org,2002:int", {
|
|
|
929
929
|
decimal: [10, "dec"],
|
|
930
930
|
hexadecimal: [16, "hex"]
|
|
931
931
|
}
|
|
932
|
-
}),
|
|
932
|
+
}), jr = new RegExp(
|
|
933
933
|
// 2.5e4, 2.5 and integers
|
|
934
934
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
935
935
|
);
|
|
936
|
-
function
|
|
937
|
-
return !(e === null || !
|
|
936
|
+
function qr(e) {
|
|
937
|
+
return !(e === null || !jr.test(e) || // Quick hack to not allow integers end with `_`
|
|
938
938
|
// Probably should update regexp & check speed
|
|
939
939
|
e[e.length - 1] === "_");
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function Pr(e) {
|
|
942
942
|
var a, t;
|
|
943
943
|
return a = e.replace(/_/g, "").toLowerCase(), t = a[0] === "-" ? -1 : 1, "+-".indexOf(a[0]) >= 0 && (a = a.slice(1)), a === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : a === ".nan" ? NaN : t * parseFloat(a, 10);
|
|
944
944
|
}
|
|
945
|
-
var
|
|
946
|
-
function
|
|
945
|
+
var Rr = /^[-+]?[0-9]+e/;
|
|
946
|
+
function Fr(e, a) {
|
|
947
947
|
var t;
|
|
948
948
|
if (isNaN(e))
|
|
949
949
|
switch (a) {
|
|
@@ -974,35 +974,35 @@ function Ur(e, a) {
|
|
|
974
974
|
}
|
|
975
975
|
else if (Ae.isNegativeZero(e))
|
|
976
976
|
return "-0.0";
|
|
977
|
-
return t = e.toString(10),
|
|
977
|
+
return t = e.toString(10), Rr.test(t) ? t.replace("e", ".e") : t;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function Ur(e) {
|
|
980
980
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Ae.isNegativeZero(e));
|
|
981
981
|
}
|
|
982
|
-
var
|
|
982
|
+
var Br = new z("tag:yaml.org,2002:float", {
|
|
983
983
|
kind: "scalar",
|
|
984
|
-
resolve:
|
|
985
|
-
construct:
|
|
986
|
-
predicate:
|
|
987
|
-
represent:
|
|
984
|
+
resolve: qr,
|
|
985
|
+
construct: Pr,
|
|
986
|
+
predicate: Ur,
|
|
987
|
+
represent: Fr,
|
|
988
988
|
defaultStyle: "lowercase"
|
|
989
|
-
}),
|
|
989
|
+
}), Dr = br.extend({
|
|
990
990
|
implicit: [
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
991
|
+
_r,
|
|
992
|
+
Tr,
|
|
993
|
+
Kr,
|
|
994
|
+
Br
|
|
995
995
|
]
|
|
996
|
-
}),
|
|
996
|
+
}), Vr = Dr, it = new RegExp(
|
|
997
997
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
998
998
|
), ot = new RegExp(
|
|
999
999
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1000
1000
|
);
|
|
1001
|
-
function
|
|
1001
|
+
function Lr(e) {
|
|
1002
1002
|
return e === null ? !1 : it.exec(e) !== null || ot.exec(e) !== null;
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var a, t, r, n, i, o, u, m = 0,
|
|
1004
|
+
function zr(e) {
|
|
1005
|
+
var a, t, r, n, i, o, u, m = 0, f = null, _, l, N;
|
|
1006
1006
|
if (a = it.exec(e), a === null && (a = ot.exec(e)), a === null)
|
|
1007
1007
|
throw new Error("Date resolve error");
|
|
1008
1008
|
if (t = +a[1], r = +a[2] - 1, n = +a[3], !a[4])
|
|
@@ -1012,27 +1012,27 @@ function Hr(e) {
|
|
|
1012
1012
|
m += "0";
|
|
1013
1013
|
m = +m;
|
|
1014
1014
|
}
|
|
1015
|
-
return a[9] && (_ = +a[10], l = +(a[11] || 0),
|
|
1015
|
+
return a[9] && (_ = +a[10], l = +(a[11] || 0), f = (_ * 60 + l) * 6e4, a[9] === "-" && (f = -f)), N = new Date(Date.UTC(t, r, n, i, o, u, m)), f && N.setTime(N.getTime() - f), N;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Hr(e) {
|
|
1018
1018
|
return e.toISOString();
|
|
1019
1019
|
}
|
|
1020
|
-
var
|
|
1020
|
+
var Wr = new z("tag:yaml.org,2002:timestamp", {
|
|
1021
1021
|
kind: "scalar",
|
|
1022
|
-
resolve:
|
|
1023
|
-
construct:
|
|
1022
|
+
resolve: Lr,
|
|
1023
|
+
construct: zr,
|
|
1024
1024
|
instanceOf: Date,
|
|
1025
|
-
represent:
|
|
1025
|
+
represent: Hr
|
|
1026
1026
|
});
|
|
1027
|
-
function
|
|
1027
|
+
function Jr(e) {
|
|
1028
1028
|
return e === "<<" || e === null;
|
|
1029
1029
|
}
|
|
1030
|
-
var
|
|
1030
|
+
var Yr = new z("tag:yaml.org,2002:merge", {
|
|
1031
1031
|
kind: "scalar",
|
|
1032
|
-
resolve:
|
|
1032
|
+
resolve: Jr
|
|
1033
1033
|
}), Oe = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1034
1034
|
\r`;
|
|
1035
|
-
function
|
|
1035
|
+
function Zr(e) {
|
|
1036
1036
|
if (e === null)
|
|
1037
1037
|
return !1;
|
|
1038
1038
|
var a, t, r = 0, n = e.length, i = Oe;
|
|
@@ -1044,37 +1044,37 @@ function Gr(e) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
return r % 8 === 0;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Gr(e) {
|
|
1048
1048
|
var a, t, r = e.replace(/[\r\n=]/g, ""), n = r.length, i = Oe, o = 0, u = [];
|
|
1049
1049
|
for (a = 0; a < n; a++)
|
|
1050
1050
|
a % 4 === 0 && a && (u.push(o >> 16 & 255), u.push(o >> 8 & 255), u.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(a));
|
|
1051
1051
|
return t = n % 4 * 6, t === 0 ? (u.push(o >> 16 & 255), u.push(o >> 8 & 255), u.push(o & 255)) : t === 18 ? (u.push(o >> 10 & 255), u.push(o >> 2 & 255)) : t === 12 && u.push(o >> 4 & 255), new Uint8Array(u);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function Qr(e) {
|
|
1054
1054
|
var a = "", t = 0, r, n, i = e.length, o = Oe;
|
|
1055
1055
|
for (r = 0; r < i; r++)
|
|
1056
1056
|
r % 3 === 0 && r && (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]), t = (t << 8) + e[r];
|
|
1057
1057
|
return n = i % 3, n === 0 ? (a += o[t >> 18 & 63], a += o[t >> 12 & 63], a += o[t >> 6 & 63], a += o[t & 63]) : n === 2 ? (a += o[t >> 10 & 63], a += o[t >> 4 & 63], a += o[t << 2 & 63], a += o[64]) : n === 1 && (a += o[t >> 2 & 63], a += o[t << 4 & 63], a += o[64], a += o[64]), a;
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function Xr(e) {
|
|
1060
1060
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1061
1061
|
}
|
|
1062
|
-
var
|
|
1062
|
+
var ea = new z("tag:yaml.org,2002:binary", {
|
|
1063
1063
|
kind: "scalar",
|
|
1064
|
-
resolve:
|
|
1065
|
-
construct:
|
|
1066
|
-
predicate:
|
|
1067
|
-
represent:
|
|
1068
|
-
}),
|
|
1069
|
-
function
|
|
1064
|
+
resolve: Zr,
|
|
1065
|
+
construct: Gr,
|
|
1066
|
+
predicate: Xr,
|
|
1067
|
+
represent: Qr
|
|
1068
|
+
}), ta = Object.prototype.hasOwnProperty, ra = Object.prototype.toString;
|
|
1069
|
+
function aa(e) {
|
|
1070
1070
|
if (e === null)
|
|
1071
1071
|
return !0;
|
|
1072
1072
|
var a = [], t, r, n, i, o, u = e;
|
|
1073
1073
|
for (t = 0, r = u.length; t < r; t += 1) {
|
|
1074
|
-
if (n = u[t], o = !1,
|
|
1074
|
+
if (n = u[t], o = !1, ra.call(n) !== "[object Object]")
|
|
1075
1075
|
return !1;
|
|
1076
1076
|
for (i in n)
|
|
1077
|
-
if (
|
|
1077
|
+
if (ta.call(n, i))
|
|
1078
1078
|
if (!o)
|
|
1079
1079
|
o = !0;
|
|
1080
1080
|
else
|
|
@@ -1088,26 +1088,26 @@ function na(e) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
return !0;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function na(e) {
|
|
1092
1092
|
return e !== null ? e : [];
|
|
1093
1093
|
}
|
|
1094
|
-
var
|
|
1094
|
+
var ia = new z("tag:yaml.org,2002:omap", {
|
|
1095
1095
|
kind: "sequence",
|
|
1096
|
-
resolve:
|
|
1097
|
-
construct:
|
|
1098
|
-
}),
|
|
1099
|
-
function
|
|
1096
|
+
resolve: aa,
|
|
1097
|
+
construct: na
|
|
1098
|
+
}), oa = Object.prototype.toString;
|
|
1099
|
+
function la(e) {
|
|
1100
1100
|
if (e === null)
|
|
1101
1101
|
return !0;
|
|
1102
1102
|
var a, t, r, n, i, o = e;
|
|
1103
1103
|
for (i = new Array(o.length), a = 0, t = o.length; a < t; a += 1) {
|
|
1104
|
-
if (r = o[a],
|
|
1104
|
+
if (r = o[a], oa.call(r) !== "[object Object]" || (n = Object.keys(r), n.length !== 1))
|
|
1105
1105
|
return !1;
|
|
1106
1106
|
i[a] = [n[0], r[n[0]]];
|
|
1107
1107
|
}
|
|
1108
1108
|
return !0;
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function sa(e) {
|
|
1111
1111
|
if (e === null)
|
|
1112
1112
|
return [];
|
|
1113
1113
|
var a, t, r, n, i, o = e;
|
|
@@ -1115,51 +1115,51 @@ function ca(e) {
|
|
|
1115
1115
|
r = o[a], n = Object.keys(r), i[a] = [n[0], r[n[0]]];
|
|
1116
1116
|
return i;
|
|
1117
1117
|
}
|
|
1118
|
-
var
|
|
1118
|
+
var ca = new z("tag:yaml.org,2002:pairs", {
|
|
1119
1119
|
kind: "sequence",
|
|
1120
|
-
resolve:
|
|
1121
|
-
construct:
|
|
1122
|
-
}),
|
|
1123
|
-
function
|
|
1120
|
+
resolve: la,
|
|
1121
|
+
construct: sa
|
|
1122
|
+
}), ua = Object.prototype.hasOwnProperty;
|
|
1123
|
+
function da(e) {
|
|
1124
1124
|
if (e === null)
|
|
1125
1125
|
return !0;
|
|
1126
1126
|
var a, t = e;
|
|
1127
1127
|
for (a in t)
|
|
1128
|
-
if (
|
|
1128
|
+
if (ua.call(t, a) && t[a] !== null)
|
|
1129
1129
|
return !1;
|
|
1130
1130
|
return !0;
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function pa(e) {
|
|
1133
1133
|
return e !== null ? e : {};
|
|
1134
1134
|
}
|
|
1135
|
-
var
|
|
1135
|
+
var fa = new z("tag:yaml.org,2002:set", {
|
|
1136
1136
|
kind: "mapping",
|
|
1137
|
-
resolve:
|
|
1138
|
-
construct:
|
|
1137
|
+
resolve: da,
|
|
1138
|
+
construct: pa
|
|
1139
1139
|
});
|
|
1140
|
-
|
|
1140
|
+
Vr.extend({
|
|
1141
1141
|
implicit: [
|
|
1142
|
-
|
|
1143
|
-
|
|
1142
|
+
Wr,
|
|
1143
|
+
Yr
|
|
1144
1144
|
],
|
|
1145
1145
|
explicit: [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1146
|
+
ea,
|
|
1147
|
+
ia,
|
|
1148
|
+
ca,
|
|
1149
|
+
fa
|
|
1150
1150
|
]
|
|
1151
1151
|
});
|
|
1152
1152
|
function De(e) {
|
|
1153
1153
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1154
1154
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1155
1155
|
}
|
|
1156
|
-
var
|
|
1156
|
+
var ma = new Array(256), ya = new Array(256);
|
|
1157
1157
|
for (var ce = 0; ce < 256; ce++)
|
|
1158
|
-
|
|
1159
|
-
const
|
|
1158
|
+
ma[ce] = De(ce) ? 1 : 0, ya[ce] = De(ce);
|
|
1159
|
+
const ga = {
|
|
1160
1160
|
class: "form-actions",
|
|
1161
1161
|
"data-testid": "form-actions"
|
|
1162
|
-
},
|
|
1162
|
+
}, va = /* @__PURE__ */ ee({
|
|
1163
1163
|
__name: "EntityBaseForm",
|
|
1164
1164
|
props: {
|
|
1165
1165
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1211,7 +1211,7 @@ const va = {
|
|
|
1211
1211
|
var t;
|
|
1212
1212
|
const r = a, n = e, i = Ze(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: u } = se.useErrors(), { axiosInstance: m } = se.useAxios({
|
|
1213
1213
|
headers: (t = n.config) == null ? void 0 : t.requestHeaders
|
|
1214
|
-
}),
|
|
1214
|
+
}), f = x(!1), _ = x(!1), l = x(""), N = S(() => n.canSubmit === !1 || n.isReadonly), k = S(() => {
|
|
1215
1215
|
var d, T;
|
|
1216
1216
|
if (!n.editId)
|
|
1217
1217
|
return "";
|
|
@@ -1224,25 +1224,25 @@ const va = {
|
|
|
1224
1224
|
}, $ = () => {
|
|
1225
1225
|
N.value || r("submit");
|
|
1226
1226
|
};
|
|
1227
|
-
return ne(() =>
|
|
1227
|
+
return ne(() => f.value, (d) => {
|
|
1228
1228
|
r("loading", d);
|
|
1229
1229
|
}, { immediate: !0 }), xe(async () => {
|
|
1230
1230
|
if (n.editId)
|
|
1231
1231
|
try {
|
|
1232
|
-
_.value = !1,
|
|
1232
|
+
_.value = !1, f.value = !0;
|
|
1233
1233
|
const { data: d } = await m.get(k.value);
|
|
1234
1234
|
r("fetch:success", d);
|
|
1235
1235
|
} catch (d) {
|
|
1236
1236
|
const T = u(d);
|
|
1237
1237
|
l.value = T.startsWith("code") ? o("baseForm.errors.edit") : T, _.value = !0, r("fetch:error", d);
|
|
1238
1238
|
} finally {
|
|
1239
|
-
|
|
1239
|
+
f.value = !1;
|
|
1240
1240
|
}
|
|
1241
1241
|
}), (d, T) => {
|
|
1242
1242
|
const E = j("KSkeleton"), w = j("KEmptyState"), g = j("KAlert"), A = j("KButton"), H = j("KCard");
|
|
1243
1243
|
return b(), V(H, { class: "kong-ui-entity-base-form" }, {
|
|
1244
|
-
default:
|
|
1245
|
-
|
|
1244
|
+
default: p(() => [
|
|
1245
|
+
f.value ? (b(), V(E, {
|
|
1246
1246
|
key: 0,
|
|
1247
1247
|
type: "form"
|
|
1248
1248
|
})) : _.value ? (b(), V(w, {
|
|
@@ -1252,7 +1252,7 @@ const va = {
|
|
|
1252
1252
|
"handle-click": D,
|
|
1253
1253
|
"is-error": !0
|
|
1254
1254
|
}, {
|
|
1255
|
-
message:
|
|
1255
|
+
message: p(() => [
|
|
1256
1256
|
K("h3", null, O(l.value), 1)
|
|
1257
1257
|
]),
|
|
1258
1258
|
_: 1
|
|
@@ -1269,7 +1269,7 @@ const va = {
|
|
|
1269
1269
|
appearance: "danger",
|
|
1270
1270
|
"data-testid": "form-error"
|
|
1271
1271
|
}, null, 8, ["alert-message"])) : X("", !0),
|
|
1272
|
-
K("div",
|
|
1272
|
+
K("div", ga, [
|
|
1273
1273
|
G(d.$slots, "form-actions", {}, () => [
|
|
1274
1274
|
C(A, {
|
|
1275
1275
|
appearance: "secondary",
|
|
@@ -1277,7 +1277,7 @@ const va = {
|
|
|
1277
1277
|
disabled: e.isReadonly,
|
|
1278
1278
|
type: "reset"
|
|
1279
1279
|
}, {
|
|
1280
|
-
default:
|
|
1280
|
+
default: p(() => [
|
|
1281
1281
|
J(O(s(o)("baseForm.actions.cancel")), 1)
|
|
1282
1282
|
]),
|
|
1283
1283
|
_: 1
|
|
@@ -1288,7 +1288,7 @@ const va = {
|
|
|
1288
1288
|
disabled: N.value,
|
|
1289
1289
|
type: "submit"
|
|
1290
1290
|
}, {
|
|
1291
|
-
default:
|
|
1291
|
+
default: p(() => [
|
|
1292
1292
|
J(O(s(o)("baseForm.actions.save")), 1)
|
|
1293
1293
|
]),
|
|
1294
1294
|
_: 1
|
|
@@ -1301,10 +1301,10 @@ const va = {
|
|
|
1301
1301
|
});
|
|
1302
1302
|
};
|
|
1303
1303
|
}
|
|
1304
|
-
}),
|
|
1304
|
+
}), ha = /* @__PURE__ */ ue(va, [["__scopeId", "data-v-448d8512"]]), ba = {
|
|
1305
1305
|
key: 0,
|
|
1306
1306
|
"data-testid": "first-col"
|
|
1307
|
-
},
|
|
1307
|
+
}, ka = /* @__PURE__ */ ee({
|
|
1308
1308
|
__name: "EntityBaseTableCell",
|
|
1309
1309
|
props: {
|
|
1310
1310
|
keyName: {
|
|
@@ -1333,8 +1333,8 @@ const va = {
|
|
|
1333
1333
|
i && (i.disconnect(), i = void 0);
|
|
1334
1334
|
}, u = () => {
|
|
1335
1335
|
var y, $, d;
|
|
1336
|
-
|
|
1337
|
-
}, m = x({}),
|
|
1336
|
+
f.value = ((y = r.value) == null ? void 0 : y.getBoundingClientRect().width) || 0, _.value = (($ = t.value) == null ? void 0 : $.clientWidth) || 0, l.value = ((d = m.value) == null ? void 0 : d.innerText) || "";
|
|
1337
|
+
}, m = x({}), f = x(0), _ = x(0), l = x(""), N = S(() => [r.value, t.value]), k = ne(
|
|
1338
1338
|
N,
|
|
1339
1339
|
(y) => {
|
|
1340
1340
|
if (n.value && (o(), "ResizeObserver" in window && window)) {
|
|
@@ -1348,7 +1348,7 @@ const va = {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
},
|
|
1350
1350
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
1351
|
-
), D = S(() => n.value ?
|
|
1351
|
+
), D = S(() => n.value ? f.value > _.value : !1);
|
|
1352
1352
|
return ut(() => {
|
|
1353
1353
|
u();
|
|
1354
1354
|
}), dt(() => {
|
|
@@ -1360,13 +1360,13 @@ const va = {
|
|
|
1360
1360
|
ref: m,
|
|
1361
1361
|
class: "content-wrapper"
|
|
1362
1362
|
}, [
|
|
1363
|
-
n.value ? (b(), F("span",
|
|
1363
|
+
n.value ? (b(), F("span", ba, [
|
|
1364
1364
|
C(d, {
|
|
1365
1365
|
label: D.value ? l.value : "",
|
|
1366
1366
|
"max-width": "300",
|
|
1367
1367
|
placement: "bottomStart"
|
|
1368
1368
|
}, {
|
|
1369
|
-
default:
|
|
1369
|
+
default: p(() => [
|
|
1370
1370
|
G(y.$slots, "default", {}, void 0, !0)
|
|
1371
1371
|
]),
|
|
1372
1372
|
_: 3
|
|
@@ -1375,10 +1375,10 @@ const va = {
|
|
|
1375
1375
|
], 512);
|
|
1376
1376
|
};
|
|
1377
1377
|
}
|
|
1378
|
-
}),
|
|
1378
|
+
}), wa = /* @__PURE__ */ ue(ka, [["__scopeId", "data-v-e42a20c9"]]), Sa = { class: "toolbar-container" }, _a = {
|
|
1379
1379
|
key: 0,
|
|
1380
1380
|
class: "toolbar-button-container"
|
|
1381
|
-
},
|
|
1381
|
+
}, Ia = ["data-testid"], Ca = /* @__PURE__ */ ee({
|
|
1382
1382
|
__name: "EntityBaseTable",
|
|
1383
1383
|
props: {
|
|
1384
1384
|
// table header configuration
|
|
@@ -1512,7 +1512,7 @@ const va = {
|
|
|
1512
1512
|
key: "actions",
|
|
1513
1513
|
hideLabel: !0
|
|
1514
1514
|
}), g;
|
|
1515
|
-
}),
|
|
1515
|
+
}), f = (g) => ({
|
|
1516
1516
|
"data-rowid": g.id,
|
|
1517
1517
|
"data-testid": g.name,
|
|
1518
1518
|
...t.rowAttributes(g)
|
|
@@ -1537,7 +1537,7 @@ const va = {
|
|
|
1537
1537
|
r("click:row", A);
|
|
1538
1538
|
}), $ = (g) => {
|
|
1539
1539
|
r("sort", g);
|
|
1540
|
-
}, { setTablePreferences: d, getTablePreferences: T } =
|
|
1540
|
+
}, { setTablePreferences: d, getTablePreferences: T } = Tt(), E = S(() => {
|
|
1541
1541
|
const g = T(t.preferencesStorageKey);
|
|
1542
1542
|
return {
|
|
1543
1543
|
...t.initialFetcherParams,
|
|
@@ -1552,7 +1552,7 @@ const va = {
|
|
|
1552
1552
|
class: "kong-ui-entity-base-table",
|
|
1553
1553
|
title: e.title
|
|
1554
1554
|
}, {
|
|
1555
|
-
default:
|
|
1555
|
+
default: p(() => [
|
|
1556
1556
|
C(L, {
|
|
1557
1557
|
ref_key: "tableRefs",
|
|
1558
1558
|
ref: _,
|
|
@@ -1578,24 +1578,24 @@ const va = {
|
|
|
1578
1578
|
"initial-fetcher-params": E.value,
|
|
1579
1579
|
"is-loading": e.isLoading,
|
|
1580
1580
|
"pagination-type": e.paginationType,
|
|
1581
|
-
"row-attrs":
|
|
1581
|
+
"row-attrs": f,
|
|
1582
1582
|
"search-input": e.query,
|
|
1583
1583
|
onKtableEmptyStateCtaClicked: k,
|
|
1584
1584
|
"onRow:click": y.value,
|
|
1585
1585
|
onSort: A[0] || (A[0] = (q) => $(q)),
|
|
1586
1586
|
"onUpdate:tablePreferences": w
|
|
1587
1587
|
}, We({
|
|
1588
|
-
toolbar:
|
|
1589
|
-
me(K("div",
|
|
1588
|
+
toolbar: p(({ state: q }) => [
|
|
1589
|
+
me(K("div", Sa, [
|
|
1590
1590
|
G(g.$slots, "toolbar-filter", {}, void 0, !0),
|
|
1591
|
-
g.$slots["toolbar-button"] ? (b(), F("div",
|
|
1591
|
+
g.$slots["toolbar-button"] ? (b(), F("div", _a, [
|
|
1592
1592
|
G(g.$slots, "toolbar-button", {}, void 0, !0)
|
|
1593
1593
|
])) : X("", !0)
|
|
1594
1594
|
], 512), [
|
|
1595
1595
|
[ye, u(q)]
|
|
1596
1596
|
])
|
|
1597
1597
|
]),
|
|
1598
|
-
actions:
|
|
1598
|
+
actions: p(({ row: q, rowKey: Y, rowValue: te }) => [
|
|
1599
1599
|
K("div", {
|
|
1600
1600
|
class: "actions-container",
|
|
1601
1601
|
"data-testid": q.name
|
|
@@ -1604,22 +1604,22 @@ const va = {
|
|
|
1604
1604
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
1605
1605
|
width: e.dropdownMenuWidth
|
|
1606
1606
|
}, {
|
|
1607
|
-
items:
|
|
1607
|
+
items: p(() => [
|
|
1608
1608
|
G(g.$slots, "actions", {
|
|
1609
1609
|
row: q,
|
|
1610
1610
|
rowKey: Y,
|
|
1611
1611
|
rowValue: te
|
|
1612
1612
|
}, void 0, !0)
|
|
1613
1613
|
]),
|
|
1614
|
-
default:
|
|
1614
|
+
default: p(() => [
|
|
1615
1615
|
C(v, {
|
|
1616
1616
|
class: "actions-trigger",
|
|
1617
1617
|
"data-testid": "overflow-actions-button",
|
|
1618
1618
|
size: "small"
|
|
1619
1619
|
}, {
|
|
1620
|
-
icon:
|
|
1620
|
+
icon: p(() => [
|
|
1621
1621
|
C(H, {
|
|
1622
|
-
color: s(
|
|
1622
|
+
color: s(Qt),
|
|
1623
1623
|
icon: "more",
|
|
1624
1624
|
size: "16"
|
|
1625
1625
|
}, null, 8, ["color"])
|
|
@@ -1629,18 +1629,18 @@ const va = {
|
|
|
1629
1629
|
]),
|
|
1630
1630
|
_: 2
|
|
1631
1631
|
}, 1032, ["width"])
|
|
1632
|
-
], 8,
|
|
1632
|
+
], 8, Ia)
|
|
1633
1633
|
]),
|
|
1634
1634
|
_: 2
|
|
1635
1635
|
}, [
|
|
1636
1636
|
Te(e.tableHeaders, (q, Y) => ({
|
|
1637
1637
|
name: Y,
|
|
1638
|
-
fn:
|
|
1639
|
-
C(
|
|
1638
|
+
fn: p(({ row: te, rowKey: de, rowValue: re }) => [
|
|
1639
|
+
C(wa, {
|
|
1640
1640
|
"key-name": String(Y),
|
|
1641
1641
|
"row-el": l(te)
|
|
1642
1642
|
}, {
|
|
1643
|
-
default:
|
|
1643
|
+
default: p(() => [
|
|
1644
1644
|
G(g.$slots, Y, {
|
|
1645
1645
|
row: te,
|
|
1646
1646
|
rowKey: de,
|
|
@@ -1659,13 +1659,13 @@ const va = {
|
|
|
1659
1659
|
}, 8, ["title"]);
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
|
-
}),
|
|
1662
|
+
}), xa = /* @__PURE__ */ ue(Ca, [["__scopeId", "data-v-57b5a97b"]]), Ta = {
|
|
1663
1663
|
key: 0,
|
|
1664
1664
|
class: "kong-ui-entity-delete-error"
|
|
1665
|
-
},
|
|
1665
|
+
}, Ea = {
|
|
1666
1666
|
key: 1,
|
|
1667
1667
|
class: "description"
|
|
1668
|
-
},
|
|
1668
|
+
}, Na = /* @__PURE__ */ ee({
|
|
1669
1669
|
__name: "EntityDeleteModal",
|
|
1670
1670
|
props: {
|
|
1671
1671
|
visible: {
|
|
@@ -1709,7 +1709,7 @@ const va = {
|
|
|
1709
1709
|
}, u = () => {
|
|
1710
1710
|
n("proceed");
|
|
1711
1711
|
};
|
|
1712
|
-
return (m,
|
|
1712
|
+
return (m, f) => {
|
|
1713
1713
|
const _ = j("KAlert"), l = j("KPrompt");
|
|
1714
1714
|
return b(), V(l, {
|
|
1715
1715
|
"action-button-text": "Yes, delete",
|
|
@@ -1722,10 +1722,10 @@ const va = {
|
|
|
1722
1722
|
onCanceled: o,
|
|
1723
1723
|
onProceed: u
|
|
1724
1724
|
}, {
|
|
1725
|
-
"body-content":
|
|
1726
|
-
e.error ? (b(), F("div",
|
|
1725
|
+
"body-content": p(() => [
|
|
1726
|
+
e.error ? (b(), F("div", Ta, [
|
|
1727
1727
|
C(_, { appearance: "danger" }, {
|
|
1728
|
-
alertMessage:
|
|
1728
|
+
alertMessage: p(() => [
|
|
1729
1729
|
J(O(e.error), 1)
|
|
1730
1730
|
]),
|
|
1731
1731
|
_: 1
|
|
@@ -1736,20 +1736,20 @@ const va = {
|
|
|
1736
1736
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
1737
1737
|
tag: "p"
|
|
1738
1738
|
}, We({
|
|
1739
|
-
entityType:
|
|
1739
|
+
entityType: p(() => [
|
|
1740
1740
|
J(O(r.entityType), 1)
|
|
1741
1741
|
]),
|
|
1742
1742
|
_: 2
|
|
1743
1743
|
}, [
|
|
1744
1744
|
r.entityName ? {
|
|
1745
1745
|
name: "entityName",
|
|
1746
|
-
fn:
|
|
1746
|
+
fn: p(() => [
|
|
1747
1747
|
K("strong", null, O(r.entityName), 1)
|
|
1748
1748
|
]),
|
|
1749
1749
|
key: "0"
|
|
1750
1750
|
} : void 0
|
|
1751
1751
|
]), 1032, ["keypath"]),
|
|
1752
|
-
r.description || m.$slots.description ? (b(), F("div",
|
|
1752
|
+
r.description || m.$slots.description ? (b(), F("div", Ea, [
|
|
1753
1753
|
G(m.$slots, "description", {}, () => [
|
|
1754
1754
|
K("p", null, O(r.description), 1)
|
|
1755
1755
|
], !0)
|
|
@@ -1759,13 +1759,13 @@ const va = {
|
|
|
1759
1759
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
1760
1760
|
};
|
|
1761
1761
|
}
|
|
1762
|
-
}),
|
|
1762
|
+
}), $a = /* @__PURE__ */ ue(Na, [["__scopeId", "data-v-1c9a2a07"]]), Aa = {
|
|
1763
1763
|
fill: "none",
|
|
1764
1764
|
height: "20",
|
|
1765
1765
|
viewBox: "0 0 20 20",
|
|
1766
1766
|
width: "20",
|
|
1767
1767
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1768
|
-
},
|
|
1768
|
+
}, Oa = {
|
|
1769
1769
|
id: "mask0_180_20349",
|
|
1770
1770
|
height: "20",
|
|
1771
1771
|
maskUnits: "userSpaceOnUse",
|
|
@@ -1773,35 +1773,35 @@ const va = {
|
|
|
1773
1773
|
width: "20",
|
|
1774
1774
|
x: "0",
|
|
1775
1775
|
y: "0"
|
|
1776
|
-
},
|
|
1776
|
+
}, Ma = ["fill"], Ka = { mask: "url(#mask0_180_20349)" }, ja = ["fill"], Ve = /* @__PURE__ */ ee({
|
|
1777
1777
|
__name: "IconFilter",
|
|
1778
1778
|
props: {
|
|
1779
1779
|
color: {
|
|
1780
1780
|
type: String,
|
|
1781
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
1781
|
+
default: `var(--kong-ui-entity-filter-color, ${Gt})`
|
|
1782
1782
|
}
|
|
1783
1783
|
},
|
|
1784
1784
|
setup(e) {
|
|
1785
|
-
return (a, t) => (b(), F("svg",
|
|
1786
|
-
K("mask",
|
|
1785
|
+
return (a, t) => (b(), F("svg", Aa, [
|
|
1786
|
+
K("mask", Oa, [
|
|
1787
1787
|
K("rect", {
|
|
1788
1788
|
fill: e.color,
|
|
1789
1789
|
height: "20",
|
|
1790
1790
|
width: "20"
|
|
1791
|
-
}, null, 8,
|
|
1791
|
+
}, null, 8, Ma)
|
|
1792
1792
|
]),
|
|
1793
|
-
K("g",
|
|
1793
|
+
K("g", Ka, [
|
|
1794
1794
|
K("path", {
|
|
1795
1795
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
1796
1796
|
fill: e.color
|
|
1797
|
-
}, null, 8,
|
|
1797
|
+
}, null, 8, ja)
|
|
1798
1798
|
])
|
|
1799
1799
|
]));
|
|
1800
1800
|
}
|
|
1801
|
-
}),
|
|
1801
|
+
}), qa = {
|
|
1802
1802
|
key: 1,
|
|
1803
1803
|
class: "kong-ui-entity-filter"
|
|
1804
|
-
},
|
|
1804
|
+
}, Pa = { class: "menu-item-title" }, Ra = { class: "menu-item-indicator" }, Fa = { class: "menu-item-body" }, Ua = ["for"], Ba = { class: "menu-item-buttons" }, Da = { class: "filter-clear-button-container" }, Va = /* @__PURE__ */ ee({
|
|
1805
1805
|
__name: "EntityFilter",
|
|
1806
1806
|
props: {
|
|
1807
1807
|
// filter config, either exact match or fuzzy match
|
|
@@ -1838,7 +1838,7 @@ const va = {
|
|
|
1838
1838
|
o.value[E] = T;
|
|
1839
1839
|
});
|
|
1840
1840
|
});
|
|
1841
|
-
const
|
|
1841
|
+
const f = () => {
|
|
1842
1842
|
i.value = !i.value;
|
|
1843
1843
|
}, _ = (d) => {
|
|
1844
1844
|
n("update:modelValue", d);
|
|
@@ -1873,17 +1873,17 @@ const va = {
|
|
|
1873
1873
|
placeholder: e.config.placeholder,
|
|
1874
1874
|
"onUpdate:modelValue": _
|
|
1875
1875
|
}, {
|
|
1876
|
-
before:
|
|
1876
|
+
before: p(() => [
|
|
1877
1877
|
C(Ve)
|
|
1878
1878
|
]),
|
|
1879
1879
|
_: 1
|
|
1880
|
-
}, 8, ["model-value", "placeholder"])) : (b(), F("div",
|
|
1880
|
+
}, 8, ["model-value", "placeholder"])) : (b(), F("div", qa, [
|
|
1881
1881
|
C(w, {
|
|
1882
1882
|
appearance: "tertiary",
|
|
1883
1883
|
"data-testid": "filter-button",
|
|
1884
|
-
onClick:
|
|
1884
|
+
onClick: f
|
|
1885
1885
|
}, {
|
|
1886
|
-
default:
|
|
1886
|
+
default: p(() => [
|
|
1887
1887
|
C(Ve),
|
|
1888
1888
|
J(" " + O(s(t)("filter.filterButtonText")) + " " + O(u.value.length > 0 ? `(${u.value.length})` : ""), 1)
|
|
1889
1889
|
]),
|
|
@@ -1891,34 +1891,34 @@ const va = {
|
|
|
1891
1891
|
}),
|
|
1892
1892
|
me(K("div", {
|
|
1893
1893
|
class: "kong-ui-entity-filter-backdrop",
|
|
1894
|
-
onClick:
|
|
1894
|
+
onClick: f
|
|
1895
1895
|
}, null, 512), [
|
|
1896
1896
|
[ye, i.value]
|
|
1897
1897
|
]),
|
|
1898
1898
|
me(C(H, { class: "kong-ui-entity-filter-menu" }, {
|
|
1899
|
-
body:
|
|
1899
|
+
body: p(() => [
|
|
1900
1900
|
(b(!0), F(Je, null, Te(m.value, (v, U) => (b(), V(A, {
|
|
1901
1901
|
key: v.value,
|
|
1902
1902
|
"data-testid": v.value,
|
|
1903
1903
|
expandable: "",
|
|
1904
1904
|
"last-menu-item": U === m.value.length - 1
|
|
1905
1905
|
}, {
|
|
1906
|
-
itemTitle:
|
|
1907
|
-
K("span",
|
|
1906
|
+
itemTitle: p(() => [
|
|
1907
|
+
K("span", Pa, [
|
|
1908
1908
|
J(O(v.label) + " ", 1),
|
|
1909
|
-
me(K("span",
|
|
1909
|
+
me(K("span", Ra, null, 512), [
|
|
1910
1910
|
[ye, u.value.includes(v.value)]
|
|
1911
1911
|
])
|
|
1912
1912
|
])
|
|
1913
1913
|
]),
|
|
1914
|
-
itemBody:
|
|
1914
|
+
itemBody: p(() => {
|
|
1915
1915
|
var L, P;
|
|
1916
1916
|
return [
|
|
1917
|
-
K("div",
|
|
1917
|
+
K("div", Fa, [
|
|
1918
1918
|
K("label", {
|
|
1919
1919
|
class: "menu-item-label",
|
|
1920
1920
|
for: l(v.value)
|
|
1921
|
-
}, O(s(t)("filter.fieldLabel")), 9,
|
|
1921
|
+
}, O(s(t)("filter.fieldLabel")), 9, Ua),
|
|
1922
1922
|
((P = (L = e.config.schema) == null ? void 0 : L[v.value]) == null ? void 0 : P.type) === "select" ? (b(), V(g, {
|
|
1923
1923
|
key: 0,
|
|
1924
1924
|
id: l(v.value),
|
|
@@ -1937,14 +1937,14 @@ const va = {
|
|
|
1937
1937
|
type: k(v.value)
|
|
1938
1938
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
1939
1939
|
]),
|
|
1940
|
-
K("div",
|
|
1940
|
+
K("div", Ba, [
|
|
1941
1941
|
C(w, {
|
|
1942
1942
|
appearance: "tertiary",
|
|
1943
1943
|
"data-testid": "apply-filter",
|
|
1944
1944
|
size: "small",
|
|
1945
1945
|
onClick: T[0] || (T[0] = (q) => $(!0))
|
|
1946
1946
|
}, {
|
|
1947
|
-
default:
|
|
1947
|
+
default: p(() => [
|
|
1948
1948
|
J(O(s(t)("filter.applyButtonText")), 1)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 1
|
|
@@ -1955,7 +1955,7 @@ const va = {
|
|
|
1955
1955
|
size: "small",
|
|
1956
1956
|
onClick: (q) => D(v.value)
|
|
1957
1957
|
}, {
|
|
1958
|
-
default:
|
|
1958
|
+
default: p(() => [
|
|
1959
1959
|
J(O(s(t)("filter.clearButtonText")), 1)
|
|
1960
1960
|
]),
|
|
1961
1961
|
_: 2
|
|
@@ -1966,14 +1966,14 @@ const va = {
|
|
|
1966
1966
|
_: 2
|
|
1967
1967
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
1968
1968
|
]),
|
|
1969
|
-
actionButton:
|
|
1970
|
-
K("div",
|
|
1969
|
+
actionButton: p(() => [
|
|
1970
|
+
K("div", Da, [
|
|
1971
1971
|
C(w, {
|
|
1972
1972
|
appearance: "tertiary",
|
|
1973
1973
|
size: "small",
|
|
1974
1974
|
onClick: y
|
|
1975
1975
|
}, {
|
|
1976
|
-
default:
|
|
1976
|
+
default: p(() => [
|
|
1977
1977
|
J(O(s(t)("filter.clearAllButtonText")), 1)
|
|
1978
1978
|
]),
|
|
1979
1979
|
_: 1
|
|
@@ -1987,7 +1987,7 @@ const va = {
|
|
|
1987
1987
|
]));
|
|
1988
1988
|
};
|
|
1989
1989
|
}
|
|
1990
|
-
}),
|
|
1990
|
+
}), La = /* @__PURE__ */ ue(Va, [["__scopeId", "data-v-15962ee2"]]), Ie = /* @__PURE__ */ ee({
|
|
1991
1991
|
__name: "PermissionsWrapper",
|
|
1992
1992
|
props: {
|
|
1993
1993
|
/**
|
|
@@ -2017,16 +2017,16 @@ const va = {
|
|
|
2017
2017
|
isAllowed: t.value
|
|
2018
2018
|
}) : X("", !0);
|
|
2019
2019
|
}
|
|
2020
|
-
}),
|
|
2020
|
+
}), za = { class: "form-section-wrapper" }, Ha = {
|
|
2021
2021
|
key: 0,
|
|
2022
2022
|
class: "form-section-title"
|
|
2023
|
-
},
|
|
2023
|
+
}, Wa = {
|
|
2024
2024
|
key: 1,
|
|
2025
2025
|
class: "form-section-description"
|
|
2026
|
-
},
|
|
2026
|
+
}, Ja = {
|
|
2027
2027
|
key: 2,
|
|
2028
2028
|
class: "form-section-footer"
|
|
2029
|
-
},
|
|
2029
|
+
}, Ya = { class: "form-section-content" }, Za = /* @__PURE__ */ ee({
|
|
2030
2030
|
__name: "EntityFormSection",
|
|
2031
2031
|
props: {
|
|
2032
2032
|
title: {
|
|
@@ -2055,48 +2055,48 @@ const va = {
|
|
|
2055
2055
|
return (t, r) => (b(), F("fieldset", {
|
|
2056
2056
|
class: ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
2057
2057
|
}, [
|
|
2058
|
-
K("div",
|
|
2058
|
+
K("div", za, [
|
|
2059
2059
|
e.hideInfoHeader ? X("", !0) : (b(), F("div", {
|
|
2060
2060
|
key: 0,
|
|
2061
2061
|
class: ke(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
2062
2062
|
}, [
|
|
2063
|
-
e.title ? (b(), F("h4",
|
|
2064
|
-
e.description || s(a).description ? (b(), F("div",
|
|
2063
|
+
e.title ? (b(), F("h4", Ha, O(e.title), 1)) : X("", !0),
|
|
2064
|
+
e.description || s(a).description ? (b(), F("div", Wa, [
|
|
2065
2065
|
G(t.$slots, "description", {}, () => [
|
|
2066
2066
|
K("p", null, O(e.description), 1)
|
|
2067
2067
|
], !0)
|
|
2068
2068
|
])) : X("", !0),
|
|
2069
|
-
s(a).footer ? (b(), F("div",
|
|
2069
|
+
s(a).footer ? (b(), F("div", Ja, [
|
|
2070
2070
|
G(t.$slots, "footer", {}, void 0, !0)
|
|
2071
2071
|
])) : X("", !0)
|
|
2072
2072
|
], 2)),
|
|
2073
|
-
K("div",
|
|
2073
|
+
K("div", Ya, [
|
|
2074
2074
|
G(t.$slots, "default", {}, void 0, !0)
|
|
2075
2075
|
])
|
|
2076
2076
|
])
|
|
2077
2077
|
], 2));
|
|
2078
2078
|
}
|
|
2079
|
-
}), Le = /* @__PURE__ */ ue(
|
|
2079
|
+
}), Le = /* @__PURE__ */ ue(Za, [["__scopeId", "data-v-3565daa7"]]), { useAxios: lt, useDeleteUrlBuilder: Ga, useErrors: Qa, useExternalLinkCreator: On, useFetchUrlBuilder: Mn, useFetcher: Xa, useDebouncedFilter: en, useStringHelpers: Kn, useHelpers: jn, useGatewayFeatureSupported: qn, useTruncationDetector: Pn } = se, tn = {
|
|
2080
2080
|
fail: "Failed to copy id to clipboard",
|
|
2081
2081
|
success: {
|
|
2082
2082
|
prefix: "Successfully",
|
|
2083
2083
|
content: " copied to clipboard"
|
|
2084
2084
|
}
|
|
2085
|
-
},
|
|
2086
|
-
message:
|
|
2087
|
-
iconTitle:
|
|
2088
|
-
},
|
|
2085
|
+
}, rn = "Copy to clipboard", an = {
|
|
2086
|
+
message: tn,
|
|
2087
|
+
iconTitle: rn
|
|
2088
|
+
}, nn = "kong-ui-copy-uuid-notify", ze = "24px", on = (e, a) => {
|
|
2089
2089
|
const t = e.__vccOpts || e;
|
|
2090
2090
|
for (const [r, n] of a)
|
|
2091
2091
|
t[r] = n;
|
|
2092
2092
|
return t;
|
|
2093
|
-
},
|
|
2093
|
+
}, ln = (e) => (mt("data-v-ac7fcfb4"), e = e(), yt(), e), sn = ["aria-hidden"], cn = {
|
|
2094
2094
|
key: 0,
|
|
2095
2095
|
"data-testid": "kui-icon-svg-title"
|
|
2096
|
-
},
|
|
2096
|
+
}, un = /* @__PURE__ */ ln(() => /* @__PURE__ */ K("path", {
|
|
2097
2097
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
2098
2098
|
fill: "currentColor"
|
|
2099
|
-
}, null, -1)),
|
|
2099
|
+
}, null, -1)), dn = /* @__PURE__ */ ee({
|
|
2100
2100
|
__name: "CopyIcon",
|
|
2101
2101
|
props: {
|
|
2102
2102
|
/** The accessibility text provided to screen readers */
|
|
@@ -2165,13 +2165,13 @@ const va = {
|
|
|
2165
2165
|
lineHeight: "0",
|
|
2166
2166
|
width: t.value
|
|
2167
2167
|
}));
|
|
2168
|
-
return (n, i) => (b(), V(
|
|
2168
|
+
return (n, i) => (b(), V(we(e.as), {
|
|
2169
2169
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2170
2170
|
class: "kui-icon copy-icon",
|
|
2171
2171
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
2172
2172
|
style: ft(r.value)
|
|
2173
2173
|
}, {
|
|
2174
|
-
default:
|
|
2174
|
+
default: p(() => [
|
|
2175
2175
|
(b(), F("svg", {
|
|
2176
2176
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2177
2177
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
@@ -2182,14 +2182,14 @@ const va = {
|
|
|
2182
2182
|
width: "100%",
|
|
2183
2183
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2184
2184
|
}, [
|
|
2185
|
-
e.title ? (b(), F("title",
|
|
2186
|
-
|
|
2187
|
-
], 8,
|
|
2185
|
+
e.title ? (b(), F("title", cn, O(e.title), 1)) : X("", !0),
|
|
2186
|
+
un
|
|
2187
|
+
], 8, sn))
|
|
2188
2188
|
]),
|
|
2189
2189
|
_: 1
|
|
2190
2190
|
}, 8, ["aria-hidden", "style"]));
|
|
2191
2191
|
}
|
|
2192
|
-
}),
|
|
2192
|
+
}), pn = /* @__PURE__ */ on(dn, [["__scopeId", "data-v-ac7fcfb4"]]), fn = "16px", mn = { class: "kong-ui-copy-uuid" }, yn = ["onClick"], He = 15, gn = /* @__PURE__ */ ee({
|
|
2193
2193
|
__name: "CopyUuid",
|
|
2194
2194
|
props: {
|
|
2195
2195
|
uuid: {
|
|
@@ -2233,14 +2233,14 @@ const va = {
|
|
|
2233
2233
|
},
|
|
2234
2234
|
emits: ["success", "error"],
|
|
2235
2235
|
setup(e, { emit: a }) {
|
|
2236
|
-
const { t } = Ee("en-us",
|
|
2236
|
+
const { t } = Ee("en-us", an), r = e, n = a, i = r.notify || pt(nn, () => {
|
|
2237
2237
|
}), o = S(() => r.idTooltip ? {
|
|
2238
2238
|
label: r.idTooltip,
|
|
2239
2239
|
positionFixed: !0,
|
|
2240
2240
|
placement: "bottomStart"
|
|
2241
2241
|
} : {
|
|
2242
2242
|
title: r.uuid
|
|
2243
|
-
}), u = S(() => !!(r.tooltip && r.successTooltip)), m = x(r.tooltip),
|
|
2243
|
+
}), u = S(() => !!(r.tooltip && r.successTooltip)), m = x(r.tooltip), f = S(() => r.tooltip ? {
|
|
2244
2244
|
label: m.value,
|
|
2245
2245
|
positionFixed: !0,
|
|
2246
2246
|
maxWidth: "500px",
|
|
@@ -2269,9 +2269,9 @@ const va = {
|
|
|
2269
2269
|
};
|
|
2270
2270
|
return (k, D) => {
|
|
2271
2271
|
const y = j("KClipboardProvider");
|
|
2272
|
-
return b(), F("div",
|
|
2273
|
-
e.format !== "hidden" ? (b(), V(
|
|
2274
|
-
default:
|
|
2272
|
+
return b(), F("div", mn, [
|
|
2273
|
+
e.format !== "hidden" ? (b(), V(we(e.idTooltip ? "KTooltip" : "div"), Me({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
2274
|
+
default: p(() => [
|
|
2275
2275
|
K("div", {
|
|
2276
2276
|
class: ke([
|
|
2277
2277
|
"uuid-container",
|
|
@@ -2282,24 +2282,24 @@ const va = {
|
|
|
2282
2282
|
]),
|
|
2283
2283
|
_: 1
|
|
2284
2284
|
}, 16)) : X("", !0),
|
|
2285
|
-
(b(), V(
|
|
2286
|
-
default:
|
|
2285
|
+
(b(), V(we(e.tooltip ? "KTooltip" : "div"), Me(f.value, { class: "uuid-icon-wrapper" }), {
|
|
2286
|
+
default: p(() => [
|
|
2287
2287
|
C(y, null, {
|
|
2288
|
-
default:
|
|
2288
|
+
default: p(({ copyToClipboard: $ }) => [
|
|
2289
2289
|
K("span", {
|
|
2290
2290
|
"data-testid": "copy-to-clipboard",
|
|
2291
2291
|
role: "button",
|
|
2292
2292
|
tabindex: "0",
|
|
2293
2293
|
onClick: be((d) => N($), ["stop"])
|
|
2294
2294
|
}, [
|
|
2295
|
-
C(s(
|
|
2295
|
+
C(s(pn), {
|
|
2296
2296
|
class: "uuid-icon",
|
|
2297
2297
|
color: e.iconColor,
|
|
2298
2298
|
decorative: !!e.tooltip,
|
|
2299
|
-
size: s(
|
|
2299
|
+
size: s(fn),
|
|
2300
2300
|
title: s(t)("iconTitle")
|
|
2301
2301
|
}, null, 8, ["color", "decorative", "size", "title"])
|
|
2302
|
-
], 8,
|
|
2302
|
+
], 8, yn)
|
|
2303
2303
|
]),
|
|
2304
2304
|
_: 1
|
|
2305
2305
|
})
|
|
@@ -2309,12 +2309,12 @@ const va = {
|
|
|
2309
2309
|
]);
|
|
2310
2310
|
};
|
|
2311
2311
|
}
|
|
2312
|
-
}),
|
|
2312
|
+
}), vn = (e, a) => {
|
|
2313
2313
|
const t = e.__vccOpts || e;
|
|
2314
2314
|
for (const [r, n] of a)
|
|
2315
2315
|
t[r] = n;
|
|
2316
2316
|
return t;
|
|
2317
|
-
},
|
|
2317
|
+
}, hn = /* @__PURE__ */ vn(gn, [["__scopeId", "data-v-0c07874b"]]), bn = { class: "kong-ui-entities-snis-list" }, kn = { key: 1 }, wn = { key: 1 }, Sn = /* @__PURE__ */ ee({
|
|
2318
2318
|
__name: "SniList",
|
|
2319
2319
|
props: {
|
|
2320
2320
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2374,11 +2374,11 @@ const va = {
|
|
|
2374
2374
|
});
|
|
2375
2375
|
}, { axiosInstance: o } = lt({
|
|
2376
2376
|
headers: (pe = r.config) == null ? void 0 : pe.requestHeaders
|
|
2377
|
-
}), u = x(1), m = S(() => r.config.app !== "kongManager" || !!r.config.disableSorting),
|
|
2377
|
+
}), u = x(1), m = S(() => r.config.app !== "kongManager" || !!r.config.disableSorting), f = {
|
|
2378
2378
|
name: { label: n("snis.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
2379
2379
|
certificate: { label: n("snis.list.table_headers.certificate_id"), sortable: !1 },
|
|
2380
2380
|
tags: { label: n("snis.list.table_headers.tags"), sortable: !1 }
|
|
2381
|
-
}, _ =
|
|
2381
|
+
}, _ = f, l = (h) => ({
|
|
2382
2382
|
style: {
|
|
2383
2383
|
maxWidth: h.headerKey === "name" ? "250px" : h.headerKey === "certificate" ? "350px" : null
|
|
2384
2384
|
}
|
|
@@ -2393,13 +2393,13 @@ const va = {
|
|
|
2393
2393
|
isExactMatch: h,
|
|
2394
2394
|
placeholder: n("search.placeholder")
|
|
2395
2395
|
};
|
|
2396
|
-
const { name: M } =
|
|
2396
|
+
const { name: M } = f;
|
|
2397
2397
|
return {
|
|
2398
2398
|
isExactMatch: h,
|
|
2399
2399
|
fields: { name: M },
|
|
2400
2400
|
schema: r.config.filterSchema
|
|
2401
2401
|
};
|
|
2402
|
-
}), { fetcher: y, fetcherState: $ } =
|
|
2402
|
+
}), { fetcher: y, fetcherState: $ } = Xa(r.config, N.value), d = () => {
|
|
2403
2403
|
k.value = "";
|
|
2404
2404
|
}, T = () => {
|
|
2405
2405
|
u.value++;
|
|
@@ -2439,7 +2439,7 @@ const va = {
|
|
|
2439
2439
|
}, H = (h) => ({
|
|
2440
2440
|
label: n("actions.edit"),
|
|
2441
2441
|
to: r.config.getEditRoute(h)
|
|
2442
|
-
}), v = x(void 0), U = x(!1), L = x(!1), P = x(""), q =
|
|
2442
|
+
}), v = x(void 0), U = x(!1), L = x(!1), P = x(""), q = Ga(r.config, N.value), Y = (h) => {
|
|
2443
2443
|
v.value = h, U.value = !0;
|
|
2444
2444
|
}, te = () => {
|
|
2445
2445
|
U.value = !1, v.value = void 0;
|
|
@@ -2469,8 +2469,8 @@ const va = {
|
|
|
2469
2469
|
await r.canCreate() && (w.value.title = n("snis.list.empty_state.title"), w.value.ctaText = n("actions.create"));
|
|
2470
2470
|
}), (h, M) => {
|
|
2471
2471
|
const c = j("KButton"), I = j("KBadge"), B = j("KTruncate"), ae = j("KDropdownItem"), W = j("KClipboardProvider");
|
|
2472
|
-
return b(), F("div",
|
|
2473
|
-
C(s(
|
|
2472
|
+
return b(), F("div", bn, [
|
|
2473
|
+
C(s(xa), {
|
|
2474
2474
|
"cache-identifier": e.cacheIdentifier,
|
|
2475
2475
|
"cell-attributes": l,
|
|
2476
2476
|
"disable-pagination-page-jump": "",
|
|
@@ -2489,78 +2489,80 @@ const va = {
|
|
|
2489
2489
|
onClearSearchInput: d,
|
|
2490
2490
|
onSort: T
|
|
2491
2491
|
}, {
|
|
2492
|
-
"toolbar-filter":
|
|
2493
|
-
C(s(
|
|
2492
|
+
"toolbar-filter": p(() => [
|
|
2493
|
+
C(s(La), {
|
|
2494
2494
|
modelValue: k.value,
|
|
2495
2495
|
"onUpdate:modelValue": M[0] || (M[0] = (R) => k.value = R),
|
|
2496
2496
|
config: D.value
|
|
2497
2497
|
}, null, 8, ["modelValue", "config"])
|
|
2498
2498
|
]),
|
|
2499
|
-
"toolbar-button":
|
|
2500
|
-
(b(), V(
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2499
|
+
"toolbar-button": p(() => [
|
|
2500
|
+
(b(), V(we(e.useActionOutside ? "Teleport" : "div"), {
|
|
2501
|
+
to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
|
|
2502
|
+
}, {
|
|
2503
|
+
default: p(() => [
|
|
2504
|
+
C(s(Ie), {
|
|
2505
|
+
"auth-function": () => e.canCreate()
|
|
2506
|
+
}, {
|
|
2507
|
+
default: p(() => [
|
|
2508
|
+
me(C(c, {
|
|
2509
|
+
appearance: "primary",
|
|
2510
|
+
"data-testid": "toolbar-add-sni",
|
|
2511
|
+
icon: "plus",
|
|
2512
|
+
to: e.config.createRoute
|
|
2513
|
+
}, {
|
|
2514
|
+
default: p(() => [
|
|
2515
|
+
J(O(s(n)("snis.list.toolbar_actions.new")), 1)
|
|
2516
|
+
]),
|
|
2517
|
+
_: 1
|
|
2518
|
+
}, 8, ["to"]), [
|
|
2519
|
+
[ye, re.value]
|
|
2520
|
+
])
|
|
2521
|
+
]),
|
|
2522
|
+
_: 1
|
|
2523
|
+
}, 8, ["auth-function"])
|
|
2524
|
+
]),
|
|
2525
|
+
_: 1
|
|
2526
|
+
}, 8, ["to"]))
|
|
2525
2527
|
]),
|
|
2526
|
-
name:
|
|
2528
|
+
name: p(({ rowValue: R }) => [
|
|
2527
2529
|
K("b", null, O(R ?? "-"), 1)
|
|
2528
2530
|
]),
|
|
2529
|
-
certificate:
|
|
2530
|
-
R.certificate && R.certificate.id ? (b(), V(s(
|
|
2531
|
+
certificate: p(({ row: R }) => [
|
|
2532
|
+
R.certificate && R.certificate.id ? (b(), V(s(hn), {
|
|
2531
2533
|
key: 0,
|
|
2532
2534
|
class: "copy-certificate-uuid",
|
|
2533
2535
|
"data-testid": "copy-certificate-uuid",
|
|
2534
2536
|
notify: (Q) => i(Q, R),
|
|
2535
2537
|
truncated: !1,
|
|
2536
2538
|
uuid: R.certificate.id
|
|
2537
|
-
}, null, 8, ["notify", "uuid"])) : (b(), F("span",
|
|
2539
|
+
}, null, 8, ["notify", "uuid"])) : (b(), F("span", kn, "-"))
|
|
2538
2540
|
]),
|
|
2539
|
-
tags:
|
|
2541
|
+
tags: p(({ rowValue: R }) => [
|
|
2540
2542
|
R != null && R.length ? (b(), V(B, { key: 0 }, {
|
|
2541
|
-
default:
|
|
2543
|
+
default: p(() => [
|
|
2542
2544
|
(b(!0), F(Je, null, Te(R, (Q) => (b(), V(I, {
|
|
2543
2545
|
key: Q,
|
|
2544
2546
|
onClick: M[1] || (M[1] = be(() => {
|
|
2545
2547
|
}, ["stop"]))
|
|
2546
2548
|
}, {
|
|
2547
|
-
default:
|
|
2549
|
+
default: p(() => [
|
|
2548
2550
|
J(O(Q), 1)
|
|
2549
2551
|
]),
|
|
2550
2552
|
_: 2
|
|
2551
2553
|
}, 1024))), 128))
|
|
2552
2554
|
]),
|
|
2553
2555
|
_: 2
|
|
2554
|
-
}, 1024)) : (b(), F("span",
|
|
2556
|
+
}, 1024)) : (b(), F("span", wn, "-"))
|
|
2555
2557
|
]),
|
|
2556
|
-
actions:
|
|
2558
|
+
actions: p(({ row: R }) => [
|
|
2557
2559
|
C(W, null, {
|
|
2558
|
-
default:
|
|
2560
|
+
default: p(({ copyToClipboard: Q }) => [
|
|
2559
2561
|
C(ae, {
|
|
2560
2562
|
"data-testid": "action-entity-copy-id",
|
|
2561
2563
|
onClick: (ve) => g(R, Q)
|
|
2562
2564
|
}, {
|
|
2563
|
-
default:
|
|
2565
|
+
default: p(() => [
|
|
2564
2566
|
J(O(s(n)("actions.copy_id")), 1)
|
|
2565
2567
|
]),
|
|
2566
2568
|
_: 2
|
|
@@ -2569,12 +2571,12 @@ const va = {
|
|
|
2569
2571
|
_: 2
|
|
2570
2572
|
}, 1024),
|
|
2571
2573
|
C(W, null, {
|
|
2572
|
-
default:
|
|
2574
|
+
default: p(({ copyToClipboard: Q }) => [
|
|
2573
2575
|
C(ae, {
|
|
2574
2576
|
"data-testid": "action-entity-copy-json",
|
|
2575
2577
|
onClick: (ve) => A(R, Q)
|
|
2576
2578
|
}, {
|
|
2577
|
-
default:
|
|
2579
|
+
default: p(() => [
|
|
2578
2580
|
J(O(s(n)("actions.copy_json")), 1)
|
|
2579
2581
|
]),
|
|
2580
2582
|
_: 2
|
|
@@ -2582,10 +2584,10 @@ const va = {
|
|
|
2582
2584
|
]),
|
|
2583
2585
|
_: 2
|
|
2584
2586
|
}, 1024),
|
|
2585
|
-
C(s(
|
|
2587
|
+
C(s(Ie), {
|
|
2586
2588
|
"auth-function": () => e.canEdit(R)
|
|
2587
2589
|
}, {
|
|
2588
|
-
default:
|
|
2590
|
+
default: p(() => [
|
|
2589
2591
|
C(ae, {
|
|
2590
2592
|
"data-testid": "action-entity-edit",
|
|
2591
2593
|
item: H(R.id)
|
|
@@ -2593,17 +2595,17 @@ const va = {
|
|
|
2593
2595
|
]),
|
|
2594
2596
|
_: 2
|
|
2595
2597
|
}, 1032, ["auth-function"]),
|
|
2596
|
-
C(s(
|
|
2598
|
+
C(s(Ie), {
|
|
2597
2599
|
"auth-function": () => e.canDelete(R)
|
|
2598
2600
|
}, {
|
|
2599
|
-
default:
|
|
2601
|
+
default: p(() => [
|
|
2600
2602
|
C(ae, {
|
|
2601
2603
|
danger: "",
|
|
2602
2604
|
"data-testid": "action-entity-delete",
|
|
2603
2605
|
"has-divider": "",
|
|
2604
2606
|
onClick: (Q) => Y(R)
|
|
2605
2607
|
}, {
|
|
2606
|
-
default:
|
|
2608
|
+
default: p(() => [
|
|
2607
2609
|
J(O(s(n)("actions.delete")), 1)
|
|
2608
2610
|
]),
|
|
2609
2611
|
_: 2
|
|
@@ -2614,7 +2616,7 @@ const va = {
|
|
|
2614
2616
|
]),
|
|
2615
2617
|
_: 1
|
|
2616
2618
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
2617
|
-
C(s(
|
|
2619
|
+
C(s($a), {
|
|
2618
2620
|
"action-pending": L.value,
|
|
2619
2621
|
description: s(n)("delete.description"),
|
|
2620
2622
|
"entity-name": v.value && (v.value.name || v.value.id),
|
|
@@ -2634,11 +2636,11 @@ const va = {
|
|
|
2634
2636
|
for (const [r, n] of a)
|
|
2635
2637
|
t[r] = n;
|
|
2636
2638
|
return t;
|
|
2637
|
-
},
|
|
2639
|
+
}, Rn = /* @__PURE__ */ st(Sn, [["__scopeId", "data-v-117a5978"]]), _n = { class: "kong-ui-entities-snis-form" }, In = { "data-testid": "no-search-results" }, Cn = {
|
|
2638
2640
|
key: 2,
|
|
2639
2641
|
class: "invalid-certificate-message",
|
|
2640
2642
|
"data-testid": "invalid-certificate-message"
|
|
2641
|
-
},
|
|
2643
|
+
}, xn = /* @__PURE__ */ ee({
|
|
2642
2644
|
__name: "SniForm",
|
|
2643
2645
|
props: {
|
|
2644
2646
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2657,9 +2659,9 @@ const va = {
|
|
|
2657
2659
|
emits: ["update", "error", "loading"],
|
|
2658
2660
|
setup(e, { emit: a }) {
|
|
2659
2661
|
var M;
|
|
2660
|
-
const t = a, r = e, n = Ze(), { i18n: { t: i } } = Ge.useI18n(), { getMessageFromError: o } =
|
|
2662
|
+
const t = a, r = e, n = Ze(), { i18n: { t: i } } = Ge.useI18n(), { getMessageFromError: o } = Qa(), { axiosInstance: u } = lt({
|
|
2661
2663
|
headers: (M = r.config) == null ? void 0 : M.requestHeaders
|
|
2662
|
-
}), m = S(() => fe.form[r.config.app].edit),
|
|
2664
|
+
}), m = S(() => fe.form[r.config.app].edit), f = S(() => r.sniId ? he.Edit : he.Create), _ = S(() => r.config.certificateId && f.value === he.Create ? r.config.certificateId : ""), l = Ke({
|
|
2663
2665
|
fields: {
|
|
2664
2666
|
name: "",
|
|
2665
2667
|
tags: "",
|
|
@@ -2682,7 +2684,7 @@ const va = {
|
|
|
2682
2684
|
return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
|
|
2683
2685
|
}), d = S(() => {
|
|
2684
2686
|
var I, B;
|
|
2685
|
-
let c = `${r.config.apiBaseUrl}${fe.form[r.config.app][
|
|
2687
|
+
let c = `${r.config.apiBaseUrl}${fe.form[r.config.app][f.value]}`;
|
|
2686
2688
|
return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.sniId), c;
|
|
2687
2689
|
}), T = async () => {
|
|
2688
2690
|
var c, I, B, ae, W, R, Q, ve;
|
|
@@ -2690,11 +2692,11 @@ const va = {
|
|
|
2690
2692
|
l.isReadonly = !0;
|
|
2691
2693
|
const ie = {
|
|
2692
2694
|
name: l.fields.name,
|
|
2693
|
-
tags: (I = (c = l.fields.tags.split(",")) == null ? void 0 : c.map((
|
|
2695
|
+
tags: (I = (c = l.fields.tags.split(",")) == null ? void 0 : c.map((Se) => String(Se || "").trim())) == null ? void 0 : I.filter((Se) => Se !== ""),
|
|
2694
2696
|
certificate: { id: _.value || l.fields.certificate_id }
|
|
2695
2697
|
};
|
|
2696
2698
|
let Z;
|
|
2697
|
-
await u.post($.value, ie),
|
|
2699
|
+
await u.post($.value, ie), f.value === "create" ? Z = await u.post(d.value, ie) : f.value === "edit" && (Z = ((B = r.config) == null ? void 0 : B.app) === "konnect" ? await u.put(d.value, ie) : await u.patch(d.value, ie)), l.fields.name = ((ae = Z == null ? void 0 : Z.data) == null ? void 0 : ae.name) || "", l.fields.tags = ((R = (W = Z == null ? void 0 : Z.data) == null ? void 0 : W.tags) == null ? void 0 : R.join(", ")) || "", l.fields.certificate_id = ((ve = (Q = Z == null ? void 0 : Z.data) == null ? void 0 : Q.certificate) == null ? void 0 : ve.id) || "", Object.assign(N, l.fields), t("update", Z == null ? void 0 : Z.data);
|
|
2698
2700
|
} catch (ie) {
|
|
2699
2701
|
l.errorMessage = o(ie), t("error", ie);
|
|
2700
2702
|
} finally {
|
|
@@ -2708,7 +2710,7 @@ const va = {
|
|
|
2708
2710
|
validationError: H,
|
|
2709
2711
|
loadItems: v,
|
|
2710
2712
|
results: U
|
|
2711
|
-
} =
|
|
2713
|
+
} = en(r.config, fe.form[r.config.app].certificates), L = x(!0), P = (c) => {
|
|
2712
2714
|
L.value = !c, E(c);
|
|
2713
2715
|
}, q = S(() => A.value ? i("errors.certificates.fetch") : ""), Y = S(() => H.value ? i("errors.certificates.invalid") : ""), te = x(0), de = S(() => g.value === void 0), re = x(/* @__PURE__ */ new Set()), pe = S(() => Array.from(re.value).map((I) => ({
|
|
2714
2716
|
label: I,
|
|
@@ -2728,8 +2730,8 @@ const va = {
|
|
|
2728
2730
|
await v();
|
|
2729
2731
|
}), (c, I) => {
|
|
2730
2732
|
const B = j("KInput"), ae = j("KSelect");
|
|
2731
|
-
return b(), F("div",
|
|
2732
|
-
C(s(
|
|
2733
|
+
return b(), F("div", _n, [
|
|
2734
|
+
C(s(ha), {
|
|
2733
2735
|
"can-submit": k.value,
|
|
2734
2736
|
config: e.config,
|
|
2735
2737
|
"edit-id": e.sniId,
|
|
@@ -2742,12 +2744,12 @@ const va = {
|
|
|
2742
2744
|
onLoading: I[4] || (I[4] = (W) => c.$emit("loading", W)),
|
|
2743
2745
|
onSubmit: T
|
|
2744
2746
|
}, {
|
|
2745
|
-
default:
|
|
2747
|
+
default: p(() => [
|
|
2746
2748
|
C(s(Le), {
|
|
2747
2749
|
description: s(i)("form.sections.general.description"),
|
|
2748
2750
|
title: s(i)("form.sections.general.title")
|
|
2749
2751
|
}, {
|
|
2750
|
-
default:
|
|
2752
|
+
default: p(() => [
|
|
2751
2753
|
C(B, {
|
|
2752
2754
|
modelValue: l.fields.name,
|
|
2753
2755
|
"onUpdate:modelValue": I[0] || (I[0] = (W) => l.fields.name = W),
|
|
@@ -2781,7 +2783,7 @@ const va = {
|
|
|
2781
2783
|
"has-divider": "",
|
|
2782
2784
|
title: s(i)("form.sections.certificate.title")
|
|
2783
2785
|
}, {
|
|
2784
|
-
default:
|
|
2786
|
+
default: p(() => [
|
|
2785
2787
|
_.value ? (b(), V(B, {
|
|
2786
2788
|
key: 0,
|
|
2787
2789
|
"data-testid": "sni-form-certificate-id",
|
|
@@ -2810,15 +2812,15 @@ const va = {
|
|
|
2810
2812
|
width: "100%",
|
|
2811
2813
|
onQueryChange: P
|
|
2812
2814
|
}, {
|
|
2813
|
-
loading:
|
|
2815
|
+
loading: p(() => [
|
|
2814
2816
|
K("div", null, O(s(i)("actions.loading")), 1)
|
|
2815
2817
|
]),
|
|
2816
|
-
empty:
|
|
2817
|
-
K("div",
|
|
2818
|
+
empty: p(() => [
|
|
2819
|
+
K("div", In, O(s(i)("search.no_results")), 1)
|
|
2818
2820
|
]),
|
|
2819
2821
|
_: 1
|
|
2820
2822
|
}, 8, ["modelValue", "class", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
|
|
2821
|
-
Y.value ? (b(), F("p",
|
|
2823
|
+
Y.value ? (b(), F("p", Cn, O(Y.value), 1)) : X("", !0)
|
|
2822
2824
|
]),
|
|
2823
2825
|
_: 1
|
|
2824
2826
|
}, 8, ["description", "title"])
|
|
@@ -2828,8 +2830,8 @@ const va = {
|
|
|
2828
2830
|
]);
|
|
2829
2831
|
};
|
|
2830
2832
|
}
|
|
2831
|
-
}),
|
|
2833
|
+
}), Fn = /* @__PURE__ */ st(xn, [["__scopeId", "data-v-576c2dac"]]);
|
|
2832
2834
|
export {
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
+
Fn as SniForm,
|
|
2836
|
+
Rn as SniList
|
|
2835
2837
|
};
|