@kong-ui-public/entities-shared 2.10.3-pr.1230.cda09e36.0 → 2.10.3
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-shared.es.js +1289 -1182
- package/dist/entities-shared.umd.js +27 -27
- package/dist/style.css +1 -1
- package/dist/types/components/entity-filter/EntityFilter.vue.d.ts.map +1 -1
- package/dist/types/composables/useFetchUrlBuilder.d.ts.map +1 -1
- package/dist/types/types/app-config.d.ts +0 -2
- package/dist/types/types/app-config.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { inject as In, ref as R, unref as
|
|
1
|
+
import { inject as In, ref as R, unref as I, computed as k, watch as Ae, defineComponent as H, openBlock as p, createBlock as K, resolveDynamicComponent as ge, normalizeClass as ue, withCtx as b, createElementBlock as A, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as le, renderList as ie, resolveComponent as B, createVNode as N, createTextVNode as Y, useCssVars as Tt, useSlots as Ge, renderSlot as V, createSlots as _e, normalizeProps as En, guardReactiveProps as Tn, mergeProps as Fn, normalizeStyle as Fe, pushScopeId as Oe, popScopeId as $e, onBeforeMount as Ft, withModifiers as He, onMounted as On, onUnmounted as $n, withDirectives as pe, vShow as he, withKeys as Ln, Teleport as Nn } from "vue";
|
|
2
2
|
import ot from "axios";
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
3
|
+
import { createI18n as Bn, i18nTComponent as Rn } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as Kn } from "@kong/kongponents";
|
|
5
5
|
import { useRouter as Mn } from "vue-router";
|
|
6
|
-
var
|
|
7
|
-
function
|
|
6
|
+
var Dn = /* @__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))(Dn || {}), jn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(jn || {}), ve = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(ve || {}), P = /* @__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))(P || {}), ne = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ne || {});
|
|
7
|
+
function Un() {
|
|
8
8
|
return {
|
|
9
9
|
getAxiosInstance: (e = {}) => {
|
|
10
10
|
try {
|
|
@@ -28,7 +28,7 @@ function jn() {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function qn() {
|
|
32
32
|
return {
|
|
33
33
|
debounce: (e, t) => {
|
|
34
34
|
let n;
|
|
@@ -45,7 +45,7 @@ const je = "khcp-user-table-preferences", Pn = {
|
|
|
45
45
|
sortColumnKey: void 0,
|
|
46
46
|
sortColumnOrder: void 0
|
|
47
47
|
};
|
|
48
|
-
function
|
|
48
|
+
function Hn() {
|
|
49
49
|
const e = (n) => {
|
|
50
50
|
if (typeof n == "string")
|
|
51
51
|
try {
|
|
@@ -77,22 +77,22 @@ function qn() {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
function Ze(e = {}) {
|
|
80
|
-
const { getAxiosInstance: t } =
|
|
80
|
+
const { getAxiosInstance: t } = Un();
|
|
81
81
|
return {
|
|
82
82
|
axiosInstance: t(e)
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const Vn = {
|
|
86
86
|
actions: {
|
|
87
87
|
copyId: "Copy ID",
|
|
88
88
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
89
89
|
copyToClipboard: "Copied successfully!",
|
|
90
90
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, Yn = {
|
|
93
93
|
message: "Are you sure you want to delete this {entityType}?",
|
|
94
94
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
95
|
-
},
|
|
95
|
+
}, zn = {
|
|
96
96
|
actions: {
|
|
97
97
|
viewConfiguration: "View Configuration",
|
|
98
98
|
save: "Save",
|
|
@@ -108,13 +108,13 @@ const Hn = {
|
|
|
108
108
|
errors: {
|
|
109
109
|
edit: "The entity could not be edited at this time."
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, Wn = {
|
|
112
112
|
emptyState: {
|
|
113
113
|
noSearchResultsTitle: "No results found",
|
|
114
114
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
115
115
|
noSearchResultsCtaText: "Clear"
|
|
116
116
|
}
|
|
117
|
-
},
|
|
117
|
+
}, Jn = {
|
|
118
118
|
title: "Configuration",
|
|
119
119
|
actions: {
|
|
120
120
|
copy: "Copy JSON"
|
|
@@ -149,7 +149,7 @@ const Hn = {
|
|
|
149
149
|
entryTitle: "Entry {index}",
|
|
150
150
|
structuredFormat: "Structured"
|
|
151
151
|
}
|
|
152
|
-
},
|
|
152
|
+
}, Gn = {
|
|
153
153
|
filterButtonText: "Filter",
|
|
154
154
|
fieldLabel: "Filter by:",
|
|
155
155
|
inputPlaceholder: "Enter a value",
|
|
@@ -157,15 +157,15 @@ const Hn = {
|
|
|
157
157
|
applyButtonText: "Apply",
|
|
158
158
|
clearButtonText: "Clear",
|
|
159
159
|
clearAllButtonText: "Clear all filters"
|
|
160
|
-
},
|
|
160
|
+
}, Zn = {
|
|
161
161
|
errors: {
|
|
162
162
|
fetch: "Could not fetch available items",
|
|
163
163
|
invalid: "Please select a valid value"
|
|
164
164
|
}
|
|
165
|
-
},
|
|
165
|
+
}, Qn = {
|
|
166
166
|
unexpected: "An unexpected error has occurred",
|
|
167
167
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
168
|
-
},
|
|
168
|
+
}, Xn = {
|
|
169
169
|
enable: {
|
|
170
170
|
title: "Enable {entityType}",
|
|
171
171
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -176,22 +176,22 @@ const Hn = {
|
|
|
176
176
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
177
177
|
confirmText: "Yes, disable"
|
|
178
178
|
}
|
|
179
|
-
},
|
|
180
|
-
global:
|
|
181
|
-
deleteModal:
|
|
182
|
-
baseForm:
|
|
183
|
-
baseTable:
|
|
184
|
-
baseConfigCard:
|
|
185
|
-
filter:
|
|
186
|
-
debouncedFilter:
|
|
187
|
-
errors:
|
|
188
|
-
toggleModal:
|
|
179
|
+
}, er = {
|
|
180
|
+
global: Vn,
|
|
181
|
+
deleteModal: Yn,
|
|
182
|
+
baseForm: zn,
|
|
183
|
+
baseTable: Wn,
|
|
184
|
+
baseConfigCard: Jn,
|
|
185
|
+
filter: Gn,
|
|
186
|
+
debouncedFilter: Zn,
|
|
187
|
+
errors: Qn,
|
|
188
|
+
toggleModal: Xn
|
|
189
189
|
};
|
|
190
190
|
function Qe() {
|
|
191
|
-
const e =
|
|
191
|
+
const e = Bn("en-us", er);
|
|
192
192
|
return {
|
|
193
193
|
i18n: e,
|
|
194
|
-
i18nT:
|
|
194
|
+
i18nT: Rn(e)
|
|
195
195
|
// Translation component <i18n-t>
|
|
196
196
|
};
|
|
197
197
|
}
|
|
@@ -239,72 +239,72 @@ function Ot() {
|
|
|
239
239
|
isValidUuid: (a) => a ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(a) : !1
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function tr(e, t, n, r = {
|
|
243
243
|
fetchedItemsKey: "data",
|
|
244
244
|
searchKeys: ["id"]
|
|
245
245
|
}) {
|
|
246
246
|
n || (n = "100");
|
|
247
247
|
const { axiosInstance: i } = Ze({
|
|
248
248
|
headers: e.requestHeaders
|
|
249
|
-
}), { i18n: { t: a } } = Qe(), { debounce: o } =
|
|
250
|
-
await
|
|
251
|
-
}, 200), s = R(!1), c = R(""), d = R(""), u = R([]),
|
|
252
|
-
let
|
|
253
|
-
e.app === "konnect" ?
|
|
254
|
-
const { isValidUuid:
|
|
249
|
+
}), { i18n: { t: a } } = Qe(), { debounce: o } = qn(), l = o(async (h) => {
|
|
250
|
+
await ee(h);
|
|
251
|
+
}, 200), s = R(!1), c = R(""), d = R(""), u = R([]), m = R([]), f = R(void 0), x = I(t);
|
|
252
|
+
let v = `${e.apiBaseUrl}${x}`;
|
|
253
|
+
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}` : ""));
|
|
254
|
+
const { isValidUuid: w } = Ot(), M = async () => {
|
|
255
255
|
try {
|
|
256
256
|
s.value = !0;
|
|
257
|
-
const { data:
|
|
258
|
-
|
|
257
|
+
const { data: h } = await i.get(`${v}?size=${n}`);
|
|
258
|
+
h != null && h.next || (f.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], u.value = m.value;
|
|
259
259
|
} catch {
|
|
260
260
|
u.value = [], c.value = a("debouncedFilter.errors.fetch");
|
|
261
261
|
} finally {
|
|
262
262
|
s.value = !1;
|
|
263
263
|
}
|
|
264
|
-
},
|
|
265
|
-
var y,
|
|
266
|
-
if (
|
|
267
|
-
if (
|
|
264
|
+
}, E = R(""), ee = async (h) => {
|
|
265
|
+
var y, g, $;
|
|
266
|
+
if (E.value !== h)
|
|
267
|
+
if (E.value = h || "", f.value === void 0)
|
|
268
268
|
try {
|
|
269
269
|
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
270
|
-
let F =
|
|
271
|
-
|
|
272
|
-
const { data:
|
|
273
|
-
r.fetchedItemsKey in
|
|
274
|
-
} else if (
|
|
270
|
+
let F = v + "";
|
|
271
|
+
h && (F += `/${h}`);
|
|
272
|
+
const { data: _ } = await i.get(`${F}?size=${n}`);
|
|
273
|
+
r.fetchedItemsKey in _ ? u.value = _[r.fetchedItemsKey] : _ != null && _.id ? u.value = [_] : u.value = [];
|
|
274
|
+
} else if (h) {
|
|
275
275
|
const F = [];
|
|
276
|
-
|
|
277
|
-
const { data:
|
|
278
|
-
return [
|
|
276
|
+
w(h) && r.searchKeys.includes("id") ? F.push((async () => {
|
|
277
|
+
const { data: T } = await i.get(`${v}/${h}`);
|
|
278
|
+
return [T[r.fetchedItemsKey] ?? T];
|
|
279
279
|
})()) : F.push(
|
|
280
|
-
...r.searchKeys.filter((
|
|
281
|
-
const { data:
|
|
282
|
-
return
|
|
280
|
+
...r.searchKeys.filter((T) => T !== "id").map(async (T) => {
|
|
281
|
+
const { data: S } = await i.get(`${v}?${T}=${h}`);
|
|
282
|
+
return S[r.fetchedItemsKey];
|
|
283
283
|
})
|
|
284
284
|
);
|
|
285
|
-
const
|
|
286
|
-
u.value = [], (y =
|
|
287
|
-
var
|
|
288
|
-
(
|
|
289
|
-
|
|
285
|
+
const _ = await Promise.all(F), j = /* @__PURE__ */ new Set();
|
|
286
|
+
u.value = [], (y = _ == null ? void 0 : _.forEach) == null || y.call(_, (T) => {
|
|
287
|
+
var S;
|
|
288
|
+
(S = T == null ? void 0 : T.forEach) == null || S.call(T, (U) => {
|
|
289
|
+
j.has(U.id) || (j.add(U.id), u.value.push(U));
|
|
290
290
|
});
|
|
291
291
|
});
|
|
292
292
|
} else
|
|
293
|
-
u.value =
|
|
293
|
+
u.value = m.value;
|
|
294
294
|
} catch (F) {
|
|
295
|
-
((
|
|
295
|
+
((g = F == null ? void 0 : F.response) == null ? void 0 : g.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
|
|
296
296
|
} finally {
|
|
297
297
|
s.value = !1;
|
|
298
298
|
}
|
|
299
299
|
else
|
|
300
|
-
s.value = !0, d.value = "",
|
|
301
|
-
var
|
|
302
|
-
let
|
|
303
|
-
for (const
|
|
304
|
-
const
|
|
305
|
-
|
|
300
|
+
s.value = !0, d.value = "", h ? (u.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
|
|
301
|
+
var j;
|
|
302
|
+
let _ = !1;
|
|
303
|
+
for (const T of r.searchKeys) {
|
|
304
|
+
const S = typeof F[T] == "string" ? (j = F[T]) == null ? void 0 : j.toLowerCase() : F[T];
|
|
305
|
+
S != null && S.includes(h.toLowerCase()) && (_ = !0);
|
|
306
306
|
}
|
|
307
|
-
return
|
|
307
|
+
return _;
|
|
308
308
|
}), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, s.value = !1;
|
|
309
309
|
};
|
|
310
310
|
return {
|
|
@@ -313,17 +313,17 @@ function er(e, t, n, r = {
|
|
|
313
313
|
validationError: d,
|
|
314
314
|
results: u,
|
|
315
315
|
allRecords: f,
|
|
316
|
-
loadItems:
|
|
316
|
+
loadItems: M,
|
|
317
317
|
debouncedQueryChange: l
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const n =
|
|
320
|
+
function nr(e, t) {
|
|
321
|
+
const n = I(t), r = k(
|
|
322
322
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
323
323
|
);
|
|
324
324
|
return r.value.search = "", (i) => `${r.value.href}/${i}`;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function rr() {
|
|
327
327
|
const { i18n: { t: e } } = Qe();
|
|
328
328
|
return {
|
|
329
329
|
getMessageFromError: (n) => {
|
|
@@ -353,7 +353,7 @@ function nr() {
|
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function ir(e) {
|
|
357
357
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
358
358
|
try {
|
|
359
359
|
const r = e.join("/"), i = `${n}${r}`, a = e.some((l) => l.trim() === "");
|
|
@@ -365,38 +365,40 @@ function rr(e) {
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
function $t(e, t) {
|
|
368
|
-
const n = R(
|
|
368
|
+
const n = R(I(e)), r = R(I(t)), i = k(
|
|
369
|
+
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
370
|
+
), a = k(
|
|
369
371
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
370
372
|
);
|
|
371
373
|
return (o) => {
|
|
372
|
-
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query:
|
|
374
|
+
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: m } = o;
|
|
373
375
|
try {
|
|
374
376
|
let f = new URL(a.value.href);
|
|
375
|
-
return i.value &&
|
|
376
|
-
f.searchParams.append(
|
|
377
|
+
return i.value && m ? (f.search = "", f = n.value.app === "konnect" ? new URL(`${f.href}?filter[name][contains]=${m}`) : new URL(`${f.href}/${m}/`)) : (i.value || new URLSearchParams(m).forEach((x, v) => {
|
|
378
|
+
f.searchParams.append(v, x);
|
|
377
379
|
}), 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;
|
|
378
380
|
} catch (f) {
|
|
379
381
|
return console.error("RouteList(fetcher)", f), r.value;
|
|
380
382
|
}
|
|
381
383
|
};
|
|
382
384
|
}
|
|
383
|
-
function
|
|
384
|
-
const r =
|
|
385
|
+
function ar(e, t, n = "data") {
|
|
386
|
+
const r = I(t), { axiosInstance: i } = Ze({
|
|
385
387
|
headers: e.requestHeaders
|
|
386
388
|
}), a = $t(e, r), o = R({
|
|
387
|
-
status:
|
|
389
|
+
status: ve.Idle
|
|
388
390
|
});
|
|
389
391
|
return { fetcher: async (s) => {
|
|
390
392
|
try {
|
|
391
|
-
o.value = { status:
|
|
393
|
+
o.value = { status: ve.Loading };
|
|
392
394
|
let c = a(s);
|
|
393
395
|
c.includes("filter[name]") && (c = `${c}&page[size]=${s.pageSize}&page[number]=${s.page}`);
|
|
394
396
|
const { data: d } = await i.get(c), u = n && n.replace(/[^\w-_]/gi, "");
|
|
395
|
-
let
|
|
396
|
-
d[u] && Array.isArray(d[u]) ?
|
|
397
|
+
let m;
|
|
398
|
+
d[u] && Array.isArray(d[u]) ? m = d[u] : Array.isArray(d) ? m = d : m = Object.keys(d).length ? [d] : [];
|
|
397
399
|
const f = {
|
|
398
|
-
data:
|
|
399
|
-
total:
|
|
400
|
+
data: m,
|
|
401
|
+
total: m.length,
|
|
400
402
|
...d.offset ? {
|
|
401
403
|
pagination: {
|
|
402
404
|
offset: d.offset
|
|
@@ -404,7 +406,7 @@ function ir(e, t, n = "data") {
|
|
|
404
406
|
} : null
|
|
405
407
|
};
|
|
406
408
|
return o.value = {
|
|
407
|
-
status:
|
|
409
|
+
status: ve.Idle,
|
|
408
410
|
response: f
|
|
409
411
|
}, f;
|
|
410
412
|
} catch (c) {
|
|
@@ -413,18 +415,18 @@ function ir(e, t, n = "data") {
|
|
|
413
415
|
total: 0
|
|
414
416
|
};
|
|
415
417
|
return s.query && c.response.status === 404 ? (o.value = {
|
|
416
|
-
status:
|
|
418
|
+
status: ve.NoResults,
|
|
417
419
|
response: d,
|
|
418
420
|
error: c
|
|
419
421
|
}, d) : (o.value = {
|
|
420
|
-
status:
|
|
422
|
+
status: ve.Error,
|
|
421
423
|
response: d,
|
|
422
424
|
error: c
|
|
423
425
|
}, d);
|
|
424
426
|
}
|
|
425
427
|
}, fetcherState: o };
|
|
426
428
|
}
|
|
427
|
-
function
|
|
429
|
+
function or() {
|
|
428
430
|
const e = (r, i = "_") => r ? r.split(i).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
429
431
|
return {
|
|
430
432
|
capitalize: (r) => r ? r.replace(t, (i) => i.toUpperCase()) : "",
|
|
@@ -441,24 +443,24 @@ const Lt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
441
443
|
}, st = (e) => e === "*" || e === "x" || e === "X", ct = (e) => {
|
|
442
444
|
const t = parseInt(e, 10);
|
|
443
445
|
return isNaN(t) ? e : t;
|
|
444
|
-
},
|
|
446
|
+
}, lr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], sr = (e, t) => {
|
|
445
447
|
if (st(e) || st(t))
|
|
446
448
|
return 0;
|
|
447
|
-
const [n, r] =
|
|
449
|
+
const [n, r] = lr(ct(e), ct(t));
|
|
448
450
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
449
451
|
}, ut = (e, t) => {
|
|
450
452
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
451
|
-
const r =
|
|
453
|
+
const r = sr(e[n] || "0", t[n] || "0");
|
|
452
454
|
if (r !== 0)
|
|
453
455
|
return r;
|
|
454
456
|
}
|
|
455
457
|
return 0;
|
|
456
|
-
},
|
|
458
|
+
}, cr = (e, t) => {
|
|
457
459
|
const n = lt(e), r = lt(t), i = n.pop(), a = r.pop(), o = ut(n, r);
|
|
458
460
|
return o !== 0 ? o : i && a ? ut(i.split("."), a.split(".")) : i || a ? i ? -1 : 1 : 0;
|
|
459
461
|
}, dt = (e, t, n) => {
|
|
460
|
-
|
|
461
|
-
const r =
|
|
462
|
+
ur(n);
|
|
463
|
+
const r = cr(e, t);
|
|
462
464
|
return Nt[n].includes(r);
|
|
463
465
|
}, Nt = {
|
|
464
466
|
">": [1],
|
|
@@ -467,18 +469,18 @@ const Lt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
467
469
|
"<=": [-1, 0],
|
|
468
470
|
"<": [-1],
|
|
469
471
|
"!=": [-1, 1]
|
|
470
|
-
}, ft = Object.keys(Nt),
|
|
472
|
+
}, ft = Object.keys(Nt), ur = (e) => {
|
|
471
473
|
if (typeof e != "string")
|
|
472
474
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
473
475
|
if (ft.indexOf(e) === -1)
|
|
474
476
|
throw new Error(`Invalid operator, expected one of ${ft.join("|")}`);
|
|
475
|
-
},
|
|
476
|
-
function
|
|
477
|
+
}, dr = (e) => typeof e == "string" && /^[v\d]/.test(e) && Lt.test(e);
|
|
478
|
+
function fr(e) {
|
|
477
479
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
478
480
|
if (!t)
|
|
479
481
|
return !0;
|
|
480
482
|
const { edition: r, version: i } = t;
|
|
481
|
-
if (!
|
|
483
|
+
if (!dr(i))
|
|
482
484
|
return console.error("Invalid version"), !1;
|
|
483
485
|
const a = n[r];
|
|
484
486
|
if (!a)
|
|
@@ -486,31 +488,31 @@ function dr(e) {
|
|
|
486
488
|
const [o, l] = a;
|
|
487
489
|
return !(o && dt(i, o, "<") || l && dt(i, l, ">"));
|
|
488
490
|
}
|
|
489
|
-
function
|
|
491
|
+
function pr(e) {
|
|
490
492
|
const t = R(0), n = R(0), r = R(!1);
|
|
491
|
-
return
|
|
493
|
+
return Ae(e, (a) => {
|
|
492
494
|
a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
|
|
493
495
|
}), {
|
|
494
|
-
isTruncated:
|
|
496
|
+
isTruncated: k(() => t.value < n.value)
|
|
495
497
|
};
|
|
496
498
|
}
|
|
497
|
-
const
|
|
499
|
+
const z = {
|
|
498
500
|
useAxios: Ze,
|
|
499
|
-
useDebouncedFilter:
|
|
500
|
-
useDeleteUrlBuilder:
|
|
501
|
-
useErrors:
|
|
502
|
-
useExternalLinkCreator:
|
|
503
|
-
useFetcher:
|
|
501
|
+
useDebouncedFilter: tr,
|
|
502
|
+
useDeleteUrlBuilder: nr,
|
|
503
|
+
useErrors: rr,
|
|
504
|
+
useExternalLinkCreator: ir,
|
|
505
|
+
useFetcher: ar,
|
|
504
506
|
useFetchUrlBuilder: $t,
|
|
505
507
|
useHelpers: Ot,
|
|
506
|
-
useStringHelpers:
|
|
508
|
+
useStringHelpers: or,
|
|
507
509
|
useI18n: Qe,
|
|
508
|
-
useGatewayFeatureSupported:
|
|
509
|
-
useTruncationDetector:
|
|
510
|
-
},
|
|
510
|
+
useGatewayFeatureSupported: fr,
|
|
511
|
+
useTruncationDetector: pr
|
|
512
|
+
}, hr = {
|
|
511
513
|
key: 0,
|
|
512
514
|
class: "config-card-fieldset-title"
|
|
513
|
-
},
|
|
515
|
+
}, mr = /* @__PURE__ */ H({
|
|
514
516
|
__name: "JsonCardItem",
|
|
515
517
|
props: {
|
|
516
518
|
item: {
|
|
@@ -527,25 +529,25 @@ const W = {
|
|
|
527
529
|
}
|
|
528
530
|
},
|
|
529
531
|
setup(e) {
|
|
530
|
-
const t = e, { i18n: { t: n } } =
|
|
532
|
+
const t = e, { i18n: { t: n } } = z.useI18n(), { convertKeyToTitle: r } = z.useStringHelpers(), i = k(() => t.item.key ?? "json-array-item"), a = k(() => t.item.value ?? t.item), o = k(() => {
|
|
531
533
|
const s = JSON.parse(JSON.stringify(a.value));
|
|
532
534
|
return t.isArrayItem && delete s.name, s;
|
|
533
|
-
}), l =
|
|
535
|
+
}), l = k(() => {
|
|
534
536
|
var s;
|
|
535
537
|
return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
536
538
|
});
|
|
537
|
-
return (s, c) => (
|
|
538
|
-
class:
|
|
539
|
+
return (s, c) => (p(), K(ge(e.isArrayItem ? "fieldset" : "div"), {
|
|
540
|
+
class: ue(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
539
541
|
}, {
|
|
540
|
-
default:
|
|
541
|
-
e.isArrayItem ? (
|
|
542
|
+
default: b(() => [
|
|
543
|
+
e.isArrayItem ? (p(), A("legend", hr, [
|
|
542
544
|
L("b", null, O(l.value), 1)
|
|
543
|
-
])) :
|
|
544
|
-
(
|
|
545
|
+
])) : D("", !0),
|
|
546
|
+
(p(!0), A(le, null, ie(Object.keys(o.value), (d, u) => (p(), K(Rt, {
|
|
545
547
|
key: `${i.value}-property-${u}`,
|
|
546
548
|
item: {
|
|
547
549
|
key: d,
|
|
548
|
-
label:
|
|
550
|
+
label: I(r)(d),
|
|
549
551
|
value: o.value[d]
|
|
550
552
|
}
|
|
551
553
|
}, null, 8, ["item"]))), 128))
|
|
@@ -558,7 +560,7 @@ const W = {
|
|
|
558
560
|
for (const [r, i] of t)
|
|
559
561
|
n[r] = i;
|
|
560
562
|
return n;
|
|
561
|
-
}, Bt = /* @__PURE__ */ re(
|
|
563
|
+
}, Bt = /* @__PURE__ */ re(mr, [["__scopeId", "data-v-68ca83ec"]]), gr = /* @__PURE__ */ H({
|
|
562
564
|
__name: "InternalLinkItem",
|
|
563
565
|
props: {
|
|
564
566
|
item: {
|
|
@@ -568,24 +570,24 @@ const W = {
|
|
|
568
570
|
},
|
|
569
571
|
emits: ["navigation-click"],
|
|
570
572
|
setup(e) {
|
|
571
|
-
const { i18n: { t } } =
|
|
573
|
+
const { i18n: { t } } = z.useI18n();
|
|
572
574
|
return (n, r) => {
|
|
573
|
-
const i =
|
|
574
|
-
return
|
|
575
|
+
const i = B("KButton");
|
|
576
|
+
return p(), A("div", null, [
|
|
575
577
|
N(i, {
|
|
576
578
|
appearance: "tertiary",
|
|
577
579
|
class: "navigation-button",
|
|
578
580
|
onClick: r[0] || (r[0] = (a) => n.$emit("navigation-click", e.item))
|
|
579
581
|
}, {
|
|
580
|
-
default:
|
|
581
|
-
|
|
582
|
+
default: b(() => [
|
|
583
|
+
Y(O(e.item.value || I(t)("baseConfigCard.commonFields.link")), 1)
|
|
582
584
|
]),
|
|
583
585
|
_: 1
|
|
584
586
|
})
|
|
585
587
|
]);
|
|
586
588
|
};
|
|
587
589
|
}
|
|
588
|
-
}),
|
|
590
|
+
}), yr = /* @__PURE__ */ re(gr, [["__scopeId", "data-v-c96811e5"]]), vr = /* @__PURE__ */ H({
|
|
589
591
|
__name: "StatusBadge",
|
|
590
592
|
props: {
|
|
591
593
|
status: {
|
|
@@ -594,24 +596,24 @@ const W = {
|
|
|
594
596
|
}
|
|
595
597
|
},
|
|
596
598
|
setup(e) {
|
|
597
|
-
const { i18n: { t } } =
|
|
599
|
+
const { i18n: { t } } = z.useI18n();
|
|
598
600
|
return (n, r) => {
|
|
599
|
-
const i =
|
|
600
|
-
return
|
|
601
|
+
const i = B("KBadge");
|
|
602
|
+
return p(), K(i, {
|
|
601
603
|
appearance: e.status ? "success" : "neutral"
|
|
602
604
|
}, {
|
|
603
|
-
default:
|
|
604
|
-
|
|
605
|
+
default: b(() => [
|
|
606
|
+
Y(O(e.status ? I(t)("baseConfigCard.statusBadge.enabledLabel") : I(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
605
607
|
]),
|
|
606
608
|
_: 1
|
|
607
609
|
}, 8, ["appearance"]);
|
|
608
610
|
};
|
|
609
611
|
}
|
|
610
|
-
}),
|
|
612
|
+
}), br = "#0044f4", xr = "#e0e4ea", Cr = "#3a3f51", _r = "#afb7c5", kr = "#0044f4", Ar = "1px", wr = "16px", Sr = "20px", Ir = { class: "config-card-details-row" }, Er = ["data-testid"], Tr = ["data-testid"], Fr = ["data-testid"], Or = ["data-testid"], $r = { key: 1 }, Lr = ["data-testid"], Nr = ["data-testid"], Br = ["data-testid"], Rr = ["data-testid"], Kr = {
|
|
611
613
|
name: "ConfigCardItem",
|
|
612
|
-
components: { JsonCardItem: Bt, StatusBadge:
|
|
613
|
-
},
|
|
614
|
-
...
|
|
614
|
+
components: { JsonCardItem: Bt, StatusBadge: vr, InternalLinkItem: yr }
|
|
615
|
+
}, Mr = /* @__PURE__ */ H({
|
|
616
|
+
...Kr,
|
|
615
617
|
props: {
|
|
616
618
|
item: {
|
|
617
619
|
type: Object,
|
|
@@ -630,15 +632,15 @@ const W = {
|
|
|
630
632
|
},
|
|
631
633
|
emits: ["navigation-click"],
|
|
632
634
|
setup(e, { emit: t }) {
|
|
633
|
-
Tt((
|
|
634
|
-
"07753575": d.value ? "none" : `solid ${
|
|
635
|
+
Tt((x) => ({
|
|
636
|
+
"07753575": d.value ? "none" : `solid ${I(Ar)} ${I(xr)}`,
|
|
635
637
|
"32d44ea8": c.value && l.value ? "block" : "flex",
|
|
636
638
|
"5036b738": c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
637
639
|
"5038fd13": c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
638
640
|
}));
|
|
639
|
-
const n = e, r = t, i = Ge(), { i18n: { t: a, formatUnixTimeStamp: o } } =
|
|
641
|
+
const n = e, r = t, i = Ge(), { i18n: { t: a, formatUnixTimeStamp: o } } = z.useI18n(), l = k(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = k(() => !!(n.item.tooltip || i["label-tooltip"])), c = k(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = k(() => n.item.type === P.JsonArray), u = k(() => {
|
|
640
642
|
switch (n.item.type) {
|
|
641
|
-
case
|
|
643
|
+
case P.ID:
|
|
642
644
|
return {
|
|
643
645
|
tag: "KCopy",
|
|
644
646
|
attrs: {
|
|
@@ -647,7 +649,7 @@ const W = {
|
|
|
647
649
|
text: n.item.value
|
|
648
650
|
}
|
|
649
651
|
};
|
|
650
|
-
case
|
|
652
|
+
case P.IdArray:
|
|
651
653
|
return {
|
|
652
654
|
tag: "div",
|
|
653
655
|
additionalComponent: "KCopy",
|
|
@@ -655,7 +657,7 @@ const W = {
|
|
|
655
657
|
"copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
|
|
656
658
|
}
|
|
657
659
|
};
|
|
658
|
-
case
|
|
660
|
+
case P.Redacted:
|
|
659
661
|
return {
|
|
660
662
|
tag: "KCopy",
|
|
661
663
|
attrs: {
|
|
@@ -665,7 +667,7 @@ const W = {
|
|
|
665
667
|
text: n.item.value
|
|
666
668
|
}
|
|
667
669
|
};
|
|
668
|
-
case
|
|
670
|
+
case P.RedactedArray:
|
|
669
671
|
return {
|
|
670
672
|
tag: "div",
|
|
671
673
|
additionalComponent: "KCopy",
|
|
@@ -674,7 +676,7 @@ const W = {
|
|
|
674
676
|
"copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
|
|
675
677
|
}
|
|
676
678
|
};
|
|
677
|
-
case
|
|
679
|
+
case P.Date:
|
|
678
680
|
return {
|
|
679
681
|
tag: "div",
|
|
680
682
|
attrs: {
|
|
@@ -682,7 +684,7 @@ const W = {
|
|
|
682
684
|
},
|
|
683
685
|
text: o(n.item.value)
|
|
684
686
|
};
|
|
685
|
-
case
|
|
687
|
+
case P.BadgeStatus:
|
|
686
688
|
return {
|
|
687
689
|
tag: "StatusBadge",
|
|
688
690
|
attrs: {
|
|
@@ -690,28 +692,28 @@ const W = {
|
|
|
690
692
|
status: n.item.value
|
|
691
693
|
}
|
|
692
694
|
};
|
|
693
|
-
case
|
|
695
|
+
case P.BadgeTag:
|
|
694
696
|
return {
|
|
695
697
|
tag: "div",
|
|
696
698
|
additionalComponent: "KBadge"
|
|
697
699
|
};
|
|
698
|
-
case
|
|
700
|
+
case P.BadgeMethod:
|
|
699
701
|
return {
|
|
700
702
|
tag: "div",
|
|
701
703
|
additionalComponent: "KMethodBadge"
|
|
702
704
|
};
|
|
703
|
-
case
|
|
705
|
+
case P.LinkInternal:
|
|
704
706
|
return {
|
|
705
707
|
tag: "InternalLinkItem",
|
|
706
708
|
attrs: {
|
|
707
709
|
"data-testid": `${n.item.key}-internal-link`,
|
|
708
710
|
item: n.item,
|
|
709
|
-
onNavigationClick: (
|
|
710
|
-
r("navigation-click",
|
|
711
|
+
onNavigationClick: (x) => {
|
|
712
|
+
r("navigation-click", x);
|
|
711
713
|
}
|
|
712
714
|
}
|
|
713
715
|
};
|
|
714
|
-
case
|
|
716
|
+
case P.LinkExternal:
|
|
715
717
|
return {
|
|
716
718
|
tag: "KExternalLink",
|
|
717
719
|
attrs: {
|
|
@@ -720,7 +722,7 @@ const W = {
|
|
|
720
722
|
},
|
|
721
723
|
text: n.item.value
|
|
722
724
|
};
|
|
723
|
-
case
|
|
725
|
+
case P.Json:
|
|
724
726
|
return {
|
|
725
727
|
tag: "JsonCardItem",
|
|
726
728
|
attrs: {
|
|
@@ -728,7 +730,7 @@ const W = {
|
|
|
728
730
|
item: n.item
|
|
729
731
|
}
|
|
730
732
|
};
|
|
731
|
-
case
|
|
733
|
+
case P.JsonArray:
|
|
732
734
|
return {
|
|
733
735
|
tag: "div",
|
|
734
736
|
additionalComponent: "JsonCardItem",
|
|
@@ -746,110 +748,110 @@ const W = {
|
|
|
746
748
|
text: n.item.value
|
|
747
749
|
};
|
|
748
750
|
}
|
|
749
|
-
}),
|
|
750
|
-
return (
|
|
751
|
-
const
|
|
752
|
-
return
|
|
751
|
+
}), m = R(), { isTruncated: f } = z.useTruncationDetector(m);
|
|
752
|
+
return (x, v) => {
|
|
753
|
+
const w = B("KLabel"), M = B("KBadge"), E = B("KCopy"), ee = B("KTooltip");
|
|
754
|
+
return p(), A("div", Ir, [
|
|
753
755
|
L("div", {
|
|
754
756
|
class: "config-card-details-label",
|
|
755
757
|
"data-testid": `${e.item.key}-label`
|
|
756
758
|
}, [
|
|
757
|
-
V(
|
|
758
|
-
N(
|
|
759
|
-
default:
|
|
760
|
-
|
|
759
|
+
V(x.$slots, "label", { item: e.item }, () => [
|
|
760
|
+
N(w, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
|
|
761
|
+
default: b(() => [
|
|
762
|
+
Y(O(e.item.label) + " ", 1)
|
|
761
763
|
]),
|
|
762
764
|
_: 2
|
|
763
765
|
}, [
|
|
764
766
|
s.value ? {
|
|
765
767
|
name: "tooltip",
|
|
766
|
-
fn:
|
|
768
|
+
fn: b(() => [
|
|
767
769
|
L("div", {
|
|
768
770
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
769
771
|
}, [
|
|
770
|
-
V(
|
|
771
|
-
|
|
772
|
+
V(x.$slots, "label-tooltip", {}, () => [
|
|
773
|
+
Y(O(e.item.tooltip), 1)
|
|
772
774
|
], !0)
|
|
773
|
-
], 8,
|
|
775
|
+
], 8, Tr)
|
|
774
776
|
]),
|
|
775
777
|
key: "0"
|
|
776
778
|
} : void 0
|
|
777
779
|
]), 1024)
|
|
778
780
|
], !0)
|
|
779
|
-
], 8,
|
|
781
|
+
], 8, Er),
|
|
780
782
|
L("div", {
|
|
781
783
|
class: "config-card-details-value",
|
|
782
784
|
"data-testid": `${e.item.key}-property-value`
|
|
783
785
|
}, [
|
|
784
|
-
V(
|
|
786
|
+
V(x.$slots, e.item.key, {
|
|
785
787
|
rowValue: e.item.value
|
|
786
788
|
}, () => [
|
|
787
|
-
l.value ? (
|
|
788
|
-
(
|
|
789
|
-
default:
|
|
790
|
-
u.value.additionalComponent === "KBadge" ? (
|
|
789
|
+
l.value ? (p(), A("div", $r, [
|
|
790
|
+
(p(), K(ge(u.value.tag), En(Tn(u.value.attrs)), {
|
|
791
|
+
default: b(() => [
|
|
792
|
+
u.value.additionalComponent === "KBadge" ? (p(), A("div", {
|
|
791
793
|
key: 0,
|
|
792
794
|
"data-testid": `${e.item.key}-badge-tags`
|
|
793
795
|
}, [
|
|
794
|
-
(
|
|
796
|
+
(p(!0), A(le, null, ie(e.item.value, (h, y) => (p(), K(M, {
|
|
795
797
|
key: `${e.item.key}-badge-tag-${y}`,
|
|
796
798
|
class: "config-badge",
|
|
797
799
|
"data-testid": `${e.item.key}-badge-tag-${y}`,
|
|
798
|
-
tooltip:
|
|
800
|
+
tooltip: h,
|
|
799
801
|
"truncation-tooltip": ""
|
|
800
802
|
}, {
|
|
801
|
-
default:
|
|
802
|
-
|
|
803
|
+
default: b(() => [
|
|
804
|
+
Y(O(h), 1)
|
|
803
805
|
]),
|
|
804
806
|
_: 2
|
|
805
807
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
806
|
-
], 8,
|
|
807
|
-
u.value.additionalComponent === "KCopy" ? (
|
|
808
|
+
], 8, Lr)) : D("", !0),
|
|
809
|
+
u.value.additionalComponent === "KCopy" ? (p(), A("div", {
|
|
808
810
|
key: 1,
|
|
809
811
|
class: "copy-uuid-array",
|
|
810
812
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
811
813
|
}, [
|
|
812
|
-
(
|
|
814
|
+
(p(!0), A(le, null, ie(e.item.value, (h, y) => (p(), K(E, Fn(u.value.childAttrs, {
|
|
813
815
|
key: `${e.item.key}-copy-uuid-${y}`,
|
|
814
816
|
"data-testid": `${e.item.key}-copy-uuid-${y}`,
|
|
815
|
-
text:
|
|
817
|
+
text: h
|
|
816
818
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
817
|
-
], 8,
|
|
819
|
+
], 8, Nr)) : u.value.additionalComponent === "KMethodBadge" ? (p(), A("div", {
|
|
818
820
|
key: 2,
|
|
819
821
|
class: "method-badge-array",
|
|
820
822
|
"data-testid": `${e.item.key}-badge-methods`
|
|
821
823
|
}, [
|
|
822
|
-
(
|
|
824
|
+
(p(!0), A(le, null, ie(e.item.value, (h, y) => (p(), K(M, {
|
|
823
825
|
key: `${e.item.key}-badge-method-${y}`,
|
|
824
|
-
appearance: Object.values(
|
|
826
|
+
appearance: Object.values(I(Kn)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
|
|
825
827
|
class: "config-badge",
|
|
826
828
|
"data-testid": `${e.item.key}-badge-method-${y}`
|
|
827
829
|
}, {
|
|
828
|
-
default:
|
|
829
|
-
|
|
830
|
+
default: b(() => [
|
|
831
|
+
Y(O(h), 1)
|
|
830
832
|
]),
|
|
831
833
|
_: 2
|
|
832
834
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
833
|
-
], 8,
|
|
834
|
-
u.value.additionalComponent === "JsonCardItem" ? (
|
|
835
|
+
], 8, Br)) : D("", !0),
|
|
836
|
+
u.value.additionalComponent === "JsonCardItem" ? (p(), A("div", {
|
|
835
837
|
key: 3,
|
|
836
838
|
"data-testid": `${n.item.key}-json-array-content`
|
|
837
839
|
}, [
|
|
838
|
-
(
|
|
840
|
+
(p(!0), A(le, null, ie(e.item.value, (h, y) => (p(), K(Bt, {
|
|
839
841
|
key: `json-array-item-${y}`,
|
|
840
842
|
index: y,
|
|
841
843
|
"is-array-item": "",
|
|
842
|
-
item:
|
|
844
|
+
item: h
|
|
843
845
|
}, null, 8, ["index", "item"]))), 128))
|
|
844
|
-
], 8,
|
|
846
|
+
], 8, Rr)) : (p(), K(ee, {
|
|
845
847
|
key: 4,
|
|
846
|
-
text:
|
|
848
|
+
text: I(f) ? e.item.value : ""
|
|
847
849
|
}, {
|
|
848
|
-
default:
|
|
850
|
+
default: b(() => [
|
|
849
851
|
L("span", {
|
|
850
852
|
ref_key: "textContent",
|
|
851
|
-
ref:
|
|
852
|
-
class:
|
|
853
|
+
ref: m,
|
|
854
|
+
class: ue(["attrs-data-text", { truncated: e.truncated }])
|
|
853
855
|
}, O(u.value.text), 3)
|
|
854
856
|
]),
|
|
855
857
|
_: 1
|
|
@@ -857,19 +859,19 @@ const W = {
|
|
|
857
859
|
]),
|
|
858
860
|
_: 1
|
|
859
861
|
}, 16))
|
|
860
|
-
])) : (
|
|
862
|
+
])) : (p(), A("div", {
|
|
861
863
|
key: 0,
|
|
862
864
|
"data-testid": `${e.item.key}-no-value`
|
|
863
|
-
}, " – ", 8,
|
|
865
|
+
}, " – ", 8, Or))
|
|
864
866
|
], !0)
|
|
865
|
-
], 8,
|
|
867
|
+
], 8, Fr)
|
|
866
868
|
]);
|
|
867
869
|
};
|
|
868
870
|
}
|
|
869
|
-
}), Rt = /* @__PURE__ */ re(
|
|
871
|
+
}), Rt = /* @__PURE__ */ re(Mr, [["__scopeId", "data-v-d056663c"]]), Dr = { class: "json-config" }, jr = {
|
|
870
872
|
key: 0,
|
|
871
873
|
class: "json-endpoint"
|
|
872
|
-
},
|
|
874
|
+
}, Kt = /* @__PURE__ */ H({
|
|
873
875
|
__name: "JsonCodeBlock",
|
|
874
876
|
props: {
|
|
875
877
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -900,7 +902,7 @@ const W = {
|
|
|
900
902
|
Tt((i) => ({
|
|
901
903
|
"2d178975": `${r.value}ch`
|
|
902
904
|
}));
|
|
903
|
-
const t = e, n =
|
|
905
|
+
const t = e, n = k(() => t.jsonRecord), r = k(() => {
|
|
904
906
|
var o;
|
|
905
907
|
if (!t.fetcherUrl)
|
|
906
908
|
return 0;
|
|
@@ -909,14 +911,14 @@ const W = {
|
|
|
909
911
|
});
|
|
910
912
|
return (i, a) => {
|
|
911
913
|
var s;
|
|
912
|
-
const o =
|
|
913
|
-
return
|
|
914
|
-
t.fetcherUrl && ((s = t.config) != null && s.jsonYamlFormsEnabled) ? (
|
|
914
|
+
const o = B("KBadge"), l = B("KCodeBlock");
|
|
915
|
+
return p(), A("div", Dr, [
|
|
916
|
+
t.fetcherUrl && ((s = t.config) != null && s.jsonYamlFormsEnabled) ? (p(), A("div", jr, [
|
|
915
917
|
N(o, {
|
|
916
918
|
appearance: t.requestMethod
|
|
917
919
|
}, {
|
|
918
|
-
default:
|
|
919
|
-
|
|
920
|
+
default: b(() => [
|
|
921
|
+
Y(O(t.requestMethod), 1)
|
|
920
922
|
]),
|
|
921
923
|
_: 1
|
|
922
924
|
}, 8, ["appearance"]),
|
|
@@ -927,52 +929,52 @@ const W = {
|
|
|
927
929
|
language: "json",
|
|
928
930
|
theme: "dark"
|
|
929
931
|
}, null, 8, ["code"])
|
|
930
|
-
])) :
|
|
931
|
-
t.jsonRecord ? (
|
|
932
|
+
])) : D("", !0),
|
|
933
|
+
t.jsonRecord ? (p(), K(l, {
|
|
932
934
|
key: 1,
|
|
933
935
|
id: "json-codeblock",
|
|
934
|
-
class:
|
|
936
|
+
class: ue({ "json-content": t.fetcherUrl }),
|
|
935
937
|
code: JSON.stringify(n.value, null, 2),
|
|
936
938
|
language: "json",
|
|
937
939
|
theme: "dark"
|
|
938
|
-
}, null, 8, ["class", "code"])) :
|
|
940
|
+
}, null, 8, ["class", "code"])) : D("", !0)
|
|
939
941
|
]);
|
|
940
942
|
};
|
|
941
943
|
}
|
|
942
944
|
});
|
|
943
945
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
944
|
-
function
|
|
946
|
+
function Mt(e) {
|
|
945
947
|
return typeof e > "u" || e === null;
|
|
946
948
|
}
|
|
947
|
-
function
|
|
949
|
+
function Ur(e) {
|
|
948
950
|
return typeof e == "object" && e !== null;
|
|
949
951
|
}
|
|
950
|
-
function
|
|
951
|
-
return Array.isArray(e) ? e :
|
|
952
|
+
function qr(e) {
|
|
953
|
+
return Array.isArray(e) ? e : Mt(e) ? [] : [e];
|
|
952
954
|
}
|
|
953
|
-
function
|
|
955
|
+
function Pr(e, t) {
|
|
954
956
|
var n, r, i, a;
|
|
955
957
|
if (t)
|
|
956
958
|
for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1)
|
|
957
959
|
i = a[n], e[i] = t[i];
|
|
958
960
|
return e;
|
|
959
961
|
}
|
|
960
|
-
function
|
|
962
|
+
function Hr(e, t) {
|
|
961
963
|
var n = "", r;
|
|
962
964
|
for (r = 0; r < t; r += 1)
|
|
963
965
|
n += e;
|
|
964
966
|
return n;
|
|
965
967
|
}
|
|
966
|
-
function
|
|
968
|
+
function Vr(e) {
|
|
967
969
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
968
970
|
}
|
|
969
|
-
var
|
|
970
|
-
isNothing:
|
|
971
|
-
isObject:
|
|
972
|
-
toArray:
|
|
973
|
-
repeat:
|
|
974
|
-
isNegativeZero:
|
|
975
|
-
extend:
|
|
971
|
+
var Yr = Mt, zr = Ur, Wr = qr, Jr = Hr, Gr = Vr, Zr = Pr, G = {
|
|
972
|
+
isNothing: Yr,
|
|
973
|
+
isObject: zr,
|
|
974
|
+
toArray: Wr,
|
|
975
|
+
repeat: Jr,
|
|
976
|
+
isNegativeZero: Gr,
|
|
977
|
+
extend: Zr
|
|
976
978
|
};
|
|
977
979
|
function Dt(e, t) {
|
|
978
980
|
var n = "", r = e.reason || "(unknown reason)";
|
|
@@ -988,7 +990,7 @@ Se.prototype.constructor = Se;
|
|
|
988
990
|
Se.prototype.toString = function(t) {
|
|
989
991
|
return this.name + ": " + Dt(this, t);
|
|
990
992
|
};
|
|
991
|
-
var
|
|
993
|
+
var X = Se;
|
|
992
994
|
function Ue(e, t, n, r, i) {
|
|
993
995
|
var a = "", o = "", l = Math.floor(i / 2) - 1;
|
|
994
996
|
return r - t > l && (a = " ... ", t = r - l + a.length), n - r > l && (o = " ...", n = r + l - o.length), {
|
|
@@ -997,10 +999,10 @@ function Ue(e, t, n, r, i) {
|
|
|
997
999
|
// relative position
|
|
998
1000
|
};
|
|
999
1001
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
1002
|
+
function qe(e, t) {
|
|
1003
|
+
return G.repeat(" ", t - e.length) + e;
|
|
1002
1004
|
}
|
|
1003
|
-
function
|
|
1005
|
+
function Qr(e, t) {
|
|
1004
1006
|
if (t = Object.create(t || null), !e.buffer)
|
|
1005
1007
|
return null;
|
|
1006
1008
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
@@ -1015,10 +1017,10 @@ function Gr(e, t) {
|
|
|
1015
1017
|
i[o - s],
|
|
1016
1018
|
e.position - (r[o] - r[o - s]),
|
|
1017
1019
|
u
|
|
1018
|
-
), l =
|
|
1020
|
+
), l = G.repeat(" ", t.indent) + qe((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1019
1021
|
` + l;
|
|
1020
|
-
for (c = Ue(e.buffer, r[o], i[o], e.position, u), l +=
|
|
1021
|
-
`, l +=
|
|
1022
|
+
for (c = Ue(e.buffer, r[o], i[o], e.position, u), l += G.repeat(" ", t.indent) + qe((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1023
|
+
`, l += G.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1022
1024
|
`, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
|
|
1023
1025
|
c = Ue(
|
|
1024
1026
|
e.buffer,
|
|
@@ -1026,11 +1028,11 @@ function Gr(e, t) {
|
|
|
1026
1028
|
i[o + s],
|
|
1027
1029
|
e.position - (r[o] - r[o + s]),
|
|
1028
1030
|
u
|
|
1029
|
-
), l +=
|
|
1031
|
+
), l += G.repeat(" ", t.indent) + qe((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1030
1032
|
`;
|
|
1031
1033
|
return l.replace(/\n$/, "");
|
|
1032
1034
|
}
|
|
1033
|
-
var
|
|
1035
|
+
var Xr = Qr, ei = [
|
|
1034
1036
|
"kind",
|
|
1035
1037
|
"multi",
|
|
1036
1038
|
"resolve",
|
|
@@ -1041,12 +1043,12 @@ var Zr = Gr, Qr = [
|
|
|
1041
1043
|
"representName",
|
|
1042
1044
|
"defaultStyle",
|
|
1043
1045
|
"styleAliases"
|
|
1044
|
-
],
|
|
1046
|
+
], ti = [
|
|
1045
1047
|
"scalar",
|
|
1046
1048
|
"sequence",
|
|
1047
1049
|
"mapping"
|
|
1048
1050
|
];
|
|
1049
|
-
function
|
|
1051
|
+
function ni(e) {
|
|
1050
1052
|
var t = {};
|
|
1051
1053
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1052
1054
|
e[n].forEach(function(r) {
|
|
@@ -1054,18 +1056,18 @@ function ei(e) {
|
|
|
1054
1056
|
});
|
|
1055
1057
|
}), t;
|
|
1056
1058
|
}
|
|
1057
|
-
function
|
|
1059
|
+
function ri(e, t) {
|
|
1058
1060
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1059
|
-
if (
|
|
1060
|
-
throw new
|
|
1061
|
+
if (ei.indexOf(n) === -1)
|
|
1062
|
+
throw new X('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1061
1063
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1062
1064
|
return !0;
|
|
1063
1065
|
}, this.construct = t.construct || function(n) {
|
|
1064
1066
|
return n;
|
|
1065
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1066
|
-
throw new
|
|
1067
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = ni(t.styleAliases || null), ti.indexOf(this.kind) === -1)
|
|
1068
|
+
throw new X('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1067
1069
|
}
|
|
1068
|
-
var
|
|
1070
|
+
var Z = ri;
|
|
1069
1071
|
function pt(e, t) {
|
|
1070
1072
|
var n = [];
|
|
1071
1073
|
return e[t].forEach(function(r) {
|
|
@@ -1075,7 +1077,7 @@ function pt(e, t) {
|
|
|
1075
1077
|
}), n[i] = r;
|
|
1076
1078
|
}), n;
|
|
1077
1079
|
}
|
|
1078
|
-
function
|
|
1080
|
+
function ii() {
|
|
1079
1081
|
var e = {
|
|
1080
1082
|
scalar: {},
|
|
1081
1083
|
sequence: {},
|
|
@@ -1100,39 +1102,39 @@ function Ve(e) {
|
|
|
1100
1102
|
}
|
|
1101
1103
|
Ve.prototype.extend = function(t) {
|
|
1102
1104
|
var n = [], r = [];
|
|
1103
|
-
if (t instanceof
|
|
1105
|
+
if (t instanceof Z)
|
|
1104
1106
|
r.push(t);
|
|
1105
1107
|
else if (Array.isArray(t))
|
|
1106
1108
|
r = r.concat(t);
|
|
1107
1109
|
else if (t && (Array.isArray(t.implicit) || Array.isArray(t.explicit)))
|
|
1108
1110
|
t.implicit && (n = n.concat(t.implicit)), t.explicit && (r = r.concat(t.explicit));
|
|
1109
1111
|
else
|
|
1110
|
-
throw new
|
|
1112
|
+
throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1111
1113
|
n.forEach(function(a) {
|
|
1112
|
-
if (!(a instanceof
|
|
1113
|
-
throw new
|
|
1114
|
+
if (!(a instanceof Z))
|
|
1115
|
+
throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1114
1116
|
if (a.loadKind && a.loadKind !== "scalar")
|
|
1115
|
-
throw new
|
|
1117
|
+
throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1116
1118
|
if (a.multi)
|
|
1117
|
-
throw new
|
|
1119
|
+
throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1118
1120
|
}), r.forEach(function(a) {
|
|
1119
|
-
if (!(a instanceof
|
|
1120
|
-
throw new
|
|
1121
|
+
if (!(a instanceof Z))
|
|
1122
|
+
throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1121
1123
|
});
|
|
1122
1124
|
var i = Object.create(Ve.prototype);
|
|
1123
|
-
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = pt(i, "implicit"), i.compiledExplicit = pt(i, "explicit"), i.compiledTypeMap =
|
|
1125
|
+
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = pt(i, "implicit"), i.compiledExplicit = pt(i, "explicit"), i.compiledTypeMap = ii(i.compiledImplicit, i.compiledExplicit), i;
|
|
1124
1126
|
};
|
|
1125
|
-
var jt = Ve, Ut = new
|
|
1127
|
+
var jt = Ve, Ut = new Z("tag:yaml.org,2002:str", {
|
|
1126
1128
|
kind: "scalar",
|
|
1127
1129
|
construct: function(e) {
|
|
1128
1130
|
return e !== null ? e : "";
|
|
1129
1131
|
}
|
|
1130
|
-
}),
|
|
1132
|
+
}), qt = new Z("tag:yaml.org,2002:seq", {
|
|
1131
1133
|
kind: "sequence",
|
|
1132
1134
|
construct: function(e) {
|
|
1133
1135
|
return e !== null ? e : [];
|
|
1134
1136
|
}
|
|
1135
|
-
}),
|
|
1137
|
+
}), Pt = new Z("tag:yaml.org,2002:map", {
|
|
1136
1138
|
kind: "mapping",
|
|
1137
1139
|
construct: function(e) {
|
|
1138
1140
|
return e !== null ? e : {};
|
|
@@ -1140,27 +1142,27 @@ var jt = Ve, Ut = new Q("tag:yaml.org,2002:str", {
|
|
|
1140
1142
|
}), Ht = new jt({
|
|
1141
1143
|
explicit: [
|
|
1142
1144
|
Ut,
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
+
qt,
|
|
1146
|
+
Pt
|
|
1145
1147
|
]
|
|
1146
1148
|
});
|
|
1147
|
-
function
|
|
1149
|
+
function ai(e) {
|
|
1148
1150
|
if (e === null)
|
|
1149
1151
|
return !0;
|
|
1150
1152
|
var t = e.length;
|
|
1151
1153
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1152
1154
|
}
|
|
1153
|
-
function
|
|
1155
|
+
function oi() {
|
|
1154
1156
|
return null;
|
|
1155
1157
|
}
|
|
1156
|
-
function
|
|
1158
|
+
function li(e) {
|
|
1157
1159
|
return e === null;
|
|
1158
1160
|
}
|
|
1159
|
-
var Vt = new
|
|
1161
|
+
var Vt = new Z("tag:yaml.org,2002:null", {
|
|
1160
1162
|
kind: "scalar",
|
|
1161
|
-
resolve:
|
|
1162
|
-
construct:
|
|
1163
|
-
predicate:
|
|
1163
|
+
resolve: ai,
|
|
1164
|
+
construct: oi,
|
|
1165
|
+
predicate: li,
|
|
1164
1166
|
represent: {
|
|
1165
1167
|
canonical: function() {
|
|
1166
1168
|
return "~";
|
|
@@ -1180,23 +1182,23 @@ var Vt = new Q("tag:yaml.org,2002:null", {
|
|
|
1180
1182
|
},
|
|
1181
1183
|
defaultStyle: "lowercase"
|
|
1182
1184
|
});
|
|
1183
|
-
function
|
|
1185
|
+
function si(e) {
|
|
1184
1186
|
if (e === null)
|
|
1185
1187
|
return !1;
|
|
1186
1188
|
var t = e.length;
|
|
1187
1189
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1188
1190
|
}
|
|
1189
|
-
function
|
|
1191
|
+
function ci(e) {
|
|
1190
1192
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1191
1193
|
}
|
|
1192
|
-
function
|
|
1194
|
+
function ui(e) {
|
|
1193
1195
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1194
1196
|
}
|
|
1195
|
-
var Yt = new
|
|
1197
|
+
var Yt = new Z("tag:yaml.org,2002:bool", {
|
|
1196
1198
|
kind: "scalar",
|
|
1197
|
-
resolve:
|
|
1198
|
-
construct:
|
|
1199
|
-
predicate:
|
|
1199
|
+
resolve: si,
|
|
1200
|
+
construct: ci,
|
|
1201
|
+
predicate: ui,
|
|
1200
1202
|
represent: {
|
|
1201
1203
|
lowercase: function(e) {
|
|
1202
1204
|
return e ? "true" : "false";
|
|
@@ -1210,16 +1212,16 @@ var Yt = new Q("tag:yaml.org,2002:bool", {
|
|
|
1210
1212
|
},
|
|
1211
1213
|
defaultStyle: "lowercase"
|
|
1212
1214
|
});
|
|
1213
|
-
function
|
|
1215
|
+
function di(e) {
|
|
1214
1216
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1215
1217
|
}
|
|
1216
|
-
function
|
|
1218
|
+
function fi(e) {
|
|
1217
1219
|
return 48 <= e && e <= 55;
|
|
1218
1220
|
}
|
|
1219
|
-
function
|
|
1221
|
+
function pi(e) {
|
|
1220
1222
|
return 48 <= e && e <= 57;
|
|
1221
1223
|
}
|
|
1222
|
-
function
|
|
1224
|
+
function hi(e) {
|
|
1223
1225
|
if (e === null)
|
|
1224
1226
|
return !1;
|
|
1225
1227
|
var t = e.length, n = 0, r = !1, i;
|
|
@@ -1240,7 +1242,7 @@ function fi(e) {
|
|
|
1240
1242
|
if (i === "x") {
|
|
1241
1243
|
for (n++; n < t; n++)
|
|
1242
1244
|
if (i = e[n], i !== "_") {
|
|
1243
|
-
if (!
|
|
1245
|
+
if (!di(e.charCodeAt(n)))
|
|
1244
1246
|
return !1;
|
|
1245
1247
|
r = !0;
|
|
1246
1248
|
}
|
|
@@ -1249,7 +1251,7 @@ function fi(e) {
|
|
|
1249
1251
|
if (i === "o") {
|
|
1250
1252
|
for (n++; n < t; n++)
|
|
1251
1253
|
if (i = e[n], i !== "_") {
|
|
1252
|
-
if (!
|
|
1254
|
+
if (!fi(e.charCodeAt(n)))
|
|
1253
1255
|
return !1;
|
|
1254
1256
|
r = !0;
|
|
1255
1257
|
}
|
|
@@ -1260,13 +1262,13 @@ function fi(e) {
|
|
|
1260
1262
|
return !1;
|
|
1261
1263
|
for (; n < t; n++)
|
|
1262
1264
|
if (i = e[n], i !== "_") {
|
|
1263
|
-
if (!
|
|
1265
|
+
if (!pi(e.charCodeAt(n)))
|
|
1264
1266
|
return !1;
|
|
1265
1267
|
r = !0;
|
|
1266
1268
|
}
|
|
1267
1269
|
return !(!r || i === "_");
|
|
1268
1270
|
}
|
|
1269
|
-
function
|
|
1271
|
+
function mi(e) {
|
|
1270
1272
|
var t = e, n = 1, r;
|
|
1271
1273
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0")
|
|
1272
1274
|
return 0;
|
|
@@ -1280,14 +1282,14 @@ function pi(e) {
|
|
|
1280
1282
|
}
|
|
1281
1283
|
return n * parseInt(t, 10);
|
|
1282
1284
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
1285
|
+
function gi(e) {
|
|
1286
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !G.isNegativeZero(e);
|
|
1285
1287
|
}
|
|
1286
|
-
var zt = new
|
|
1288
|
+
var zt = new Z("tag:yaml.org,2002:int", {
|
|
1287
1289
|
kind: "scalar",
|
|
1288
|
-
resolve:
|
|
1289
|
-
construct:
|
|
1290
|
-
predicate:
|
|
1290
|
+
resolve: hi,
|
|
1291
|
+
construct: mi,
|
|
1292
|
+
predicate: gi,
|
|
1291
1293
|
represent: {
|
|
1292
1294
|
binary: function(e) {
|
|
1293
1295
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1310,21 +1312,21 @@ var zt = new Q("tag:yaml.org,2002:int", {
|
|
|
1310
1312
|
decimal: [10, "dec"],
|
|
1311
1313
|
hexadecimal: [16, "hex"]
|
|
1312
1314
|
}
|
|
1313
|
-
}),
|
|
1315
|
+
}), yi = new RegExp(
|
|
1314
1316
|
// 2.5e4, 2.5 and integers
|
|
1315
1317
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1316
1318
|
);
|
|
1317
|
-
function
|
|
1318
|
-
return !(e === null || !
|
|
1319
|
+
function vi(e) {
|
|
1320
|
+
return !(e === null || !yi.test(e) || // Quick hack to not allow integers end with `_`
|
|
1319
1321
|
// Probably should update regexp & check speed
|
|
1320
1322
|
e[e.length - 1] === "_");
|
|
1321
1323
|
}
|
|
1322
|
-
function
|
|
1324
|
+
function bi(e) {
|
|
1323
1325
|
var t, n;
|
|
1324
1326
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1325
1327
|
}
|
|
1326
|
-
var
|
|
1327
|
-
function
|
|
1328
|
+
var xi = /^[-+]?[0-9]+e/;
|
|
1329
|
+
function Ci(e, t) {
|
|
1328
1330
|
var n;
|
|
1329
1331
|
if (isNaN(e))
|
|
1330
1332
|
switch (t) {
|
|
@@ -1353,19 +1355,19 @@ function bi(e, t) {
|
|
|
1353
1355
|
case "camelcase":
|
|
1354
1356
|
return "-.Inf";
|
|
1355
1357
|
}
|
|
1356
|
-
else if (
|
|
1358
|
+
else if (G.isNegativeZero(e))
|
|
1357
1359
|
return "-0.0";
|
|
1358
|
-
return n = e.toString(10),
|
|
1360
|
+
return n = e.toString(10), xi.test(n) ? n.replace("e", ".e") : n;
|
|
1359
1361
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1362
|
+
function _i(e) {
|
|
1363
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || G.isNegativeZero(e));
|
|
1362
1364
|
}
|
|
1363
|
-
var Wt = new
|
|
1365
|
+
var Wt = new Z("tag:yaml.org,2002:float", {
|
|
1364
1366
|
kind: "scalar",
|
|
1365
|
-
resolve:
|
|
1366
|
-
construct:
|
|
1367
|
-
predicate:
|
|
1368
|
-
represent:
|
|
1367
|
+
resolve: vi,
|
|
1368
|
+
construct: bi,
|
|
1369
|
+
predicate: _i,
|
|
1370
|
+
represent: Ci,
|
|
1369
1371
|
defaultStyle: "lowercase"
|
|
1370
1372
|
}), Jt = Ht.extend({
|
|
1371
1373
|
implicit: [
|
|
@@ -1379,11 +1381,11 @@ var Wt = new Q("tag:yaml.org,2002:float", {
|
|
|
1379
1381
|
), Qt = new RegExp(
|
|
1380
1382
|
"^([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]))?))?$"
|
|
1381
1383
|
);
|
|
1382
|
-
function
|
|
1384
|
+
function ki(e) {
|
|
1383
1385
|
return e === null ? !1 : Zt.exec(e) !== null || Qt.exec(e) !== null;
|
|
1384
1386
|
}
|
|
1385
|
-
function
|
|
1386
|
-
var t, n, r, i, a, o, l, s = 0, c = null, d, u,
|
|
1387
|
+
function Ai(e) {
|
|
1388
|
+
var t, n, r, i, a, o, l, s = 0, c = null, d, u, m;
|
|
1387
1389
|
if (t = Zt.exec(e), t === null && (t = Qt.exec(e)), t === null)
|
|
1388
1390
|
throw new Error("Date resolve error");
|
|
1389
1391
|
if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
|
|
@@ -1393,27 +1395,27 @@ function _i(e) {
|
|
|
1393
1395
|
s += "0";
|
|
1394
1396
|
s = +s;
|
|
1395
1397
|
}
|
|
1396
|
-
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)),
|
|
1398
|
+
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), m = new Date(Date.UTC(n, r, i, a, o, l, s)), c && m.setTime(m.getTime() - c), m;
|
|
1397
1399
|
}
|
|
1398
|
-
function
|
|
1400
|
+
function wi(e) {
|
|
1399
1401
|
return e.toISOString();
|
|
1400
1402
|
}
|
|
1401
|
-
var Xt = new
|
|
1403
|
+
var Xt = new Z("tag:yaml.org,2002:timestamp", {
|
|
1402
1404
|
kind: "scalar",
|
|
1403
|
-
resolve:
|
|
1404
|
-
construct:
|
|
1405
|
+
resolve: ki,
|
|
1406
|
+
construct: Ai,
|
|
1405
1407
|
instanceOf: Date,
|
|
1406
|
-
represent:
|
|
1408
|
+
represent: wi
|
|
1407
1409
|
});
|
|
1408
|
-
function
|
|
1410
|
+
function Si(e) {
|
|
1409
1411
|
return e === "<<" || e === null;
|
|
1410
1412
|
}
|
|
1411
|
-
var en = new
|
|
1413
|
+
var en = new Z("tag:yaml.org,2002:merge", {
|
|
1412
1414
|
kind: "scalar",
|
|
1413
|
-
resolve:
|
|
1415
|
+
resolve: Si
|
|
1414
1416
|
}), Xe = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1415
1417
|
\r`;
|
|
1416
|
-
function
|
|
1418
|
+
function Ii(e) {
|
|
1417
1419
|
if (e === null)
|
|
1418
1420
|
return !1;
|
|
1419
1421
|
var t, n, r = 0, i = e.length, a = Xe;
|
|
@@ -1425,37 +1427,37 @@ function wi(e) {
|
|
|
1425
1427
|
}
|
|
1426
1428
|
return r % 8 === 0;
|
|
1427
1429
|
}
|
|
1428
|
-
function
|
|
1430
|
+
function Ei(e) {
|
|
1429
1431
|
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = Xe, o = 0, l = [];
|
|
1430
1432
|
for (t = 0; t < i; t++)
|
|
1431
1433
|
t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
1432
1434
|
return n = i % 4 * 6, n === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : n === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : n === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
|
|
1433
1435
|
}
|
|
1434
|
-
function
|
|
1436
|
+
function Ti(e) {
|
|
1435
1437
|
var t = "", n = 0, r, i, a = e.length, o = Xe;
|
|
1436
1438
|
for (r = 0; r < a; r++)
|
|
1437
1439
|
r % 3 === 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
1438
1440
|
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
1439
1441
|
}
|
|
1440
|
-
function
|
|
1442
|
+
function Fi(e) {
|
|
1441
1443
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1442
1444
|
}
|
|
1443
|
-
var tn = new
|
|
1445
|
+
var tn = new Z("tag:yaml.org,2002:binary", {
|
|
1444
1446
|
kind: "scalar",
|
|
1445
|
-
resolve:
|
|
1446
|
-
construct:
|
|
1447
|
-
predicate:
|
|
1448
|
-
represent:
|
|
1449
|
-
}),
|
|
1450
|
-
function
|
|
1447
|
+
resolve: Ii,
|
|
1448
|
+
construct: Ei,
|
|
1449
|
+
predicate: Fi,
|
|
1450
|
+
represent: Ti
|
|
1451
|
+
}), Oi = Object.prototype.hasOwnProperty, $i = Object.prototype.toString;
|
|
1452
|
+
function Li(e) {
|
|
1451
1453
|
if (e === null)
|
|
1452
1454
|
return !0;
|
|
1453
1455
|
var t = [], n, r, i, a, o, l = e;
|
|
1454
1456
|
for (n = 0, r = l.length; n < r; n += 1) {
|
|
1455
|
-
if (i = l[n], o = !1,
|
|
1457
|
+
if (i = l[n], o = !1, $i.call(i) !== "[object Object]")
|
|
1456
1458
|
return !1;
|
|
1457
1459
|
for (a in i)
|
|
1458
|
-
if (
|
|
1460
|
+
if (Oi.call(i, a))
|
|
1459
1461
|
if (!o)
|
|
1460
1462
|
o = !0;
|
|
1461
1463
|
else
|
|
@@ -1469,26 +1471,26 @@ function Oi(e) {
|
|
|
1469
1471
|
}
|
|
1470
1472
|
return !0;
|
|
1471
1473
|
}
|
|
1472
|
-
function
|
|
1474
|
+
function Ni(e) {
|
|
1473
1475
|
return e !== null ? e : [];
|
|
1474
1476
|
}
|
|
1475
|
-
var nn = new
|
|
1477
|
+
var nn = new Z("tag:yaml.org,2002:omap", {
|
|
1476
1478
|
kind: "sequence",
|
|
1477
|
-
resolve:
|
|
1478
|
-
construct:
|
|
1479
|
-
}),
|
|
1480
|
-
function
|
|
1479
|
+
resolve: Li,
|
|
1480
|
+
construct: Ni
|
|
1481
|
+
}), Bi = Object.prototype.toString;
|
|
1482
|
+
function Ri(e) {
|
|
1481
1483
|
if (e === null)
|
|
1482
1484
|
return !0;
|
|
1483
1485
|
var t, n, r, i, a, o = e;
|
|
1484
1486
|
for (a = new Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
1485
|
-
if (r = o[t],
|
|
1487
|
+
if (r = o[t], Bi.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1))
|
|
1486
1488
|
return !1;
|
|
1487
1489
|
a[t] = [i[0], r[i[0]]];
|
|
1488
1490
|
}
|
|
1489
1491
|
return !0;
|
|
1490
1492
|
}
|
|
1491
|
-
function
|
|
1493
|
+
function Ki(e) {
|
|
1492
1494
|
if (e === null)
|
|
1493
1495
|
return [];
|
|
1494
1496
|
var t, n, r, i, a, o = e;
|
|
@@ -1496,27 +1498,27 @@ function Bi(e) {
|
|
|
1496
1498
|
r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
|
|
1497
1499
|
return a;
|
|
1498
1500
|
}
|
|
1499
|
-
var rn = new
|
|
1501
|
+
var rn = new Z("tag:yaml.org,2002:pairs", {
|
|
1500
1502
|
kind: "sequence",
|
|
1501
|
-
resolve:
|
|
1502
|
-
construct:
|
|
1503
|
-
}),
|
|
1504
|
-
function
|
|
1503
|
+
resolve: Ri,
|
|
1504
|
+
construct: Ki
|
|
1505
|
+
}), Mi = Object.prototype.hasOwnProperty;
|
|
1506
|
+
function Di(e) {
|
|
1505
1507
|
if (e === null)
|
|
1506
1508
|
return !0;
|
|
1507
1509
|
var t, n = e;
|
|
1508
1510
|
for (t in n)
|
|
1509
|
-
if (
|
|
1511
|
+
if (Mi.call(n, t) && n[t] !== null)
|
|
1510
1512
|
return !1;
|
|
1511
1513
|
return !0;
|
|
1512
1514
|
}
|
|
1513
|
-
function
|
|
1515
|
+
function ji(e) {
|
|
1514
1516
|
return e !== null ? e : {};
|
|
1515
1517
|
}
|
|
1516
|
-
var an = new
|
|
1518
|
+
var an = new Z("tag:yaml.org,2002:set", {
|
|
1517
1519
|
kind: "mapping",
|
|
1518
|
-
resolve:
|
|
1519
|
-
construct:
|
|
1520
|
+
resolve: Di,
|
|
1521
|
+
construct: ji
|
|
1520
1522
|
}), et = Gt.extend({
|
|
1521
1523
|
implicit: [
|
|
1522
1524
|
Xt,
|
|
@@ -1528,46 +1530,46 @@ var an = new Q("tag:yaml.org,2002:set", {
|
|
|
1528
1530
|
rn,
|
|
1529
1531
|
an
|
|
1530
1532
|
]
|
|
1531
|
-
}),
|
|
1533
|
+
}), de = Object.prototype.hasOwnProperty, Ne = 1, on = 2, ln = 3, Be = 4, Pe = 1, Ui = 2, ht = 3, qi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Pi = /[\x85\u2028\u2029]/, Hi = /[,\[\]\{\}]/, sn = /^(?:!|!!|![a-z\-]+!)$/i, cn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1532
1534
|
function mt(e) {
|
|
1533
1535
|
return Object.prototype.toString.call(e);
|
|
1534
1536
|
}
|
|
1535
1537
|
function ae(e) {
|
|
1536
1538
|
return e === 10 || e === 13;
|
|
1537
1539
|
}
|
|
1538
|
-
function
|
|
1540
|
+
function me(e) {
|
|
1539
1541
|
return e === 9 || e === 32;
|
|
1540
1542
|
}
|
|
1541
1543
|
function te(e) {
|
|
1542
1544
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1543
1545
|
}
|
|
1544
|
-
function
|
|
1546
|
+
function xe(e) {
|
|
1545
1547
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1546
1548
|
}
|
|
1547
|
-
function
|
|
1549
|
+
function Vi(e) {
|
|
1548
1550
|
var t;
|
|
1549
1551
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1550
1552
|
}
|
|
1551
|
-
function
|
|
1553
|
+
function Yi(e) {
|
|
1552
1554
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1553
1555
|
}
|
|
1554
|
-
function
|
|
1556
|
+
function zi(e) {
|
|
1555
1557
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1556
1558
|
}
|
|
1557
1559
|
function gt(e) {
|
|
1558
1560
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1559
1561
|
` : 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" : "";
|
|
1560
1562
|
}
|
|
1561
|
-
function
|
|
1563
|
+
function Wi(e) {
|
|
1562
1564
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1563
1565
|
(e - 65536 >> 10) + 55296,
|
|
1564
1566
|
(e - 65536 & 1023) + 56320
|
|
1565
1567
|
);
|
|
1566
1568
|
}
|
|
1567
1569
|
var un = new Array(256), dn = new Array(256);
|
|
1568
|
-
for (var
|
|
1569
|
-
un[
|
|
1570
|
-
function
|
|
1570
|
+
for (var ye = 0; ye < 256; ye++)
|
|
1571
|
+
un[ye] = gt(ye) ? 1 : 0, dn[ye] = gt(ye);
|
|
1572
|
+
function Ji(e, t) {
|
|
1571
1573
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || et, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.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 = [];
|
|
1572
1574
|
}
|
|
1573
1575
|
function fn(e, t) {
|
|
@@ -1579,51 +1581,51 @@ function fn(e, t) {
|
|
|
1579
1581
|
line: e.line,
|
|
1580
1582
|
column: e.position - e.lineStart
|
|
1581
1583
|
};
|
|
1582
|
-
return n.snippet =
|
|
1584
|
+
return n.snippet = Xr(n), new X(t, n);
|
|
1583
1585
|
}
|
|
1584
|
-
function
|
|
1586
|
+
function C(e, t) {
|
|
1585
1587
|
throw fn(e, t);
|
|
1586
1588
|
}
|
|
1587
|
-
function
|
|
1589
|
+
function Re(e, t) {
|
|
1588
1590
|
e.onWarning && e.onWarning.call(null, fn(e, t));
|
|
1589
1591
|
}
|
|
1590
1592
|
var yt = {
|
|
1591
1593
|
YAML: function(t, n, r) {
|
|
1592
1594
|
var i, a, o;
|
|
1593
|
-
t.version !== null &&
|
|
1595
|
+
t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Re(t, "unsupported YAML version of the document");
|
|
1594
1596
|
},
|
|
1595
1597
|
TAG: function(t, n, r) {
|
|
1596
1598
|
var i, a;
|
|
1597
|
-
r.length !== 2 &&
|
|
1599
|
+
r.length !== 2 && C(t, "TAG directive accepts exactly two arguments"), i = r[0], a = r[1], sn.test(i) || C(t, "ill-formed tag handle (first argument) of the TAG directive"), de.call(t.tagMap, i) && C(t, 'there is a previously declared suffix for "' + i + '" tag handle'), cn.test(a) || C(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1598
1600
|
try {
|
|
1599
1601
|
a = decodeURIComponent(a);
|
|
1600
1602
|
} catch {
|
|
1601
|
-
|
|
1603
|
+
C(t, "tag prefix is malformed: " + a);
|
|
1602
1604
|
}
|
|
1603
1605
|
t.tagMap[i] = a;
|
|
1604
1606
|
}
|
|
1605
1607
|
};
|
|
1606
|
-
function
|
|
1608
|
+
function ce(e, t, n, r) {
|
|
1607
1609
|
var i, a, o, l;
|
|
1608
1610
|
if (t < n) {
|
|
1609
1611
|
if (l = e.input.slice(t, n), r)
|
|
1610
1612
|
for (i = 0, a = l.length; i < a; i += 1)
|
|
1611
|
-
o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 ||
|
|
1613
|
+
o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || C(e, "expected valid JSON character");
|
|
1612
1614
|
else
|
|
1613
|
-
|
|
1615
|
+
qi.test(l) && C(e, "the stream contains non-printable characters");
|
|
1614
1616
|
e.result += l;
|
|
1615
1617
|
}
|
|
1616
1618
|
}
|
|
1617
1619
|
function vt(e, t, n, r) {
|
|
1618
1620
|
var i, a, o, l;
|
|
1619
|
-
for (
|
|
1620
|
-
a = i[o],
|
|
1621
|
+
for (G.isObject(n) || C(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, l = i.length; o < l; o += 1)
|
|
1622
|
+
a = i[o], de.call(t, a) || (t[a] = n[a], r[a] = !0);
|
|
1621
1623
|
}
|
|
1622
|
-
function
|
|
1624
|
+
function Ce(e, t, n, r, i, a, o, l, s) {
|
|
1623
1625
|
var c, d;
|
|
1624
1626
|
if (Array.isArray(i))
|
|
1625
1627
|
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
1626
|
-
Array.isArray(i[c]) &&
|
|
1628
|
+
Array.isArray(i[c]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && mt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
|
|
1627
1629
|
if (typeof i == "object" && mt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
|
|
1628
1630
|
if (Array.isArray(a))
|
|
1629
1631
|
for (c = 0, d = a.length; c < d; c += 1)
|
|
@@ -1631,7 +1633,7 @@ function ye(e, t, n, r, i, a, o, l, s) {
|
|
|
1631
1633
|
else
|
|
1632
1634
|
vt(e, t, a, n);
|
|
1633
1635
|
else
|
|
1634
|
-
!e.json && !
|
|
1636
|
+
!e.json && !de.call(n, i) && de.call(t, i) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, C(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
|
|
1635
1637
|
configurable: !0,
|
|
1636
1638
|
enumerable: !0,
|
|
1637
1639
|
writable: !0,
|
|
@@ -1641,11 +1643,11 @@ function ye(e, t, n, r, i, a, o, l, s) {
|
|
|
1641
1643
|
}
|
|
1642
1644
|
function tt(e) {
|
|
1643
1645
|
var t;
|
|
1644
|
-
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1646
|
+
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1645
1647
|
}
|
|
1646
|
-
function
|
|
1648
|
+
function W(e, t, n) {
|
|
1647
1649
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1648
|
-
for (;
|
|
1650
|
+
for (; me(i); )
|
|
1649
1651
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1650
1652
|
if (t && i === 35)
|
|
1651
1653
|
do
|
|
@@ -1657,32 +1659,32 @@ function J(e, t, n) {
|
|
|
1657
1659
|
else
|
|
1658
1660
|
break;
|
|
1659
1661
|
}
|
|
1660
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
1662
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && Re(e, "deficient indentation"), r;
|
|
1661
1663
|
}
|
|
1662
|
-
function
|
|
1664
|
+
function De(e) {
|
|
1663
1665
|
var t = e.position, n;
|
|
1664
1666
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || te(n)));
|
|
1665
1667
|
}
|
|
1666
1668
|
function nt(e, t) {
|
|
1667
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
1669
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += G.repeat(`
|
|
1668
1670
|
`, t - 1));
|
|
1669
1671
|
}
|
|
1670
|
-
function
|
|
1671
|
-
var r, i, a, o, l, s, c, d, u = e.kind,
|
|
1672
|
-
if (f = e.input.charCodeAt(e.position), te(f) ||
|
|
1672
|
+
function Gi(e, t, n) {
|
|
1673
|
+
var r, i, a, o, l, s, c, d, u = e.kind, m = e.result, f;
|
|
1674
|
+
if (f = e.input.charCodeAt(e.position), te(f) || xe(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), te(i) || n && xe(i)))
|
|
1673
1675
|
return !1;
|
|
1674
1676
|
for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; f !== 0; ) {
|
|
1675
1677
|
if (f === 58) {
|
|
1676
|
-
if (i = e.input.charCodeAt(e.position + 1), te(i) || n &&
|
|
1678
|
+
if (i = e.input.charCodeAt(e.position + 1), te(i) || n && xe(i))
|
|
1677
1679
|
break;
|
|
1678
1680
|
} else if (f === 35) {
|
|
1679
1681
|
if (r = e.input.charCodeAt(e.position - 1), te(r))
|
|
1680
1682
|
break;
|
|
1681
1683
|
} else {
|
|
1682
|
-
if (e.position === e.lineStart &&
|
|
1684
|
+
if (e.position === e.lineStart && De(e) || n && xe(f))
|
|
1683
1685
|
break;
|
|
1684
1686
|
if (ae(f))
|
|
1685
|
-
if (s = e.line, c = e.lineStart, d = e.lineIndent,
|
|
1687
|
+
if (s = e.line, c = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
|
|
1686
1688
|
l = !0, f = e.input.charCodeAt(e.position);
|
|
1687
1689
|
continue;
|
|
1688
1690
|
} else {
|
|
@@ -1690,65 +1692,65 @@ function Wi(e, t, n) {
|
|
|
1690
1692
|
break;
|
|
1691
1693
|
}
|
|
1692
1694
|
}
|
|
1693
|
-
l && (
|
|
1695
|
+
l && (ce(e, a, o, !1), nt(e, e.line - s), a = o = e.position, l = !1), me(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1694
1696
|
}
|
|
1695
|
-
return
|
|
1697
|
+
return ce(e, a, o, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
|
|
1696
1698
|
}
|
|
1697
|
-
function
|
|
1699
|
+
function Zi(e, t) {
|
|
1698
1700
|
var n, r, i;
|
|
1699
1701
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1700
1702
|
return !1;
|
|
1701
1703
|
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
|
|
1702
1704
|
if (n === 39)
|
|
1703
|
-
if (
|
|
1705
|
+
if (ce(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
|
|
1704
1706
|
r = e.position, e.position++, i = e.position;
|
|
1705
1707
|
else
|
|
1706
1708
|
return !0;
|
|
1707
1709
|
else
|
|
1708
|
-
ae(n) ? (
|
|
1709
|
-
|
|
1710
|
+
ae(n) ? (ce(e, r, i, !0), nt(e, W(e, !1, t)), r = i = e.position) : e.position === e.lineStart && De(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1711
|
+
C(e, "unexpected end of the stream within a single quoted scalar");
|
|
1710
1712
|
}
|
|
1711
|
-
function
|
|
1713
|
+
function Qi(e, t) {
|
|
1712
1714
|
var n, r, i, a, o, l;
|
|
1713
1715
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1714
1716
|
return !1;
|
|
1715
1717
|
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1716
1718
|
if (l === 34)
|
|
1717
|
-
return
|
|
1719
|
+
return ce(e, n, e.position, !0), e.position++, !0;
|
|
1718
1720
|
if (l === 92) {
|
|
1719
|
-
if (
|
|
1720
|
-
|
|
1721
|
+
if (ce(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), ae(l))
|
|
1722
|
+
W(e, !1, t);
|
|
1721
1723
|
else if (l < 256 && un[l])
|
|
1722
1724
|
e.result += dn[l], e.position++;
|
|
1723
|
-
else if ((o =
|
|
1725
|
+
else if ((o = Yi(l)) > 0) {
|
|
1724
1726
|
for (i = o, a = 0; i > 0; i--)
|
|
1725
|
-
l = e.input.charCodeAt(++e.position), (o =
|
|
1726
|
-
e.result +=
|
|
1727
|
+
l = e.input.charCodeAt(++e.position), (o = Vi(l)) >= 0 ? a = (a << 4) + o : C(e, "expected hexadecimal character");
|
|
1728
|
+
e.result += Wi(a), e.position++;
|
|
1727
1729
|
} else
|
|
1728
|
-
|
|
1730
|
+
C(e, "unknown escape sequence");
|
|
1729
1731
|
n = r = e.position;
|
|
1730
1732
|
} else
|
|
1731
|
-
ae(l) ? (
|
|
1733
|
+
ae(l) ? (ce(e, n, r, !0), nt(e, W(e, !1, t)), n = r = e.position) : e.position === e.lineStart && De(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1732
1734
|
}
|
|
1733
|
-
|
|
1735
|
+
C(e, "unexpected end of the stream within a double quoted scalar");
|
|
1734
1736
|
}
|
|
1735
|
-
function
|
|
1736
|
-
var n = !0, r, i, a, o = e.tag, l, s = e.anchor, c, d, u,
|
|
1737
|
-
if (
|
|
1737
|
+
function Xi(e, t) {
|
|
1738
|
+
var n = !0, r, i, a, o = e.tag, l, s = e.anchor, c, d, u, m, f, x = /* @__PURE__ */ Object.create(null), v, w, M, E;
|
|
1739
|
+
if (E = e.input.charCodeAt(e.position), E === 91)
|
|
1738
1740
|
d = 93, f = !1, l = [];
|
|
1739
|
-
else if (
|
|
1741
|
+
else if (E === 123)
|
|
1740
1742
|
d = 125, f = !0, l = {};
|
|
1741
1743
|
else
|
|
1742
1744
|
return !1;
|
|
1743
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = l),
|
|
1744
|
-
if (
|
|
1745
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), E = e.input.charCodeAt(++e.position); E !== 0; ) {
|
|
1746
|
+
if (W(e, !0, t), E = e.input.charCodeAt(e.position), E === d)
|
|
1745
1747
|
return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1746
|
-
n ?
|
|
1748
|
+
n ? E === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), w = v = M = null, u = m = !1, E === 63 && (c = e.input.charCodeAt(e.position + 1), te(c) && (u = m = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, ke(e, t, Ne, !1, !0), w = e.tag, v = e.result, W(e, !0, t), E = e.input.charCodeAt(e.position), (m || e.line === r) && E === 58 && (u = !0, E = e.input.charCodeAt(++e.position), W(e, !0, t), ke(e, t, Ne, !1, !0), M = e.result), f ? Ce(e, l, x, w, v, M, r, i, a) : u ? l.push(Ce(e, null, x, w, v, M, r, i, a)) : l.push(v), W(e, !0, t), E = e.input.charCodeAt(e.position), E === 44 ? (n = !0, E = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1747
1749
|
}
|
|
1748
|
-
|
|
1750
|
+
C(e, "unexpected end of the stream within a flow collection");
|
|
1749
1751
|
}
|
|
1750
|
-
function
|
|
1751
|
-
var n, r, i =
|
|
1752
|
+
function ea(e, t) {
|
|
1753
|
+
var n, r, i = Pe, a = !1, o = !1, l = t, s = 0, c = !1, d, u;
|
|
1752
1754
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1753
1755
|
r = !1;
|
|
1754
1756
|
else if (u === 62)
|
|
@@ -1757,15 +1759,15 @@ function Qi(e, t) {
|
|
|
1757
1759
|
return !1;
|
|
1758
1760
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1759
1761
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1760
|
-
|
|
1761
|
-
else if ((d =
|
|
1762
|
-
d === 0 ?
|
|
1762
|
+
Pe === i ? i = u === 43 ? ht : Ui : C(e, "repeat of a chomping mode identifier");
|
|
1763
|
+
else if ((d = zi(u)) >= 0)
|
|
1764
|
+
d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
|
|
1763
1765
|
else
|
|
1764
1766
|
break;
|
|
1765
|
-
if (
|
|
1767
|
+
if (me(u)) {
|
|
1766
1768
|
do
|
|
1767
1769
|
u = e.input.charCodeAt(++e.position);
|
|
1768
|
-
while (
|
|
1770
|
+
while (me(u));
|
|
1769
1771
|
if (u === 35)
|
|
1770
1772
|
do
|
|
1771
1773
|
u = e.input.charCodeAt(++e.position);
|
|
@@ -1779,18 +1781,18 @@ function Qi(e, t) {
|
|
|
1779
1781
|
continue;
|
|
1780
1782
|
}
|
|
1781
1783
|
if (e.lineIndent < l) {
|
|
1782
|
-
i === ht ? e.result +=
|
|
1783
|
-
`, a ? 1 + s : s) : i ===
|
|
1784
|
+
i === ht ? e.result += G.repeat(`
|
|
1785
|
+
`, a ? 1 + s : s) : i === Pe && a && (e.result += `
|
|
1784
1786
|
`);
|
|
1785
1787
|
break;
|
|
1786
1788
|
}
|
|
1787
|
-
for (r ?
|
|
1788
|
-
`, a ? 1 + s : s)) : c ? (c = !1, e.result +=
|
|
1789
|
-
`, s + 1)) : s === 0 ? a && (e.result += " ") : e.result +=
|
|
1790
|
-
`, s) : e.result +=
|
|
1789
|
+
for (r ? me(u) ? (c = !0, e.result += G.repeat(`
|
|
1790
|
+
`, a ? 1 + s : s)) : c ? (c = !1, e.result += G.repeat(`
|
|
1791
|
+
`, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += G.repeat(`
|
|
1792
|
+
`, s) : e.result += G.repeat(`
|
|
1791
1793
|
`, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !ae(u) && u !== 0; )
|
|
1792
1794
|
u = e.input.charCodeAt(++e.position);
|
|
1793
|
-
|
|
1795
|
+
ce(e, n, e.position, !1);
|
|
1794
1796
|
}
|
|
1795
1797
|
return !0;
|
|
1796
1798
|
}
|
|
@@ -1798,120 +1800,120 @@ function bt(e, t) {
|
|
|
1798
1800
|
var n, r = e.tag, i = e.anchor, a = [], o, l = !1, s;
|
|
1799
1801
|
if (e.firstTabInLine !== -1)
|
|
1800
1802
|
return !1;
|
|
1801
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1802
|
-
if (l = !0, e.position++,
|
|
1803
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !te(o)))); ) {
|
|
1804
|
+
if (l = !0, e.position++, W(e, !0, -1) && e.lineIndent <= t) {
|
|
1803
1805
|
a.push(null), s = e.input.charCodeAt(e.position);
|
|
1804
1806
|
continue;
|
|
1805
1807
|
}
|
|
1806
|
-
if (n = e.line,
|
|
1807
|
-
|
|
1808
|
+
if (n = e.line, ke(e, t, ln, !1, !0), a.push(e.result), W(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1809
|
+
C(e, "bad indentation of a sequence entry");
|
|
1808
1810
|
else if (e.lineIndent < t)
|
|
1809
1811
|
break;
|
|
1810
1812
|
}
|
|
1811
1813
|
return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1812
1814
|
}
|
|
1813
|
-
function
|
|
1814
|
-
var r, i, a, o, l, s, c = e.tag, d = e.anchor, u = {},
|
|
1815
|
+
function ta(e, t, n) {
|
|
1816
|
+
var r, i, a, o, l, s, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, x = null, v = null, w = !1, M = !1, E;
|
|
1815
1817
|
if (e.firstTabInLine !== -1)
|
|
1816
1818
|
return !1;
|
|
1817
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = u),
|
|
1818
|
-
if (!
|
|
1819
|
-
|
|
1819
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), E = e.input.charCodeAt(e.position); E !== 0; ) {
|
|
1820
|
+
if (!w && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (E === 63 || E === 58) && te(r))
|
|
1821
|
+
E === 63 ? (w && (Ce(e, u, m, f, x, null, o, l, s), f = x = v = null), M = !0, w = !0, i = !0) : w ? (w = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, E = r;
|
|
1820
1822
|
else {
|
|
1821
|
-
if (o = e.line, l = e.lineStart, s = e.position, !
|
|
1823
|
+
if (o = e.line, l = e.lineStart, s = e.position, !ke(e, n, on, !1, !0))
|
|
1822
1824
|
break;
|
|
1823
1825
|
if (e.line === a) {
|
|
1824
|
-
for (
|
|
1825
|
-
|
|
1826
|
-
if (
|
|
1827
|
-
|
|
1828
|
-
else if (
|
|
1829
|
-
|
|
1826
|
+
for (E = e.input.charCodeAt(e.position); me(E); )
|
|
1827
|
+
E = e.input.charCodeAt(++e.position);
|
|
1828
|
+
if (E === 58)
|
|
1829
|
+
E = e.input.charCodeAt(++e.position), te(E) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), w && (Ce(e, u, m, f, x, null, o, l, s), f = x = v = null), M = !0, w = !1, i = !1, f = e.tag, x = e.result;
|
|
1830
|
+
else if (M)
|
|
1831
|
+
C(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1830
1832
|
else
|
|
1831
1833
|
return e.tag = c, e.anchor = d, !0;
|
|
1832
|
-
} else if (
|
|
1833
|
-
|
|
1834
|
+
} else if (M)
|
|
1835
|
+
C(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1834
1836
|
else
|
|
1835
1837
|
return e.tag = c, e.anchor = d, !0;
|
|
1836
1838
|
}
|
|
1837
|
-
if ((e.line === a || e.lineIndent > t) && (
|
|
1838
|
-
|
|
1839
|
+
if ((e.line === a || e.lineIndent > t) && (w && (o = e.line, l = e.lineStart, s = e.position), ke(e, t, Be, !0, i) && (w ? x = e.result : v = e.result), w || (Ce(e, u, m, f, x, v, o, l, s), f = x = v = null), W(e, !0, -1), E = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && E !== 0)
|
|
1840
|
+
C(e, "bad indentation of a mapping entry");
|
|
1839
1841
|
else if (e.lineIndent < t)
|
|
1840
1842
|
break;
|
|
1841
1843
|
}
|
|
1842
|
-
return
|
|
1844
|
+
return w && Ce(e, u, m, f, x, null, o, l, s), M && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), M;
|
|
1843
1845
|
}
|
|
1844
|
-
function
|
|
1846
|
+
function na(e) {
|
|
1845
1847
|
var t, n = !1, r = !1, i, a, o;
|
|
1846
1848
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
1847
1849
|
return !1;
|
|
1848
|
-
if (e.tag !== null &&
|
|
1850
|
+
if (e.tag !== null && C(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
|
|
1849
1851
|
do
|
|
1850
1852
|
o = e.input.charCodeAt(++e.position);
|
|
1851
1853
|
while (o !== 0 && o !== 62);
|
|
1852
|
-
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
1854
|
+
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : C(e, "unexpected end of the stream within a verbatim tag");
|
|
1853
1855
|
} else {
|
|
1854
1856
|
for (; o !== 0 && !te(o); )
|
|
1855
|
-
o === 33 && (r ?
|
|
1856
|
-
a = e.input.slice(t, e.position),
|
|
1857
|
+
o === 33 && (r ? C(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), sn.test(i) || C(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
1858
|
+
a = e.input.slice(t, e.position), Hi.test(a) && C(e, "tag suffix cannot contain flow indicator characters");
|
|
1857
1859
|
}
|
|
1858
|
-
a && !cn.test(a) &&
|
|
1860
|
+
a && !cn.test(a) && C(e, "tag name cannot contain such characters: " + a);
|
|
1859
1861
|
try {
|
|
1860
1862
|
a = decodeURIComponent(a);
|
|
1861
1863
|
} catch {
|
|
1862
|
-
|
|
1864
|
+
C(e, "tag name is malformed: " + a);
|
|
1863
1865
|
}
|
|
1864
|
-
return n ? e.tag = a :
|
|
1866
|
+
return n ? e.tag = a : de.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : C(e, 'undeclared tag handle "' + i + '"'), !0;
|
|
1865
1867
|
}
|
|
1866
|
-
function
|
|
1868
|
+
function ra(e) {
|
|
1867
1869
|
var t, n;
|
|
1868
1870
|
if (n = e.input.charCodeAt(e.position), n !== 38)
|
|
1869
1871
|
return !1;
|
|
1870
|
-
for (e.anchor !== null &&
|
|
1872
|
+
for (e.anchor !== null && C(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !te(n) && !xe(n); )
|
|
1871
1873
|
n = e.input.charCodeAt(++e.position);
|
|
1872
|
-
return e.position === t &&
|
|
1874
|
+
return e.position === t && C(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1873
1875
|
}
|
|
1874
|
-
function
|
|
1876
|
+
function ia(e) {
|
|
1875
1877
|
var t, n, r;
|
|
1876
1878
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
1877
1879
|
return !1;
|
|
1878
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !te(r) && !
|
|
1880
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !te(r) && !xe(r); )
|
|
1879
1881
|
r = e.input.charCodeAt(++e.position);
|
|
1880
|
-
return e.position === t &&
|
|
1881
|
-
}
|
|
1882
|
-
function
|
|
1883
|
-
var a, o, l, s = 1, c = !1, d = !1, u,
|
|
1884
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l =
|
|
1885
|
-
for (;
|
|
1886
|
-
|
|
1887
|
-
if (l && (l = c || i), (s === 1 ||
|
|
1882
|
+
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), de.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
|
|
1883
|
+
}
|
|
1884
|
+
function ke(e, t, n, r, i) {
|
|
1885
|
+
var a, o, l, s = 1, c = !1, d = !1, u, m, f, x, v, w;
|
|
1886
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Be === n || ln === n, r && W(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1887
|
+
for (; na(e) || ra(e); )
|
|
1888
|
+
W(e, !0, -1) ? (c = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1889
|
+
if (l && (l = c || i), (s === 1 || Be === n) && (Ne === n || on === n ? v = t : v = t + 1, w = e.position - e.lineStart, s === 1 ? l && (bt(e, w) || ta(e, w, v)) || Xi(e, v) ? d = !0 : (o && ea(e, v) || Zi(e, v) || Qi(e, v) ? d = !0 : ia(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : Gi(e, v, Ne === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && bt(e, w))), e.tag === null)
|
|
1888
1890
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1889
1891
|
else if (e.tag === "?") {
|
|
1890
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
1891
|
-
if (
|
|
1892
|
-
e.result =
|
|
1892
|
+
for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
1893
|
+
if (x = e.implicitTypes[u], x.resolve(e.result)) {
|
|
1894
|
+
e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1893
1895
|
break;
|
|
1894
1896
|
}
|
|
1895
1897
|
} else if (e.tag !== "!") {
|
|
1896
|
-
if (
|
|
1897
|
-
|
|
1898
|
+
if (de.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1899
|
+
x = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1898
1900
|
else
|
|
1899
|
-
for (
|
|
1901
|
+
for (x = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
|
|
1900
1902
|
if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
|
|
1901
|
-
|
|
1903
|
+
x = f[u];
|
|
1902
1904
|
break;
|
|
1903
1905
|
}
|
|
1904
|
-
|
|
1906
|
+
x || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1905
1907
|
}
|
|
1906
1908
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1907
1909
|
}
|
|
1908
|
-
function
|
|
1910
|
+
function aa(e) {
|
|
1909
1911
|
var t = e.position, n, r, i, a = !1, o;
|
|
1910
|
-
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 && (
|
|
1912
|
+
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 && (W(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
1911
1913
|
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !te(o); )
|
|
1912
1914
|
o = e.input.charCodeAt(++e.position);
|
|
1913
|
-
for (r = e.input.slice(n, e.position), i = [], r.length < 1 &&
|
|
1914
|
-
for (;
|
|
1915
|
+
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
1916
|
+
for (; me(o); )
|
|
1915
1917
|
o = e.input.charCodeAt(++e.position);
|
|
1916
1918
|
if (o === 35) {
|
|
1917
1919
|
do
|
|
@@ -1925,28 +1927,28 @@ function ra(e) {
|
|
|
1925
1927
|
o = e.input.charCodeAt(++e.position);
|
|
1926
1928
|
i.push(e.input.slice(n, e.position));
|
|
1927
1929
|
}
|
|
1928
|
-
o !== 0 && tt(e),
|
|
1930
|
+
o !== 0 && tt(e), de.call(yt, r) ? yt[r](e, r, i) : Re(e, 'unknown document directive "' + r + '"');
|
|
1929
1931
|
}
|
|
1930
|
-
if (
|
|
1931
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1932
|
+
if (W(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, W(e, !0, -1)) : a && C(e, "directives end mark is expected"), ke(e, e.lineIndent - 1, Be, !1, !0), W(e, !0, -1), e.checkLineBreaks && Pi.test(e.input.slice(t, e.position)) && Re(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && De(e)) {
|
|
1933
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
|
|
1932
1934
|
return;
|
|
1933
1935
|
}
|
|
1934
1936
|
if (e.position < e.length - 1)
|
|
1935
|
-
|
|
1937
|
+
C(e, "end of the stream or a document separator is expected");
|
|
1936
1938
|
else
|
|
1937
1939
|
return;
|
|
1938
1940
|
}
|
|
1939
1941
|
function pn(e, t) {
|
|
1940
1942
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1941
1943
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1942
|
-
var n = new
|
|
1943
|
-
for (r !== -1 && (n.position = r,
|
|
1944
|
+
var n = new Ji(e, t), r = e.indexOf("\0");
|
|
1945
|
+
for (r !== -1 && (n.position = r, C(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
1944
1946
|
n.lineIndent += 1, n.position += 1;
|
|
1945
1947
|
for (; n.position < n.length - 1; )
|
|
1946
|
-
|
|
1948
|
+
aa(n);
|
|
1947
1949
|
return n.documents;
|
|
1948
1950
|
}
|
|
1949
|
-
function
|
|
1951
|
+
function oa(e, t, n) {
|
|
1950
1952
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
1951
1953
|
var r = pn(e, n);
|
|
1952
1954
|
if (typeof t != "function")
|
|
@@ -1954,34 +1956,34 @@ function ia(e, t, n) {
|
|
|
1954
1956
|
for (var i = 0, a = r.length; i < a; i += 1)
|
|
1955
1957
|
t(r[i]);
|
|
1956
1958
|
}
|
|
1957
|
-
function
|
|
1959
|
+
function la(e, t) {
|
|
1958
1960
|
var n = pn(e, t);
|
|
1959
1961
|
if (n.length !== 0) {
|
|
1960
1962
|
if (n.length === 1)
|
|
1961
1963
|
return n[0];
|
|
1962
|
-
throw new
|
|
1964
|
+
throw new X("expected a single document in the stream, but found more");
|
|
1963
1965
|
}
|
|
1964
1966
|
}
|
|
1965
|
-
var
|
|
1966
|
-
loadAll:
|
|
1967
|
-
load:
|
|
1968
|
-
}, mn = Object.prototype.toString, gn = Object.prototype.hasOwnProperty, rt = 65279,
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
var
|
|
1967
|
+
var sa = oa, ca = la, hn = {
|
|
1968
|
+
loadAll: sa,
|
|
1969
|
+
load: ca
|
|
1970
|
+
}, mn = Object.prototype.toString, gn = Object.prototype.hasOwnProperty, rt = 65279, ua = 9, Ie = 10, da = 13, fa = 32, pa = 33, ha = 34, Ye = 35, ma = 37, ga = 38, ya = 39, va = 42, yn = 44, ba = 45, Ke = 58, xa = 61, Ca = 62, _a = 63, ka = 64, vn = 91, bn = 93, Aa = 96, xn = 123, wa = 124, Cn = 125, Q = {};
|
|
1971
|
+
Q[0] = "\\0";
|
|
1972
|
+
Q[7] = "\\a";
|
|
1973
|
+
Q[8] = "\\b";
|
|
1974
|
+
Q[9] = "\\t";
|
|
1975
|
+
Q[10] = "\\n";
|
|
1976
|
+
Q[11] = "\\v";
|
|
1977
|
+
Q[12] = "\\f";
|
|
1978
|
+
Q[13] = "\\r";
|
|
1979
|
+
Q[27] = "\\e";
|
|
1980
|
+
Q[34] = '\\"';
|
|
1981
|
+
Q[92] = "\\\\";
|
|
1982
|
+
Q[133] = "\\N";
|
|
1983
|
+
Q[160] = "\\_";
|
|
1984
|
+
Q[8232] = "\\L";
|
|
1985
|
+
Q[8233] = "\\P";
|
|
1986
|
+
var Sa = [
|
|
1985
1987
|
"y",
|
|
1986
1988
|
"Y",
|
|
1987
1989
|
"yes",
|
|
@@ -1998,8 +2000,8 @@ var Aa = [
|
|
|
1998
2000
|
"off",
|
|
1999
2001
|
"Off",
|
|
2000
2002
|
"OFF"
|
|
2001
|
-
],
|
|
2002
|
-
function
|
|
2003
|
+
], Ia = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2004
|
+
function Ea(e, t) {
|
|
2003
2005
|
var n, r, i, a, o, l, s;
|
|
2004
2006
|
if (t === null)
|
|
2005
2007
|
return {};
|
|
@@ -2007,7 +2009,7 @@ function Sa(e, t) {
|
|
|
2007
2009
|
o = r[i], l = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), s = e.compiledTypeMap.fallback[o], s && gn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[o] = l;
|
|
2008
2010
|
return n;
|
|
2009
2011
|
}
|
|
2010
|
-
function
|
|
2012
|
+
function Ta(e) {
|
|
2011
2013
|
var t, n, r;
|
|
2012
2014
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2013
2015
|
n = "x", r = 2;
|
|
@@ -2016,15 +2018,15 @@ function Ia(e) {
|
|
|
2016
2018
|
else if (e <= 4294967295)
|
|
2017
2019
|
n = "U", r = 8;
|
|
2018
2020
|
else
|
|
2019
|
-
throw new
|
|
2020
|
-
return "\\" + n +
|
|
2021
|
+
throw new X("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2022
|
+
return "\\" + n + G.repeat("0", r - t.length) + t;
|
|
2021
2023
|
}
|
|
2022
|
-
var
|
|
2023
|
-
function
|
|
2024
|
-
this.schema = e.schema || et, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel =
|
|
2024
|
+
var Fa = 1, Ee = 2;
|
|
2025
|
+
function Oa(e) {
|
|
2026
|
+
this.schema = e.schema || et, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = G.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ea(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 === '"' ? Ee : Fa, 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;
|
|
2025
2027
|
}
|
|
2026
2028
|
function xt(e, t) {
|
|
2027
|
-
for (var n =
|
|
2029
|
+
for (var n = G.repeat(" ", t), r = 0, i = -1, a = "", o, l = e.length; r < l; )
|
|
2028
2030
|
i = e.indexOf(`
|
|
2029
2031
|
`, r), i === -1 ? (o = e.slice(r), r = l) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== `
|
|
2030
2032
|
` && (a += n), a += o;
|
|
@@ -2032,39 +2034,39 @@ function xt(e, t) {
|
|
|
2032
2034
|
}
|
|
2033
2035
|
function ze(e, t) {
|
|
2034
2036
|
return `
|
|
2035
|
-
` +
|
|
2037
|
+
` + G.repeat(" ", e.indent * t);
|
|
2036
2038
|
}
|
|
2037
|
-
function
|
|
2039
|
+
function $a(e, t) {
|
|
2038
2040
|
var n, r, i;
|
|
2039
2041
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
|
|
2040
2042
|
if (i = e.implicitTypes[n], i.resolve(t))
|
|
2041
2043
|
return !0;
|
|
2042
2044
|
return !1;
|
|
2043
2045
|
}
|
|
2044
|
-
function
|
|
2045
|
-
return e ===
|
|
2046
|
+
function Me(e) {
|
|
2047
|
+
return e === fa || e === ua;
|
|
2046
2048
|
}
|
|
2047
2049
|
function Te(e) {
|
|
2048
2050
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== rt || 65536 <= e && e <= 1114111;
|
|
2049
2051
|
}
|
|
2050
2052
|
function Ct(e) {
|
|
2051
|
-
return Te(e) && e !== rt && e !==
|
|
2053
|
+
return Te(e) && e !== rt && e !== da && e !== Ie;
|
|
2052
2054
|
}
|
|
2053
2055
|
function _t(e, t, n) {
|
|
2054
|
-
var r = Ct(e), i = r && !
|
|
2056
|
+
var r = Ct(e), i = r && !Me(e);
|
|
2055
2057
|
return (
|
|
2056
2058
|
// ns-plain-safe
|
|
2057
2059
|
(n ? (
|
|
2058
2060
|
// c = flow-in
|
|
2059
2061
|
r
|
|
2060
|
-
) : r && e !== yn && e !== vn && e !== bn && e !== xn && e !== Cn) && e !== Ye && !(t ===
|
|
2062
|
+
) : r && e !== yn && e !== vn && e !== bn && e !== xn && e !== Cn) && e !== Ye && !(t === Ke && !i) || Ct(t) && !Me(t) && e === Ye || t === Ke && i
|
|
2061
2063
|
);
|
|
2062
2064
|
}
|
|
2063
|
-
function
|
|
2064
|
-
return Te(e) && e !== rt && !
|
|
2065
|
+
function La(e) {
|
|
2066
|
+
return Te(e) && e !== rt && !Me(e) && e !== ba && e !== _a && e !== Ke && e !== yn && e !== vn && e !== bn && e !== xn && e !== Cn && e !== Ye && e !== ga && e !== va && e !== pa && e !== wa && e !== xa && e !== Ca && e !== ya && e !== ha && e !== ma && e !== ka && e !== Aa;
|
|
2065
2067
|
}
|
|
2066
|
-
function
|
|
2067
|
-
return !
|
|
2068
|
+
function Na(e) {
|
|
2069
|
+
return !Me(e) && e !== Ke;
|
|
2068
2070
|
}
|
|
2069
2071
|
function we(e, t) {
|
|
2070
2072
|
var n = e.charCodeAt(t), r;
|
|
@@ -2074,39 +2076,39 @@ function _n(e) {
|
|
|
2074
2076
|
var t = /^\n* /;
|
|
2075
2077
|
return t.test(e);
|
|
2076
2078
|
}
|
|
2077
|
-
var kn = 1, We = 2, An = 3, wn = 4,
|
|
2078
|
-
function
|
|
2079
|
-
var s, c = 0, d = null, u = !1,
|
|
2079
|
+
var kn = 1, We = 2, An = 3, wn = 4, be = 5;
|
|
2080
|
+
function Ba(e, t, n, r, i, a, o, l) {
|
|
2081
|
+
var s, c = 0, d = null, u = !1, m = !1, f = r !== -1, x = -1, v = La(we(e, 0)) && Na(we(e, e.length - 1));
|
|
2080
2082
|
if (t || o)
|
|
2081
2083
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2082
2084
|
if (c = we(e, s), !Te(c))
|
|
2083
|
-
return
|
|
2084
|
-
|
|
2085
|
+
return be;
|
|
2086
|
+
v = v && _t(c, d, l), d = c;
|
|
2085
2087
|
}
|
|
2086
2088
|
else {
|
|
2087
2089
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2088
2090
|
if (c = we(e, s), c === Ie)
|
|
2089
|
-
u = !0, f && (
|
|
2090
|
-
s -
|
|
2091
|
+
u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
|
|
2092
|
+
s - x - 1 > r && e[x + 1] !== " ", x = s);
|
|
2091
2093
|
else if (!Te(c))
|
|
2092
|
-
return
|
|
2093
|
-
|
|
2094
|
+
return be;
|
|
2095
|
+
v = v && _t(c, d, l), d = c;
|
|
2094
2096
|
}
|
|
2095
|
-
|
|
2097
|
+
m = m || f && s - x - 1 > r && e[x + 1] !== " ";
|
|
2096
2098
|
}
|
|
2097
|
-
return !u && !
|
|
2099
|
+
return !u && !m ? v && !o && !i(e) ? kn : a === Ee ? be : We : n > 9 && _n(e) ? be : o ? a === Ee ? be : We : m ? wn : An;
|
|
2098
2100
|
}
|
|
2099
|
-
function
|
|
2101
|
+
function Ra(e, t, n, r, i) {
|
|
2100
2102
|
e.dump = function() {
|
|
2101
2103
|
if (t.length === 0)
|
|
2102
2104
|
return e.quotingType === Ee ? '""' : "''";
|
|
2103
|
-
if (!e.noCompatMode && (
|
|
2105
|
+
if (!e.noCompatMode && (Sa.indexOf(t) !== -1 || Ia.test(t)))
|
|
2104
2106
|
return e.quotingType === Ee ? '"' + t + '"' : "'" + t + "'";
|
|
2105
2107
|
var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2106
2108
|
function s(c) {
|
|
2107
|
-
return
|
|
2109
|
+
return $a(e, c);
|
|
2108
2110
|
}
|
|
2109
|
-
switch (
|
|
2111
|
+
switch (Ba(
|
|
2110
2112
|
t,
|
|
2111
2113
|
l,
|
|
2112
2114
|
e.indent,
|
|
@@ -2123,11 +2125,11 @@ function Na(e, t, n, r, i) {
|
|
|
2123
2125
|
case An:
|
|
2124
2126
|
return "|" + kt(t, e.indent) + At(xt(t, a));
|
|
2125
2127
|
case wn:
|
|
2126
|
-
return ">" + kt(t, e.indent) + At(xt(
|
|
2127
|
-
case
|
|
2128
|
-
return '"' +
|
|
2128
|
+
return ">" + kt(t, e.indent) + At(xt(Ka(t, o), a));
|
|
2129
|
+
case be:
|
|
2130
|
+
return '"' + Ma(t) + '"';
|
|
2129
2131
|
default:
|
|
2130
|
-
throw new
|
|
2132
|
+
throw new X("impossible error: invalid scalar style");
|
|
2131
2133
|
}
|
|
2132
2134
|
}();
|
|
2133
2135
|
}
|
|
@@ -2143,7 +2145,7 @@ function At(e) {
|
|
|
2143
2145
|
return e[e.length - 1] === `
|
|
2144
2146
|
` ? e.slice(0, -1) : e;
|
|
2145
2147
|
}
|
|
2146
|
-
function
|
|
2148
|
+
function Ka(e, t) {
|
|
2147
2149
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2148
2150
|
var c = e.indexOf(`
|
|
2149
2151
|
`);
|
|
@@ -2166,39 +2168,39 @@ function wt(e, t) {
|
|
|
2166
2168
|
`, e.length - i > t && o > i ? s += e.slice(i, o) + `
|
|
2167
2169
|
` + e.slice(o + 1) : s += e.slice(i), s.slice(1);
|
|
2168
2170
|
}
|
|
2169
|
-
function
|
|
2171
|
+
function Ma(e) {
|
|
2170
2172
|
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
|
|
2171
|
-
n = we(e, i), r =
|
|
2173
|
+
n = we(e, i), r = Q[n], !r && Te(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Ta(n);
|
|
2172
2174
|
return t;
|
|
2173
2175
|
}
|
|
2174
|
-
function
|
|
2176
|
+
function Da(e, t, n) {
|
|
2175
2177
|
var r = "", i = e.tag, a, o, l;
|
|
2176
2178
|
for (a = 0, o = n.length; a < o; a += 1)
|
|
2177
|
-
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (
|
|
2179
|
+
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (se(e, t, l, !1, !1) || typeof l > "u" && se(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2178
2180
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2179
2181
|
}
|
|
2180
2182
|
function St(e, t, n, r) {
|
|
2181
2183
|
var i = "", a = e.tag, o, l, s;
|
|
2182
2184
|
for (o = 0, l = n.length; o < l; o += 1)
|
|
2183
|
-
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (
|
|
2185
|
+
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (se(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && se(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += ze(e, t)), e.dump && Ie === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2184
2186
|
e.tag = a, e.dump = i || "[]";
|
|
2185
2187
|
}
|
|
2186
|
-
function
|
|
2188
|
+
function ja(e, t, n) {
|
|
2187
2189
|
var r = "", i = e.tag, a = Object.keys(n), o, l, s, c, d;
|
|
2188
2190
|
for (o = 0, l = a.length; o < l; o += 1)
|
|
2189
|
-
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)),
|
|
2191
|
+
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), se(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), se(e, t, c, !1, !1) && (d += e.dump, r += d));
|
|
2190
2192
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2191
2193
|
}
|
|
2192
|
-
function
|
|
2193
|
-
var i = "", a = e.tag, o = Object.keys(n), l, s, c, d, u,
|
|
2194
|
+
function Ua(e, t, n, r) {
|
|
2195
|
+
var i = "", a = e.tag, o = Object.keys(n), l, s, c, d, u, m;
|
|
2194
2196
|
if (e.sortKeys === !0)
|
|
2195
2197
|
o.sort();
|
|
2196
2198
|
else if (typeof e.sortKeys == "function")
|
|
2197
2199
|
o.sort(e.sortKeys);
|
|
2198
2200
|
else if (e.sortKeys)
|
|
2199
|
-
throw new
|
|
2201
|
+
throw new X("sortKeys must be a boolean or a function");
|
|
2200
2202
|
for (l = 0, s = o.length; l < s; l += 1)
|
|
2201
|
-
|
|
2203
|
+
m = "", (!r || i !== "") && (m += ze(e, t)), c = o[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), se(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ie === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += ze(e, t)), se(e, t + 1, d, !0, u) && (e.dump && Ie === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, i += m));
|
|
2202
2204
|
e.tag = a, e.dump = i || "{}";
|
|
2203
2205
|
}
|
|
2204
2206
|
function It(e, t, n) {
|
|
@@ -2211,33 +2213,33 @@ function It(e, t, n) {
|
|
|
2211
2213
|
else if (gn.call(l.represent, s))
|
|
2212
2214
|
r = l.represent[s](t, s);
|
|
2213
2215
|
else
|
|
2214
|
-
throw new
|
|
2216
|
+
throw new X("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
2215
2217
|
e.dump = r;
|
|
2216
2218
|
}
|
|
2217
2219
|
return !0;
|
|
2218
2220
|
}
|
|
2219
2221
|
return !1;
|
|
2220
2222
|
}
|
|
2221
|
-
function
|
|
2223
|
+
function se(e, t, n, r, i, a, o) {
|
|
2222
2224
|
e.tag = null, e.dump = n, It(e, n, !1) || It(e, n, !0);
|
|
2223
2225
|
var l = mn.call(e.dump), s = r, c;
|
|
2224
2226
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
2225
|
-
var d = l === "[object Object]" || l === "[object Array]", u,
|
|
2226
|
-
if (d && (u = e.duplicates.indexOf(n),
|
|
2227
|
+
var d = l === "[object Object]" || l === "[object Array]", u, m;
|
|
2228
|
+
if (d && (u = e.duplicates.indexOf(n), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (i = !1), m && e.usedDuplicates[u])
|
|
2227
2229
|
e.dump = "*ref_" + u;
|
|
2228
2230
|
else {
|
|
2229
|
-
if (d &&
|
|
2230
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2231
|
+
if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2232
|
+
r && Object.keys(e.dump).length !== 0 ? (Ua(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (ja(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2231
2233
|
else if (l === "[object Array]")
|
|
2232
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? St(e, t - 1, e.dump, i) : St(e, t, e.dump, i),
|
|
2234
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? St(e, t - 1, e.dump, i) : St(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (Da(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2233
2235
|
else if (l === "[object String]")
|
|
2234
|
-
e.tag !== "?" &&
|
|
2236
|
+
e.tag !== "?" && Ra(e, e.dump, t, a, s);
|
|
2235
2237
|
else {
|
|
2236
2238
|
if (l === "[object Undefined]")
|
|
2237
2239
|
return !1;
|
|
2238
2240
|
if (e.skipInvalid)
|
|
2239
2241
|
return !1;
|
|
2240
|
-
throw new
|
|
2242
|
+
throw new X("unacceptable kind of an object to dump " + l);
|
|
2241
2243
|
}
|
|
2242
2244
|
e.tag !== null && e.tag !== "?" && (c = encodeURI(
|
|
2243
2245
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
@@ -2245,7 +2247,7 @@ function le(e, t, n, r, i, a, o) {
|
|
|
2245
2247
|
}
|
|
2246
2248
|
return !0;
|
|
2247
2249
|
}
|
|
2248
|
-
function
|
|
2250
|
+
function qa(e, t) {
|
|
2249
2251
|
var n = [], r = [], i, a;
|
|
2250
2252
|
for (Je(e, n, r), i = 0, a = r.length; i < a; i += 1)
|
|
2251
2253
|
t.duplicates.push(n[r[i]]);
|
|
@@ -2263,26 +2265,26 @@ function Je(e, t, n) {
|
|
|
2263
2265
|
for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
2264
2266
|
Je(e[r[i]], t, n);
|
|
2265
2267
|
}
|
|
2266
|
-
function
|
|
2268
|
+
function Pa(e, t) {
|
|
2267
2269
|
t = t || {};
|
|
2268
|
-
var n = new
|
|
2269
|
-
n.noRefs ||
|
|
2270
|
+
var n = new Oa(t);
|
|
2271
|
+
n.noRefs || qa(e, n);
|
|
2270
2272
|
var r = e;
|
|
2271
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
2273
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), se(n, 0, r, !0, !0) ? n.dump + `
|
|
2272
2274
|
` : "";
|
|
2273
2275
|
}
|
|
2274
|
-
var
|
|
2275
|
-
dump:
|
|
2276
|
+
var Ha = Pa, Va = {
|
|
2277
|
+
dump: Ha
|
|
2276
2278
|
};
|
|
2277
2279
|
function it(e, t) {
|
|
2278
2280
|
return function() {
|
|
2279
2281
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2280
2282
|
};
|
|
2281
2283
|
}
|
|
2282
|
-
var
|
|
2284
|
+
var Ya = Z, za = jt, Wa = Ht, Ja = Jt, Ga = Gt, Za = et, Qa = hn.load, Xa = hn.loadAll, eo = Va.dump, to = X, no = {
|
|
2283
2285
|
binary: tn,
|
|
2284
2286
|
float: Wt,
|
|
2285
|
-
map:
|
|
2287
|
+
map: Pt,
|
|
2286
2288
|
null: Vt,
|
|
2287
2289
|
pairs: rn,
|
|
2288
2290
|
set: an,
|
|
@@ -2291,25 +2293,25 @@ var Ha = Q, Va = jt, Ya = Ht, za = Jt, Wa = Gt, Ja = et, Ga = hn.load, Za = hn.l
|
|
|
2291
2293
|
int: zt,
|
|
2292
2294
|
merge: en,
|
|
2293
2295
|
omap: nn,
|
|
2294
|
-
seq:
|
|
2296
|
+
seq: qt,
|
|
2295
2297
|
str: Ut
|
|
2296
|
-
},
|
|
2297
|
-
Type:
|
|
2298
|
-
Schema:
|
|
2299
|
-
FAILSAFE_SCHEMA:
|
|
2300
|
-
JSON_SCHEMA:
|
|
2301
|
-
CORE_SCHEMA:
|
|
2302
|
-
DEFAULT_SCHEMA:
|
|
2303
|
-
load:
|
|
2304
|
-
loadAll:
|
|
2305
|
-
dump:
|
|
2306
|
-
YAMLException:
|
|
2307
|
-
types:
|
|
2308
|
-
safeLoad:
|
|
2309
|
-
safeLoadAll:
|
|
2310
|
-
safeDump:
|
|
2298
|
+
}, ro = it("safeLoad", "load"), io = it("safeLoadAll", "loadAll"), ao = it("safeDump", "dump"), oo = {
|
|
2299
|
+
Type: Ya,
|
|
2300
|
+
Schema: za,
|
|
2301
|
+
FAILSAFE_SCHEMA: Wa,
|
|
2302
|
+
JSON_SCHEMA: Ja,
|
|
2303
|
+
CORE_SCHEMA: Ga,
|
|
2304
|
+
DEFAULT_SCHEMA: Za,
|
|
2305
|
+
load: Qa,
|
|
2306
|
+
loadAll: Xa,
|
|
2307
|
+
dump: eo,
|
|
2308
|
+
YAMLException: to,
|
|
2309
|
+
types: no,
|
|
2310
|
+
safeLoad: ro,
|
|
2311
|
+
safeLoadAll: io,
|
|
2312
|
+
safeDump: ao
|
|
2311
2313
|
};
|
|
2312
|
-
const
|
|
2314
|
+
const lo = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
2313
2315
|
__name: "YamlCodeBlock",
|
|
2314
2316
|
props: {
|
|
2315
2317
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2319,30 +2321,30 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2319
2321
|
}
|
|
2320
2322
|
},
|
|
2321
2323
|
setup(e) {
|
|
2322
|
-
const t = e, n =
|
|
2324
|
+
const t = e, n = k(() => {
|
|
2323
2325
|
const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i && (Array.isArray(i) ? i.length !== 0 : !0)));
|
|
2324
|
-
return Object.keys(r).length === 0 && r.constructor === Object ? "" :
|
|
2326
|
+
return Object.keys(r).length === 0 && r.constructor === Object ? "" : oo.dump(r).trim();
|
|
2325
2327
|
});
|
|
2326
2328
|
return (r, i) => {
|
|
2327
|
-
const a =
|
|
2328
|
-
return
|
|
2329
|
-
t.yamlRecord ? (
|
|
2329
|
+
const a = B("KCodeBlock");
|
|
2330
|
+
return p(), A("div", lo, [
|
|
2331
|
+
t.yamlRecord ? (p(), K(a, {
|
|
2330
2332
|
key: 0,
|
|
2331
2333
|
id: "yaml-codeblock",
|
|
2332
2334
|
code: n.value,
|
|
2333
2335
|
language: "yaml",
|
|
2334
2336
|
theme: "dark"
|
|
2335
|
-
}, null, 8, ["code"])) :
|
|
2337
|
+
}, null, 8, ["code"])) : D("", !0)
|
|
2336
2338
|
]);
|
|
2337
2339
|
};
|
|
2338
2340
|
}
|
|
2339
|
-
}),
|
|
2341
|
+
}), so = {
|
|
2340
2342
|
key: 0,
|
|
2341
2343
|
class: "config-card-display-form"
|
|
2342
|
-
},
|
|
2344
|
+
}, co = ["data-testid"], uo = {
|
|
2343
2345
|
key: 0,
|
|
2344
2346
|
class: "config-card-prop-section-title"
|
|
2345
|
-
},
|
|
2347
|
+
}, fo = /* @__PURE__ */ H({
|
|
2346
2348
|
__name: "ConfigCardDisplay",
|
|
2347
2349
|
props: {
|
|
2348
2350
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2381,28 +2383,28 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2381
2383
|
}
|
|
2382
2384
|
},
|
|
2383
2385
|
setup(e) {
|
|
2384
|
-
const t = e, n = Ge(), { i18n: { t: r } } =
|
|
2386
|
+
const t = e, n = Ge(), { i18n: { t: r } } = z.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = k(() => {
|
|
2385
2387
|
if (!t.record)
|
|
2386
2388
|
return t.record;
|
|
2387
2389
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
2388
2390
|
return delete o.created_at, delete o.updated_at, o;
|
|
2389
2391
|
});
|
|
2390
|
-
return (o, l) => (
|
|
2391
|
-
e.format === "structured" ? (
|
|
2392
|
-
(
|
|
2392
|
+
return (o, l) => (p(), A(le, null, [
|
|
2393
|
+
e.format === "structured" ? (p(), A("div", so, [
|
|
2394
|
+
(p(!0), A(le, null, ie(e.propListTypes, (s) => (p(), A("div", {
|
|
2393
2395
|
key: `config-card-details-${s}-props`,
|
|
2394
|
-
class:
|
|
2396
|
+
class: ue(`config-card-details-${s}-props`),
|
|
2395
2397
|
"data-testid": `config-card-details-${s}-props`
|
|
2396
2398
|
}, [
|
|
2397
|
-
s !== "basic" ? (
|
|
2398
|
-
(
|
|
2399
|
+
s !== "basic" ? (p(), A("div", uo, O(s === "advanced" ? I(r)("baseConfigCard.sections.advanced") : I(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2400
|
+
(p(!0), A(le, null, ie(e.propertyCollections[s], (c) => (p(), K(Rt, {
|
|
2399
2401
|
key: c.key,
|
|
2400
2402
|
item: c
|
|
2401
|
-
},
|
|
2402
|
-
label:
|
|
2403
|
+
}, _e({
|
|
2404
|
+
label: b(() => [
|
|
2403
2405
|
V(o.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2404
2406
|
]),
|
|
2405
|
-
[c.key]:
|
|
2407
|
+
[c.key]: b(({ rowValue: d }) => [
|
|
2406
2408
|
V(o.$slots, c.key, {
|
|
2407
2409
|
row: c,
|
|
2408
2410
|
rowValue: d
|
|
@@ -2412,39 +2414,39 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2412
2414
|
}, [
|
|
2413
2415
|
i(c) ? {
|
|
2414
2416
|
name: "label-tooltip",
|
|
2415
|
-
fn:
|
|
2417
|
+
fn: b(() => [
|
|
2416
2418
|
V(o.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
|
|
2417
2419
|
]),
|
|
2418
2420
|
key: "0"
|
|
2419
2421
|
} : void 0
|
|
2420
2422
|
]), 1032, ["item"]))), 128))
|
|
2421
|
-
], 10,
|
|
2422
|
-
])) :
|
|
2423
|
-
e.format === "json" && t.record ? (
|
|
2423
|
+
], 10, co))), 128))
|
|
2424
|
+
])) : D("", !0),
|
|
2425
|
+
e.format === "json" && t.record ? (p(), K(Kt, {
|
|
2424
2426
|
key: 1,
|
|
2425
2427
|
config: t.config,
|
|
2426
2428
|
"fetcher-url": t.fetcherUrl,
|
|
2427
2429
|
"json-record": a.value,
|
|
2428
2430
|
"request-method": "get"
|
|
2429
|
-
}, null, 8, ["config", "fetcher-url", "json-record"])) :
|
|
2430
|
-
e.format === "yaml" && t.record ? (
|
|
2431
|
+
}, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
|
|
2432
|
+
e.format === "yaml" && t.record ? (p(), K(Sn, {
|
|
2431
2433
|
key: 2,
|
|
2432
2434
|
"yaml-record": a.value
|
|
2433
|
-
}, null, 8, ["yaml-record"])) :
|
|
2435
|
+
}, null, 8, ["yaml-record"])) : D("", !0)
|
|
2434
2436
|
], 64));
|
|
2435
2437
|
}
|
|
2436
|
-
}),
|
|
2438
|
+
}), po = /* @__PURE__ */ re(fo, [["__scopeId", "data-v-147a2f70"]]), oe = "24px", Le = (e, t) => {
|
|
2437
2439
|
const n = e.__vccOpts || e;
|
|
2438
2440
|
for (const [r, i] of t)
|
|
2439
2441
|
n[r] = i;
|
|
2440
2442
|
return n;
|
|
2441
|
-
},
|
|
2443
|
+
}, ho = (e) => (Oe("data-v-2295e0fb"), e = e(), $e(), e), mo = ["aria-hidden"], go = {
|
|
2442
2444
|
key: 0,
|
|
2443
2445
|
"data-testid": "kui-icon-svg-title"
|
|
2444
|
-
},
|
|
2446
|
+
}, yo = /* @__PURE__ */ ho(() => /* @__PURE__ */ L("path", {
|
|
2445
2447
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2446
2448
|
fill: "currentColor"
|
|
2447
|
-
}, null, -1)),
|
|
2449
|
+
}, null, -1)), vo = /* @__PURE__ */ H({
|
|
2448
2450
|
__name: "AddIcon",
|
|
2449
2451
|
props: {
|
|
2450
2452
|
/** The accessibility text provided to screen readers */
|
|
@@ -2475,7 +2477,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2475
2477
|
size: {
|
|
2476
2478
|
type: [Number, String],
|
|
2477
2479
|
required: !1,
|
|
2478
|
-
default:
|
|
2480
|
+
default: oe,
|
|
2479
2481
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2480
2482
|
validator: (e) => {
|
|
2481
2483
|
if (typeof e == "number" && e > 0)
|
|
@@ -2496,7 +2498,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2496
2498
|
}
|
|
2497
2499
|
},
|
|
2498
2500
|
setup(e) {
|
|
2499
|
-
const t = e, n =
|
|
2501
|
+
const t = e, n = k(() => {
|
|
2500
2502
|
if (typeof t.size == "number" && t.size > 0)
|
|
2501
2503
|
return `${t.size}px`;
|
|
2502
2504
|
if (typeof t.size == "string") {
|
|
@@ -2504,8 +2506,8 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2504
2506
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2505
2507
|
return `${a}px`;
|
|
2506
2508
|
}
|
|
2507
|
-
return
|
|
2508
|
-
}), r =
|
|
2509
|
+
return oe;
|
|
2510
|
+
}), r = k(() => ({
|
|
2509
2511
|
boxSizing: "border-box",
|
|
2510
2512
|
color: t.color,
|
|
2511
2513
|
display: t.display,
|
|
@@ -2513,14 +2515,14 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2513
2515
|
lineHeight: "0",
|
|
2514
2516
|
width: n.value
|
|
2515
2517
|
}));
|
|
2516
|
-
return (i, a) => (
|
|
2518
|
+
return (i, a) => (p(), K(ge(e.as), {
|
|
2517
2519
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2518
2520
|
class: "kui-icon add-icon",
|
|
2519
2521
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2520
|
-
style:
|
|
2522
|
+
style: Fe(r.value)
|
|
2521
2523
|
}, {
|
|
2522
|
-
default:
|
|
2523
|
-
(
|
|
2524
|
+
default: b(() => [
|
|
2525
|
+
(p(), A("svg", {
|
|
2524
2526
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2525
2527
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2526
2528
|
fill: "none",
|
|
@@ -2530,20 +2532,20 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2530
2532
|
width: "100%",
|
|
2531
2533
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2532
2534
|
}, [
|
|
2533
|
-
e.title ? (
|
|
2534
|
-
|
|
2535
|
-
], 8,
|
|
2535
|
+
e.title ? (p(), A("title", go, O(e.title), 1)) : D("", !0),
|
|
2536
|
+
yo
|
|
2537
|
+
], 8, mo))
|
|
2536
2538
|
]),
|
|
2537
2539
|
_: 1
|
|
2538
2540
|
}, 8, ["aria-hidden", "style"]));
|
|
2539
2541
|
}
|
|
2540
|
-
}),
|
|
2542
|
+
}), bo = /* @__PURE__ */ Le(vo, [["__scopeId", "data-v-2295e0fb"]]), xo = (e) => (Oe("data-v-40a7f387"), e = e(), $e(), e), Co = ["aria-hidden"], _o = {
|
|
2541
2543
|
key: 0,
|
|
2542
2544
|
"data-testid": "kui-icon-svg-title"
|
|
2543
|
-
},
|
|
2545
|
+
}, ko = /* @__PURE__ */ xo(() => /* @__PURE__ */ L("path", {
|
|
2544
2546
|
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",
|
|
2545
2547
|
fill: "currentColor"
|
|
2546
|
-
}, null, -1)),
|
|
2548
|
+
}, null, -1)), Ao = /* @__PURE__ */ H({
|
|
2547
2549
|
__name: "BookIcon",
|
|
2548
2550
|
props: {
|
|
2549
2551
|
/** The accessibility text provided to screen readers */
|
|
@@ -2574,7 +2576,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2574
2576
|
size: {
|
|
2575
2577
|
type: [Number, String],
|
|
2576
2578
|
required: !1,
|
|
2577
|
-
default:
|
|
2579
|
+
default: oe,
|
|
2578
2580
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2579
2581
|
validator: (e) => {
|
|
2580
2582
|
if (typeof e == "number" && e > 0)
|
|
@@ -2595,7 +2597,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2595
2597
|
}
|
|
2596
2598
|
},
|
|
2597
2599
|
setup(e) {
|
|
2598
|
-
const t = e, n =
|
|
2600
|
+
const t = e, n = k(() => {
|
|
2599
2601
|
if (typeof t.size == "number" && t.size > 0)
|
|
2600
2602
|
return `${t.size}px`;
|
|
2601
2603
|
if (typeof t.size == "string") {
|
|
@@ -2603,8 +2605,8 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2603
2605
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2604
2606
|
return `${a}px`;
|
|
2605
2607
|
}
|
|
2606
|
-
return
|
|
2607
|
-
}), r =
|
|
2608
|
+
return oe;
|
|
2609
|
+
}), r = k(() => ({
|
|
2608
2610
|
boxSizing: "border-box",
|
|
2609
2611
|
color: t.color,
|
|
2610
2612
|
display: t.display,
|
|
@@ -2612,14 +2614,14 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2612
2614
|
lineHeight: "0",
|
|
2613
2615
|
width: n.value
|
|
2614
2616
|
}));
|
|
2615
|
-
return (i, a) => (
|
|
2617
|
+
return (i, a) => (p(), K(ge(e.as), {
|
|
2616
2618
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2617
2619
|
class: "kui-icon book-icon",
|
|
2618
2620
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2619
|
-
style:
|
|
2621
|
+
style: Fe(r.value)
|
|
2620
2622
|
}, {
|
|
2621
|
-
default:
|
|
2622
|
-
(
|
|
2623
|
+
default: b(() => [
|
|
2624
|
+
(p(), A("svg", {
|
|
2623
2625
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2624
2626
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2625
2627
|
fill: "none",
|
|
@@ -2629,20 +2631,119 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2629
2631
|
width: "100%",
|
|
2630
2632
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2631
2633
|
}, [
|
|
2632
|
-
e.title ? (
|
|
2633
|
-
|
|
2634
|
-
], 8,
|
|
2634
|
+
e.title ? (p(), A("title", _o, O(e.title), 1)) : D("", !0),
|
|
2635
|
+
ko
|
|
2636
|
+
], 8, Co))
|
|
2637
|
+
]),
|
|
2638
|
+
_: 1
|
|
2639
|
+
}, 8, ["aria-hidden", "style"]));
|
|
2640
|
+
}
|
|
2641
|
+
}), wo = /* @__PURE__ */ Le(Ao, [["__scopeId", "data-v-40a7f387"]]), So = (e) => (Oe("data-v-98c34919"), e = e(), $e(), e), Io = ["aria-hidden"], Eo = {
|
|
2642
|
+
key: 0,
|
|
2643
|
+
"data-testid": "kui-icon-svg-title"
|
|
2644
|
+
}, To = /* @__PURE__ */ So(() => /* @__PURE__ */ L("path", {
|
|
2645
|
+
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2646
|
+
fill: "currentColor"
|
|
2647
|
+
}, null, -1)), Fo = /* @__PURE__ */ H({
|
|
2648
|
+
__name: "ChevronDownIcon",
|
|
2649
|
+
props: {
|
|
2650
|
+
/** The accessibility text provided to screen readers */
|
|
2651
|
+
title: {
|
|
2652
|
+
type: String,
|
|
2653
|
+
required: !1,
|
|
2654
|
+
default: ""
|
|
2655
|
+
},
|
|
2656
|
+
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
2657
|
+
color: {
|
|
2658
|
+
type: String,
|
|
2659
|
+
required: !1,
|
|
2660
|
+
default: "currentColor"
|
|
2661
|
+
},
|
|
2662
|
+
/** The CSS display property for the icon. Defaults to `block` */
|
|
2663
|
+
display: {
|
|
2664
|
+
type: String,
|
|
2665
|
+
required: !1,
|
|
2666
|
+
default: "block"
|
|
2667
|
+
},
|
|
2668
|
+
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
2669
|
+
decorative: {
|
|
2670
|
+
type: Boolean,
|
|
2671
|
+
required: !1,
|
|
2672
|
+
default: !1
|
|
2673
|
+
},
|
|
2674
|
+
/** The icon size */
|
|
2675
|
+
size: {
|
|
2676
|
+
type: [Number, String],
|
|
2677
|
+
required: !1,
|
|
2678
|
+
default: oe,
|
|
2679
|
+
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2680
|
+
validator: (e) => {
|
|
2681
|
+
if (typeof e == "number" && e > 0)
|
|
2682
|
+
return !0;
|
|
2683
|
+
if (typeof e == "string") {
|
|
2684
|
+
const t = String(e).replace(/px/gi, ""), n = Number(t);
|
|
2685
|
+
if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
|
|
2686
|
+
return !0;
|
|
2687
|
+
}
|
|
2688
|
+
return !1;
|
|
2689
|
+
}
|
|
2690
|
+
},
|
|
2691
|
+
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
2692
|
+
as: {
|
|
2693
|
+
type: String,
|
|
2694
|
+
required: !1,
|
|
2695
|
+
default: "span"
|
|
2696
|
+
}
|
|
2697
|
+
},
|
|
2698
|
+
setup(e) {
|
|
2699
|
+
const t = e, n = k(() => {
|
|
2700
|
+
if (typeof t.size == "number" && t.size > 0)
|
|
2701
|
+
return `${t.size}px`;
|
|
2702
|
+
if (typeof t.size == "string") {
|
|
2703
|
+
const i = String(t.size).replace(/px/gi, ""), a = Number(i);
|
|
2704
|
+
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2705
|
+
return `${a}px`;
|
|
2706
|
+
}
|
|
2707
|
+
return oe;
|
|
2708
|
+
}), r = k(() => ({
|
|
2709
|
+
boxSizing: "border-box",
|
|
2710
|
+
color: t.color,
|
|
2711
|
+
display: t.display,
|
|
2712
|
+
height: n.value,
|
|
2713
|
+
lineHeight: "0",
|
|
2714
|
+
width: n.value
|
|
2715
|
+
}));
|
|
2716
|
+
return (i, a) => (p(), K(ge(e.as), {
|
|
2717
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2718
|
+
class: "kui-icon chevron-down-icon",
|
|
2719
|
+
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2720
|
+
style: Fe(r.value)
|
|
2721
|
+
}, {
|
|
2722
|
+
default: b(() => [
|
|
2723
|
+
(p(), A("svg", {
|
|
2724
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2725
|
+
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
2726
|
+
fill: "none",
|
|
2727
|
+
height: "100%",
|
|
2728
|
+
role: "img",
|
|
2729
|
+
viewBox: "0 0 24 24",
|
|
2730
|
+
width: "100%",
|
|
2731
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2732
|
+
}, [
|
|
2733
|
+
e.title ? (p(), A("title", Eo, O(e.title), 1)) : D("", !0),
|
|
2734
|
+
To
|
|
2735
|
+
], 8, Io))
|
|
2635
2736
|
]),
|
|
2636
2737
|
_: 1
|
|
2637
2738
|
}, 8, ["aria-hidden", "style"]));
|
|
2638
2739
|
}
|
|
2639
|
-
}),
|
|
2740
|
+
}), Oo = /* @__PURE__ */ Le(Fo, [["__scopeId", "data-v-98c34919"]]), $o = (e) => (Oe("data-v-19f4cbbe"), e = e(), $e(), e), Lo = ["aria-hidden"], No = {
|
|
2640
2741
|
key: 0,
|
|
2641
2742
|
"data-testid": "kui-icon-svg-title"
|
|
2642
|
-
},
|
|
2743
|
+
}, Bo = /* @__PURE__ */ $o(() => /* @__PURE__ */ L("path", {
|
|
2643
2744
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2644
2745
|
fill: "currentColor"
|
|
2645
|
-
}, null, -1)),
|
|
2746
|
+
}, null, -1)), Ro = /* @__PURE__ */ H({
|
|
2646
2747
|
__name: "CloseIcon",
|
|
2647
2748
|
props: {
|
|
2648
2749
|
/** The accessibility text provided to screen readers */
|
|
@@ -2673,7 +2774,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2673
2774
|
size: {
|
|
2674
2775
|
type: [Number, String],
|
|
2675
2776
|
required: !1,
|
|
2676
|
-
default:
|
|
2777
|
+
default: oe,
|
|
2677
2778
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2678
2779
|
validator: (e) => {
|
|
2679
2780
|
if (typeof e == "number" && e > 0)
|
|
@@ -2694,7 +2795,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2694
2795
|
}
|
|
2695
2796
|
},
|
|
2696
2797
|
setup(e) {
|
|
2697
|
-
const t = e, n =
|
|
2798
|
+
const t = e, n = k(() => {
|
|
2698
2799
|
if (typeof t.size == "number" && t.size > 0)
|
|
2699
2800
|
return `${t.size}px`;
|
|
2700
2801
|
if (typeof t.size == "string") {
|
|
@@ -2702,8 +2803,8 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2702
2803
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2703
2804
|
return `${a}px`;
|
|
2704
2805
|
}
|
|
2705
|
-
return
|
|
2706
|
-
}), r =
|
|
2806
|
+
return oe;
|
|
2807
|
+
}), r = k(() => ({
|
|
2707
2808
|
boxSizing: "border-box",
|
|
2708
2809
|
color: t.color,
|
|
2709
2810
|
display: t.display,
|
|
@@ -2711,14 +2812,14 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2711
2812
|
lineHeight: "0",
|
|
2712
2813
|
width: n.value
|
|
2713
2814
|
}));
|
|
2714
|
-
return (i, a) => (
|
|
2815
|
+
return (i, a) => (p(), K(ge(e.as), {
|
|
2715
2816
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2716
2817
|
class: "kui-icon close-icon",
|
|
2717
2818
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2718
|
-
style:
|
|
2819
|
+
style: Fe(r.value)
|
|
2719
2820
|
}, {
|
|
2720
|
-
default:
|
|
2721
|
-
(
|
|
2821
|
+
default: b(() => [
|
|
2822
|
+
(p(), A("svg", {
|
|
2722
2823
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2723
2824
|
"data-testid": "kui-icon-svg-close-icon",
|
|
2724
2825
|
fill: "none",
|
|
@@ -2728,20 +2829,20 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2728
2829
|
width: "100%",
|
|
2729
2830
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2730
2831
|
}, [
|
|
2731
|
-
e.title ? (
|
|
2732
|
-
|
|
2733
|
-
], 8,
|
|
2832
|
+
e.title ? (p(), A("title", No, O(e.title), 1)) : D("", !0),
|
|
2833
|
+
Bo
|
|
2834
|
+
], 8, Lo))
|
|
2734
2835
|
]),
|
|
2735
2836
|
_: 1
|
|
2736
2837
|
}, 8, ["aria-hidden", "style"]));
|
|
2737
2838
|
}
|
|
2738
|
-
}),
|
|
2839
|
+
}), Ko = /* @__PURE__ */ Le(Ro, [["__scopeId", "data-v-19f4cbbe"]]), Mo = (e) => (Oe("data-v-13f41aa3"), e = e(), $e(), e), Do = ["aria-hidden"], jo = {
|
|
2739
2840
|
key: 0,
|
|
2740
2841
|
"data-testid": "kui-icon-svg-title"
|
|
2741
|
-
},
|
|
2842
|
+
}, Uo = /* @__PURE__ */ Mo(() => /* @__PURE__ */ L("path", {
|
|
2742
2843
|
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",
|
|
2743
2844
|
fill: "currentColor"
|
|
2744
|
-
}, null, -1)),
|
|
2845
|
+
}, null, -1)), qo = /* @__PURE__ */ H({
|
|
2745
2846
|
__name: "CopyIcon",
|
|
2746
2847
|
props: {
|
|
2747
2848
|
/** The accessibility text provided to screen readers */
|
|
@@ -2772,7 +2873,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2772
2873
|
size: {
|
|
2773
2874
|
type: [Number, String],
|
|
2774
2875
|
required: !1,
|
|
2775
|
-
default:
|
|
2876
|
+
default: oe,
|
|
2776
2877
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2777
2878
|
validator: (e) => {
|
|
2778
2879
|
if (typeof e == "number" && e > 0)
|
|
@@ -2793,7 +2894,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2793
2894
|
}
|
|
2794
2895
|
},
|
|
2795
2896
|
setup(e) {
|
|
2796
|
-
const t = e, n =
|
|
2897
|
+
const t = e, n = k(() => {
|
|
2797
2898
|
if (typeof t.size == "number" && t.size > 0)
|
|
2798
2899
|
return `${t.size}px`;
|
|
2799
2900
|
if (typeof t.size == "string") {
|
|
@@ -2801,8 +2902,8 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2801
2902
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2802
2903
|
return `${a}px`;
|
|
2803
2904
|
}
|
|
2804
|
-
return
|
|
2805
|
-
}), r =
|
|
2905
|
+
return oe;
|
|
2906
|
+
}), r = k(() => ({
|
|
2806
2907
|
boxSizing: "border-box",
|
|
2807
2908
|
color: t.color,
|
|
2808
2909
|
display: t.display,
|
|
@@ -2810,14 +2911,14 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2810
2911
|
lineHeight: "0",
|
|
2811
2912
|
width: n.value
|
|
2812
2913
|
}));
|
|
2813
|
-
return (i, a) => (
|
|
2914
|
+
return (i, a) => (p(), K(ge(e.as), {
|
|
2814
2915
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2815
2916
|
class: "kui-icon copy-icon",
|
|
2816
2917
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
2817
|
-
style:
|
|
2918
|
+
style: Fe(r.value)
|
|
2818
2919
|
}, {
|
|
2819
|
-
default:
|
|
2820
|
-
(
|
|
2920
|
+
default: b(() => [
|
|
2921
|
+
(p(), A("svg", {
|
|
2821
2922
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2822
2923
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
2823
2924
|
fill: "none",
|
|
@@ -2827,14 +2928,14 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2827
2928
|
width: "100%",
|
|
2828
2929
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2829
2930
|
}, [
|
|
2830
|
-
e.title ? (
|
|
2831
|
-
|
|
2832
|
-
], 8,
|
|
2931
|
+
e.title ? (p(), A("title", jo, O(e.title), 1)) : D("", !0),
|
|
2932
|
+
Uo
|
|
2933
|
+
], 8, Do))
|
|
2833
2934
|
]),
|
|
2834
2935
|
_: 1
|
|
2835
2936
|
}, 8, ["aria-hidden", "style"]));
|
|
2836
2937
|
}
|
|
2837
|
-
}),
|
|
2938
|
+
}), Po = /* @__PURE__ */ Le(qo, [["__scopeId", "data-v-13f41aa3"]]), Ho = { "data-testid": "config-card-title" }, Vo = { class: "config-card-actions" }, Yo = ["href"], zo = { class: "config-card-details-section" }, Wo = /* @__PURE__ */ H({
|
|
2838
2939
|
__name: "EntityBaseConfigCard",
|
|
2839
2940
|
props: {
|
|
2840
2941
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2909,7 +3010,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2909
3010
|
emits: ["loading", "fetch:success", "fetch:error"],
|
|
2910
3011
|
setup(e, { emit: t }) {
|
|
2911
3012
|
var y;
|
|
2912
|
-
const n = t, r = e, { i18n: { t: i } } =
|
|
3013
|
+
const n = t, r = e, { i18n: { t: i } } = z.useI18n(), { getMessageFromError: a } = z.useErrors(), { convertKeyToTitle: o } = z.useStringHelpers(), { axiosInstance: l } = z.useAxios({
|
|
2913
3014
|
headers: (y = r.config) == null ? void 0 : y.requestHeaders
|
|
2914
3015
|
}), s = [
|
|
2915
3016
|
{
|
|
@@ -2925,11 +3026,11 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2925
3026
|
label: "YAML",
|
|
2926
3027
|
value: "yaml"
|
|
2927
3028
|
}
|
|
2928
|
-
], c = R("structured"), d = (
|
|
2929
|
-
c.value =
|
|
3029
|
+
], c = R("structured"), d = (g) => {
|
|
3030
|
+
c.value = g == null ? void 0 : g.value;
|
|
2930
3031
|
}, u = {
|
|
2931
3032
|
id: {
|
|
2932
|
-
type:
|
|
3033
|
+
type: P.ID,
|
|
2933
3034
|
label: i("baseConfigCard.commonFields.id_label"),
|
|
2934
3035
|
order: 0,
|
|
2935
3036
|
section: ne.Basic
|
|
@@ -2939,185 +3040,185 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
2939
3040
|
section: ne.Basic
|
|
2940
3041
|
},
|
|
2941
3042
|
enabled: {
|
|
2942
|
-
type:
|
|
3043
|
+
type: P.BadgeStatus,
|
|
2943
3044
|
order: 2,
|
|
2944
3045
|
section: ne.Basic
|
|
2945
3046
|
},
|
|
2946
3047
|
updated_at: {
|
|
2947
|
-
type:
|
|
3048
|
+
type: P.Date,
|
|
2948
3049
|
label: i("baseConfigCard.commonFields.updated_at_label"),
|
|
2949
3050
|
order: 3,
|
|
2950
3051
|
section: ne.Basic
|
|
2951
3052
|
},
|
|
2952
3053
|
created_at: {
|
|
2953
|
-
type:
|
|
3054
|
+
type: P.Date,
|
|
2954
3055
|
label: i("baseConfigCard.commonFields.created_at_label"),
|
|
2955
3056
|
order: 4,
|
|
2956
3057
|
section: ne.Basic
|
|
2957
3058
|
},
|
|
2958
3059
|
tags: {
|
|
2959
|
-
type:
|
|
3060
|
+
type: P.BadgeTag,
|
|
2960
3061
|
order: -1,
|
|
2961
3062
|
// the last property displayed
|
|
2962
3063
|
section: ne.Basic
|
|
2963
3064
|
}
|
|
2964
|
-
},
|
|
2965
|
-
var F,
|
|
2966
|
-
if (!
|
|
3065
|
+
}, m = R(!1), f = R(!1), x = R(""), v = R({}), w = k(() => {
|
|
3066
|
+
var F, _, j;
|
|
3067
|
+
if (!v.value)
|
|
2967
3068
|
return [];
|
|
2968
|
-
const
|
|
2969
|
-
for (const
|
|
2970
|
-
const
|
|
2971
|
-
let q =
|
|
2972
|
-
(
|
|
3069
|
+
const g = [], $ = Object.keys(v.value).length;
|
|
3070
|
+
for (const T in v.value) {
|
|
3071
|
+
const S = (_ = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : _.order, U = (j = u[T]) == null ? void 0 : j.order;
|
|
3072
|
+
let q = $;
|
|
3073
|
+
(U || U === 0) && (q = U === -1 ? $ + 1 : U), S && (q = S === -1 ? $ + 1 : S), g.push([T, q]);
|
|
2973
3074
|
}
|
|
2974
|
-
return
|
|
2975
|
-
return
|
|
2976
|
-
}),
|
|
2977
|
-
var
|
|
2978
|
-
const
|
|
3075
|
+
return g.sort(function(T, S) {
|
|
3076
|
+
return T[1] - S[1];
|
|
3077
|
+
}), g.map((T) => {
|
|
3078
|
+
var fe, at;
|
|
3079
|
+
const S = T[0], U = (fe = v.value) == null ? void 0 : fe[S], q = ((at = r.configSchema) == null ? void 0 : at[S]) || {}, J = u[S];
|
|
2979
3080
|
return {
|
|
2980
|
-
key:
|
|
2981
|
-
value:
|
|
3081
|
+
key: S,
|
|
3082
|
+
value: U,
|
|
2982
3083
|
hidden: q.hidden || !1,
|
|
2983
|
-
type: q.type ?? ((
|
|
2984
|
-
label: q.label ?? ((
|
|
2985
|
-
tooltip: q.tooltip ?? ((
|
|
2986
|
-
section: q.section ?? ((
|
|
3084
|
+
type: q.type ?? ((J == null ? void 0 : J.type) || P.Text),
|
|
3085
|
+
label: q.label ?? ((J == null ? void 0 : J.label) || o(S)),
|
|
3086
|
+
tooltip: q.tooltip ?? ((J == null ? void 0 : J.tooltip) || void 0),
|
|
3087
|
+
section: q.section ?? ((J == null ? void 0 : J.section) || ne.Advanced)
|
|
2987
3088
|
};
|
|
2988
|
-
}).filter((
|
|
2989
|
-
}),
|
|
2990
|
-
var
|
|
2991
|
-
if (!
|
|
3089
|
+
}).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
|
|
3090
|
+
}), M = k(() => {
|
|
3091
|
+
var _, j;
|
|
3092
|
+
if (!v.value || !r.pluginConfigKey)
|
|
2992
3093
|
return [];
|
|
2993
|
-
const
|
|
2994
|
-
for (const
|
|
2995
|
-
const
|
|
2996
|
-
let q =
|
|
2997
|
-
|
|
3094
|
+
const g = v.value[r.pluginConfigKey] || {}, $ = Object.keys(g).length, F = [];
|
|
3095
|
+
for (const T in g) {
|
|
3096
|
+
const S = (j = (_ = r.pluginConfigSchema) == null ? void 0 : _[T]) == null ? void 0 : j.order, U = g[T];
|
|
3097
|
+
let q = U != null && U !== "" ? $ - 1 : $;
|
|
3098
|
+
S && (q = S === -1 ? $ + 1 : S), F.push([T, q]);
|
|
2998
3099
|
}
|
|
2999
|
-
return F.sort(function(
|
|
3000
|
-
return
|
|
3001
|
-
}), F.map((
|
|
3002
|
-
var
|
|
3003
|
-
const
|
|
3100
|
+
return F.sort(function(T, S) {
|
|
3101
|
+
return T[1] - S[1];
|
|
3102
|
+
}), F.map((T) => {
|
|
3103
|
+
var J;
|
|
3104
|
+
const S = T[0], U = g[S], q = ((J = r.pluginConfigSchema) == null ? void 0 : J[S]) || {};
|
|
3004
3105
|
return {
|
|
3005
|
-
key:
|
|
3006
|
-
value:
|
|
3106
|
+
key: S,
|
|
3107
|
+
value: U,
|
|
3007
3108
|
hidden: q.hidden || !1,
|
|
3008
|
-
type: q.type ??
|
|
3009
|
-
label: q.label ?? o(
|
|
3109
|
+
type: q.type ?? P.Text,
|
|
3110
|
+
label: q.label ?? o(S),
|
|
3010
3111
|
tooltip: q.tooltip ?? void 0,
|
|
3011
3112
|
section: ne.Plugin
|
|
3012
3113
|
};
|
|
3013
|
-
}).filter((
|
|
3014
|
-
}),
|
|
3015
|
-
var
|
|
3114
|
+
}).filter((T) => !T.hidden);
|
|
3115
|
+
}), E = k(() => {
|
|
3116
|
+
var g, $, F, _;
|
|
3016
3117
|
return {
|
|
3017
|
-
basic: (
|
|
3018
|
-
advanced: (
|
|
3019
|
-
plugin: (
|
|
3118
|
+
basic: (g = w.value) == null ? void 0 : g.filter((j) => j.section === ne.Basic),
|
|
3119
|
+
advanced: ($ = w.value) == null ? void 0 : $.filter((j) => j.section === ne.Advanced),
|
|
3120
|
+
plugin: (_ = M.value) == null ? void 0 : _.concat((F = w.value) == null ? void 0 : F.filter((j) => j.section === ne.Plugin))
|
|
3020
3121
|
};
|
|
3021
|
-
}),
|
|
3022
|
-
const
|
|
3023
|
-
return
|
|
3024
|
-
}),
|
|
3025
|
-
var
|
|
3026
|
-
let
|
|
3027
|
-
return r.config.app === "konnect" ?
|
|
3122
|
+
}), ee = k(() => {
|
|
3123
|
+
const g = [];
|
|
3124
|
+
return E.value.basic.length && g.push("basic"), E.value.advanced.length && g.push("advanced"), E.value.plugin.length && g.push("plugin"), g;
|
|
3125
|
+
}), h = k(() => {
|
|
3126
|
+
var $, F;
|
|
3127
|
+
let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3128
|
+
return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), g = g.replace(/{id}/gi, r.config.entityId), g;
|
|
3028
3129
|
});
|
|
3029
|
-
return
|
|
3030
|
-
n("loading",
|
|
3130
|
+
return Ae(m, (g) => {
|
|
3131
|
+
n("loading", g);
|
|
3031
3132
|
}, { immediate: !0 }), Ft(async () => {
|
|
3032
|
-
f.value = !1,
|
|
3133
|
+
f.value = !1, m.value = !0;
|
|
3033
3134
|
try {
|
|
3034
|
-
const { data:
|
|
3135
|
+
const { data: g } = await l.get(h.value);
|
|
3035
3136
|
if (r.dataKey)
|
|
3036
|
-
if (typeof
|
|
3037
|
-
|
|
3137
|
+
if (typeof g[r.dataKey] < "u")
|
|
3138
|
+
v.value = { ...g[r.dataKey] };
|
|
3038
3139
|
else
|
|
3039
3140
|
throw new Error(i("errors.dataKeyUndefined", { dataKey: r.dataKey }));
|
|
3040
3141
|
else
|
|
3041
|
-
|
|
3142
|
+
v.value = { ...g };
|
|
3042
3143
|
Object.keys(r.configSchema).filter((F) => r.configSchema[F].forceShow).forEach((F) => {
|
|
3043
|
-
|
|
3044
|
-
}), n("fetch:success",
|
|
3045
|
-
} catch (
|
|
3046
|
-
const
|
|
3047
|
-
|
|
3144
|
+
v.value && typeof v.value[F] > "u" && (v.value[F] = null);
|
|
3145
|
+
}), n("fetch:success", g);
|
|
3146
|
+
} catch (g) {
|
|
3147
|
+
const $ = a(g);
|
|
3148
|
+
x.value = $.startsWith("code") ? i("baseConfigCard.errors.load") : $, f.value = !0, n("fetch:error", g);
|
|
3048
3149
|
} finally {
|
|
3049
|
-
|
|
3150
|
+
m.value = !1;
|
|
3050
3151
|
}
|
|
3051
|
-
}), (
|
|
3052
|
-
const F =
|
|
3053
|
-
return
|
|
3054
|
-
actions:
|
|
3055
|
-
L("div",
|
|
3056
|
-
V(
|
|
3152
|
+
}), (g, $) => {
|
|
3153
|
+
const F = B("KLabel"), _ = B("KSelect"), j = B("KButton"), T = B("KSkeleton"), S = B("KEmptyState"), U = B("KCard");
|
|
3154
|
+
return p(), K(U, { class: "kong-ui-entity-base-config-card" }, _e({
|
|
3155
|
+
actions: b(() => [
|
|
3156
|
+
L("div", Vo, [
|
|
3157
|
+
V(g.$slots, "actions", {}, void 0, !0),
|
|
3057
3158
|
N(F, {
|
|
3058
3159
|
class: "config-format-select-label",
|
|
3059
3160
|
"data-testid": "config-format-select-label"
|
|
3060
3161
|
}, {
|
|
3061
|
-
default:
|
|
3062
|
-
|
|
3162
|
+
default: b(() => [
|
|
3163
|
+
Y(O(e.label), 1)
|
|
3063
3164
|
]),
|
|
3064
3165
|
_: 1
|
|
3065
3166
|
}),
|
|
3066
|
-
N(
|
|
3167
|
+
N(_, {
|
|
3067
3168
|
"data-testid": "select-config-format",
|
|
3068
3169
|
items: s,
|
|
3069
3170
|
onChange: d
|
|
3070
3171
|
}),
|
|
3071
|
-
e.configCardDoc ? (
|
|
3172
|
+
e.configCardDoc ? (p(), K(j, {
|
|
3072
3173
|
key: 0,
|
|
3073
3174
|
appearance: "tertiary",
|
|
3074
3175
|
class: "book-icon",
|
|
3075
3176
|
"data-testid": "book-icon"
|
|
3076
3177
|
}, {
|
|
3077
|
-
default:
|
|
3178
|
+
default: b(() => [
|
|
3078
3179
|
L("a", {
|
|
3079
3180
|
href: e.configCardDoc,
|
|
3080
3181
|
rel: "noopener",
|
|
3081
3182
|
target: "_blank"
|
|
3082
3183
|
}, [
|
|
3083
|
-
N(
|
|
3084
|
-
], 8,
|
|
3184
|
+
N(I(wo), { size: I(Sr) }, null, 8, ["size"])
|
|
3185
|
+
], 8, Yo)
|
|
3085
3186
|
]),
|
|
3086
3187
|
_: 1
|
|
3087
|
-
})) :
|
|
3188
|
+
})) : D("", !0)
|
|
3088
3189
|
])
|
|
3089
3190
|
]),
|
|
3090
|
-
default:
|
|
3091
|
-
|
|
3191
|
+
default: b(() => [
|
|
3192
|
+
m.value ? (p(), K(T, {
|
|
3092
3193
|
key: 0,
|
|
3093
3194
|
"data-testid": "config-card-loader",
|
|
3094
3195
|
"table-columns": 2,
|
|
3095
3196
|
type: "table"
|
|
3096
|
-
})) : f.value ? (
|
|
3197
|
+
})) : f.value ? (p(), K(S, {
|
|
3097
3198
|
key: 1,
|
|
3098
3199
|
"data-testid": "config-card-fetch-error",
|
|
3099
3200
|
"icon-variant": "error"
|
|
3100
3201
|
}, {
|
|
3101
|
-
default:
|
|
3102
|
-
L("h3", null, O(
|
|
3202
|
+
default: b(() => [
|
|
3203
|
+
L("h3", null, O(x.value), 1)
|
|
3103
3204
|
]),
|
|
3104
3205
|
_: 1
|
|
3105
|
-
})) :
|
|
3106
|
-
L("div",
|
|
3107
|
-
N(
|
|
3206
|
+
})) : D("", !0),
|
|
3207
|
+
L("div", zo, [
|
|
3208
|
+
N(po, {
|
|
3108
3209
|
config: e.config,
|
|
3109
|
-
"fetcher-url":
|
|
3210
|
+
"fetcher-url": h.value,
|
|
3110
3211
|
format: c.value,
|
|
3111
|
-
"prop-list-types":
|
|
3112
|
-
"property-collections":
|
|
3113
|
-
record:
|
|
3114
|
-
},
|
|
3115
|
-
ie(Object.keys(
|
|
3212
|
+
"prop-list-types": ee.value,
|
|
3213
|
+
"property-collections": E.value,
|
|
3214
|
+
record: v.value
|
|
3215
|
+
}, _e({ _: 2 }, [
|
|
3216
|
+
ie(Object.keys(g.$slots), (q) => ({
|
|
3116
3217
|
name: q,
|
|
3117
|
-
fn:
|
|
3118
|
-
V(
|
|
3119
|
-
row:
|
|
3120
|
-
rowValue:
|
|
3218
|
+
fn: b(({ row: J, rowValue: fe }) => [
|
|
3219
|
+
V(g.$slots, q, {
|
|
3220
|
+
row: J,
|
|
3221
|
+
rowValue: fe
|
|
3121
3222
|
}, void 0, !0)
|
|
3122
3223
|
])
|
|
3123
3224
|
}))
|
|
@@ -3128,10 +3229,10 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3128
3229
|
}, [
|
|
3129
3230
|
e.hideTitle ? void 0 : {
|
|
3130
3231
|
name: "title",
|
|
3131
|
-
fn:
|
|
3132
|
-
L("div",
|
|
3133
|
-
V(
|
|
3134
|
-
|
|
3232
|
+
fn: b(() => [
|
|
3233
|
+
L("div", Ho, [
|
|
3234
|
+
V(g.$slots, "title", {}, () => [
|
|
3235
|
+
Y(O(I(i)("baseConfigCard.title")), 1)
|
|
3135
3236
|
], !0)
|
|
3136
3237
|
])
|
|
3137
3238
|
]),
|
|
@@ -3140,10 +3241,10 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3140
3241
|
]), 1024);
|
|
3141
3242
|
};
|
|
3142
3243
|
}
|
|
3143
|
-
}),
|
|
3244
|
+
}), Dl = /* @__PURE__ */ re(Wo, [["__scopeId", "data-v-491f1797"]]), Jo = {
|
|
3144
3245
|
class: "form-actions",
|
|
3145
3246
|
"data-testid": "form-actions"
|
|
3146
|
-
},
|
|
3247
|
+
}, Go = { key: 0 }, Zo = /* @__PURE__ */ H({
|
|
3147
3248
|
__name: "EntityBaseForm",
|
|
3148
3249
|
props: {
|
|
3149
3250
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3197,22 +3298,22 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3197
3298
|
},
|
|
3198
3299
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3199
3300
|
setup(e, { emit: t }) {
|
|
3200
|
-
var
|
|
3201
|
-
const n = t, r = e, i = Mn(), { i18n: { t: a } } =
|
|
3202
|
-
headers: (
|
|
3203
|
-
}), s = R(!1), c = R(!1), d = R(""), u =
|
|
3204
|
-
var y,
|
|
3205
|
-
let
|
|
3206
|
-
return r.config.app === "konnect" ?
|
|
3207
|
-
}),
|
|
3208
|
-
|
|
3209
|
-
},
|
|
3210
|
-
r.config.cancelRoute ? i.push(r.config.cancelRoute) :
|
|
3211
|
-
},
|
|
3301
|
+
var ee;
|
|
3302
|
+
const n = t, r = e, i = Mn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios({
|
|
3303
|
+
headers: (ee = r.config) == null ? void 0 : ee.requestHeaders
|
|
3304
|
+
}), s = R(!1), c = R(!1), d = R(""), u = k(() => r.canSubmit === !1 || r.isReadonly), m = R(!1), f = k(() => {
|
|
3305
|
+
var y, g;
|
|
3306
|
+
let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3307
|
+
return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
|
|
3308
|
+
}), x = () => {
|
|
3309
|
+
m.value = !m.value;
|
|
3310
|
+
}, v = () => {
|
|
3311
|
+
r.config.cancelRoute ? i.push(r.config.cancelRoute) : w();
|
|
3312
|
+
}, w = () => {
|
|
3212
3313
|
n("cancel");
|
|
3213
|
-
},
|
|
3314
|
+
}, M = () => {
|
|
3214
3315
|
u.value || n("submit");
|
|
3215
|
-
},
|
|
3316
|
+
}, E = R([
|
|
3216
3317
|
{
|
|
3217
3318
|
title: a("baseForm.configuration.yaml"),
|
|
3218
3319
|
hash: "#yaml"
|
|
@@ -3222,114 +3323,114 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3222
3323
|
hash: "#json"
|
|
3223
3324
|
}
|
|
3224
3325
|
]);
|
|
3225
|
-
return
|
|
3226
|
-
n("loading",
|
|
3326
|
+
return Ae(() => s.value, (h) => {
|
|
3327
|
+
n("loading", h);
|
|
3227
3328
|
}, { immediate: !0 }), Ft(async () => {
|
|
3228
3329
|
if (r.editId)
|
|
3229
3330
|
try {
|
|
3230
3331
|
c.value = !1, s.value = !0;
|
|
3231
|
-
const { data:
|
|
3232
|
-
n("fetch:success",
|
|
3233
|
-
} catch (
|
|
3234
|
-
const y = o(
|
|
3235
|
-
d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, c.value = !0, n("fetch:error",
|
|
3332
|
+
const { data: h } = await l.get(f.value);
|
|
3333
|
+
n("fetch:success", h);
|
|
3334
|
+
} catch (h) {
|
|
3335
|
+
const y = o(h);
|
|
3336
|
+
d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, c.value = !0, n("fetch:error", h);
|
|
3236
3337
|
} finally {
|
|
3237
3338
|
s.value = !1;
|
|
3238
3339
|
}
|
|
3239
|
-
}), (
|
|
3240
|
-
const
|
|
3241
|
-
return
|
|
3242
|
-
default:
|
|
3243
|
-
s.value ? (
|
|
3340
|
+
}), (h, y) => {
|
|
3341
|
+
const g = B("KSkeleton"), $ = B("KEmptyState"), F = B("KAlert"), _ = B("KButton"), j = B("KTabs"), T = B("KSlideout"), S = B("KCard");
|
|
3342
|
+
return p(), K(S, { class: "kong-ui-entity-base-form" }, {
|
|
3343
|
+
default: b(() => [
|
|
3344
|
+
s.value ? (p(), K(g, {
|
|
3244
3345
|
key: 0,
|
|
3245
3346
|
type: "form"
|
|
3246
|
-
})) : c.value ? (
|
|
3347
|
+
})) : c.value ? (p(), K($, {
|
|
3247
3348
|
key: 1,
|
|
3248
|
-
"action-button-text":
|
|
3349
|
+
"action-button-text": I(a)("baseForm.actions.back"),
|
|
3249
3350
|
"data-testid": "form-fetch-error",
|
|
3250
3351
|
"icon-variant": "error",
|
|
3251
|
-
onClickAction:
|
|
3352
|
+
onClickAction: v
|
|
3252
3353
|
}, {
|
|
3253
|
-
default:
|
|
3354
|
+
default: b(() => [
|
|
3254
3355
|
L("h3", null, O(d.value), 1)
|
|
3255
3356
|
]),
|
|
3256
3357
|
_: 1
|
|
3257
|
-
}, 8, ["action-button-text"])) : (
|
|
3358
|
+
}, 8, ["action-button-text"])) : (p(), A("form", {
|
|
3258
3359
|
key: 2,
|
|
3259
3360
|
"data-testid": "form-content",
|
|
3260
|
-
onReset: He(
|
|
3261
|
-
onSubmit: He(
|
|
3361
|
+
onReset: He(w, ["prevent"]),
|
|
3362
|
+
onSubmit: He(M, ["prevent"])
|
|
3262
3363
|
}, [
|
|
3263
|
-
V(
|
|
3264
|
-
e.errorMessage ? (
|
|
3364
|
+
V(h.$slots, "default", {}, void 0, !0),
|
|
3365
|
+
e.errorMessage ? (p(), K(F, {
|
|
3265
3366
|
key: 0,
|
|
3266
3367
|
appearance: "danger",
|
|
3267
3368
|
"data-testid": "form-error",
|
|
3268
3369
|
message: e.errorMessage
|
|
3269
|
-
}, null, 8, ["message"])) :
|
|
3270
|
-
L("div",
|
|
3271
|
-
V(
|
|
3272
|
-
e.config.jsonYamlFormsEnabled ? (
|
|
3273
|
-
N(
|
|
3370
|
+
}, null, 8, ["message"])) : D("", !0),
|
|
3371
|
+
L("div", Jo, [
|
|
3372
|
+
V(h.$slots, "form-actions", {}, () => [
|
|
3373
|
+
e.config.jsonYamlFormsEnabled ? (p(), A("div", Go, [
|
|
3374
|
+
N(_, {
|
|
3274
3375
|
appearance: "tertiary",
|
|
3275
3376
|
"data-testid": "form-view-configuration",
|
|
3276
|
-
onClick: y[0] || (y[0] = (
|
|
3377
|
+
onClick: y[0] || (y[0] = (U) => x())
|
|
3277
3378
|
}, {
|
|
3278
|
-
default:
|
|
3279
|
-
|
|
3379
|
+
default: b(() => [
|
|
3380
|
+
Y(O(I(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3280
3381
|
]),
|
|
3281
3382
|
_: 1
|
|
3282
3383
|
})
|
|
3283
|
-
])) :
|
|
3284
|
-
N(
|
|
3384
|
+
])) : D("", !0),
|
|
3385
|
+
N(_, {
|
|
3285
3386
|
appearance: "secondary",
|
|
3286
3387
|
"data-testid": "form-cancel",
|
|
3287
3388
|
disabled: e.isReadonly,
|
|
3288
3389
|
type: "reset"
|
|
3289
3390
|
}, {
|
|
3290
|
-
default:
|
|
3291
|
-
|
|
3391
|
+
default: b(() => [
|
|
3392
|
+
Y(O(I(a)("baseForm.actions.cancel")), 1)
|
|
3292
3393
|
]),
|
|
3293
3394
|
_: 1
|
|
3294
3395
|
}, 8, ["disabled"]),
|
|
3295
|
-
N(
|
|
3396
|
+
N(_, {
|
|
3296
3397
|
appearance: "primary",
|
|
3297
3398
|
"data-testid": "form-submit",
|
|
3298
3399
|
disabled: u.value,
|
|
3299
3400
|
type: "submit"
|
|
3300
3401
|
}, {
|
|
3301
|
-
default:
|
|
3302
|
-
|
|
3402
|
+
default: b(() => [
|
|
3403
|
+
Y(O(I(a)("baseForm.actions.save")), 1)
|
|
3303
3404
|
]),
|
|
3304
3405
|
_: 1
|
|
3305
3406
|
}, 8, ["disabled"])
|
|
3306
3407
|
], !0)
|
|
3307
3408
|
])
|
|
3308
3409
|
], 32)),
|
|
3309
|
-
N(
|
|
3410
|
+
N(T, {
|
|
3310
3411
|
"close-on-blur": !1,
|
|
3311
3412
|
"data-testid": "form-view-configuration-slideout",
|
|
3312
3413
|
"has-overlay": !1,
|
|
3313
3414
|
"offset-top": 60,
|
|
3314
|
-
title:
|
|
3315
|
-
visible:
|
|
3316
|
-
onClose: y[1] || (y[1] = (
|
|
3415
|
+
title: I(a)("baseForm.configuration.title"),
|
|
3416
|
+
visible: m.value,
|
|
3417
|
+
onClose: y[1] || (y[1] = (U) => x())
|
|
3317
3418
|
}, {
|
|
3318
|
-
default:
|
|
3319
|
-
L("div", null, O(
|
|
3320
|
-
N(
|
|
3419
|
+
default: b(() => [
|
|
3420
|
+
L("div", null, O(I(a)("baseForm.configuration.message")), 1),
|
|
3421
|
+
N(j, {
|
|
3321
3422
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3322
|
-
tabs:
|
|
3423
|
+
tabs: E.value
|
|
3323
3424
|
}, {
|
|
3324
|
-
json:
|
|
3325
|
-
N(
|
|
3425
|
+
json: b(() => [
|
|
3426
|
+
N(Kt, {
|
|
3326
3427
|
config: e.config,
|
|
3327
3428
|
"fetcher-url": f.value,
|
|
3328
3429
|
"json-record": r.formFields,
|
|
3329
3430
|
"request-method": r.editId ? "put" : "post"
|
|
3330
3431
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3331
3432
|
]),
|
|
3332
|
-
yaml:
|
|
3433
|
+
yaml: b(() => [
|
|
3333
3434
|
N(Sn, {
|
|
3334
3435
|
"yaml-record": r.formFields
|
|
3335
3436
|
}, null, 8, ["yaml-record"])
|
|
@@ -3344,10 +3445,10 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3344
3445
|
});
|
|
3345
3446
|
};
|
|
3346
3447
|
}
|
|
3347
|
-
}),
|
|
3448
|
+
}), jl = /* @__PURE__ */ re(Zo, [["__scopeId", "data-v-acb5a965"]]), Qo = {
|
|
3348
3449
|
key: 0,
|
|
3349
3450
|
"data-testid": "first-col"
|
|
3350
|
-
},
|
|
3451
|
+
}, Xo = /* @__PURE__ */ H({
|
|
3351
3452
|
__name: "EntityBaseTableCell",
|
|
3352
3453
|
props: {
|
|
3353
3454
|
keyName: {
|
|
@@ -3360,68 +3461,68 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3360
3461
|
}
|
|
3361
3462
|
},
|
|
3362
3463
|
setup(e) {
|
|
3363
|
-
const t = e, n =
|
|
3364
|
-
var
|
|
3365
|
-
return ((
|
|
3366
|
-
}), r =
|
|
3367
|
-
var
|
|
3368
|
-
return ((
|
|
3369
|
-
}), i =
|
|
3370
|
-
var
|
|
3371
|
-
const
|
|
3372
|
-
return
|
|
3464
|
+
const t = e, n = k(() => {
|
|
3465
|
+
var v;
|
|
3466
|
+
return ((v = t.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3467
|
+
}), r = k(() => {
|
|
3468
|
+
var v;
|
|
3469
|
+
return ((v = n.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
|
|
3470
|
+
}), i = k(() => {
|
|
3471
|
+
var w, M;
|
|
3472
|
+
const v = (w = t.rowEl) == null ? void 0 : w.querySelectorAll("td");
|
|
3473
|
+
return v ? ((M = v[0]) == null ? void 0 : M.getAttribute("data-testid")) === t.keyName : !1;
|
|
3373
3474
|
});
|
|
3374
3475
|
let a;
|
|
3375
3476
|
const o = () => {
|
|
3376
3477
|
a && (a.disconnect(), a = void 0);
|
|
3377
3478
|
}, l = () => {
|
|
3378
|
-
var
|
|
3379
|
-
c.value = ((
|
|
3380
|
-
}, s = R({}), c = R(0), d = R(0), u = R(""),
|
|
3381
|
-
|
|
3382
|
-
(
|
|
3479
|
+
var v, w, M;
|
|
3480
|
+
c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((w = n.value) == null ? void 0 : w.clientWidth) || 0, u.value = ((M = s.value) == null ? void 0 : M.innerText) || "";
|
|
3481
|
+
}, s = R({}), c = R(0), d = R(0), u = R(""), m = k(() => [r.value, n.value]), f = Ae(
|
|
3482
|
+
m,
|
|
3483
|
+
(v) => {
|
|
3383
3484
|
if (i.value && (o(), "ResizeObserver" in window && window)) {
|
|
3384
|
-
a = new ResizeObserver((
|
|
3485
|
+
a = new ResizeObserver((w) => {
|
|
3385
3486
|
window.requestAnimationFrame(() => {
|
|
3386
|
-
!Array.isArray(
|
|
3487
|
+
!Array.isArray(w) || !w.length || l();
|
|
3387
3488
|
});
|
|
3388
3489
|
});
|
|
3389
|
-
for (const
|
|
3390
|
-
|
|
3490
|
+
for (const w of v)
|
|
3491
|
+
w && a.observe(w);
|
|
3391
3492
|
}
|
|
3392
3493
|
},
|
|
3393
3494
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3394
|
-
),
|
|
3495
|
+
), x = k(() => i.value ? c.value > d.value : !1);
|
|
3395
3496
|
return On(() => {
|
|
3396
3497
|
l();
|
|
3397
3498
|
}), $n(() => {
|
|
3398
3499
|
f();
|
|
3399
|
-
}), (
|
|
3400
|
-
const
|
|
3401
|
-
return
|
|
3500
|
+
}), (v, w) => {
|
|
3501
|
+
const M = B("KTooltip");
|
|
3502
|
+
return p(), A("span", {
|
|
3402
3503
|
ref_key: "contentRef",
|
|
3403
3504
|
ref: s,
|
|
3404
3505
|
class: "content-wrapper"
|
|
3405
3506
|
}, [
|
|
3406
|
-
i.value ? (
|
|
3407
|
-
N(
|
|
3507
|
+
i.value ? (p(), A("span", Qo, [
|
|
3508
|
+
N(M, {
|
|
3408
3509
|
"max-width": "300",
|
|
3409
3510
|
placement: "bottomStart",
|
|
3410
|
-
text:
|
|
3511
|
+
text: x.value ? u.value : ""
|
|
3411
3512
|
}, {
|
|
3412
|
-
default:
|
|
3413
|
-
V(
|
|
3513
|
+
default: b(() => [
|
|
3514
|
+
V(v.$slots, "default", {}, void 0, !0)
|
|
3414
3515
|
]),
|
|
3415
3516
|
_: 3
|
|
3416
3517
|
}, 8, ["text"])
|
|
3417
|
-
])) : V(
|
|
3518
|
+
])) : V(v.$slots, "default", { key: 1 }, void 0, !0)
|
|
3418
3519
|
], 512);
|
|
3419
3520
|
};
|
|
3420
3521
|
}
|
|
3421
|
-
}),
|
|
3522
|
+
}), el = /* @__PURE__ */ re(Xo, [["__scopeId", "data-v-c4379fd4"]]), tl = { class: "toolbar-container" }, nl = {
|
|
3422
3523
|
key: 0,
|
|
3423
3524
|
class: "toolbar-button-container"
|
|
3424
|
-
},
|
|
3525
|
+
}, rl = ["data-testid"], il = /* @__PURE__ */ H({
|
|
3425
3526
|
__name: "EntityBaseTable",
|
|
3426
3527
|
props: {
|
|
3427
3528
|
// table header configuration
|
|
@@ -3531,8 +3632,8 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3531
3632
|
},
|
|
3532
3633
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3533
3634
|
setup(e, { emit: t }) {
|
|
3534
|
-
const n = e, r = t, { i18n: { t: i } } =
|
|
3535
|
-
var y,
|
|
3635
|
+
const n = e, r = t, { i18n: { t: i } } = z.useI18n(), a = k(() => {
|
|
3636
|
+
var y, g;
|
|
3536
3637
|
return typeof n.errorMessage == "string" ? {
|
|
3537
3638
|
hasError: !!n.errorMessage,
|
|
3538
3639
|
title: n.errorMessage,
|
|
@@ -3540,15 +3641,15 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3540
3641
|
} : {
|
|
3541
3642
|
hasError: !!n.errorMessage,
|
|
3542
3643
|
title: (y = n.errorMessage) == null ? void 0 : y.title,
|
|
3543
|
-
message: (
|
|
3644
|
+
message: (g = n.errorMessage) == null ? void 0 : g.message
|
|
3544
3645
|
};
|
|
3545
|
-
}), o =
|
|
3646
|
+
}), o = k(() => n.cacheIdentifier || n.preferencesStorageKey), l = (y) => y.hasData || !!n.query, s = k(() => {
|
|
3546
3647
|
const y = [];
|
|
3547
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3548
|
-
const F = n.tableHeaders[
|
|
3648
|
+
return Object.keys(n.tableHeaders).forEach(($) => {
|
|
3649
|
+
const F = n.tableHeaders[$];
|
|
3549
3650
|
y.push({
|
|
3550
|
-
label: F.label ??
|
|
3551
|
-
key:
|
|
3651
|
+
label: F.label ?? $,
|
|
3652
|
+
key: $,
|
|
3552
3653
|
sortable: F.sortable ?? !1
|
|
3553
3654
|
});
|
|
3554
3655
|
}), n.enableEntityActions && y.push({
|
|
@@ -3560,54 +3661,54 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3560
3661
|
"data-testid": y.name,
|
|
3561
3662
|
...n.rowAttributes(y)
|
|
3562
3663
|
}), d = R({}), u = (y) => {
|
|
3563
|
-
var
|
|
3564
|
-
return (
|
|
3565
|
-
},
|
|
3566
|
-
const
|
|
3664
|
+
var g;
|
|
3665
|
+
return (g = d.value) == null ? void 0 : g.$el.querySelector(`[data-rowid="${y.id}"]`);
|
|
3666
|
+
}, m = (y) => {
|
|
3667
|
+
const g = {
|
|
3567
3668
|
"data-testid": y.headerKey,
|
|
3568
3669
|
...n.cellAttributes(y)
|
|
3569
3670
|
};
|
|
3570
|
-
return y.colIndex === 0 && (
|
|
3671
|
+
return y.colIndex === 0 && (g.style = {
|
|
3571
3672
|
maxWidth: "250px",
|
|
3572
3673
|
overflowX: "hidden",
|
|
3573
3674
|
textOverflow: "ellipsis"
|
|
3574
|
-
}),
|
|
3675
|
+
}), g;
|
|
3575
3676
|
}, f = () => {
|
|
3576
|
-
r("empty-state-cta-clicked"),
|
|
3577
|
-
},
|
|
3677
|
+
r("empty-state-cta-clicked"), x();
|
|
3678
|
+
}, x = () => {
|
|
3578
3679
|
r("clear-search-input");
|
|
3579
|
-
},
|
|
3580
|
-
r("click:row",
|
|
3581
|
-
}),
|
|
3680
|
+
}, v = k(() => n.disableRowClick ? void 0 : (y, g) => {
|
|
3681
|
+
r("click:row", g);
|
|
3682
|
+
}), w = (y) => {
|
|
3582
3683
|
r("sort", y);
|
|
3583
|
-
}, { setTablePreferences:
|
|
3584
|
-
const y =
|
|
3684
|
+
}, { setTablePreferences: M, getTablePreferences: E } = Hn(), ee = k(() => {
|
|
3685
|
+
const y = E(n.preferencesStorageKey);
|
|
3585
3686
|
return {
|
|
3586
3687
|
...n.initialFetcherParams,
|
|
3587
3688
|
...y
|
|
3588
3689
|
};
|
|
3589
|
-
}),
|
|
3590
|
-
n.preferencesStorageKey &&
|
|
3690
|
+
}), h = (y) => {
|
|
3691
|
+
n.preferencesStorageKey && M(n.preferencesStorageKey, y);
|
|
3591
3692
|
};
|
|
3592
|
-
return (y,
|
|
3593
|
-
const
|
|
3594
|
-
return
|
|
3693
|
+
return (y, g) => {
|
|
3694
|
+
const $ = B("KIcon"), F = B("KButton"), _ = B("KDropdown"), j = B("KTable"), T = B("KCard");
|
|
3695
|
+
return p(), K(T, {
|
|
3595
3696
|
class: "kong-ui-entity-base-table",
|
|
3596
3697
|
title: e.title
|
|
3597
3698
|
}, {
|
|
3598
|
-
default:
|
|
3599
|
-
N(
|
|
3699
|
+
default: b(() => [
|
|
3700
|
+
N(j, {
|
|
3600
3701
|
ref_key: "tableRefs",
|
|
3601
3702
|
ref: d,
|
|
3602
3703
|
"cache-identifier": o.value,
|
|
3603
|
-
"cell-attrs":
|
|
3704
|
+
"cell-attrs": m,
|
|
3604
3705
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3605
3706
|
"disable-sorting": e.disableSorting,
|
|
3606
|
-
"empty-state-action-message": e.query ?
|
|
3707
|
+
"empty-state-action-message": e.query ? I(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
3607
3708
|
"empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
|
|
3608
3709
|
"empty-state-icon-variant": e.query ? "search" : "kong",
|
|
3609
|
-
"empty-state-message": e.query ?
|
|
3610
|
-
"empty-state-title": e.query ?
|
|
3710
|
+
"empty-state-message": e.query ? I(i)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3711
|
+
"empty-state-title": e.query ? I(i)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3611
3712
|
"enable-client-sort": e.enableClientSort,
|
|
3612
3713
|
"error-state-message": a.value.message,
|
|
3613
3714
|
"error-state-title": a.value.title,
|
|
@@ -3616,51 +3717,51 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3616
3717
|
"has-error": a.value.hasError,
|
|
3617
3718
|
headers: s.value,
|
|
3618
3719
|
"hide-pagination-when-optional": "",
|
|
3619
|
-
"initial-fetcher-params":
|
|
3720
|
+
"initial-fetcher-params": ee.value,
|
|
3620
3721
|
"is-loading": e.isLoading,
|
|
3621
3722
|
"pagination-type": e.paginationType,
|
|
3622
3723
|
"row-attrs": c,
|
|
3623
3724
|
"search-input": e.query,
|
|
3624
3725
|
onKtableEmptyStateCtaClicked: f,
|
|
3625
|
-
"onRow:click":
|
|
3626
|
-
onSort:
|
|
3627
|
-
"onUpdate:tablePreferences":
|
|
3628
|
-
},
|
|
3629
|
-
toolbar:
|
|
3630
|
-
|
|
3726
|
+
"onRow:click": v.value,
|
|
3727
|
+
onSort: g[0] || (g[0] = (S) => w(S)),
|
|
3728
|
+
"onUpdate:tablePreferences": h
|
|
3729
|
+
}, _e({
|
|
3730
|
+
toolbar: b(({ state: S }) => [
|
|
3731
|
+
pe(L("div", tl, [
|
|
3631
3732
|
V(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3632
|
-
y.$slots["toolbar-button"] ? (
|
|
3733
|
+
y.$slots["toolbar-button"] ? (p(), A("div", nl, [
|
|
3633
3734
|
V(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
3634
|
-
])) :
|
|
3735
|
+
])) : D("", !0)
|
|
3635
3736
|
], 512), [
|
|
3636
|
-
[
|
|
3737
|
+
[he, l(S)]
|
|
3637
3738
|
])
|
|
3638
3739
|
]),
|
|
3639
|
-
actions:
|
|
3740
|
+
actions: b(({ row: S, rowKey: U, rowValue: q }) => [
|
|
3640
3741
|
L("div", {
|
|
3641
3742
|
class: "actions-container",
|
|
3642
|
-
"data-testid":
|
|
3743
|
+
"data-testid": S.name
|
|
3643
3744
|
}, [
|
|
3644
|
-
N(
|
|
3745
|
+
N(_, {
|
|
3645
3746
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3646
3747
|
width: e.dropdownMenuWidth
|
|
3647
3748
|
}, {
|
|
3648
|
-
items:
|
|
3749
|
+
items: b(() => [
|
|
3649
3750
|
V(y.$slots, "actions", {
|
|
3650
|
-
row:
|
|
3651
|
-
rowKey:
|
|
3751
|
+
row: S,
|
|
3752
|
+
rowKey: U,
|
|
3652
3753
|
rowValue: q
|
|
3653
3754
|
}, void 0, !0)
|
|
3654
3755
|
]),
|
|
3655
|
-
default:
|
|
3756
|
+
default: b(() => [
|
|
3656
3757
|
N(F, {
|
|
3657
3758
|
class: "actions-trigger",
|
|
3658
3759
|
"data-testid": "overflow-actions-button",
|
|
3659
3760
|
size: "small"
|
|
3660
3761
|
}, {
|
|
3661
|
-
icon:
|
|
3662
|
-
N(
|
|
3663
|
-
color:
|
|
3762
|
+
icon: b(() => [
|
|
3763
|
+
N($, {
|
|
3764
|
+
color: I(Cr),
|
|
3664
3765
|
icon: "more",
|
|
3665
3766
|
size: "16"
|
|
3666
3767
|
}, null, 8, ["color"])
|
|
@@ -3670,24 +3771,24 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3670
3771
|
]),
|
|
3671
3772
|
_: 2
|
|
3672
3773
|
}, 1032, ["width"])
|
|
3673
|
-
], 8,
|
|
3774
|
+
], 8, rl)
|
|
3674
3775
|
]),
|
|
3675
3776
|
_: 2
|
|
3676
3777
|
}, [
|
|
3677
|
-
ie(e.tableHeaders, (
|
|
3678
|
-
name:
|
|
3679
|
-
fn:
|
|
3680
|
-
N(
|
|
3681
|
-
"key-name": String(
|
|
3778
|
+
ie(e.tableHeaders, (S, U) => ({
|
|
3779
|
+
name: U,
|
|
3780
|
+
fn: b(({ row: q, rowKey: J, rowValue: fe }) => [
|
|
3781
|
+
N(el, {
|
|
3782
|
+
"key-name": String(U),
|
|
3682
3783
|
"row-el": u(q)
|
|
3683
3784
|
}, {
|
|
3684
|
-
default:
|
|
3685
|
-
V(y.$slots,
|
|
3785
|
+
default: b(() => [
|
|
3786
|
+
V(y.$slots, U, {
|
|
3686
3787
|
row: q,
|
|
3687
|
-
rowKey:
|
|
3688
|
-
rowValue:
|
|
3788
|
+
rowKey: J,
|
|
3789
|
+
rowValue: fe
|
|
3689
3790
|
}, () => [
|
|
3690
|
-
|
|
3791
|
+
Y(O(fe), 1)
|
|
3691
3792
|
], !0)
|
|
3692
3793
|
]),
|
|
3693
3794
|
_: 2
|
|
@@ -3696,8 +3797,8 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3696
3797
|
})),
|
|
3697
3798
|
e.query ? void 0 : {
|
|
3698
3799
|
name: "empty-state-action-icon",
|
|
3699
|
-
fn:
|
|
3700
|
-
N(
|
|
3800
|
+
fn: b(() => [
|
|
3801
|
+
N(I(bo))
|
|
3701
3802
|
]),
|
|
3702
3803
|
key: "0"
|
|
3703
3804
|
}
|
|
@@ -3707,13 +3808,13 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3707
3808
|
}, 8, ["title"]);
|
|
3708
3809
|
};
|
|
3709
3810
|
}
|
|
3710
|
-
}),
|
|
3811
|
+
}), Ul = /* @__PURE__ */ re(il, [["__scopeId", "data-v-273124cf"]]), al = {
|
|
3711
3812
|
key: 0,
|
|
3712
3813
|
class: "kong-ui-entity-delete-error"
|
|
3713
|
-
},
|
|
3814
|
+
}, ol = {
|
|
3714
3815
|
key: 1,
|
|
3715
3816
|
class: "description"
|
|
3716
|
-
},
|
|
3817
|
+
}, ll = /* @__PURE__ */ H({
|
|
3717
3818
|
__name: "EntityDeleteModal",
|
|
3718
3819
|
props: {
|
|
3719
3820
|
visible: {
|
|
@@ -3752,14 +3853,14 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3752
3853
|
},
|
|
3753
3854
|
emits: ["cancel", "proceed"],
|
|
3754
3855
|
setup(e, { emit: t }) {
|
|
3755
|
-
const { i18nT: n } =
|
|
3856
|
+
const { i18nT: n } = z.useI18n(), r = e, i = t, a = k(() => r.needConfirm ? r.entityName : ""), o = () => {
|
|
3756
3857
|
i("cancel");
|
|
3757
3858
|
}, l = () => {
|
|
3758
3859
|
i("proceed");
|
|
3759
3860
|
};
|
|
3760
3861
|
return (s, c) => {
|
|
3761
|
-
const d =
|
|
3762
|
-
return
|
|
3862
|
+
const d = B("KAlert"), u = B("KPrompt");
|
|
3863
|
+
return p(), K(u, {
|
|
3763
3864
|
"action-button-appearance": "danger",
|
|
3764
3865
|
"action-button-disabled": e.actionPending,
|
|
3765
3866
|
"action-button-text": "Yes, delete",
|
|
@@ -3770,50 +3871,50 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3770
3871
|
onCancel: o,
|
|
3771
3872
|
onProceed: l
|
|
3772
3873
|
}, {
|
|
3773
|
-
default:
|
|
3774
|
-
e.error ? (
|
|
3874
|
+
default: b(() => [
|
|
3875
|
+
e.error ? (p(), A("div", al, [
|
|
3775
3876
|
N(d, { appearance: "danger" }, {
|
|
3776
|
-
default:
|
|
3777
|
-
|
|
3877
|
+
default: b(() => [
|
|
3878
|
+
Y(O(e.error), 1)
|
|
3778
3879
|
]),
|
|
3779
3880
|
_: 1
|
|
3780
3881
|
})
|
|
3781
|
-
])) :
|
|
3782
|
-
N(
|
|
3882
|
+
])) : D("", !0),
|
|
3883
|
+
N(I(n), {
|
|
3783
3884
|
class: "message",
|
|
3784
3885
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3785
3886
|
tag: "p"
|
|
3786
|
-
},
|
|
3787
|
-
entityType:
|
|
3788
|
-
|
|
3887
|
+
}, _e({
|
|
3888
|
+
entityType: b(() => [
|
|
3889
|
+
Y(O(r.entityType), 1)
|
|
3789
3890
|
]),
|
|
3790
3891
|
_: 2
|
|
3791
3892
|
}, [
|
|
3792
3893
|
r.entityName ? {
|
|
3793
3894
|
name: "entityName",
|
|
3794
|
-
fn:
|
|
3895
|
+
fn: b(() => [
|
|
3795
3896
|
L("strong", null, O(r.entityName), 1)
|
|
3796
3897
|
]),
|
|
3797
3898
|
key: "0"
|
|
3798
3899
|
} : void 0
|
|
3799
3900
|
]), 1032, ["keypath"]),
|
|
3800
|
-
r.description || s.$slots.description ? (
|
|
3901
|
+
r.description || s.$slots.description ? (p(), A("div", ol, [
|
|
3801
3902
|
V(s.$slots, "description", {}, () => [
|
|
3802
3903
|
L("p", null, O(r.description), 1)
|
|
3803
3904
|
], !0)
|
|
3804
|
-
])) :
|
|
3905
|
+
])) : D("", !0)
|
|
3805
3906
|
]),
|
|
3806
3907
|
_: 3
|
|
3807
3908
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3808
3909
|
};
|
|
3809
3910
|
}
|
|
3810
|
-
}),
|
|
3911
|
+
}), ql = /* @__PURE__ */ re(ll, [["__scopeId", "data-v-4361d622"]]), sl = {
|
|
3811
3912
|
fill: "none",
|
|
3812
3913
|
height: "20",
|
|
3813
3914
|
viewBox: "0 0 20 20",
|
|
3814
3915
|
width: "20",
|
|
3815
3916
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3816
|
-
},
|
|
3917
|
+
}, cl = {
|
|
3817
3918
|
id: "mask0_180_20349",
|
|
3818
3919
|
height: "20",
|
|
3819
3920
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3821,35 +3922,35 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3821
3922
|
width: "20",
|
|
3822
3923
|
x: "0",
|
|
3823
3924
|
y: "0"
|
|
3824
|
-
},
|
|
3925
|
+
}, ul = ["fill"], dl = { mask: "url(#mask0_180_20349)" }, fl = ["fill"], Et = /* @__PURE__ */ H({
|
|
3825
3926
|
__name: "IconFilter",
|
|
3826
3927
|
props: {
|
|
3827
3928
|
color: {
|
|
3828
3929
|
type: String,
|
|
3829
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3930
|
+
default: `var(--kong-ui-entity-filter-color, ${br})`
|
|
3830
3931
|
}
|
|
3831
3932
|
},
|
|
3832
3933
|
setup(e) {
|
|
3833
|
-
return (t, n) => (
|
|
3834
|
-
L("mask",
|
|
3934
|
+
return (t, n) => (p(), A("svg", sl, [
|
|
3935
|
+
L("mask", cl, [
|
|
3835
3936
|
L("rect", {
|
|
3836
3937
|
fill: e.color,
|
|
3837
3938
|
height: "20",
|
|
3838
3939
|
width: "20"
|
|
3839
|
-
}, null, 8,
|
|
3940
|
+
}, null, 8, ul)
|
|
3840
3941
|
]),
|
|
3841
|
-
L("g",
|
|
3942
|
+
L("g", dl, [
|
|
3842
3943
|
L("path", {
|
|
3843
3944
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3844
3945
|
fill: e.color
|
|
3845
|
-
}, null, 8,
|
|
3946
|
+
}, null, 8, fl)
|
|
3846
3947
|
])
|
|
3847
3948
|
]));
|
|
3848
3949
|
}
|
|
3849
|
-
}),
|
|
3950
|
+
}), pl = {
|
|
3850
3951
|
key: 1,
|
|
3851
3952
|
class: "kong-ui-entity-filter"
|
|
3852
|
-
},
|
|
3953
|
+
}, hl = { class: "kong-ui-entity-filter-menu" }, ml = ["data-testid"], gl = ["onClick", "onKeydown"], yl = { class: "menu-item-indicator" }, vl = { class: "menu-item-body" }, bl = ["for"], xl = { class: "menu-item-buttons" }, Cl = { class: "filter-clear-button-container" }, _l = /* @__PURE__ */ H({
|
|
3853
3954
|
__name: "EntityFilter",
|
|
3854
3955
|
props: {
|
|
3855
3956
|
// filter config, either exact match or fuzzy match
|
|
@@ -3869,182 +3970,188 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
3869
3970
|
},
|
|
3870
3971
|
emits: ["update:modelValue"],
|
|
3871
3972
|
setup(e, { emit: t }) {
|
|
3872
|
-
const { i18n: { t: n } } =
|
|
3873
|
-
const
|
|
3874
|
-
return new URLSearchParams(r.modelValue).forEach((
|
|
3875
|
-
|
|
3876
|
-
}),
|
|
3877
|
-
}),
|
|
3878
|
-
const
|
|
3879
|
-
return Object.keys(
|
|
3880
|
-
label:
|
|
3881
|
-
value:
|
|
3973
|
+
const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = R(!1), o = R({}), l = R(/* @__PURE__ */ new Set()), s = k(() => {
|
|
3974
|
+
const h = [];
|
|
3975
|
+
return new URLSearchParams(r.modelValue).forEach((y, g) => {
|
|
3976
|
+
y !== "" && h.push(g);
|
|
3977
|
+
}), h;
|
|
3978
|
+
}), c = k(() => {
|
|
3979
|
+
const h = r.config.fields;
|
|
3980
|
+
return Object.keys(h).filter((y) => h[y].searchable).map((y) => ({
|
|
3981
|
+
label: h[y].label || y,
|
|
3982
|
+
value: y,
|
|
3983
|
+
expanded: !1
|
|
3882
3984
|
}));
|
|
3883
3985
|
});
|
|
3884
|
-
|
|
3885
|
-
o.value = {}, new URLSearchParams(
|
|
3886
|
-
o.value[g] =
|
|
3986
|
+
Ae(() => r.modelValue, (h) => {
|
|
3987
|
+
o.value = {}, new URLSearchParams(h).forEach((y, g) => {
|
|
3988
|
+
o.value[g] = y;
|
|
3887
3989
|
});
|
|
3888
3990
|
});
|
|
3889
|
-
const
|
|
3991
|
+
const d = () => {
|
|
3890
3992
|
a.value = !a.value;
|
|
3891
|
-
},
|
|
3892
|
-
|
|
3893
|
-
},
|
|
3894
|
-
|
|
3895
|
-
},
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3993
|
+
}, u = (h) => {
|
|
3994
|
+
l.value.has(h) ? l.value.delete(h) : l.value.add(h);
|
|
3995
|
+
}, m = (h) => {
|
|
3996
|
+
i("update:modelValue", h);
|
|
3997
|
+
}, f = () => {
|
|
3998
|
+
m("");
|
|
3999
|
+
}, x = (h) => `filter-${h}`, v = (h) => {
|
|
4000
|
+
var y, g;
|
|
4001
|
+
return (((g = (y = r.config.schema) == null ? void 0 : y[h]) == null ? void 0 : g.values) ?? []).map(($) => ({
|
|
4002
|
+
value: $,
|
|
4003
|
+
label: $
|
|
3900
4004
|
}));
|
|
3901
|
-
},
|
|
3902
|
-
var
|
|
3903
|
-
return ((g = (
|
|
3904
|
-
},
|
|
4005
|
+
}, w = (h) => {
|
|
4006
|
+
var y, g;
|
|
4007
|
+
return ((g = (y = r.config.schema) == null ? void 0 : y[h]) == null ? void 0 : g.type) ?? "text";
|
|
4008
|
+
}, M = (h) => {
|
|
3905
4009
|
o.value = {
|
|
3906
4010
|
...o.value,
|
|
3907
|
-
[
|
|
3908
|
-
},
|
|
3909
|
-
},
|
|
3910
|
-
o.value = {},
|
|
3911
|
-
},
|
|
3912
|
-
const
|
|
3913
|
-
|
|
4011
|
+
[h]: ""
|
|
4012
|
+
}, ee();
|
|
4013
|
+
}, E = () => {
|
|
4014
|
+
o.value = {}, ee(!0);
|
|
4015
|
+
}, ee = (h = !1) => {
|
|
4016
|
+
const y = Object.keys(o.value).reduce((g, $) => (o.value[$] && (g[$] = `${o.value[$]}`), g), {});
|
|
4017
|
+
h && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
|
|
3914
4018
|
};
|
|
3915
|
-
return (
|
|
3916
|
-
const g =
|
|
3917
|
-
return e.config.isExactMatch ? (
|
|
4019
|
+
return (h, y) => {
|
|
4020
|
+
const g = B("KInput"), $ = B("KButton"), F = B("KSelect");
|
|
4021
|
+
return e.config.isExactMatch ? (p(), K(g, {
|
|
3918
4022
|
key: 0,
|
|
3919
4023
|
autocomplete: "off",
|
|
3920
4024
|
class: "kong-ui-entity-filter-input",
|
|
3921
4025
|
"data-testid": "search-input",
|
|
3922
4026
|
"model-value": e.modelValue,
|
|
3923
4027
|
placeholder: e.config.placeholder,
|
|
3924
|
-
"onUpdate:modelValue":
|
|
4028
|
+
"onUpdate:modelValue": m
|
|
3925
4029
|
}, {
|
|
3926
|
-
before:
|
|
4030
|
+
before: b(() => [
|
|
3927
4031
|
N(Et)
|
|
3928
4032
|
]),
|
|
3929
|
-
after:
|
|
3930
|
-
|
|
4033
|
+
after: b(() => [
|
|
4034
|
+
pe(N(I(Ko), {
|
|
3931
4035
|
class: "kong-ui-entity-filter-clear",
|
|
3932
|
-
onClick:
|
|
4036
|
+
onClick: f
|
|
3933
4037
|
}, null, 512), [
|
|
3934
|
-
[
|
|
4038
|
+
[he, e.modelValue !== ""]
|
|
3935
4039
|
])
|
|
3936
4040
|
]),
|
|
3937
4041
|
_: 1
|
|
3938
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
3939
|
-
N(
|
|
4042
|
+
}, 8, ["model-value", "placeholder"])) : (p(), A("div", pl, [
|
|
4043
|
+
N($, {
|
|
3940
4044
|
appearance: "tertiary",
|
|
3941
4045
|
"data-testid": "filter-button",
|
|
3942
|
-
onClick:
|
|
4046
|
+
onClick: d
|
|
3943
4047
|
}, {
|
|
3944
|
-
default:
|
|
4048
|
+
default: b(() => [
|
|
3945
4049
|
N(Et),
|
|
3946
|
-
|
|
4050
|
+
Y(" " + O(I(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3947
4051
|
]),
|
|
3948
4052
|
_: 1
|
|
3949
4053
|
}),
|
|
3950
|
-
|
|
4054
|
+
pe(L("div", {
|
|
3951
4055
|
class: "kong-ui-entity-filter-backdrop",
|
|
3952
|
-
onClick:
|
|
4056
|
+
onClick: d
|
|
3953
4057
|
}, null, 512), [
|
|
3954
|
-
[
|
|
4058
|
+
[he, a.value]
|
|
3955
4059
|
]),
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
"
|
|
3963
|
-
},
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
4060
|
+
pe(L("div", hl, [
|
|
4061
|
+
(p(!0), A(le, null, ie(c.value, (_) => {
|
|
4062
|
+
var j, T;
|
|
4063
|
+
return p(), A("div", {
|
|
4064
|
+
key: _.value,
|
|
4065
|
+
class: "kong-ui-entity-filter-menu-item",
|
|
4066
|
+
"data-testid": _.value
|
|
4067
|
+
}, [
|
|
4068
|
+
L("span", {
|
|
4069
|
+
class: ue(["menu-item-title", { expanded: l.value.has(_.value) }]),
|
|
4070
|
+
role: "button",
|
|
4071
|
+
tabindex: "0",
|
|
4072
|
+
onClick: (S) => u(_.value),
|
|
4073
|
+
onKeydown: Ln((S) => u(_.value), ["enter"])
|
|
4074
|
+
}, [
|
|
4075
|
+
Y(O(_.label) + " ", 1),
|
|
4076
|
+
pe(L("span", yl, null, 512), [
|
|
4077
|
+
[he, s.value.includes(_.value)]
|
|
4078
|
+
]),
|
|
4079
|
+
N(I(Oo), {
|
|
4080
|
+
class: ue(["menu-item-expand-icon", { expanded: l.value.has(_.value) }]),
|
|
4081
|
+
color: I(_r)
|
|
4082
|
+
}, null, 8, ["class", "color"])
|
|
4083
|
+
], 42, gl),
|
|
4084
|
+
pe(L("div", vl, [
|
|
4085
|
+
L("label", {
|
|
4086
|
+
class: "menu-item-label",
|
|
4087
|
+
for: x(_.value)
|
|
4088
|
+
}, O(I(n)("filter.fieldLabel")), 9, bl),
|
|
4089
|
+
((T = (j = e.config.schema) == null ? void 0 : j[_.value]) == null ? void 0 : T.type) === "select" ? (p(), K(F, {
|
|
4090
|
+
key: 0,
|
|
4091
|
+
id: x(_.value),
|
|
4092
|
+
modelValue: o.value[_.value],
|
|
4093
|
+
"onUpdate:modelValue": (S) => o.value[_.value] = S,
|
|
4094
|
+
items: v(_.value),
|
|
4095
|
+
placeholder: I(n)("filter.selectPlaceholder")
|
|
4096
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (p(), K(g, {
|
|
4097
|
+
key: 1,
|
|
4098
|
+
id: x(_.value),
|
|
4099
|
+
modelValue: o.value[_.value],
|
|
4100
|
+
"onUpdate:modelValue": (S) => o.value[_.value] = S,
|
|
4101
|
+
autocomplete: "off",
|
|
4102
|
+
placeholder: I(n)("filter.inputPlaceholder"),
|
|
4103
|
+
type: w(_.value)
|
|
4104
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4105
|
+
], 512), [
|
|
4106
|
+
[he, l.value.has(_.value)]
|
|
3971
4107
|
]),
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
((
|
|
3981
|
-
key: 0,
|
|
3982
|
-
id: p(S.value),
|
|
3983
|
-
modelValue: o.value[S.value],
|
|
3984
|
-
"onUpdate:modelValue": (K) => o.value[S.value] = K,
|
|
3985
|
-
items: f(S.value),
|
|
3986
|
-
placeholder: T(n)("filter.selectPlaceholder")
|
|
3987
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (h(), M(g, {
|
|
3988
|
-
key: 1,
|
|
3989
|
-
id: p(S.value),
|
|
3990
|
-
modelValue: o.value[S.value],
|
|
3991
|
-
"onUpdate:modelValue": (K) => o.value[S.value] = K,
|
|
3992
|
-
autocomplete: "off",
|
|
3993
|
-
placeholder: T(n)("filter.inputPlaceholder"),
|
|
3994
|
-
type: C(S.value)
|
|
3995
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4108
|
+
pe(L("div", xl, [
|
|
4109
|
+
N($, {
|
|
4110
|
+
appearance: "tertiary",
|
|
4111
|
+
"data-testid": "apply-filter",
|
|
4112
|
+
size: "small",
|
|
4113
|
+
onClick: y[0] || (y[0] = (S) => ee(!0))
|
|
4114
|
+
}, {
|
|
4115
|
+
default: b(() => [
|
|
4116
|
+
Y(O(I(n)("filter.applyButtonText")), 1)
|
|
3996
4117
|
]),
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
appearance: "tertiary",
|
|
4030
|
-
size: "small",
|
|
4031
|
-
onClick: k
|
|
4032
|
-
}, {
|
|
4033
|
-
default: x(() => [
|
|
4034
|
-
z(O(T(n)("filter.clearAllButtonText")), 1)
|
|
4035
|
-
]),
|
|
4036
|
-
_: 1
|
|
4037
|
-
})
|
|
4038
|
-
])
|
|
4039
|
-
]),
|
|
4040
|
-
_: 1
|
|
4041
|
-
}, 512), [
|
|
4042
|
-
[Ae, a.value]
|
|
4118
|
+
_: 1
|
|
4119
|
+
}),
|
|
4120
|
+
N($, {
|
|
4121
|
+
appearance: "tertiary",
|
|
4122
|
+
"data-testid": "clear-filter",
|
|
4123
|
+
size: "small",
|
|
4124
|
+
onClick: (S) => M(_.value)
|
|
4125
|
+
}, {
|
|
4126
|
+
default: b(() => [
|
|
4127
|
+
Y(O(I(n)("filter.clearButtonText")), 1)
|
|
4128
|
+
]),
|
|
4129
|
+
_: 2
|
|
4130
|
+
}, 1032, ["onClick"])
|
|
4131
|
+
], 512), [
|
|
4132
|
+
[he, l.value.has(_.value)]
|
|
4133
|
+
])
|
|
4134
|
+
], 8, ml);
|
|
4135
|
+
}), 128)),
|
|
4136
|
+
L("div", Cl, [
|
|
4137
|
+
N($, {
|
|
4138
|
+
appearance: "tertiary",
|
|
4139
|
+
size: "small",
|
|
4140
|
+
onClick: E
|
|
4141
|
+
}, {
|
|
4142
|
+
default: b(() => [
|
|
4143
|
+
Y(O(I(n)("filter.clearAllButtonText")), 1)
|
|
4144
|
+
]),
|
|
4145
|
+
_: 1
|
|
4146
|
+
})
|
|
4147
|
+
])
|
|
4148
|
+
], 512), [
|
|
4149
|
+
[he, a.value]
|
|
4043
4150
|
])
|
|
4044
4151
|
]));
|
|
4045
4152
|
};
|
|
4046
4153
|
}
|
|
4047
|
-
}),
|
|
4154
|
+
}), Pl = /* @__PURE__ */ re(_l, [["__scopeId", "data-v-8cfadde3"]]), Hl = /* @__PURE__ */ H({
|
|
4048
4155
|
__name: "EntityToggleModal",
|
|
4049
4156
|
props: {
|
|
4050
4157
|
visible: {
|
|
@@ -4076,9 +4183,9 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
4076
4183
|
},
|
|
4077
4184
|
emits: ["cancel", "proceed"],
|
|
4078
4185
|
setup(e, { emit: t }) {
|
|
4079
|
-
const { i18n: { t: n }, i18nT: r } =
|
|
4186
|
+
const { i18n: { t: n }, i18nT: r } = z.useI18n(), i = e, a = t, o = R(!1), l = k(
|
|
4080
4187
|
() => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
|
|
4081
|
-
), s =
|
|
4188
|
+
), s = k(
|
|
4082
4189
|
() => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4083
4190
|
), c = () => a("cancel"), d = async () => {
|
|
4084
4191
|
if (i.onConfirm) {
|
|
@@ -4092,9 +4199,9 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
4092
4199
|
}
|
|
4093
4200
|
}
|
|
4094
4201
|
};
|
|
4095
|
-
return (u,
|
|
4096
|
-
const f =
|
|
4097
|
-
return
|
|
4202
|
+
return (u, m) => {
|
|
4203
|
+
const f = B("KPrompt");
|
|
4204
|
+
return p(), K(Nn, { to: "body" }, [
|
|
4098
4205
|
N(f, {
|
|
4099
4206
|
"action-button-disabled": o.value,
|
|
4100
4207
|
"action-button-text": s.value,
|
|
@@ -4104,15 +4211,15 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
4104
4211
|
onCancel: c,
|
|
4105
4212
|
onProceed: d
|
|
4106
4213
|
}, {
|
|
4107
|
-
default:
|
|
4108
|
-
N(
|
|
4214
|
+
default: b(() => [
|
|
4215
|
+
N(I(r), {
|
|
4109
4216
|
keypath: `toggleModal.${i.action}.message`,
|
|
4110
4217
|
scope: "global"
|
|
4111
4218
|
}, {
|
|
4112
|
-
entityType:
|
|
4113
|
-
|
|
4219
|
+
entityType: b(() => [
|
|
4220
|
+
Y(O(e.entityType), 1)
|
|
4114
4221
|
]),
|
|
4115
|
-
entityName:
|
|
4222
|
+
entityName: b(() => [
|
|
4116
4223
|
L("strong", null, O(e.entityName), 1)
|
|
4117
4224
|
]),
|
|
4118
4225
|
_: 1
|
|
@@ -4123,7 +4230,7 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
4123
4230
|
]);
|
|
4124
4231
|
};
|
|
4125
4232
|
}
|
|
4126
|
-
}),
|
|
4233
|
+
}), Vl = /* @__PURE__ */ H({
|
|
4127
4234
|
__name: "PermissionsWrapper",
|
|
4128
4235
|
props: {
|
|
4129
4236
|
/**
|
|
@@ -4145,24 +4252,24 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
4145
4252
|
}
|
|
4146
4253
|
},
|
|
4147
4254
|
setup(e) {
|
|
4148
|
-
const t = e, n = R(void 0), r =
|
|
4149
|
-
return
|
|
4255
|
+
const t = e, n = R(void 0), r = k(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4256
|
+
return Ae(() => t.authFunction, async () => {
|
|
4150
4257
|
n.value = await t.authFunction();
|
|
4151
4258
|
}, { immediate: !0 }), (i, a) => r.value ? V(i.$slots, "default", {
|
|
4152
4259
|
key: 0,
|
|
4153
4260
|
isAllowed: n.value
|
|
4154
|
-
}) :
|
|
4261
|
+
}) : D("", !0);
|
|
4155
4262
|
}
|
|
4156
|
-
}),
|
|
4263
|
+
}), kl = { class: "form-section-wrapper" }, Al = {
|
|
4157
4264
|
key: 0,
|
|
4158
4265
|
class: "form-section-title"
|
|
4159
|
-
},
|
|
4266
|
+
}, wl = {
|
|
4160
4267
|
key: 1,
|
|
4161
4268
|
class: "form-section-description"
|
|
4162
|
-
},
|
|
4269
|
+
}, Sl = {
|
|
4163
4270
|
key: 2,
|
|
4164
4271
|
class: "form-section-footer"
|
|
4165
|
-
},
|
|
4272
|
+
}, Il = { class: "form-section-content" }, El = /* @__PURE__ */ H({
|
|
4166
4273
|
__name: "EntityFormSection",
|
|
4167
4274
|
props: {
|
|
4168
4275
|
title: {
|
|
@@ -4188,37 +4295,37 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
4188
4295
|
},
|
|
4189
4296
|
setup(e) {
|
|
4190
4297
|
const t = Ge();
|
|
4191
|
-
return (n, r) => (
|
|
4192
|
-
class:
|
|
4298
|
+
return (n, r) => (p(), A("fieldset", {
|
|
4299
|
+
class: ue(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4193
4300
|
}, [
|
|
4194
|
-
L("div",
|
|
4195
|
-
e.hideInfoHeader ?
|
|
4301
|
+
L("div", kl, [
|
|
4302
|
+
e.hideInfoHeader ? D("", !0) : (p(), A("div", {
|
|
4196
4303
|
key: 0,
|
|
4197
|
-
class:
|
|
4304
|
+
class: ue(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4198
4305
|
}, [
|
|
4199
|
-
e.title ? (
|
|
4200
|
-
e.description ||
|
|
4306
|
+
e.title ? (p(), A("h4", Al, O(e.title), 1)) : D("", !0),
|
|
4307
|
+
e.description || I(t).description ? (p(), A("div", wl, [
|
|
4201
4308
|
V(n.$slots, "description", {}, () => [
|
|
4202
4309
|
L("p", null, O(e.description), 1)
|
|
4203
4310
|
], !0)
|
|
4204
|
-
])) :
|
|
4205
|
-
|
|
4311
|
+
])) : D("", !0),
|
|
4312
|
+
I(t).footer ? (p(), A("div", Sl, [
|
|
4206
4313
|
V(n.$slots, "footer", {}, void 0, !0)
|
|
4207
|
-
])) :
|
|
4314
|
+
])) : D("", !0)
|
|
4208
4315
|
], 2)),
|
|
4209
|
-
L("div",
|
|
4316
|
+
L("div", Il, [
|
|
4210
4317
|
V(n.$slots, "default", {}, void 0, !0)
|
|
4211
4318
|
])
|
|
4212
4319
|
])
|
|
4213
4320
|
], 2));
|
|
4214
4321
|
}
|
|
4215
|
-
}),
|
|
4322
|
+
}), Yl = /* @__PURE__ */ re(El, [["__scopeId", "data-v-3565daa7"]]), Tl = {
|
|
4216
4323
|
class: "kong-ui-public-entity-link",
|
|
4217
4324
|
"data-testid": "entity-link-parent"
|
|
4218
|
-
},
|
|
4325
|
+
}, Fl = {
|
|
4219
4326
|
key: 0,
|
|
4220
4327
|
class: "deleted-entity"
|
|
4221
|
-
},
|
|
4328
|
+
}, Ol = { key: 1 }, $l = ["onClick"], Ll = /* @__PURE__ */ H({
|
|
4222
4329
|
__name: "EntityLink",
|
|
4223
4330
|
props: {
|
|
4224
4331
|
entityLinkData: {
|
|
@@ -4242,26 +4349,26 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
4242
4349
|
}
|
|
4243
4350
|
},
|
|
4244
4351
|
setup(e) {
|
|
4245
|
-
const t = e, n = R(), { isTruncated: r } =
|
|
4352
|
+
const t = e, n = R(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = R(a), l = k(() => t.entityLinkData.deleted ?? !1), s = k(() => t.entityLinkData.id.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), c = k(() => `${s.value.toString().slice(0, 5)} (deleted)`), d = async (u) => {
|
|
4246
4353
|
await u(s.value || "") && (o.value = i("global.actions.copyToClipboard"), setTimeout(() => {
|
|
4247
4354
|
o.value = a;
|
|
4248
4355
|
}, 1800));
|
|
4249
4356
|
};
|
|
4250
|
-
return (u,
|
|
4251
|
-
const f =
|
|
4252
|
-
return
|
|
4253
|
-
l.value ? (
|
|
4357
|
+
return (u, m) => {
|
|
4358
|
+
const f = B("KTooltip"), x = B("KExternalLink"), v = B("KClipboardProvider");
|
|
4359
|
+
return p(), A("div", Tl, [
|
|
4360
|
+
l.value ? (p(), A("div", Fl, O(c.value), 1)) : s.value ? s.value ? (p(), K(x, {
|
|
4254
4361
|
key: 2,
|
|
4255
4362
|
class: "entity-link",
|
|
4256
4363
|
"hide-icon": !e.newWindow,
|
|
4257
4364
|
href: e.externalLink,
|
|
4258
4365
|
target: e.newWindow ? "_blank" : "_self"
|
|
4259
4366
|
}, {
|
|
4260
|
-
default:
|
|
4367
|
+
default: b(() => [
|
|
4261
4368
|
N(f, {
|
|
4262
|
-
text:
|
|
4369
|
+
text: I(r) && e.entityLinkData.label || ""
|
|
4263
4370
|
}, {
|
|
4264
|
-
default:
|
|
4371
|
+
default: b(() => [
|
|
4265
4372
|
L("span", {
|
|
4266
4373
|
ref_key: "textContent",
|
|
4267
4374
|
ref: n,
|
|
@@ -4272,67 +4379,67 @@ const ao = { class: "yaml-config" }, Sn = /* @__PURE__ */ Y({
|
|
|
4272
4379
|
}, 8, ["text"])
|
|
4273
4380
|
]),
|
|
4274
4381
|
_: 1
|
|
4275
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4276
|
-
s.value && e.allowCopy ? (
|
|
4382
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (p(), A("div", Ol, O(" – "))),
|
|
4383
|
+
s.value && e.allowCopy ? (p(), K(f, {
|
|
4277
4384
|
key: o.value,
|
|
4278
4385
|
class: "copy-uuid-tooltip",
|
|
4279
4386
|
"max-width": "160",
|
|
4280
4387
|
placement: "bottomEnd",
|
|
4281
4388
|
text: o.value
|
|
4282
4389
|
}, {
|
|
4283
|
-
default:
|
|
4284
|
-
N(
|
|
4285
|
-
default:
|
|
4390
|
+
default: b(() => [
|
|
4391
|
+
N(v, null, {
|
|
4392
|
+
default: b(({ copyToClipboard: w }) => [
|
|
4286
4393
|
L("span", {
|
|
4287
4394
|
class: "entity-link-copy-id",
|
|
4288
|
-
onClick: He((
|
|
4395
|
+
onClick: He((M) => d(w), ["stop"])
|
|
4289
4396
|
}, [
|
|
4290
|
-
N(
|
|
4397
|
+
N(I(Po), {
|
|
4291
4398
|
class: "copy-icon",
|
|
4292
|
-
color:
|
|
4399
|
+
color: I(kr),
|
|
4293
4400
|
"data-testid": "copy-id",
|
|
4294
|
-
size:
|
|
4401
|
+
size: I(wr)
|
|
4295
4402
|
}, null, 8, ["color", "size"])
|
|
4296
|
-
], 8,
|
|
4403
|
+
], 8, $l)
|
|
4297
4404
|
]),
|
|
4298
4405
|
_: 1
|
|
4299
4406
|
})
|
|
4300
4407
|
]),
|
|
4301
4408
|
_: 1
|
|
4302
|
-
}, 8, ["text"])) :
|
|
4409
|
+
}, 8, ["text"])) : D("", !0)
|
|
4303
4410
|
]);
|
|
4304
4411
|
};
|
|
4305
4412
|
}
|
|
4306
|
-
}),
|
|
4413
|
+
}), zl = /* @__PURE__ */ re(Ll, [["__scopeId", "data-v-ff8e5179"]]), { useAxios: Wl, useDeleteUrlBuilder: Jl, useErrors: Gl, useExternalLinkCreator: Zl, useFetchUrlBuilder: Ql, useFetcher: Xl, useDebouncedFilter: es, useStringHelpers: ts, useHelpers: ns, useGatewayFeatureSupported: rs, useTruncationDetector: is } = z;
|
|
4307
4414
|
export {
|
|
4308
|
-
|
|
4415
|
+
po as ConfigCardDisplay,
|
|
4309
4416
|
Rt as ConfigCardItem,
|
|
4310
4417
|
ne as ConfigurationSchemaSection,
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4418
|
+
P as ConfigurationSchemaType,
|
|
4419
|
+
Dl as EntityBaseConfigCard,
|
|
4420
|
+
jl as EntityBaseForm,
|
|
4421
|
+
jn as EntityBaseFormType,
|
|
4422
|
+
Ul as EntityBaseTable,
|
|
4423
|
+
ql as EntityDeleteModal,
|
|
4424
|
+
Pl as EntityFilter,
|
|
4425
|
+
Yl as EntityFormSection,
|
|
4426
|
+
zl as EntityLink,
|
|
4427
|
+
Hl as EntityToggleModal,
|
|
4428
|
+
Dn as EntityTypes,
|
|
4429
|
+
ve as FetcherStatus,
|
|
4430
|
+
yr as InternalLinkItem,
|
|
4431
|
+
Kt as JsonCodeBlock,
|
|
4432
|
+
Vl as PermissionsWrapper,
|
|
4326
4433
|
Sn as YamlCodeBlock,
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4434
|
+
Wl as useAxios,
|
|
4435
|
+
es as useDebouncedFilter,
|
|
4436
|
+
Jl as useDeleteUrlBuilder,
|
|
4437
|
+
Gl as useErrors,
|
|
4438
|
+
Zl as useExternalLinkCreator,
|
|
4439
|
+
Ql as useFetchUrlBuilder,
|
|
4440
|
+
Xl as useFetcher,
|
|
4441
|
+
rs as useGatewayFeatureSupported,
|
|
4442
|
+
ns as useHelpers,
|
|
4443
|
+
ts as useStringHelpers,
|
|
4444
|
+
is as useTruncationDetector
|
|
4338
4445
|
};
|