@kong-ui-public/entities-key-sets 1.2.28 → 2.0.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/dist/entities-key-sets.es.js +1013 -906
- package/dist/entities-key-sets.umd.js +25 -25
- package/dist/style.css +1 -1
- package/package.json +8 -8
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Q, ref as O, computed as _, watch as be, renderSlot as V, createCommentVNode as U, unref as w, useSlots as Je, onBeforeMount as lt, resolveComponent as F, openBlock as y, createBlock as K, createSlots as we, withCtx as b, createElementVNode as L, createTextVNode as z, toDisplayString as N, createVNode as T, createElementBlock as x, renderList as ue, Fragment as pe, normalizeClass as Ie, withModifiers as Pe, withDirectives as Le, vShow as qe, useCssVars as Gn, resolveDynamicComponent as $e, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as et, onMounted as Qn, onUnmounted as ea, normalizeStyle as Jt, inject as ta, pushScopeId as Yt, popScopeId as Wt, reactive as Ct } from "vue";
|
|
2
2
|
import { useRouter as st } from "vue-router";
|
|
3
|
-
import { createI18n as ct, i18nTComponent as
|
|
4
|
-
import
|
|
5
|
-
import { ToastManager as
|
|
6
|
-
const
|
|
3
|
+
import { createI18n as ct, i18nTComponent as Gt } from "@kong-ui-public/i18n";
|
|
4
|
+
import na from "axios";
|
|
5
|
+
import { ToastManager as aa, MethodsArray as ia } from "@kong/kongponents";
|
|
6
|
+
const ra = {
|
|
7
7
|
title: "Key Sets",
|
|
8
8
|
list: {
|
|
9
9
|
toolbar_actions: {
|
|
@@ -64,19 +64,19 @@ const aa = {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
},
|
|
68
|
-
keySets:
|
|
67
|
+
}, oa = {
|
|
68
|
+
keySets: ra
|
|
69
69
|
};
|
|
70
|
-
function
|
|
71
|
-
const e = ct("en-us",
|
|
70
|
+
function la() {
|
|
71
|
+
const e = ct("en-us", oa);
|
|
72
72
|
return {
|
|
73
73
|
i18n: e,
|
|
74
|
-
i18nT:
|
|
74
|
+
i18nT: Gt(e)
|
|
75
75
|
// Translation component <i18n-t>
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
const ut = {
|
|
79
|
-
useI18n:
|
|
79
|
+
useI18n: la
|
|
80
80
|
}, Re = {
|
|
81
81
|
list: {
|
|
82
82
|
konnect: "/api/runtime_groups/{controlPlaneId}/key-sets",
|
|
@@ -93,17 +93,17 @@ const ut = {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
var
|
|
96
|
+
var Zt = /* @__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))(Zt || {}), tt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(tt || {}), Ce = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ce || {}), J = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(J || {}), de = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(de || {});
|
|
97
97
|
function dt(e = {}) {
|
|
98
98
|
return {
|
|
99
|
-
axiosInstance:
|
|
99
|
+
axiosInstance: na.create({
|
|
100
100
|
withCredentials: !0,
|
|
101
101
|
timeout: 3e4,
|
|
102
102
|
...e
|
|
103
103
|
})
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function sa() {
|
|
107
107
|
return {
|
|
108
108
|
debounce: (e, n) => {
|
|
109
109
|
let t;
|
|
@@ -115,12 +115,12 @@ function oa() {
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const Ge = "khcp-user-table-preferences", ca = {
|
|
119
119
|
pageSize: 30,
|
|
120
120
|
sortColumnKey: void 0,
|
|
121
121
|
sortColumnOrder: void 0
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function ua() {
|
|
124
124
|
const e = (t) => {
|
|
125
125
|
if (typeof t == "string")
|
|
126
126
|
try {
|
|
@@ -130,38 +130,38 @@ function sa() {
|
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
132
|
}, n = () => {
|
|
133
|
-
const t = e(localStorage.getItem(
|
|
133
|
+
const t = e(localStorage.getItem(Ge));
|
|
134
134
|
return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
|
|
135
135
|
};
|
|
136
136
|
return {
|
|
137
137
|
setTablePreferences: (t, a) => {
|
|
138
138
|
try {
|
|
139
139
|
const i = n();
|
|
140
|
-
i.set(t, a), localStorage.setItem(
|
|
140
|
+
i.set(t, a), localStorage.setItem(Ge, JSON.stringify(Object.fromEntries(i.entries())));
|
|
141
141
|
} catch (i) {
|
|
142
142
|
console.error("useTablePreferences(setTablePreferences)", i);
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
getTablePreferences: (t) => {
|
|
146
146
|
const a = n();
|
|
147
|
-
return (a == null ? void 0 : a.get(t)) || void 0 ||
|
|
147
|
+
return (a == null ? void 0 : a.get(t)) || void 0 || ca;
|
|
148
148
|
},
|
|
149
149
|
deleteAllTablePreferences: () => {
|
|
150
|
-
localStorage.removeItem(
|
|
150
|
+
localStorage.removeItem(Ge);
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const da = {
|
|
155
155
|
actions: {
|
|
156
156
|
copyId: "Copy ID",
|
|
157
157
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
158
158
|
copyToClipboard: "Copied successfully!",
|
|
159
159
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
160
160
|
}
|
|
161
|
-
},
|
|
161
|
+
}, pa = {
|
|
162
162
|
message: "Are you sure you want to delete this {entityType}?",
|
|
163
163
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
164
|
-
},
|
|
164
|
+
}, fa = {
|
|
165
165
|
actions: {
|
|
166
166
|
save: "Save",
|
|
167
167
|
cancel: "Cancel",
|
|
@@ -170,13 +170,13 @@ const ca = {
|
|
|
170
170
|
errors: {
|
|
171
171
|
edit: "The entity could not be edited at this time."
|
|
172
172
|
}
|
|
173
|
-
},
|
|
173
|
+
}, ya = {
|
|
174
174
|
emptyState: {
|
|
175
175
|
noSearchResultsTitle: "No results found",
|
|
176
176
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
177
177
|
noSearchResultsCtaText: "Clear"
|
|
178
178
|
}
|
|
179
|
-
},
|
|
179
|
+
}, ga = {
|
|
180
180
|
title: "Configuration",
|
|
181
181
|
actions: {
|
|
182
182
|
copy: "Copy JSON"
|
|
@@ -211,7 +211,7 @@ const ca = {
|
|
|
211
211
|
entryTitle: "Entry {index}",
|
|
212
212
|
structuredFormat: "Structured"
|
|
213
213
|
}
|
|
214
|
-
},
|
|
214
|
+
}, ma = {
|
|
215
215
|
filterButtonText: "Filter",
|
|
216
216
|
fieldLabel: "Filter by:",
|
|
217
217
|
inputPlaceholder: "Enter a value",
|
|
@@ -219,15 +219,15 @@ const ca = {
|
|
|
219
219
|
applyButtonText: "Apply",
|
|
220
220
|
clearButtonText: "Clear",
|
|
221
221
|
clearAllButtonText: "Clear all filters"
|
|
222
|
-
},
|
|
222
|
+
}, ha = {
|
|
223
223
|
errors: {
|
|
224
224
|
fetch: "Could not fetch available items",
|
|
225
225
|
invalid: "Please select a valid value"
|
|
226
226
|
}
|
|
227
|
-
},
|
|
227
|
+
}, va = {
|
|
228
228
|
unexpected: "An unexpected error has occurred",
|
|
229
229
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
230
|
-
},
|
|
230
|
+
}, ba = {
|
|
231
231
|
enable: {
|
|
232
232
|
title: "Enable {entityType}",
|
|
233
233
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -238,26 +238,26 @@ const ca = {
|
|
|
238
238
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
239
239
|
confirmText: "Yes, disable"
|
|
240
240
|
}
|
|
241
|
-
},
|
|
242
|
-
global:
|
|
243
|
-
deleteModal:
|
|
244
|
-
baseForm:
|
|
245
|
-
baseTable:
|
|
246
|
-
baseConfigCard:
|
|
247
|
-
filter:
|
|
248
|
-
debouncedFilter:
|
|
249
|
-
errors:
|
|
250
|
-
toggleModal:
|
|
241
|
+
}, ka = {
|
|
242
|
+
global: da,
|
|
243
|
+
deleteModal: pa,
|
|
244
|
+
baseForm: fa,
|
|
245
|
+
baseTable: ya,
|
|
246
|
+
baseConfigCard: ga,
|
|
247
|
+
filter: ma,
|
|
248
|
+
debouncedFilter: ha,
|
|
249
|
+
errors: va,
|
|
250
|
+
toggleModal: ba
|
|
251
251
|
};
|
|
252
252
|
function pt() {
|
|
253
|
-
const e = ct("en-us",
|
|
253
|
+
const e = ct("en-us", ka);
|
|
254
254
|
return {
|
|
255
255
|
i18n: e,
|
|
256
|
-
i18nT:
|
|
256
|
+
i18nT: Gt(e)
|
|
257
257
|
// Translation component <i18n-t>
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Xt() {
|
|
261
261
|
const e = (t, a) => (a == null ? void 0 : a[t]) ?? void 0, n = (t, a) => {
|
|
262
262
|
if (t.length !== a.length)
|
|
263
263
|
return !1;
|
|
@@ -301,30 +301,30 @@ function Jt() {
|
|
|
301
301
|
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
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Ca(e, n, t, a = {
|
|
305
305
|
fetchedItemsKey: "data",
|
|
306
306
|
searchKeys: ["id"]
|
|
307
307
|
}) {
|
|
308
308
|
t || (t = "100");
|
|
309
309
|
const { axiosInstance: i } = dt({
|
|
310
310
|
headers: e.requestHeaders
|
|
311
|
-
}), { i18n: { t: r } } = pt(), { debounce: o } =
|
|
311
|
+
}), { i18n: { t: r } } = pt(), { debounce: o } = sa(), l = o(async (S) => {
|
|
312
312
|
await k(S);
|
|
313
|
-
}, 200), s = O(!1), c = O(""), d = O(""), u = O([]),
|
|
313
|
+
}, 200), s = O(!1), c = O(""), d = O(""), u = O([]), g = O([]), f = O(void 0), I = w(n);
|
|
314
314
|
let v = `${e.apiBaseUrl}${I}`;
|
|
315
315
|
e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
316
|
-
const { isValidUuid: p } =
|
|
316
|
+
const { isValidUuid: p } = Xt(), h = async () => {
|
|
317
317
|
try {
|
|
318
318
|
s.value = !0;
|
|
319
319
|
const { data: S } = await i.get(`${v}?size=${t}`);
|
|
320
|
-
S != null && S.next || (f.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : []),
|
|
320
|
+
S != null && S.next || (f.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : []), g.value = a.fetchedItemsKey in S ? S[a.fetchedItemsKey] : [], u.value = g.value;
|
|
321
321
|
} catch {
|
|
322
322
|
u.value = [], c.value = r("debouncedFilter.errors.fetch");
|
|
323
323
|
} finally {
|
|
324
324
|
s.value = !1;
|
|
325
325
|
}
|
|
326
326
|
}, m = O(""), k = async (S) => {
|
|
327
|
-
var W,
|
|
327
|
+
var W, G, q;
|
|
328
328
|
if (m.value !== S)
|
|
329
329
|
if (m.value = S || "", f.value === void 0)
|
|
330
330
|
try {
|
|
@@ -336,37 +336,37 @@ function ba(e, n, t, a = {
|
|
|
336
336
|
} else if (S) {
|
|
337
337
|
const C = [];
|
|
338
338
|
p(S) && a.searchKeys.includes("id") ? C.push((async () => {
|
|
339
|
-
const { data:
|
|
340
|
-
return [
|
|
339
|
+
const { data: j } = await i.get(`${v}/${S}`);
|
|
340
|
+
return [j[a.fetchedItemsKey] ?? j];
|
|
341
341
|
})()) : C.push(
|
|
342
|
-
...a.searchKeys.filter((
|
|
343
|
-
const { data:
|
|
344
|
-
return
|
|
342
|
+
...a.searchKeys.filter((j) => j !== "id").map(async (j) => {
|
|
343
|
+
const { data: B } = await i.get(`${v}?${j}=${S}`);
|
|
344
|
+
return B[a.fetchedItemsKey];
|
|
345
345
|
})
|
|
346
346
|
);
|
|
347
|
-
const E = await Promise.all(C),
|
|
348
|
-
u.value = [], (W = E == null ? void 0 : E.forEach) == null || W.call(E, (
|
|
349
|
-
var
|
|
350
|
-
(
|
|
351
|
-
|
|
347
|
+
const E = await Promise.all(C), $ = /* @__PURE__ */ new Set();
|
|
348
|
+
u.value = [], (W = E == null ? void 0 : E.forEach) == null || W.call(E, (j) => {
|
|
349
|
+
var B;
|
|
350
|
+
(B = j == null ? void 0 : j.forEach) == null || B.call(j, (P) => {
|
|
351
|
+
$.has(P.id) || ($.add(P.id), u.value.push(P));
|
|
352
352
|
});
|
|
353
353
|
});
|
|
354
354
|
} else
|
|
355
|
-
u.value =
|
|
355
|
+
u.value = g.value;
|
|
356
356
|
} catch (C) {
|
|
357
|
-
((
|
|
357
|
+
((G = C == null ? void 0 : C.response) == null ? void 0 : G.status) === 404 ? d.value = r("debouncedFilter.errors.invalid") : (u.value = [], c.value = r("debouncedFilter.errors.fetch"));
|
|
358
358
|
} finally {
|
|
359
359
|
s.value = !1;
|
|
360
360
|
}
|
|
361
361
|
else
|
|
362
|
-
s.value = !0, d.value = "", S ? (u.value = (
|
|
362
|
+
s.value = !0, d.value = "", S ? (u.value = (q = f.value) == null ? void 0 : q.filter((C) => {
|
|
363
363
|
var E;
|
|
364
|
-
let
|
|
365
|
-
for (const
|
|
366
|
-
const
|
|
367
|
-
|
|
364
|
+
let $ = !1;
|
|
365
|
+
for (const j of a.searchKeys) {
|
|
366
|
+
const B = typeof C[j] == "string" ? (E = C[j]) == null ? void 0 : E.toLowerCase() : C[j];
|
|
367
|
+
B != null && B.includes(S.toLowerCase()) && ($ = !0);
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return $;
|
|
370
370
|
}), (!u.value || !u.value.length) && (d.value = r("debouncedFilter.errors.invalid"))) : u.value = f.value, s.value = !1;
|
|
371
371
|
};
|
|
372
372
|
return {
|
|
@@ -379,13 +379,13 @@ function ba(e, n, t, a = {
|
|
|
379
379
|
debouncedQueryChange: l
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function wa(e, n) {
|
|
383
383
|
const t = w(n), a = _(
|
|
384
384
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
385
385
|
);
|
|
386
386
|
return a.value.search = "", (i) => `${a.value.href}/${i}`;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Sa() {
|
|
389
389
|
const { i18n: { t: e } } = pt();
|
|
390
390
|
return {
|
|
391
391
|
getMessageFromError: (n) => {
|
|
@@ -413,7 +413,7 @@ function Ca() {
|
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Ia(e) {
|
|
417
417
|
const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
|
|
418
418
|
try {
|
|
419
419
|
const a = e.join("/"), i = `${t}${a}`, r = e.some((o) => o.trim() === "");
|
|
@@ -424,17 +424,17 @@ function wa(e) {
|
|
|
424
424
|
return console.warn("Failed to build valid URL:", a), "";
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function Qt(e, n) {
|
|
428
428
|
const t = O(w(e)), a = O(w(n)), i = _(
|
|
429
429
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
430
430
|
), r = _(
|
|
431
431
|
() => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
|
|
432
432
|
);
|
|
433
433
|
return (o) => {
|
|
434
|
-
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query:
|
|
434
|
+
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = o;
|
|
435
435
|
try {
|
|
436
436
|
let f = new URL(r.value.href);
|
|
437
|
-
return i.value &&
|
|
437
|
+
return i.value && g ? (f.search = "", f = new URL(`${f.href}/${g}/`)) : (i.value || new URLSearchParams(g).forEach((I, v) => {
|
|
438
438
|
f.searchParams.append(v, I);
|
|
439
439
|
}), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), c && l !== 1 && f.searchParams.append("offset", String(c)), f.href;
|
|
440
440
|
} catch (f) {
|
|
@@ -442,10 +442,10 @@ function Yt(e, n) {
|
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Aa(e, n, t = "data") {
|
|
446
446
|
const a = w(n), { axiosInstance: i } = dt({
|
|
447
447
|
headers: e.requestHeaders
|
|
448
|
-
}), r =
|
|
448
|
+
}), r = Qt(e, a), o = O({
|
|
449
449
|
status: Ce.Idle
|
|
450
450
|
});
|
|
451
451
|
return { fetcher: async (l) => {
|
|
@@ -454,7 +454,7 @@ function Sa(e, n, t = "data") {
|
|
|
454
454
|
const s = r(l), { data: c } = await i.get(s), d = t && t.replace(/[^\w-_]/gi, "");
|
|
455
455
|
let u;
|
|
456
456
|
c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
|
|
457
|
-
const
|
|
457
|
+
const g = {
|
|
458
458
|
data: u,
|
|
459
459
|
total: u.length,
|
|
460
460
|
...c.offset ? {
|
|
@@ -465,8 +465,8 @@ function Sa(e, n, t = "data") {
|
|
|
465
465
|
};
|
|
466
466
|
return o.value = {
|
|
467
467
|
status: Ce.Idle,
|
|
468
|
-
response:
|
|
469
|
-
},
|
|
468
|
+
response: g
|
|
469
|
+
}, g;
|
|
470
470
|
} catch (s) {
|
|
471
471
|
const c = {
|
|
472
472
|
data: [],
|
|
@@ -484,61 +484,61 @@ function Sa(e, n, t = "data") {
|
|
|
484
484
|
}
|
|
485
485
|
}, fetcherState: o };
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function xa() {
|
|
488
488
|
const e = (t, a = "_") => t ? t.split(a).map((i) => i.toLowerCase() === "id" ? i.toUpperCase() : i.charAt(0).toUpperCase() + i.substring(1)).join(" ") : "", n = /(?:^|[\s-:'"])\w/g;
|
|
489
489
|
return {
|
|
490
490
|
capitalize: (t) => t ? t.replace(n, (a) => a.toUpperCase()) : "",
|
|
491
491
|
convertKeyToTitle: e
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
const
|
|
494
|
+
const en = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, wt = (e) => {
|
|
495
495
|
if (typeof e != "string")
|
|
496
496
|
throw new TypeError("Invalid argument expected string");
|
|
497
|
-
const n = e.match(
|
|
497
|
+
const n = e.match(en);
|
|
498
498
|
if (!n)
|
|
499
499
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
500
500
|
return n.shift(), n;
|
|
501
501
|
}, St = (e) => e === "*" || e === "x" || e === "X", It = (e) => {
|
|
502
502
|
const n = parseInt(e, 10);
|
|
503
503
|
return isNaN(n) ? e : n;
|
|
504
|
-
},
|
|
504
|
+
}, _a = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Ta = (e, n) => {
|
|
505
505
|
if (St(e) || St(n))
|
|
506
506
|
return 0;
|
|
507
|
-
const [t, a] =
|
|
507
|
+
const [t, a] = _a(It(e), It(n));
|
|
508
508
|
return t > a ? 1 : t < a ? -1 : 0;
|
|
509
509
|
}, At = (e, n) => {
|
|
510
510
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
511
|
-
const a =
|
|
511
|
+
const a = Ta(e[t] || "0", n[t] || "0");
|
|
512
512
|
if (a !== 0)
|
|
513
513
|
return a;
|
|
514
514
|
}
|
|
515
515
|
return 0;
|
|
516
|
-
},
|
|
516
|
+
}, $a = (e, n) => {
|
|
517
517
|
const t = wt(e), a = wt(n), i = t.pop(), r = a.pop(), o = At(t, a);
|
|
518
518
|
return o !== 0 ? o : i && r ? At(i.split("."), r.split(".")) : i || r ? i ? -1 : 1 : 0;
|
|
519
519
|
}, xt = (e, n, t) => {
|
|
520
|
-
|
|
521
|
-
const a =
|
|
522
|
-
return
|
|
523
|
-
},
|
|
520
|
+
ja(t);
|
|
521
|
+
const a = $a(e, n);
|
|
522
|
+
return tn[t].includes(a);
|
|
523
|
+
}, tn = {
|
|
524
524
|
">": [1],
|
|
525
525
|
">=": [0, 1],
|
|
526
526
|
"=": [0],
|
|
527
527
|
"<=": [-1, 0],
|
|
528
528
|
"<": [-1],
|
|
529
529
|
"!=": [-1, 1]
|
|
530
|
-
}, _t = Object.keys(
|
|
530
|
+
}, _t = Object.keys(tn), ja = (e) => {
|
|
531
531
|
if (typeof e != "string")
|
|
532
532
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
533
533
|
if (_t.indexOf(e) === -1)
|
|
534
534
|
throw new Error(`Invalid operator, expected one of ${_t.join("|")}`);
|
|
535
|
-
},
|
|
536
|
-
function
|
|
535
|
+
}, Oa = (e) => typeof e == "string" && /^[v\d]/.test(e) && en.test(e);
|
|
536
|
+
function Ma(e) {
|
|
537
537
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
538
538
|
if (!n)
|
|
539
539
|
return !0;
|
|
540
540
|
const { edition: a, version: i } = n;
|
|
541
|
-
if (!
|
|
541
|
+
if (!Oa(i))
|
|
542
542
|
return console.error("Invalid version"), !1;
|
|
543
543
|
const r = t[a];
|
|
544
544
|
if (!r)
|
|
@@ -546,7 +546,7 @@ function $a(e) {
|
|
|
546
546
|
const [o, l] = r;
|
|
547
547
|
return !(o && xt(i, o, "<") || l && xt(i, l, ">"));
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Ea(e) {
|
|
550
550
|
const n = O(0), t = O(0), a = O(!1);
|
|
551
551
|
return be(e, (i) => {
|
|
552
552
|
i && !a.value && (n.value = i.offsetWidth, t.value = i.scrollWidth, a.value = !0);
|
|
@@ -554,8 +554,8 @@ function Oa(e) {
|
|
|
554
554
|
isTruncated: _(() => n.value < t.value)
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
|
-
const
|
|
558
|
-
function
|
|
557
|
+
const Fa = new aa();
|
|
558
|
+
function Na() {
|
|
559
559
|
return {
|
|
560
560
|
notify: async (e) => {
|
|
561
561
|
const n = {
|
|
@@ -563,7 +563,7 @@ function Ka() {
|
|
|
563
563
|
message: "Success",
|
|
564
564
|
timeoutMilliseconds: 3e3
|
|
565
565
|
};
|
|
566
|
-
|
|
566
|
+
Fa.open({
|
|
567
567
|
...n,
|
|
568
568
|
...e
|
|
569
569
|
});
|
|
@@ -572,28 +572,132 @@ function Ka() {
|
|
|
572
572
|
}
|
|
573
573
|
const ae = {
|
|
574
574
|
useAxios: dt,
|
|
575
|
-
useDebouncedFilter:
|
|
576
|
-
useDeleteUrlBuilder:
|
|
577
|
-
useErrors:
|
|
578
|
-
useExternalLinkCreator:
|
|
579
|
-
useFetcher:
|
|
580
|
-
useFetchUrlBuilder:
|
|
581
|
-
useHelpers:
|
|
582
|
-
useStringHelpers:
|
|
575
|
+
useDebouncedFilter: Ca,
|
|
576
|
+
useDeleteUrlBuilder: wa,
|
|
577
|
+
useErrors: Sa,
|
|
578
|
+
useExternalLinkCreator: Ia,
|
|
579
|
+
useFetcher: Aa,
|
|
580
|
+
useFetchUrlBuilder: Qt,
|
|
581
|
+
useHelpers: Xt,
|
|
582
|
+
useStringHelpers: xa,
|
|
583
583
|
useI18n: pt,
|
|
584
|
-
useGatewayFeatureSupported:
|
|
585
|
-
useTruncationDetector:
|
|
586
|
-
useToaster:
|
|
587
|
-
},
|
|
584
|
+
useGatewayFeatureSupported: Ma,
|
|
585
|
+
useTruncationDetector: Ea,
|
|
586
|
+
useToaster: Na
|
|
587
|
+
}, Ka = {
|
|
588
588
|
fail: "Failed to copy id to clipboard",
|
|
589
589
|
success: {
|
|
590
590
|
prefix: "Successfully",
|
|
591
591
|
content: " copied to clipboard"
|
|
592
592
|
}
|
|
593
|
-
},
|
|
594
|
-
message:
|
|
595
|
-
iconTitle:
|
|
596
|
-
},
|
|
593
|
+
}, Ba = "Copy to clipboard", La = {
|
|
594
|
+
message: Ka,
|
|
595
|
+
iconTitle: Ba
|
|
596
|
+
}, qa = "kong-ui-copy-uuid-notify", Tt = "24px", Pa = (e, n) => {
|
|
597
|
+
const t = e.__vccOpts || e;
|
|
598
|
+
for (const [a, i] of n)
|
|
599
|
+
t[a] = i;
|
|
600
|
+
return t;
|
|
601
|
+
}, Ra = (e) => (Yt("data-v-9971cc79"), e = e(), Wt(), e), Ua = ["aria-hidden"], Va = {
|
|
602
|
+
key: 0,
|
|
603
|
+
"data-testid": "kui-icon-svg-title"
|
|
604
|
+
}, Da = /* @__PURE__ */ Ra(() => /* @__PURE__ */ L("path", {
|
|
605
|
+
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",
|
|
606
|
+
fill: "currentColor"
|
|
607
|
+
}, null, -1)), za = /* @__PURE__ */ Q({
|
|
608
|
+
__name: "CopyIcon",
|
|
609
|
+
props: {
|
|
610
|
+
/** The accessibility text provided to screen readers */
|
|
611
|
+
title: {
|
|
612
|
+
type: String,
|
|
613
|
+
required: !1,
|
|
614
|
+
default: ""
|
|
615
|
+
},
|
|
616
|
+
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
617
|
+
color: {
|
|
618
|
+
type: String,
|
|
619
|
+
required: !1,
|
|
620
|
+
default: "currentColor"
|
|
621
|
+
},
|
|
622
|
+
/** The CSS display property for the icon. Defaults to `block` */
|
|
623
|
+
display: {
|
|
624
|
+
type: String,
|
|
625
|
+
required: !1,
|
|
626
|
+
default: "block"
|
|
627
|
+
},
|
|
628
|
+
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
629
|
+
decorative: {
|
|
630
|
+
type: Boolean,
|
|
631
|
+
required: !1,
|
|
632
|
+
default: !1
|
|
633
|
+
},
|
|
634
|
+
/** The icon size */
|
|
635
|
+
size: {
|
|
636
|
+
type: [Number, String],
|
|
637
|
+
required: !1,
|
|
638
|
+
default: Tt,
|
|
639
|
+
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
640
|
+
validator: (e) => {
|
|
641
|
+
if (typeof e == "number" && e > 0)
|
|
642
|
+
return !0;
|
|
643
|
+
if (typeof e == "string") {
|
|
644
|
+
const n = String(e).replace(/px/gi, ""), t = Number(n);
|
|
645
|
+
if (t && !isNaN(t) && Number.isInteger(t) && t > 0)
|
|
646
|
+
return !0;
|
|
647
|
+
}
|
|
648
|
+
return !1;
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
652
|
+
as: {
|
|
653
|
+
type: String,
|
|
654
|
+
required: !1,
|
|
655
|
+
default: "span"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
setup(e) {
|
|
659
|
+
const n = e, t = _(() => {
|
|
660
|
+
if (typeof n.size == "number" && n.size > 0)
|
|
661
|
+
return `${n.size}px`;
|
|
662
|
+
if (typeof n.size == "string") {
|
|
663
|
+
const i = String(n.size).replace(/px/gi, ""), r = Number(i);
|
|
664
|
+
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
665
|
+
return `${r}px`;
|
|
666
|
+
}
|
|
667
|
+
return Tt;
|
|
668
|
+
}), a = _(() => ({
|
|
669
|
+
boxSizing: "border-box",
|
|
670
|
+
color: n.color,
|
|
671
|
+
display: n.display,
|
|
672
|
+
height: t.value,
|
|
673
|
+
lineHeight: "0",
|
|
674
|
+
width: t.value
|
|
675
|
+
}));
|
|
676
|
+
return (i, r) => (y(), K($e(e.as), {
|
|
677
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
678
|
+
class: "kui-icon copy-icon",
|
|
679
|
+
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
680
|
+
style: Jt(a.value)
|
|
681
|
+
}, {
|
|
682
|
+
default: b(() => [
|
|
683
|
+
(y(), x("svg", {
|
|
684
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
685
|
+
"data-testid": "kui-icon-svg-copy-icon",
|
|
686
|
+
fill: "none",
|
|
687
|
+
height: "100%",
|
|
688
|
+
role: "img",
|
|
689
|
+
viewBox: "0 0 24 24",
|
|
690
|
+
width: "100%",
|
|
691
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
692
|
+
}, [
|
|
693
|
+
e.title ? (y(), x("title", Va, N(e.title), 1)) : U("", !0),
|
|
694
|
+
Da
|
|
695
|
+
], 8, Ua))
|
|
696
|
+
]),
|
|
697
|
+
_: 1
|
|
698
|
+
}, 8, ["aria-hidden", "style"]));
|
|
699
|
+
}
|
|
700
|
+
}), Ha = /* @__PURE__ */ Pa(za, [["__scopeId", "data-v-9971cc79"]]), Ja = "16px", Ya = { class: "kong-ui-copy-uuid" }, Wa = ["onClick"], $t = 15, Ga = /* @__PURE__ */ Q({
|
|
597
701
|
__name: "CopyUuid",
|
|
598
702
|
props: {
|
|
599
703
|
uuid: {
|
|
@@ -637,7 +741,7 @@ const ae = {
|
|
|
637
741
|
},
|
|
638
742
|
emits: ["success", "error"],
|
|
639
743
|
setup(e, { emit: n }) {
|
|
640
|
-
const t = e, { t: a } = ct("en-us",
|
|
744
|
+
const t = e, { t: a } = ct("en-us", La), i = t.notify || ta(qa, () => {
|
|
641
745
|
}), r = _(() => t.idTooltip ? {
|
|
642
746
|
label: t.idTooltip,
|
|
643
747
|
positionFixed: !0,
|
|
@@ -650,61 +754,60 @@ const ae = {
|
|
|
650
754
|
maxWidth: "500px",
|
|
651
755
|
placement: "bottomStart"
|
|
652
756
|
} : {}), c = _(() => {
|
|
653
|
-
var
|
|
654
|
-
return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(
|
|
655
|
-
}), d = (
|
|
656
|
-
l.value =
|
|
757
|
+
var g;
|
|
758
|
+
return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(g = t.uuid) == null ? void 0 : g.substring(0, 5)}` : t.uuid;
|
|
759
|
+
}), d = (g) => {
|
|
760
|
+
l.value = g, setTimeout(() => {
|
|
657
761
|
l.value = t.tooltip;
|
|
658
762
|
}, 1800);
|
|
659
|
-
}, u = (
|
|
763
|
+
}, u = (g) => {
|
|
660
764
|
var f, I;
|
|
661
|
-
if (!
|
|
765
|
+
if (!g(t.uuid)) {
|
|
662
766
|
typeof i == "function" && i({
|
|
663
767
|
type: "error",
|
|
664
768
|
message: a("message.fail")
|
|
665
769
|
}), o.value ? d(a("message.fail")) : n("error", t.uuid);
|
|
666
770
|
return;
|
|
667
771
|
}
|
|
668
|
-
const v = ((f = t.uuid) == null ? void 0 : f.length) >
|
|
772
|
+
const v = ((f = t.uuid) == null ? void 0 : f.length) > $t, p = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, $t)) + (v ? "..." : "")}"`;
|
|
669
773
|
typeof i == "function" && i({
|
|
670
774
|
type: "success",
|
|
671
775
|
message: `${p}${a("message.success.content")}`
|
|
672
776
|
}), o.value ? d(t.successTooltip) : n("success", t.uuid);
|
|
673
777
|
};
|
|
674
|
-
return (
|
|
675
|
-
const I =
|
|
676
|
-
return
|
|
677
|
-
e.format !== "hidden" ? (
|
|
778
|
+
return (g, f) => {
|
|
779
|
+
const I = F("KClipboardProvider");
|
|
780
|
+
return y(), x("div", Ya, [
|
|
781
|
+
e.format !== "hidden" ? (y(), K($e(e.idTooltip ? "KTooltip" : "div"), et({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
|
|
678
782
|
default: b(() => [
|
|
679
|
-
|
|
783
|
+
L("div", {
|
|
680
784
|
class: Ie([
|
|
681
785
|
"uuid-container",
|
|
682
786
|
e.truncated ? "truncated-uuid" : null,
|
|
683
787
|
e.useMono ? "mono" : null
|
|
684
788
|
])
|
|
685
|
-
},
|
|
789
|
+
}, N(c.value), 3)
|
|
686
790
|
]),
|
|
687
791
|
_: 1
|
|
688
792
|
}, 16)) : U("", !0),
|
|
689
|
-
(
|
|
793
|
+
(y(), K($e(e.tooltip ? "KTooltip" : "div"), et(s.value, { class: "uuid-icon-wrapper" }), {
|
|
690
794
|
default: b(() => [
|
|
691
|
-
|
|
692
|
-
default: b(({ copyToClipboard:
|
|
693
|
-
|
|
795
|
+
T(I, null, {
|
|
796
|
+
default: b(({ copyToClipboard: v }) => [
|
|
797
|
+
L("span", {
|
|
694
798
|
"data-testid": "copy-to-clipboard",
|
|
695
799
|
role: "button",
|
|
696
800
|
tabindex: "0",
|
|
697
|
-
onClick: Pe((
|
|
801
|
+
onClick: Pe((p) => u(v), ["stop"])
|
|
698
802
|
}, [
|
|
699
|
-
|
|
803
|
+
T(w(Ha), {
|
|
700
804
|
class: "uuid-icon",
|
|
701
805
|
color: e.iconColor,
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
size: "16",
|
|
806
|
+
decorative: !!e.tooltip,
|
|
807
|
+
size: w(Ja),
|
|
705
808
|
title: w(a)("iconTitle")
|
|
706
|
-
}, null, 8, ["color", "
|
|
707
|
-
], 8,
|
|
809
|
+
}, null, 8, ["color", "decorative", "size", "title"])
|
|
810
|
+
], 8, Wa)
|
|
708
811
|
]),
|
|
709
812
|
_: 1
|
|
710
813
|
})
|
|
@@ -714,15 +817,15 @@ const ae = {
|
|
|
714
817
|
]);
|
|
715
818
|
};
|
|
716
819
|
}
|
|
717
|
-
}),
|
|
820
|
+
}), Za = (e, n) => {
|
|
718
821
|
const t = e.__vccOpts || e;
|
|
719
822
|
for (const [a, i] of n)
|
|
720
823
|
t[a] = i;
|
|
721
824
|
return t;
|
|
722
|
-
},
|
|
825
|
+
}, nn = /* @__PURE__ */ Za(Ga, [["__scopeId", "data-v-0c07874b"]]), Xa = {
|
|
723
826
|
key: 0,
|
|
724
827
|
class: "config-card-fieldset-title"
|
|
725
|
-
},
|
|
828
|
+
}, Qa = /* @__PURE__ */ Q({
|
|
726
829
|
__name: "JsonCardItem",
|
|
727
830
|
props: {
|
|
728
831
|
item: {
|
|
@@ -746,14 +849,14 @@ const ae = {
|
|
|
746
849
|
var s;
|
|
747
850
|
return n.isArrayItem ? (s = r.value) != null && s.name ? a(r.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
748
851
|
});
|
|
749
|
-
return (s, c) => (
|
|
852
|
+
return (s, c) => (y(), K($e(e.isArrayItem ? "fieldset" : "div"), {
|
|
750
853
|
class: Ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
751
854
|
}, {
|
|
752
855
|
default: b(() => [
|
|
753
|
-
e.isArrayItem ? (
|
|
754
|
-
|
|
856
|
+
e.isArrayItem ? (y(), x("legend", Xa, [
|
|
857
|
+
L("b", null, N(l.value), 1)
|
|
755
858
|
])) : U("", !0),
|
|
756
|
-
(
|
|
859
|
+
(y(!0), x(pe, null, ue(Object.keys(o.value), (d, u) => (y(), K(ft, {
|
|
757
860
|
key: `${i.value}-property-${u}`,
|
|
758
861
|
item: {
|
|
759
862
|
key: d,
|
|
@@ -770,7 +873,7 @@ const ae = {
|
|
|
770
873
|
for (const [a, i] of n)
|
|
771
874
|
t[a] = i;
|
|
772
875
|
return t;
|
|
773
|
-
},
|
|
876
|
+
}, an = /* @__PURE__ */ fe(Qa, [["__scopeId", "data-v-68ca83ec"]]), ei = /* @__PURE__ */ Q({
|
|
774
877
|
__name: "InternalLinkItem",
|
|
775
878
|
props: {
|
|
776
879
|
item: {
|
|
@@ -782,22 +885,22 @@ const ae = {
|
|
|
782
885
|
setup(e) {
|
|
783
886
|
const { i18n: { t: n } } = ae.useI18n();
|
|
784
887
|
return (t, a) => {
|
|
785
|
-
const i =
|
|
786
|
-
return
|
|
787
|
-
|
|
788
|
-
appearance: "
|
|
888
|
+
const i = F("KButton");
|
|
889
|
+
return y(), x("div", null, [
|
|
890
|
+
T(i, {
|
|
891
|
+
appearance: "tertiary",
|
|
789
892
|
class: "navigation-button",
|
|
790
893
|
onClick: a[0] || (a[0] = (r) => t.$emit("navigation-click", e.item))
|
|
791
894
|
}, {
|
|
792
895
|
default: b(() => [
|
|
793
|
-
z(
|
|
896
|
+
z(N(e.item.value || w(n)("baseConfigCard.commonFields.link")), 1)
|
|
794
897
|
]),
|
|
795
898
|
_: 1
|
|
796
899
|
})
|
|
797
900
|
]);
|
|
798
901
|
};
|
|
799
902
|
}
|
|
800
|
-
}),
|
|
903
|
+
}), ti = /* @__PURE__ */ fe(ei, [["__scopeId", "data-v-c96811e5"]]), ni = /* @__PURE__ */ Q({
|
|
801
904
|
__name: "StatusBadge",
|
|
802
905
|
props: {
|
|
803
906
|
status: {
|
|
@@ -808,22 +911,22 @@ const ae = {
|
|
|
808
911
|
setup(e) {
|
|
809
912
|
const { i18n: { t: n } } = ae.useI18n();
|
|
810
913
|
return (t, a) => {
|
|
811
|
-
const i =
|
|
812
|
-
return
|
|
914
|
+
const i = F("KBadge");
|
|
915
|
+
return y(), K(i, {
|
|
813
916
|
appearance: e.status ? "success" : "neutral"
|
|
814
917
|
}, {
|
|
815
918
|
default: b(() => [
|
|
816
|
-
z(
|
|
919
|
+
z(N(e.status ? w(n)("baseConfigCard.statusBadge.enabledLabel") : w(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
817
920
|
]),
|
|
818
921
|
_: 1
|
|
819
922
|
}, 8, ["appearance"]);
|
|
820
923
|
};
|
|
821
924
|
}
|
|
822
|
-
}),
|
|
925
|
+
}), ai = "#0044f4", ii = "#e0e4ea", ri = "#3a3f51", oi = "1px", li = "20px", si = { class: "config-card-details-row" }, ci = ["data-testid"], ui = ["data-testid"], di = ["data-testid"], pi = ["data-testid"], fi = { key: 1 }, yi = ["data-testid"], gi = ["data-testid"], mi = ["data-testid"], hi = ["data-testid"], vi = {
|
|
823
926
|
name: "ConfigCardItem",
|
|
824
|
-
components: { CopyUuid:
|
|
825
|
-
},
|
|
826
|
-
...
|
|
927
|
+
components: { CopyUuid: nn, JsonCardItem: an, StatusBadge: ni, InternalLinkItem: ti }
|
|
928
|
+
}, bi = /* @__PURE__ */ Q({
|
|
929
|
+
...vi,
|
|
827
930
|
props: {
|
|
828
931
|
item: {
|
|
829
932
|
type: Object,
|
|
@@ -843,8 +946,8 @@ const ae = {
|
|
|
843
946
|
emits: ["navigation-click"],
|
|
844
947
|
setup(e, { emit: n }) {
|
|
845
948
|
const t = e;
|
|
846
|
-
|
|
847
|
-
"1df60db4": c.value ? "none" : `solid ${w(
|
|
949
|
+
Gn((f) => ({
|
|
950
|
+
"1df60db4": c.value ? "none" : `solid ${w(oi)} ${w(ii)}`,
|
|
848
951
|
"21d1d34e": s.value && o.value ? "block" : "flex",
|
|
849
952
|
"4d3dc7e7": s.value && o.value ? "100%" : t.slim ? "50%" : "25%",
|
|
850
953
|
"4d400dc2": s.value && o.value ? "100%" : t.slim ? "50%" : "75%"
|
|
@@ -975,178 +1078,178 @@ const ae = {
|
|
|
975
1078
|
text: t.item.value
|
|
976
1079
|
};
|
|
977
1080
|
}
|
|
978
|
-
}), u = O(), { isTruncated:
|
|
1081
|
+
}), u = O(), { isTruncated: g } = ae.useTruncationDetector(u);
|
|
979
1082
|
return (f, I) => {
|
|
980
|
-
const v =
|
|
981
|
-
return
|
|
982
|
-
|
|
1083
|
+
const v = F("KLabel"), p = F("KBadge"), h = F("KMethodBadge"), m = F("KTooltip");
|
|
1084
|
+
return y(), x("div", si, [
|
|
1085
|
+
L("div", {
|
|
983
1086
|
class: "config-card-details-label",
|
|
984
1087
|
"data-testid": `${e.item.key}-label`
|
|
985
1088
|
}, [
|
|
986
|
-
|
|
987
|
-
|
|
1089
|
+
V(f.$slots, "label", { item: e.item }, () => [
|
|
1090
|
+
T(v, { "tooltip-attributes": { maxWidth: "500px" } }, we({
|
|
988
1091
|
default: b(() => [
|
|
989
|
-
z(
|
|
1092
|
+
z(N(e.item.label) + " ", 1)
|
|
990
1093
|
]),
|
|
991
1094
|
_: 2
|
|
992
1095
|
}, [
|
|
993
1096
|
l.value ? {
|
|
994
1097
|
name: "tooltip",
|
|
995
1098
|
fn: b(() => [
|
|
996
|
-
|
|
1099
|
+
L("div", {
|
|
997
1100
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
998
1101
|
}, [
|
|
999
|
-
|
|
1000
|
-
z(
|
|
1102
|
+
V(f.$slots, "label-tooltip", {}, () => [
|
|
1103
|
+
z(N(e.item.tooltip), 1)
|
|
1001
1104
|
], !0)
|
|
1002
|
-
], 8,
|
|
1105
|
+
], 8, ui)
|
|
1003
1106
|
]),
|
|
1004
1107
|
key: "0"
|
|
1005
1108
|
} : void 0
|
|
1006
1109
|
]), 1024)
|
|
1007
1110
|
], !0)
|
|
1008
|
-
], 8,
|
|
1009
|
-
|
|
1111
|
+
], 8, ci),
|
|
1112
|
+
L("div", {
|
|
1010
1113
|
class: "config-card-details-value",
|
|
1011
1114
|
"data-testid": `${e.item.key}-property-value`
|
|
1012
1115
|
}, [
|
|
1013
|
-
|
|
1116
|
+
V(f.$slots, e.item.key, {
|
|
1014
1117
|
rowValue: e.item.value
|
|
1015
1118
|
}, () => [
|
|
1016
|
-
o.value ? (
|
|
1017
|
-
(
|
|
1119
|
+
o.value ? (y(), x("div", fi, [
|
|
1120
|
+
(y(), K($e(d.value.tag), Zn(Xn(d.value.attrs)), {
|
|
1018
1121
|
default: b(() => [
|
|
1019
|
-
d.value.additionalComponent === "KBadge" ? (
|
|
1122
|
+
d.value.additionalComponent === "KBadge" ? (y(), x("div", {
|
|
1020
1123
|
key: 0,
|
|
1021
1124
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1022
1125
|
}, [
|
|
1023
|
-
(
|
|
1126
|
+
(y(!0), x(pe, null, ue(e.item.value, (k, S) => (y(), K(p, {
|
|
1024
1127
|
key: `${e.item.key}-badge-tag-${S}`,
|
|
1025
1128
|
class: "config-badge",
|
|
1026
1129
|
"data-testid": `${e.item.key}-badge-tag-${S}`,
|
|
1027
1130
|
"truncation-tooltip": k
|
|
1028
1131
|
}, {
|
|
1029
1132
|
default: b(() => [
|
|
1030
|
-
z(
|
|
1133
|
+
z(N(k), 1)
|
|
1031
1134
|
]),
|
|
1032
1135
|
_: 2
|
|
1033
1136
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
1034
|
-
], 8,
|
|
1035
|
-
d.value.additionalComponent === "CopyUuid" ? (
|
|
1137
|
+
], 8, yi)) : U("", !0),
|
|
1138
|
+
d.value.additionalComponent === "CopyUuid" ? (y(), x("div", {
|
|
1036
1139
|
key: 1,
|
|
1037
1140
|
class: "copy-uuid-array",
|
|
1038
1141
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1039
1142
|
}, [
|
|
1040
|
-
(
|
|
1143
|
+
(y(!0), x(pe, null, ue(e.item.value, (k, S) => (y(), K(w(nn), et(d.value.childAttrs, {
|
|
1041
1144
|
key: `${e.item.key}-copy-uuid-${S}`,
|
|
1042
1145
|
"data-testid": `${e.item.key}-copy-uuid-${S}`,
|
|
1043
1146
|
uuid: k
|
|
1044
1147
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1045
|
-
], 8,
|
|
1148
|
+
], 8, gi)) : d.value.additionalComponent === "KMethodBadge" ? (y(), x("div", {
|
|
1046
1149
|
key: 2,
|
|
1047
1150
|
class: "method-badge-array",
|
|
1048
1151
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1049
1152
|
}, [
|
|
1050
|
-
(
|
|
1153
|
+
(y(!0), x(pe, null, ue(e.item.value, (k, S) => (y(), K(h, {
|
|
1051
1154
|
key: `${e.item.key}-badge-method-${S}`,
|
|
1052
1155
|
class: "config-badge",
|
|
1053
1156
|
"data-testid": `${e.item.key}-badge-method-${S}`,
|
|
1054
1157
|
"is-rounded": "",
|
|
1055
1158
|
label: k,
|
|
1056
|
-
method: w(
|
|
1159
|
+
method: w(ia).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
|
|
1057
1160
|
}, {
|
|
1058
1161
|
default: b(() => [
|
|
1059
|
-
z(
|
|
1162
|
+
z(N(k), 1)
|
|
1060
1163
|
]),
|
|
1061
1164
|
_: 2
|
|
1062
1165
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
1063
|
-
], 8,
|
|
1064
|
-
d.value.additionalComponent === "JsonCardItem" ? (
|
|
1166
|
+
], 8, mi)) : U("", !0),
|
|
1167
|
+
d.value.additionalComponent === "JsonCardItem" ? (y(), x("div", {
|
|
1065
1168
|
key: 3,
|
|
1066
1169
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1067
1170
|
}, [
|
|
1068
|
-
(
|
|
1171
|
+
(y(!0), x(pe, null, ue(e.item.value, (k, S) => (y(), K(an, {
|
|
1069
1172
|
key: `json-array-item-${S}`,
|
|
1070
1173
|
index: S,
|
|
1071
1174
|
"is-array-item": "",
|
|
1072
1175
|
item: k
|
|
1073
1176
|
}, null, 8, ["index", "item"]))), 128))
|
|
1074
|
-
], 8,
|
|
1177
|
+
], 8, hi)) : (y(), K(m, {
|
|
1075
1178
|
key: 4,
|
|
1076
|
-
label: w(
|
|
1179
|
+
label: w(g) ? e.item.value : ""
|
|
1077
1180
|
}, {
|
|
1078
1181
|
default: b(() => [
|
|
1079
|
-
|
|
1182
|
+
L("span", {
|
|
1080
1183
|
ref_key: "textContent",
|
|
1081
1184
|
ref: u,
|
|
1082
1185
|
class: Ie(["attrs-data-text", { truncated: e.truncated }])
|
|
1083
|
-
},
|
|
1186
|
+
}, N(d.value.text), 3)
|
|
1084
1187
|
]),
|
|
1085
1188
|
_: 1
|
|
1086
1189
|
}, 8, ["label"]))
|
|
1087
1190
|
]),
|
|
1088
1191
|
_: 1
|
|
1089
1192
|
}, 16))
|
|
1090
|
-
])) : (
|
|
1193
|
+
])) : (y(), x("div", {
|
|
1091
1194
|
key: 0,
|
|
1092
1195
|
"data-testid": `${e.item.key}-no-value`
|
|
1093
|
-
}, " – ", 8,
|
|
1196
|
+
}, " – ", 8, pi))
|
|
1094
1197
|
], !0)
|
|
1095
|
-
], 8,
|
|
1198
|
+
], 8, di)
|
|
1096
1199
|
]);
|
|
1097
1200
|
};
|
|
1098
1201
|
}
|
|
1099
|
-
}), ft = /* @__PURE__ */ fe(
|
|
1202
|
+
}), ft = /* @__PURE__ */ fe(bi, [["__scopeId", "data-v-307ab96d"]]);
|
|
1100
1203
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1101
|
-
function
|
|
1204
|
+
function rn(e) {
|
|
1102
1205
|
return typeof e > "u" || e === null;
|
|
1103
1206
|
}
|
|
1104
|
-
function
|
|
1207
|
+
function ki(e) {
|
|
1105
1208
|
return typeof e == "object" && e !== null;
|
|
1106
1209
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return Array.isArray(e) ? e :
|
|
1210
|
+
function Ci(e) {
|
|
1211
|
+
return Array.isArray(e) ? e : rn(e) ? [] : [e];
|
|
1109
1212
|
}
|
|
1110
|
-
function
|
|
1213
|
+
function wi(e, n) {
|
|
1111
1214
|
var t, a, i, r;
|
|
1112
1215
|
if (n)
|
|
1113
1216
|
for (r = Object.keys(n), t = 0, a = r.length; t < a; t += 1)
|
|
1114
1217
|
i = r[t], e[i] = n[i];
|
|
1115
1218
|
return e;
|
|
1116
1219
|
}
|
|
1117
|
-
function
|
|
1220
|
+
function Si(e, n) {
|
|
1118
1221
|
var t = "", a;
|
|
1119
1222
|
for (a = 0; a < n; a += 1)
|
|
1120
1223
|
t += e;
|
|
1121
1224
|
return t;
|
|
1122
1225
|
}
|
|
1123
|
-
function
|
|
1226
|
+
function Ii(e) {
|
|
1124
1227
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1125
1228
|
}
|
|
1126
|
-
var
|
|
1127
|
-
isNothing:
|
|
1128
|
-
isObject:
|
|
1129
|
-
toArray:
|
|
1130
|
-
repeat:
|
|
1131
|
-
isNegativeZero:
|
|
1132
|
-
extend:
|
|
1229
|
+
var Ai = rn, xi = ki, _i = Ci, Ti = Si, $i = Ii, ji = wi, te = {
|
|
1230
|
+
isNothing: Ai,
|
|
1231
|
+
isObject: xi,
|
|
1232
|
+
toArray: _i,
|
|
1233
|
+
repeat: Ti,
|
|
1234
|
+
isNegativeZero: $i,
|
|
1235
|
+
extend: ji
|
|
1133
1236
|
};
|
|
1134
|
-
function
|
|
1237
|
+
function on(e, n) {
|
|
1135
1238
|
var t = "", a = e.reason || "(unknown reason)";
|
|
1136
1239
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
|
|
1137
1240
|
|
|
1138
1241
|
` + e.mark.snippet), a + " " + t) : a;
|
|
1139
1242
|
}
|
|
1140
|
-
function
|
|
1141
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message =
|
|
1243
|
+
function Ee(e, n) {
|
|
1244
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = on(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1142
1245
|
}
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
return this.name + ": " +
|
|
1246
|
+
Ee.prototype = Object.create(Error.prototype);
|
|
1247
|
+
Ee.prototype.constructor = Ee;
|
|
1248
|
+
Ee.prototype.toString = function(e) {
|
|
1249
|
+
return this.name + ": " + on(this, e);
|
|
1147
1250
|
};
|
|
1148
|
-
var se =
|
|
1149
|
-
function
|
|
1251
|
+
var se = Ee;
|
|
1252
|
+
function Ze(e, n, t, a, i) {
|
|
1150
1253
|
var r = "", o = "", l = Math.floor(i / 2) - 1;
|
|
1151
1254
|
return a - n > l && (r = " ... ", n = a - l + r.length), t - a > l && (o = " ...", t = a + l - o.length), {
|
|
1152
1255
|
str: r + e.slice(n, t).replace(/\t/g, "→") + o,
|
|
@@ -1155,9 +1258,9 @@ function Ge(e, n, t, a, i) {
|
|
|
1155
1258
|
};
|
|
1156
1259
|
}
|
|
1157
1260
|
function Xe(e, n) {
|
|
1158
|
-
return
|
|
1261
|
+
return te.repeat(" ", n - e.length) + e;
|
|
1159
1262
|
}
|
|
1160
|
-
function
|
|
1263
|
+
function Oi(e, n) {
|
|
1161
1264
|
if (n = Object.create(n || null), !e.buffer)
|
|
1162
1265
|
return null;
|
|
1163
1266
|
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
@@ -1166,28 +1269,28 @@ function Ci(e, n) {
|
|
|
1166
1269
|
o < 0 && (o = a.length - 1);
|
|
1167
1270
|
var l = "", s, c, d = Math.min(e.line + n.linesAfter, i.length).toString().length, u = n.maxLength - (n.indent + d + 3);
|
|
1168
1271
|
for (s = 1; s <= n.linesBefore && !(o - s < 0); s++)
|
|
1169
|
-
c =
|
|
1272
|
+
c = Ze(
|
|
1170
1273
|
e.buffer,
|
|
1171
1274
|
a[o - s],
|
|
1172
1275
|
i[o - s],
|
|
1173
1276
|
e.position - (a[o] - a[o - s]),
|
|
1174
1277
|
u
|
|
1175
|
-
), l =
|
|
1278
|
+
), l = te.repeat(" ", n.indent) + Xe((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1176
1279
|
` + l;
|
|
1177
|
-
for (c =
|
|
1178
|
-
`, l +=
|
|
1280
|
+
for (c = Ze(e.buffer, a[o], i[o], e.position, u), l += te.repeat(" ", n.indent) + Xe((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1281
|
+
`, l += te.repeat("-", n.indent + d + 3 + c.pos) + `^
|
|
1179
1282
|
`, s = 1; s <= n.linesAfter && !(o + s >= i.length); s++)
|
|
1180
|
-
c =
|
|
1283
|
+
c = Ze(
|
|
1181
1284
|
e.buffer,
|
|
1182
1285
|
a[o + s],
|
|
1183
1286
|
i[o + s],
|
|
1184
1287
|
e.position - (a[o] - a[o + s]),
|
|
1185
1288
|
u
|
|
1186
|
-
), l +=
|
|
1289
|
+
), l += te.repeat(" ", n.indent) + Xe((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1187
1290
|
`;
|
|
1188
1291
|
return l.replace(/\n$/, "");
|
|
1189
1292
|
}
|
|
1190
|
-
var
|
|
1293
|
+
var Mi = Oi, Ei = [
|
|
1191
1294
|
"kind",
|
|
1192
1295
|
"multi",
|
|
1193
1296
|
"resolve",
|
|
@@ -1198,12 +1301,12 @@ var wi = Ci, Si = [
|
|
|
1198
1301
|
"representName",
|
|
1199
1302
|
"defaultStyle",
|
|
1200
1303
|
"styleAliases"
|
|
1201
|
-
],
|
|
1304
|
+
], Fi = [
|
|
1202
1305
|
"scalar",
|
|
1203
1306
|
"sequence",
|
|
1204
1307
|
"mapping"
|
|
1205
1308
|
];
|
|
1206
|
-
function
|
|
1309
|
+
function Ni(e) {
|
|
1207
1310
|
var n = {};
|
|
1208
1311
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1209
1312
|
e[t].forEach(function(a) {
|
|
@@ -1211,18 +1314,18 @@ function Ai(e) {
|
|
|
1211
1314
|
});
|
|
1212
1315
|
}), n;
|
|
1213
1316
|
}
|
|
1214
|
-
function
|
|
1317
|
+
function Ki(e, n) {
|
|
1215
1318
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1216
|
-
if (
|
|
1319
|
+
if (Ei.indexOf(t) === -1)
|
|
1217
1320
|
throw new se('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1218
1321
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1219
1322
|
return !0;
|
|
1220
1323
|
}, this.construct = n.construct || function(t) {
|
|
1221
1324
|
return t;
|
|
1222
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1325
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = Ni(n.styleAliases || null), Fi.indexOf(this.kind) === -1)
|
|
1223
1326
|
throw new se('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1224
1327
|
}
|
|
1225
|
-
var re =
|
|
1328
|
+
var re = Ki;
|
|
1226
1329
|
function jt(e, n) {
|
|
1227
1330
|
var t = [];
|
|
1228
1331
|
return e[n].forEach(function(a) {
|
|
@@ -1232,7 +1335,7 @@ function jt(e, n) {
|
|
|
1232
1335
|
}), t[i] = a;
|
|
1233
1336
|
}), t;
|
|
1234
1337
|
}
|
|
1235
|
-
function
|
|
1338
|
+
function Bi() {
|
|
1236
1339
|
var e = {
|
|
1237
1340
|
scalar: {},
|
|
1238
1341
|
sequence: {},
|
|
@@ -1277,47 +1380,47 @@ nt.prototype.extend = function(e) {
|
|
|
1277
1380
|
throw new se("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1278
1381
|
});
|
|
1279
1382
|
var a = Object.create(nt.prototype);
|
|
1280
|
-
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = jt(a, "implicit"), a.compiledExplicit = jt(a, "explicit"), a.compiledTypeMap =
|
|
1383
|
+
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = jt(a, "implicit"), a.compiledExplicit = jt(a, "explicit"), a.compiledTypeMap = Bi(a.compiledImplicit, a.compiledExplicit), a;
|
|
1281
1384
|
};
|
|
1282
|
-
var
|
|
1385
|
+
var ln = nt, sn = new re("tag:yaml.org,2002:str", {
|
|
1283
1386
|
kind: "scalar",
|
|
1284
1387
|
construct: function(e) {
|
|
1285
1388
|
return e !== null ? e : "";
|
|
1286
1389
|
}
|
|
1287
|
-
}),
|
|
1390
|
+
}), cn = new re("tag:yaml.org,2002:seq", {
|
|
1288
1391
|
kind: "sequence",
|
|
1289
1392
|
construct: function(e) {
|
|
1290
1393
|
return e !== null ? e : [];
|
|
1291
1394
|
}
|
|
1292
|
-
}),
|
|
1395
|
+
}), un = new re("tag:yaml.org,2002:map", {
|
|
1293
1396
|
kind: "mapping",
|
|
1294
1397
|
construct: function(e) {
|
|
1295
1398
|
return e !== null ? e : {};
|
|
1296
1399
|
}
|
|
1297
|
-
}),
|
|
1400
|
+
}), dn = new ln({
|
|
1298
1401
|
explicit: [
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1402
|
+
sn,
|
|
1403
|
+
cn,
|
|
1404
|
+
un
|
|
1302
1405
|
]
|
|
1303
1406
|
});
|
|
1304
|
-
function
|
|
1407
|
+
function Li(e) {
|
|
1305
1408
|
if (e === null)
|
|
1306
1409
|
return !0;
|
|
1307
1410
|
var n = e.length;
|
|
1308
1411
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1309
1412
|
}
|
|
1310
|
-
function
|
|
1413
|
+
function qi() {
|
|
1311
1414
|
return null;
|
|
1312
1415
|
}
|
|
1313
|
-
function
|
|
1416
|
+
function Pi(e) {
|
|
1314
1417
|
return e === null;
|
|
1315
1418
|
}
|
|
1316
|
-
var
|
|
1419
|
+
var pn = new re("tag:yaml.org,2002:null", {
|
|
1317
1420
|
kind: "scalar",
|
|
1318
|
-
resolve:
|
|
1319
|
-
construct:
|
|
1320
|
-
predicate:
|
|
1421
|
+
resolve: Li,
|
|
1422
|
+
construct: qi,
|
|
1423
|
+
predicate: Pi,
|
|
1321
1424
|
represent: {
|
|
1322
1425
|
canonical: function() {
|
|
1323
1426
|
return "~";
|
|
@@ -1337,23 +1440,23 @@ var ln = new re("tag:yaml.org,2002:null", {
|
|
|
1337
1440
|
},
|
|
1338
1441
|
defaultStyle: "lowercase"
|
|
1339
1442
|
});
|
|
1340
|
-
function
|
|
1443
|
+
function Ri(e) {
|
|
1341
1444
|
if (e === null)
|
|
1342
1445
|
return !1;
|
|
1343
1446
|
var n = e.length;
|
|
1344
1447
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1345
1448
|
}
|
|
1346
|
-
function
|
|
1449
|
+
function Ui(e) {
|
|
1347
1450
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1348
1451
|
}
|
|
1349
|
-
function
|
|
1452
|
+
function Vi(e) {
|
|
1350
1453
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1351
1454
|
}
|
|
1352
|
-
var
|
|
1455
|
+
var fn = new re("tag:yaml.org,2002:bool", {
|
|
1353
1456
|
kind: "scalar",
|
|
1354
|
-
resolve:
|
|
1355
|
-
construct:
|
|
1356
|
-
predicate:
|
|
1457
|
+
resolve: Ri,
|
|
1458
|
+
construct: Ui,
|
|
1459
|
+
predicate: Vi,
|
|
1357
1460
|
represent: {
|
|
1358
1461
|
lowercase: function(e) {
|
|
1359
1462
|
return e ? "true" : "false";
|
|
@@ -1367,16 +1470,16 @@ var sn = new re("tag:yaml.org,2002:bool", {
|
|
|
1367
1470
|
},
|
|
1368
1471
|
defaultStyle: "lowercase"
|
|
1369
1472
|
});
|
|
1370
|
-
function
|
|
1473
|
+
function Di(e) {
|
|
1371
1474
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1372
1475
|
}
|
|
1373
|
-
function
|
|
1476
|
+
function zi(e) {
|
|
1374
1477
|
return 48 <= e && e <= 55;
|
|
1375
1478
|
}
|
|
1376
|
-
function
|
|
1479
|
+
function Hi(e) {
|
|
1377
1480
|
return 48 <= e && e <= 57;
|
|
1378
1481
|
}
|
|
1379
|
-
function
|
|
1482
|
+
function Ji(e) {
|
|
1380
1483
|
if (e === null)
|
|
1381
1484
|
return !1;
|
|
1382
1485
|
var n = e.length, t = 0, a = !1, i;
|
|
@@ -1397,7 +1500,7 @@ function Bi(e) {
|
|
|
1397
1500
|
if (i === "x") {
|
|
1398
1501
|
for (t++; t < n; t++)
|
|
1399
1502
|
if (i = e[t], i !== "_") {
|
|
1400
|
-
if (!
|
|
1503
|
+
if (!Di(e.charCodeAt(t)))
|
|
1401
1504
|
return !1;
|
|
1402
1505
|
a = !0;
|
|
1403
1506
|
}
|
|
@@ -1406,7 +1509,7 @@ function Bi(e) {
|
|
|
1406
1509
|
if (i === "o") {
|
|
1407
1510
|
for (t++; t < n; t++)
|
|
1408
1511
|
if (i = e[t], i !== "_") {
|
|
1409
|
-
if (!
|
|
1512
|
+
if (!zi(e.charCodeAt(t)))
|
|
1410
1513
|
return !1;
|
|
1411
1514
|
a = !0;
|
|
1412
1515
|
}
|
|
@@ -1417,13 +1520,13 @@ function Bi(e) {
|
|
|
1417
1520
|
return !1;
|
|
1418
1521
|
for (; t < n; t++)
|
|
1419
1522
|
if (i = e[t], i !== "_") {
|
|
1420
|
-
if (!
|
|
1523
|
+
if (!Hi(e.charCodeAt(t)))
|
|
1421
1524
|
return !1;
|
|
1422
1525
|
a = !0;
|
|
1423
1526
|
}
|
|
1424
1527
|
return !(!a || i === "_");
|
|
1425
1528
|
}
|
|
1426
|
-
function
|
|
1529
|
+
function Yi(e) {
|
|
1427
1530
|
var n = e, t = 1, a;
|
|
1428
1531
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), a = n[0], (a === "-" || a === "+") && (a === "-" && (t = -1), n = n.slice(1), a = n[0]), n === "0")
|
|
1429
1532
|
return 0;
|
|
@@ -1437,14 +1540,14 @@ function Li(e) {
|
|
|
1437
1540
|
}
|
|
1438
1541
|
return t * parseInt(n, 10);
|
|
1439
1542
|
}
|
|
1440
|
-
function
|
|
1441
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
1543
|
+
function Wi(e) {
|
|
1544
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !te.isNegativeZero(e);
|
|
1442
1545
|
}
|
|
1443
|
-
var
|
|
1546
|
+
var yn = new re("tag:yaml.org,2002:int", {
|
|
1444
1547
|
kind: "scalar",
|
|
1445
|
-
resolve:
|
|
1446
|
-
construct:
|
|
1447
|
-
predicate:
|
|
1548
|
+
resolve: Ji,
|
|
1549
|
+
construct: Yi,
|
|
1550
|
+
predicate: Wi,
|
|
1448
1551
|
represent: {
|
|
1449
1552
|
binary: function(e) {
|
|
1450
1553
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1467,21 +1570,21 @@ var cn = new re("tag:yaml.org,2002:int", {
|
|
|
1467
1570
|
decimal: [10, "dec"],
|
|
1468
1571
|
hexadecimal: [16, "hex"]
|
|
1469
1572
|
}
|
|
1470
|
-
}),
|
|
1573
|
+
}), Gi = new RegExp(
|
|
1471
1574
|
// 2.5e4, 2.5 and integers
|
|
1472
1575
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1473
1576
|
);
|
|
1474
|
-
function
|
|
1475
|
-
return !(e === null || !
|
|
1577
|
+
function Zi(e) {
|
|
1578
|
+
return !(e === null || !Gi.test(e) || // Quick hack to not allow integers end with `_`
|
|
1476
1579
|
// Probably should update regexp & check speed
|
|
1477
1580
|
e[e.length - 1] === "_");
|
|
1478
1581
|
}
|
|
1479
|
-
function
|
|
1582
|
+
function Xi(e) {
|
|
1480
1583
|
var n, t;
|
|
1481
1584
|
return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
|
|
1482
1585
|
}
|
|
1483
|
-
var
|
|
1484
|
-
function
|
|
1586
|
+
var Qi = /^[-+]?[0-9]+e/;
|
|
1587
|
+
function er(e, n) {
|
|
1485
1588
|
var t;
|
|
1486
1589
|
if (isNaN(e))
|
|
1487
1590
|
switch (n) {
|
|
@@ -1510,38 +1613,38 @@ function Vi(e, n) {
|
|
|
1510
1613
|
case "camelcase":
|
|
1511
1614
|
return "-.Inf";
|
|
1512
1615
|
}
|
|
1513
|
-
else if (
|
|
1616
|
+
else if (te.isNegativeZero(e))
|
|
1514
1617
|
return "-0.0";
|
|
1515
|
-
return t = e.toString(10),
|
|
1618
|
+
return t = e.toString(10), Qi.test(t) ? t.replace("e", ".e") : t;
|
|
1516
1619
|
}
|
|
1517
|
-
function
|
|
1518
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1620
|
+
function tr(e) {
|
|
1621
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || te.isNegativeZero(e));
|
|
1519
1622
|
}
|
|
1520
|
-
var
|
|
1623
|
+
var gn = new re("tag:yaml.org,2002:float", {
|
|
1521
1624
|
kind: "scalar",
|
|
1522
|
-
resolve:
|
|
1523
|
-
construct:
|
|
1524
|
-
predicate:
|
|
1525
|
-
represent:
|
|
1625
|
+
resolve: Zi,
|
|
1626
|
+
construct: Xi,
|
|
1627
|
+
predicate: tr,
|
|
1628
|
+
represent: er,
|
|
1526
1629
|
defaultStyle: "lowercase"
|
|
1527
|
-
}),
|
|
1630
|
+
}), mn = dn.extend({
|
|
1528
1631
|
implicit: [
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1632
|
+
pn,
|
|
1633
|
+
fn,
|
|
1634
|
+
yn,
|
|
1635
|
+
gn
|
|
1533
1636
|
]
|
|
1534
|
-
}),
|
|
1637
|
+
}), hn = mn, vn = new RegExp(
|
|
1535
1638
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1536
|
-
),
|
|
1639
|
+
), bn = new RegExp(
|
|
1537
1640
|
"^([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]))?))?$"
|
|
1538
1641
|
);
|
|
1539
|
-
function
|
|
1540
|
-
return e === null ? !1 :
|
|
1642
|
+
function nr(e) {
|
|
1643
|
+
return e === null ? !1 : vn.exec(e) !== null || bn.exec(e) !== null;
|
|
1541
1644
|
}
|
|
1542
|
-
function
|
|
1543
|
-
var n, t, a, i, r, o, l, s = 0, c = null, d, u,
|
|
1544
|
-
if (n =
|
|
1645
|
+
function ar(e) {
|
|
1646
|
+
var n, t, a, i, r, o, l, s = 0, c = null, d, u, g;
|
|
1647
|
+
if (n = vn.exec(e), n === null && (n = bn.exec(e)), n === null)
|
|
1545
1648
|
throw new Error("Date resolve error");
|
|
1546
1649
|
if (t = +n[1], a = +n[2] - 1, i = +n[3], !n[4])
|
|
1547
1650
|
return new Date(Date.UTC(t, a, i));
|
|
@@ -1550,27 +1653,27 @@ function Ji(e) {
|
|
|
1550
1653
|
s += "0";
|
|
1551
1654
|
s = +s;
|
|
1552
1655
|
}
|
|
1553
|
-
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)),
|
|
1656
|
+
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, a, i, r, o, l, s)), c && g.setTime(g.getTime() - c), g;
|
|
1554
1657
|
}
|
|
1555
|
-
function
|
|
1658
|
+
function ir(e) {
|
|
1556
1659
|
return e.toISOString();
|
|
1557
1660
|
}
|
|
1558
|
-
var
|
|
1661
|
+
var kn = new re("tag:yaml.org,2002:timestamp", {
|
|
1559
1662
|
kind: "scalar",
|
|
1560
|
-
resolve:
|
|
1561
|
-
construct:
|
|
1663
|
+
resolve: nr,
|
|
1664
|
+
construct: ar,
|
|
1562
1665
|
instanceOf: Date,
|
|
1563
|
-
represent:
|
|
1666
|
+
represent: ir
|
|
1564
1667
|
});
|
|
1565
|
-
function
|
|
1668
|
+
function rr(e) {
|
|
1566
1669
|
return e === "<<" || e === null;
|
|
1567
1670
|
}
|
|
1568
|
-
var
|
|
1671
|
+
var Cn = new re("tag:yaml.org,2002:merge", {
|
|
1569
1672
|
kind: "scalar",
|
|
1570
|
-
resolve:
|
|
1673
|
+
resolve: rr
|
|
1571
1674
|
}), yt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1572
1675
|
\r`;
|
|
1573
|
-
function
|
|
1676
|
+
function or(e) {
|
|
1574
1677
|
if (e === null)
|
|
1575
1678
|
return !1;
|
|
1576
1679
|
var n, t, a = 0, i = e.length, r = yt;
|
|
@@ -1582,37 +1685,37 @@ function Zi(e) {
|
|
|
1582
1685
|
}
|
|
1583
1686
|
return a % 8 === 0;
|
|
1584
1687
|
}
|
|
1585
|
-
function
|
|
1688
|
+
function lr(e) {
|
|
1586
1689
|
var n, t, a = e.replace(/[\r\n=]/g, ""), i = a.length, r = yt, o = 0, l = [];
|
|
1587
1690
|
for (n = 0; n < i; n++)
|
|
1588
1691
|
n % 4 === 0 && n && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | r.indexOf(a.charAt(n));
|
|
1589
1692
|
return t = i % 4 * 6, t === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : t === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : t === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
|
|
1590
1693
|
}
|
|
1591
|
-
function
|
|
1694
|
+
function sr(e) {
|
|
1592
1695
|
var n = "", t = 0, a, i, r = e.length, o = yt;
|
|
1593
1696
|
for (a = 0; a < r; a++)
|
|
1594
1697
|
a % 3 === 0 && a && (n += o[t >> 18 & 63], n += o[t >> 12 & 63], n += o[t >> 6 & 63], n += o[t & 63]), t = (t << 8) + e[a];
|
|
1595
1698
|
return i = r % 3, i === 0 ? (n += o[t >> 18 & 63], n += o[t >> 12 & 63], n += o[t >> 6 & 63], n += o[t & 63]) : i === 2 ? (n += o[t >> 10 & 63], n += o[t >> 4 & 63], n += o[t << 2 & 63], n += o[64]) : i === 1 && (n += o[t >> 2 & 63], n += o[t << 4 & 63], n += o[64], n += o[64]), n;
|
|
1596
1699
|
}
|
|
1597
|
-
function
|
|
1700
|
+
function cr(e) {
|
|
1598
1701
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1599
1702
|
}
|
|
1600
|
-
var
|
|
1703
|
+
var wn = new re("tag:yaml.org,2002:binary", {
|
|
1601
1704
|
kind: "scalar",
|
|
1602
|
-
resolve:
|
|
1603
|
-
construct:
|
|
1604
|
-
predicate:
|
|
1605
|
-
represent:
|
|
1606
|
-
}),
|
|
1607
|
-
function
|
|
1705
|
+
resolve: or,
|
|
1706
|
+
construct: lr,
|
|
1707
|
+
predicate: cr,
|
|
1708
|
+
represent: sr
|
|
1709
|
+
}), ur = Object.prototype.hasOwnProperty, dr = Object.prototype.toString;
|
|
1710
|
+
function pr(e) {
|
|
1608
1711
|
if (e === null)
|
|
1609
1712
|
return !0;
|
|
1610
1713
|
var n = [], t, a, i, r, o, l = e;
|
|
1611
1714
|
for (t = 0, a = l.length; t < a; t += 1) {
|
|
1612
|
-
if (i = l[t], o = !1,
|
|
1715
|
+
if (i = l[t], o = !1, dr.call(i) !== "[object Object]")
|
|
1613
1716
|
return !1;
|
|
1614
1717
|
for (r in i)
|
|
1615
|
-
if (
|
|
1718
|
+
if (ur.call(i, r))
|
|
1616
1719
|
if (!o)
|
|
1617
1720
|
o = !0;
|
|
1618
1721
|
else
|
|
@@ -1626,26 +1729,26 @@ function nr(e) {
|
|
|
1626
1729
|
}
|
|
1627
1730
|
return !0;
|
|
1628
1731
|
}
|
|
1629
|
-
function
|
|
1732
|
+
function fr(e) {
|
|
1630
1733
|
return e !== null ? e : [];
|
|
1631
1734
|
}
|
|
1632
|
-
var
|
|
1735
|
+
var Sn = new re("tag:yaml.org,2002:omap", {
|
|
1633
1736
|
kind: "sequence",
|
|
1634
|
-
resolve:
|
|
1635
|
-
construct:
|
|
1636
|
-
}),
|
|
1637
|
-
function
|
|
1737
|
+
resolve: pr,
|
|
1738
|
+
construct: fr
|
|
1739
|
+
}), yr = Object.prototype.toString;
|
|
1740
|
+
function gr(e) {
|
|
1638
1741
|
if (e === null)
|
|
1639
1742
|
return !0;
|
|
1640
1743
|
var n, t, a, i, r, o = e;
|
|
1641
1744
|
for (r = new Array(o.length), n = 0, t = o.length; n < t; n += 1) {
|
|
1642
|
-
if (a = o[n],
|
|
1745
|
+
if (a = o[n], yr.call(a) !== "[object Object]" || (i = Object.keys(a), i.length !== 1))
|
|
1643
1746
|
return !1;
|
|
1644
1747
|
r[n] = [i[0], a[i[0]]];
|
|
1645
1748
|
}
|
|
1646
1749
|
return !0;
|
|
1647
1750
|
}
|
|
1648
|
-
function
|
|
1751
|
+
function mr(e) {
|
|
1649
1752
|
if (e === null)
|
|
1650
1753
|
return [];
|
|
1651
1754
|
var n, t, a, i, r, o = e;
|
|
@@ -1653,40 +1756,40 @@ function or(e) {
|
|
|
1653
1756
|
a = o[n], i = Object.keys(a), r[n] = [i[0], a[i[0]]];
|
|
1654
1757
|
return r;
|
|
1655
1758
|
}
|
|
1656
|
-
var
|
|
1759
|
+
var In = new re("tag:yaml.org,2002:pairs", {
|
|
1657
1760
|
kind: "sequence",
|
|
1658
|
-
resolve:
|
|
1659
|
-
construct:
|
|
1660
|
-
}),
|
|
1661
|
-
function
|
|
1761
|
+
resolve: gr,
|
|
1762
|
+
construct: mr
|
|
1763
|
+
}), hr = Object.prototype.hasOwnProperty;
|
|
1764
|
+
function vr(e) {
|
|
1662
1765
|
if (e === null)
|
|
1663
1766
|
return !0;
|
|
1664
1767
|
var n, t = e;
|
|
1665
1768
|
for (n in t)
|
|
1666
|
-
if (
|
|
1769
|
+
if (hr.call(t, n) && t[n] !== null)
|
|
1667
1770
|
return !1;
|
|
1668
1771
|
return !0;
|
|
1669
1772
|
}
|
|
1670
|
-
function
|
|
1773
|
+
function br(e) {
|
|
1671
1774
|
return e !== null ? e : {};
|
|
1672
1775
|
}
|
|
1673
|
-
var
|
|
1776
|
+
var An = new re("tag:yaml.org,2002:set", {
|
|
1674
1777
|
kind: "mapping",
|
|
1675
|
-
resolve:
|
|
1676
|
-
construct:
|
|
1677
|
-
}),
|
|
1778
|
+
resolve: vr,
|
|
1779
|
+
construct: br
|
|
1780
|
+
}), gt = hn.extend({
|
|
1678
1781
|
implicit: [
|
|
1679
|
-
|
|
1680
|
-
|
|
1782
|
+
kn,
|
|
1783
|
+
Cn
|
|
1681
1784
|
],
|
|
1682
1785
|
explicit: [
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1786
|
+
wn,
|
|
1787
|
+
Sn,
|
|
1788
|
+
In,
|
|
1789
|
+
An
|
|
1687
1790
|
]
|
|
1688
|
-
}), ve = Object.prototype.hasOwnProperty, Ue = 1,
|
|
1689
|
-
function
|
|
1791
|
+
}), ve = Object.prototype.hasOwnProperty, Ue = 1, xn = 2, _n = 3, Ve = 4, Qe = 1, kr = 2, Ot = 3, Cr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, wr = /[\x85\u2028\u2029]/, Sr = /[,\[\]\{\}]/, Tn = /^(?:!|!!|![a-z\-]+!)$/i, $n = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1792
|
+
function Mt(e) {
|
|
1690
1793
|
return Object.prototype.toString.call(e);
|
|
1691
1794
|
}
|
|
1692
1795
|
function ye(e) {
|
|
@@ -1701,33 +1804,33 @@ function ce(e) {
|
|
|
1701
1804
|
function _e(e) {
|
|
1702
1805
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1703
1806
|
}
|
|
1704
|
-
function
|
|
1807
|
+
function Ir(e) {
|
|
1705
1808
|
var n;
|
|
1706
1809
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
1707
1810
|
}
|
|
1708
|
-
function
|
|
1811
|
+
function Ar(e) {
|
|
1709
1812
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1710
1813
|
}
|
|
1711
|
-
function
|
|
1814
|
+
function xr(e) {
|
|
1712
1815
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1713
1816
|
}
|
|
1714
|
-
function
|
|
1817
|
+
function Et(e) {
|
|
1715
1818
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1716
1819
|
` : 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" : "";
|
|
1717
1820
|
}
|
|
1718
|
-
function
|
|
1821
|
+
function _r(e) {
|
|
1719
1822
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1720
1823
|
(e - 65536 >> 10) + 55296,
|
|
1721
1824
|
(e - 65536 & 1023) + 56320
|
|
1722
1825
|
);
|
|
1723
1826
|
}
|
|
1724
|
-
var
|
|
1827
|
+
var jn = new Array(256), On = new Array(256);
|
|
1725
1828
|
for (var Ae = 0; Ae < 256; Ae++)
|
|
1726
|
-
|
|
1727
|
-
function
|
|
1728
|
-
this.input = e, this.filename = n.filename || null, this.schema = n.schema ||
|
|
1829
|
+
jn[Ae] = Et(Ae) ? 1 : 0, On[Ae] = Et(Ae);
|
|
1830
|
+
function Tr(e, n) {
|
|
1831
|
+
this.input = e, this.filename = n.filename || null, this.schema = n.schema || gt, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1729
1832
|
}
|
|
1730
|
-
function
|
|
1833
|
+
function Mn(e, n) {
|
|
1731
1834
|
var t = {
|
|
1732
1835
|
name: e.filename,
|
|
1733
1836
|
buffer: e.input.slice(0, -1),
|
|
@@ -1736,22 +1839,22 @@ function _n(e, n) {
|
|
|
1736
1839
|
line: e.line,
|
|
1737
1840
|
column: e.position - e.lineStart
|
|
1738
1841
|
};
|
|
1739
|
-
return t.snippet =
|
|
1842
|
+
return t.snippet = Mi(t), new se(n, t);
|
|
1740
1843
|
}
|
|
1741
1844
|
function A(e, n) {
|
|
1742
|
-
throw
|
|
1845
|
+
throw Mn(e, n);
|
|
1743
1846
|
}
|
|
1744
|
-
function
|
|
1745
|
-
e.onWarning && e.onWarning.call(null,
|
|
1847
|
+
function De(e, n) {
|
|
1848
|
+
e.onWarning && e.onWarning.call(null, Mn(e, n));
|
|
1746
1849
|
}
|
|
1747
|
-
var
|
|
1850
|
+
var Ft = {
|
|
1748
1851
|
YAML: function(e, n, t) {
|
|
1749
1852
|
var a, i, r;
|
|
1750
|
-
e.version !== null && A(e, "duplication of %YAML directive"), t.length !== 1 && A(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && A(e, "ill-formed argument of the YAML directive"), i = parseInt(a[1], 10), r = parseInt(a[2], 10), i !== 1 && A(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = r < 2, r !== 1 && r !== 2 &&
|
|
1853
|
+
e.version !== null && A(e, "duplication of %YAML directive"), t.length !== 1 && A(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && A(e, "ill-formed argument of the YAML directive"), i = parseInt(a[1], 10), r = parseInt(a[2], 10), i !== 1 && A(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = r < 2, r !== 1 && r !== 2 && De(e, "unsupported YAML version of the document");
|
|
1751
1854
|
},
|
|
1752
1855
|
TAG: function(e, n, t) {
|
|
1753
1856
|
var a, i;
|
|
1754
|
-
t.length !== 2 && A(e, "TAG directive accepts exactly two arguments"), a = t[0], i = t[1],
|
|
1857
|
+
t.length !== 2 && A(e, "TAG directive accepts exactly two arguments"), a = t[0], i = t[1], Tn.test(a) || A(e, "ill-formed tag handle (first argument) of the TAG directive"), ve.call(e.tagMap, a) && A(e, 'there is a previously declared suffix for "' + a + '" tag handle'), $n.test(i) || A(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1755
1858
|
try {
|
|
1756
1859
|
i = decodeURIComponent(i);
|
|
1757
1860
|
} catch {
|
|
@@ -1767,26 +1870,26 @@ function he(e, n, t, a) {
|
|
|
1767
1870
|
for (i = 0, r = l.length; i < r; i += 1)
|
|
1768
1871
|
o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || A(e, "expected valid JSON character");
|
|
1769
1872
|
else
|
|
1770
|
-
|
|
1873
|
+
Cr.test(l) && A(e, "the stream contains non-printable characters");
|
|
1771
1874
|
e.result += l;
|
|
1772
1875
|
}
|
|
1773
1876
|
}
|
|
1774
|
-
function
|
|
1877
|
+
function Nt(e, n, t, a) {
|
|
1775
1878
|
var i, r, o, l;
|
|
1776
|
-
for (
|
|
1879
|
+
for (te.isObject(t) || A(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(t), o = 0, l = i.length; o < l; o += 1)
|
|
1777
1880
|
r = i[o], ve.call(n, r) || (n[r] = t[r], a[r] = !0);
|
|
1778
1881
|
}
|
|
1779
1882
|
function Te(e, n, t, a, i, r, o, l, s) {
|
|
1780
1883
|
var c, d;
|
|
1781
1884
|
if (Array.isArray(i))
|
|
1782
1885
|
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
1783
|
-
Array.isArray(i[c]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" &&
|
|
1784
|
-
if (typeof i == "object" &&
|
|
1886
|
+
Array.isArray(i[c]) && A(e, "nested arrays are not supported inside keys"), typeof i == "object" && Mt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
|
|
1887
|
+
if (typeof i == "object" && Mt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), n === null && (n = {}), a === "tag:yaml.org,2002:merge")
|
|
1785
1888
|
if (Array.isArray(r))
|
|
1786
1889
|
for (c = 0, d = r.length; c < d; c += 1)
|
|
1787
|
-
|
|
1890
|
+
Nt(e, n, r[c], t);
|
|
1788
1891
|
else
|
|
1789
|
-
|
|
1892
|
+
Nt(e, n, r, t);
|
|
1790
1893
|
else
|
|
1791
1894
|
!e.json && !ve.call(t, i) && ve.call(n, i) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, A(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(n, i, {
|
|
1792
1895
|
configurable: !0,
|
|
@@ -1796,7 +1899,7 @@ function Te(e, n, t, a, i, r, o, l, s) {
|
|
|
1796
1899
|
}) : n[i] = r, delete t[i];
|
|
1797
1900
|
return n;
|
|
1798
1901
|
}
|
|
1799
|
-
function
|
|
1902
|
+
function mt(e) {
|
|
1800
1903
|
var n;
|
|
1801
1904
|
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : A(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1802
1905
|
}
|
|
@@ -1809,23 +1912,23 @@ function X(e, n, t) {
|
|
|
1809
1912
|
i = e.input.charCodeAt(++e.position);
|
|
1810
1913
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1811
1914
|
if (ye(i))
|
|
1812
|
-
for (
|
|
1915
|
+
for (mt(e), i = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; i === 32; )
|
|
1813
1916
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1814
1917
|
else
|
|
1815
1918
|
break;
|
|
1816
1919
|
}
|
|
1817
|
-
return t !== -1 && a !== 0 && e.lineIndent < t &&
|
|
1920
|
+
return t !== -1 && a !== 0 && e.lineIndent < t && De(e, "deficient indentation"), a;
|
|
1818
1921
|
}
|
|
1819
1922
|
function Ye(e) {
|
|
1820
1923
|
var n = e.position, t;
|
|
1821
1924
|
return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || ce(t)));
|
|
1822
1925
|
}
|
|
1823
1926
|
function ht(e, n) {
|
|
1824
|
-
n === 1 ? e.result += " " : n > 1 && (e.result +=
|
|
1927
|
+
n === 1 ? e.result += " " : n > 1 && (e.result += te.repeat(`
|
|
1825
1928
|
`, n - 1));
|
|
1826
1929
|
}
|
|
1827
|
-
function
|
|
1828
|
-
var a, i, r, o, l, s, c, d, u = e.kind,
|
|
1930
|
+
function $r(e, n, t) {
|
|
1931
|
+
var a, i, r, o, l, s, c, d, u = e.kind, g = e.result, f;
|
|
1829
1932
|
if (f = e.input.charCodeAt(e.position), ce(f) || _e(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), ce(i) || t && _e(i)))
|
|
1830
1933
|
return !1;
|
|
1831
1934
|
for (e.kind = "scalar", e.result = "", r = o = e.position, l = !1; f !== 0; ) {
|
|
@@ -1849,9 +1952,9 @@ function br(e, n, t) {
|
|
|
1849
1952
|
}
|
|
1850
1953
|
l && (he(e, r, o, !1), ht(e, e.line - s), r = o = e.position, l = !1), Se(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1851
1954
|
}
|
|
1852
|
-
return he(e, r, o, !1), e.result ? !0 : (e.kind = u, e.result =
|
|
1955
|
+
return he(e, r, o, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1853
1956
|
}
|
|
1854
|
-
function
|
|
1957
|
+
function jr(e, n) {
|
|
1855
1958
|
var t, a, i;
|
|
1856
1959
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1857
1960
|
return !1;
|
|
@@ -1865,7 +1968,7 @@ function kr(e, n) {
|
|
|
1865
1968
|
ye(t) ? (he(e, a, i, !0), ht(e, X(e, !1, n)), a = i = e.position) : e.position === e.lineStart && Ye(e) ? A(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1866
1969
|
A(e, "unexpected end of the stream within a single quoted scalar");
|
|
1867
1970
|
}
|
|
1868
|
-
function
|
|
1971
|
+
function Or(e, n) {
|
|
1869
1972
|
var t, a, i, r, o, l;
|
|
1870
1973
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1871
1974
|
return !1;
|
|
@@ -1875,12 +1978,12 @@ function Cr(e, n) {
|
|
|
1875
1978
|
if (l === 92) {
|
|
1876
1979
|
if (he(e, t, e.position, !0), l = e.input.charCodeAt(++e.position), ye(l))
|
|
1877
1980
|
X(e, !1, n);
|
|
1878
|
-
else if (l < 256 &&
|
|
1879
|
-
e.result +=
|
|
1880
|
-
else if ((o =
|
|
1981
|
+
else if (l < 256 && jn[l])
|
|
1982
|
+
e.result += On[l], e.position++;
|
|
1983
|
+
else if ((o = Ar(l)) > 0) {
|
|
1881
1984
|
for (i = o, r = 0; i > 0; i--)
|
|
1882
|
-
l = e.input.charCodeAt(++e.position), (o =
|
|
1883
|
-
e.result +=
|
|
1985
|
+
l = e.input.charCodeAt(++e.position), (o = Ir(l)) >= 0 ? r = (r << 4) + o : A(e, "expected hexadecimal character");
|
|
1986
|
+
e.result += _r(r), e.position++;
|
|
1884
1987
|
} else
|
|
1885
1988
|
A(e, "unknown escape sequence");
|
|
1886
1989
|
t = a = e.position;
|
|
@@ -1889,8 +1992,8 @@ function Cr(e, n) {
|
|
|
1889
1992
|
}
|
|
1890
1993
|
A(e, "unexpected end of the stream within a double quoted scalar");
|
|
1891
1994
|
}
|
|
1892
|
-
function
|
|
1893
|
-
var t = !0, a, i, r, o = e.tag, l, s = e.anchor, c, d, u,
|
|
1995
|
+
function Mr(e, n) {
|
|
1996
|
+
var t = !0, a, i, r, o = e.tag, l, s = e.anchor, c, d, u, g, f, I = /* @__PURE__ */ Object.create(null), v, p, h, m;
|
|
1894
1997
|
if (m = e.input.charCodeAt(e.position), m === 91)
|
|
1895
1998
|
d = 93, f = !1, l = [];
|
|
1896
1999
|
else if (m === 123)
|
|
@@ -1900,11 +2003,11 @@ function wr(e, n) {
|
|
|
1900
2003
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), m = e.input.charCodeAt(++e.position); m !== 0; ) {
|
|
1901
2004
|
if (X(e, !0, n), m = e.input.charCodeAt(e.position), m === d)
|
|
1902
2005
|
return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1903
|
-
t ? m === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), p = v = h = null, u =
|
|
2006
|
+
t ? m === 44 && A(e, "expected the node content, but found ','") : A(e, "missed comma between flow collection entries"), p = v = h = null, u = g = !1, m === 63 && (c = e.input.charCodeAt(e.position + 1), ce(c) && (u = g = !0, e.position++, X(e, !0, n))), a = e.line, i = e.lineStart, r = e.position, je(e, n, Ue, !1, !0), p = e.tag, v = e.result, X(e, !0, n), m = e.input.charCodeAt(e.position), (g || e.line === a) && m === 58 && (u = !0, m = e.input.charCodeAt(++e.position), X(e, !0, n), je(e, n, Ue, !1, !0), h = e.result), f ? Te(e, l, I, p, v, h, a, i, r) : u ? l.push(Te(e, null, I, p, v, h, a, i, r)) : l.push(v), X(e, !0, n), m = e.input.charCodeAt(e.position), m === 44 ? (t = !0, m = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1904
2007
|
}
|
|
1905
2008
|
A(e, "unexpected end of the stream within a flow collection");
|
|
1906
2009
|
}
|
|
1907
|
-
function
|
|
2010
|
+
function Er(e, n) {
|
|
1908
2011
|
var t, a, i = Qe, r = !1, o = !1, l = n, s = 0, c = !1, d, u;
|
|
1909
2012
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1910
2013
|
a = !1;
|
|
@@ -1914,8 +2017,8 @@ function Sr(e, n) {
|
|
|
1914
2017
|
return !1;
|
|
1915
2018
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1916
2019
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1917
|
-
Qe === i ? i = u === 43 ?
|
|
1918
|
-
else if ((d =
|
|
2020
|
+
Qe === i ? i = u === 43 ? Ot : kr : A(e, "repeat of a chomping mode identifier");
|
|
2021
|
+
else if ((d = xr(u)) >= 0)
|
|
1919
2022
|
d === 0 ? A(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? A(e, "repeat of an indentation width identifier") : (l = n + d - 1, o = !0);
|
|
1920
2023
|
else
|
|
1921
2024
|
break;
|
|
@@ -1929,29 +2032,29 @@ function Sr(e, n) {
|
|
|
1929
2032
|
while (!ye(u) && u !== 0);
|
|
1930
2033
|
}
|
|
1931
2034
|
for (; u !== 0; ) {
|
|
1932
|
-
for (
|
|
2035
|
+
for (mt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && u === 32; )
|
|
1933
2036
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1934
2037
|
if (!o && e.lineIndent > l && (l = e.lineIndent), ye(u)) {
|
|
1935
2038
|
s++;
|
|
1936
2039
|
continue;
|
|
1937
2040
|
}
|
|
1938
2041
|
if (e.lineIndent < l) {
|
|
1939
|
-
i ===
|
|
2042
|
+
i === Ot ? e.result += te.repeat(`
|
|
1940
2043
|
`, r ? 1 + s : s) : i === Qe && r && (e.result += `
|
|
1941
2044
|
`);
|
|
1942
2045
|
break;
|
|
1943
2046
|
}
|
|
1944
|
-
for (a ? Se(u) ? (c = !0, e.result +=
|
|
1945
|
-
`, r ? 1 + s : s)) : c ? (c = !1, e.result +=
|
|
1946
|
-
`, s + 1)) : s === 0 ? r && (e.result += " ") : e.result +=
|
|
1947
|
-
`, s) : e.result +=
|
|
2047
|
+
for (a ? Se(u) ? (c = !0, e.result += te.repeat(`
|
|
2048
|
+
`, r ? 1 + s : s)) : c ? (c = !1, e.result += te.repeat(`
|
|
2049
|
+
`, s + 1)) : s === 0 ? r && (e.result += " ") : e.result += te.repeat(`
|
|
2050
|
+
`, s) : e.result += te.repeat(`
|
|
1948
2051
|
`, r ? 1 + s : s), r = !0, o = !0, s = 0, t = e.position; !ye(u) && u !== 0; )
|
|
1949
2052
|
u = e.input.charCodeAt(++e.position);
|
|
1950
2053
|
he(e, t, e.position, !1);
|
|
1951
2054
|
}
|
|
1952
2055
|
return !0;
|
|
1953
2056
|
}
|
|
1954
|
-
function
|
|
2057
|
+
function Kt(e, n) {
|
|
1955
2058
|
var t, a = e.tag, i = e.anchor, r = [], o, l = !1, s;
|
|
1956
2059
|
if (e.firstTabInLine !== -1)
|
|
1957
2060
|
return !1;
|
|
@@ -1960,28 +2063,28 @@ function Ft(e, n) {
|
|
|
1960
2063
|
r.push(null), s = e.input.charCodeAt(e.position);
|
|
1961
2064
|
continue;
|
|
1962
2065
|
}
|
|
1963
|
-
if (t = e.line, je(e, n,
|
|
2066
|
+
if (t = e.line, je(e, n, _n, !1, !0), r.push(e.result), X(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && s !== 0)
|
|
1964
2067
|
A(e, "bad indentation of a sequence entry");
|
|
1965
2068
|
else if (e.lineIndent < n)
|
|
1966
2069
|
break;
|
|
1967
2070
|
}
|
|
1968
2071
|
return l ? (e.tag = a, e.anchor = i, e.kind = "sequence", e.result = r, !0) : !1;
|
|
1969
2072
|
}
|
|
1970
|
-
function
|
|
1971
|
-
var a, i, r, o, l, s, c = e.tag, d = e.anchor, u = {},
|
|
2073
|
+
function Fr(e, n, t) {
|
|
2074
|
+
var a, i, r, o, l, s, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, h = !1, m;
|
|
1972
2075
|
if (e.firstTabInLine !== -1)
|
|
1973
2076
|
return !1;
|
|
1974
2077
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), m = e.input.charCodeAt(e.position); m !== 0; ) {
|
|
1975
2078
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, A(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), r = e.line, (m === 63 || m === 58) && ce(a))
|
|
1976
|
-
m === 63 ? (p && (Te(e, u,
|
|
2079
|
+
m === 63 ? (p && (Te(e, u, g, f, I, null, o, l, s), f = I = v = null), h = !0, p = !0, i = !0) : p ? (p = !1, i = !0) : A(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, m = a;
|
|
1977
2080
|
else {
|
|
1978
|
-
if (o = e.line, l = e.lineStart, s = e.position, !je(e, t,
|
|
2081
|
+
if (o = e.line, l = e.lineStart, s = e.position, !je(e, t, xn, !1, !0))
|
|
1979
2082
|
break;
|
|
1980
2083
|
if (e.line === r) {
|
|
1981
2084
|
for (m = e.input.charCodeAt(e.position); Se(m); )
|
|
1982
2085
|
m = e.input.charCodeAt(++e.position);
|
|
1983
2086
|
if (m === 58)
|
|
1984
|
-
m = e.input.charCodeAt(++e.position), ce(m) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Te(e, u,
|
|
2087
|
+
m = e.input.charCodeAt(++e.position), ce(m) || A(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Te(e, u, g, f, I, null, o, l, s), f = I = v = null), h = !0, p = !1, i = !1, f = e.tag, I = e.result;
|
|
1985
2088
|
else if (h)
|
|
1986
2089
|
A(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1987
2090
|
else
|
|
@@ -1991,14 +2094,14 @@ function Ir(e, n, t) {
|
|
|
1991
2094
|
else
|
|
1992
2095
|
return e.tag = c, e.anchor = d, !0;
|
|
1993
2096
|
}
|
|
1994
|
-
if ((e.line === r || e.lineIndent > n) && (p && (o = e.line, l = e.lineStart, s = e.position), je(e, n,
|
|
2097
|
+
if ((e.line === r || e.lineIndent > n) && (p && (o = e.line, l = e.lineStart, s = e.position), je(e, n, Ve, !0, i) && (p ? I = e.result : v = e.result), p || (Te(e, u, g, f, I, v, o, l, s), f = I = v = null), X(e, !0, -1), m = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > n) && m !== 0)
|
|
1995
2098
|
A(e, "bad indentation of a mapping entry");
|
|
1996
2099
|
else if (e.lineIndent < n)
|
|
1997
2100
|
break;
|
|
1998
2101
|
}
|
|
1999
|
-
return p && Te(e, u,
|
|
2102
|
+
return p && Te(e, u, g, f, I, null, o, l, s), h && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), h;
|
|
2000
2103
|
}
|
|
2001
|
-
function
|
|
2104
|
+
function Nr(e) {
|
|
2002
2105
|
var n, t = !1, a = !1, i, r, o;
|
|
2003
2106
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
2004
2107
|
return !1;
|
|
@@ -2009,10 +2112,10 @@ function Ar(e) {
|
|
|
2009
2112
|
e.position < e.length ? (r = e.input.slice(n, e.position), o = e.input.charCodeAt(++e.position)) : A(e, "unexpected end of the stream within a verbatim tag");
|
|
2010
2113
|
} else {
|
|
2011
2114
|
for (; o !== 0 && !ce(o); )
|
|
2012
|
-
o === 33 && (a ? A(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(n - 1, e.position + 1),
|
|
2013
|
-
r = e.input.slice(n, e.position),
|
|
2115
|
+
o === 33 && (a ? A(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(n - 1, e.position + 1), Tn.test(i) || A(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2116
|
+
r = e.input.slice(n, e.position), Sr.test(r) && A(e, "tag suffix cannot contain flow indicator characters");
|
|
2014
2117
|
}
|
|
2015
|
-
r &&
|
|
2118
|
+
r && !$n.test(r) && A(e, "tag name cannot contain such characters: " + r);
|
|
2016
2119
|
try {
|
|
2017
2120
|
r = decodeURIComponent(r);
|
|
2018
2121
|
} catch {
|
|
@@ -2020,7 +2123,7 @@ function Ar(e) {
|
|
|
2020
2123
|
}
|
|
2021
2124
|
return t ? e.tag = r : ve.call(e.tagMap, i) ? e.tag = e.tagMap[i] + r : i === "!" ? e.tag = "!" + r : i === "!!" ? e.tag = "tag:yaml.org,2002:" + r : A(e, 'undeclared tag handle "' + i + '"'), !0;
|
|
2022
2125
|
}
|
|
2023
|
-
function
|
|
2126
|
+
function Kr(e) {
|
|
2024
2127
|
var n, t;
|
|
2025
2128
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2026
2129
|
return !1;
|
|
@@ -2028,7 +2131,7 @@ function xr(e) {
|
|
|
2028
2131
|
t = e.input.charCodeAt(++e.position);
|
|
2029
2132
|
return e.position === n && A(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2030
2133
|
}
|
|
2031
|
-
function
|
|
2134
|
+
function Br(e) {
|
|
2032
2135
|
var n, t, a;
|
|
2033
2136
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2034
2137
|
return !1;
|
|
@@ -2037,14 +2140,14 @@ function _r(e) {
|
|
|
2037
2140
|
return e.position === n && A(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), ve.call(e.anchorMap, t) || A(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], X(e, !0, -1), !0;
|
|
2038
2141
|
}
|
|
2039
2142
|
function je(e, n, t, a, i) {
|
|
2040
|
-
var r, o, l, s = 1, c = !1, d = !1, u,
|
|
2041
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l =
|
|
2042
|
-
for (;
|
|
2143
|
+
var r, o, l, s = 1, c = !1, d = !1, u, g, f, I, v, p;
|
|
2144
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l = Ve === t || _n === t, a && X(e, !0, -1) && (c = !0, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)), s === 1)
|
|
2145
|
+
for (; Nr(e) || Kr(e); )
|
|
2043
2146
|
X(e, !0, -1) ? (c = !0, l = r, e.lineIndent > n ? s = 1 : e.lineIndent === n ? s = 0 : e.lineIndent < n && (s = -1)) : l = !1;
|
|
2044
|
-
if (l && (l = c || i), (s === 1 ||
|
|
2147
|
+
if (l && (l = c || i), (s === 1 || Ve === t) && (Ue === t || xn === t ? v = n : v = n + 1, p = e.position - e.lineStart, s === 1 ? l && (Kt(e, p) || Fr(e, p, v)) || Mr(e, v) ? d = !0 : (o && Er(e, v) || jr(e, v) || Or(e, v) ? d = !0 : Br(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && A(e, "alias node should not have any properties")) : $r(e, v, Ue === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Kt(e, p))), e.tag === null)
|
|
2045
2148
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2046
2149
|
else if (e.tag === "?") {
|
|
2047
|
-
for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0,
|
|
2150
|
+
for (e.result !== null && e.kind !== "scalar" && A(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
2048
2151
|
if (I = e.implicitTypes[u], I.resolve(e.result)) {
|
|
2049
2152
|
e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2050
2153
|
break;
|
|
@@ -2053,7 +2156,7 @@ function je(e, n, t, a, i) {
|
|
|
2053
2156
|
if (ve.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2054
2157
|
I = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2055
2158
|
else
|
|
2056
|
-
for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0,
|
|
2159
|
+
for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, g = f.length; u < g; u += 1)
|
|
2057
2160
|
if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
|
|
2058
2161
|
I = f[u];
|
|
2059
2162
|
break;
|
|
@@ -2062,7 +2165,7 @@ function je(e, n, t, a, i) {
|
|
|
2062
2165
|
}
|
|
2063
2166
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2064
2167
|
}
|
|
2065
|
-
function
|
|
2168
|
+
function Lr(e) {
|
|
2066
2169
|
var n = e.position, t, a, i, r = !1, o;
|
|
2067
2170
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (X(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2068
2171
|
for (r = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !ce(o); )
|
|
@@ -2082,9 +2185,9 @@ function Tr(e) {
|
|
|
2082
2185
|
o = e.input.charCodeAt(++e.position);
|
|
2083
2186
|
i.push(e.input.slice(t, e.position));
|
|
2084
2187
|
}
|
|
2085
|
-
o !== 0 &&
|
|
2188
|
+
o !== 0 && mt(e), ve.call(Ft, a) ? Ft[a](e, a, i) : De(e, 'unknown document directive "' + a + '"');
|
|
2086
2189
|
}
|
|
2087
|
-
if (X(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, X(e, !0, -1)) : r && A(e, "directives end mark is expected"), je(e, e.lineIndent - 1,
|
|
2190
|
+
if (X(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, X(e, !0, -1)) : r && A(e, "directives end mark is expected"), je(e, e.lineIndent - 1, Ve, !1, !0), X(e, !0, -1), e.checkLineBreaks && wr.test(e.input.slice(n, e.position)) && De(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ye(e)) {
|
|
2088
2191
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, X(e, !0, -1));
|
|
2089
2192
|
return;
|
|
2090
2193
|
}
|
|
@@ -2093,36 +2196,36 @@ function Tr(e) {
|
|
|
2093
2196
|
else
|
|
2094
2197
|
return;
|
|
2095
2198
|
}
|
|
2096
|
-
function
|
|
2199
|
+
function En(e, n) {
|
|
2097
2200
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2098
2201
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2099
|
-
var t = new
|
|
2202
|
+
var t = new Tr(e, n), a = e.indexOf("\0");
|
|
2100
2203
|
for (a !== -1 && (t.position = a, A(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2101
2204
|
t.lineIndent += 1, t.position += 1;
|
|
2102
2205
|
for (; t.position < t.length - 1; )
|
|
2103
|
-
|
|
2206
|
+
Lr(t);
|
|
2104
2207
|
return t.documents;
|
|
2105
2208
|
}
|
|
2106
|
-
function
|
|
2209
|
+
function qr(e, n, t) {
|
|
2107
2210
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2108
|
-
var a =
|
|
2211
|
+
var a = En(e, t);
|
|
2109
2212
|
if (typeof n != "function")
|
|
2110
2213
|
return a;
|
|
2111
2214
|
for (var i = 0, r = a.length; i < r; i += 1)
|
|
2112
2215
|
n(a[i]);
|
|
2113
2216
|
}
|
|
2114
|
-
function
|
|
2115
|
-
var t =
|
|
2217
|
+
function Pr(e, n) {
|
|
2218
|
+
var t = En(e, n);
|
|
2116
2219
|
if (t.length !== 0) {
|
|
2117
2220
|
if (t.length === 1)
|
|
2118
2221
|
return t[0];
|
|
2119
2222
|
throw new se("expected a single document in the stream, but found more");
|
|
2120
2223
|
}
|
|
2121
2224
|
}
|
|
2122
|
-
var
|
|
2123
|
-
loadAll:
|
|
2124
|
-
load:
|
|
2125
|
-
},
|
|
2225
|
+
var Rr = qr, Ur = Pr, Fn = {
|
|
2226
|
+
loadAll: Rr,
|
|
2227
|
+
load: Ur
|
|
2228
|
+
}, Nn = Object.prototype.toString, Kn = Object.prototype.hasOwnProperty, vt = 65279, Vr = 9, Fe = 10, Dr = 13, zr = 32, Hr = 33, Jr = 34, at = 35, Yr = 37, Wr = 38, Gr = 39, Zr = 42, Bn = 44, Xr = 45, ze = 58, Qr = 61, eo = 62, to = 63, no = 64, Ln = 91, qn = 93, ao = 96, Pn = 123, io = 124, Rn = 125, oe = {};
|
|
2126
2229
|
oe[0] = "\\0";
|
|
2127
2230
|
oe[7] = "\\a";
|
|
2128
2231
|
oe[8] = "\\b";
|
|
@@ -2138,7 +2241,7 @@ oe[133] = "\\N";
|
|
|
2138
2241
|
oe[160] = "\\_";
|
|
2139
2242
|
oe[8232] = "\\L";
|
|
2140
2243
|
oe[8233] = "\\P";
|
|
2141
|
-
var
|
|
2244
|
+
var ro = [
|
|
2142
2245
|
"y",
|
|
2143
2246
|
"Y",
|
|
2144
2247
|
"yes",
|
|
@@ -2155,16 +2258,16 @@ var Wr = [
|
|
|
2155
2258
|
"off",
|
|
2156
2259
|
"Off",
|
|
2157
2260
|
"OFF"
|
|
2158
|
-
],
|
|
2159
|
-
function
|
|
2261
|
+
], oo = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2262
|
+
function lo(e, n) {
|
|
2160
2263
|
var t, a, i, r, o, l, s;
|
|
2161
2264
|
if (n === null)
|
|
2162
2265
|
return {};
|
|
2163
2266
|
for (t = {}, a = Object.keys(n), i = 0, r = a.length; i < r; i += 1)
|
|
2164
|
-
o = a[i], l = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), s = e.compiledTypeMap.fallback[o], s &&
|
|
2267
|
+
o = a[i], l = String(n[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), s = e.compiledTypeMap.fallback[o], s && Kn.call(s.styleAliases, l) && (l = s.styleAliases[l]), t[o] = l;
|
|
2165
2268
|
return t;
|
|
2166
2269
|
}
|
|
2167
|
-
function
|
|
2270
|
+
function so(e) {
|
|
2168
2271
|
var n, t, a;
|
|
2169
2272
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2170
2273
|
t = "x", a = 2;
|
|
@@ -2174,14 +2277,14 @@ function Xr(e) {
|
|
|
2174
2277
|
t = "U", a = 8;
|
|
2175
2278
|
else
|
|
2176
2279
|
throw new se("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2177
|
-
return "\\" + t +
|
|
2280
|
+
return "\\" + t + te.repeat("0", a - n.length) + n;
|
|
2178
2281
|
}
|
|
2179
|
-
var
|
|
2180
|
-
function
|
|
2181
|
-
this.schema = e.schema ||
|
|
2282
|
+
var co = 1, Ne = 2;
|
|
2283
|
+
function uo(e) {
|
|
2284
|
+
this.schema = e.schema || gt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = te.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = lo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ne : co, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2182
2285
|
}
|
|
2183
|
-
function
|
|
2184
|
-
for (var t =
|
|
2286
|
+
function Bt(e, n) {
|
|
2287
|
+
for (var t = te.repeat(" ", n), a = 0, i = -1, r = "", o, l = e.length; a < l; )
|
|
2185
2288
|
i = e.indexOf(`
|
|
2186
2289
|
`, a), i === -1 ? (o = e.slice(a), a = l) : (o = e.slice(a, i + 1), a = i + 1), o.length && o !== `
|
|
2187
2290
|
` && (r += t), r += o;
|
|
@@ -2189,9 +2292,9 @@ function Nt(e, n) {
|
|
|
2189
2292
|
}
|
|
2190
2293
|
function it(e, n) {
|
|
2191
2294
|
return `
|
|
2192
|
-
` +
|
|
2295
|
+
` + te.repeat(" ", e.indent * n);
|
|
2193
2296
|
}
|
|
2194
|
-
function
|
|
2297
|
+
function po(e, n) {
|
|
2195
2298
|
var t, a, i;
|
|
2196
2299
|
for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
|
|
2197
2300
|
if (i = e.implicitTypes[t], i.resolve(n))
|
|
@@ -2199,71 +2302,71 @@ function to(e, n) {
|
|
|
2199
2302
|
return !1;
|
|
2200
2303
|
}
|
|
2201
2304
|
function He(e) {
|
|
2202
|
-
return e ===
|
|
2305
|
+
return e === zr || e === Vr;
|
|
2203
2306
|
}
|
|
2204
|
-
function
|
|
2307
|
+
function Ke(e) {
|
|
2205
2308
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== vt || 65536 <= e && e <= 1114111;
|
|
2206
2309
|
}
|
|
2207
|
-
function
|
|
2208
|
-
return
|
|
2310
|
+
function Lt(e) {
|
|
2311
|
+
return Ke(e) && e !== vt && e !== Dr && e !== Fe;
|
|
2209
2312
|
}
|
|
2210
|
-
function
|
|
2211
|
-
var a =
|
|
2313
|
+
function qt(e, n, t) {
|
|
2314
|
+
var a = Lt(e), i = a && !He(e);
|
|
2212
2315
|
return (
|
|
2213
2316
|
// ns-plain-safe
|
|
2214
2317
|
(t ? (
|
|
2215
2318
|
// c = flow-in
|
|
2216
2319
|
a
|
|
2217
|
-
) : a && e !==
|
|
2320
|
+
) : a && e !== Bn && e !== Ln && e !== qn && e !== Pn && e !== Rn) && e !== at && !(n === ze && !i) || Lt(n) && !He(n) && e === at || n === ze && i
|
|
2218
2321
|
);
|
|
2219
2322
|
}
|
|
2220
|
-
function
|
|
2221
|
-
return
|
|
2323
|
+
function fo(e) {
|
|
2324
|
+
return Ke(e) && e !== vt && !He(e) && e !== Xr && e !== to && e !== ze && e !== Bn && e !== Ln && e !== qn && e !== Pn && e !== Rn && e !== at && e !== Wr && e !== Zr && e !== Hr && e !== io && e !== Qr && e !== eo && e !== Gr && e !== Jr && e !== Yr && e !== no && e !== ao;
|
|
2222
2325
|
}
|
|
2223
|
-
function
|
|
2326
|
+
function yo(e) {
|
|
2224
2327
|
return !He(e) && e !== ze;
|
|
2225
2328
|
}
|
|
2226
|
-
function
|
|
2329
|
+
function Me(e, n) {
|
|
2227
2330
|
var t = e.charCodeAt(n), a;
|
|
2228
2331
|
return t >= 55296 && t <= 56319 && n + 1 < e.length && (a = e.charCodeAt(n + 1), a >= 56320 && a <= 57343) ? (t - 55296) * 1024 + a - 56320 + 65536 : t;
|
|
2229
2332
|
}
|
|
2230
|
-
function
|
|
2333
|
+
function Un(e) {
|
|
2231
2334
|
var n = /^\n* /;
|
|
2232
2335
|
return n.test(e);
|
|
2233
2336
|
}
|
|
2234
|
-
var
|
|
2235
|
-
function
|
|
2236
|
-
var s, c = 0, d = null, u = !1,
|
|
2337
|
+
var Vn = 1, rt = 2, Dn = 3, zn = 4, xe = 5;
|
|
2338
|
+
function go(e, n, t, a, i, r, o, l) {
|
|
2339
|
+
var s, c = 0, d = null, u = !1, g = !1, f = a !== -1, I = -1, v = fo(Me(e, 0)) && yo(Me(e, e.length - 1));
|
|
2237
2340
|
if (n || o)
|
|
2238
2341
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2239
|
-
if (c =
|
|
2342
|
+
if (c = Me(e, s), !Ke(c))
|
|
2240
2343
|
return xe;
|
|
2241
|
-
v = v &&
|
|
2344
|
+
v = v && qt(c, d, l), d = c;
|
|
2242
2345
|
}
|
|
2243
2346
|
else {
|
|
2244
2347
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2245
|
-
if (c =
|
|
2246
|
-
u = !0, f && (
|
|
2348
|
+
if (c = Me(e, s), c === Fe)
|
|
2349
|
+
u = !0, f && (g = g || // Foldable line = too long, and not more-indented.
|
|
2247
2350
|
s - I - 1 > a && e[I + 1] !== " ", I = s);
|
|
2248
|
-
else if (!
|
|
2351
|
+
else if (!Ke(c))
|
|
2249
2352
|
return xe;
|
|
2250
|
-
v = v &&
|
|
2353
|
+
v = v && qt(c, d, l), d = c;
|
|
2251
2354
|
}
|
|
2252
|
-
|
|
2355
|
+
g = g || f && s - I - 1 > a && e[I + 1] !== " ";
|
|
2253
2356
|
}
|
|
2254
|
-
return !u && !
|
|
2357
|
+
return !u && !g ? v && !o && !i(e) ? Vn : r === Ne ? xe : rt : t > 9 && Un(e) ? xe : o ? r === Ne ? xe : rt : g ? zn : Dn;
|
|
2255
2358
|
}
|
|
2256
|
-
function
|
|
2359
|
+
function mo(e, n, t, a, i) {
|
|
2257
2360
|
e.dump = function() {
|
|
2258
2361
|
if (n.length === 0)
|
|
2259
|
-
return e.quotingType ===
|
|
2260
|
-
if (!e.noCompatMode && (
|
|
2261
|
-
return e.quotingType ===
|
|
2362
|
+
return e.quotingType === Ne ? '""' : "''";
|
|
2363
|
+
if (!e.noCompatMode && (ro.indexOf(n) !== -1 || oo.test(n)))
|
|
2364
|
+
return e.quotingType === Ne ? '"' + n + '"' : "'" + n + "'";
|
|
2262
2365
|
var r = e.indent * Math.max(1, t), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - r), l = a || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2263
2366
|
function s(c) {
|
|
2264
|
-
return
|
|
2367
|
+
return po(e, c);
|
|
2265
2368
|
}
|
|
2266
|
-
switch (
|
|
2369
|
+
switch (go(
|
|
2267
2370
|
n,
|
|
2268
2371
|
l,
|
|
2269
2372
|
e.indent,
|
|
@@ -2273,47 +2376,47 @@ function ro(e, n, t, a, i) {
|
|
|
2273
2376
|
e.forceQuotes && !a,
|
|
2274
2377
|
i
|
|
2275
2378
|
)) {
|
|
2276
|
-
case
|
|
2379
|
+
case Vn:
|
|
2277
2380
|
return n;
|
|
2278
2381
|
case rt:
|
|
2279
2382
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2280
|
-
case
|
|
2281
|
-
return "|" +
|
|
2282
|
-
case
|
|
2283
|
-
return ">" +
|
|
2383
|
+
case Dn:
|
|
2384
|
+
return "|" + Pt(n, e.indent) + Rt(Bt(n, r));
|
|
2385
|
+
case zn:
|
|
2386
|
+
return ">" + Pt(n, e.indent) + Rt(Bt(ho(n, o), r));
|
|
2284
2387
|
case xe:
|
|
2285
|
-
return '"' +
|
|
2388
|
+
return '"' + vo(n) + '"';
|
|
2286
2389
|
default:
|
|
2287
2390
|
throw new se("impossible error: invalid scalar style");
|
|
2288
2391
|
}
|
|
2289
2392
|
}();
|
|
2290
2393
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var t =
|
|
2394
|
+
function Pt(e, n) {
|
|
2395
|
+
var t = Un(e) ? String(n) : "", a = e[e.length - 1] === `
|
|
2293
2396
|
`, i = a && (e[e.length - 2] === `
|
|
2294
2397
|
` || e === `
|
|
2295
2398
|
`), r = i ? "+" : a ? "" : "-";
|
|
2296
2399
|
return t + r + `
|
|
2297
2400
|
`;
|
|
2298
2401
|
}
|
|
2299
|
-
function
|
|
2402
|
+
function Rt(e) {
|
|
2300
2403
|
return e[e.length - 1] === `
|
|
2301
2404
|
` ? e.slice(0, -1) : e;
|
|
2302
2405
|
}
|
|
2303
|
-
function
|
|
2406
|
+
function ho(e, n) {
|
|
2304
2407
|
for (var t = /(\n+)([^\n]*)/g, a = function() {
|
|
2305
2408
|
var c = e.indexOf(`
|
|
2306
2409
|
`);
|
|
2307
|
-
return c = c !== -1 ? c : e.length, t.lastIndex = c,
|
|
2410
|
+
return c = c !== -1 ? c : e.length, t.lastIndex = c, Ut(e.slice(0, c), n);
|
|
2308
2411
|
}(), i = e[0] === `
|
|
2309
2412
|
` || e[0] === " ", r, o; o = t.exec(e); ) {
|
|
2310
2413
|
var l = o[1], s = o[2];
|
|
2311
2414
|
r = s[0] === " ", a += l + (!i && !r && s !== "" ? `
|
|
2312
|
-
` : "") +
|
|
2415
|
+
` : "") + Ut(s, n), i = r;
|
|
2313
2416
|
}
|
|
2314
2417
|
return a;
|
|
2315
2418
|
}
|
|
2316
|
-
function
|
|
2419
|
+
function Ut(e, n) {
|
|
2317
2420
|
if (e === "" || e[0] === " ")
|
|
2318
2421
|
return e;
|
|
2319
2422
|
for (var t = / [^ ]/g, a, i = 0, r, o = 0, l = 0, s = ""; a = t.exec(e); )
|
|
@@ -2323,31 +2426,31 @@ function Rt(e, n) {
|
|
|
2323
2426
|
`, e.length - i > n && o > i ? s += e.slice(i, o) + `
|
|
2324
2427
|
` + e.slice(o + 1) : s += e.slice(i), s.slice(1);
|
|
2325
2428
|
}
|
|
2326
|
-
function
|
|
2429
|
+
function vo(e) {
|
|
2327
2430
|
for (var n = "", t = 0, a, i = 0; i < e.length; t >= 65536 ? i += 2 : i++)
|
|
2328
|
-
t =
|
|
2431
|
+
t = Me(e, i), a = oe[t], !a && Ke(t) ? (n += e[i], t >= 65536 && (n += e[i + 1])) : n += a || so(t);
|
|
2329
2432
|
return n;
|
|
2330
2433
|
}
|
|
2331
|
-
function
|
|
2434
|
+
function bo(e, n, t) {
|
|
2332
2435
|
var a = "", i = e.tag, r, o, l;
|
|
2333
2436
|
for (r = 0, o = t.length; r < o; r += 1)
|
|
2334
|
-
l = t[r], e.replacer && (l = e.replacer.call(t, String(r), l)), (
|
|
2437
|
+
l = t[r], e.replacer && (l = e.replacer.call(t, String(r), l)), (me(e, n, l, !1, !1) || typeof l > "u" && me(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
2335
2438
|
e.tag = i, e.dump = "[" + a + "]";
|
|
2336
2439
|
}
|
|
2337
|
-
function
|
|
2440
|
+
function Vt(e, n, t, a) {
|
|
2338
2441
|
var i = "", r = e.tag, o, l, s;
|
|
2339
2442
|
for (o = 0, l = t.length; o < l; o += 1)
|
|
2340
|
-
s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (
|
|
2443
|
+
s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (me(e, n + 1, s, !0, !0, !1, !0) || typeof s > "u" && me(e, n + 1, null, !0, !0, !1, !0)) && ((!a || i !== "") && (i += it(e, n)), e.dump && Fe === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2341
2444
|
e.tag = r, e.dump = i || "[]";
|
|
2342
2445
|
}
|
|
2343
|
-
function
|
|
2446
|
+
function ko(e, n, t) {
|
|
2344
2447
|
var a = "", i = e.tag, r = Object.keys(t), o, l, s, c, d;
|
|
2345
2448
|
for (o = 0, l = r.length; o < l; o += 1)
|
|
2346
|
-
d = "", a !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = r[o], c = t[s], e.replacer && (c = e.replacer.call(t, s, c)),
|
|
2449
|
+
d = "", a !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = r[o], c = t[s], e.replacer && (c = e.replacer.call(t, s, c)), me(e, n, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), me(e, n, c, !1, !1) && (d += e.dump, a += d));
|
|
2347
2450
|
e.tag = i, e.dump = "{" + a + "}";
|
|
2348
2451
|
}
|
|
2349
|
-
function
|
|
2350
|
-
var i = "", r = e.tag, o = Object.keys(t), l, s, c, d, u,
|
|
2452
|
+
function Co(e, n, t, a) {
|
|
2453
|
+
var i = "", r = e.tag, o = Object.keys(t), l, s, c, d, u, g;
|
|
2351
2454
|
if (e.sortKeys === !0)
|
|
2352
2455
|
o.sort();
|
|
2353
2456
|
else if (typeof e.sortKeys == "function")
|
|
@@ -2355,7 +2458,7 @@ function uo(e, n, t, a) {
|
|
|
2355
2458
|
else if (e.sortKeys)
|
|
2356
2459
|
throw new se("sortKeys must be a boolean or a function");
|
|
2357
2460
|
for (l = 0, s = o.length; l < s; l += 1)
|
|
2358
|
-
|
|
2461
|
+
g = "", (!a || i !== "") && (g += it(e, n)), c = o[l], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), me(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Fe === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += it(e, n)), me(e, n + 1, d, !0, u) && (e.dump && Fe === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, i += g));
|
|
2359
2462
|
e.tag = r, e.dump = i || "{}";
|
|
2360
2463
|
}
|
|
2361
2464
|
function Dt(e, n, t) {
|
|
@@ -2363,9 +2466,9 @@ function Dt(e, n, t) {
|
|
|
2363
2466
|
for (i = t ? e.explicitTypes : e.implicitTypes, r = 0, o = i.length; r < o; r += 1)
|
|
2364
2467
|
if (l = i[r], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof n == "object" && n instanceof l.instanceOf) && (!l.predicate || l.predicate(n))) {
|
|
2365
2468
|
if (t ? l.multi && l.representName ? e.tag = l.representName(n) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2366
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2469
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, Nn.call(l.represent) === "[object Function]")
|
|
2367
2470
|
a = l.represent(n, s);
|
|
2368
|
-
else if (
|
|
2471
|
+
else if (Kn.call(l.represent, s))
|
|
2369
2472
|
a = l.represent[s](n, s);
|
|
2370
2473
|
else
|
|
2371
2474
|
throw new se("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
@@ -2375,20 +2478,20 @@ function Dt(e, n, t) {
|
|
|
2375
2478
|
}
|
|
2376
2479
|
return !1;
|
|
2377
2480
|
}
|
|
2378
|
-
function
|
|
2481
|
+
function me(e, n, t, a, i, r, o) {
|
|
2379
2482
|
e.tag = null, e.dump = t, Dt(e, t, !1) || Dt(e, t, !0);
|
|
2380
|
-
var l =
|
|
2483
|
+
var l = Nn.call(e.dump), s = a, c;
|
|
2381
2484
|
a && (a = e.flowLevel < 0 || e.flowLevel > n);
|
|
2382
|
-
var d = l === "[object Object]" || l === "[object Array]", u,
|
|
2383
|
-
if (d && (u = e.duplicates.indexOf(t),
|
|
2485
|
+
var d = l === "[object Object]" || l === "[object Array]", u, g;
|
|
2486
|
+
if (d && (u = e.duplicates.indexOf(t), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && n > 0) && (i = !1), g && e.usedDuplicates[u])
|
|
2384
2487
|
e.dump = "*ref_" + u;
|
|
2385
2488
|
else {
|
|
2386
|
-
if (d &&
|
|
2387
|
-
a && Object.keys(e.dump).length !== 0 ? (
|
|
2489
|
+
if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2490
|
+
a && Object.keys(e.dump).length !== 0 ? (Co(e, n, e.dump, i), g && (e.dump = "&ref_" + u + e.dump)) : (ko(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2388
2491
|
else if (l === "[object Array]")
|
|
2389
|
-
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ?
|
|
2492
|
+
a && e.dump.length !== 0 ? (e.noArrayIndent && !o && n > 0 ? Vt(e, n - 1, e.dump, i) : Vt(e, n, e.dump, i), g && (e.dump = "&ref_" + u + e.dump)) : (bo(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2390
2493
|
else if (l === "[object String]")
|
|
2391
|
-
e.tag !== "?" &&
|
|
2494
|
+
e.tag !== "?" && mo(e, e.dump, n, r, s);
|
|
2392
2495
|
else {
|
|
2393
2496
|
if (l === "[object Undefined]" || e.skipInvalid)
|
|
2394
2497
|
return !1;
|
|
@@ -2400,7 +2503,7 @@ function ge(e, n, t, a, i, r, o) {
|
|
|
2400
2503
|
}
|
|
2401
2504
|
return !0;
|
|
2402
2505
|
}
|
|
2403
|
-
function
|
|
2506
|
+
function wo(e, n) {
|
|
2404
2507
|
var t = [], a = [], i, r;
|
|
2405
2508
|
for (ot(e, t, a), i = 0, r = a.length; i < r; i += 1)
|
|
2406
2509
|
n.duplicates.push(t[a[i]]);
|
|
@@ -2418,65 +2521,65 @@ function ot(e, n, t) {
|
|
|
2418
2521
|
for (a = Object.keys(e), i = 0, r = a.length; i < r; i += 1)
|
|
2419
2522
|
ot(e[a[i]], n, t);
|
|
2420
2523
|
}
|
|
2421
|
-
function
|
|
2524
|
+
function So(e, n) {
|
|
2422
2525
|
n = n || {};
|
|
2423
|
-
var t = new
|
|
2424
|
-
t.noRefs ||
|
|
2526
|
+
var t = new uo(n);
|
|
2527
|
+
t.noRefs || wo(e, t);
|
|
2425
2528
|
var a = e;
|
|
2426
|
-
return t.replacer && (a = t.replacer.call({ "": a }, "", a)),
|
|
2529
|
+
return t.replacer && (a = t.replacer.call({ "": a }, "", a)), me(t, 0, a, !0, !0) ? t.dump + `
|
|
2427
2530
|
` : "";
|
|
2428
2531
|
}
|
|
2429
|
-
var
|
|
2430
|
-
dump:
|
|
2532
|
+
var Io = So, Ao = {
|
|
2533
|
+
dump: Io
|
|
2431
2534
|
};
|
|
2432
2535
|
function bt(e, n) {
|
|
2433
2536
|
return function() {
|
|
2434
2537
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2435
2538
|
};
|
|
2436
2539
|
}
|
|
2437
|
-
var
|
|
2438
|
-
binary:
|
|
2439
|
-
float:
|
|
2440
|
-
map:
|
|
2441
|
-
null:
|
|
2442
|
-
pairs:
|
|
2443
|
-
set:
|
|
2444
|
-
timestamp:
|
|
2445
|
-
bool:
|
|
2446
|
-
int:
|
|
2447
|
-
merge:
|
|
2448
|
-
omap:
|
|
2449
|
-
seq:
|
|
2450
|
-
str:
|
|
2451
|
-
},
|
|
2452
|
-
Type:
|
|
2453
|
-
Schema:
|
|
2454
|
-
FAILSAFE_SCHEMA:
|
|
2455
|
-
JSON_SCHEMA:
|
|
2456
|
-
CORE_SCHEMA:
|
|
2457
|
-
DEFAULT_SCHEMA:
|
|
2458
|
-
load:
|
|
2459
|
-
loadAll:
|
|
2460
|
-
dump:
|
|
2461
|
-
YAMLException:
|
|
2462
|
-
types:
|
|
2463
|
-
safeLoad:
|
|
2464
|
-
safeLoadAll:
|
|
2465
|
-
safeDump:
|
|
2540
|
+
var xo = re, _o = ln, To = dn, $o = mn, jo = hn, Oo = gt, Mo = Fn.load, Eo = Fn.loadAll, Fo = Ao.dump, No = se, Ko = {
|
|
2541
|
+
binary: wn,
|
|
2542
|
+
float: gn,
|
|
2543
|
+
map: un,
|
|
2544
|
+
null: pn,
|
|
2545
|
+
pairs: In,
|
|
2546
|
+
set: An,
|
|
2547
|
+
timestamp: kn,
|
|
2548
|
+
bool: fn,
|
|
2549
|
+
int: yn,
|
|
2550
|
+
merge: Cn,
|
|
2551
|
+
omap: Sn,
|
|
2552
|
+
seq: cn,
|
|
2553
|
+
str: sn
|
|
2554
|
+
}, Bo = bt("safeLoad", "load"), Lo = bt("safeLoadAll", "loadAll"), qo = bt("safeDump", "dump"), Po = {
|
|
2555
|
+
Type: xo,
|
|
2556
|
+
Schema: _o,
|
|
2557
|
+
FAILSAFE_SCHEMA: To,
|
|
2558
|
+
JSON_SCHEMA: $o,
|
|
2559
|
+
CORE_SCHEMA: jo,
|
|
2560
|
+
DEFAULT_SCHEMA: Oo,
|
|
2561
|
+
load: Mo,
|
|
2562
|
+
loadAll: Eo,
|
|
2563
|
+
dump: Fo,
|
|
2564
|
+
YAMLException: No,
|
|
2565
|
+
types: Ko,
|
|
2566
|
+
safeLoad: Bo,
|
|
2567
|
+
safeLoadAll: Lo,
|
|
2568
|
+
safeDump: qo
|
|
2466
2569
|
};
|
|
2467
|
-
const
|
|
2570
|
+
const Ro = {
|
|
2468
2571
|
key: 0,
|
|
2469
2572
|
class: "config-card-display-form"
|
|
2470
|
-
},
|
|
2573
|
+
}, Uo = ["data-testid"], Vo = {
|
|
2471
2574
|
key: 0,
|
|
2472
2575
|
class: "config-card-prop-section-title"
|
|
2473
|
-
},
|
|
2576
|
+
}, Do = {
|
|
2474
2577
|
key: 1,
|
|
2475
2578
|
class: "config-card-display-json"
|
|
2476
|
-
},
|
|
2579
|
+
}, zo = {
|
|
2477
2580
|
key: 2,
|
|
2478
2581
|
class: "config-card-display-yaml"
|
|
2479
|
-
},
|
|
2582
|
+
}, Ho = /* @__PURE__ */ Q({
|
|
2480
2583
|
__name: "ConfigCardDisplay",
|
|
2481
2584
|
props: {
|
|
2482
2585
|
propertyCollections: {
|
|
@@ -2504,28 +2607,28 @@ const Oo = {
|
|
|
2504
2607
|
setup(e) {
|
|
2505
2608
|
const n = e, t = Je(), { i18n: { t: a } } = ae.useI18n(), i = (l) => !!(l.tooltip || t[`${l.key}-label-tooltip`]), r = O(""), o = O("");
|
|
2506
2609
|
return be(() => n.format, (l) => {
|
|
2507
|
-
l === "json" ? r.value = JSON.stringify(n.record, null, 2) : l === "yaml" && (o.value =
|
|
2610
|
+
l === "json" ? r.value = JSON.stringify(n.record, null, 2) : l === "yaml" && (o.value = Po.dump(n.record));
|
|
2508
2611
|
}, { immediate: !0 }), (l, s) => {
|
|
2509
|
-
const c =
|
|
2510
|
-
return
|
|
2511
|
-
e.format === "structured" ? (
|
|
2512
|
-
(
|
|
2612
|
+
const c = F("KCodeBlock");
|
|
2613
|
+
return y(), x(pe, null, [
|
|
2614
|
+
e.format === "structured" ? (y(), x("div", Ro, [
|
|
2615
|
+
(y(!0), x(pe, null, ue(e.propListTypes, (d) => (y(), x("div", {
|
|
2513
2616
|
key: `config-card-details-${d}-props`,
|
|
2514
2617
|
class: Ie(`config-card-details-${d}-props`),
|
|
2515
2618
|
"data-testid": `config-card-details-${d}-props`
|
|
2516
2619
|
}, [
|
|
2517
|
-
d !== "basic" ? (
|
|
2518
|
-
(
|
|
2620
|
+
d !== "basic" ? (y(), x("div", Vo, N(d === "advanced" ? w(a)("baseConfigCard.sections.advanced") : w(a)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
|
|
2621
|
+
(y(!0), x(pe, null, ue(e.propertyCollections[d], (u) => (y(), K(ft, {
|
|
2519
2622
|
key: u.key,
|
|
2520
2623
|
item: u
|
|
2521
2624
|
}, we({
|
|
2522
2625
|
label: b(() => [
|
|
2523
|
-
|
|
2626
|
+
V(l.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2524
2627
|
]),
|
|
2525
|
-
[u.key]: b(({ rowValue:
|
|
2526
|
-
|
|
2628
|
+
[u.key]: b(({ rowValue: g }) => [
|
|
2629
|
+
V(l.$slots, u.key, {
|
|
2527
2630
|
row: u,
|
|
2528
|
-
rowValue:
|
|
2631
|
+
rowValue: g
|
|
2529
2632
|
}, void 0, !0)
|
|
2530
2633
|
]),
|
|
2531
2634
|
_: 2
|
|
@@ -2533,23 +2636,23 @@ const Oo = {
|
|
|
2533
2636
|
i(u) ? {
|
|
2534
2637
|
name: "label-tooltip",
|
|
2535
2638
|
fn: b(() => [
|
|
2536
|
-
|
|
2639
|
+
V(l.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
|
|
2537
2640
|
]),
|
|
2538
2641
|
key: "0"
|
|
2539
2642
|
} : void 0
|
|
2540
2643
|
]), 1032, ["item"]))), 128))
|
|
2541
|
-
], 10,
|
|
2644
|
+
], 10, Uo))), 128))
|
|
2542
2645
|
])) : U("", !0),
|
|
2543
|
-
e.format === "json" ? (
|
|
2544
|
-
|
|
2646
|
+
e.format === "json" ? (y(), x("div", Do, [
|
|
2647
|
+
T(c, {
|
|
2545
2648
|
id: "config-card-codeblock",
|
|
2546
2649
|
code: r.value,
|
|
2547
2650
|
language: "json",
|
|
2548
2651
|
theme: "dark"
|
|
2549
2652
|
}, null, 8, ["code"])
|
|
2550
2653
|
])) : U("", !0),
|
|
2551
|
-
e.format === "yaml" ? (
|
|
2552
|
-
|
|
2654
|
+
e.format === "yaml" ? (y(), x("div", zo, [
|
|
2655
|
+
T(c, {
|
|
2553
2656
|
id: "config-card-codeblock",
|
|
2554
2657
|
code: o.value,
|
|
2555
2658
|
language: "yaml",
|
|
@@ -2559,18 +2662,18 @@ const Oo = {
|
|
|
2559
2662
|
], 64);
|
|
2560
2663
|
};
|
|
2561
2664
|
}
|
|
2562
|
-
}),
|
|
2665
|
+
}), Jo = /* @__PURE__ */ fe(Ho, [["__scopeId", "data-v-6c45e9e4"]]), zt = "24px", Yo = (e, n) => {
|
|
2563
2666
|
const t = e.__vccOpts || e;
|
|
2564
2667
|
for (const [a, i] of n)
|
|
2565
2668
|
t[a] = i;
|
|
2566
2669
|
return t;
|
|
2567
|
-
},
|
|
2670
|
+
}, Wo = (e) => (Yt("data-v-dd88a2bb"), e = e(), Wt(), e), Go = ["aria-hidden"], Zo = {
|
|
2568
2671
|
key: 0,
|
|
2569
2672
|
"data-testid": "kui-icon-svg-title"
|
|
2570
|
-
},
|
|
2673
|
+
}, Xo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ L("path", {
|
|
2571
2674
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2572
2675
|
fill: "currentColor"
|
|
2573
|
-
}, null, -1)),
|
|
2676
|
+
}, null, -1)), Qo = /* @__PURE__ */ Q({
|
|
2574
2677
|
__name: "BookIcon",
|
|
2575
2678
|
props: {
|
|
2576
2679
|
/** The accessibility text provided to screen readers */
|
|
@@ -2601,7 +2704,7 @@ const Oo = {
|
|
|
2601
2704
|
size: {
|
|
2602
2705
|
type: [Number, String],
|
|
2603
2706
|
required: !1,
|
|
2604
|
-
default:
|
|
2707
|
+
default: zt,
|
|
2605
2708
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2606
2709
|
validator: (e) => {
|
|
2607
2710
|
if (typeof e == "number" && e > 0)
|
|
@@ -2630,7 +2733,7 @@ const Oo = {
|
|
|
2630
2733
|
if (r && !isNaN(r) && Number.isInteger(r) && r > 0)
|
|
2631
2734
|
return `${r}px`;
|
|
2632
2735
|
}
|
|
2633
|
-
return
|
|
2736
|
+
return zt;
|
|
2634
2737
|
}), a = _(() => ({
|
|
2635
2738
|
boxSizing: "border-box",
|
|
2636
2739
|
color: n.color,
|
|
@@ -2639,14 +2742,14 @@ const Oo = {
|
|
|
2639
2742
|
lineHeight: "0",
|
|
2640
2743
|
width: t.value
|
|
2641
2744
|
}));
|
|
2642
|
-
return (i, r) => (
|
|
2745
|
+
return (i, r) => (y(), K($e(e.as), {
|
|
2643
2746
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2644
2747
|
class: "kui-icon book-icon",
|
|
2645
2748
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2646
|
-
style:
|
|
2749
|
+
style: Jt(a.value)
|
|
2647
2750
|
}, {
|
|
2648
2751
|
default: b(() => [
|
|
2649
|
-
(
|
|
2752
|
+
(y(), x("svg", {
|
|
2650
2753
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2651
2754
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2652
2755
|
fill: "none",
|
|
@@ -2656,23 +2759,23 @@ const Oo = {
|
|
|
2656
2759
|
width: "100%",
|
|
2657
2760
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2658
2761
|
}, [
|
|
2659
|
-
e.title ? (
|
|
2660
|
-
|
|
2661
|
-
], 8,
|
|
2762
|
+
e.title ? (y(), x("title", Zo, N(e.title), 1)) : U("", !0),
|
|
2763
|
+
Xo
|
|
2764
|
+
], 8, Go))
|
|
2662
2765
|
]),
|
|
2663
2766
|
_: 1
|
|
2664
2767
|
}, 8, ["aria-hidden", "style"]));
|
|
2665
2768
|
}
|
|
2666
|
-
}),
|
|
2769
|
+
}), el = /* @__PURE__ */ Yo(Qo, [["__scopeId", "data-v-dd88a2bb"]]), tl = { "data-testid": "config-card-title" }, nl = { class: "config-card-actions" }, al = ["href"], il = {
|
|
2667
2770
|
key: 2,
|
|
2668
2771
|
class: "config-card-details-section"
|
|
2669
|
-
},
|
|
2772
|
+
}, rl = {
|
|
2670
2773
|
key: 3,
|
|
2671
2774
|
class: "config-card-details-section"
|
|
2672
|
-
},
|
|
2775
|
+
}, ol = ["data-testid"], ll = {
|
|
2673
2776
|
key: 0,
|
|
2674
2777
|
class: "config-card-prop-section-title"
|
|
2675
|
-
},
|
|
2778
|
+
}, sl = /* @__PURE__ */ Q({
|
|
2676
2779
|
__name: "EntityBaseConfigCard",
|
|
2677
2780
|
props: {
|
|
2678
2781
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2765,7 +2868,7 @@ const Oo = {
|
|
|
2765
2868
|
}
|
|
2766
2869
|
], d = O("structured"), u = (C) => {
|
|
2767
2870
|
d.value = C == null ? void 0 : C.value;
|
|
2768
|
-
},
|
|
2871
|
+
}, g = {
|
|
2769
2872
|
id: {
|
|
2770
2873
|
type: J.ID,
|
|
2771
2874
|
label: r("baseConfigCard.commonFields.id_label"),
|
|
@@ -2800,23 +2903,23 @@ const Oo = {
|
|
|
2800
2903
|
section: de.Basic
|
|
2801
2904
|
}
|
|
2802
2905
|
}, f = O(!1), I = O(!1), v = O(""), p = O(), h = _(() => {
|
|
2803
|
-
var C, E,
|
|
2906
|
+
var C, E, $;
|
|
2804
2907
|
if (!p.value)
|
|
2805
2908
|
return [];
|
|
2806
|
-
const
|
|
2909
|
+
const j = [], B = Object.keys(p.value).length;
|
|
2807
2910
|
for (const P in p.value) {
|
|
2808
|
-
const
|
|
2809
|
-
let ne =
|
|
2810
|
-
(
|
|
2911
|
+
const D = (E = (C = a.configSchema) == null ? void 0 : C[P]) == null ? void 0 : E.order, ee = ($ = g[P]) == null ? void 0 : $.order;
|
|
2912
|
+
let ne = B;
|
|
2913
|
+
(ee || ee === 0) && (ne = ee === -1 ? B + 1 : ee), D && (ne = D === -1 ? B + 1 : D), j.push([P, ne]);
|
|
2811
2914
|
}
|
|
2812
|
-
return
|
|
2813
|
-
return P[1] -
|
|
2814
|
-
}),
|
|
2815
|
-
var
|
|
2816
|
-
const ne = P[0],
|
|
2915
|
+
return j.sort(function(P, D) {
|
|
2916
|
+
return P[1] - D[1];
|
|
2917
|
+
}), j.map((P) => {
|
|
2918
|
+
var D, ee;
|
|
2919
|
+
const ne = P[0], Z = (D = p.value) == null ? void 0 : D[ne], H = ((ee = a.configSchema) == null ? void 0 : ee[ne]) || {}, le = g[ne];
|
|
2817
2920
|
return {
|
|
2818
2921
|
key: ne,
|
|
2819
|
-
value:
|
|
2922
|
+
value: Z,
|
|
2820
2923
|
hidden: H.hidden || !1,
|
|
2821
2924
|
type: H.type ?? ((le == null ? void 0 : le.type) || J.Text),
|
|
2822
2925
|
label: H.label ?? ((le == null ? void 0 : le.label) || l(ne)),
|
|
@@ -2828,42 +2931,42 @@ const Oo = {
|
|
|
2828
2931
|
var C, E;
|
|
2829
2932
|
if (!p.value || !a.pluginConfigKey)
|
|
2830
2933
|
return [];
|
|
2831
|
-
const
|
|
2832
|
-
for (const P in
|
|
2833
|
-
const
|
|
2834
|
-
let ne =
|
|
2835
|
-
|
|
2934
|
+
const $ = p.value[a.pluginConfigKey] || {}, j = Object.keys($).length, B = [];
|
|
2935
|
+
for (const P in $) {
|
|
2936
|
+
const D = (E = (C = a.pluginConfigSchema) == null ? void 0 : C[P]) == null ? void 0 : E.order, ee = $[P];
|
|
2937
|
+
let ne = ee != null && ee !== "" ? j - 1 : j;
|
|
2938
|
+
D && (ne = D === -1 ? j + 1 : D), B.push([P, ne]);
|
|
2836
2939
|
}
|
|
2837
|
-
return
|
|
2838
|
-
return P[1] -
|
|
2839
|
-
}),
|
|
2840
|
-
var
|
|
2841
|
-
const
|
|
2940
|
+
return B.sort(function(P, D) {
|
|
2941
|
+
return P[1] - D[1];
|
|
2942
|
+
}), B.map((P) => {
|
|
2943
|
+
var D;
|
|
2944
|
+
const ee = P[0], ne = $[ee], Z = ((D = a.pluginConfigSchema) == null ? void 0 : D[ee]) || {};
|
|
2842
2945
|
return {
|
|
2843
|
-
key:
|
|
2946
|
+
key: ee,
|
|
2844
2947
|
value: ne,
|
|
2845
|
-
hidden:
|
|
2846
|
-
type:
|
|
2847
|
-
label:
|
|
2848
|
-
tooltip:
|
|
2948
|
+
hidden: Z.hidden || !1,
|
|
2949
|
+
type: Z.type ?? J.Text,
|
|
2950
|
+
label: Z.label ?? l(ee),
|
|
2951
|
+
tooltip: Z.tooltip ?? void 0,
|
|
2849
2952
|
section: de.Plugin
|
|
2850
2953
|
};
|
|
2851
2954
|
}).filter((P) => !P.hidden);
|
|
2852
2955
|
}), k = _(() => {
|
|
2853
|
-
var C, E,
|
|
2956
|
+
var C, E, $, j;
|
|
2854
2957
|
return {
|
|
2855
|
-
basic: (C = h.value) == null ? void 0 : C.filter((
|
|
2856
|
-
advanced: (E = h.value) == null ? void 0 : E.filter((
|
|
2857
|
-
plugin: (
|
|
2958
|
+
basic: (C = h.value) == null ? void 0 : C.filter((B) => B.section === de.Basic),
|
|
2959
|
+
advanced: (E = h.value) == null ? void 0 : E.filter((B) => B.section === de.Advanced),
|
|
2960
|
+
plugin: (j = m.value) == null ? void 0 : j.concat(($ = h.value) == null ? void 0 : $.filter((B) => B.section === de.Plugin))
|
|
2858
2961
|
};
|
|
2859
2962
|
}), S = _(() => {
|
|
2860
2963
|
const C = [];
|
|
2861
2964
|
return k.value.basic.length && C.push("basic"), k.value.advanced.length && C.push("advanced"), k.value.plugin.length && C.push("plugin"), C;
|
|
2862
|
-
}), W = (C) => !!(C.tooltip || i[`${C.key}-label-tooltip`]),
|
|
2965
|
+
}), W = (C) => !!(C.tooltip || i[`${C.key}-label-tooltip`]), G = _(() => {
|
|
2863
2966
|
var C, E;
|
|
2864
|
-
let
|
|
2865
|
-
return a.config.app === "konnect" ?
|
|
2866
|
-
}),
|
|
2967
|
+
let $ = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
2968
|
+
return a.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((C = a.config) == null ? void 0 : C.controlPlaneId) || "") : a.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (E = a.config) != null && E.workspace ? `/${a.config.workspace}` : "")), $ = $.replace(/{id}/gi, a.config.entityId), $;
|
|
2969
|
+
}), q = (C) => {
|
|
2867
2970
|
p.value && C(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2868
2971
|
};
|
|
2869
2972
|
return be(f, (C) => {
|
|
@@ -2871,7 +2974,7 @@ const Oo = {
|
|
|
2871
2974
|
}, { immediate: !0 }), lt(async () => {
|
|
2872
2975
|
I.value = !1, f.value = !0;
|
|
2873
2976
|
try {
|
|
2874
|
-
const { data: C } = await s.get(
|
|
2977
|
+
const { data: C } = await s.get(G.value);
|
|
2875
2978
|
if (a.dataKey)
|
|
2876
2979
|
if (typeof C[a.dataKey] < "u")
|
|
2877
2980
|
p.value = { ...C[a.dataKey] };
|
|
@@ -2889,55 +2992,55 @@ const Oo = {
|
|
|
2889
2992
|
f.value = !1;
|
|
2890
2993
|
}
|
|
2891
2994
|
}), (C, E) => {
|
|
2892
|
-
const
|
|
2893
|
-
return
|
|
2995
|
+
const $ = F("KLabel"), j = F("KSelect"), B = F("KButton"), P = F("KClipboardProvider"), D = F("KSkeleton"), ee = F("KEmptyState"), ne = F("KCard");
|
|
2996
|
+
return y(), K(ne, { class: "kong-ui-entity-base-config-card" }, we({
|
|
2894
2997
|
actions: b(() => [
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
e.config.jsonYamlEnabled ? (
|
|
2998
|
+
L("div", nl, [
|
|
2999
|
+
V(C.$slots, "actions", {}, void 0, !0),
|
|
3000
|
+
e.config.jsonYamlEnabled ? (y(), K($, {
|
|
2898
3001
|
key: 0,
|
|
2899
3002
|
class: "config-format-select-label",
|
|
2900
3003
|
"data-testid": "config-format-select-label"
|
|
2901
3004
|
}, {
|
|
2902
3005
|
default: b(() => [
|
|
2903
|
-
z(
|
|
3006
|
+
z(N(e.label), 1)
|
|
2904
3007
|
]),
|
|
2905
3008
|
_: 1
|
|
2906
3009
|
})) : U("", !0),
|
|
2907
|
-
e.config.jsonYamlEnabled ? (
|
|
3010
|
+
e.config.jsonYamlEnabled ? (y(), K(j, {
|
|
2908
3011
|
key: 1,
|
|
2909
3012
|
appearance: "select",
|
|
2910
3013
|
"data-testid": "select-config-format",
|
|
2911
3014
|
items: c,
|
|
2912
3015
|
onChange: u
|
|
2913
3016
|
})) : U("", !0),
|
|
2914
|
-
a.config.jsonYamlEnabled && e.configCardDoc ? (
|
|
3017
|
+
a.config.jsonYamlEnabled && e.configCardDoc ? (y(), K(B, {
|
|
2915
3018
|
key: 2,
|
|
2916
|
-
appearance: "
|
|
3019
|
+
appearance: "tertiary",
|
|
2917
3020
|
class: "book-icon",
|
|
2918
3021
|
"data-testid": "book-icon"
|
|
2919
3022
|
}, {
|
|
2920
3023
|
default: b(() => [
|
|
2921
|
-
|
|
3024
|
+
L("a", {
|
|
2922
3025
|
href: e.configCardDoc,
|
|
2923
3026
|
rel: "noopener",
|
|
2924
3027
|
target: "_blank"
|
|
2925
3028
|
}, [
|
|
2926
|
-
|
|
2927
|
-
], 8,
|
|
3029
|
+
T(w(el), { size: w(li) }, null, 8, ["size"])
|
|
3030
|
+
], 8, al)
|
|
2928
3031
|
]),
|
|
2929
3032
|
_: 1
|
|
2930
3033
|
})) : U("", !0),
|
|
2931
|
-
e.config.jsonYamlEnabled ? U("", !0) : (
|
|
2932
|
-
default: b(({ copyToClipboard:
|
|
2933
|
-
!f.value && !I.value ? (
|
|
3034
|
+
e.config.jsonYamlEnabled ? U("", !0) : (y(), K(P, { key: 3 }, {
|
|
3035
|
+
default: b(({ copyToClipboard: Z }) => [
|
|
3036
|
+
!f.value && !I.value ? (y(), K(B, {
|
|
2934
3037
|
key: 0,
|
|
2935
|
-
appearance: "
|
|
3038
|
+
appearance: "tertiary",
|
|
2936
3039
|
"data-testid": "json-copy-button",
|
|
2937
|
-
onClick: (H) =>
|
|
3040
|
+
onClick: (H) => q(Z)
|
|
2938
3041
|
}, {
|
|
2939
3042
|
default: b(() => [
|
|
2940
|
-
z(
|
|
3043
|
+
z(N(w(r)("baseConfigCard.actions.copy")), 1)
|
|
2941
3044
|
]),
|
|
2942
3045
|
_: 2
|
|
2943
3046
|
}, 1032, ["onClick"])) : U("", !0)
|
|
@@ -2947,54 +3050,54 @@ const Oo = {
|
|
|
2947
3050
|
])
|
|
2948
3051
|
]),
|
|
2949
3052
|
body: b(() => [
|
|
2950
|
-
f.value ? (
|
|
3053
|
+
f.value ? (y(), K(D, {
|
|
2951
3054
|
key: 0,
|
|
2952
3055
|
"data-testid": "config-card-loader",
|
|
2953
3056
|
"table-columns": 2,
|
|
2954
3057
|
type: "table"
|
|
2955
|
-
})) : I.value ? (
|
|
3058
|
+
})) : I.value ? (y(), K(ee, {
|
|
2956
3059
|
key: 1,
|
|
2957
3060
|
"data-testid": "config-card-fetch-error",
|
|
2958
3061
|
"is-error": ""
|
|
2959
3062
|
}, {
|
|
2960
3063
|
message: b(() => [
|
|
2961
|
-
|
|
3064
|
+
L("h3", null, N(v.value), 1)
|
|
2962
3065
|
]),
|
|
2963
3066
|
_: 1
|
|
2964
3067
|
})) : U("", !0),
|
|
2965
|
-
e.config.jsonYamlEnabled ? (
|
|
2966
|
-
|
|
3068
|
+
e.config.jsonYamlEnabled ? (y(), x("div", il, [
|
|
3069
|
+
T(Jo, {
|
|
2967
3070
|
format: d.value,
|
|
2968
3071
|
"prop-list-types": S.value,
|
|
2969
3072
|
"property-collections": k.value,
|
|
2970
3073
|
record: p.value
|
|
2971
3074
|
}, we({ _: 2 }, [
|
|
2972
|
-
ue(Object.keys(C.$slots), (
|
|
2973
|
-
name:
|
|
3075
|
+
ue(Object.keys(C.$slots), (Z) => ({
|
|
3076
|
+
name: Z,
|
|
2974
3077
|
fn: b(({ row: H, rowValue: le }) => [
|
|
2975
|
-
|
|
3078
|
+
V(C.$slots, Z, {
|
|
2976
3079
|
row: H,
|
|
2977
3080
|
rowValue: le
|
|
2978
3081
|
}, void 0, !0)
|
|
2979
3082
|
])
|
|
2980
3083
|
}))
|
|
2981
3084
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2982
|
-
])) : (
|
|
2983
|
-
(
|
|
2984
|
-
key: `config-card-details-${
|
|
2985
|
-
class: Ie(`config-card-details-${
|
|
2986
|
-
"data-testid": `config-card-details-${
|
|
3085
|
+
])) : (y(), x("div", rl, [
|
|
3086
|
+
(y(!0), x(pe, null, ue(S.value, (Z) => (y(), x("div", {
|
|
3087
|
+
key: `config-card-details-${Z}-props`,
|
|
3088
|
+
class: Ie(`config-card-details-${Z}-props`),
|
|
3089
|
+
"data-testid": `config-card-details-${Z}-props`
|
|
2987
3090
|
}, [
|
|
2988
|
-
|
|
2989
|
-
(
|
|
3091
|
+
Z !== "basic" ? (y(), x("div", ll, N(Z === "advanced" ? w(r)("baseConfigCard.sections.advanced") : w(r)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
|
|
3092
|
+
(y(!0), x(pe, null, ue(k.value[Z], (H) => (y(), K(ft, {
|
|
2990
3093
|
key: H.key,
|
|
2991
3094
|
item: H
|
|
2992
3095
|
}, we({
|
|
2993
3096
|
label: b(() => [
|
|
2994
|
-
|
|
3097
|
+
V(C.$slots, `${H.key}-label`, { row: H }, void 0, !0)
|
|
2995
3098
|
]),
|
|
2996
3099
|
[H.key]: b(({ rowValue: le }) => [
|
|
2997
|
-
|
|
3100
|
+
V(C.$slots, H.key, {
|
|
2998
3101
|
row: H,
|
|
2999
3102
|
rowValue: le
|
|
3000
3103
|
}, void 0, !0)
|
|
@@ -3004,12 +3107,12 @@ const Oo = {
|
|
|
3004
3107
|
W(H) ? {
|
|
3005
3108
|
name: "label-tooltip",
|
|
3006
3109
|
fn: b(() => [
|
|
3007
|
-
|
|
3110
|
+
V(C.$slots, `${H.key}-label-tooltip`, { row: H }, void 0, !0)
|
|
3008
3111
|
]),
|
|
3009
3112
|
key: "0"
|
|
3010
3113
|
} : void 0
|
|
3011
3114
|
]), 1032, ["item"]))), 128))
|
|
3012
|
-
], 10,
|
|
3115
|
+
], 10, ol))), 128))
|
|
3013
3116
|
]))
|
|
3014
3117
|
]),
|
|
3015
3118
|
_: 2
|
|
@@ -3017,9 +3120,9 @@ const Oo = {
|
|
|
3017
3120
|
e.hideTitle ? void 0 : {
|
|
3018
3121
|
name: "title",
|
|
3019
3122
|
fn: b(() => [
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
z(
|
|
3123
|
+
L("div", tl, [
|
|
3124
|
+
V(C.$slots, "title", {}, () => [
|
|
3125
|
+
z(N(w(r)("baseConfigCard.title")), 1)
|
|
3023
3126
|
], !0)
|
|
3024
3127
|
])
|
|
3025
3128
|
]),
|
|
@@ -3028,10 +3131,10 @@ const Oo = {
|
|
|
3028
3131
|
]), 1024);
|
|
3029
3132
|
};
|
|
3030
3133
|
}
|
|
3031
|
-
}),
|
|
3134
|
+
}), cl = /* @__PURE__ */ fe(sl, [["__scopeId", "data-v-24515123"]]), ul = ["onReset", "onSubmit"], dl = {
|
|
3032
3135
|
class: "form-actions",
|
|
3033
3136
|
"data-testid": "form-actions"
|
|
3034
|
-
},
|
|
3137
|
+
}, pl = /* @__PURE__ */ Q({
|
|
3035
3138
|
__name: "EntityBaseForm",
|
|
3036
3139
|
props: {
|
|
3037
3140
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3083,7 +3186,7 @@ const Oo = {
|
|
|
3083
3186
|
var t;
|
|
3084
3187
|
const a = e, i = st(), { i18n: { t: r } } = ae.useI18n(), { getMessageFromError: o } = ae.useErrors(), { axiosInstance: l } = ae.useAxios({
|
|
3085
3188
|
headers: (t = a.config) == null ? void 0 : t.requestHeaders
|
|
3086
|
-
}), s = O(!1), c = O(!1), d = O(""), u = _(() => a.canSubmit === !1 || a.isReadonly),
|
|
3189
|
+
}), s = O(!1), c = O(!1), d = O(""), u = _(() => a.canSubmit === !1 || a.isReadonly), g = _(() => {
|
|
3087
3190
|
var p, h;
|
|
3088
3191
|
if (!a.editId)
|
|
3089
3192
|
return "";
|
|
@@ -3102,7 +3205,7 @@ const Oo = {
|
|
|
3102
3205
|
if (a.editId)
|
|
3103
3206
|
try {
|
|
3104
3207
|
c.value = !1, s.value = !0;
|
|
3105
|
-
const { data: p } = await l.get(
|
|
3208
|
+
const { data: p } = await l.get(g.value);
|
|
3106
3209
|
n("fetch:success", p);
|
|
3107
3210
|
} catch (p) {
|
|
3108
3211
|
const h = o(p);
|
|
@@ -3111,13 +3214,13 @@ const Oo = {
|
|
|
3111
3214
|
s.value = !1;
|
|
3112
3215
|
}
|
|
3113
3216
|
}), (p, h) => {
|
|
3114
|
-
const m =
|
|
3115
|
-
return
|
|
3217
|
+
const m = F("KSkeleton"), k = F("KEmptyState"), S = F("KAlert"), W = F("KButton"), G = F("KCard");
|
|
3218
|
+
return y(), K(G, { class: "kong-ui-entity-base-form" }, {
|
|
3116
3219
|
body: b(() => [
|
|
3117
|
-
s.value ? (
|
|
3220
|
+
s.value ? (y(), K(m, {
|
|
3118
3221
|
key: 0,
|
|
3119
3222
|
type: "form"
|
|
3120
|
-
})) : c.value ? (
|
|
3223
|
+
})) : c.value ? (y(), K(k, {
|
|
3121
3224
|
key: 1,
|
|
3122
3225
|
"cta-text": w(r)("baseForm.actions.back"),
|
|
3123
3226
|
"data-testid": "form-fetch-error",
|
|
@@ -3125,58 +3228,58 @@ const Oo = {
|
|
|
3125
3228
|
"is-error": !0
|
|
3126
3229
|
}, {
|
|
3127
3230
|
message: b(() => [
|
|
3128
|
-
|
|
3231
|
+
L("h3", null, N(d.value), 1)
|
|
3129
3232
|
]),
|
|
3130
3233
|
_: 1
|
|
3131
|
-
}, 8, ["cta-text"])) : (
|
|
3234
|
+
}, 8, ["cta-text"])) : (y(), x("form", {
|
|
3132
3235
|
key: 2,
|
|
3133
3236
|
"data-testid": "form-content",
|
|
3134
3237
|
onReset: Pe(I, ["prevent"]),
|
|
3135
3238
|
onSubmit: Pe(v, ["prevent"])
|
|
3136
3239
|
}, [
|
|
3137
|
-
|
|
3138
|
-
e.errorMessage ? (
|
|
3240
|
+
V(p.$slots, "default", {}, void 0, !0),
|
|
3241
|
+
e.errorMessage ? (y(), K(S, {
|
|
3139
3242
|
key: 0,
|
|
3140
3243
|
"alert-message": e.errorMessage,
|
|
3141
3244
|
appearance: "danger",
|
|
3142
3245
|
"data-testid": "form-error"
|
|
3143
3246
|
}, null, 8, ["alert-message"])) : U("", !0),
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
appearance: "
|
|
3247
|
+
L("div", dl, [
|
|
3248
|
+
V(p.$slots, "form-actions", {}, () => [
|
|
3249
|
+
T(W, {
|
|
3250
|
+
appearance: "secondary",
|
|
3148
3251
|
"data-testid": "form-cancel",
|
|
3149
3252
|
disabled: e.isReadonly,
|
|
3150
3253
|
type: "reset"
|
|
3151
3254
|
}, {
|
|
3152
3255
|
default: b(() => [
|
|
3153
|
-
z(
|
|
3256
|
+
z(N(w(r)("baseForm.actions.cancel")), 1)
|
|
3154
3257
|
]),
|
|
3155
3258
|
_: 1
|
|
3156
3259
|
}, 8, ["disabled"]),
|
|
3157
|
-
|
|
3260
|
+
T(W, {
|
|
3158
3261
|
appearance: "primary",
|
|
3159
3262
|
"data-testid": "form-submit",
|
|
3160
3263
|
disabled: u.value,
|
|
3161
3264
|
type: "submit"
|
|
3162
3265
|
}, {
|
|
3163
3266
|
default: b(() => [
|
|
3164
|
-
z(
|
|
3267
|
+
z(N(w(r)("baseForm.actions.save")), 1)
|
|
3165
3268
|
]),
|
|
3166
3269
|
_: 1
|
|
3167
3270
|
}, 8, ["disabled"])
|
|
3168
3271
|
], !0)
|
|
3169
3272
|
])
|
|
3170
|
-
], 40,
|
|
3273
|
+
], 40, ul))
|
|
3171
3274
|
]),
|
|
3172
3275
|
_: 3
|
|
3173
3276
|
});
|
|
3174
3277
|
};
|
|
3175
3278
|
}
|
|
3176
|
-
}),
|
|
3279
|
+
}), fl = /* @__PURE__ */ fe(pl, [["__scopeId", "data-v-81612aef"]]), yl = {
|
|
3177
3280
|
key: 0,
|
|
3178
3281
|
"data-testid": "first-col"
|
|
3179
|
-
},
|
|
3282
|
+
}, gl = /* @__PURE__ */ Q({
|
|
3180
3283
|
__name: "EntityBaseTableCell",
|
|
3181
3284
|
props: {
|
|
3182
3285
|
keyName: {
|
|
@@ -3206,8 +3309,8 @@ const Oo = {
|
|
|
3206
3309
|
}, l = () => {
|
|
3207
3310
|
var v, p, h;
|
|
3208
3311
|
c.value = ((v = a.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((h = s.value) == null ? void 0 : h.innerText) || "";
|
|
3209
|
-
}, s = O({}), c = O(0), d = O(0), u = O(""),
|
|
3210
|
-
|
|
3312
|
+
}, s = O({}), c = O(0), d = O(0), u = O(""), g = _(() => [a.value, t.value]), f = be(
|
|
3313
|
+
g,
|
|
3211
3314
|
(v) => {
|
|
3212
3315
|
if (i.value && (o(), "ResizeObserver" in window && window)) {
|
|
3213
3316
|
r = new ResizeObserver((p) => {
|
|
@@ -3221,36 +3324,36 @@ const Oo = {
|
|
|
3221
3324
|
},
|
|
3222
3325
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3223
3326
|
), I = _(() => i.value ? c.value > d.value : !1);
|
|
3224
|
-
return
|
|
3327
|
+
return Qn(() => {
|
|
3225
3328
|
l();
|
|
3226
|
-
}),
|
|
3329
|
+
}), ea(() => {
|
|
3227
3330
|
f();
|
|
3228
3331
|
}), (v, p) => {
|
|
3229
|
-
const h =
|
|
3230
|
-
return
|
|
3332
|
+
const h = F("KTooltip");
|
|
3333
|
+
return y(), x("span", {
|
|
3231
3334
|
ref_key: "contentRef",
|
|
3232
3335
|
ref: s,
|
|
3233
3336
|
class: "content-wrapper"
|
|
3234
3337
|
}, [
|
|
3235
|
-
i.value ? (
|
|
3236
|
-
|
|
3338
|
+
i.value ? (y(), x("span", yl, [
|
|
3339
|
+
T(h, {
|
|
3237
3340
|
label: I.value ? u.value : "",
|
|
3238
3341
|
"max-width": "300",
|
|
3239
3342
|
placement: "bottomStart"
|
|
3240
3343
|
}, {
|
|
3241
3344
|
default: b(() => [
|
|
3242
|
-
|
|
3345
|
+
V(v.$slots, "default", {}, void 0, !0)
|
|
3243
3346
|
]),
|
|
3244
3347
|
_: 3
|
|
3245
3348
|
}, 8, ["label"])
|
|
3246
|
-
])) :
|
|
3349
|
+
])) : V(v.$slots, "default", { key: 1 }, void 0, !0)
|
|
3247
3350
|
], 512);
|
|
3248
3351
|
};
|
|
3249
3352
|
}
|
|
3250
|
-
}),
|
|
3353
|
+
}), ml = /* @__PURE__ */ fe(gl, [["__scopeId", "data-v-e42a20c9"]]), hl = { class: "toolbar-container" }, vl = {
|
|
3251
3354
|
key: 0,
|
|
3252
3355
|
class: "toolbar-button-container"
|
|
3253
|
-
},
|
|
3356
|
+
}, bl = ["data-testid"], kl = /* @__PURE__ */ Q({
|
|
3254
3357
|
__name: "EntityBaseTable",
|
|
3255
3358
|
props: {
|
|
3256
3359
|
// table header configuration
|
|
@@ -3390,14 +3493,14 @@ const Oo = {
|
|
|
3390
3493
|
textOverflow: "ellipsis"
|
|
3391
3494
|
}), S;
|
|
3392
3495
|
}, u = () => {
|
|
3393
|
-
n("empty-state-cta-clicked"),
|
|
3394
|
-
},
|
|
3496
|
+
n("empty-state-cta-clicked"), g();
|
|
3497
|
+
}, g = () => {
|
|
3395
3498
|
n("clear-search-input");
|
|
3396
3499
|
}, f = _(() => t.disableRowClick ? void 0 : (k, S) => {
|
|
3397
3500
|
n("click:row", S);
|
|
3398
3501
|
}), I = (k) => {
|
|
3399
3502
|
n("sort", k);
|
|
3400
|
-
}, { setTablePreferences: v, getTablePreferences: p } =
|
|
3503
|
+
}, { setTablePreferences: v, getTablePreferences: p } = ua(), h = _(() => {
|
|
3401
3504
|
const k = p(t.preferencesStorageKey);
|
|
3402
3505
|
return {
|
|
3403
3506
|
...t.initialFetcherParams,
|
|
@@ -3407,13 +3510,13 @@ const Oo = {
|
|
|
3407
3510
|
t.preferencesStorageKey && v(t.preferencesStorageKey, k);
|
|
3408
3511
|
};
|
|
3409
3512
|
return (k, S) => {
|
|
3410
|
-
const W =
|
|
3411
|
-
return
|
|
3513
|
+
const W = F("KIcon"), G = F("KButton"), q = F("KDropdown"), C = F("KTable"), E = F("KCard");
|
|
3514
|
+
return y(), K(E, {
|
|
3412
3515
|
class: "kong-ui-entity-base-table",
|
|
3413
3516
|
title: e.title
|
|
3414
3517
|
}, {
|
|
3415
3518
|
body: b(() => [
|
|
3416
|
-
|
|
3519
|
+
T(C, {
|
|
3417
3520
|
ref_key: "tableRefs",
|
|
3418
3521
|
ref: s,
|
|
3419
3522
|
"cache-identifier": i.value,
|
|
@@ -3441,44 +3544,44 @@ const Oo = {
|
|
|
3441
3544
|
"search-input": e.query,
|
|
3442
3545
|
onKtableEmptyStateCtaClicked: u,
|
|
3443
3546
|
"onRow:click": f.value,
|
|
3444
|
-
onSort: S[0] || (S[0] = (
|
|
3547
|
+
onSort: S[0] || (S[0] = ($) => I($)),
|
|
3445
3548
|
"onUpdate:tablePreferences": m
|
|
3446
3549
|
}, we({
|
|
3447
|
-
toolbar: b(({ state:
|
|
3448
|
-
Le(
|
|
3449
|
-
|
|
3450
|
-
k.$slots["toolbar-button"] ? (
|
|
3451
|
-
|
|
3550
|
+
toolbar: b(({ state: $ }) => [
|
|
3551
|
+
Le(L("div", hl, [
|
|
3552
|
+
V(k.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3553
|
+
k.$slots["toolbar-button"] ? (y(), x("div", vl, [
|
|
3554
|
+
V(k.$slots, "toolbar-button", {}, void 0, !0)
|
|
3452
3555
|
])) : U("", !0)
|
|
3453
3556
|
], 512), [
|
|
3454
|
-
[qe, r(
|
|
3557
|
+
[qe, r($)]
|
|
3455
3558
|
])
|
|
3456
3559
|
]),
|
|
3457
|
-
actions: b(({ row:
|
|
3458
|
-
|
|
3560
|
+
actions: b(({ row: $, rowKey: j, rowValue: B }) => [
|
|
3561
|
+
L("div", {
|
|
3459
3562
|
class: "actions-container",
|
|
3460
|
-
"data-testid":
|
|
3563
|
+
"data-testid": $.name
|
|
3461
3564
|
}, [
|
|
3462
|
-
|
|
3565
|
+
T(q, {
|
|
3463
3566
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3464
3567
|
width: e.dropdownMenuWidth
|
|
3465
3568
|
}, {
|
|
3466
3569
|
items: b(() => [
|
|
3467
|
-
|
|
3468
|
-
row:
|
|
3469
|
-
rowKey:
|
|
3470
|
-
rowValue:
|
|
3570
|
+
V(k.$slots, "actions", {
|
|
3571
|
+
row: $,
|
|
3572
|
+
rowKey: j,
|
|
3573
|
+
rowValue: B
|
|
3471
3574
|
}, void 0, !0)
|
|
3472
3575
|
]),
|
|
3473
3576
|
default: b(() => [
|
|
3474
|
-
|
|
3577
|
+
T(G, {
|
|
3475
3578
|
class: "actions-trigger",
|
|
3476
3579
|
"data-testid": "overflow-actions-button",
|
|
3477
3580
|
size: "small"
|
|
3478
3581
|
}, {
|
|
3479
3582
|
icon: b(() => [
|
|
3480
|
-
|
|
3481
|
-
color: w(
|
|
3583
|
+
T(W, {
|
|
3584
|
+
color: w(ri),
|
|
3482
3585
|
icon: "more",
|
|
3483
3586
|
size: "16"
|
|
3484
3587
|
}, null, 8, ["color"])
|
|
@@ -3488,24 +3591,24 @@ const Oo = {
|
|
|
3488
3591
|
]),
|
|
3489
3592
|
_: 2
|
|
3490
3593
|
}, 1032, ["width"])
|
|
3491
|
-
], 8,
|
|
3594
|
+
], 8, bl)
|
|
3492
3595
|
]),
|
|
3493
3596
|
_: 2
|
|
3494
3597
|
}, [
|
|
3495
|
-
ue(e.tableHeaders, (
|
|
3496
|
-
name:
|
|
3497
|
-
fn: b(({ row:
|
|
3498
|
-
|
|
3499
|
-
"key-name": String(
|
|
3500
|
-
"row-el": c(
|
|
3598
|
+
ue(e.tableHeaders, ($, j) => ({
|
|
3599
|
+
name: j,
|
|
3600
|
+
fn: b(({ row: B, rowKey: P, rowValue: D }) => [
|
|
3601
|
+
T(ml, {
|
|
3602
|
+
"key-name": String(j),
|
|
3603
|
+
"row-el": c(B)
|
|
3501
3604
|
}, {
|
|
3502
3605
|
default: b(() => [
|
|
3503
|
-
|
|
3504
|
-
row:
|
|
3606
|
+
V(k.$slots, j, {
|
|
3607
|
+
row: B,
|
|
3505
3608
|
rowKey: P,
|
|
3506
|
-
rowValue:
|
|
3609
|
+
rowValue: D
|
|
3507
3610
|
}, () => [
|
|
3508
|
-
z(
|
|
3611
|
+
z(N(D), 1)
|
|
3509
3612
|
], !0)
|
|
3510
3613
|
]),
|
|
3511
3614
|
_: 2
|
|
@@ -3518,13 +3621,13 @@ const Oo = {
|
|
|
3518
3621
|
}, 8, ["title"]);
|
|
3519
3622
|
};
|
|
3520
3623
|
}
|
|
3521
|
-
}),
|
|
3624
|
+
}), Cl = /* @__PURE__ */ fe(kl, [["__scopeId", "data-v-86d2d2a3"]]), wl = {
|
|
3522
3625
|
key: 0,
|
|
3523
3626
|
class: "kong-ui-entity-delete-error"
|
|
3524
|
-
},
|
|
3627
|
+
}, Sl = {
|
|
3525
3628
|
key: 1,
|
|
3526
3629
|
class: "description"
|
|
3527
|
-
},
|
|
3630
|
+
}, Il = /* @__PURE__ */ Q({
|
|
3528
3631
|
__name: "EntityDeleteModal",
|
|
3529
3632
|
props: {
|
|
3530
3633
|
visible: {
|
|
@@ -3569,8 +3672,8 @@ const Oo = {
|
|
|
3569
3672
|
n("proceed");
|
|
3570
3673
|
};
|
|
3571
3674
|
return (l, s) => {
|
|
3572
|
-
const c =
|
|
3573
|
-
return
|
|
3675
|
+
const c = F("KAlert"), d = F("KPrompt");
|
|
3676
|
+
return y(), K(d, {
|
|
3574
3677
|
"action-button-text": "Yes, delete",
|
|
3575
3678
|
"action-pending": e.actionPending,
|
|
3576
3679
|
class: "kong-ui-entity-delete-modal",
|
|
@@ -3582,35 +3685,35 @@ const Oo = {
|
|
|
3582
3685
|
onProceed: o
|
|
3583
3686
|
}, {
|
|
3584
3687
|
"body-content": b(() => [
|
|
3585
|
-
e.error ? (
|
|
3586
|
-
|
|
3688
|
+
e.error ? (y(), x("div", wl, [
|
|
3689
|
+
T(c, { appearance: "danger" }, {
|
|
3587
3690
|
alertMessage: b(() => [
|
|
3588
|
-
z(
|
|
3691
|
+
z(N(e.error), 1)
|
|
3589
3692
|
]),
|
|
3590
3693
|
_: 1
|
|
3591
3694
|
})
|
|
3592
3695
|
])) : U("", !0),
|
|
3593
|
-
|
|
3696
|
+
T(w(a), {
|
|
3594
3697
|
class: "message",
|
|
3595
3698
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3596
3699
|
tag: "p"
|
|
3597
3700
|
}, we({
|
|
3598
3701
|
entityType: b(() => [
|
|
3599
|
-
z(
|
|
3702
|
+
z(N(t.entityType), 1)
|
|
3600
3703
|
]),
|
|
3601
3704
|
_: 2
|
|
3602
3705
|
}, [
|
|
3603
3706
|
t.entityName ? {
|
|
3604
3707
|
name: "entityName",
|
|
3605
3708
|
fn: b(() => [
|
|
3606
|
-
|
|
3709
|
+
L("strong", null, N(t.entityName), 1)
|
|
3607
3710
|
]),
|
|
3608
3711
|
key: "0"
|
|
3609
3712
|
} : void 0
|
|
3610
3713
|
]), 1032, ["keypath"]),
|
|
3611
|
-
t.description || l.$slots.description ? (
|
|
3612
|
-
|
|
3613
|
-
|
|
3714
|
+
t.description || l.$slots.description ? (y(), x("div", Sl, [
|
|
3715
|
+
V(l.$slots, "description", {}, () => [
|
|
3716
|
+
L("p", null, N(t.description), 1)
|
|
3614
3717
|
], !0)
|
|
3615
3718
|
])) : U("", !0)
|
|
3616
3719
|
]),
|
|
@@ -3618,13 +3721,13 @@ const Oo = {
|
|
|
3618
3721
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3619
3722
|
};
|
|
3620
3723
|
}
|
|
3621
|
-
}),
|
|
3724
|
+
}), Al = /* @__PURE__ */ fe(Il, [["__scopeId", "data-v-1c9a2a07"]]), xl = {
|
|
3622
3725
|
fill: "none",
|
|
3623
3726
|
height: "20",
|
|
3624
3727
|
viewBox: "0 0 20 20",
|
|
3625
3728
|
width: "20",
|
|
3626
3729
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3627
|
-
},
|
|
3730
|
+
}, _l = {
|
|
3628
3731
|
id: "mask0_180_20349",
|
|
3629
3732
|
height: "20",
|
|
3630
3733
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3632,35 +3735,35 @@ const Oo = {
|
|
|
3632
3735
|
width: "20",
|
|
3633
3736
|
x: "0",
|
|
3634
3737
|
y: "0"
|
|
3635
|
-
},
|
|
3738
|
+
}, Tl = ["fill"], $l = { mask: "url(#mask0_180_20349)" }, jl = ["fill"], Ht = /* @__PURE__ */ Q({
|
|
3636
3739
|
__name: "IconFilter",
|
|
3637
3740
|
props: {
|
|
3638
3741
|
color: {
|
|
3639
3742
|
type: String,
|
|
3640
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3743
|
+
default: `var(--kong-ui-entity-filter-color, ${ai})`
|
|
3641
3744
|
}
|
|
3642
3745
|
},
|
|
3643
3746
|
setup(e) {
|
|
3644
|
-
return (n, t) => (
|
|
3645
|
-
|
|
3646
|
-
|
|
3747
|
+
return (n, t) => (y(), x("svg", xl, [
|
|
3748
|
+
L("mask", _l, [
|
|
3749
|
+
L("rect", {
|
|
3647
3750
|
fill: e.color,
|
|
3648
3751
|
height: "20",
|
|
3649
3752
|
width: "20"
|
|
3650
|
-
}, null, 8,
|
|
3753
|
+
}, null, 8, Tl)
|
|
3651
3754
|
]),
|
|
3652
|
-
|
|
3653
|
-
|
|
3755
|
+
L("g", $l, [
|
|
3756
|
+
L("path", {
|
|
3654
3757
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3655
3758
|
fill: e.color
|
|
3656
|
-
}, null, 8,
|
|
3759
|
+
}, null, 8, jl)
|
|
3657
3760
|
])
|
|
3658
3761
|
]));
|
|
3659
3762
|
}
|
|
3660
|
-
}),
|
|
3763
|
+
}), Ol = {
|
|
3661
3764
|
key: 1,
|
|
3662
3765
|
class: "kong-ui-entity-filter"
|
|
3663
|
-
},
|
|
3766
|
+
}, Ml = { class: "menu-item-title" }, El = { class: "menu-item-indicator" }, Fl = { class: "menu-item-body" }, Nl = ["for"], Kl = { class: "menu-item-buttons" }, Bl = { class: "filter-clear-button-container" }, Ll = /* @__PURE__ */ Q({
|
|
3664
3767
|
__name: "EntityFilter",
|
|
3665
3768
|
props: {
|
|
3666
3769
|
// filter config, either exact match or fuzzy match
|
|
@@ -3707,7 +3810,7 @@ const Oo = {
|
|
|
3707
3810
|
value: k,
|
|
3708
3811
|
label: k
|
|
3709
3812
|
}));
|
|
3710
|
-
},
|
|
3813
|
+
}, g = (p) => {
|
|
3711
3814
|
var h, m;
|
|
3712
3815
|
return ((m = (h = t.config.schema) == null ? void 0 : h[p]) == null ? void 0 : m.type) ?? "text";
|
|
3713
3816
|
}, f = (p) => {
|
|
@@ -3722,8 +3825,8 @@ const Oo = {
|
|
|
3722
3825
|
p && (i.value = !1), n("update:modelValue", new URLSearchParams(h).toString());
|
|
3723
3826
|
};
|
|
3724
3827
|
return (p, h) => {
|
|
3725
|
-
const m =
|
|
3726
|
-
return e.config.isExactMatch ? (
|
|
3828
|
+
const m = F("KInput"), k = F("KButton"), S = F("KSelect"), W = F("KMenuItem"), G = F("KMenu");
|
|
3829
|
+
return e.config.isExactMatch ? (y(), K(m, {
|
|
3727
3830
|
key: 0,
|
|
3728
3831
|
autocomplete: "off",
|
|
3729
3832
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3732,91 +3835,90 @@ const Oo = {
|
|
|
3732
3835
|
placeholder: e.config.placeholder,
|
|
3733
3836
|
"onUpdate:modelValue": c
|
|
3734
3837
|
}, {
|
|
3735
|
-
|
|
3736
|
-
|
|
3838
|
+
before: b(() => [
|
|
3839
|
+
T(Ht)
|
|
3737
3840
|
]),
|
|
3738
3841
|
_: 1
|
|
3739
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
3740
|
-
|
|
3741
|
-
appearance: "
|
|
3842
|
+
}, 8, ["model-value", "placeholder"])) : (y(), x("div", Ol, [
|
|
3843
|
+
T(k, {
|
|
3844
|
+
appearance: "tertiary",
|
|
3742
3845
|
"data-testid": "filter-button",
|
|
3743
|
-
icon: "filter",
|
|
3744
3846
|
onClick: s
|
|
3745
3847
|
}, {
|
|
3746
3848
|
default: b(() => [
|
|
3747
|
-
|
|
3849
|
+
T(Ht),
|
|
3850
|
+
z(" " + N(w(a)("filter.filterButtonText")) + " " + N(o.value.length > 0 ? `(${o.value.length})` : ""), 1)
|
|
3748
3851
|
]),
|
|
3749
3852
|
_: 1
|
|
3750
3853
|
}),
|
|
3751
|
-
Le(
|
|
3854
|
+
Le(L("div", {
|
|
3752
3855
|
class: "kong-ui-entity-filter-backdrop",
|
|
3753
3856
|
onClick: s
|
|
3754
3857
|
}, null, 512), [
|
|
3755
3858
|
[qe, i.value]
|
|
3756
3859
|
]),
|
|
3757
|
-
Le(
|
|
3860
|
+
Le(T(G, { class: "kong-ui-entity-filter-menu" }, {
|
|
3758
3861
|
body: b(() => [
|
|
3759
|
-
(
|
|
3760
|
-
key:
|
|
3761
|
-
"data-testid":
|
|
3862
|
+
(y(!0), x(pe, null, ue(l.value, (q, C) => (y(), K(W, {
|
|
3863
|
+
key: q.value,
|
|
3864
|
+
"data-testid": q.value,
|
|
3762
3865
|
expandable: "",
|
|
3763
3866
|
"last-menu-item": C === l.value.length - 1
|
|
3764
3867
|
}, {
|
|
3765
3868
|
itemTitle: b(() => [
|
|
3766
|
-
|
|
3767
|
-
z(
|
|
3768
|
-
Le(
|
|
3769
|
-
[qe, o.value.includes(
|
|
3869
|
+
L("span", Ml, [
|
|
3870
|
+
z(N(q.label) + " ", 1),
|
|
3871
|
+
Le(L("span", El, null, 512), [
|
|
3872
|
+
[qe, o.value.includes(q.value)]
|
|
3770
3873
|
])
|
|
3771
3874
|
])
|
|
3772
3875
|
]),
|
|
3773
3876
|
itemBody: b(() => {
|
|
3774
|
-
var E,
|
|
3877
|
+
var E, $;
|
|
3775
3878
|
return [
|
|
3776
|
-
|
|
3777
|
-
|
|
3879
|
+
L("div", Fl, [
|
|
3880
|
+
L("label", {
|
|
3778
3881
|
class: "menu-item-label",
|
|
3779
|
-
for: d(
|
|
3780
|
-
},
|
|
3781
|
-
((
|
|
3882
|
+
for: d(q.value)
|
|
3883
|
+
}, N(w(a)("filter.fieldLabel")), 9, Nl),
|
|
3884
|
+
(($ = (E = e.config.schema) == null ? void 0 : E[q.value]) == null ? void 0 : $.type) === "select" ? (y(), K(S, {
|
|
3782
3885
|
key: 0,
|
|
3783
|
-
id: d(
|
|
3784
|
-
modelValue: r.value[
|
|
3785
|
-
"onUpdate:modelValue": (
|
|
3886
|
+
id: d(q.value),
|
|
3887
|
+
modelValue: r.value[q.value],
|
|
3888
|
+
"onUpdate:modelValue": (j) => r.value[q.value] = j,
|
|
3786
3889
|
appearance: "select",
|
|
3787
|
-
items: u(
|
|
3890
|
+
items: u(q.value),
|
|
3788
3891
|
placeholder: w(a)("filter.selectPlaceholder")
|
|
3789
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (
|
|
3892
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (y(), K(m, {
|
|
3790
3893
|
key: 1,
|
|
3791
|
-
id: d(
|
|
3792
|
-
modelValue: r.value[
|
|
3793
|
-
"onUpdate:modelValue": (
|
|
3894
|
+
id: d(q.value),
|
|
3895
|
+
modelValue: r.value[q.value],
|
|
3896
|
+
"onUpdate:modelValue": (j) => r.value[q.value] = j,
|
|
3794
3897
|
autocomplete: "off",
|
|
3795
3898
|
placeholder: w(a)("filter.inputPlaceholder"),
|
|
3796
|
-
|
|
3797
|
-
type: y(L.value)
|
|
3899
|
+
type: g(q.value)
|
|
3798
3900
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3799
3901
|
]),
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
appearance: "
|
|
3902
|
+
L("div", Kl, [
|
|
3903
|
+
T(k, {
|
|
3904
|
+
appearance: "tertiary",
|
|
3803
3905
|
"data-testid": "apply-filter",
|
|
3804
3906
|
size: "small",
|
|
3805
|
-
onClick: h[0] || (h[0] = (
|
|
3907
|
+
onClick: h[0] || (h[0] = (j) => v(!0))
|
|
3806
3908
|
}, {
|
|
3807
3909
|
default: b(() => [
|
|
3808
|
-
z(
|
|
3910
|
+
z(N(w(a)("filter.applyButtonText")), 1)
|
|
3809
3911
|
]),
|
|
3810
3912
|
_: 1
|
|
3811
3913
|
}),
|
|
3812
|
-
|
|
3813
|
-
appearance: "
|
|
3914
|
+
T(k, {
|
|
3915
|
+
appearance: "tertiary",
|
|
3814
3916
|
"data-testid": "clear-filter",
|
|
3815
3917
|
size: "small",
|
|
3816
|
-
onClick: (
|
|
3918
|
+
onClick: (j) => f(q.value)
|
|
3817
3919
|
}, {
|
|
3818
3920
|
default: b(() => [
|
|
3819
|
-
z(
|
|
3921
|
+
z(N(w(a)("filter.clearButtonText")), 1)
|
|
3820
3922
|
]),
|
|
3821
3923
|
_: 2
|
|
3822
3924
|
}, 1032, ["onClick"])
|
|
@@ -3827,12 +3929,17 @@ const Oo = {
|
|
|
3827
3929
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3828
3930
|
]),
|
|
3829
3931
|
actionButton: b(() => [
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3932
|
+
L("div", Bl, [
|
|
3933
|
+
T(k, {
|
|
3934
|
+
size: "small",
|
|
3935
|
+
onClick: I
|
|
3936
|
+
}, {
|
|
3937
|
+
default: b(() => [
|
|
3938
|
+
z(N(w(a)("filter.clearAllButtonText")), 1)
|
|
3939
|
+
]),
|
|
3940
|
+
_: 1
|
|
3941
|
+
})
|
|
3942
|
+
])
|
|
3836
3943
|
]),
|
|
3837
3944
|
_: 1
|
|
3838
3945
|
}, 512), [
|
|
@@ -3841,7 +3948,7 @@ const Oo = {
|
|
|
3841
3948
|
]));
|
|
3842
3949
|
};
|
|
3843
3950
|
}
|
|
3844
|
-
}),
|
|
3951
|
+
}), ql = /* @__PURE__ */ fe(Ll, [["__scopeId", "data-v-4ea260f0"]]), Be = /* @__PURE__ */ Q({
|
|
3845
3952
|
__name: "PermissionsWrapper",
|
|
3846
3953
|
props: {
|
|
3847
3954
|
/**
|
|
@@ -3866,21 +3973,21 @@ const Oo = {
|
|
|
3866
3973
|
const n = e, t = O(void 0), a = _(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
3867
3974
|
return be(() => n.authFunction, async () => {
|
|
3868
3975
|
t.value = await n.authFunction();
|
|
3869
|
-
}, { immediate: !0 }), (i, r) => a.value ?
|
|
3976
|
+
}, { immediate: !0 }), (i, r) => a.value ? V(i.$slots, "default", {
|
|
3870
3977
|
key: 0,
|
|
3871
3978
|
isAllowed: t.value
|
|
3872
3979
|
}) : U("", !0);
|
|
3873
3980
|
}
|
|
3874
|
-
}),
|
|
3981
|
+
}), Pl = { class: "form-section-wrapper" }, Rl = {
|
|
3875
3982
|
key: 0,
|
|
3876
3983
|
class: "form-section-title"
|
|
3877
|
-
},
|
|
3984
|
+
}, Ul = {
|
|
3878
3985
|
key: 1,
|
|
3879
3986
|
class: "form-section-description"
|
|
3880
|
-
},
|
|
3987
|
+
}, Vl = {
|
|
3881
3988
|
key: 2,
|
|
3882
3989
|
class: "form-section-footer"
|
|
3883
|
-
},
|
|
3990
|
+
}, Dl = { class: "form-section-content" }, zl = /* @__PURE__ */ Q({
|
|
3884
3991
|
__name: "EntityFormSection",
|
|
3885
3992
|
props: {
|
|
3886
3993
|
title: {
|
|
@@ -3906,32 +4013,32 @@ const Oo = {
|
|
|
3906
4013
|
},
|
|
3907
4014
|
setup(e) {
|
|
3908
4015
|
const n = Je();
|
|
3909
|
-
return (t, a) => (
|
|
4016
|
+
return (t, a) => (y(), x("fieldset", {
|
|
3910
4017
|
class: Ie(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3911
4018
|
}, [
|
|
3912
|
-
|
|
3913
|
-
e.hideInfoHeader ? U("", !0) : (
|
|
4019
|
+
L("div", Pl, [
|
|
4020
|
+
e.hideInfoHeader ? U("", !0) : (y(), x("div", {
|
|
3914
4021
|
key: 0,
|
|
3915
4022
|
class: Ie(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3916
4023
|
}, [
|
|
3917
|
-
e.title ? (
|
|
3918
|
-
e.description || w(n).description ? (
|
|
3919
|
-
|
|
3920
|
-
|
|
4024
|
+
e.title ? (y(), x("h4", Rl, N(e.title), 1)) : U("", !0),
|
|
4025
|
+
e.description || w(n).description ? (y(), x("div", Ul, [
|
|
4026
|
+
V(t.$slots, "description", {}, () => [
|
|
4027
|
+
L("p", null, N(e.description), 1)
|
|
3921
4028
|
], !0)
|
|
3922
4029
|
])) : U("", !0),
|
|
3923
|
-
w(n).footer ? (
|
|
3924
|
-
|
|
4030
|
+
w(n).footer ? (y(), x("div", Vl, [
|
|
4031
|
+
V(t.$slots, "footer", {}, void 0, !0)
|
|
3925
4032
|
])) : U("", !0)
|
|
3926
4033
|
], 2)),
|
|
3927
|
-
|
|
3928
|
-
|
|
4034
|
+
L("div", Dl, [
|
|
4035
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
3929
4036
|
])
|
|
3930
4037
|
])
|
|
3931
4038
|
], 2));
|
|
3932
4039
|
}
|
|
3933
|
-
}),
|
|
3934
|
-
const
|
|
4040
|
+
}), Hl = /* @__PURE__ */ fe(zl, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Hn, useDeleteUrlBuilder: Jl, useErrors: Yl, useExternalLinkCreator: ls, useFetchUrlBuilder: ss, useFetcher: Wl, useDebouncedFilter: cs, useStringHelpers: us, useHelpers: ds, useGatewayFeatureSupported: ps, useTruncationDetector: fs } = ae;
|
|
4041
|
+
const Gl = { class: "kong-ui-entities-key-sets-list" }, Zl = { key: 1 }, Xl = /* @__PURE__ */ Q({
|
|
3935
4042
|
__name: "KeySetList",
|
|
3936
4043
|
props: {
|
|
3937
4044
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3973,7 +4080,7 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
3973
4080
|
emits: ["error", "copy:success", "copy:error", "delete:success"],
|
|
3974
4081
|
setup(e, { emit: n }) {
|
|
3975
4082
|
var le;
|
|
3976
|
-
const t = e, { i18n: { t: a } } = ut.useI18n(), i = st(), { axiosInstance: r } =
|
|
4083
|
+
const t = e, { i18n: { t: a } } = ut.useI18n(), i = st(), { axiosInstance: r } = Hn({
|
|
3977
4084
|
headers: (le = t.config) == null ? void 0 : le.requestHeaders
|
|
3978
4085
|
}), o = O(1), l = _(() => t.config.app !== "kongManager" || !!t.config.disableSorting), s = {
|
|
3979
4086
|
name: { label: a("keySets.list.table_headers.name"), searchable: !0, sortable: !0 },
|
|
@@ -3983,7 +4090,7 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
3983
4090
|
var R, ie;
|
|
3984
4091
|
let M = `${t.config.apiBaseUrl}${Re.list[t.config.app]}`;
|
|
3985
4092
|
return t.config.app === "konnect" ? M = M.replace(/{controlPlaneId}/gi, ((R = t.config) == null ? void 0 : R.controlPlaneId) || "") : t.config.app === "kongManager" && (M = M.replace(/\/{workspace}/gi, (ie = t.config) != null && ie.workspace ? `/${t.config.workspace}` : "")), M;
|
|
3986
|
-
}), u = O(""),
|
|
4093
|
+
}), u = O(""), g = _(() => {
|
|
3987
4094
|
const M = t.config.app === "konnect" || t.config.isExactMatch;
|
|
3988
4095
|
if (M)
|
|
3989
4096
|
return {
|
|
@@ -3996,14 +4103,14 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
3996
4103
|
fields: R,
|
|
3997
4104
|
schema: t.config.filterSchema
|
|
3998
4105
|
};
|
|
3999
|
-
}), { fetcher: f, fetcherState: I } =
|
|
4106
|
+
}), { fetcher: f, fetcherState: I } = Wl(t.config, d.value), v = () => {
|
|
4000
4107
|
u.value = "";
|
|
4001
4108
|
}, p = () => {
|
|
4002
4109
|
o.value++;
|
|
4003
4110
|
}, h = O(""), m = (M, R) => {
|
|
4004
4111
|
const ie = M.id;
|
|
4005
4112
|
if (!R(ie)) {
|
|
4006
|
-
|
|
4113
|
+
G(M, "id");
|
|
4007
4114
|
return;
|
|
4008
4115
|
}
|
|
4009
4116
|
W(M, "id");
|
|
@@ -4022,20 +4129,20 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
4022
4129
|
});
|
|
4023
4130
|
}, S = (M, R, ie) => {
|
|
4024
4131
|
const { type: ke } = M;
|
|
4025
|
-
ke === "success" ? W(R, ie) :
|
|
4132
|
+
ke === "success" ? W(R, ie) : G(R, ie);
|
|
4026
4133
|
}, W = (M, R) => {
|
|
4027
4134
|
n("copy:success", {
|
|
4028
4135
|
entity: M,
|
|
4029
4136
|
field: R,
|
|
4030
4137
|
message: a("keySets.copy.success", { val: M[R] })
|
|
4031
4138
|
});
|
|
4032
|
-
},
|
|
4139
|
+
}, G = (M, R) => {
|
|
4033
4140
|
n("copy:error", {
|
|
4034
4141
|
entity: M,
|
|
4035
4142
|
field: R,
|
|
4036
4143
|
message: a("keySets.errors.copy")
|
|
4037
4144
|
});
|
|
4038
|
-
},
|
|
4145
|
+
}, q = async (M) => {
|
|
4039
4146
|
var ie;
|
|
4040
4147
|
await ((ie = t.canRetrieve) == null ? void 0 : ie.call(t, M)) && i.push(t.config.getViewRoute(M.id));
|
|
4041
4148
|
}, C = (M) => ({
|
|
@@ -4044,20 +4151,20 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
4044
4151
|
}), E = (M) => ({
|
|
4045
4152
|
label: a("keySets.actions.edit"),
|
|
4046
4153
|
to: t.config.getEditRoute(M)
|
|
4047
|
-
}),
|
|
4048
|
-
|
|
4154
|
+
}), $ = O(void 0), j = O(!1), B = O(!1), P = O(""), D = Jl(t.config, d.value), ee = (M) => {
|
|
4155
|
+
$.value = M, j.value = !0;
|
|
4049
4156
|
}, ne = () => {
|
|
4050
|
-
|
|
4051
|
-
},
|
|
4157
|
+
j.value = !1;
|
|
4158
|
+
}, Z = async () => {
|
|
4052
4159
|
var M, R, ie;
|
|
4053
|
-
if ((M =
|
|
4054
|
-
|
|
4160
|
+
if ((M = $.value) != null && M.id) {
|
|
4161
|
+
B.value = !0;
|
|
4055
4162
|
try {
|
|
4056
|
-
await r.delete(
|
|
4163
|
+
await r.delete(D($.value.id)), B.value = !1, j.value = !1, o.value++, n("delete:success", $.value);
|
|
4057
4164
|
} catch (ke) {
|
|
4058
4165
|
P.value = ((ie = (R = ke.response) == null ? void 0 : R.data) == null ? void 0 : ie.message) || ke.message || a("keySets.errors.delete"), n("error", ke);
|
|
4059
4166
|
} finally {
|
|
4060
|
-
|
|
4167
|
+
B.value = !1;
|
|
4061
4168
|
}
|
|
4062
4169
|
}
|
|
4063
4170
|
};
|
|
@@ -4077,9 +4184,9 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
4077
4184
|
return lt(async () => {
|
|
4078
4185
|
await t.canCreate() && (H.value.title = a("keySets.list.empty_state.title"), H.value.ctaText = a("keySets.actions.create"));
|
|
4079
4186
|
}), (M, R) => {
|
|
4080
|
-
const ie =
|
|
4081
|
-
return
|
|
4082
|
-
|
|
4187
|
+
const ie = F("KButton"), ke = F("KBadge"), Yn = F("KTruncate"), Wn = F("CopyUuid"), Oe = F("KDropdownItem"), kt = F("KClipboardProvider");
|
|
4188
|
+
return y(), x("div", Gl, [
|
|
4189
|
+
T(w(Cl), {
|
|
4083
4190
|
"cache-identifier": e.cacheIdentifier,
|
|
4084
4191
|
"disable-pagination-page-jump": "",
|
|
4085
4192
|
"disable-sorting": l.value,
|
|
@@ -4093,29 +4200,29 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
4093
4200
|
query: u.value,
|
|
4094
4201
|
"table-headers": w(c),
|
|
4095
4202
|
onClearSearchInput: v,
|
|
4096
|
-
"onClick:row": R[2] || (R[2] = (Y) =>
|
|
4203
|
+
"onClick:row": R[2] || (R[2] = (Y) => q(Y)),
|
|
4097
4204
|
onSort: p
|
|
4098
4205
|
}, {
|
|
4099
4206
|
"toolbar-filter": b(() => [
|
|
4100
|
-
|
|
4207
|
+
T(w(ql), {
|
|
4101
4208
|
modelValue: u.value,
|
|
4102
4209
|
"onUpdate:modelValue": R[0] || (R[0] = (Y) => u.value = Y),
|
|
4103
|
-
config:
|
|
4210
|
+
config: g.value
|
|
4104
4211
|
}, null, 8, ["modelValue", "config"])
|
|
4105
4212
|
]),
|
|
4106
4213
|
"toolbar-button": b(() => [
|
|
4107
|
-
|
|
4214
|
+
T(w(Be), {
|
|
4108
4215
|
"auth-function": () => e.canCreate()
|
|
4109
4216
|
}, {
|
|
4110
4217
|
default: b(() => [
|
|
4111
|
-
|
|
4218
|
+
T(ie, {
|
|
4112
4219
|
appearance: "primary",
|
|
4113
4220
|
"data-testid": "toolbar-add-key-set",
|
|
4114
4221
|
icon: "plus",
|
|
4115
4222
|
to: e.config.createRoute
|
|
4116
4223
|
}, {
|
|
4117
4224
|
default: b(() => [
|
|
4118
|
-
z(
|
|
4225
|
+
z(N(w(a)("keySets.list.toolbar_actions.new_key_set")), 1)
|
|
4119
4226
|
]),
|
|
4120
4227
|
_: 1
|
|
4121
4228
|
}, 8, ["to"])
|
|
@@ -4124,66 +4231,66 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
4124
4231
|
}, 8, ["auth-function"])
|
|
4125
4232
|
]),
|
|
4126
4233
|
name: b(({ rowValue: Y }) => [
|
|
4127
|
-
|
|
4234
|
+
L("b", null, N(Y ?? "-"), 1)
|
|
4128
4235
|
]),
|
|
4129
4236
|
tags: b(({ rowValue: Y }) => [
|
|
4130
|
-
(Y == null ? void 0 : Y.length) > 0 ? (
|
|
4237
|
+
(Y == null ? void 0 : Y.length) > 0 ? (y(), K(Yn, { key: 0 }, {
|
|
4131
4238
|
default: b(() => [
|
|
4132
|
-
(
|
|
4133
|
-
key:
|
|
4239
|
+
(y(!0), x(pe, null, ue(Y, (ge) => (y(), K(ke, {
|
|
4240
|
+
key: ge,
|
|
4134
4241
|
onClick: R[1] || (R[1] = Pe(() => {
|
|
4135
4242
|
}, ["stop"]))
|
|
4136
4243
|
}, {
|
|
4137
4244
|
default: b(() => [
|
|
4138
|
-
z(
|
|
4245
|
+
z(N(ge), 1)
|
|
4139
4246
|
]),
|
|
4140
4247
|
_: 2
|
|
4141
4248
|
}, 1024))), 128))
|
|
4142
4249
|
]),
|
|
4143
4250
|
_: 2
|
|
4144
|
-
}, 1024)) : (
|
|
4251
|
+
}, 1024)) : (y(), x("span", Zl, "-"))
|
|
4145
4252
|
]),
|
|
4146
|
-
id: b(({ row: Y, rowValue:
|
|
4147
|
-
|
|
4253
|
+
id: b(({ row: Y, rowValue: ge }) => [
|
|
4254
|
+
T(Wn, {
|
|
4148
4255
|
notify: (We) => S(We, Y, "id"),
|
|
4149
4256
|
truncated: !1,
|
|
4150
|
-
uuid:
|
|
4257
|
+
uuid: ge
|
|
4151
4258
|
}, null, 8, ["notify", "uuid"])
|
|
4152
4259
|
]),
|
|
4153
4260
|
actions: b(({ row: Y }) => [
|
|
4154
|
-
|
|
4155
|
-
default: b(({ copyToClipboard:
|
|
4156
|
-
|
|
4261
|
+
T(kt, null, {
|
|
4262
|
+
default: b(({ copyToClipboard: ge }) => [
|
|
4263
|
+
T(Oe, {
|
|
4157
4264
|
"data-testid": "action-entity-copy-id",
|
|
4158
|
-
onClick: (We) => m(Y,
|
|
4265
|
+
onClick: (We) => m(Y, ge)
|
|
4159
4266
|
}, {
|
|
4160
4267
|
default: b(() => [
|
|
4161
|
-
z(
|
|
4268
|
+
z(N(w(a)("keySets.actions.copy_id")), 1)
|
|
4162
4269
|
]),
|
|
4163
4270
|
_: 2
|
|
4164
4271
|
}, 1032, ["onClick"])
|
|
4165
4272
|
]),
|
|
4166
4273
|
_: 2
|
|
4167
4274
|
}, 1024),
|
|
4168
|
-
|
|
4169
|
-
default: b(({ copyToClipboard:
|
|
4170
|
-
|
|
4275
|
+
T(kt, null, {
|
|
4276
|
+
default: b(({ copyToClipboard: ge }) => [
|
|
4277
|
+
T(Oe, {
|
|
4171
4278
|
"data-testid": "action-entity-copy-json",
|
|
4172
|
-
onClick: (We) => k(Y,
|
|
4279
|
+
onClick: (We) => k(Y, ge)
|
|
4173
4280
|
}, {
|
|
4174
4281
|
default: b(() => [
|
|
4175
|
-
z(
|
|
4282
|
+
z(N(w(a)("keySets.actions.copy_json")), 1)
|
|
4176
4283
|
]),
|
|
4177
4284
|
_: 2
|
|
4178
4285
|
}, 1032, ["onClick"])
|
|
4179
4286
|
]),
|
|
4180
4287
|
_: 2
|
|
4181
4288
|
}, 1024),
|
|
4182
|
-
|
|
4289
|
+
T(w(Be), {
|
|
4183
4290
|
"auth-function": () => e.canRetrieve(Y)
|
|
4184
4291
|
}, {
|
|
4185
4292
|
default: b(() => [
|
|
4186
|
-
|
|
4293
|
+
T(Oe, {
|
|
4187
4294
|
"data-testid": "action-entity-view",
|
|
4188
4295
|
"has-divider": "",
|
|
4189
4296
|
item: C(Y.id)
|
|
@@ -4191,29 +4298,29 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
4191
4298
|
]),
|
|
4192
4299
|
_: 2
|
|
4193
4300
|
}, 1032, ["auth-function"]),
|
|
4194
|
-
|
|
4301
|
+
T(w(Be), {
|
|
4195
4302
|
"auth-function": () => e.canEdit(Y)
|
|
4196
4303
|
}, {
|
|
4197
4304
|
default: b(() => [
|
|
4198
|
-
|
|
4305
|
+
T(Oe, {
|
|
4199
4306
|
"data-testid": "action-entity-edit",
|
|
4200
4307
|
item: E(Y.id)
|
|
4201
4308
|
}, null, 8, ["item"])
|
|
4202
4309
|
]),
|
|
4203
4310
|
_: 2
|
|
4204
4311
|
}, 1032, ["auth-function"]),
|
|
4205
|
-
|
|
4312
|
+
T(w(Be), {
|
|
4206
4313
|
"auth-function": () => e.canDelete(Y)
|
|
4207
4314
|
}, {
|
|
4208
4315
|
default: b(() => [
|
|
4209
|
-
|
|
4316
|
+
T(Oe, {
|
|
4317
|
+
danger: "",
|
|
4210
4318
|
"data-testid": "action-entity-delete",
|
|
4211
4319
|
"has-divider": "",
|
|
4212
|
-
|
|
4213
|
-
onClick: (me) => Q(Y)
|
|
4320
|
+
onClick: (ge) => ee(Y)
|
|
4214
4321
|
}, {
|
|
4215
4322
|
default: b(() => [
|
|
4216
|
-
z(
|
|
4323
|
+
z(N(w(a)("keySets.actions.delete")), 1)
|
|
4217
4324
|
]),
|
|
4218
4325
|
_: 2
|
|
4219
4326
|
}, 1032, ["onClick"])
|
|
@@ -4223,27 +4330,27 @@ const Pl = { class: "kong-ui-entities-key-sets-list" }, Rl = { key: 1 }, Ul = /*
|
|
|
4223
4330
|
]),
|
|
4224
4331
|
_: 1
|
|
4225
4332
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4226
|
-
|
|
4227
|
-
"action-pending":
|
|
4333
|
+
T(w(Al), {
|
|
4334
|
+
"action-pending": B.value,
|
|
4228
4335
|
description: w(a)("keySets.delete.description"),
|
|
4229
|
-
"entity-name":
|
|
4230
|
-
"entity-type": w(
|
|
4336
|
+
"entity-name": $.value && ($.value.name || $.value.id),
|
|
4337
|
+
"entity-type": w(Zt).KeySet,
|
|
4231
4338
|
error: P.value,
|
|
4232
4339
|
title: w(a)("keySets.delete.title"),
|
|
4233
|
-
visible:
|
|
4340
|
+
visible: j.value,
|
|
4234
4341
|
onCancel: ne,
|
|
4235
|
-
onProceed:
|
|
4342
|
+
onProceed: Z
|
|
4236
4343
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
4237
4344
|
]);
|
|
4238
4345
|
};
|
|
4239
4346
|
}
|
|
4240
4347
|
});
|
|
4241
|
-
const
|
|
4348
|
+
const Jn = (e, n) => {
|
|
4242
4349
|
const t = e.__vccOpts || e;
|
|
4243
4350
|
for (const [a, i] of n)
|
|
4244
4351
|
t[a] = i;
|
|
4245
4352
|
return t;
|
|
4246
|
-
},
|
|
4353
|
+
}, ys = /* @__PURE__ */ Jn(Xl, [["__scopeId", "data-v-82f21705"]]), Ql = { class: "kong-ui-entities-key-sets-form" }, es = /* @__PURE__ */ Q({
|
|
4247
4354
|
__name: "KeySetForm",
|
|
4248
4355
|
props: {
|
|
4249
4356
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4262,7 +4369,7 @@ const Un = (e, n) => {
|
|
|
4262
4369
|
emits: ["update", "error", "loading"],
|
|
4263
4370
|
setup(e, { emit: n }) {
|
|
4264
4371
|
var p;
|
|
4265
|
-
const t = e, a = st(), { i18n: { t: i } } = ut.useI18n(), { getMessageFromError: r } =
|
|
4372
|
+
const t = e, a = st(), { i18n: { t: i } } = ut.useI18n(), { getMessageFromError: r } = Yl(), { axiosInstance: o } = Hn({
|
|
4266
4373
|
headers: (p = t.config) == null ? void 0 : p.requestHeaders
|
|
4267
4374
|
}), l = _(() => Re.form[t.config.app].edit), s = _(() => t.keySetId ? tt.Edit : tt.Create), c = Ct({
|
|
4268
4375
|
fields: {
|
|
@@ -4274,7 +4381,7 @@ const Un = (e, n) => {
|
|
|
4274
4381
|
}), d = Ct({
|
|
4275
4382
|
name: "",
|
|
4276
4383
|
tags: ""
|
|
4277
|
-
}), u = _(() => JSON.stringify(c.fields) !== JSON.stringify(d) && !!c.fields.name),
|
|
4384
|
+
}), u = _(() => JSON.stringify(c.fields) !== JSON.stringify(d) && !!c.fields.name), g = (h) => {
|
|
4278
4385
|
var m;
|
|
4279
4386
|
c.fields.name = (h == null ? void 0 : h.name) || "", c.fields.tags = ((m = h == null ? void 0 : h.tags) == null ? void 0 : m.join(", ")) || "", Object.assign(d, c.fields);
|
|
4280
4387
|
}, f = () => {
|
|
@@ -4287,25 +4394,25 @@ const Un = (e, n) => {
|
|
|
4287
4394
|
var h, m, k, S, W;
|
|
4288
4395
|
try {
|
|
4289
4396
|
c.isReadonly = !0;
|
|
4290
|
-
const
|
|
4397
|
+
const G = {
|
|
4291
4398
|
name: c.fields.name,
|
|
4292
4399
|
tags: ((k = (m = (h = c.fields.tags) == null ? void 0 : h.split(",")) == null ? void 0 : m.map((C) => String(C || "").trim())) == null ? void 0 : k.filter((C) => C !== "")) || ""
|
|
4293
4400
|
};
|
|
4294
|
-
let
|
|
4295
|
-
if (s.value === "create" ?
|
|
4296
|
-
const { data: C } =
|
|
4297
|
-
c.fields.name = (C == null ? void 0 : C.name) || "", c.fields.tags = ((W = C == null ? void 0 : C.tags) == null ? void 0 : W.join(", ")) || "", Object.assign(d, c.fields), n("update",
|
|
4401
|
+
let q;
|
|
4402
|
+
if (s.value === "create" ? q = await o.post(I.value, G) : s.value === "edit" && (q = ((S = t.config) == null ? void 0 : S.app) === "konnect" ? await o.put(I.value, G) : await o.patch(I.value, G)), q) {
|
|
4403
|
+
const { data: C } = q;
|
|
4404
|
+
c.fields.name = (C == null ? void 0 : C.name) || "", c.fields.tags = ((W = C == null ? void 0 : C.tags) == null ? void 0 : W.join(", ")) || "", Object.assign(d, c.fields), n("update", q == null ? void 0 : q.data);
|
|
4298
4405
|
}
|
|
4299
|
-
} catch (
|
|
4300
|
-
c.errorMessage = r(
|
|
4406
|
+
} catch (G) {
|
|
4407
|
+
c.errorMessage = r(G), n("error", G);
|
|
4301
4408
|
} finally {
|
|
4302
4409
|
c.isReadonly = !1;
|
|
4303
4410
|
}
|
|
4304
4411
|
};
|
|
4305
4412
|
return (h, m) => {
|
|
4306
|
-
const k =
|
|
4307
|
-
return
|
|
4308
|
-
|
|
4413
|
+
const k = F("KInput");
|
|
4414
|
+
return y(), x("div", Ql, [
|
|
4415
|
+
T(w(fl), {
|
|
4309
4416
|
"can-submit": u.value,
|
|
4310
4417
|
config: e.config,
|
|
4311
4418
|
"edit-id": e.keySetId,
|
|
@@ -4314,18 +4421,18 @@ const Un = (e, n) => {
|
|
|
4314
4421
|
"is-readonly": c.isReadonly,
|
|
4315
4422
|
onCancel: f,
|
|
4316
4423
|
"onFetch:error": m[2] || (m[2] = (S) => h.$emit("error", S)),
|
|
4317
|
-
"onFetch:success":
|
|
4424
|
+
"onFetch:success": g,
|
|
4318
4425
|
onLoading: m[3] || (m[3] = (S) => h.$emit("loading", S)),
|
|
4319
4426
|
onSubmit: v
|
|
4320
4427
|
}, {
|
|
4321
4428
|
default: b(() => [
|
|
4322
|
-
|
|
4429
|
+
T(w(Hl), {
|
|
4323
4430
|
description: w(i)("keySets.form.sections.general.description"),
|
|
4324
4431
|
"has-divider": "",
|
|
4325
4432
|
title: w(i)("keySets.form.sections.general.title")
|
|
4326
4433
|
}, {
|
|
4327
4434
|
default: b(() => [
|
|
4328
|
-
|
|
4435
|
+
T(k, {
|
|
4329
4436
|
modelValue: c.fields.name,
|
|
4330
4437
|
"onUpdate:modelValue": m[0] || (m[0] = (S) => c.fields.name = S),
|
|
4331
4438
|
modelModifiers: { trim: !0 },
|
|
@@ -4336,7 +4443,7 @@ const Un = (e, n) => {
|
|
|
4336
4443
|
readonly: c.isReadonly,
|
|
4337
4444
|
type: "text"
|
|
4338
4445
|
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
4339
|
-
|
|
4446
|
+
T(k, {
|
|
4340
4447
|
modelValue: c.fields.tags,
|
|
4341
4448
|
"onUpdate:modelValue": m[1] || (m[1] = (S) => c.fields.tags = S),
|
|
4342
4449
|
modelModifiers: { trim: !0 },
|
|
@@ -4359,7 +4466,7 @@ const Un = (e, n) => {
|
|
|
4359
4466
|
};
|
|
4360
4467
|
}
|
|
4361
4468
|
});
|
|
4362
|
-
const
|
|
4469
|
+
const gs = /* @__PURE__ */ Jn(es, [["__scopeId", "data-v-29df09d7"]]), ts = { class: "kong-ui-entities-keys-entity-config-card" }, ms = /* @__PURE__ */ Q({
|
|
4363
4470
|
__name: "KeySetConfigCard",
|
|
4364
4471
|
props: {
|
|
4365
4472
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4395,8 +4502,8 @@ const rs = /* @__PURE__ */ Un(Vl, [["__scopeId", "data-v-29df09d7"]]), zl = { cl
|
|
|
4395
4502
|
tooltip: t("keySets.form.fields.tags.tooltip")
|
|
4396
4503
|
}
|
|
4397
4504
|
});
|
|
4398
|
-
return (r, o) => (
|
|
4399
|
-
|
|
4505
|
+
return (r, o) => (y(), x("div", ts, [
|
|
4506
|
+
T(w(cl), {
|
|
4400
4507
|
config: e.config,
|
|
4401
4508
|
"config-card-doc": e.configCardDoc,
|
|
4402
4509
|
"config-schema": i.value,
|
|
@@ -4411,7 +4518,7 @@ const rs = /* @__PURE__ */ Un(Vl, [["__scopeId", "data-v-29df09d7"]]), zl = { cl
|
|
|
4411
4518
|
}
|
|
4412
4519
|
});
|
|
4413
4520
|
export {
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4521
|
+
ms as KeySetConfigCard,
|
|
4522
|
+
gs as KeySetForm,
|
|
4523
|
+
ys as KeySetList
|
|
4417
4524
|
};
|