@kong-ui-public/entities-shared 3.49.6 → 3.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-shared.cjs.js +40 -40
- package/dist/entities-shared.es.js +943 -928
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts +18 -1
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -1
- package/dist/types/types/entity-base-form.d.ts +2 -0
- package/dist/types/types/entity-base-form.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { F as
|
|
1
|
+
import { defineComponent as te, computed as A, openBlock as d, createBlock as I, resolveDynamicComponent as Ne, normalizeClass as de, withCtx as x, createElementBlock as T, createElementVNode as B, toDisplayString as w, createCommentVNode as R, Fragment as se, renderList as be, unref as m, resolveComponent as L, createVNode as F, createTextVNode as P, useCssVars as pt, useId as Gn, useSlots as Ve, ref as N, renderSlot as H, createSlots as Ee, normalizeProps as Jn, guardReactiveProps as Qn, mergeProps as Ye, watch as Ce, inject as Vt, watchEffect as Xn, onMounted as et, onBeforeMount as mt, withModifiers as je, Teleport as Yt, onUnmounted as Zn, withDirectives as Ie, vShow as Oe, withKeys as Wt, warn as ei, useTemplateRef as ti, onBeforeUnmount as ni } from "vue";
|
|
2
|
+
import { c as G, _ as le, C as ee, S as _e, E as ii, I as ri, a as tt, D as oi, b as ai, d as li, e as ge, P as ci, f as si } from "./_plugin-vue_export-helper-CxCTU6Pp.js";
|
|
3
|
+
import { F as ns, g as is, i as rs } from "./_plugin-vue_export-helper-CxCTU6Pp.js";
|
|
4
4
|
import { BadgeMethodAppearances as ui, KExternalLink as di, KButton as xt, KTruncate as fi, KBadge as pi } from "@kong/kongponents";
|
|
5
5
|
import { createHighlighterCoreSync as mi } from "@shikijs/core";
|
|
6
6
|
import { createJavaScriptRegexEngine as yi } from "@shikijs/engine-javascript";
|
|
@@ -14,13 +14,13 @@ import xi from "@shikijs/themes/catppuccin-latte";
|
|
|
14
14
|
import { LanguageShellIcon as At, LanguageBashIcon as St, InfoIcon as Gt, BookIcon as Jt, AddIcon as Qt, CloseIcon as Ai, ChevronDownIcon as Si, CopyIcon as Xt, VisibilityOffIcon as Ti, VisibilityIcon as wi } from "@kong/icons";
|
|
15
15
|
import { useRouter as _i } from "vue-router";
|
|
16
16
|
var $i = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))($i || {}), Ei = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Ei || {});
|
|
17
|
-
const Tt = [
|
|
17
|
+
const Ac = ["json", "yaml", "terraform", "deck"], Tt = [
|
|
18
18
|
"primary",
|
|
19
19
|
"secondary"
|
|
20
20
|
], Ii = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "config-card-fieldset-title"
|
|
23
|
-
}, Oi = /* @__PURE__ */
|
|
23
|
+
}, Oi = /* @__PURE__ */ te({
|
|
24
24
|
__name: "JsonCardItem",
|
|
25
25
|
props: {
|
|
26
26
|
item: {
|
|
@@ -37,21 +37,21 @@ const Tt = [
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
setup(e) {
|
|
40
|
-
const t = e, { i18n: { t: n } } =
|
|
40
|
+
const t = e, { i18n: { t: n } } = G.useI18n(), { convertKeyToTitle: i } = G.useStringHelpers(), r = A(() => t.item.key ?? "json-array-item"), a = A(() => t.item.value ?? t.item), o = A(() => {
|
|
41
41
|
const c = JSON.parse(JSON.stringify(a.value));
|
|
42
42
|
return t.isArrayItem && delete c.name, c;
|
|
43
43
|
}), l = A(() => {
|
|
44
44
|
var c;
|
|
45
45
|
return t.isArrayItem ? (c = a.value) != null && c.name ? i(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
46
46
|
});
|
|
47
|
-
return (c, s) => (d(), I(
|
|
48
|
-
class:
|
|
47
|
+
return (c, s) => (d(), I(Ne(e.isArrayItem ? "fieldset" : "div"), {
|
|
48
|
+
class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
49
49
|
}, {
|
|
50
50
|
default: x(() => [
|
|
51
51
|
e.isArrayItem ? (d(), T("legend", Ii, [
|
|
52
|
-
|
|
53
|
-
])) :
|
|
54
|
-
(d(!0), T(
|
|
52
|
+
B("b", null, w(l.value), 1)
|
|
53
|
+
])) : R("", !0),
|
|
54
|
+
(d(!0), T(se, null, be(Object.keys(o.value), (y, u) => (d(), I(en, {
|
|
55
55
|
key: `${r.value}-property-${u}`,
|
|
56
56
|
item: {
|
|
57
57
|
key: y,
|
|
@@ -63,7 +63,7 @@ const Tt = [
|
|
|
63
63
|
_: 1
|
|
64
64
|
}, 8, ["class"]));
|
|
65
65
|
}
|
|
66
|
-
}), Zt = /* @__PURE__ */
|
|
66
|
+
}), Zt = /* @__PURE__ */ le(Oi, [["__scopeId", "data-v-5baf64ca"]]), Fi = /* @__PURE__ */ te({
|
|
67
67
|
__name: "InternalLinkItem",
|
|
68
68
|
props: {
|
|
69
69
|
item: {
|
|
@@ -73,24 +73,24 @@ const Tt = [
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["navigation-click"],
|
|
75
75
|
setup(e) {
|
|
76
|
-
const { i18n: { t } } =
|
|
76
|
+
const { i18n: { t } } = G.useI18n();
|
|
77
77
|
return (n, i) => {
|
|
78
|
-
const r =
|
|
78
|
+
const r = L("KButton");
|
|
79
79
|
return d(), T("div", null, [
|
|
80
|
-
|
|
80
|
+
F(r, {
|
|
81
81
|
appearance: "tertiary",
|
|
82
82
|
class: "navigation-button",
|
|
83
83
|
onClick: i[0] || (i[0] = (a) => n.$emit("navigation-click", e.item))
|
|
84
84
|
}, {
|
|
85
85
|
default: x(() => [
|
|
86
|
-
|
|
86
|
+
P(w(e.item.value || m(t)("baseConfigCard.commonFields.link")), 1)
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
89
89
|
})
|
|
90
90
|
]);
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
}), Bi = /* @__PURE__ */
|
|
93
|
+
}), Bi = /* @__PURE__ */ le(Fi, [["__scopeId", "data-v-2feb8c2e"]]), Ki = /* @__PURE__ */ te({
|
|
94
94
|
__name: "StatusBadge",
|
|
95
95
|
props: {
|
|
96
96
|
status: {
|
|
@@ -99,20 +99,20 @@ const Tt = [
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
setup(e) {
|
|
102
|
-
const { i18n: { t } } =
|
|
102
|
+
const { i18n: { t } } = G.useI18n();
|
|
103
103
|
return (n, i) => {
|
|
104
|
-
const r =
|
|
104
|
+
const r = L("KBadge");
|
|
105
105
|
return d(), I(r, {
|
|
106
106
|
appearance: e.status ? "success" : "neutral"
|
|
107
107
|
}, {
|
|
108
108
|
default: x(() => [
|
|
109
|
-
|
|
109
|
+
P(w(e.status ? m(t)("baseConfigCard.statusBadge.enabledLabel") : m(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
112
|
}, 8, ["appearance"]);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
}), Ri = "#0044f4", Li = "#e0e4ea", Di = "#0044f4", Ni = "#afb7c5", Pi = "#0044f4", Mi = "1px", ji = "16px",
|
|
115
|
+
}), Ri = "#0044f4", Li = "#e0e4ea", Di = "#0044f4", Ni = "#afb7c5", Pi = "#0044f4", Mi = "1px", ji = "16px", Pe = "20px", wt = "8px", _t = "12px";
|
|
116
116
|
let it = null;
|
|
117
117
|
function qi() {
|
|
118
118
|
return it || (it = mi({
|
|
@@ -130,13 +130,13 @@ function qi() {
|
|
|
130
130
|
function Ui(e, t) {
|
|
131
131
|
return qi().codeToHtml(e, t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Le({ codeElement: e, code: t, language: n, theme: i }) {
|
|
134
134
|
e.innerHTML = Ui(t, { lang: n, theme: i === "dark" ? "catppuccin-mocha" : "catppuccin-latte", structure: "inline" });
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const Hi = { class: "config-card-details-row" }, zi = ["data-testid"], Vi = ["data-testid"], Yi = ["data-testid"], Wi = ["data-testid"], Gi = { key: 1 }, Ji = ["data-testid"], Qi = ["data-testid"], Xi = ["data-testid"], Zi = ["data-testid"], er = {
|
|
137
137
|
name: "ConfigCardItem",
|
|
138
138
|
components: { JsonCardItem: Zt, StatusBadge: Ki, InternalLinkItem: Bi }
|
|
139
|
-
}, tr = /* @__PURE__ */
|
|
139
|
+
}, tr = /* @__PURE__ */ te({
|
|
140
140
|
...er,
|
|
141
141
|
props: {
|
|
142
142
|
item: {
|
|
@@ -156,18 +156,18 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["navigation-click"],
|
|
158
158
|
setup(e, { emit: t }) {
|
|
159
|
-
pt((
|
|
159
|
+
pt((M) => ({
|
|
160
160
|
v25a763c4: k.value ? "none" : `solid ${m(Mi)} ${m(Li)}`,
|
|
161
161
|
v1ac90e12: u.value && s.value ? "block" : "flex",
|
|
162
162
|
v45a716ee: u.value && s.value ? "100%" : n.slim ? "50%" : "25%",
|
|
163
163
|
v45a28b38: u.value && s.value ? "100%" : n.slim ? "50%" : "75%"
|
|
164
164
|
}));
|
|
165
|
-
const n = e, i = t, r = Gn(), a =
|
|
166
|
-
var
|
|
167
|
-
return n.item.type ? n.item.type : (
|
|
165
|
+
const n = e, i = t, r = Gn(), a = Ve(), { i18n: { t: o, formatIsoDate: l, formatUnixTimeStamp: c } } = G.useI18n(), s = A(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), y = A(() => !!(n.item.tooltip || a["label-tooltip"])), u = A(() => n.item.type === ee.Json || n.item.type === ee.JsonArray), k = A(() => n.item.type === ee.JsonArray), h = G.useSubSchema(n.item.key), _ = A(() => {
|
|
166
|
+
var M;
|
|
167
|
+
return n.item.type ? n.item.type : (M = h == null ? void 0 : h.value) != null && M.encrypted ? ee.Redacted : void 0;
|
|
168
168
|
}), g = A(() => {
|
|
169
169
|
switch (_.value) {
|
|
170
|
-
case
|
|
170
|
+
case ee.ID:
|
|
171
171
|
return {
|
|
172
172
|
tag: "KCopy",
|
|
173
173
|
attrs: {
|
|
@@ -176,7 +176,7 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
176
176
|
text: n.item.value
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
|
-
case
|
|
179
|
+
case ee.IdArray:
|
|
180
180
|
return {
|
|
181
181
|
tag: "div",
|
|
182
182
|
additionalComponent: "KCopy",
|
|
@@ -184,7 +184,7 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
184
184
|
"copy-tooltip": o("baseConfigCard.copy.tooltip", { label: n.item.label })
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
|
-
case
|
|
187
|
+
case ee.Redacted:
|
|
188
188
|
return {
|
|
189
189
|
tag: "KCopy",
|
|
190
190
|
attrs: {
|
|
@@ -194,7 +194,7 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
194
194
|
text: n.item.value
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
case
|
|
197
|
+
case ee.RedactedArray:
|
|
198
198
|
return {
|
|
199
199
|
tag: "div",
|
|
200
200
|
additionalComponent: "KCopy",
|
|
@@ -203,7 +203,7 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
203
203
|
"copy-tooltip": o("baseConfigCard.copy.tooltip", { label: n.item.label })
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
case
|
|
206
|
+
case ee.Date:
|
|
207
207
|
return {
|
|
208
208
|
tag: "div",
|
|
209
209
|
attrs: {
|
|
@@ -211,7 +211,7 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
211
211
|
},
|
|
212
212
|
text: isNaN(Number(n.item.value)) ? l(n.item.value) : c(n.item.value)
|
|
213
213
|
};
|
|
214
|
-
case
|
|
214
|
+
case ee.BadgeStatus:
|
|
215
215
|
return {
|
|
216
216
|
tag: "StatusBadge",
|
|
217
217
|
attrs: {
|
|
@@ -219,12 +219,12 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
219
219
|
status: n.item.value
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
|
-
case
|
|
222
|
+
case ee.BadgeTag:
|
|
223
223
|
return {
|
|
224
224
|
tag: "div",
|
|
225
225
|
additionalComponent: "KBadge"
|
|
226
226
|
};
|
|
227
|
-
case
|
|
227
|
+
case ee.CopyBadge:
|
|
228
228
|
return {
|
|
229
229
|
tag: "div",
|
|
230
230
|
additionalComponent: "KCopy",
|
|
@@ -235,23 +235,23 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
235
235
|
text: n.item.value
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
|
-
case
|
|
238
|
+
case ee.BadgeMethod:
|
|
239
239
|
return {
|
|
240
240
|
tag: "div",
|
|
241
241
|
additionalComponent: "KMethodBadge"
|
|
242
242
|
};
|
|
243
|
-
case
|
|
243
|
+
case ee.LinkInternal:
|
|
244
244
|
return {
|
|
245
245
|
tag: "InternalLinkItem",
|
|
246
246
|
attrs: {
|
|
247
247
|
"data-testid": `${n.item.key}-internal-link`,
|
|
248
248
|
item: n.item,
|
|
249
|
-
onNavigationClick: (
|
|
250
|
-
i("navigation-click",
|
|
249
|
+
onNavigationClick: (M) => {
|
|
250
|
+
i("navigation-click", M);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
case
|
|
254
|
+
case ee.LinkExternal:
|
|
255
255
|
return {
|
|
256
256
|
tag: "KExternalLink",
|
|
257
257
|
attrs: {
|
|
@@ -260,7 +260,7 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
260
260
|
},
|
|
261
261
|
text: n.item.value
|
|
262
262
|
};
|
|
263
|
-
case
|
|
263
|
+
case ee.Json:
|
|
264
264
|
return {
|
|
265
265
|
tag: "JsonCardItem",
|
|
266
266
|
attrs: {
|
|
@@ -268,7 +268,7 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
268
268
|
item: n.item
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
|
-
case
|
|
271
|
+
case ee.JsonArray:
|
|
272
272
|
return {
|
|
273
273
|
tag: "div",
|
|
274
274
|
additionalComponent: "JsonCardItem",
|
|
@@ -287,7 +287,7 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
287
287
|
code: JSON.stringify(n.item.value, null, " "),
|
|
288
288
|
maxHeight: "480px",
|
|
289
289
|
showLineNumbers: !1,
|
|
290
|
-
onCodeBlockRender:
|
|
290
|
+
onCodeBlockRender: Le
|
|
291
291
|
}
|
|
292
292
|
} : {
|
|
293
293
|
tag: "div",
|
|
@@ -297,22 +297,22 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
297
297
|
text: n.item.value
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
}), p =
|
|
301
|
-
return (
|
|
302
|
-
const
|
|
303
|
-
return d(), T("div",
|
|
304
|
-
|
|
300
|
+
}), p = N(), E = N(), { isTruncated: f } = G.useTruncationDetector(p), { isTruncated: C } = G.useTruncationDetector(E);
|
|
301
|
+
return (M, j) => {
|
|
302
|
+
const X = L("KTooltip"), v = L("KLabel"), O = L("KBadge"), b = L("KCopy");
|
|
303
|
+
return d(), T("div", Hi, [
|
|
304
|
+
B("div", {
|
|
305
305
|
class: "config-card-details-label",
|
|
306
306
|
"data-testid": `${e.item.key}-label`
|
|
307
307
|
}, [
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
H(M.$slots, "label", { item: e.item }, () => [
|
|
309
|
+
F(v, { "tooltip-attributes": { maxWidth: "500px" } }, Ee({
|
|
310
310
|
default: x(() => [
|
|
311
|
-
|
|
311
|
+
F(X, {
|
|
312
312
|
text: m(f) ? e.item.label : ""
|
|
313
313
|
}, {
|
|
314
314
|
default: x(() => [
|
|
315
|
-
|
|
315
|
+
B("span", {
|
|
316
316
|
ref_key: "labelContent",
|
|
317
317
|
ref: p,
|
|
318
318
|
class: "label-content"
|
|
@@ -326,11 +326,11 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
326
326
|
y.value ? {
|
|
327
327
|
name: "tooltip",
|
|
328
328
|
fn: x(() => [
|
|
329
|
-
|
|
329
|
+
B("div", {
|
|
330
330
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
331
331
|
}, [
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
H(M.$slots, "label-tooltip", {}, () => [
|
|
333
|
+
P(w(e.item.tooltip), 1)
|
|
334
334
|
], !0)
|
|
335
335
|
], 8, Vi)
|
|
336
336
|
]),
|
|
@@ -338,30 +338,30 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
338
338
|
} : void 0
|
|
339
339
|
]), 1024)
|
|
340
340
|
], !0)
|
|
341
|
-
], 8,
|
|
342
|
-
|
|
341
|
+
], 8, zi),
|
|
342
|
+
B("div", {
|
|
343
343
|
class: "config-card-details-value",
|
|
344
344
|
"data-testid": `${e.item.key}-property-value`
|
|
345
345
|
}, [
|
|
346
|
-
|
|
346
|
+
H(M.$slots, e.item.key, {
|
|
347
347
|
rowValue: e.item.value
|
|
348
348
|
}, () => [
|
|
349
349
|
s.value ? (d(), T("div", Gi, [
|
|
350
|
-
(d(), I(
|
|
350
|
+
(d(), I(Ne(g.value.tag), Jn(Qn(g.value.attrs)), {
|
|
351
351
|
default: x(() => [
|
|
352
352
|
g.value.additionalComponent === "KBadge" ? (d(), T("div", {
|
|
353
353
|
key: 0,
|
|
354
354
|
"data-testid": `${e.item.key}-badge-tags`
|
|
355
355
|
}, [
|
|
356
|
-
(d(!0), T(
|
|
357
|
-
key: `${e.item.key}-badge-tag-${
|
|
356
|
+
(d(!0), T(se, null, be(e.item.value, (S, J) => (d(), I(O, {
|
|
357
|
+
key: `${e.item.key}-badge-tag-${J}`,
|
|
358
358
|
class: "config-badge",
|
|
359
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
359
|
+
"data-testid": `${e.item.key}-badge-tag-${J}`,
|
|
360
360
|
tooltip: S,
|
|
361
361
|
"truncation-tooltip": ""
|
|
362
362
|
}, {
|
|
363
363
|
default: x(() => [
|
|
364
|
-
|
|
364
|
+
P(w(S), 1)
|
|
365
365
|
]),
|
|
366
366
|
_: 2
|
|
367
367
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -370,9 +370,9 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
370
370
|
class: "copy-uuid-array",
|
|
371
371
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
372
372
|
}, [
|
|
373
|
-
(d(!0), T(
|
|
374
|
-
key: `${e.item.key}-copy-uuid-${
|
|
375
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
373
|
+
(d(!0), T(se, null, be(e.item.value, (S, J) => (d(), I(b, Ye({ ref_for: !0 }, g.value.childAttrs, {
|
|
374
|
+
key: `${e.item.key}-copy-uuid-${J}`,
|
|
375
|
+
"data-testid": `${e.item.key}-copy-uuid-${J}`,
|
|
376
376
|
text: S
|
|
377
377
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
378
378
|
], 8, Qi)) : g.value.additionalComponent === "KMethodBadge" ? (d(), T("div", {
|
|
@@ -380,14 +380,14 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
380
380
|
class: "method-badge-array",
|
|
381
381
|
"data-testid": `${e.item.key}-badge-methods`
|
|
382
382
|
}, [
|
|
383
|
-
(d(!0), T(
|
|
384
|
-
key: `${e.item.key}-badge-method-${
|
|
383
|
+
(d(!0), T(se, null, be(e.item.value, (S, J) => (d(), I(O, {
|
|
384
|
+
key: `${e.item.key}-badge-method-${J}`,
|
|
385
385
|
appearance: Object.values(m(ui)).includes(S.toLowerCase()) ? S.toLowerCase() : "custom",
|
|
386
386
|
class: "config-badge",
|
|
387
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
387
|
+
"data-testid": `${e.item.key}-badge-method-${J}`
|
|
388
388
|
}, {
|
|
389
389
|
default: x(() => [
|
|
390
|
-
|
|
390
|
+
P(w(S), 1)
|
|
391
391
|
]),
|
|
392
392
|
_: 2
|
|
393
393
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
@@ -395,21 +395,21 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
395
395
|
key: 3,
|
|
396
396
|
"data-testid": `${n.item.key}-json-array-content`
|
|
397
397
|
}, [
|
|
398
|
-
(d(!0), T(
|
|
399
|
-
key: `json-array-item-${
|
|
400
|
-
index: Number(
|
|
398
|
+
(d(!0), T(se, null, be(e.item.value, (S, J) => (d(), I(Zt, {
|
|
399
|
+
key: `json-array-item-${J}`,
|
|
400
|
+
index: Number(J),
|
|
401
401
|
"is-array-item": "",
|
|
402
402
|
item: S
|
|
403
403
|
}, null, 8, ["index", "item"]))), 128))
|
|
404
|
-
], 8, Zi)) : (d(), I(
|
|
404
|
+
], 8, Zi)) : (d(), I(X, {
|
|
405
405
|
key: 4,
|
|
406
406
|
text: m(C) ? e.item.value : ""
|
|
407
407
|
}, {
|
|
408
408
|
default: x(() => [
|
|
409
|
-
|
|
409
|
+
B("span", {
|
|
410
410
|
ref_key: "textContent",
|
|
411
411
|
ref: E,
|
|
412
|
-
class:
|
|
412
|
+
class: de(["attrs-data-text", { truncated: e.truncated }])
|
|
413
413
|
}, w(g.value.text), 3)
|
|
414
414
|
]),
|
|
415
415
|
_: 1
|
|
@@ -426,10 +426,10 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
426
426
|
]);
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
|
-
}), en = /* @__PURE__ */
|
|
429
|
+
}), en = /* @__PURE__ */ le(tr, [["__scopeId", "data-v-b6987b3c"]]), nr = { class: "json-config config-card-code-block" }, ir = {
|
|
430
430
|
key: 0,
|
|
431
431
|
class: "json-endpoint"
|
|
432
|
-
}, tn = /* @__PURE__ */
|
|
432
|
+
}, tn = /* @__PURE__ */ te({
|
|
433
433
|
__name: "JsonCodeBlock",
|
|
434
434
|
props: {
|
|
435
435
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -473,34 +473,34 @@ const zi = { class: "config-card-details-row" }, Hi = ["data-testid"], Vi = ["da
|
|
|
473
473
|
return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
|
|
474
474
|
});
|
|
475
475
|
return (r, a) => {
|
|
476
|
-
const o =
|
|
476
|
+
const o = L("KBadge"), l = L("KCodeBlock");
|
|
477
477
|
return d(), T("div", nr, [
|
|
478
478
|
e.fetcherUrl ? (d(), T("div", ir, [
|
|
479
|
-
|
|
479
|
+
F(o, { appearance: e.requestMethod }, {
|
|
480
480
|
default: x(() => [
|
|
481
|
-
|
|
481
|
+
P(w(e.requestMethod), 1)
|
|
482
482
|
]),
|
|
483
483
|
_: 1
|
|
484
484
|
}, 8, ["appearance"]),
|
|
485
|
-
|
|
485
|
+
F(l, {
|
|
486
486
|
id: "json-endpoint-codeblock",
|
|
487
487
|
code: e.fetcherUrl,
|
|
488
488
|
language: "plaintext",
|
|
489
489
|
"single-line": "",
|
|
490
490
|
theme: "dark"
|
|
491
491
|
}, null, 8, ["code"])
|
|
492
|
-
])) :
|
|
492
|
+
])) : R("", !0),
|
|
493
493
|
e.entityRecord ? (d(), I(l, {
|
|
494
494
|
key: 1,
|
|
495
495
|
id: "json-codeblock",
|
|
496
|
-
class:
|
|
496
|
+
class: de({ "json-content": e.fetcherUrl }),
|
|
497
497
|
code: JSON.stringify(n.value, null, 2),
|
|
498
498
|
"copy-code": JSON.stringify(e.unredactedRecord || n.value, null, 2),
|
|
499
499
|
"data-dd-privacy": "mask",
|
|
500
500
|
language: "json",
|
|
501
501
|
theme: "dark",
|
|
502
|
-
onCodeBlockRender: m(
|
|
503
|
-
}, null, 8, ["class", "code", "copy-code", "onCodeBlockRender"])) :
|
|
502
|
+
onCodeBlockRender: m(Le)
|
|
503
|
+
}, null, 8, ["class", "code", "copy-code", "onCodeBlockRender"])) : R("", !0)
|
|
504
504
|
]);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
@@ -531,7 +531,7 @@ function lr(e, t) {
|
|
|
531
531
|
function cr(e) {
|
|
532
532
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
533
533
|
}
|
|
534
|
-
var sr = nn, ur = rr, dr = or, fr = lr, pr = cr, mr = ar,
|
|
534
|
+
var sr = nn, ur = rr, dr = or, fr = lr, pr = cr, mr = ar, ae = {
|
|
535
535
|
isNothing: sr,
|
|
536
536
|
isObject: ur,
|
|
537
537
|
toArray: dr,
|
|
@@ -545,15 +545,15 @@ function rn(e, t) {
|
|
|
545
545
|
|
|
546
546
|
` + e.mark.snippet), i + " " + n) : i;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function qe(e, t) {
|
|
549
549
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = rn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
550
550
|
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
551
|
+
qe.prototype = Object.create(Error.prototype);
|
|
552
|
+
qe.prototype.constructor = qe;
|
|
553
|
+
qe.prototype.toString = function(t) {
|
|
554
554
|
return this.name + ": " + rn(this, t);
|
|
555
555
|
};
|
|
556
|
-
var
|
|
556
|
+
var me = qe;
|
|
557
557
|
function rt(e, t, n, i, r) {
|
|
558
558
|
var a = "", o = "", l = Math.floor(r / 2) - 1;
|
|
559
559
|
return i - t > l && (a = " ... ", t = i - l + a.length), n - i > l && (o = " ...", n = i + l - o.length), {
|
|
@@ -563,7 +563,7 @@ function rt(e, t, n, i, r) {
|
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
565
|
function ot(e, t) {
|
|
566
|
-
return
|
|
566
|
+
return ae.repeat(" ", t - e.length) + e;
|
|
567
567
|
}
|
|
568
568
|
function yr(e, t) {
|
|
569
569
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
@@ -579,10 +579,10 @@ function yr(e, t) {
|
|
|
579
579
|
r[o - c],
|
|
580
580
|
e.position - (i[o] - i[o - c]),
|
|
581
581
|
u
|
|
582
|
-
), l =
|
|
582
|
+
), l = ae.repeat(" ", t.indent) + ot((e.line - c + 1).toString(), y) + " | " + s.str + `
|
|
583
583
|
` + l;
|
|
584
|
-
for (s = rt(e.buffer, i[o], r[o], e.position, u), l +=
|
|
585
|
-
`, l +=
|
|
584
|
+
for (s = rt(e.buffer, i[o], r[o], e.position, u), l += ae.repeat(" ", t.indent) + ot((e.line + 1).toString(), y) + " | " + s.str + `
|
|
585
|
+
`, l += ae.repeat("-", t.indent + y + 3 + s.pos) + `^
|
|
586
586
|
`, c = 1; c <= t.linesAfter && !(o + c >= r.length); c++)
|
|
587
587
|
s = rt(
|
|
588
588
|
e.buffer,
|
|
@@ -590,7 +590,7 @@ function yr(e, t) {
|
|
|
590
590
|
r[o + c],
|
|
591
591
|
e.position - (i[o] - i[o + c]),
|
|
592
592
|
u
|
|
593
|
-
), l +=
|
|
593
|
+
), l += ae.repeat(" ", t.indent) + ot((e.line + c + 1).toString(), y) + " | " + s.str + `
|
|
594
594
|
`;
|
|
595
595
|
return l.replace(/\n$/, "");
|
|
596
596
|
}
|
|
@@ -621,15 +621,15 @@ function br(e) {
|
|
|
621
621
|
function kr(e, t) {
|
|
622
622
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
623
623
|
if (vr.indexOf(n) === -1)
|
|
624
|
-
throw new
|
|
624
|
+
throw new me('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
625
625
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
626
626
|
return !0;
|
|
627
627
|
}, this.construct = t.construct || function(n) {
|
|
628
628
|
return n;
|
|
629
629
|
}, 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 = br(t.styleAliases || null), hr.indexOf(this.kind) === -1)
|
|
630
|
-
throw new
|
|
630
|
+
throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
631
631
|
}
|
|
632
|
-
var
|
|
632
|
+
var ue = kr;
|
|
633
633
|
function $t(e, t) {
|
|
634
634
|
var n = [];
|
|
635
635
|
return e[t].forEach(function(i) {
|
|
@@ -664,39 +664,39 @@ function ct(e) {
|
|
|
664
664
|
}
|
|
665
665
|
ct.prototype.extend = function(t) {
|
|
666
666
|
var n = [], i = [];
|
|
667
|
-
if (t instanceof
|
|
667
|
+
if (t instanceof ue)
|
|
668
668
|
i.push(t);
|
|
669
669
|
else if (Array.isArray(t))
|
|
670
670
|
i = i.concat(t);
|
|
671
671
|
else if (t && (Array.isArray(t.implicit) || Array.isArray(t.explicit)))
|
|
672
672
|
t.implicit && (n = n.concat(t.implicit)), t.explicit && (i = i.concat(t.explicit));
|
|
673
673
|
else
|
|
674
|
-
throw new
|
|
674
|
+
throw new me("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
675
675
|
n.forEach(function(a) {
|
|
676
|
-
if (!(a instanceof
|
|
677
|
-
throw new
|
|
676
|
+
if (!(a instanceof ue))
|
|
677
|
+
throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
678
678
|
if (a.loadKind && a.loadKind !== "scalar")
|
|
679
|
-
throw new
|
|
679
|
+
throw new me("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
680
680
|
if (a.multi)
|
|
681
|
-
throw new
|
|
681
|
+
throw new me("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
682
682
|
}), i.forEach(function(a) {
|
|
683
|
-
if (!(a instanceof
|
|
684
|
-
throw new
|
|
683
|
+
if (!(a instanceof ue))
|
|
684
|
+
throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
685
685
|
});
|
|
686
686
|
var r = Object.create(ct.prototype);
|
|
687
687
|
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = $t(r, "implicit"), r.compiledExplicit = $t(r, "explicit"), r.compiledTypeMap = Cr(r.compiledImplicit, r.compiledExplicit), r;
|
|
688
688
|
};
|
|
689
|
-
var on = ct, an = new
|
|
689
|
+
var on = ct, an = new ue("tag:yaml.org,2002:str", {
|
|
690
690
|
kind: "scalar",
|
|
691
691
|
construct: function(e) {
|
|
692
692
|
return e !== null ? e : "";
|
|
693
693
|
}
|
|
694
|
-
}), ln = new
|
|
694
|
+
}), ln = new ue("tag:yaml.org,2002:seq", {
|
|
695
695
|
kind: "sequence",
|
|
696
696
|
construct: function(e) {
|
|
697
697
|
return e !== null ? e : [];
|
|
698
698
|
}
|
|
699
|
-
}), cn = new
|
|
699
|
+
}), cn = new ue("tag:yaml.org,2002:map", {
|
|
700
700
|
kind: "mapping",
|
|
701
701
|
construct: function(e) {
|
|
702
702
|
return e !== null ? e : {};
|
|
@@ -719,7 +719,7 @@ function Ar() {
|
|
|
719
719
|
function Sr(e) {
|
|
720
720
|
return e === null;
|
|
721
721
|
}
|
|
722
|
-
var un = new
|
|
722
|
+
var un = new ue("tag:yaml.org,2002:null", {
|
|
723
723
|
kind: "scalar",
|
|
724
724
|
resolve: xr,
|
|
725
725
|
construct: Ar,
|
|
@@ -754,7 +754,7 @@ function wr(e) {
|
|
|
754
754
|
function _r(e) {
|
|
755
755
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
756
756
|
}
|
|
757
|
-
var dn = new
|
|
757
|
+
var dn = new ue("tag:yaml.org,2002:bool", {
|
|
758
758
|
kind: "scalar",
|
|
759
759
|
resolve: Tr,
|
|
760
760
|
construct: wr,
|
|
@@ -832,9 +832,9 @@ function Fr(e) {
|
|
|
832
832
|
return n * parseInt(t, 10);
|
|
833
833
|
}
|
|
834
834
|
function Br(e) {
|
|
835
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
835
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ae.isNegativeZero(e);
|
|
836
836
|
}
|
|
837
|
-
var fn = new
|
|
837
|
+
var fn = new ue("tag:yaml.org,2002:int", {
|
|
838
838
|
kind: "scalar",
|
|
839
839
|
resolve: Or,
|
|
840
840
|
construct: Fr,
|
|
@@ -904,14 +904,14 @@ function Nr(e, t) {
|
|
|
904
904
|
case "camelcase":
|
|
905
905
|
return "-.Inf";
|
|
906
906
|
}
|
|
907
|
-
else if (
|
|
907
|
+
else if (ae.isNegativeZero(e))
|
|
908
908
|
return "-0.0";
|
|
909
909
|
return n = e.toString(10), Dr.test(n) ? n.replace("e", ".e") : n;
|
|
910
910
|
}
|
|
911
911
|
function Pr(e) {
|
|
912
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
912
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ae.isNegativeZero(e));
|
|
913
913
|
}
|
|
914
|
-
var pn = new
|
|
914
|
+
var pn = new ue("tag:yaml.org,2002:float", {
|
|
915
915
|
kind: "scalar",
|
|
916
916
|
resolve: Rr,
|
|
917
917
|
construct: Lr,
|
|
@@ -948,7 +948,7 @@ function jr(e) {
|
|
|
948
948
|
function qr(e) {
|
|
949
949
|
return e.toISOString();
|
|
950
950
|
}
|
|
951
|
-
var hn = new
|
|
951
|
+
var hn = new ue("tag:yaml.org,2002:timestamp", {
|
|
952
952
|
kind: "scalar",
|
|
953
953
|
resolve: Mr,
|
|
954
954
|
construct: jr,
|
|
@@ -958,12 +958,12 @@ var hn = new se("tag:yaml.org,2002:timestamp", {
|
|
|
958
958
|
function Ur(e) {
|
|
959
959
|
return e === "<<" || e === null;
|
|
960
960
|
}
|
|
961
|
-
var bn = new
|
|
961
|
+
var bn = new ue("tag:yaml.org,2002:merge", {
|
|
962
962
|
kind: "scalar",
|
|
963
963
|
resolve: Ur
|
|
964
964
|
}), yt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
965
965
|
\r`;
|
|
966
|
-
function
|
|
966
|
+
function Hr(e) {
|
|
967
967
|
if (e === null) return !1;
|
|
968
968
|
var t, n, i = 0, r = e.length, a = yt;
|
|
969
969
|
for (n = 0; n < r; n++)
|
|
@@ -973,7 +973,7 @@ function zr(e) {
|
|
|
973
973
|
}
|
|
974
974
|
return i % 8 === 0;
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function zr(e) {
|
|
977
977
|
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, a = yt, o = 0, l = [];
|
|
978
978
|
for (t = 0; t < r; t++)
|
|
979
979
|
t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | a.indexOf(i.charAt(t));
|
|
@@ -988,10 +988,10 @@ function Vr(e) {
|
|
|
988
988
|
function Yr(e) {
|
|
989
989
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
990
990
|
}
|
|
991
|
-
var kn = new
|
|
991
|
+
var kn = new ue("tag:yaml.org,2002:binary", {
|
|
992
992
|
kind: "scalar",
|
|
993
|
-
resolve:
|
|
994
|
-
construct:
|
|
993
|
+
resolve: Hr,
|
|
994
|
+
construct: zr,
|
|
995
995
|
predicate: Yr,
|
|
996
996
|
represent: Vr
|
|
997
997
|
}), Wr = Object.prototype.hasOwnProperty, Gr = Object.prototype.toString;
|
|
@@ -1013,7 +1013,7 @@ function Jr(e) {
|
|
|
1013
1013
|
function Qr(e) {
|
|
1014
1014
|
return e !== null ? e : [];
|
|
1015
1015
|
}
|
|
1016
|
-
var Cn = new
|
|
1016
|
+
var Cn = new ue("tag:yaml.org,2002:omap", {
|
|
1017
1017
|
kind: "sequence",
|
|
1018
1018
|
resolve: Jr,
|
|
1019
1019
|
construct: Qr
|
|
@@ -1034,7 +1034,7 @@ function eo(e) {
|
|
|
1034
1034
|
i = o[t], r = Object.keys(i), a[t] = [r[0], i[r[0]]];
|
|
1035
1035
|
return a;
|
|
1036
1036
|
}
|
|
1037
|
-
var xn = new
|
|
1037
|
+
var xn = new ue("tag:yaml.org,2002:pairs", {
|
|
1038
1038
|
kind: "sequence",
|
|
1039
1039
|
resolve: Zr,
|
|
1040
1040
|
construct: eo
|
|
@@ -1050,7 +1050,7 @@ function no(e) {
|
|
|
1050
1050
|
function io(e) {
|
|
1051
1051
|
return e !== null ? e : {};
|
|
1052
1052
|
}
|
|
1053
|
-
var An = new
|
|
1053
|
+
var An = new ue("tag:yaml.org,2002:set", {
|
|
1054
1054
|
kind: "mapping",
|
|
1055
1055
|
resolve: no,
|
|
1056
1056
|
construct: io
|
|
@@ -1072,13 +1072,13 @@ function It(e) {
|
|
|
1072
1072
|
function ke(e) {
|
|
1073
1073
|
return e === 10 || e === 13;
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function $e(e) {
|
|
1076
1076
|
return e === 9 || e === 32;
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function ve(e) {
|
|
1079
1079
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Ke(e) {
|
|
1082
1082
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1083
1083
|
}
|
|
1084
1084
|
function co(e) {
|
|
@@ -1110,8 +1110,8 @@ function $n(e, t, n) {
|
|
|
1110
1110
|
}) : e[t] = n;
|
|
1111
1111
|
}
|
|
1112
1112
|
var En = new Array(256), In = new Array(256);
|
|
1113
|
-
for (var
|
|
1114
|
-
En[
|
|
1113
|
+
for (var Fe = 0; Fe < 256; Fe++)
|
|
1114
|
+
En[Fe] = Ot(Fe) ? 1 : 0, In[Fe] = Ot(Fe);
|
|
1115
1115
|
function po(e, t) {
|
|
1116
1116
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || gt, 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 = [];
|
|
1117
1117
|
}
|
|
@@ -1124,9 +1124,9 @@ function On(e, t) {
|
|
|
1124
1124
|
line: e.line,
|
|
1125
1125
|
column: e.position - e.lineStart
|
|
1126
1126
|
};
|
|
1127
|
-
return n.snippet = gr(n), new
|
|
1127
|
+
return n.snippet = gr(n), new me(t, n);
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function K(e, t) {
|
|
1130
1130
|
throw On(e, t);
|
|
1131
1131
|
}
|
|
1132
1132
|
function Qe(e, t) {
|
|
@@ -1135,15 +1135,15 @@ function Qe(e, t) {
|
|
|
1135
1135
|
var Ft = {
|
|
1136
1136
|
YAML: function(t, n, i) {
|
|
1137
1137
|
var r, a, o;
|
|
1138
|
-
t.version !== null &&
|
|
1138
|
+
t.version !== null && K(t, "duplication of %YAML directive"), i.length !== 1 && K(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && K(t, "ill-formed argument of the YAML directive"), a = parseInt(r[1], 10), o = parseInt(r[2], 10), a !== 1 && K(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Qe(t, "unsupported YAML version of the document");
|
|
1139
1139
|
},
|
|
1140
1140
|
TAG: function(t, n, i) {
|
|
1141
1141
|
var r, a;
|
|
1142
|
-
i.length !== 2 &&
|
|
1142
|
+
i.length !== 2 && K(t, "TAG directive accepts exactly two arguments"), r = i[0], a = i[1], wn.test(r) || K(t, "ill-formed tag handle (first argument) of the TAG directive"), Te.call(t.tagMap, r) && K(t, 'there is a previously declared suffix for "' + r + '" tag handle'), _n.test(a) || K(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1143
1143
|
try {
|
|
1144
1144
|
a = decodeURIComponent(a);
|
|
1145
1145
|
} catch {
|
|
1146
|
-
|
|
1146
|
+
K(t, "tag prefix is malformed: " + a);
|
|
1147
1147
|
}
|
|
1148
1148
|
t.tagMap[r] = a;
|
|
1149
1149
|
}
|
|
@@ -1153,21 +1153,21 @@ function Se(e, t, n, i) {
|
|
|
1153
1153
|
if (t < n) {
|
|
1154
1154
|
if (l = e.input.slice(t, n), i)
|
|
1155
1155
|
for (r = 0, a = l.length; r < a; r += 1)
|
|
1156
|
-
o = l.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 ||
|
|
1157
|
-
else oo.test(l) &&
|
|
1156
|
+
o = l.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || K(e, "expected valid JSON character");
|
|
1157
|
+
else oo.test(l) && K(e, "the stream contains non-printable characters");
|
|
1158
1158
|
e.result += l;
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
1161
|
function Bt(e, t, n, i) {
|
|
1162
1162
|
var r, a, o, l;
|
|
1163
|
-
for (
|
|
1163
|
+
for (ae.isObject(n) || K(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), o = 0, l = r.length; o < l; o += 1)
|
|
1164
1164
|
a = r[o], Te.call(t, a) || ($n(t, a, n[a]), i[a] = !0);
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function Re(e, t, n, i, r, a, o, l, c) {
|
|
1167
1167
|
var s, y;
|
|
1168
1168
|
if (Array.isArray(r))
|
|
1169
1169
|
for (r = Array.prototype.slice.call(r), s = 0, y = r.length; s < y; s += 1)
|
|
1170
|
-
Array.isArray(r[s]) &&
|
|
1170
|
+
Array.isArray(r[s]) && K(e, "nested arrays are not supported inside keys"), typeof r == "object" && It(r[s]) === "[object Object]" && (r[s] = "[object Object]");
|
|
1171
1171
|
if (typeof r == "object" && It(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1172
1172
|
if (Array.isArray(a))
|
|
1173
1173
|
for (s = 0, y = a.length; s < y; s += 1)
|
|
@@ -1175,16 +1175,16 @@ function Ke(e, t, n, i, r, a, o, l, c) {
|
|
|
1175
1175
|
else
|
|
1176
1176
|
Bt(e, t, a, n);
|
|
1177
1177
|
else
|
|
1178
|
-
!e.json && !Te.call(n, r) && Te.call(t, r) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = c || e.position,
|
|
1178
|
+
!e.json && !Te.call(n, r) && Te.call(t, r) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = c || e.position, K(e, "duplicated mapping key")), $n(t, r, a), delete n[r];
|
|
1179
1179
|
return t;
|
|
1180
1180
|
}
|
|
1181
1181
|
function vt(e) {
|
|
1182
1182
|
var t;
|
|
1183
|
-
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1183
|
+
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : K(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function oe(e, t, n) {
|
|
1186
1186
|
for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
1187
|
-
for (;
|
|
1187
|
+
for (; $e(r); )
|
|
1188
1188
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1189
1189
|
if (t && r === 35)
|
|
1190
1190
|
do
|
|
@@ -1200,28 +1200,28 @@ function ie(e, t, n) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
function nt(e) {
|
|
1202
1202
|
var t = e.position, n;
|
|
1203
|
-
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 ||
|
|
1203
|
+
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 || ve(n)));
|
|
1204
1204
|
}
|
|
1205
1205
|
function ht(e, t) {
|
|
1206
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
1206
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += ae.repeat(`
|
|
1207
1207
|
`, t - 1));
|
|
1208
1208
|
}
|
|
1209
1209
|
function mo(e, t, n) {
|
|
1210
1210
|
var i, r, a, o, l, c, s, y, u = e.kind, k = e.result, h;
|
|
1211
|
-
if (h = e.input.charCodeAt(e.position),
|
|
1211
|
+
if (h = e.input.charCodeAt(e.position), ve(h) || Ke(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96 || (h === 63 || h === 45) && (r = e.input.charCodeAt(e.position + 1), ve(r) || n && Ke(r)))
|
|
1212
1212
|
return !1;
|
|
1213
1213
|
for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; h !== 0; ) {
|
|
1214
1214
|
if (h === 58) {
|
|
1215
|
-
if (r = e.input.charCodeAt(e.position + 1),
|
|
1215
|
+
if (r = e.input.charCodeAt(e.position + 1), ve(r) || n && Ke(r))
|
|
1216
1216
|
break;
|
|
1217
1217
|
} else if (h === 35) {
|
|
1218
|
-
if (i = e.input.charCodeAt(e.position - 1),
|
|
1218
|
+
if (i = e.input.charCodeAt(e.position - 1), ve(i))
|
|
1219
1219
|
break;
|
|
1220
1220
|
} else {
|
|
1221
|
-
if (e.position === e.lineStart && nt(e) || n &&
|
|
1221
|
+
if (e.position === e.lineStart && nt(e) || n && Ke(h))
|
|
1222
1222
|
break;
|
|
1223
1223
|
if (ke(h))
|
|
1224
|
-
if (c = e.line, s = e.lineStart, y = e.lineIndent,
|
|
1224
|
+
if (c = e.line, s = e.lineStart, y = e.lineIndent, oe(e, !1, -1), e.lineIndent >= t) {
|
|
1225
1225
|
l = !0, h = e.input.charCodeAt(e.position);
|
|
1226
1226
|
continue;
|
|
1227
1227
|
} else {
|
|
@@ -1229,7 +1229,7 @@ function mo(e, t, n) {
|
|
|
1229
1229
|
break;
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
|
-
l && (Se(e, a, o, !1), ht(e, e.line - c), a = o = e.position, l = !1),
|
|
1232
|
+
l && (Se(e, a, o, !1), ht(e, e.line - c), a = o = e.position, l = !1), $e(h) || (o = e.position + 1), h = e.input.charCodeAt(++e.position);
|
|
1233
1233
|
}
|
|
1234
1234
|
return Se(e, a, o, !1), e.result ? !0 : (e.kind = u, e.result = k, !1);
|
|
1235
1235
|
}
|
|
@@ -1243,8 +1243,8 @@ function yo(e, t) {
|
|
|
1243
1243
|
i = e.position, e.position++, r = e.position;
|
|
1244
1244
|
else
|
|
1245
1245
|
return !0;
|
|
1246
|
-
else ke(n) ? (Se(e, i, r, !0), ht(e,
|
|
1247
|
-
|
|
1246
|
+
else ke(n) ? (Se(e, i, r, !0), ht(e, oe(e, !1, t)), i = r = e.position) : e.position === e.lineStart && nt(e) ? K(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1247
|
+
K(e, "unexpected end of the stream within a single quoted scalar");
|
|
1248
1248
|
}
|
|
1249
1249
|
function go(e, t) {
|
|
1250
1250
|
var n, i, r, a, o, l;
|
|
@@ -1255,19 +1255,19 @@ function go(e, t) {
|
|
|
1255
1255
|
return Se(e, n, e.position, !0), e.position++, !0;
|
|
1256
1256
|
if (l === 92) {
|
|
1257
1257
|
if (Se(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), ke(l))
|
|
1258
|
-
|
|
1258
|
+
oe(e, !1, t);
|
|
1259
1259
|
else if (l < 256 && En[l])
|
|
1260
1260
|
e.result += In[l], e.position++;
|
|
1261
1261
|
else if ((o = so(l)) > 0) {
|
|
1262
1262
|
for (r = o, a = 0; r > 0; r--)
|
|
1263
|
-
l = e.input.charCodeAt(++e.position), (o = co(l)) >= 0 ? a = (a << 4) + o :
|
|
1263
|
+
l = e.input.charCodeAt(++e.position), (o = co(l)) >= 0 ? a = (a << 4) + o : K(e, "expected hexadecimal character");
|
|
1264
1264
|
e.result += fo(a), e.position++;
|
|
1265
1265
|
} else
|
|
1266
|
-
|
|
1266
|
+
K(e, "unknown escape sequence");
|
|
1267
1267
|
n = i = e.position;
|
|
1268
|
-
} else ke(l) ? (Se(e, n, i, !0), ht(e,
|
|
1268
|
+
} else ke(l) ? (Se(e, n, i, !0), ht(e, oe(e, !1, t)), n = i = e.position) : e.position === e.lineStart && nt(e) ? K(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1269
1269
|
}
|
|
1270
|
-
|
|
1270
|
+
K(e, "unexpected end of the stream within a double quoted scalar");
|
|
1271
1271
|
}
|
|
1272
1272
|
function vo(e, t) {
|
|
1273
1273
|
var n = !0, i, r, a, o = e.tag, l, c = e.anchor, s, y, u, k, h, _ = /* @__PURE__ */ Object.create(null), g, p, E, f;
|
|
@@ -1278,11 +1278,11 @@ function vo(e, t) {
|
|
|
1278
1278
|
else
|
|
1279
1279
|
return !1;
|
|
1280
1280
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), f = e.input.charCodeAt(++e.position); f !== 0; ) {
|
|
1281
|
-
if (
|
|
1281
|
+
if (oe(e, !0, t), f = e.input.charCodeAt(e.position), f === y)
|
|
1282
1282
|
return e.position++, e.tag = o, e.anchor = c, e.kind = h ? "mapping" : "sequence", e.result = l, !0;
|
|
1283
|
-
n ? f === 44 &&
|
|
1283
|
+
n ? f === 44 && K(e, "expected the node content, but found ','") : K(e, "missed comma between flow collection entries"), p = g = E = null, u = k = !1, f === 63 && (s = e.input.charCodeAt(e.position + 1), ve(s) && (u = k = !0, e.position++, oe(e, !0, t))), i = e.line, r = e.lineStart, a = e.position, De(e, t, Ge, !1, !0), p = e.tag, g = e.result, oe(e, !0, t), f = e.input.charCodeAt(e.position), (k || e.line === i) && f === 58 && (u = !0, f = e.input.charCodeAt(++e.position), oe(e, !0, t), De(e, t, Ge, !1, !0), E = e.result), h ? Re(e, l, _, p, g, E, i, r, a) : u ? l.push(Re(e, null, _, p, g, E, i, r, a)) : l.push(g), oe(e, !0, t), f = e.input.charCodeAt(e.position), f === 44 ? (n = !0, f = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1284
1284
|
}
|
|
1285
|
-
|
|
1285
|
+
K(e, "unexpected end of the stream within a flow collection");
|
|
1286
1286
|
}
|
|
1287
1287
|
function ho(e, t) {
|
|
1288
1288
|
var n, i, r = at, a = !1, o = !1, l = t, c = 0, s = !1, y, u;
|
|
@@ -1294,15 +1294,15 @@ function ho(e, t) {
|
|
|
1294
1294
|
return !1;
|
|
1295
1295
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1296
1296
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1297
|
-
at === r ? r = u === 43 ? Et : ro :
|
|
1297
|
+
at === r ? r = u === 43 ? Et : ro : K(e, "repeat of a chomping mode identifier");
|
|
1298
1298
|
else if ((y = uo(u)) >= 0)
|
|
1299
|
-
y === 0 ?
|
|
1299
|
+
y === 0 ? K(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? K(e, "repeat of an indentation width identifier") : (l = t + y - 1, o = !0);
|
|
1300
1300
|
else
|
|
1301
1301
|
break;
|
|
1302
|
-
if (
|
|
1302
|
+
if ($e(u)) {
|
|
1303
1303
|
do
|
|
1304
1304
|
u = e.input.charCodeAt(++e.position);
|
|
1305
|
-
while (
|
|
1305
|
+
while ($e(u));
|
|
1306
1306
|
if (u === 35)
|
|
1307
1307
|
do
|
|
1308
1308
|
u = e.input.charCodeAt(++e.position);
|
|
@@ -1316,15 +1316,15 @@ function ho(e, t) {
|
|
|
1316
1316
|
continue;
|
|
1317
1317
|
}
|
|
1318
1318
|
if (e.lineIndent < l) {
|
|
1319
|
-
r === Et ? e.result +=
|
|
1319
|
+
r === Et ? e.result += ae.repeat(`
|
|
1320
1320
|
`, a ? 1 + c : c) : r === at && a && (e.result += `
|
|
1321
1321
|
`);
|
|
1322
1322
|
break;
|
|
1323
1323
|
}
|
|
1324
|
-
for (i ?
|
|
1325
|
-
`, a ? 1 + c : c)) : s ? (s = !1, e.result +=
|
|
1326
|
-
`, c + 1)) : c === 0 ? a && (e.result += " ") : e.result +=
|
|
1327
|
-
`, c) : e.result +=
|
|
1324
|
+
for (i ? $e(u) ? (s = !0, e.result += ae.repeat(`
|
|
1325
|
+
`, a ? 1 + c : c)) : s ? (s = !1, e.result += ae.repeat(`
|
|
1326
|
+
`, c + 1)) : c === 0 ? a && (e.result += " ") : e.result += ae.repeat(`
|
|
1327
|
+
`, c) : e.result += ae.repeat(`
|
|
1328
1328
|
`, a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !ke(u) && u !== 0; )
|
|
1329
1329
|
u = e.input.charCodeAt(++e.position);
|
|
1330
1330
|
Se(e, n, e.position, !1);
|
|
@@ -1334,13 +1334,13 @@ function ho(e, t) {
|
|
|
1334
1334
|
function Kt(e, t) {
|
|
1335
1335
|
var n, i = e.tag, r = e.anchor, a = [], o, l = !1, c;
|
|
1336
1336
|
if (e.firstTabInLine !== -1) return !1;
|
|
1337
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1338
|
-
if (l = !0, e.position++,
|
|
1337
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, K(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !ve(o)))); ) {
|
|
1338
|
+
if (l = !0, e.position++, oe(e, !0, -1) && e.lineIndent <= t) {
|
|
1339
1339
|
a.push(null), c = e.input.charCodeAt(e.position);
|
|
1340
1340
|
continue;
|
|
1341
1341
|
}
|
|
1342
|
-
if (n = e.line,
|
|
1343
|
-
|
|
1342
|
+
if (n = e.line, De(e, t, Tn, !1, !0), a.push(e.result), oe(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0)
|
|
1343
|
+
K(e, "bad indentation of a sequence entry");
|
|
1344
1344
|
else if (e.lineIndent < t)
|
|
1345
1345
|
break;
|
|
1346
1346
|
}
|
|
@@ -1350,76 +1350,76 @@ function bo(e, t, n) {
|
|
|
1350
1350
|
var i, r, a, o, l, c, s = e.tag, y = e.anchor, u = {}, k = /* @__PURE__ */ Object.create(null), h = null, _ = null, g = null, p = !1, E = !1, f;
|
|
1351
1351
|
if (e.firstTabInLine !== -1) return !1;
|
|
1352
1352
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), f = e.input.charCodeAt(e.position); f !== 0; ) {
|
|
1353
|
-
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1354
|
-
f === 63 ? (p && (
|
|
1353
|
+
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, K(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), a = e.line, (f === 63 || f === 58) && ve(i))
|
|
1354
|
+
f === 63 ? (p && (Re(e, u, k, h, _, null, o, l, c), h = _ = g = null), E = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : K(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, f = i;
|
|
1355
1355
|
else {
|
|
1356
|
-
if (o = e.line, l = e.lineStart, c = e.position, !
|
|
1356
|
+
if (o = e.line, l = e.lineStart, c = e.position, !De(e, n, Sn, !1, !0))
|
|
1357
1357
|
break;
|
|
1358
1358
|
if (e.line === a) {
|
|
1359
|
-
for (f = e.input.charCodeAt(e.position);
|
|
1359
|
+
for (f = e.input.charCodeAt(e.position); $e(f); )
|
|
1360
1360
|
f = e.input.charCodeAt(++e.position);
|
|
1361
1361
|
if (f === 58)
|
|
1362
|
-
f = e.input.charCodeAt(++e.position),
|
|
1362
|
+
f = e.input.charCodeAt(++e.position), ve(f) || K(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Re(e, u, k, h, _, null, o, l, c), h = _ = g = null), E = !0, p = !1, r = !1, h = e.tag, _ = e.result;
|
|
1363
1363
|
else if (E)
|
|
1364
|
-
|
|
1364
|
+
K(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1365
1365
|
else
|
|
1366
1366
|
return e.tag = s, e.anchor = y, !0;
|
|
1367
1367
|
} else if (E)
|
|
1368
|
-
|
|
1368
|
+
K(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1369
1369
|
else
|
|
1370
1370
|
return e.tag = s, e.anchor = y, !0;
|
|
1371
1371
|
}
|
|
1372
|
-
if ((e.line === a || e.lineIndent > t) && (p && (o = e.line, l = e.lineStart, c = e.position),
|
|
1373
|
-
|
|
1372
|
+
if ((e.line === a || e.lineIndent > t) && (p && (o = e.line, l = e.lineStart, c = e.position), De(e, t, Je, !0, r) && (p ? _ = e.result : g = e.result), p || (Re(e, u, k, h, _, g, o, l, c), h = _ = g = null), oe(e, !0, -1), f = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && f !== 0)
|
|
1373
|
+
K(e, "bad indentation of a mapping entry");
|
|
1374
1374
|
else if (e.lineIndent < t)
|
|
1375
1375
|
break;
|
|
1376
1376
|
}
|
|
1377
|
-
return p &&
|
|
1377
|
+
return p && Re(e, u, k, h, _, null, o, l, c), E && (e.tag = s, e.anchor = y, e.kind = "mapping", e.result = u), E;
|
|
1378
1378
|
}
|
|
1379
1379
|
function ko(e) {
|
|
1380
1380
|
var t, n = !1, i = !1, r, a, o;
|
|
1381
1381
|
if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
|
|
1382
|
-
if (e.tag !== null &&
|
|
1382
|
+
if (e.tag !== null && K(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (i = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
|
|
1383
1383
|
do
|
|
1384
1384
|
o = e.input.charCodeAt(++e.position);
|
|
1385
1385
|
while (o !== 0 && o !== 62);
|
|
1386
|
-
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
1386
|
+
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : K(e, "unexpected end of the stream within a verbatim tag");
|
|
1387
1387
|
} else {
|
|
1388
|
-
for (; o !== 0 && !
|
|
1389
|
-
o === 33 && (i ?
|
|
1390
|
-
a = e.input.slice(t, e.position), lo.test(a) &&
|
|
1388
|
+
for (; o !== 0 && !ve(o); )
|
|
1389
|
+
o === 33 && (i ? K(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), wn.test(r) || K(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
1390
|
+
a = e.input.slice(t, e.position), lo.test(a) && K(e, "tag suffix cannot contain flow indicator characters");
|
|
1391
1391
|
}
|
|
1392
|
-
a && !_n.test(a) &&
|
|
1392
|
+
a && !_n.test(a) && K(e, "tag name cannot contain such characters: " + a);
|
|
1393
1393
|
try {
|
|
1394
1394
|
a = decodeURIComponent(a);
|
|
1395
1395
|
} catch {
|
|
1396
|
-
|
|
1396
|
+
K(e, "tag name is malformed: " + a);
|
|
1397
1397
|
}
|
|
1398
|
-
return n ? e.tag = a : Te.call(e.tagMap, r) ? e.tag = e.tagMap[r] + a : r === "!" ? e.tag = "!" + a : r === "!!" ? e.tag = "tag:yaml.org,2002:" + a :
|
|
1398
|
+
return n ? e.tag = a : Te.call(e.tagMap, r) ? e.tag = e.tagMap[r] + a : r === "!" ? e.tag = "!" + a : r === "!!" ? e.tag = "tag:yaml.org,2002:" + a : K(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
1399
1399
|
}
|
|
1400
1400
|
function Co(e) {
|
|
1401
1401
|
var t, n;
|
|
1402
1402
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
1403
|
-
for (e.anchor !== null &&
|
|
1403
|
+
for (e.anchor !== null && K(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ve(n) && !Ke(n); )
|
|
1404
1404
|
n = e.input.charCodeAt(++e.position);
|
|
1405
|
-
return e.position === t &&
|
|
1405
|
+
return e.position === t && K(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1406
1406
|
}
|
|
1407
1407
|
function xo(e) {
|
|
1408
1408
|
var t, n, i;
|
|
1409
1409
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
1410
|
-
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !
|
|
1410
|
+
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ve(i) && !Ke(i); )
|
|
1411
1411
|
i = e.input.charCodeAt(++e.position);
|
|
1412
|
-
return e.position === t &&
|
|
1412
|
+
return e.position === t && K(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Te.call(e.anchorMap, n) || K(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], oe(e, !0, -1), !0;
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function De(e, t, n, i, r) {
|
|
1415
1415
|
var a, o, l, c = 1, s = !1, y = !1, u, k, h, _, g, p;
|
|
1416
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Je === n || Tn === n, i &&
|
|
1416
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Je === n || Tn === n, i && oe(e, !0, -1) && (s = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1)
|
|
1417
1417
|
for (; ko(e) || Co(e); )
|
|
1418
|
-
|
|
1419
|
-
if (l && (l = s || r), (c === 1 || Je === n) && (Ge === n || Sn === n ? g = t : g = t + 1, p = e.position - e.lineStart, c === 1 ? l && (Kt(e, p) || bo(e, p, g)) || vo(e, g) ? y = !0 : (o && ho(e, g) || yo(e, g) || go(e, g) ? y = !0 : xo(e) ? (y = !0, (e.tag !== null || e.anchor !== null) &&
|
|
1418
|
+
oe(e, !0, -1) ? (s = !0, l = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : l = !1;
|
|
1419
|
+
if (l && (l = s || r), (c === 1 || Je === n) && (Ge === n || Sn === n ? g = t : g = t + 1, p = e.position - e.lineStart, c === 1 ? l && (Kt(e, p) || bo(e, p, g)) || vo(e, g) ? y = !0 : (o && ho(e, g) || yo(e, g) || go(e, g) ? y = !0 : xo(e) ? (y = !0, (e.tag !== null || e.anchor !== null) && K(e, "alias node should not have any properties")) : mo(e, g, Ge === n) && (y = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (y = l && Kt(e, p))), e.tag === null)
|
|
1420
1420
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1421
1421
|
else if (e.tag === "?") {
|
|
1422
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
1422
|
+
for (e.result !== null && e.kind !== "scalar" && K(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, k = e.implicitTypes.length; u < k; u += 1)
|
|
1423
1423
|
if (_ = e.implicitTypes[u], _.resolve(e.result)) {
|
|
1424
1424
|
e.result = _.construct(e.result), e.tag = _.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1425
1425
|
break;
|
|
@@ -1433,17 +1433,17 @@ function Le(e, t, n, i, r) {
|
|
|
1433
1433
|
_ = h[u];
|
|
1434
1434
|
break;
|
|
1435
1435
|
}
|
|
1436
|
-
_ ||
|
|
1436
|
+
_ || K(e, "unknown tag !<" + e.tag + ">"), e.result !== null && _.kind !== e.kind && K(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + _.kind + '", not "' + e.kind + '"'), _.resolve(e.result, e.tag) ? (e.result = _.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : K(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
1437
1437
|
}
|
|
1438
1438
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || y;
|
|
1439
1439
|
}
|
|
1440
1440
|
function Ao(e) {
|
|
1441
1441
|
var t = e.position, n, i, r, a = !1, o;
|
|
1442
|
-
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 && (
|
|
1443
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !
|
|
1442
|
+
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 && (oe(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
1443
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ve(o); )
|
|
1444
1444
|
o = e.input.charCodeAt(++e.position);
|
|
1445
|
-
for (i = e.input.slice(n, e.position), r = [], i.length < 1 &&
|
|
1446
|
-
for (;
|
|
1445
|
+
for (i = e.input.slice(n, e.position), r = [], i.length < 1 && K(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
1446
|
+
for (; $e(o); )
|
|
1447
1447
|
o = e.input.charCodeAt(++e.position);
|
|
1448
1448
|
if (o === 35) {
|
|
1449
1449
|
do
|
|
@@ -1452,18 +1452,18 @@ function Ao(e) {
|
|
|
1452
1452
|
break;
|
|
1453
1453
|
}
|
|
1454
1454
|
if (ke(o)) break;
|
|
1455
|
-
for (n = e.position; o !== 0 && !
|
|
1455
|
+
for (n = e.position; o !== 0 && !ve(o); )
|
|
1456
1456
|
o = e.input.charCodeAt(++e.position);
|
|
1457
1457
|
r.push(e.input.slice(n, e.position));
|
|
1458
1458
|
}
|
|
1459
1459
|
o !== 0 && vt(e), Te.call(Ft, i) ? Ft[i](e, i, r) : Qe(e, 'unknown document directive "' + i + '"');
|
|
1460
1460
|
}
|
|
1461
|
-
if (
|
|
1462
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1461
|
+
if (oe(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, oe(e, !0, -1)) : a && K(e, "directives end mark is expected"), De(e, e.lineIndent - 1, Je, !1, !0), oe(e, !0, -1), e.checkLineBreaks && ao.test(e.input.slice(t, e.position)) && Qe(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && nt(e)) {
|
|
1462
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
|
|
1463
1463
|
return;
|
|
1464
1464
|
}
|
|
1465
1465
|
if (e.position < e.length - 1)
|
|
1466
|
-
|
|
1466
|
+
K(e, "end of the stream or a document separator is expected");
|
|
1467
1467
|
else
|
|
1468
1468
|
return;
|
|
1469
1469
|
}
|
|
@@ -1471,7 +1471,7 @@ function Fn(e, t) {
|
|
|
1471
1471
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1472
1472
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1473
1473
|
var n = new po(e, t), i = e.indexOf("\0");
|
|
1474
|
-
for (i !== -1 && (n.position = i,
|
|
1474
|
+
for (i !== -1 && (n.position = i, K(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
1475
1475
|
n.lineIndent += 1, n.position += 1;
|
|
1476
1476
|
for (; n.position < n.length - 1; )
|
|
1477
1477
|
Ao(n);
|
|
@@ -1490,29 +1490,29 @@ function To(e, t) {
|
|
|
1490
1490
|
if (n.length !== 0) {
|
|
1491
1491
|
if (n.length === 1)
|
|
1492
1492
|
return n[0];
|
|
1493
|
-
throw new
|
|
1493
|
+
throw new me("expected a single document in the stream, but found more");
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
var wo = So, _o = To, Bn = {
|
|
1497
1497
|
loadAll: wo,
|
|
1498
1498
|
load: _o
|
|
1499
|
-
}, Kn = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, bt = 65279, $o = 9,
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
var
|
|
1499
|
+
}, Kn = Object.prototype.toString, Rn = Object.prototype.hasOwnProperty, bt = 65279, $o = 9, Ue = 10, Eo = 13, Io = 32, Oo = 33, Fo = 34, st = 35, Bo = 37, Ko = 38, Ro = 39, Lo = 42, Ln = 44, Do = 45, Xe = 58, No = 61, Po = 62, Mo = 63, jo = 64, Dn = 91, Nn = 93, qo = 96, Pn = 123, Uo = 124, Mn = 125, fe = {};
|
|
1500
|
+
fe[0] = "\\0";
|
|
1501
|
+
fe[7] = "\\a";
|
|
1502
|
+
fe[8] = "\\b";
|
|
1503
|
+
fe[9] = "\\t";
|
|
1504
|
+
fe[10] = "\\n";
|
|
1505
|
+
fe[11] = "\\v";
|
|
1506
|
+
fe[12] = "\\f";
|
|
1507
|
+
fe[13] = "\\r";
|
|
1508
|
+
fe[27] = "\\e";
|
|
1509
|
+
fe[34] = '\\"';
|
|
1510
|
+
fe[92] = "\\\\";
|
|
1511
|
+
fe[133] = "\\N";
|
|
1512
|
+
fe[160] = "\\_";
|
|
1513
|
+
fe[8232] = "\\L";
|
|
1514
|
+
fe[8233] = "\\P";
|
|
1515
|
+
var Ho = [
|
|
1516
1516
|
"y",
|
|
1517
1517
|
"Y",
|
|
1518
1518
|
"yes",
|
|
@@ -1529,7 +1529,7 @@ var zo = [
|
|
|
1529
1529
|
"off",
|
|
1530
1530
|
"Off",
|
|
1531
1531
|
"OFF"
|
|
1532
|
-
],
|
|
1532
|
+
], zo = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1533
1533
|
function Vo(e, t) {
|
|
1534
1534
|
var n, i, r, a, o, l, c;
|
|
1535
1535
|
if (t === null) return {};
|
|
@@ -1546,15 +1546,15 @@ function Yo(e) {
|
|
|
1546
1546
|
else if (e <= 4294967295)
|
|
1547
1547
|
n = "U", i = 8;
|
|
1548
1548
|
else
|
|
1549
|
-
throw new
|
|
1550
|
-
return "\\" + n +
|
|
1549
|
+
throw new me("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1550
|
+
return "\\" + n + ae.repeat("0", i - t.length) + t;
|
|
1551
1551
|
}
|
|
1552
|
-
var Wo = 1,
|
|
1552
|
+
var Wo = 1, He = 2;
|
|
1553
1553
|
function Go(e) {
|
|
1554
|
-
this.schema = e.schema || gt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel =
|
|
1554
|
+
this.schema = e.schema || gt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ae.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Vo(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 === '"' ? He : Wo, 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;
|
|
1555
1555
|
}
|
|
1556
1556
|
function Rt(e, t) {
|
|
1557
|
-
for (var n =
|
|
1557
|
+
for (var n = ae.repeat(" ", t), i = 0, r = -1, a = "", o, l = e.length; i < l; )
|
|
1558
1558
|
r = e.indexOf(`
|
|
1559
1559
|
`, i), r === -1 ? (o = e.slice(i), i = l) : (o = e.slice(i, r + 1), i = r + 1), o.length && o !== `
|
|
1560
1560
|
` && (a += n), a += o;
|
|
@@ -1562,7 +1562,7 @@ function Rt(e, t) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
function ut(e, t) {
|
|
1564
1564
|
return `
|
|
1565
|
-
` +
|
|
1565
|
+
` + ae.repeat(" ", e.indent * t);
|
|
1566
1566
|
}
|
|
1567
1567
|
function Jo(e, t) {
|
|
1568
1568
|
var n, i, r;
|
|
@@ -1578,7 +1578,7 @@ function ze(e) {
|
|
|
1578
1578
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== bt || 65536 <= e && e <= 1114111;
|
|
1579
1579
|
}
|
|
1580
1580
|
function Lt(e) {
|
|
1581
|
-
return ze(e) && e !== bt && e !== Eo && e !==
|
|
1581
|
+
return ze(e) && e !== bt && e !== Eo && e !== Ue;
|
|
1582
1582
|
}
|
|
1583
1583
|
function Dt(e, t, n) {
|
|
1584
1584
|
var i = Lt(e), r = i && !Ze(e);
|
|
@@ -1596,7 +1596,7 @@ function Qo(e) {
|
|
|
1596
1596
|
function Xo(e) {
|
|
1597
1597
|
return !Ze(e) && e !== Xe;
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function Me(e, t) {
|
|
1600
1600
|
var n = e.charCodeAt(t), i;
|
|
1601
1601
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
1602
1602
|
}
|
|
@@ -1604,34 +1604,34 @@ function jn(e) {
|
|
|
1604
1604
|
var t = /^\n* /;
|
|
1605
1605
|
return t.test(e);
|
|
1606
1606
|
}
|
|
1607
|
-
var qn = 1, dt = 2, Un = 3,
|
|
1607
|
+
var qn = 1, dt = 2, Un = 3, Hn = 4, Be = 5;
|
|
1608
1608
|
function Zo(e, t, n, i, r, a, o, l) {
|
|
1609
|
-
var c, s = 0, y = null, u = !1, k = !1, h = i !== -1, _ = -1, g = Qo(
|
|
1609
|
+
var c, s = 0, y = null, u = !1, k = !1, h = i !== -1, _ = -1, g = Qo(Me(e, 0)) && Xo(Me(e, e.length - 1));
|
|
1610
1610
|
if (t || o)
|
|
1611
1611
|
for (c = 0; c < e.length; s >= 65536 ? c += 2 : c++) {
|
|
1612
|
-
if (s =
|
|
1613
|
-
return
|
|
1612
|
+
if (s = Me(e, c), !ze(s))
|
|
1613
|
+
return Be;
|
|
1614
1614
|
g = g && Dt(s, y, l), y = s;
|
|
1615
1615
|
}
|
|
1616
1616
|
else {
|
|
1617
1617
|
for (c = 0; c < e.length; s >= 65536 ? c += 2 : c++) {
|
|
1618
|
-
if (s =
|
|
1618
|
+
if (s = Me(e, c), s === Ue)
|
|
1619
1619
|
u = !0, h && (k = k || // Foldable line = too long, and not more-indented.
|
|
1620
1620
|
c - _ - 1 > i && e[_ + 1] !== " ", _ = c);
|
|
1621
1621
|
else if (!ze(s))
|
|
1622
|
-
return
|
|
1622
|
+
return Be;
|
|
1623
1623
|
g = g && Dt(s, y, l), y = s;
|
|
1624
1624
|
}
|
|
1625
1625
|
k = k || h && c - _ - 1 > i && e[_ + 1] !== " ";
|
|
1626
1626
|
}
|
|
1627
|
-
return !u && !k ? g && !o && !r(e) ? qn : a ===
|
|
1627
|
+
return !u && !k ? g && !o && !r(e) ? qn : a === He ? Be : dt : n > 9 && jn(e) ? Be : o ? a === He ? Be : dt : k ? Hn : Un;
|
|
1628
1628
|
}
|
|
1629
1629
|
function ea(e, t, n, i, r) {
|
|
1630
1630
|
e.dump = function() {
|
|
1631
1631
|
if (t.length === 0)
|
|
1632
|
-
return e.quotingType ===
|
|
1633
|
-
if (!e.noCompatMode && (
|
|
1634
|
-
return e.quotingType ===
|
|
1632
|
+
return e.quotingType === He ? '""' : "''";
|
|
1633
|
+
if (!e.noCompatMode && (Ho.indexOf(t) !== -1 || zo.test(t)))
|
|
1634
|
+
return e.quotingType === He ? '"' + t + '"' : "'" + t + "'";
|
|
1635
1635
|
var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
1636
1636
|
function c(s) {
|
|
1637
1637
|
return Jo(e, s);
|
|
@@ -1652,12 +1652,12 @@ function ea(e, t, n, i, r) {
|
|
|
1652
1652
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
1653
1653
|
case Un:
|
|
1654
1654
|
return "|" + Nt(t, e.indent) + Pt(Rt(t, a));
|
|
1655
|
-
case
|
|
1655
|
+
case Hn:
|
|
1656
1656
|
return ">" + Nt(t, e.indent) + Pt(Rt(ta(t, o), a));
|
|
1657
|
-
case
|
|
1657
|
+
case Be:
|
|
1658
1658
|
return '"' + na(t) + '"';
|
|
1659
1659
|
default:
|
|
1660
|
-
throw new
|
|
1660
|
+
throw new me("impossible error: invalid scalar style");
|
|
1661
1661
|
}
|
|
1662
1662
|
}();
|
|
1663
1663
|
}
|
|
@@ -1697,7 +1697,7 @@ function Mt(e, t) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
function na(e) {
|
|
1699
1699
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
1700
|
-
n =
|
|
1700
|
+
n = Me(e, r), i = fe[n], !i && ze(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || Yo(n);
|
|
1701
1701
|
return t;
|
|
1702
1702
|
}
|
|
1703
1703
|
function ia(e, t, n) {
|
|
@@ -1709,7 +1709,7 @@ function ia(e, t, n) {
|
|
|
1709
1709
|
function jt(e, t, n, i) {
|
|
1710
1710
|
var r = "", a = e.tag, o, l, c;
|
|
1711
1711
|
for (o = 0, l = n.length; o < l; o += 1)
|
|
1712
|
-
c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Ae(e, t + 1, c, !0, !0, !1, !0) || typeof c > "u" && Ae(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += ut(e, t)), e.dump &&
|
|
1712
|
+
c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Ae(e, t + 1, c, !0, !0, !1, !0) || typeof c > "u" && Ae(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += ut(e, t)), e.dump && Ue === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
1713
1713
|
e.tag = a, e.dump = r || "[]";
|
|
1714
1714
|
}
|
|
1715
1715
|
function ra(e, t, n) {
|
|
@@ -1725,9 +1725,9 @@ function oa(e, t, n, i) {
|
|
|
1725
1725
|
else if (typeof e.sortKeys == "function")
|
|
1726
1726
|
o.sort(e.sortKeys);
|
|
1727
1727
|
else if (e.sortKeys)
|
|
1728
|
-
throw new
|
|
1728
|
+
throw new me("sortKeys must be a boolean or a function");
|
|
1729
1729
|
for (l = 0, c = o.length; l < c; l += 1)
|
|
1730
|
-
k = "", (!i || r !== "") && (k += ut(e, t)), s = o[l], y = n[s], e.replacer && (y = e.replacer.call(n, s, y)), Ae(e, t + 1, s, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump &&
|
|
1730
|
+
k = "", (!i || r !== "") && (k += ut(e, t)), s = o[l], y = n[s], e.replacer && (y = e.replacer.call(n, s, y)), Ae(e, t + 1, s, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ue === e.dump.charCodeAt(0) ? k += "?" : k += "? "), k += e.dump, u && (k += ut(e, t)), Ae(e, t + 1, y, !0, u) && (e.dump && Ue === e.dump.charCodeAt(0) ? k += ":" : k += ": ", k += e.dump, r += k));
|
|
1731
1731
|
e.tag = a, e.dump = r || "{}";
|
|
1732
1732
|
}
|
|
1733
1733
|
function qt(e, t, n) {
|
|
@@ -1740,7 +1740,7 @@ function qt(e, t, n) {
|
|
|
1740
1740
|
else if (Rn.call(l.represent, c))
|
|
1741
1741
|
i = l.represent[c](t, c);
|
|
1742
1742
|
else
|
|
1743
|
-
throw new
|
|
1743
|
+
throw new me("!<" + l.tag + '> tag resolver accepts not "' + c + '" style');
|
|
1744
1744
|
e.dump = i;
|
|
1745
1745
|
}
|
|
1746
1746
|
return !0;
|
|
@@ -1765,7 +1765,7 @@ function Ae(e, t, n, i, r, a, o) {
|
|
|
1765
1765
|
if (l === "[object Undefined]")
|
|
1766
1766
|
return !1;
|
|
1767
1767
|
if (e.skipInvalid) return !1;
|
|
1768
|
-
throw new
|
|
1768
|
+
throw new me("unacceptable kind of an object to dump " + l);
|
|
1769
1769
|
}
|
|
1770
1770
|
e.tag !== null && e.tag !== "?" && (s = encodeURI(
|
|
1771
1771
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
@@ -1807,7 +1807,7 @@ function kt(e, t) {
|
|
|
1807
1807
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
|
-
var ua =
|
|
1810
|
+
var ua = ue, da = on, fa = sn, pa = mn, ma = yn, ya = gt, ga = Bn.load, va = Bn.loadAll, ha = sa.dump, ba = me, ka = {
|
|
1811
1811
|
binary: kn,
|
|
1812
1812
|
float: pn,
|
|
1813
1813
|
map: cn,
|
|
@@ -1821,7 +1821,7 @@ var ua = se, da = on, fa = sn, pa = mn, ma = yn, ya = gt, ga = Bn.load, va = Bn.
|
|
|
1821
1821
|
omap: Cn,
|
|
1822
1822
|
seq: ln,
|
|
1823
1823
|
str: an
|
|
1824
|
-
}, Ca = kt("safeLoad", "load"), xa = kt("safeLoadAll", "loadAll"), Aa = kt("safeDump", "dump"),
|
|
1824
|
+
}, Ca = kt("safeLoad", "load"), xa = kt("safeLoadAll", "loadAll"), Aa = kt("safeDump", "dump"), zn = {
|
|
1825
1825
|
Type: ua,
|
|
1826
1826
|
Schema: da,
|
|
1827
1827
|
FAILSAFE_SCHEMA: fa,
|
|
@@ -1837,22 +1837,22 @@ var ua = se, da = on, fa = sn, pa = mn, ma = yn, ya = gt, ga = Bn.load, va = Bn.
|
|
|
1837
1837
|
safeLoadAll: xa,
|
|
1838
1838
|
safeDump: Aa
|
|
1839
1839
|
};
|
|
1840
|
-
const Sa = /* @__PURE__ */
|
|
1840
|
+
const Sa = /* @__PURE__ */ te({
|
|
1841
1841
|
__name: "DeckCallout",
|
|
1842
1842
|
emits: ["click-cta", "dismiss"],
|
|
1843
1843
|
setup(e) {
|
|
1844
|
-
const { i18n: { t }, i18nT: n } =
|
|
1844
|
+
const { i18n: { t }, i18nT: n } = G.useI18n();
|
|
1845
1845
|
return (i, r) => {
|
|
1846
|
-
const a =
|
|
1846
|
+
const a = L("KAlert");
|
|
1847
1847
|
return d(), I(a, {
|
|
1848
1848
|
class: "deck-callout",
|
|
1849
1849
|
dismissible: "",
|
|
1850
1850
|
onDismiss: r[1] || (r[1] = (o) => i.$emit("dismiss"))
|
|
1851
1851
|
}, {
|
|
1852
1852
|
default: x(() => [
|
|
1853
|
-
|
|
1853
|
+
F(m(n), { keypath: "deckCallout.body" }, {
|
|
1854
1854
|
cta: x(() => [
|
|
1855
|
-
|
|
1855
|
+
B("button", {
|
|
1856
1856
|
class: "cta",
|
|
1857
1857
|
type: "button",
|
|
1858
1858
|
onClick: r[0] || (r[0] = (o) => i.$emit("click-cta"))
|
|
@@ -1865,7 +1865,7 @@ const Sa = /* @__PURE__ */ ee({
|
|
|
1865
1865
|
});
|
|
1866
1866
|
};
|
|
1867
1867
|
}
|
|
1868
|
-
}), Ta = /* @__PURE__ */
|
|
1868
|
+
}), Ta = /* @__PURE__ */ le(Sa, [["__scopeId", "data-v-0bf1334c"]]), Vn = /* @__PURE__ */ te({
|
|
1869
1869
|
inheritAttrs: !1,
|
|
1870
1870
|
__name: "YamlCodeBlock",
|
|
1871
1871
|
props: {
|
|
@@ -1891,16 +1891,16 @@ const Sa = /* @__PURE__ */ ee({
|
|
|
1891
1891
|
},
|
|
1892
1892
|
emits: ["deck-callout:click-cta", "deck-callout:dismiss"],
|
|
1893
1893
|
setup(e, { emit: t }) {
|
|
1894
|
-
const n = e, i = t, r =
|
|
1894
|
+
const n = e, i = t, r = N("visible"), a = (s) => {
|
|
1895
1895
|
const y = Object.fromEntries(Object.entries(s).filter(([, u]) => u !== null && u !== "" && (Array.isArray(u) ? u.length !== 0 : !0)));
|
|
1896
|
-
return Object.keys(y).length === 0 && y.constructor === Object ? "" :
|
|
1896
|
+
return Object.keys(y).length === 0 && y.constructor === Object ? "" : zn.dump(y).trim();
|
|
1897
1897
|
}, o = A(() => a(n.entityRecord)), l = A(() => a(n.unredactedRecord || n.entityRecord));
|
|
1898
|
-
|
|
1898
|
+
Ce(() => n.deckCalloutPreferenceKey, (s) => {
|
|
1899
1899
|
if (s) {
|
|
1900
1900
|
const y = localStorage.getItem(s);
|
|
1901
1901
|
r.value = y === "dismissed" ? "dismissed" : "visible";
|
|
1902
1902
|
}
|
|
1903
|
-
}, { immediate: !0 }),
|
|
1903
|
+
}, { immediate: !0 }), Ce(r, (s) => {
|
|
1904
1904
|
const y = n.deckCalloutPreferenceKey;
|
|
1905
1905
|
y && localStorage.setItem(y, s);
|
|
1906
1906
|
});
|
|
@@ -1908,14 +1908,14 @@ const Sa = /* @__PURE__ */ ee({
|
|
|
1908
1908
|
r.value = "dismissed", i("deck-callout:dismiss");
|
|
1909
1909
|
}
|
|
1910
1910
|
return (s, y) => {
|
|
1911
|
-
const u =
|
|
1912
|
-
return d(), T(
|
|
1911
|
+
const u = L("KCodeBlock");
|
|
1912
|
+
return d(), T(se, null, [
|
|
1913
1913
|
n.deckCalloutPreferenceKey && r.value === "visible" ? (d(), I(Ta, {
|
|
1914
1914
|
key: 0,
|
|
1915
1915
|
onClickCta: y[0] || (y[0] = (k) => s.$emit("deck-callout:click-cta")),
|
|
1916
1916
|
onDismiss: y[1] || (y[1] = (k) => c())
|
|
1917
|
-
})) :
|
|
1918
|
-
|
|
1917
|
+
})) : R("", !0),
|
|
1918
|
+
B("div", Ye({ class: "yaml-config config-card-code-block" }, s.$attrs), [
|
|
1919
1919
|
n.entityRecord ? (d(), I(u, {
|
|
1920
1920
|
key: 0,
|
|
1921
1921
|
id: "yaml-codeblock",
|
|
@@ -1924,13 +1924,13 @@ const Sa = /* @__PURE__ */ ee({
|
|
|
1924
1924
|
"data-dd-privacy": "mask",
|
|
1925
1925
|
language: "yaml",
|
|
1926
1926
|
theme: "dark",
|
|
1927
|
-
onCodeBlockRender: m(
|
|
1928
|
-
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) :
|
|
1927
|
+
onCodeBlockRender: m(Le)
|
|
1928
|
+
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) : R("", !0)
|
|
1929
1929
|
], 16)
|
|
1930
1930
|
], 64);
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
|
-
}), wa = { class: "terraform-config config-card-code-block" },
|
|
1933
|
+
}), wa = { class: "terraform-config config-card-code-block" }, re = " ", Ut = "TF_MULTILINE_EOT", lt = "cloud_gateway_addon", Yn = /* @__PURE__ */ te({
|
|
1934
1934
|
__name: "TerraformCodeBlock",
|
|
1935
1935
|
props: {
|
|
1936
1936
|
/** A record to indicate the entity's configuration, the visible code content (may be redacted) */
|
|
@@ -1965,11 +1965,11 @@ const Sa = /* @__PURE__ */ ee({
|
|
|
1965
1965
|
return !1;
|
|
1966
1966
|
const p = g.config;
|
|
1967
1967
|
return !p || typeof p != "object" ? !1 : typeof p.managed_cache < "u" || typeof p.capacity_config < "u";
|
|
1968
|
-
}), i = A(() => typeof t.entityType == "string" && t.entityType.length > 0 ? t.entityType : n.value ? lt :
|
|
1968
|
+
}), i = A(() => typeof t.entityType == "string" && t.entityType.length > 0 ? t.entityType : n.value ? lt : _e.Partial), r = A(() => ii.includes(i.value)), a = A(() => ri.includes(i.value)), o = (g, p) => {
|
|
1969
1969
|
if (g.includes(`
|
|
1970
1970
|
`)) {
|
|
1971
|
-
const f = p +
|
|
1972
|
-
`).map((
|
|
1971
|
+
const f = p + re, C = g.split(`
|
|
1972
|
+
`).map((M) => `${f}${M}`).join(`
|
|
1973
1973
|
`);
|
|
1974
1974
|
return `<<-${Ut}
|
|
1975
1975
|
${C}
|
|
@@ -1977,7 +1977,7 @@ ${f}${Ut}`;
|
|
|
1977
1977
|
}
|
|
1978
1978
|
return `"${g.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
1979
1979
|
}, l = (g, p) => {
|
|
1980
|
-
const E =
|
|
1980
|
+
const E = re;
|
|
1981
1981
|
let f = "";
|
|
1982
1982
|
return typeof g == "string" ? f += `${E}${p} = ${o(g, E)}
|
|
1983
1983
|
` : f += `${E}${p} = ${String(g ?? "")}
|
|
@@ -1985,31 +1985,31 @@ ${f}${Ut}`;
|
|
|
1985
1985
|
}, c = (g, p, E = "") => {
|
|
1986
1986
|
if (typeof g != "object")
|
|
1987
1987
|
return "Invalid object";
|
|
1988
|
-
const f =
|
|
1988
|
+
const f = re + E;
|
|
1989
1989
|
let C = "";
|
|
1990
1990
|
if (p && (C += `${f}${p} = {
|
|
1991
1991
|
`), g === null)
|
|
1992
1992
|
return p ? C += `${f}}` : C = "{}", C;
|
|
1993
|
-
const
|
|
1994
|
-
let
|
|
1995
|
-
for (const [
|
|
1996
|
-
Array.isArray(v) ? v.length === 0 ?
|
|
1997
|
-
`,
|
|
1998
|
-
`,
|
|
1993
|
+
const M = Object.fromEntries(Object.entries(g).filter(([, X]) => X !== null));
|
|
1994
|
+
let j = "";
|
|
1995
|
+
for (const [X, v] of Object.entries(M))
|
|
1996
|
+
Array.isArray(v) ? v.length === 0 ? j = "[]" : (j = `[
|
|
1997
|
+
`, j += s(v, void 0, f), j += `${f}${re}]`) : v && typeof v == "object" ? (j = `{
|
|
1998
|
+
`, j += c(v, void 0, f), j += `${f}${re}}`) : typeof v == "string" ? j = o(v, f + re) : j = String(v ?? ""), C += `${f}${re}${X} = ${j}
|
|
1999
1999
|
`;
|
|
2000
2000
|
return p ? C += `${f}}
|
|
2001
2001
|
` : C;
|
|
2002
2002
|
}, s = (g, p, E = "") => {
|
|
2003
2003
|
if (!Array.isArray(g))
|
|
2004
2004
|
return "Invalid array";
|
|
2005
|
-
const f =
|
|
2005
|
+
const f = re + E;
|
|
2006
2006
|
let C = "";
|
|
2007
2007
|
p && (g.length === 0 ? C += `${f}${p} = [` : C += `${f}${p} = [
|
|
2008
2008
|
`);
|
|
2009
|
-
for (let
|
|
2010
|
-
const
|
|
2011
|
-
typeof
|
|
2012
|
-
`, C += c(
|
|
2009
|
+
for (let M = 0; M < g.length; M++) {
|
|
2010
|
+
const j = g[M];
|
|
2011
|
+
typeof j == "object" ? (C += `${f}${re}{
|
|
2012
|
+
`, C += c(j, void 0, f), C += `${f}${re}}`) : typeof j == "string" ? C += `${f}${re}${o(j, f + re)}` : C += `${f}${re}${String(j ?? "")}`, M < g.length - 1 && (C += ","), C += `
|
|
2013
2013
|
`;
|
|
2014
2014
|
}
|
|
2015
2015
|
return p && (g.length === 0 ? C += `]
|
|
@@ -2021,35 +2021,35 @@ ${f}${Ut}`;
|
|
|
2021
2021
|
Array.isArray(f) ? p += s(f, E) : typeof f == "object" ? p += c(f, E) : p += l(f, E);
|
|
2022
2022
|
return y(p);
|
|
2023
2023
|
}, k = (g) => {
|
|
2024
|
-
var
|
|
2024
|
+
var M, j, X, v, O, b;
|
|
2025
2025
|
const p = Object.fromEntries(Object.entries(g).filter(([, S]) => S != null)), E = g.config ? Object.fromEntries(Object.entries(g == null ? void 0 : g.config).filter(([, S]) => S != null)) : void 0;
|
|
2026
2026
|
if (E && (p.config = E), Object.keys(p).length === 0)
|
|
2027
2027
|
return "";
|
|
2028
2028
|
delete p.id;
|
|
2029
2029
|
let f = "", C = "";
|
|
2030
|
-
if ((
|
|
2030
|
+
if ((M = p.service) != null && M.id ? (C = "service", delete p.service) : (j = p.route) != null && j.id ? (C = "route", delete p.route) : (X = p.consumer) != null && X.id ? (C = "consumer", delete p.consumer) : (v = p.consumer_group) != null && v.id ? (C = "consumer_group", delete p.consumer_group) : (O = p.certificate) != null && O.id ? (C = "certificate", delete p.certificate) : (b = p.set) != null && b.id && (C = "set", delete p.set), r.value) {
|
|
2031
2031
|
const S = t.subEntityType ? `${i.value}_${t.subEntityType}` : i.value;
|
|
2032
2032
|
f += `resource "konnect_event_gateway_${S}" "my_eventgateway${S.replaceAll("_", "")}" {
|
|
2033
|
-
`, f += `${
|
|
2033
|
+
`, f += `${re}provider = konnect-beta
|
|
2034
2034
|
`;
|
|
2035
|
-
} else if (i.value ===
|
|
2035
|
+
} else if (i.value === _e.Plugin) {
|
|
2036
2036
|
const S = t.credentialType.replace(/-/g, "_") || (p.name + "").replace(/-/g, "_");
|
|
2037
2037
|
delete p.name, f += `resource "konnect_gateway_plugin_${S}" "my_${S}" {
|
|
2038
2038
|
`;
|
|
2039
2039
|
} else a.value ? (f += `resource "konnect_${i.value}" "my_${i.value}" {
|
|
2040
|
-
`, f += `${
|
|
2040
|
+
`, f += `${re}provider = konnect-beta
|
|
2041
2041
|
`) : n.value || i.value === lt ? f += `resource "konnect_cloud_gateway_addon" "managed_cache" {
|
|
2042
2042
|
` : f += `resource "konnect_gateway_${i.value}" "my_${i.value}" {
|
|
2043
2043
|
`;
|
|
2044
|
-
return f += u(p), !r.value && !a.value && i.value !== lt ? f += `${
|
|
2045
|
-
` : C && (f += `${
|
|
2046
|
-
`, f += `${
|
|
2047
|
-
`, f += `${
|
|
2044
|
+
return f += u(p), !r.value && !a.value && i.value !== lt ? f += `${re}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
|
|
2045
|
+
` : C && (f += `${re}${C} = {
|
|
2046
|
+
`, f += `${re}${re}id = konnect_gateway_${C}.my_${C}.id
|
|
2047
|
+
`, f += `${re}}
|
|
2048
2048
|
`), f += `}
|
|
2049
2049
|
`, f;
|
|
2050
2050
|
}, h = A(() => k(t.entityRecord)), _ = A(() => k(t.unredactedRecord || t.entityRecord));
|
|
2051
2051
|
return (g, p) => {
|
|
2052
|
-
const E =
|
|
2052
|
+
const E = L("KCodeBlock");
|
|
2053
2053
|
return d(), T("div", wa, [
|
|
2054
2054
|
t.entityRecord ? (d(), I(E, {
|
|
2055
2055
|
key: 0,
|
|
@@ -2059,12 +2059,12 @@ ${f}${Ut}`;
|
|
|
2059
2059
|
"data-dd-privacy": "mask",
|
|
2060
2060
|
language: "terraform",
|
|
2061
2061
|
theme: "dark",
|
|
2062
|
-
onCodeBlockRender: m(
|
|
2063
|
-
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) :
|
|
2062
|
+
onCodeBlockRender: m(Le)
|
|
2063
|
+
}, null, 8, ["code", "copy-code", "onCodeBlockRender"])) : R("", !0)
|
|
2064
2064
|
]);
|
|
2065
2065
|
};
|
|
2066
2066
|
}
|
|
2067
|
-
}), _a = /* @__PURE__ */
|
|
2067
|
+
}), _a = /* @__PURE__ */ te({
|
|
2068
2068
|
__name: "GeneratePatModal",
|
|
2069
2069
|
props: {
|
|
2070
2070
|
visible: { type: Boolean },
|
|
@@ -2072,7 +2072,7 @@ ${f}${Ut}`;
|
|
|
2072
2072
|
},
|
|
2073
2073
|
emits: ["generated", "dismiss"],
|
|
2074
2074
|
setup(e, { emit: t }) {
|
|
2075
|
-
const n = e, i = t, { i18n: { t: r } } =
|
|
2075
|
+
const n = e, i = t, { i18n: { t: r } } = G.useI18n(), a = N(""), o = N("30"), l = N(!1), c = N(""), s = [
|
|
2076
2076
|
{ value: "30", label: r("generatePatModal.fields.expiresAt.n_days", { n: 30 }) },
|
|
2077
2077
|
{ value: "60", label: r("generatePatModal.fields.expiresAt.n_days", { n: 60 }) },
|
|
2078
2078
|
{ value: "90", label: r("generatePatModal.fields.expiresAt.n_days", { n: 90 }) },
|
|
@@ -2095,7 +2095,7 @@ ${f}${Ut}`;
|
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
2097
|
return (k, h) => {
|
|
2098
|
-
const _ =
|
|
2098
|
+
const _ = L("KInput"), g = L("KSelect"), p = L("KAlert"), E = L("KButton"), f = L("KModal");
|
|
2099
2099
|
return d(), I(f, {
|
|
2100
2100
|
class: "generate-pat-modal",
|
|
2101
2101
|
"max-width": "640px",
|
|
@@ -2105,36 +2105,36 @@ ${f}${Ut}`;
|
|
|
2105
2105
|
onProceed: u
|
|
2106
2106
|
}, {
|
|
2107
2107
|
"footer-actions": x(() => [
|
|
2108
|
-
|
|
2108
|
+
F(E, {
|
|
2109
2109
|
appearance: "tertiary",
|
|
2110
2110
|
onClick: y
|
|
2111
2111
|
}, {
|
|
2112
2112
|
default: x(() => [
|
|
2113
|
-
|
|
2113
|
+
P(w(m(r)("generatePatModal.actions.cancel")), 1)
|
|
2114
2114
|
]),
|
|
2115
2115
|
_: 1
|
|
2116
2116
|
}),
|
|
2117
|
-
|
|
2117
|
+
F(E, {
|
|
2118
2118
|
appearance: "primary",
|
|
2119
2119
|
disabled: !a.value || l.value,
|
|
2120
2120
|
onClick: u
|
|
2121
2121
|
}, {
|
|
2122
2122
|
default: x(() => [
|
|
2123
|
-
|
|
2123
|
+
P(w(l.value ? m(r)("generatePatModal.actions.generating") : m(r)("generatePatModal.actions.generate")), 1)
|
|
2124
2124
|
]),
|
|
2125
2125
|
_: 1
|
|
2126
2126
|
}, 8, ["disabled"])
|
|
2127
2127
|
]),
|
|
2128
2128
|
default: x(() => [
|
|
2129
|
-
|
|
2130
|
-
|
|
2129
|
+
B("div", null, w(m(r)("generatePatModal.description")), 1),
|
|
2130
|
+
F(_, {
|
|
2131
2131
|
modelValue: a.value,
|
|
2132
2132
|
"onUpdate:modelValue": h[0] || (h[0] = (C) => a.value = C),
|
|
2133
2133
|
label: m(r)("generatePatModal.fields.name.label"),
|
|
2134
2134
|
placeholder: m(r)("generatePatModal.fields.name.placeholder"),
|
|
2135
2135
|
required: ""
|
|
2136
2136
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
2137
|
-
|
|
2137
|
+
F(g, {
|
|
2138
2138
|
modelValue: o.value,
|
|
2139
2139
|
"onUpdate:modelValue": h[1] || (h[1] = (C) => o.value = C),
|
|
2140
2140
|
items: s,
|
|
@@ -2146,16 +2146,16 @@ ${f}${Ut}`;
|
|
|
2146
2146
|
key: 0,
|
|
2147
2147
|
appearance: "danger",
|
|
2148
2148
|
message: c.value
|
|
2149
|
-
}, null, 8, ["message"])) :
|
|
2149
|
+
}, null, 8, ["message"])) : R("", !0)
|
|
2150
2150
|
]),
|
|
2151
2151
|
_: 1
|
|
2152
2152
|
}, 8, ["title", "visible"]);
|
|
2153
2153
|
};
|
|
2154
2154
|
}
|
|
2155
|
-
}), $a = /* @__PURE__ */
|
|
2155
|
+
}), $a = /* @__PURE__ */ le(_a, [["__scopeId", "data-v-be3cd315"]]), Ea = { class: "step-title" }, Ia = {
|
|
2156
2156
|
key: 3,
|
|
2157
2157
|
class: "konnect-pat-actions"
|
|
2158
|
-
}, Oa = { class: "step-title" }, Fa = { class: "customization-secret-advise" }, Ba = /* @__PURE__ */
|
|
2158
|
+
}, Oa = { class: "step-title" }, Fa = { class: "customization-secret-advise" }, Ba = /* @__PURE__ */ te({
|
|
2159
2159
|
__name: "DeckCodeBlockInternal",
|
|
2160
2160
|
props: {
|
|
2161
2161
|
app: {},
|
|
@@ -2172,10 +2172,10 @@ ${f}${Ut}`;
|
|
|
2172
2172
|
setup(e) {
|
|
2173
2173
|
const t = Vt(oi, null), n = e;
|
|
2174
2174
|
n.isCustomizing && !t && console.warn(ai);
|
|
2175
|
-
const { i18n: i, i18nT: r } =
|
|
2175
|
+
const { i18n: i, i18nT: r } = G.useI18n(), { t: a } = i, o = N(""), l = N(""), c = N(""), s = N(!1), y = [
|
|
2176
2176
|
{ value: "bash", label: "Linux / macOS Bash" },
|
|
2177
2177
|
{ value: "powershell", label: "Windows PowerShell" }
|
|
2178
|
-
], u =
|
|
2178
|
+
], u = N(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), k = A(() => {
|
|
2179
2179
|
const f = {
|
|
2180
2180
|
_format_version: "3.0"
|
|
2181
2181
|
};
|
|
@@ -2183,14 +2183,14 @@ ${f}${Ut}`;
|
|
|
2183
2183
|
control_plane_name: n.controlPlaneName
|
|
2184
2184
|
}), n.workspace && (f._workspace = n.workspace), f;
|
|
2185
2185
|
}), h = (f) => {
|
|
2186
|
-
var
|
|
2187
|
-
const C = Object.fromEntries(Object.entries(f).filter(([,
|
|
2188
|
-
n.entityType ===
|
|
2189
|
-
const
|
|
2186
|
+
var X, v, O, b, S;
|
|
2187
|
+
const C = Object.fromEntries(Object.entries(f).filter(([, J]) => J !== null && J !== "" && (Array.isArray(J) ? J.length !== 0 : !0)));
|
|
2188
|
+
n.entityType === _e.Plugin ? ((X = C.service) != null && X.id && (C.service = C.service.id), (v = C.route) != null && v.id && (C.route = C.route.id), (O = C.consumer) != null && O.id && (C.consumer = C.consumer.id), (b = C.consumer_group) != null && b.id && (C.consumer_group = C.consumer_group.id)) : n.entityType === _e.Key && (S = C.key_set) != null && S.id && (C.key_set = C.key_set.id);
|
|
2189
|
+
const M = n.entityType === _e.KeySet ? "key_sets" : n.entityType + "s", j = {
|
|
2190
2190
|
...k.value,
|
|
2191
|
-
[
|
|
2191
|
+
[M]: [C]
|
|
2192
2192
|
};
|
|
2193
|
-
return
|
|
2193
|
+
return zn.dump(j, { quotingType: '"' }).trim();
|
|
2194
2194
|
}, _ = A(() => h(n.entityRecord)), g = A(() => h(n.unredactedRecord || n.entityRecord)), p = A(() => u.value === "bash" ? `export DECK_KONNECT_TOKEN='${o.value || "YOUR_KONNECT_PAT"}'` : `$env:DECK_KONNECT_TOKEN = "${o.value || "YOUR_KONNECT_PAT"}"`);
|
|
2195
2195
|
function E(f) {
|
|
2196
2196
|
o.value = f, s.value = !1;
|
|
@@ -2207,37 +2207,37 @@ ${_.value}
|
|
|
2207
2207
|
${g.value}
|
|
2208
2208
|
'@ | ${f}`);
|
|
2209
2209
|
}), (f, C) => {
|
|
2210
|
-
const
|
|
2211
|
-
return d(), T(
|
|
2212
|
-
|
|
2213
|
-
|
|
2210
|
+
const M = L("KSelect"), j = L("KBadge"), X = L("KCodeBlock"), v = L("KAlert"), O = L("KButton");
|
|
2211
|
+
return d(), T(se, null, [
|
|
2212
|
+
B("div", Ye({ class: "deck-config config-card-code-block" }, f.$attrs), [
|
|
2213
|
+
F(M, {
|
|
2214
2214
|
modelValue: u.value,
|
|
2215
2215
|
"onUpdate:modelValue": C[0] || (C[0] = (b) => u.value = b),
|
|
2216
2216
|
items: y
|
|
2217
2217
|
}, {
|
|
2218
2218
|
"item-template": x(({ item: b }) => [
|
|
2219
2219
|
b.value === "powershell" ? (d(), I(m(At), { key: 0 })) : (d(), I(m(St), { key: 1 })),
|
|
2220
|
-
|
|
2220
|
+
P(" " + w(b.label), 1)
|
|
2221
2221
|
]),
|
|
2222
2222
|
"selected-item-template": x(({ item: b }) => [
|
|
2223
2223
|
b.value === "powershell" ? (d(), I(m(At), { key: 0 })) : (d(), I(m(St), { key: 1 })),
|
|
2224
|
-
|
|
2224
|
+
P(" " + w(b.label), 1)
|
|
2225
2225
|
]),
|
|
2226
2226
|
_: 1
|
|
2227
2227
|
}, 8, ["modelValue"]),
|
|
2228
|
-
|
|
2229
|
-
e.isCustomizing ?
|
|
2228
|
+
B("div", Ea, w(m(a)("deckCodeBlock.steps.step_1")), 1),
|
|
2229
|
+
e.isCustomizing ? R("", !0) : (d(), I(m(r), {
|
|
2230
2230
|
key: 0,
|
|
2231
2231
|
"data-testid": `deck-hint-${e.app}`,
|
|
2232
2232
|
keypath: `deckCodeBlock.hint.${e.app}`,
|
|
2233
2233
|
tag: "p"
|
|
2234
|
-
},
|
|
2234
|
+
}, Ee({
|
|
2235
2235
|
link: x(() => [
|
|
2236
|
-
|
|
2236
|
+
F(m(di), {
|
|
2237
2237
|
href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
|
|
2238
2238
|
}, {
|
|
2239
2239
|
default: x(() => [
|
|
2240
|
-
|
|
2240
|
+
P(w(m(i).t("deckCodeBlock.documentation")), 1)
|
|
2241
2241
|
]),
|
|
2242
2242
|
_: 1
|
|
2243
2243
|
}, 8, ["href"])
|
|
@@ -2247,9 +2247,9 @@ ${g.value}
|
|
|
2247
2247
|
e.app === "konnect" ? {
|
|
2248
2248
|
name: "token",
|
|
2249
2249
|
fn: x(() => [
|
|
2250
|
-
|
|
2250
|
+
F(j, null, {
|
|
2251
2251
|
default: x(() => [...C[4] || (C[4] = [
|
|
2252
|
-
|
|
2252
|
+
P("DECK_KONNECT_TOKEN", -1)
|
|
2253
2253
|
])]),
|
|
2254
2254
|
_: 1
|
|
2255
2255
|
})
|
|
@@ -2257,65 +2257,65 @@ ${g.value}
|
|
|
2257
2257
|
key: "0"
|
|
2258
2258
|
} : void 0
|
|
2259
2259
|
]), 1032, ["data-testid", "keypath"])),
|
|
2260
|
-
e.app === "konnect" ? (d(), I(
|
|
2260
|
+
e.app === "konnect" ? (d(), I(X, {
|
|
2261
2261
|
key: 1,
|
|
2262
2262
|
id: "deck-env-codeblock",
|
|
2263
|
-
class:
|
|
2263
|
+
class: de({ customization: n.isCustomizing }),
|
|
2264
2264
|
code: p.value,
|
|
2265
2265
|
language: u.value,
|
|
2266
2266
|
"single-line": "",
|
|
2267
2267
|
theme: e.isCustomizing ? "light" : "dark",
|
|
2268
|
-
onCodeBlockRender: m(
|
|
2269
|
-
}, null, 8, ["class", "code", "language", "theme", "onCodeBlockRender"])) :
|
|
2268
|
+
onCodeBlockRender: m(Le)
|
|
2269
|
+
}, null, 8, ["class", "code", "language", "theme", "onCodeBlockRender"])) : R("", !0),
|
|
2270
2270
|
o.value ? (d(), I(v, {
|
|
2271
2271
|
key: 2,
|
|
2272
2272
|
class: "copy-konnect-pat-alert"
|
|
2273
2273
|
}, {
|
|
2274
2274
|
default: x(() => [
|
|
2275
|
-
|
|
2275
|
+
P(w(m(a)("deckCodeBlock.customization.copy_pat")), 1)
|
|
2276
2276
|
]),
|
|
2277
2277
|
_: 1
|
|
2278
2278
|
})) : n.isCustomizing && n.generateKonnectPat ? (d(), T("div", Ia, [
|
|
2279
|
-
|
|
2279
|
+
F(O, {
|
|
2280
2280
|
appearance: "secondary",
|
|
2281
2281
|
"data-testid": "generate-konnect-pat-button",
|
|
2282
2282
|
onClick: C[1] || (C[1] = (b) => s.value = !0)
|
|
2283
2283
|
}, {
|
|
2284
2284
|
default: x(() => [
|
|
2285
|
-
|
|
2285
|
+
P(w(m(a)("deckCodeBlock.customization.generate_pat")), 1)
|
|
2286
2286
|
]),
|
|
2287
2287
|
_: 1
|
|
2288
2288
|
}),
|
|
2289
|
-
|
|
2290
|
-
])) :
|
|
2291
|
-
|
|
2292
|
-
n.entityRecord && !n.isCustomizing ? (d(), I(
|
|
2289
|
+
B("div", null, w(m(a)("deckCodeBlock.customization.reuse_pat")), 1)
|
|
2290
|
+
])) : R("", !0),
|
|
2291
|
+
B("div", Oa, w(m(a)("deckCodeBlock.steps.step_2")), 1),
|
|
2292
|
+
n.entityRecord && !n.isCustomizing ? (d(), I(X, {
|
|
2293
2293
|
key: 4,
|
|
2294
2294
|
id: "deck-codeblock",
|
|
2295
|
-
class:
|
|
2295
|
+
class: de({ customization: n.isCustomizing }),
|
|
2296
2296
|
code: l.value,
|
|
2297
2297
|
"copy-code": c.value,
|
|
2298
2298
|
"data-dd-privacy": "mask",
|
|
2299
2299
|
language: u.value,
|
|
2300
2300
|
theme: e.isCustomizing ? "light" : "dark",
|
|
2301
|
-
onCodeBlockRender: m(
|
|
2302
|
-
}, null, 8, ["class", "code", "copy-code", "language", "theme", "onCodeBlockRender"])) : n.entityRecord && n.isCustomizing && m(t) ? (d(), T(
|
|
2303
|
-
|
|
2304
|
-
(d(), I(
|
|
2301
|
+
onCodeBlockRender: m(Le)
|
|
2302
|
+
}, null, 8, ["class", "code", "copy-code", "language", "theme", "onCodeBlockRender"])) : n.entityRecord && n.isCustomizing && m(t) ? (d(), T(se, { key: 5 }, [
|
|
2303
|
+
B("div", Fa, w(m(a)("deckCodeBlock.customization.secret_advise")), 1),
|
|
2304
|
+
(d(), I(Ne(m(t)), {
|
|
2305
2305
|
modelValue: c.value,
|
|
2306
2306
|
"onUpdate:modelValue": C[2] || (C[2] = (b) => c.value = b),
|
|
2307
2307
|
language: u.value
|
|
2308
2308
|
}, null, 8, ["modelValue", "language"])),
|
|
2309
|
-
|
|
2309
|
+
F(v, { class: "customization-footer-reminder" }, {
|
|
2310
2310
|
icon: x(() => [
|
|
2311
|
-
|
|
2311
|
+
F(m(Gt))
|
|
2312
2312
|
]),
|
|
2313
2313
|
default: x(() => [
|
|
2314
|
-
|
|
2314
|
+
P(" " + w(m(a)("deckCodeBlock.customization.footer_reminder")), 1)
|
|
2315
2315
|
]),
|
|
2316
2316
|
_: 1
|
|
2317
2317
|
})
|
|
2318
|
-
], 64)) :
|
|
2318
|
+
], 64)) : R("", !0)
|
|
2319
2319
|
], 16),
|
|
2320
2320
|
n.isCustomizing && n.generateKonnectPat ? (d(), I($a, {
|
|
2321
2321
|
key: 0,
|
|
@@ -2323,11 +2323,11 @@ ${g.value}
|
|
|
2323
2323
|
visible: s.value,
|
|
2324
2324
|
onDismiss: C[3] || (C[3] = (b) => s.value = !1),
|
|
2325
2325
|
onGenerated: E
|
|
2326
|
-
}, null, 8, ["generate-konnect-pat", "visible"])) :
|
|
2326
|
+
}, null, 8, ["generate-konnect-pat", "visible"])) : R("", !0)
|
|
2327
2327
|
], 64);
|
|
2328
2328
|
};
|
|
2329
2329
|
}
|
|
2330
|
-
}),
|
|
2330
|
+
}), Ht = /* @__PURE__ */ le(Ba, [["__scopeId", "data-v-991fe861"]]), Wn = /* @__PURE__ */ te({
|
|
2331
2331
|
inheritAttrs: !1,
|
|
2332
2332
|
__name: "DeckCodeBlock",
|
|
2333
2333
|
props: {
|
|
@@ -2344,14 +2344,14 @@ ${g.value}
|
|
|
2344
2344
|
},
|
|
2345
2345
|
emits: ["customization-close"],
|
|
2346
2346
|
setup(e) {
|
|
2347
|
-
const t = e, { i18n: { t: n } } =
|
|
2347
|
+
const t = e, { i18n: { t: n } } = G.useI18n(), i = A(() => {
|
|
2348
2348
|
if (t.app === "konnect" && t.customizationOptions && typeof t.customizationOptions != "boolean")
|
|
2349
2349
|
return t.customizationOptions.generateKonnectPat;
|
|
2350
2350
|
});
|
|
2351
2351
|
return (r, a) => {
|
|
2352
|
-
const o =
|
|
2353
|
-
return d(), T(
|
|
2354
|
-
t.entityRecord ? (d(), I(
|
|
2352
|
+
const o = L("KModal");
|
|
2353
|
+
return d(), T(se, null, [
|
|
2354
|
+
t.entityRecord ? (d(), I(Ht, Ye({ key: 0 }, r.$attrs, {
|
|
2355
2355
|
app: t.app,
|
|
2356
2356
|
"control-plane-name": t.app === "konnect" ? t.controlPlaneName : void 0,
|
|
2357
2357
|
"entity-record": t.entityRecord,
|
|
@@ -2360,7 +2360,7 @@ ${g.value}
|
|
|
2360
2360
|
"kong-admin-api-url": t.app === "kongManager" ? t.kongAdminApiUrl : void 0,
|
|
2361
2361
|
"unredacted-record": t.unredactedRecord,
|
|
2362
2362
|
workspace: t.workspace || void 0
|
|
2363
|
-
}), null, 16, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])) :
|
|
2363
|
+
}), null, 16, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])) : R("", !0),
|
|
2364
2364
|
t.entityRecord ? (d(), I(o, {
|
|
2365
2365
|
key: 1,
|
|
2366
2366
|
"action-button-appearance": "tertiary",
|
|
@@ -2373,7 +2373,7 @@ ${g.value}
|
|
|
2373
2373
|
onProceed: a[1] || (a[1] = (l) => r.$emit("customization-close"))
|
|
2374
2374
|
}, {
|
|
2375
2375
|
default: x(() => [
|
|
2376
|
-
|
|
2376
|
+
F(Ht, {
|
|
2377
2377
|
app: t.app,
|
|
2378
2378
|
"control-plane-name": t.app === "konnect" ? t.controlPlaneName : void 0,
|
|
2379
2379
|
"entity-record": t.entityRecord,
|
|
@@ -2387,7 +2387,7 @@ ${g.value}
|
|
|
2387
2387
|
}, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "generate-konnect-pat", "geo-api-server-url", "kong-admin-api-url", "unredacted-record", "workspace"])
|
|
2388
2388
|
]),
|
|
2389
2389
|
_: 1
|
|
2390
|
-
}, 8, ["action-button-text", "title", "visible"])) :
|
|
2390
|
+
}, 8, ["action-button-text", "title", "visible"])) : R("", !0)
|
|
2391
2391
|
], 64);
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
@@ -2397,7 +2397,7 @@ ${g.value}
|
|
|
2397
2397
|
}, Ra = ["data-testid"], La = {
|
|
2398
2398
|
key: 0,
|
|
2399
2399
|
class: "config-card-prop-section-title"
|
|
2400
|
-
}, Da = /* @__PURE__ */
|
|
2400
|
+
}, Da = /* @__PURE__ */ te({
|
|
2401
2401
|
__name: "ConfigCardDisplay",
|
|
2402
2402
|
props: {
|
|
2403
2403
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2482,7 +2482,7 @@ ${g.value}
|
|
|
2482
2482
|
},
|
|
2483
2483
|
emits: ["deck-customization:close", "request-deck-format"],
|
|
2484
2484
|
setup(e) {
|
|
2485
|
-
const t = e, n =
|
|
2485
|
+
const t = e, n = Ve(), { i18n: { t: i } } = G.useI18n(), r = (k) => !!(k.tooltip || n[`${k.key}-label-tooltip`]), a = (k) => {
|
|
2486
2486
|
if (k == null)
|
|
2487
2487
|
return;
|
|
2488
2488
|
let h = JSON.parse(JSON.stringify(k));
|
|
@@ -2495,28 +2495,28 @@ ${g.value}
|
|
|
2495
2495
|
isDeckEnabled: s,
|
|
2496
2496
|
deckCustomizationOptions: y,
|
|
2497
2497
|
deckCalloutPreferenceKey: u
|
|
2498
|
-
} =
|
|
2498
|
+
} = G.useBaseEntityDeckOptions(
|
|
2499
2499
|
() => t.config,
|
|
2500
2500
|
() => t.entityType
|
|
2501
2501
|
);
|
|
2502
|
-
return (k, h) => (d(), T(
|
|
2502
|
+
return (k, h) => (d(), T(se, null, [
|
|
2503
2503
|
e.format === "structured" ? (d(), T("div", Ka, [
|
|
2504
|
-
(d(!0), T(
|
|
2504
|
+
(d(!0), T(se, null, be(e.propListTypes, (_) => (d(), T("div", {
|
|
2505
2505
|
key: `config-card-details-${_}-props`,
|
|
2506
|
-
class:
|
|
2506
|
+
class: de(`config-card-details-${_}-props`),
|
|
2507
2507
|
"data-testid": `config-card-details-${_}-props`
|
|
2508
2508
|
}, [
|
|
2509
|
-
_ !== "basic" ? (d(), T("div", La, w(_ === "advanced" ? m(i)("baseConfigCard.sections.advanced") : _ === "plugin" ? m(i)("baseConfigCard.sections.plugin") : m(i)("baseConfigCard.sections.policy")), 1)) :
|
|
2510
|
-
(d(!0), T(
|
|
2509
|
+
_ !== "basic" ? (d(), T("div", La, w(_ === "advanced" ? m(i)("baseConfigCard.sections.advanced") : _ === "plugin" ? m(i)("baseConfigCard.sections.plugin") : m(i)("baseConfigCard.sections.policy")), 1)) : R("", !0),
|
|
2510
|
+
(d(!0), T(se, null, be(e.propertyCollections[_], (g) => H(k.$slots, `config-card-item-${g.key}`, { row: g }, () => [
|
|
2511
2511
|
(d(), I(en, {
|
|
2512
2512
|
key: g.key,
|
|
2513
2513
|
item: g
|
|
2514
|
-
},
|
|
2514
|
+
}, Ee({
|
|
2515
2515
|
label: x(() => [
|
|
2516
|
-
|
|
2516
|
+
H(k.$slots, `${g.key}-label`, { row: g }, void 0, !0)
|
|
2517
2517
|
]),
|
|
2518
2518
|
[g.key]: x(({ rowValue: p }) => [
|
|
2519
|
-
|
|
2519
|
+
H(k.$slots, g.key, {
|
|
2520
2520
|
row: g,
|
|
2521
2521
|
rowValue: p
|
|
2522
2522
|
}, void 0, !0)
|
|
@@ -2526,14 +2526,14 @@ ${g.value}
|
|
|
2526
2526
|
r(g) ? {
|
|
2527
2527
|
name: "label-tooltip",
|
|
2528
2528
|
fn: x(() => [
|
|
2529
|
-
|
|
2529
|
+
H(k.$slots, `${g.key}-label-tooltip`, { row: g }, void 0, !0)
|
|
2530
2530
|
]),
|
|
2531
2531
|
key: "0"
|
|
2532
2532
|
} : void 0
|
|
2533
2533
|
]), 1032, ["item"]))
|
|
2534
2534
|
], !0)), 256))
|
|
2535
2535
|
], 10, Ra))), 128))
|
|
2536
|
-
])) :
|
|
2536
|
+
])) : R("", !0),
|
|
2537
2537
|
e.format === "json" && o.value ? (d(), I(tn, {
|
|
2538
2538
|
key: 1,
|
|
2539
2539
|
config: t.config,
|
|
@@ -2541,21 +2541,21 @@ ${g.value}
|
|
|
2541
2541
|
"fetcher-url": c.value,
|
|
2542
2542
|
"request-method": "get",
|
|
2543
2543
|
"unredacted-record": l.value
|
|
2544
|
-
}, null, 8, ["config", "entity-record", "fetcher-url", "unredacted-record"])) :
|
|
2544
|
+
}, null, 8, ["config", "entity-record", "fetcher-url", "unredacted-record"])) : R("", !0),
|
|
2545
2545
|
e.format === "yaml" && o.value ? (d(), I(Vn, {
|
|
2546
2546
|
key: 2,
|
|
2547
2547
|
"deck-callout-preference-key": m(s) ? m(u) : void 0,
|
|
2548
2548
|
"entity-record": o.value,
|
|
2549
2549
|
"unredacted-record": l.value,
|
|
2550
2550
|
"onDeckCallout:clickCta": h[0] || (h[0] = (_) => k.$emit("request-deck-format"))
|
|
2551
|
-
}, null, 8, ["deck-callout-preference-key", "entity-record", "unredacted-record"])) :
|
|
2551
|
+
}, null, 8, ["deck-callout-preference-key", "entity-record", "unredacted-record"])) : R("", !0),
|
|
2552
2552
|
e.format === "terraform" && o.value ? (d(), I(Yn, {
|
|
2553
2553
|
key: 3,
|
|
2554
2554
|
"entity-record": o.value,
|
|
2555
2555
|
"entity-type": t.entityType,
|
|
2556
2556
|
"sub-entity-type": t.subEntityType,
|
|
2557
2557
|
"unredacted-record": l.value
|
|
2558
|
-
}, null, 8, ["entity-record", "entity-type", "sub-entity-type", "unredacted-record"])) :
|
|
2558
|
+
}, null, 8, ["entity-record", "entity-type", "sub-entity-type", "unredacted-record"])) : R("", !0),
|
|
2559
2559
|
e.format === "deck" && o.value ? (d(), I(Wn, {
|
|
2560
2560
|
key: 4,
|
|
2561
2561
|
app: e.config.app,
|
|
@@ -2569,16 +2569,16 @@ ${g.value}
|
|
|
2569
2569
|
"unredacted-record": l.value,
|
|
2570
2570
|
workspace: e.config.workspace || void 0,
|
|
2571
2571
|
onCustomizationClose: h[1] || (h[1] = (_) => k.$emit("deck-customization:close"))
|
|
2572
|
-
}, null, 8, ["app", "control-plane-name", "customization-options", "entity-record", "entity-type", "geo-api-server-url", "is-customization-modal-visible", "kong-admin-api-url", "unredacted-record", "workspace"])) :
|
|
2572
|
+
}, null, 8, ["app", "control-plane-name", "customization-options", "entity-record", "entity-type", "geo-api-server-url", "is-customization-modal-visible", "kong-admin-api-url", "unredacted-record", "workspace"])) : R("", !0)
|
|
2573
2573
|
], 64));
|
|
2574
2574
|
}
|
|
2575
|
-
}), Na = /* @__PURE__ */
|
|
2575
|
+
}), Na = /* @__PURE__ */ le(Da, [["__scopeId", "data-v-83075649"]]), Pa = {
|
|
2576
2576
|
class: "config-card-title",
|
|
2577
2577
|
"data-testid": "config-card-title"
|
|
2578
|
-
}, Ma = { class: "config-card-actions" }, ja = { class: "row" }, qa = ["href"], Ua = { class: "config-card-details-section" },
|
|
2578
|
+
}, Ma = { class: "config-card-actions" }, ja = { class: "row" }, qa = ["href"], Ua = { class: "config-card-details-section" }, Ha = {
|
|
2579
2579
|
key: 0,
|
|
2580
2580
|
class: "config-card-details-after"
|
|
2581
|
-
},
|
|
2581
|
+
}, za = /* @__PURE__ */ te({
|
|
2582
2582
|
__name: "EntityBaseConfigCard",
|
|
2583
2583
|
props: {
|
|
2584
2584
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2724,15 +2724,15 @@ ${g.value}
|
|
|
2724
2724
|
},
|
|
2725
2725
|
emits: ["loading", "fetch:success", "fetch:error", "configFormatChange"],
|
|
2726
2726
|
setup(e, { emit: t }) {
|
|
2727
|
-
var
|
|
2728
|
-
const n = t, i = e, r = /* @__PURE__ */ new Set(["after-fields"]), { i18n: { t: a } } =
|
|
2729
|
-
|
|
2730
|
-
const { axiosInstance: c } =
|
|
2727
|
+
var we;
|
|
2728
|
+
const n = t, i = e, r = /* @__PURE__ */ new Set(["after-fields"]), { i18n: { t: a } } = G.useI18n(), { getMessageFromError: o } = G.useErrors(), { convertKeyToTitle: l } = G.useStringHelpers();
|
|
2729
|
+
G.useSubSchema(i.pluginConfigKey);
|
|
2730
|
+
const { axiosInstance: c } = G.useAxios((we = i.config) == null ? void 0 : we.axiosRequestConfig), s = Ve(), y = N(!1), u = A(
|
|
2731
2731
|
() => Object.keys(s).filter(($) => !r.has($))
|
|
2732
2732
|
), k = A(() => !!s["after-fields"]), {
|
|
2733
2733
|
isDeckEnabled: h,
|
|
2734
2734
|
deckCustomizationOptions: _
|
|
2735
|
-
} =
|
|
2735
|
+
} = G.useBaseEntityDeckOptions(
|
|
2736
2736
|
() => i.config,
|
|
2737
2737
|
() => i.entityType
|
|
2738
2738
|
), g = A(() => {
|
|
@@ -2758,297 +2758,297 @@ ${g.value}
|
|
|
2758
2758
|
label: a("baseForm.configuration.deck"),
|
|
2759
2759
|
value: "deck"
|
|
2760
2760
|
});
|
|
2761
|
-
const
|
|
2762
|
-
return $.filter((
|
|
2763
|
-
}), p =
|
|
2761
|
+
const D = new Set(i.formatsToHide);
|
|
2762
|
+
return $.filter((q) => q.value === "structured" || !D.has(q.value));
|
|
2763
|
+
}), p = N("structured"), E = ($) => {
|
|
2764
2764
|
p.value = $ == null ? void 0 : $.value, n("configFormatChange", p.value);
|
|
2765
|
-
}, f = ($,
|
|
2766
|
-
localStorage.setItem($,
|
|
2765
|
+
}, f = ($, D) => {
|
|
2766
|
+
localStorage.setItem($, D);
|
|
2767
2767
|
};
|
|
2768
|
-
|
|
2768
|
+
Ce(p, ($) => {
|
|
2769
2769
|
i.config.formatPreferenceKey && f(i.config.formatPreferenceKey, $);
|
|
2770
2770
|
}), et(() => {
|
|
2771
2771
|
var $;
|
|
2772
2772
|
if (i.config.formatPreferenceKey) {
|
|
2773
|
-
const
|
|
2774
|
-
|
|
2773
|
+
const D = localStorage.getItem(i.config.formatPreferenceKey), q = g.value;
|
|
2774
|
+
D && q.some((pe) => pe.value === D) ? p.value = D : p.value = (($ = q[0]) == null ? void 0 : $.value) ?? "structured", f(i.config.formatPreferenceKey, p.value);
|
|
2775
2775
|
}
|
|
2776
2776
|
});
|
|
2777
2777
|
const C = {
|
|
2778
2778
|
id: {
|
|
2779
|
-
type:
|
|
2779
|
+
type: ee.ID,
|
|
2780
2780
|
label: a("baseConfigCard.commonFields.id_label"),
|
|
2781
2781
|
order: 0,
|
|
2782
|
-
section:
|
|
2782
|
+
section: ge.Basic
|
|
2783
2783
|
},
|
|
2784
2784
|
name: {
|
|
2785
2785
|
order: 1,
|
|
2786
|
-
section:
|
|
2786
|
+
section: ge.Basic
|
|
2787
2787
|
},
|
|
2788
2788
|
enabled: {
|
|
2789
|
-
type:
|
|
2789
|
+
type: ee.BadgeStatus,
|
|
2790
2790
|
order: 2,
|
|
2791
|
-
section:
|
|
2791
|
+
section: ge.Basic
|
|
2792
2792
|
},
|
|
2793
2793
|
updated_at: {
|
|
2794
|
-
type:
|
|
2794
|
+
type: ee.Date,
|
|
2795
2795
|
label: a("baseConfigCard.commonFields.updated_at_label"),
|
|
2796
2796
|
order: 3,
|
|
2797
|
-
section:
|
|
2797
|
+
section: ge.Basic
|
|
2798
2798
|
},
|
|
2799
2799
|
created_at: {
|
|
2800
|
-
type:
|
|
2800
|
+
type: ee.Date,
|
|
2801
2801
|
label: a("baseConfigCard.commonFields.created_at_label"),
|
|
2802
2802
|
order: 4,
|
|
2803
|
-
section:
|
|
2803
|
+
section: ge.Basic
|
|
2804
2804
|
},
|
|
2805
2805
|
tags: {
|
|
2806
|
-
type:
|
|
2806
|
+
type: ee.BadgeTag,
|
|
2807
2807
|
order: -1,
|
|
2808
2808
|
// the last property displayed
|
|
2809
|
-
section:
|
|
2809
|
+
section: ge.Basic
|
|
2810
2810
|
},
|
|
2811
2811
|
partials: {
|
|
2812
|
-
type:
|
|
2812
|
+
type: ee.LinkInternal,
|
|
2813
2813
|
label: a("baseConfigCard.commonFields.partial_label"),
|
|
2814
2814
|
order: -1,
|
|
2815
2815
|
// the last property displayed
|
|
2816
|
-
section:
|
|
2816
|
+
section: ge.Basic
|
|
2817
2817
|
}
|
|
2818
|
-
},
|
|
2818
|
+
}, M = N(!1), j = N(!1), X = N(""), v = N({}), O = N(null), b = A(() => {
|
|
2819
2819
|
if (!(!i.codeBlockRecordResolver || O.value == null))
|
|
2820
2820
|
return i.codeBlockRecordResolver(O.value);
|
|
2821
|
-
}), S =
|
|
2822
|
-
var
|
|
2821
|
+
}), S = N(!1), J = A(() => {
|
|
2822
|
+
var D;
|
|
2823
2823
|
const $ = { ...b.value || v.value };
|
|
2824
|
-
for (const
|
|
2825
|
-
((
|
|
2824
|
+
for (const q in $)
|
|
2825
|
+
((D = i.configSchema[q]) == null ? void 0 : D.type) === ee.Redacted && ($[q] = "********");
|
|
2826
2826
|
return i.codeBlockRecordResolver ? i.codeBlockRecordResolver($) : $;
|
|
2827
|
-
}),
|
|
2828
|
-
var
|
|
2827
|
+
}), z = A(() => {
|
|
2828
|
+
var q, pe, he;
|
|
2829
2829
|
if (!v.value)
|
|
2830
2830
|
return [];
|
|
2831
|
-
const $ = [],
|
|
2832
|
-
for (const
|
|
2833
|
-
if (
|
|
2834
|
-
const U = (
|
|
2835
|
-
let
|
|
2836
|
-
(
|
|
2831
|
+
const $ = [], D = Object.keys(v.value).length;
|
|
2832
|
+
for (const W in v.value) {
|
|
2833
|
+
if (W === "__ui_data") continue;
|
|
2834
|
+
const U = (pe = (q = i.configSchema) == null ? void 0 : q[W]) == null ? void 0 : pe.order, ie = (he = C[W]) == null ? void 0 : he.order;
|
|
2835
|
+
let Z = D;
|
|
2836
|
+
(ie || ie === 0) && (Z = ie === -1 ? D + 1 : ie), U && (Z = U === -1 ? D + 1 : U), $.push([W, Z]);
|
|
2837
2837
|
}
|
|
2838
|
-
return $.sort(function(
|
|
2839
|
-
return
|
|
2840
|
-
}), $.map((
|
|
2838
|
+
return $.sort(function(W, U) {
|
|
2839
|
+
return W[1] - U[1];
|
|
2840
|
+
}), $.map((W) => {
|
|
2841
2841
|
var We, Ct;
|
|
2842
|
-
const U =
|
|
2842
|
+
const U = W[0], ie = (We = v.value) == null ? void 0 : We[U], Z = ((Ct = i.configSchema) == null ? void 0 : Ct[U]) || {}, Q = C[U];
|
|
2843
2843
|
return {
|
|
2844
2844
|
key: U,
|
|
2845
|
-
value:
|
|
2846
|
-
hidden:
|
|
2847
|
-
type:
|
|
2848
|
-
label:
|
|
2849
|
-
tooltip:
|
|
2850
|
-
section:
|
|
2845
|
+
value: ie,
|
|
2846
|
+
hidden: Z.hidden || !1,
|
|
2847
|
+
type: Z.type ?? ((Q == null ? void 0 : Q.type) || ee.Text),
|
|
2848
|
+
label: Z.label ?? ((Q == null ? void 0 : Q.label) || l(U)),
|
|
2849
|
+
tooltip: Z.tooltip ?? ((Q == null ? void 0 : Q.tooltip) || void 0),
|
|
2850
|
+
section: Z.section ?? ((Q == null ? void 0 : Q.section) || ge.Advanced)
|
|
2851
2851
|
};
|
|
2852
|
-
}).filter((
|
|
2852
|
+
}).filter((W) => !W.hidden && W.key !== i.pluginConfigKey);
|
|
2853
2853
|
}), V = A(() => {
|
|
2854
|
-
var
|
|
2854
|
+
var pe, he;
|
|
2855
2855
|
if (!v.value || !i.pluginConfigKey)
|
|
2856
2856
|
return [];
|
|
2857
|
-
const $ = v.value[i.pluginConfigKey] || {},
|
|
2858
|
-
for (const
|
|
2859
|
-
const U = (he = (
|
|
2860
|
-
let
|
|
2861
|
-
U && (
|
|
2857
|
+
const $ = v.value[i.pluginConfigKey] || {}, D = Object.keys($).length, q = [];
|
|
2858
|
+
for (const W in $) {
|
|
2859
|
+
const U = (he = (pe = i.pluginConfigSchema) == null ? void 0 : pe[W]) == null ? void 0 : he.order, ie = $[W];
|
|
2860
|
+
let Z = ie != null && ie !== "" ? D - 1 : D;
|
|
2861
|
+
U && (Z = U === -1 ? D + 1 : U), q.push([W, Z]);
|
|
2862
2862
|
}
|
|
2863
|
-
return
|
|
2864
|
-
return
|
|
2865
|
-
}),
|
|
2866
|
-
var
|
|
2867
|
-
const U =
|
|
2863
|
+
return q.sort(function(W, U) {
|
|
2864
|
+
return W[1] - U[1];
|
|
2865
|
+
}), q.map((W) => {
|
|
2866
|
+
var Q;
|
|
2867
|
+
const U = W[0], ie = $[U], Z = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[U]) || {};
|
|
2868
2868
|
return {
|
|
2869
2869
|
key: U,
|
|
2870
|
-
value:
|
|
2871
|
-
hidden:
|
|
2872
|
-
type:
|
|
2873
|
-
label:
|
|
2874
|
-
tooltip:
|
|
2875
|
-
section:
|
|
2870
|
+
value: ie,
|
|
2871
|
+
hidden: Z.hidden || !1,
|
|
2872
|
+
type: Z.type ?? ee.Text,
|
|
2873
|
+
label: Z.label ?? l(U),
|
|
2874
|
+
tooltip: Z.tooltip ?? void 0,
|
|
2875
|
+
section: ge.Plugin
|
|
2876
2876
|
};
|
|
2877
|
-
}).filter((
|
|
2878
|
-
}),
|
|
2879
|
-
var
|
|
2877
|
+
}).filter((W) => !W.hidden);
|
|
2878
|
+
}), Y = A(() => {
|
|
2879
|
+
var pe, he;
|
|
2880
2880
|
if (!v.value || !i.policyConfigKey)
|
|
2881
2881
|
return [];
|
|
2882
|
-
const $ = v.value[i.policyConfigKey] || {},
|
|
2883
|
-
for (const
|
|
2884
|
-
const U = (he = (
|
|
2885
|
-
let
|
|
2886
|
-
U && (
|
|
2882
|
+
const $ = v.value[i.policyConfigKey] || {}, D = Object.keys($).length, q = [];
|
|
2883
|
+
for (const W in $) {
|
|
2884
|
+
const U = (he = (pe = i.policyConfigSchema) == null ? void 0 : pe[W]) == null ? void 0 : he.order, ie = $[W];
|
|
2885
|
+
let Z = ie != null && ie !== "" ? D - 1 : D;
|
|
2886
|
+
U && (Z = U === -1 ? D + 1 : U), q.push([W, Z]);
|
|
2887
2887
|
}
|
|
2888
|
-
return
|
|
2889
|
-
return
|
|
2890
|
-
}),
|
|
2891
|
-
var
|
|
2892
|
-
const U =
|
|
2888
|
+
return q.sort(function(W, U) {
|
|
2889
|
+
return W[1] - U[1];
|
|
2890
|
+
}), q.map((W) => {
|
|
2891
|
+
var Q;
|
|
2892
|
+
const U = W[0], ie = $[U], Z = ((Q = i.policyConfigSchema) == null ? void 0 : Q[U]) || {};
|
|
2893
2893
|
return {
|
|
2894
2894
|
key: U,
|
|
2895
|
-
value:
|
|
2896
|
-
hidden:
|
|
2897
|
-
type:
|
|
2898
|
-
label:
|
|
2899
|
-
tooltip:
|
|
2900
|
-
section:
|
|
2895
|
+
value: ie,
|
|
2896
|
+
hidden: Z.hidden || !1,
|
|
2897
|
+
type: Z.type ?? ee.Text,
|
|
2898
|
+
label: Z.label ?? l(U),
|
|
2899
|
+
tooltip: Z.tooltip ?? void 0,
|
|
2900
|
+
section: ge.Policy
|
|
2901
2901
|
};
|
|
2902
|
-
}).filter((
|
|
2903
|
-
}),
|
|
2904
|
-
var $,
|
|
2902
|
+
}).filter((W) => !W.hidden);
|
|
2903
|
+
}), ne = A(() => {
|
|
2904
|
+
var $, D, q, pe, he, W;
|
|
2905
2905
|
return {
|
|
2906
|
-
basic: ($ =
|
|
2907
|
-
advanced: (
|
|
2908
|
-
plugin: (
|
|
2909
|
-
policy: (
|
|
2906
|
+
basic: ($ = z.value) == null ? void 0 : $.filter((U) => U.section === ge.Basic),
|
|
2907
|
+
advanced: (D = z.value) == null ? void 0 : D.filter((U) => U.section === ge.Advanced),
|
|
2908
|
+
plugin: (pe = V.value) == null ? void 0 : pe.concat((q = z.value) == null ? void 0 : q.filter((U) => U.section === ge.Plugin)),
|
|
2909
|
+
policy: (W = Y.value) == null ? void 0 : W.concat((he = z.value) == null ? void 0 : he.filter((U) => U.section === ge.Policy))
|
|
2910
2910
|
};
|
|
2911
|
-
}),
|
|
2911
|
+
}), xe = A(() => {
|
|
2912
2912
|
const $ = [];
|
|
2913
|
-
return
|
|
2914
|
-
}),
|
|
2915
|
-
var
|
|
2913
|
+
return ne.value.basic.length && $.push("basic"), ne.value.advanced.length && $.push("advanced"), ne.value.plugin.length && $.push("plugin"), ne.value.policy.length && $.push("policy"), $;
|
|
2914
|
+
}), ye = A(() => {
|
|
2915
|
+
var D, q;
|
|
2916
2916
|
let $ = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
2917
|
-
return i.config.app === "konnect" && ($ = $.replace(/{controlPlaneId}/gi, ((
|
|
2917
|
+
return i.config.app === "konnect" && ($ = $.replace(/{controlPlaneId}/gi, ((D = i.config) == null ? void 0 : D.controlPlaneId) || "")), $.replace(/\/{workspace}/gi, (q = i.config) != null && q.workspace ? `/${i.config.workspace}` : "").replace(/{id}/gi, i.config.entityId);
|
|
2918
2918
|
});
|
|
2919
|
-
return
|
|
2919
|
+
return Ce(M, ($) => {
|
|
2920
2920
|
n("loading", $);
|
|
2921
2921
|
}, { immediate: !0 }), mt(async () => {
|
|
2922
|
-
|
|
2922
|
+
j.value = !1, M.value = !0;
|
|
2923
2923
|
try {
|
|
2924
|
-
const { data: $ } = await c.get(
|
|
2924
|
+
const { data: $ } = await c.get(ye.value);
|
|
2925
2925
|
if (O.value = $, i.dataKey)
|
|
2926
2926
|
if (typeof $[i.dataKey] < "u")
|
|
2927
2927
|
v.value = { ...$[i.dataKey] };
|
|
2928
2928
|
else
|
|
2929
2929
|
throw new Error(a("errors.dataKeyUndefined", { dataKey: i.dataKey }));
|
|
2930
2930
|
else i.recordResolver ? v.value = { ...i.recordResolver($) } : v.value = { ...$ };
|
|
2931
|
-
Object.keys(i.configSchema).filter((
|
|
2932
|
-
v.value && typeof v.value[
|
|
2931
|
+
Object.keys(i.configSchema).filter((q) => i.configSchema[q].forceShow).forEach((q) => {
|
|
2932
|
+
v.value && typeof v.value[q] > "u" && (v.value[q] = null);
|
|
2933
2933
|
}), n("fetch:success", $);
|
|
2934
2934
|
} catch ($) {
|
|
2935
2935
|
O.value = null;
|
|
2936
|
-
const
|
|
2937
|
-
|
|
2936
|
+
const D = o($);
|
|
2937
|
+
X.value = D.startsWith("code") ? a("baseConfigCard.errors.load") : D, j.value = !0, n("fetch:error", $);
|
|
2938
2938
|
} finally {
|
|
2939
|
-
|
|
2939
|
+
M.value = !1;
|
|
2940
2940
|
}
|
|
2941
|
-
}), ($,
|
|
2942
|
-
const
|
|
2943
|
-
return d(), I(
|
|
2941
|
+
}), ($, D) => {
|
|
2942
|
+
const q = L("KCheckbox"), pe = L("KLabel"), he = L("KSelect"), W = L("KButton"), U = L("KSkeleton"), ie = L("KEmptyState"), Z = L("KCard");
|
|
2943
|
+
return d(), I(Z, {
|
|
2944
2944
|
class: "kong-ui-entity-base-config-card",
|
|
2945
2945
|
"title-tag": e.titleTag
|
|
2946
|
-
},
|
|
2946
|
+
}, Ee({
|
|
2947
2947
|
actions: x(() => [
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
p.value !== "structured" ? (d(), I(
|
|
2948
|
+
B("div", Ma, [
|
|
2949
|
+
H($.$slots, "actions", {}, void 0, !0),
|
|
2950
|
+
p.value !== "structured" ? (d(), I(q, {
|
|
2951
2951
|
key: 0,
|
|
2952
2952
|
modelValue: S.value,
|
|
2953
|
-
"onUpdate:modelValue":
|
|
2953
|
+
"onUpdate:modelValue": D[0] || (D[0] = (Q) => S.value = Q),
|
|
2954
2954
|
class: "sensitive-fields-checkbox",
|
|
2955
2955
|
"data-testid": "sensitive-fields-checkbox",
|
|
2956
2956
|
label: m(a)("baseConfigCard.actions.sensitive_fields")
|
|
2957
|
-
}, null, 8, ["modelValue", "label"])) :
|
|
2958
|
-
|
|
2959
|
-
|
|
2957
|
+
}, null, 8, ["modelValue", "label"])) : R("", !0),
|
|
2958
|
+
B("div", ja, [
|
|
2959
|
+
F(pe, {
|
|
2960
2960
|
class: "config-format-select-label",
|
|
2961
2961
|
"data-testid": "config-format-select-label"
|
|
2962
2962
|
}, {
|
|
2963
2963
|
default: x(() => [
|
|
2964
|
-
|
|
2964
|
+
P(w(e.label), 1)
|
|
2965
2965
|
]),
|
|
2966
2966
|
_: 1
|
|
2967
2967
|
}),
|
|
2968
|
-
|
|
2968
|
+
F(he, {
|
|
2969
2969
|
modelValue: p.value,
|
|
2970
|
-
"onUpdate:modelValue":
|
|
2970
|
+
"onUpdate:modelValue": D[1] || (D[1] = (Q) => p.value = Q),
|
|
2971
2971
|
"data-testid": "select-config-format",
|
|
2972
2972
|
items: g.value,
|
|
2973
2973
|
onChange: E
|
|
2974
2974
|
}, null, 8, ["modelValue", "items"])
|
|
2975
2975
|
]),
|
|
2976
|
-
p.value === "deck" && m(_) ? (d(), I(
|
|
2976
|
+
p.value === "deck" && m(_) ? (d(), I(W, {
|
|
2977
2977
|
key: 1,
|
|
2978
2978
|
appearance: "secondary",
|
|
2979
2979
|
class: "button-customize-deck",
|
|
2980
2980
|
"data-testid": "config-deck-customize-button",
|
|
2981
|
-
onClick:
|
|
2981
|
+
onClick: D[2] || (D[2] = (Q) => y.value = !0)
|
|
2982
2982
|
}, {
|
|
2983
2983
|
default: x(() => [
|
|
2984
|
-
|
|
2984
|
+
P(w(m(a)("baseConfigCard.actions.deck_customize")), 1)
|
|
2985
2985
|
]),
|
|
2986
2986
|
_: 1
|
|
2987
|
-
})) :
|
|
2988
|
-
e.configCardDoc ? (d(), I(
|
|
2987
|
+
})) : R("", !0),
|
|
2988
|
+
e.configCardDoc ? (d(), I(W, {
|
|
2989
2989
|
key: 2,
|
|
2990
2990
|
appearance: "tertiary",
|
|
2991
2991
|
class: "book-icon",
|
|
2992
2992
|
"data-testid": "book-icon"
|
|
2993
2993
|
}, {
|
|
2994
2994
|
default: x(() => [
|
|
2995
|
-
|
|
2995
|
+
B("a", {
|
|
2996
2996
|
href: e.configCardDoc,
|
|
2997
2997
|
rel: "noopener",
|
|
2998
2998
|
target: "_blank"
|
|
2999
2999
|
}, [
|
|
3000
|
-
|
|
3000
|
+
F(m(Jt), { size: m(Pe) }, null, 8, ["size"])
|
|
3001
3001
|
], 8, qa)
|
|
3002
3002
|
]),
|
|
3003
3003
|
_: 1
|
|
3004
|
-
})) :
|
|
3004
|
+
})) : R("", !0)
|
|
3005
3005
|
])
|
|
3006
3006
|
]),
|
|
3007
3007
|
default: x(() => [
|
|
3008
|
-
|
|
3008
|
+
M.value ? (d(), I(U, {
|
|
3009
3009
|
key: 0,
|
|
3010
3010
|
"data-testid": "config-card-loader",
|
|
3011
3011
|
"table-columns": 2,
|
|
3012
3012
|
type: "table"
|
|
3013
|
-
})) :
|
|
3013
|
+
})) : j.value ? (d(), I(ie, {
|
|
3014
3014
|
key: 1,
|
|
3015
3015
|
"data-testid": "config-card-fetch-error",
|
|
3016
3016
|
"icon-variant": "error"
|
|
3017
3017
|
}, {
|
|
3018
3018
|
default: x(() => [
|
|
3019
|
-
|
|
3019
|
+
B("h3", null, w(X.value), 1)
|
|
3020
3020
|
]),
|
|
3021
3021
|
_: 1
|
|
3022
|
-
})) : (d(), T(
|
|
3023
|
-
|
|
3024
|
-
|
|
3022
|
+
})) : (d(), T(se, { key: 2 }, [
|
|
3023
|
+
B("div", Ua, [
|
|
3024
|
+
F(Na, {
|
|
3025
3025
|
"code-block-record": b.value,
|
|
3026
3026
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
3027
|
-
"code-block-record-redacted": S.value ? void 0 :
|
|
3027
|
+
"code-block-record-redacted": S.value ? void 0 : J.value,
|
|
3028
3028
|
config: e.config,
|
|
3029
3029
|
"entity-type": e.entityType,
|
|
3030
|
-
"fetcher-url":
|
|
3030
|
+
"fetcher-url": ye.value,
|
|
3031
3031
|
format: p.value,
|
|
3032
3032
|
"is-deck-customization-visible": y.value,
|
|
3033
3033
|
"preserve-code-block-timestamps": e.preserveCodeBlockTimestamps,
|
|
3034
|
-
"prop-list-types":
|
|
3035
|
-
"property-collections":
|
|
3034
|
+
"prop-list-types": xe.value,
|
|
3035
|
+
"property-collections": ne.value,
|
|
3036
3036
|
record: v.value,
|
|
3037
3037
|
"sub-entity-type": e.subEntityType,
|
|
3038
|
-
"onDeckCustomization:close":
|
|
3039
|
-
onRequestDeckFormat:
|
|
3040
|
-
},
|
|
3041
|
-
be(u.value, (
|
|
3042
|
-
name:
|
|
3038
|
+
"onDeckCustomization:close": D[3] || (D[3] = (Q) => y.value = !1),
|
|
3039
|
+
onRequestDeckFormat: D[4] || (D[4] = (Q) => p.value = "deck")
|
|
3040
|
+
}, Ee({ _: 2 }, [
|
|
3041
|
+
be(u.value, (Q) => ({
|
|
3042
|
+
name: Q,
|
|
3043
3043
|
fn: x((We) => [
|
|
3044
|
-
|
|
3044
|
+
H($.$slots, Q, Ye({ record: v.value }, We), void 0, !0)
|
|
3045
3045
|
])
|
|
3046
3046
|
}))
|
|
3047
3047
|
]), 1032, ["code-block-record", "code-block-record-formatter", "code-block-record-redacted", "config", "entity-type", "fetcher-url", "format", "is-deck-customization-visible", "preserve-code-block-timestamps", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
3048
3048
|
]),
|
|
3049
|
-
k.value ? (d(), T("div",
|
|
3050
|
-
|
|
3051
|
-
])) :
|
|
3049
|
+
k.value ? (d(), T("div", Ha, [
|
|
3050
|
+
H($.$slots, "after-fields", {}, void 0, !0)
|
|
3051
|
+
])) : R("", !0)
|
|
3052
3052
|
], 64))
|
|
3053
3053
|
]),
|
|
3054
3054
|
_: 2
|
|
@@ -3056,9 +3056,9 @@ ${g.value}
|
|
|
3056
3056
|
e.hideTitle ? void 0 : {
|
|
3057
3057
|
name: "title",
|
|
3058
3058
|
fn: x(() => [
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3059
|
+
B("span", Pa, [
|
|
3060
|
+
H($.$slots, "title", {}, () => [
|
|
3061
|
+
P(w(m(a)("baseConfigCard.title")), 1)
|
|
3062
3062
|
], !0)
|
|
3063
3063
|
])
|
|
3064
3064
|
]),
|
|
@@ -3067,10 +3067,10 @@ ${g.value}
|
|
|
3067
3067
|
]), 1032, ["title-tag"]);
|
|
3068
3068
|
};
|
|
3069
3069
|
}
|
|
3070
|
-
}),
|
|
3070
|
+
}), Sc = /* @__PURE__ */ le(za, [["__scopeId", "data-v-f962b7fb"]]), Va = ["novalidate"], Ya = {
|
|
3071
3071
|
key: 0,
|
|
3072
3072
|
class: "button-customize-deck-wrapper"
|
|
3073
|
-
}, Wa = /* @__PURE__ */
|
|
3073
|
+
}, Wa = /* @__PURE__ */ te({
|
|
3074
3074
|
__name: "EntityBaseForm",
|
|
3075
3075
|
props: {
|
|
3076
3076
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3215,144 +3215,158 @@ ${g.value}
|
|
|
3215
3215
|
slideoutDeckEntityType: {
|
|
3216
3216
|
type: String,
|
|
3217
3217
|
default: void 0
|
|
3218
|
+
},
|
|
3219
|
+
/**
|
|
3220
|
+
* Hide tabs from the configuration slideout (eg. ['yaml']).
|
|
3221
|
+
*/
|
|
3222
|
+
tabsToHide: {
|
|
3223
|
+
type: Array,
|
|
3224
|
+
required: !1,
|
|
3225
|
+
default: () => []
|
|
3218
3226
|
}
|
|
3219
3227
|
},
|
|
3220
3228
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3221
3229
|
setup(e, { expose: t, emit: n }) {
|
|
3222
|
-
var
|
|
3223
|
-
const i = Vt(ci,
|
|
3224
|
-
var
|
|
3225
|
-
let
|
|
3226
|
-
return a.config.app === "konnect" && (
|
|
3227
|
-
}), E =
|
|
3230
|
+
var J, z;
|
|
3231
|
+
const i = Vt(ci, N(!1)), r = n, a = e, o = _i(), { i18n: { t: l } } = G.useI18n(), { getMessageFromError: c } = G.useErrors(), { axiosInstance: s } = G.useAxios((J = a.config) == null ? void 0 : J.axiosRequestConfig), y = N(!1), u = A(() => !!a.editId), k = N(!1), h = N(""), _ = A(() => a.canSubmit === !1 || a.isReadonly), g = N(!1), p = A(() => {
|
|
3232
|
+
var Y, ne;
|
|
3233
|
+
let V = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3234
|
+
return a.config.app === "konnect" && (V = V.replace(/{controlPlaneId}/gi, ((Y = a.config) == null ? void 0 : Y.controlPlaneId) || "")), V = V.replace(/\/{workspace}/gi, (ne = a.config) != null && ne.workspace ? `/${a.config.workspace}` : ""), a.editId ? (V = V.replace(/{id}/gi, a.editId), V) : (V = V.replace(/\/{id}/gi, ""), V);
|
|
3235
|
+
}), E = N(!1), {
|
|
3228
3236
|
isDeckEnabled: f,
|
|
3229
3237
|
deckCustomizationOptions: C,
|
|
3230
|
-
deckCalloutPreferenceKey:
|
|
3231
|
-
} =
|
|
3238
|
+
deckCalloutPreferenceKey: M
|
|
3239
|
+
} = G.useBaseFormDeckOptions(
|
|
3232
3240
|
() => a.config,
|
|
3233
3241
|
() => a.entityType
|
|
3234
|
-
),
|
|
3242
|
+
), j = () => {
|
|
3235
3243
|
g.value = !g.value;
|
|
3236
|
-
},
|
|
3244
|
+
}, X = () => {
|
|
3237
3245
|
a.config.cancelRoute ? o.push(a.config.cancelRoute) : v();
|
|
3238
3246
|
}, v = () => {
|
|
3239
3247
|
r("cancel");
|
|
3240
3248
|
}, O = () => {
|
|
3241
3249
|
_.value || r("submit");
|
|
3242
|
-
}, b =
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3250
|
+
}, b = A(() => {
|
|
3251
|
+
const V = [
|
|
3252
|
+
{
|
|
3253
|
+
title: l("baseForm.configuration.json"),
|
|
3254
|
+
hash: "#json"
|
|
3255
|
+
},
|
|
3256
|
+
{
|
|
3257
|
+
title: l("baseForm.configuration.yaml"),
|
|
3258
|
+
hash: "#yaml"
|
|
3259
|
+
}
|
|
3260
|
+
];
|
|
3261
|
+
a.config.app === "konnect" && a.entityType !== _e.Other && V.splice(1, 0, {
|
|
3262
|
+
title: l("baseForm.configuration.terraform"),
|
|
3263
|
+
hash: "#terraform"
|
|
3264
|
+
}), f.value && V.push({
|
|
3265
|
+
title: l("baseForm.configuration.deck"),
|
|
3266
|
+
hash: "#deck"
|
|
3267
|
+
});
|
|
3268
|
+
const Y = new Set(a.tabsToHide.map((ne) => `#${ne}`));
|
|
3269
|
+
return V.filter((ne) => !Y.has(ne.hash));
|
|
3270
|
+
}), S = N((z = b.value[0]) == null ? void 0 : z.hash);
|
|
3271
|
+
return Ce(b, (V) => {
|
|
3272
|
+
var Y;
|
|
3273
|
+
V.some((ne) => ne.hash === S.value) || (S.value = (Y = V[0]) == null ? void 0 : Y.hash);
|
|
3274
|
+
}), Ce(() => y.value, (V) => {
|
|
3275
|
+
r("loading", V);
|
|
3262
3276
|
}, { immediate: !0 }), mt(async () => {
|
|
3263
3277
|
if (a.editId)
|
|
3264
3278
|
try {
|
|
3265
3279
|
k.value = !1, y.value = !0;
|
|
3266
|
-
const { data:
|
|
3267
|
-
r("fetch:success",
|
|
3268
|
-
} catch (
|
|
3269
|
-
const
|
|
3270
|
-
h.value =
|
|
3280
|
+
const { data: V } = await s.get(p.value);
|
|
3281
|
+
r("fetch:success", V);
|
|
3282
|
+
} catch (V) {
|
|
3283
|
+
const Y = c(V);
|
|
3284
|
+
h.value = Y.startsWith("code") ? l("baseForm.errors.edit") : Y, k.value = !0, r("fetch:error", V);
|
|
3271
3285
|
} finally {
|
|
3272
3286
|
y.value = !1;
|
|
3273
3287
|
}
|
|
3274
3288
|
}), t({
|
|
3275
|
-
viewConfig:
|
|
3289
|
+
viewConfig: j,
|
|
3276
3290
|
formCancel: v,
|
|
3277
3291
|
formSubmit: O
|
|
3278
|
-
}), (
|
|
3279
|
-
const
|
|
3280
|
-
return d(), I(
|
|
3281
|
-
class:
|
|
3282
|
-
"new-form-layout": m(i) && e.entityType === m(
|
|
3292
|
+
}), (V, Y) => {
|
|
3293
|
+
const ne = L("KSkeleton"), xe = L("KEmptyState"), ye = L("KAlert"), we = L("KButton"), $ = L("KTabs"), D = L("KSlideout");
|
|
3294
|
+
return d(), I(Ne(e.wrapperComponent), {
|
|
3295
|
+
class: de(["kong-ui-entity-base-form", {
|
|
3296
|
+
"new-form-layout": m(i) && e.entityType === m(_e).Plugin
|
|
3283
3297
|
}])
|
|
3284
3298
|
}, {
|
|
3285
3299
|
default: x(() => [
|
|
3286
|
-
y.value ? (d(), I(
|
|
3300
|
+
y.value ? (d(), I(ne, {
|
|
3287
3301
|
key: 0,
|
|
3288
3302
|
type: "form"
|
|
3289
|
-
})) : k.value ? (d(), I(
|
|
3303
|
+
})) : k.value ? (d(), I(xe, {
|
|
3290
3304
|
key: 1,
|
|
3291
3305
|
"action-button-text": m(l)("baseForm.actions.back"),
|
|
3292
3306
|
"data-testid": "form-fetch-error",
|
|
3293
3307
|
"icon-variant": "error",
|
|
3294
|
-
onClickAction:
|
|
3308
|
+
onClickAction: X
|
|
3295
3309
|
}, {
|
|
3296
3310
|
default: x(() => [
|
|
3297
|
-
|
|
3311
|
+
B("h3", null, w(h.value), 1)
|
|
3298
3312
|
]),
|
|
3299
3313
|
_: 1
|
|
3300
3314
|
}, 8, ["action-button-text"])) : (d(), T("form", {
|
|
3301
3315
|
key: 2,
|
|
3302
3316
|
"data-testid": "form-content",
|
|
3303
3317
|
novalidate: a.noValidate,
|
|
3304
|
-
onReset:
|
|
3305
|
-
onSubmit:
|
|
3318
|
+
onReset: je(v, ["prevent"]),
|
|
3319
|
+
onSubmit: je(O, ["prevent"])
|
|
3306
3320
|
}, [
|
|
3307
|
-
|
|
3308
|
-
e.errorMessage ? (d(), I(
|
|
3321
|
+
H(V.$slots, "default", {}, void 0, !0),
|
|
3322
|
+
e.errorMessage ? (d(), I(ye, {
|
|
3309
3323
|
key: 0,
|
|
3310
3324
|
appearance: "danger",
|
|
3311
3325
|
class: "form-error",
|
|
3312
3326
|
"data-testid": "form-error",
|
|
3313
3327
|
message: e.errorMessage
|
|
3314
|
-
}, null, 8, ["message"])) :
|
|
3315
|
-
e.hideActions ?
|
|
3328
|
+
}, null, 8, ["message"])) : R("", !0),
|
|
3329
|
+
e.hideActions ? R("", !0) : (d(), I(Yt, {
|
|
3316
3330
|
key: 1,
|
|
3317
3331
|
disabled: !e.actionTeleportTarget,
|
|
3318
3332
|
to: e.actionTeleportTarget
|
|
3319
3333
|
}, [
|
|
3320
|
-
|
|
3321
|
-
class:
|
|
3334
|
+
B("div", {
|
|
3335
|
+
class: de(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3322
3336
|
"data-testid": "form-actions"
|
|
3323
3337
|
}, [
|
|
3324
|
-
|
|
3325
|
-
|
|
3338
|
+
H(V.$slots, "form-actions", {}, () => [
|
|
3339
|
+
F(we, {
|
|
3326
3340
|
appearance: "tertiary",
|
|
3327
3341
|
"data-testid": `${e.entityType}-${u.value ? "edit" : "create"}-form-view-configuration`,
|
|
3328
|
-
onClick:
|
|
3342
|
+
onClick: Y[0] || (Y[0] = (q) => j())
|
|
3329
3343
|
}, {
|
|
3330
3344
|
default: x(() => [
|
|
3331
|
-
|
|
3345
|
+
P(w(g.value ? m(l)("baseForm.actions.hideConfiguration") : m(l)("baseForm.actions.viewConfiguration")), 1)
|
|
3332
3346
|
]),
|
|
3333
3347
|
_: 1
|
|
3334
3348
|
}, 8, ["data-testid"]),
|
|
3335
|
-
|
|
3349
|
+
F(we, {
|
|
3336
3350
|
appearance: "secondary",
|
|
3337
3351
|
"data-testid": `${e.entityType}-${u.value ? "edit" : "create"}-form-cancel`,
|
|
3338
3352
|
disabled: e.isReadonly,
|
|
3339
3353
|
type: "reset",
|
|
3340
|
-
onClick:
|
|
3354
|
+
onClick: Y[1] || (Y[1] = (q) => !!e.actionTeleportTarget && v())
|
|
3341
3355
|
}, {
|
|
3342
3356
|
default: x(() => [
|
|
3343
|
-
|
|
3357
|
+
P(w(e.cancelButtonText ?? m(l)("baseForm.actions.cancel")), 1)
|
|
3344
3358
|
]),
|
|
3345
3359
|
_: 1
|
|
3346
3360
|
}, 8, ["data-testid", "disabled"]),
|
|
3347
|
-
|
|
3361
|
+
F(we, {
|
|
3348
3362
|
appearance: "primary",
|
|
3349
3363
|
"data-testid": `${e.entityType}-${u.value ? "edit" : "create"}-form-submit`,
|
|
3350
3364
|
disabled: _.value,
|
|
3351
3365
|
type: "submit",
|
|
3352
|
-
onClick:
|
|
3366
|
+
onClick: Y[2] || (Y[2] = (q) => !!e.actionTeleportTarget && O())
|
|
3353
3367
|
}, {
|
|
3354
3368
|
default: x(() => [
|
|
3355
|
-
|
|
3369
|
+
P(w(e.saveButtonText ?? m(l)("baseForm.actions.save")), 1)
|
|
3356
3370
|
]),
|
|
3357
3371
|
_: 1
|
|
3358
3372
|
}, 8, ["data-testid", "disabled"])
|
|
@@ -3360,30 +3374,30 @@ ${g.value}
|
|
|
3360
3374
|
], 2)
|
|
3361
3375
|
], 8, ["disabled", "to"]))
|
|
3362
3376
|
], 40, Va)),
|
|
3363
|
-
|
|
3377
|
+
F(D, {
|
|
3364
3378
|
"close-on-blur": !1,
|
|
3365
3379
|
"data-testid": "form-view-configuration-slideout",
|
|
3366
3380
|
"has-overlay": !1,
|
|
3367
3381
|
"offset-top": e.slidoutTopOffset,
|
|
3368
3382
|
title: m(l)("baseForm.configuration.title"),
|
|
3369
3383
|
visible: g.value,
|
|
3370
|
-
onClose:
|
|
3384
|
+
onClose: Y[8] || (Y[8] = (q) => j())
|
|
3371
3385
|
}, {
|
|
3372
3386
|
default: x(() => [
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3387
|
+
B("div", null, [
|
|
3388
|
+
H(V.$slots, "configuration-slideout-message", {}, () => [
|
|
3389
|
+
P(w(m(l)("baseForm.configuration.message")), 1)
|
|
3376
3390
|
], !0)
|
|
3377
3391
|
]),
|
|
3378
|
-
|
|
3392
|
+
F($, {
|
|
3379
3393
|
modelValue: S.value,
|
|
3380
|
-
"onUpdate:modelValue":
|
|
3394
|
+
"onUpdate:modelValue": Y[6] || (Y[6] = (q) => S.value = q),
|
|
3381
3395
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3382
3396
|
tabs: b.value,
|
|
3383
|
-
onChange:
|
|
3397
|
+
onChange: Y[7] || (Y[7] = (q) => r("codeBlockTabChange", q.replace("#", "")))
|
|
3384
3398
|
}, {
|
|
3385
3399
|
json: x(() => [
|
|
3386
|
-
|
|
3400
|
+
F(tn, {
|
|
3387
3401
|
config: e.config,
|
|
3388
3402
|
"entity-record": a.formFields,
|
|
3389
3403
|
"fetcher-url": a.slideoutFetchUrl ?? p.value,
|
|
@@ -3391,14 +3405,14 @@ ${g.value}
|
|
|
3391
3405
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3392
3406
|
]),
|
|
3393
3407
|
yaml: x(() => [
|
|
3394
|
-
|
|
3395
|
-
"deck-callout-preference-key": m(f) ? m(
|
|
3408
|
+
F(Vn, {
|
|
3409
|
+
"deck-callout-preference-key": m(f) ? m(M) : void 0,
|
|
3396
3410
|
"entity-record": a.formFields,
|
|
3397
|
-
"onDeckCallout:clickCta":
|
|
3411
|
+
"onDeckCallout:clickCta": Y[3] || (Y[3] = (q) => S.value = "#deck")
|
|
3398
3412
|
}, null, 8, ["deck-callout-preference-key", "entity-record"])
|
|
3399
3413
|
]),
|
|
3400
3414
|
terraform: x(() => [
|
|
3401
|
-
|
|
3415
|
+
F(Yn, {
|
|
3402
3416
|
"entity-record": a.formFields,
|
|
3403
3417
|
"entity-type": e.entityType,
|
|
3404
3418
|
"sub-entity-type": e.subEntityType
|
|
@@ -3406,18 +3420,18 @@ ${g.value}
|
|
|
3406
3420
|
]),
|
|
3407
3421
|
deck: x(() => [
|
|
3408
3422
|
m(C) ? (d(), T("div", Ya, [
|
|
3409
|
-
|
|
3423
|
+
F(we, {
|
|
3410
3424
|
appearance: "secondary",
|
|
3411
3425
|
class: "button-customize-deck",
|
|
3412
|
-
onClick:
|
|
3426
|
+
onClick: Y[4] || (Y[4] = (q) => E.value = !0)
|
|
3413
3427
|
}, {
|
|
3414
3428
|
default: x(() => [
|
|
3415
|
-
|
|
3429
|
+
P(w(m(l)("baseConfigCard.actions.deck_customize")), 1)
|
|
3416
3430
|
]),
|
|
3417
3431
|
_: 1
|
|
3418
3432
|
})
|
|
3419
|
-
])) :
|
|
3420
|
-
|
|
3433
|
+
])) : R("", !0),
|
|
3434
|
+
F(Wn, {
|
|
3421
3435
|
app: e.config.app,
|
|
3422
3436
|
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
3423
3437
|
"customization-options": m(C),
|
|
@@ -3427,7 +3441,7 @@ ${g.value}
|
|
|
3427
3441
|
"is-customization-modal-visible": E.value,
|
|
3428
3442
|
"kong-admin-api-url": e.config.app === "kongManager" ? e.config.apiBaseUrl : void 0,
|
|
3429
3443
|
workspace: e.config.workspace || void 0,
|
|
3430
|
-
onCustomizationClose:
|
|
3444
|
+
onCustomizationClose: Y[5] || (Y[5] = (q) => E.value = !1)
|
|
3431
3445
|
}, null, 8, ["app", "control-plane-name", "customization-options", "entity-record", "entity-type", "geo-api-server-url", "is-customization-modal-visible", "kong-admin-api-url", "workspace"])
|
|
3432
3446
|
]),
|
|
3433
3447
|
_: 1
|
|
@@ -3440,7 +3454,7 @@ ${g.value}
|
|
|
3440
3454
|
}, 8, ["class"]);
|
|
3441
3455
|
};
|
|
3442
3456
|
}
|
|
3443
|
-
}),
|
|
3457
|
+
}), Tc = /* @__PURE__ */ le(Wa, [["__scopeId", "data-v-7ce8c23d"]]), Ga = ["data-truncate"], Ja = /* @__PURE__ */ te({
|
|
3444
3458
|
__name: "EntityBaseTableCell",
|
|
3445
3459
|
props: {
|
|
3446
3460
|
keyName: {
|
|
@@ -3475,11 +3489,11 @@ ${g.value}
|
|
|
3475
3489
|
var E, f, C;
|
|
3476
3490
|
let p = ((E = n.value) == null ? void 0 : E.clientWidth) || 0;
|
|
3477
3491
|
if (n.value && "getComputedStyle" in window) {
|
|
3478
|
-
const
|
|
3479
|
-
p -= (parseFloat(
|
|
3492
|
+
const M = window.getComputedStyle(n.value);
|
|
3493
|
+
p -= (parseFloat(M.paddingLeft) || 0) + (parseFloat(M.paddingRight) || 0);
|
|
3480
3494
|
}
|
|
3481
3495
|
y.value = ((f = i.value) == null ? void 0 : f.getBoundingClientRect().width) || 0, u.value = p, k.value = ((C = s.value) == null ? void 0 : C.innerText) || "";
|
|
3482
|
-
}, s =
|
|
3496
|
+
}, s = N({}), y = N(0), u = N(0), k = N(""), h = A(() => [i.value, n.value]), _ = Ce(
|
|
3483
3497
|
h,
|
|
3484
3498
|
(p) => {
|
|
3485
3499
|
if (a.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3499,7 +3513,7 @@ ${g.value}
|
|
|
3499
3513
|
}), Zn(() => {
|
|
3500
3514
|
_();
|
|
3501
3515
|
}), (p, E) => {
|
|
3502
|
-
const f =
|
|
3516
|
+
const f = L("KTooltip");
|
|
3503
3517
|
return d(), T("span", {
|
|
3504
3518
|
ref_key: "contentRef",
|
|
3505
3519
|
ref: s,
|
|
@@ -3509,27 +3523,27 @@ ${g.value}
|
|
|
3509
3523
|
key: 0,
|
|
3510
3524
|
"data-truncate": a.value || void 0
|
|
3511
3525
|
}, [
|
|
3512
|
-
|
|
3526
|
+
F(f, {
|
|
3513
3527
|
"max-width": "300",
|
|
3514
3528
|
placement: "bottom-start",
|
|
3515
3529
|
text: g.value ? k.value : ""
|
|
3516
3530
|
}, {
|
|
3517
3531
|
default: x(() => [
|
|
3518
|
-
|
|
3532
|
+
H(p.$slots, "default", {}, void 0, !0)
|
|
3519
3533
|
]),
|
|
3520
3534
|
_: 3
|
|
3521
3535
|
}, 8, ["text"])
|
|
3522
|
-
], 8, Ga)) :
|
|
3536
|
+
], 8, Ga)) : H(p.$slots, "default", { key: 1 }, void 0, !0)
|
|
3523
3537
|
], 512);
|
|
3524
3538
|
};
|
|
3525
3539
|
}
|
|
3526
|
-
}), Qa = /* @__PURE__ */
|
|
3540
|
+
}), Qa = /* @__PURE__ */ le(Ja, [["__scopeId", "data-v-a3a65cac"]]), Xa = { class: "toolbar-container" }, Za = {
|
|
3527
3541
|
key: 0,
|
|
3528
3542
|
class: "toolbar-button-container"
|
|
3529
3543
|
}, el = {
|
|
3530
3544
|
key: 0,
|
|
3531
3545
|
class: "hidden"
|
|
3532
|
-
}, tl = /* @__PURE__ */
|
|
3546
|
+
}, tl = /* @__PURE__ */ te({
|
|
3533
3547
|
__name: "EntityBaseTable",
|
|
3534
3548
|
props: {
|
|
3535
3549
|
// table header configuration
|
|
@@ -3674,7 +3688,7 @@ ${g.value}
|
|
|
3674
3688
|
},
|
|
3675
3689
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3676
3690
|
setup(e, { emit: t }) {
|
|
3677
|
-
const n = e, i = t, { i18n: { t: r } } =
|
|
3691
|
+
const n = e, i = t, { i18n: { t: r } } = G.useI18n(), a = A(() => {
|
|
3678
3692
|
var b, S;
|
|
3679
3693
|
return typeof n.errorMessage == "string" ? {
|
|
3680
3694
|
hasError: !!n.errorMessage,
|
|
@@ -3687,13 +3701,13 @@ ${g.value}
|
|
|
3687
3701
|
};
|
|
3688
3702
|
}), o = A(() => n.cacheIdentifier || n.preferencesStorageKey), l = A(() => {
|
|
3689
3703
|
const b = [];
|
|
3690
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3691
|
-
const
|
|
3704
|
+
return Object.keys(n.tableHeaders).forEach((J) => {
|
|
3705
|
+
const z = n.tableHeaders[J];
|
|
3692
3706
|
b.push({
|
|
3693
|
-
label:
|
|
3694
|
-
key:
|
|
3695
|
-
sortable:
|
|
3696
|
-
hidable:
|
|
3707
|
+
label: z.label ?? J,
|
|
3708
|
+
key: J,
|
|
3709
|
+
sortable: z.sortable ?? !1,
|
|
3710
|
+
hidable: z.hidable ?? !0
|
|
3697
3711
|
});
|
|
3698
3712
|
}), n.enableEntityActions && b.push({
|
|
3699
3713
|
key: "actions",
|
|
@@ -3703,7 +3717,7 @@ ${g.value}
|
|
|
3703
3717
|
"data-rowid": b.id,
|
|
3704
3718
|
"data-testid": b.name,
|
|
3705
3719
|
...n.rowAttributes(b)
|
|
3706
|
-
}), s =
|
|
3720
|
+
}), s = N({}), y = (b) => {
|
|
3707
3721
|
var S;
|
|
3708
3722
|
return (S = s.value) == null ? void 0 : S.$el.querySelector(`[data-rowid="${b.id}"]`);
|
|
3709
3723
|
}, u = (b) => {
|
|
@@ -3726,15 +3740,15 @@ ${g.value}
|
|
|
3726
3740
|
i("click:row", S);
|
|
3727
3741
|
}), p = (b) => {
|
|
3728
3742
|
i("sort", b);
|
|
3729
|
-
}, { hideTableToolbar: E, handleStateChange: f } =
|
|
3730
|
-
const b =
|
|
3743
|
+
}, { hideTableToolbar: E, handleStateChange: f } = G.useTableState(() => n.query), { setTablePreferences: C, getTablePreferences: M } = si(), j = N(M(o.value, n.defaultTablePreferences)), X = A(() => {
|
|
3744
|
+
const b = M(o.value);
|
|
3731
3745
|
return {
|
|
3732
3746
|
...n.initialFetcherParams,
|
|
3733
3747
|
...b
|
|
3734
3748
|
};
|
|
3735
3749
|
}), v = (b) => {
|
|
3736
|
-
|
|
3737
|
-
!("hidable" in S) || !
|
|
3750
|
+
j.value = b, l.value.forEach((S) => {
|
|
3751
|
+
!("hidable" in S) || !j.value.columnVisibility || S.hidable === !1 && (j.value.columnVisibility[S.key] = !0);
|
|
3738
3752
|
}), o.value && C(o.value, b);
|
|
3739
3753
|
}, O = A(() => ({
|
|
3740
3754
|
disablePageJump: n.disablePaginationPageJump,
|
|
@@ -3742,14 +3756,14 @@ ${g.value}
|
|
|
3742
3756
|
...n.paginationAttributes
|
|
3743
3757
|
}));
|
|
3744
3758
|
return (b, S) => {
|
|
3745
|
-
const
|
|
3746
|
-
return d(), I(
|
|
3759
|
+
const J = L("KTableData"), z = L("KCard");
|
|
3760
|
+
return d(), I(z, {
|
|
3747
3761
|
class: "kong-ui-entity-base-table",
|
|
3748
3762
|
title: e.title,
|
|
3749
3763
|
"title-tag": e.titleTag
|
|
3750
3764
|
}, {
|
|
3751
3765
|
default: x(() => [
|
|
3752
|
-
|
|
3766
|
+
F(J, {
|
|
3753
3767
|
ref_key: "tableRefs",
|
|
3754
3768
|
ref: s,
|
|
3755
3769
|
"cache-identifier": o.value,
|
|
@@ -3769,7 +3783,7 @@ ${g.value}
|
|
|
3769
3783
|
"hide-pagination": e.hidePagination,
|
|
3770
3784
|
"hide-pagination-when-optional": e.hidePaginationWhenOptional,
|
|
3771
3785
|
"hide-toolbar": e.hideToolbar ?? m(E),
|
|
3772
|
-
"initial-fetcher-params":
|
|
3786
|
+
"initial-fetcher-params": X.value,
|
|
3773
3787
|
loading: e.isLoading,
|
|
3774
3788
|
"pagination-attributes": O.value,
|
|
3775
3789
|
"resize-columns": "",
|
|
@@ -3778,48 +3792,48 @@ ${g.value}
|
|
|
3778
3792
|
"search-input": e.query,
|
|
3779
3793
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
3780
3794
|
sortable: !e.disableSorting,
|
|
3781
|
-
"table-preferences":
|
|
3795
|
+
"table-preferences": j.value,
|
|
3782
3796
|
onEmptyStateActionClick: h,
|
|
3783
3797
|
"onRow:click": g.value,
|
|
3784
3798
|
onSort: S[0] || (S[0] = (V) => p(V)),
|
|
3785
3799
|
onState: k,
|
|
3786
3800
|
"onUpdate:tablePreferences": v
|
|
3787
|
-
},
|
|
3801
|
+
}, Ee({
|
|
3788
3802
|
toolbar: x(() => [
|
|
3789
|
-
|
|
3790
|
-
|
|
3803
|
+
B("div", Xa, [
|
|
3804
|
+
H(b.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3791
3805
|
b.$slots["toolbar-button"] ? (d(), T("div", Za, [
|
|
3792
|
-
|
|
3793
|
-
])) :
|
|
3806
|
+
H(b.$slots, "toolbar-button", {}, void 0, !0)
|
|
3807
|
+
])) : R("", !0)
|
|
3794
3808
|
])
|
|
3795
3809
|
]),
|
|
3796
3810
|
"action-items": x(({ row: V }) => [
|
|
3797
|
-
|
|
3811
|
+
H(b.$slots, "actions", { row: V }, void 0, !0)
|
|
3798
3812
|
]),
|
|
3799
3813
|
_: 2
|
|
3800
3814
|
}, [
|
|
3801
3815
|
b.$slots["empty-state"] ? {
|
|
3802
3816
|
name: "empty-state",
|
|
3803
3817
|
fn: x(() => [
|
|
3804
|
-
|
|
3818
|
+
H(b.$slots, "empty-state", {}, void 0, !0)
|
|
3805
3819
|
]),
|
|
3806
3820
|
key: "0"
|
|
3807
3821
|
} : void 0,
|
|
3808
|
-
be(e.tableHeaders, (V,
|
|
3809
|
-
name:
|
|
3810
|
-
fn: x(({ row:
|
|
3811
|
-
|
|
3812
|
-
"key-name": String(
|
|
3813
|
-
"row-el": y(
|
|
3822
|
+
be(e.tableHeaders, (V, Y) => ({
|
|
3823
|
+
name: Y,
|
|
3824
|
+
fn: x(({ row: ne, rowValue: xe }) => [
|
|
3825
|
+
F(Qa, {
|
|
3826
|
+
"key-name": String(Y),
|
|
3827
|
+
"row-el": y(ne),
|
|
3814
3828
|
tooltip: V.tooltip
|
|
3815
3829
|
}, {
|
|
3816
3830
|
default: x(() => [
|
|
3817
|
-
|
|
3818
|
-
row:
|
|
3831
|
+
H(b.$slots, Y, {
|
|
3832
|
+
row: ne,
|
|
3819
3833
|
rowKey: e.rowKey,
|
|
3820
|
-
rowValue:
|
|
3834
|
+
rowValue: xe
|
|
3821
3835
|
}, () => [
|
|
3822
|
-
|
|
3836
|
+
P(w(xe), 1)
|
|
3823
3837
|
], !0)
|
|
3824
3838
|
]),
|
|
3825
3839
|
_: 2
|
|
@@ -3829,26 +3843,26 @@ ${g.value}
|
|
|
3829
3843
|
e.query ? void 0 : {
|
|
3830
3844
|
name: "empty-state-action-icon",
|
|
3831
3845
|
fn: x(() => [
|
|
3832
|
-
|
|
3846
|
+
F(m(Qt))
|
|
3833
3847
|
]),
|
|
3834
3848
|
key: "1"
|
|
3835
3849
|
}
|
|
3836
3850
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
3837
3851
|
b.$slots["outside-actions"] && m(E) ? (d(), T("div", el, [
|
|
3838
|
-
|
|
3839
|
-
])) :
|
|
3852
|
+
H(b.$slots, "outside-actions", {}, void 0, !0)
|
|
3853
|
+
])) : R("", !0)
|
|
3840
3854
|
]),
|
|
3841
3855
|
_: 3
|
|
3842
3856
|
}, 8, ["title", "title-tag"]);
|
|
3843
3857
|
};
|
|
3844
3858
|
}
|
|
3845
|
-
}),
|
|
3859
|
+
}), wc = /* @__PURE__ */ le(tl, [["__scopeId", "data-v-09e101d4"]]), nl = {
|
|
3846
3860
|
key: 0,
|
|
3847
3861
|
class: "kong-ui-entity-delete-error"
|
|
3848
3862
|
}, il = {
|
|
3849
3863
|
key: 1,
|
|
3850
3864
|
class: "description"
|
|
3851
|
-
}, rl = /* @__PURE__ */
|
|
3865
|
+
}, rl = /* @__PURE__ */ te({
|
|
3852
3866
|
__name: "EntityDeleteModal",
|
|
3853
3867
|
props: {
|
|
3854
3868
|
visible: {
|
|
@@ -3899,7 +3913,7 @@ ${g.value}
|
|
|
3899
3913
|
},
|
|
3900
3914
|
emits: ["cancel", "proceed"],
|
|
3901
3915
|
setup(e, { emit: t }) {
|
|
3902
|
-
const { i18nT: n } =
|
|
3916
|
+
const { i18nT: n } = G.useI18n(), i = e, r = t, a = A(
|
|
3903
3917
|
() => i.entityTypeDisplay.trim() !== "" ? i.entityTypeDisplay : i.entityType
|
|
3904
3918
|
), o = A(() => i.needConfirm ? i.entityName : ""), l = () => {
|
|
3905
3919
|
r("cancel");
|
|
@@ -3907,12 +3921,12 @@ ${g.value}
|
|
|
3907
3921
|
r("proceed");
|
|
3908
3922
|
};
|
|
3909
3923
|
return (s, y) => {
|
|
3910
|
-
const u =
|
|
3924
|
+
const u = L("KAlert"), k = L("KPrompt");
|
|
3911
3925
|
return d(), I(k, {
|
|
3912
3926
|
"action-button-appearance": "danger",
|
|
3913
3927
|
"action-button-disabled": e.actionPending,
|
|
3914
3928
|
"action-button-text": "Yes, delete",
|
|
3915
|
-
class:
|
|
3929
|
+
class: de(["kong-ui-entity-delete-modal", { "kong-ui-entity-delete-modal-stacked-copy": e.stackedCopy }]),
|
|
3916
3930
|
"confirmation-prompt": e.confirmationPrompt || void 0,
|
|
3917
3931
|
"confirmation-text": o.value,
|
|
3918
3932
|
"data-testid": "entity-delete-modal",
|
|
@@ -3922,49 +3936,49 @@ ${g.value}
|
|
|
3922
3936
|
onProceed: c
|
|
3923
3937
|
}, {
|
|
3924
3938
|
default: x(() => [
|
|
3925
|
-
|
|
3926
|
-
class:
|
|
3939
|
+
B("div", {
|
|
3940
|
+
class: de(["body", { "body-stacked-copy": e.stackedCopy }])
|
|
3927
3941
|
}, [
|
|
3928
3942
|
e.error ? (d(), T("div", nl, [
|
|
3929
|
-
|
|
3943
|
+
F(u, { appearance: "danger" }, {
|
|
3930
3944
|
default: x(() => [
|
|
3931
|
-
|
|
3945
|
+
P(w(e.error), 1)
|
|
3932
3946
|
]),
|
|
3933
3947
|
_: 1
|
|
3934
3948
|
})
|
|
3935
|
-
])) :
|
|
3936
|
-
|
|
3937
|
-
|
|
3949
|
+
])) : R("", !0),
|
|
3950
|
+
H(s.$slots, "message", {}, () => [
|
|
3951
|
+
F(m(n), {
|
|
3938
3952
|
class: "message",
|
|
3939
3953
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3940
3954
|
tag: "p"
|
|
3941
|
-
},
|
|
3955
|
+
}, Ee({
|
|
3942
3956
|
entityType: x(() => [
|
|
3943
|
-
|
|
3957
|
+
P(w(a.value), 1)
|
|
3944
3958
|
]),
|
|
3945
3959
|
_: 2
|
|
3946
3960
|
}, [
|
|
3947
3961
|
i.entityName ? {
|
|
3948
3962
|
name: "entityName",
|
|
3949
3963
|
fn: x(() => [
|
|
3950
|
-
|
|
3964
|
+
B("strong", null, w(i.entityName), 1)
|
|
3951
3965
|
]),
|
|
3952
3966
|
key: "0"
|
|
3953
3967
|
} : void 0
|
|
3954
3968
|
]), 1032, ["keypath"])
|
|
3955
3969
|
], !0),
|
|
3956
3970
|
i.description || s.$slots.description ? (d(), T("div", il, [
|
|
3957
|
-
|
|
3958
|
-
|
|
3971
|
+
H(s.$slots, "description", {}, () => [
|
|
3972
|
+
B("p", null, w(i.description), 1)
|
|
3959
3973
|
], !0)
|
|
3960
|
-
])) :
|
|
3974
|
+
])) : R("", !0)
|
|
3961
3975
|
], 2)
|
|
3962
3976
|
]),
|
|
3963
3977
|
_: 3
|
|
3964
3978
|
}, 8, ["action-button-disabled", "class", "confirmation-prompt", "confirmation-text", "title", "visible"]);
|
|
3965
3979
|
};
|
|
3966
3980
|
}
|
|
3967
|
-
}),
|
|
3981
|
+
}), _c = /* @__PURE__ */ le(rl, [["__scopeId", "data-v-fc366e0c"]]), ol = {
|
|
3968
3982
|
fill: "none",
|
|
3969
3983
|
height: "20",
|
|
3970
3984
|
viewBox: "0 0 20 20",
|
|
@@ -3978,7 +3992,7 @@ ${g.value}
|
|
|
3978
3992
|
width: "20",
|
|
3979
3993
|
x: "0",
|
|
3980
3994
|
y: "0"
|
|
3981
|
-
}, ll = ["fill"], cl = { mask: "url(#mask0_180_20349)" }, sl = ["fill"],
|
|
3995
|
+
}, ll = ["fill"], cl = { mask: "url(#mask0_180_20349)" }, sl = ["fill"], zt = /* @__PURE__ */ te({
|
|
3982
3996
|
__name: "IconFilter",
|
|
3983
3997
|
props: {
|
|
3984
3998
|
color: {
|
|
@@ -3988,15 +4002,15 @@ ${g.value}
|
|
|
3988
4002
|
},
|
|
3989
4003
|
setup(e) {
|
|
3990
4004
|
return (t, n) => (d(), T("svg", ol, [
|
|
3991
|
-
|
|
3992
|
-
|
|
4005
|
+
B("mask", al, [
|
|
4006
|
+
B("rect", {
|
|
3993
4007
|
fill: e.color,
|
|
3994
4008
|
height: "20",
|
|
3995
4009
|
width: "20"
|
|
3996
4010
|
}, null, 8, ll)
|
|
3997
4011
|
]),
|
|
3998
|
-
|
|
3999
|
-
|
|
4012
|
+
B("g", cl, [
|
|
4013
|
+
B("path", {
|
|
4000
4014
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4001
4015
|
fill: e.color
|
|
4002
4016
|
}, null, 8, sl)
|
|
@@ -4006,7 +4020,7 @@ ${g.value}
|
|
|
4006
4020
|
}), ul = {
|
|
4007
4021
|
key: 1,
|
|
4008
4022
|
class: "kong-ui-entity-filter"
|
|
4009
|
-
}, dl = { class: "kong-ui-entity-filter-menu" }, fl = ["data-testid"], pl = ["onClick", "onKeydown"], ml = { class: "menu-item-indicator" }, yl = { class: "menu-item-body" }, gl = ["for"], vl = { class: "menu-item-buttons" }, hl = { class: "filter-clear-button-container" }, bl = /* @__PURE__ */
|
|
4023
|
+
}, dl = { class: "kong-ui-entity-filter-menu" }, fl = ["data-testid"], pl = ["onClick", "onKeydown"], ml = { class: "menu-item-indicator" }, yl = { class: "menu-item-body" }, gl = ["for"], vl = { class: "menu-item-buttons" }, hl = { class: "filter-clear-button-container" }, bl = /* @__PURE__ */ te({
|
|
4010
4024
|
__name: "EntityFilter",
|
|
4011
4025
|
props: {
|
|
4012
4026
|
// filter config, either exact match or fuzzy match
|
|
@@ -4026,7 +4040,7 @@ ${g.value}
|
|
|
4026
4040
|
},
|
|
4027
4041
|
emits: ["update:modelValue"],
|
|
4028
4042
|
setup(e, { emit: t }) {
|
|
4029
|
-
const { i18n: { t: n } } =
|
|
4043
|
+
const { i18n: { t: n } } = G.useI18n(), i = e, r = t, a = N(!1), o = N({}), l = N(/* @__PURE__ */ new Set()), c = A(() => {
|
|
4030
4044
|
const v = [];
|
|
4031
4045
|
return new URLSearchParams(i.modelValue).forEach((O, b) => {
|
|
4032
4046
|
O !== "" && v.push(b);
|
|
@@ -4042,7 +4056,7 @@ ${g.value}
|
|
|
4042
4056
|
expanded: !1
|
|
4043
4057
|
}));
|
|
4044
4058
|
});
|
|
4045
|
-
|
|
4059
|
+
Ce(() => i.modelValue, (v) => {
|
|
4046
4060
|
o.value = {}, new URLSearchParams(v).forEach((O, b) => {
|
|
4047
4061
|
o.value[b] = O;
|
|
4048
4062
|
});
|
|
@@ -4071,18 +4085,18 @@ ${g.value}
|
|
|
4071
4085
|
}, C = (v = !1) => {
|
|
4072
4086
|
const O = Object.keys(o.value).reduce((b, S) => (o.value[S] && (b[S] = `${o.value[S]}`), b), {});
|
|
4073
4087
|
v && (a.value = !1), r("update:modelValue", new URLSearchParams(O).toString());
|
|
4074
|
-
},
|
|
4088
|
+
}, M = (v) => {
|
|
4075
4089
|
var O, b;
|
|
4076
4090
|
return !!((b = (O = i.config.schema) == null ? void 0 : O[v]) != null && b.filterFunction);
|
|
4077
|
-
},
|
|
4091
|
+
}, j = (v, O) => {
|
|
4078
4092
|
var S;
|
|
4079
4093
|
const b = (S = i.config.schema) == null ? void 0 : S[v];
|
|
4080
4094
|
return (b == null ? void 0 : b.filterFunction) === void 0 ? !0 : b.filterFunction(O);
|
|
4081
|
-
},
|
|
4095
|
+
}, X = (v, O) => {
|
|
4082
4096
|
o.value[v] = O ? O.custom ? String(O.label) : String(O.value) : "";
|
|
4083
4097
|
};
|
|
4084
4098
|
return (v, O) => {
|
|
4085
|
-
const b =
|
|
4099
|
+
const b = L("KInput"), S = L("KButton"), J = L("KSelect");
|
|
4086
4100
|
return e.config.isExactMatch ? (d(), I(b, {
|
|
4087
4101
|
key: 0,
|
|
4088
4102
|
autocomplete: "off",
|
|
@@ -4093,135 +4107,135 @@ ${g.value}
|
|
|
4093
4107
|
"onUpdate:modelValue": k
|
|
4094
4108
|
}, {
|
|
4095
4109
|
before: x(() => [
|
|
4096
|
-
|
|
4110
|
+
F(zt)
|
|
4097
4111
|
]),
|
|
4098
4112
|
after: x(() => [
|
|
4099
|
-
|
|
4113
|
+
Ie(F(m(Ai), {
|
|
4100
4114
|
class: "kong-ui-entity-filter-clear",
|
|
4101
4115
|
role: "button",
|
|
4102
4116
|
tabindex: "0",
|
|
4103
4117
|
onClick: h
|
|
4104
4118
|
}, null, 512), [
|
|
4105
|
-
[
|
|
4119
|
+
[Oe, e.modelValue !== ""]
|
|
4106
4120
|
])
|
|
4107
4121
|
]),
|
|
4108
4122
|
_: 1
|
|
4109
4123
|
}, 8, ["model-value", "placeholder"])) : (d(), T("div", ul, [
|
|
4110
|
-
|
|
4124
|
+
F(S, {
|
|
4111
4125
|
appearance: "tertiary",
|
|
4112
4126
|
"data-testid": "filter-button",
|
|
4113
4127
|
onClick: y
|
|
4114
4128
|
}, {
|
|
4115
4129
|
default: x(() => [
|
|
4116
|
-
|
|
4117
|
-
|
|
4130
|
+
F(zt),
|
|
4131
|
+
P(" " + w(m(n)("filter.filterButtonText")) + " " + w(c.value.length > 0 ? `(${c.value.length})` : ""), 1)
|
|
4118
4132
|
]),
|
|
4119
4133
|
_: 1
|
|
4120
4134
|
}),
|
|
4121
|
-
|
|
4135
|
+
Ie(B("div", {
|
|
4122
4136
|
class: "kong-ui-entity-filter-backdrop",
|
|
4123
4137
|
onClick: y
|
|
4124
4138
|
}, null, 512), [
|
|
4125
|
-
[
|
|
4139
|
+
[Oe, a.value]
|
|
4126
4140
|
]),
|
|
4127
|
-
|
|
4128
|
-
(d(!0), T(
|
|
4129
|
-
var V,
|
|
4141
|
+
Ie(B("div", dl, [
|
|
4142
|
+
(d(!0), T(se, null, be(s.value, (z) => {
|
|
4143
|
+
var V, Y, ne, xe;
|
|
4130
4144
|
return d(), T("div", {
|
|
4131
|
-
key:
|
|
4145
|
+
key: z.value,
|
|
4132
4146
|
class: "kong-ui-entity-filter-menu-item",
|
|
4133
|
-
"data-testid":
|
|
4147
|
+
"data-testid": z.value
|
|
4134
4148
|
}, [
|
|
4135
|
-
|
|
4136
|
-
class:
|
|
4149
|
+
B("span", {
|
|
4150
|
+
class: de(["menu-item-title", { expanded: l.value.has(z.value) }]),
|
|
4137
4151
|
role: "button",
|
|
4138
4152
|
tabindex: "0",
|
|
4139
|
-
onClick: (
|
|
4140
|
-
onKeydown: Wt((
|
|
4153
|
+
onClick: (ye) => u(z.value),
|
|
4154
|
+
onKeydown: Wt((ye) => u(z.value), ["enter"])
|
|
4141
4155
|
}, [
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
[
|
|
4156
|
+
P(w(z.label) + " ", 1),
|
|
4157
|
+
Ie(B("span", ml, null, 512), [
|
|
4158
|
+
[Oe, c.value.includes(z.value)]
|
|
4145
4159
|
]),
|
|
4146
|
-
|
|
4147
|
-
class:
|
|
4160
|
+
F(m(Si), {
|
|
4161
|
+
class: de(["menu-item-expand-icon", { expanded: l.value.has(z.value) }]),
|
|
4148
4162
|
color: m(Ni)
|
|
4149
4163
|
}, null, 8, ["class", "color"])
|
|
4150
4164
|
], 42, pl),
|
|
4151
|
-
|
|
4152
|
-
|
|
4165
|
+
Ie(B("div", yl, [
|
|
4166
|
+
B("label", {
|
|
4153
4167
|
class: "menu-item-label",
|
|
4154
|
-
for: _(
|
|
4168
|
+
for: _(z.value)
|
|
4155
4169
|
}, w(m(n)("filter.fieldLabel")), 9, gl),
|
|
4156
|
-
((
|
|
4170
|
+
((Y = (V = e.config.schema) == null ? void 0 : V[z.value]) == null ? void 0 : Y.type) === "select" ? (d(), I(J, {
|
|
4157
4171
|
key: 0,
|
|
4158
|
-
id: _(
|
|
4159
|
-
"enable-filtering":
|
|
4160
|
-
"enable-item-creation": (
|
|
4161
|
-
"filter-function": (
|
|
4162
|
-
items: g(
|
|
4163
|
-
"model-value": o.value[
|
|
4172
|
+
id: _(z.value),
|
|
4173
|
+
"enable-filtering": M(z.value),
|
|
4174
|
+
"enable-item-creation": (xe = (ne = e.config.schema) == null ? void 0 : ne[z.value]) == null ? void 0 : xe.enableItemCreation,
|
|
4175
|
+
"filter-function": (ye) => j(z.value, ye),
|
|
4176
|
+
items: g(z.value),
|
|
4177
|
+
"model-value": o.value[z.value],
|
|
4164
4178
|
placeholder: m(n)("filter.selectPlaceholder"),
|
|
4165
|
-
onChange: (
|
|
4179
|
+
onChange: (ye) => X(z.value, ye)
|
|
4166
4180
|
}, null, 8, ["id", "enable-filtering", "enable-item-creation", "filter-function", "items", "model-value", "placeholder", "onChange"])) : (d(), I(b, {
|
|
4167
4181
|
key: 1,
|
|
4168
|
-
id: _(
|
|
4169
|
-
modelValue: o.value[
|
|
4170
|
-
"onUpdate:modelValue": (
|
|
4182
|
+
id: _(z.value),
|
|
4183
|
+
modelValue: o.value[z.value],
|
|
4184
|
+
"onUpdate:modelValue": (ye) => o.value[z.value] = ye,
|
|
4171
4185
|
autocomplete: "off",
|
|
4172
4186
|
placeholder: m(n)("filter.inputPlaceholder"),
|
|
4173
|
-
type: p(
|
|
4187
|
+
type: p(z.value)
|
|
4174
4188
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4175
4189
|
], 512), [
|
|
4176
|
-
[
|
|
4190
|
+
[Oe, l.value.has(z.value)]
|
|
4177
4191
|
]),
|
|
4178
|
-
|
|
4179
|
-
|
|
4192
|
+
Ie(B("div", vl, [
|
|
4193
|
+
F(S, {
|
|
4180
4194
|
appearance: "tertiary",
|
|
4181
4195
|
"data-testid": "apply-filter",
|
|
4182
4196
|
size: "small",
|
|
4183
|
-
onClick: O[0] || (O[0] = (
|
|
4197
|
+
onClick: O[0] || (O[0] = (ye) => C(!0))
|
|
4184
4198
|
}, {
|
|
4185
4199
|
default: x(() => [
|
|
4186
|
-
|
|
4200
|
+
P(w(m(n)("filter.applyButtonText")), 1)
|
|
4187
4201
|
]),
|
|
4188
4202
|
_: 1
|
|
4189
4203
|
}),
|
|
4190
|
-
|
|
4204
|
+
F(S, {
|
|
4191
4205
|
appearance: "tertiary",
|
|
4192
4206
|
"data-testid": "clear-filter",
|
|
4193
4207
|
size: "small",
|
|
4194
|
-
onClick: (
|
|
4208
|
+
onClick: (ye) => E(z.value)
|
|
4195
4209
|
}, {
|
|
4196
4210
|
default: x(() => [
|
|
4197
|
-
|
|
4211
|
+
P(w(m(n)("filter.clearButtonText")), 1)
|
|
4198
4212
|
]),
|
|
4199
4213
|
_: 1
|
|
4200
4214
|
}, 8, ["onClick"])
|
|
4201
4215
|
], 512), [
|
|
4202
|
-
[
|
|
4216
|
+
[Oe, l.value.has(z.value)]
|
|
4203
4217
|
])
|
|
4204
4218
|
], 8, fl);
|
|
4205
4219
|
}), 128)),
|
|
4206
|
-
|
|
4207
|
-
|
|
4220
|
+
B("div", hl, [
|
|
4221
|
+
F(S, {
|
|
4208
4222
|
appearance: "tertiary",
|
|
4209
4223
|
size: "small",
|
|
4210
4224
|
onClick: f
|
|
4211
4225
|
}, {
|
|
4212
4226
|
default: x(() => [
|
|
4213
|
-
|
|
4227
|
+
P(w(m(n)("filter.clearAllButtonText")), 1)
|
|
4214
4228
|
]),
|
|
4215
4229
|
_: 1
|
|
4216
4230
|
})
|
|
4217
4231
|
])
|
|
4218
4232
|
], 512), [
|
|
4219
|
-
[
|
|
4233
|
+
[Oe, a.value]
|
|
4220
4234
|
])
|
|
4221
4235
|
]));
|
|
4222
4236
|
};
|
|
4223
4237
|
}
|
|
4224
|
-
}),
|
|
4238
|
+
}), $c = /* @__PURE__ */ le(bl, [["__scopeId", "data-v-992d4ff3"]]), Ec = /* @__PURE__ */ te({
|
|
4225
4239
|
__name: "EntityToggleModal",
|
|
4226
4240
|
props: {
|
|
4227
4241
|
visible: {
|
|
@@ -4253,7 +4267,7 @@ ${g.value}
|
|
|
4253
4267
|
},
|
|
4254
4268
|
emits: ["cancel", "proceed"],
|
|
4255
4269
|
setup(e, { emit: t }) {
|
|
4256
|
-
const { i18n: { t: n }, i18nT: i } =
|
|
4270
|
+
const { i18n: { t: n }, i18nT: i } = G.useI18n(), r = e, a = t, o = N(!1), l = A(
|
|
4257
4271
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4258
4272
|
), c = A(
|
|
4259
4273
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
@@ -4270,9 +4284,9 @@ ${g.value}
|
|
|
4270
4284
|
}
|
|
4271
4285
|
};
|
|
4272
4286
|
return (u, k) => {
|
|
4273
|
-
const h =
|
|
4287
|
+
const h = L("KPrompt");
|
|
4274
4288
|
return d(), I(Yt, { to: "body" }, [
|
|
4275
|
-
|
|
4289
|
+
F(h, {
|
|
4276
4290
|
"action-button-disabled": o.value,
|
|
4277
4291
|
"action-button-text": c.value,
|
|
4278
4292
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
@@ -4282,15 +4296,15 @@ ${g.value}
|
|
|
4282
4296
|
onProceed: y
|
|
4283
4297
|
}, {
|
|
4284
4298
|
default: x(() => [
|
|
4285
|
-
|
|
4299
|
+
F(m(i), {
|
|
4286
4300
|
keypath: `toggleModal.${r.action}.message`,
|
|
4287
4301
|
scope: "global"
|
|
4288
4302
|
}, {
|
|
4289
4303
|
entityType: x(() => [
|
|
4290
|
-
|
|
4304
|
+
P(w(e.entityType), 1)
|
|
4291
4305
|
]),
|
|
4292
4306
|
entityName: x(() => [
|
|
4293
|
-
|
|
4307
|
+
B("strong", null, w(e.entityName), 1)
|
|
4294
4308
|
]),
|
|
4295
4309
|
_: 1
|
|
4296
4310
|
}, 8, ["keypath"])
|
|
@@ -4300,7 +4314,7 @@ ${g.value}
|
|
|
4300
4314
|
]);
|
|
4301
4315
|
};
|
|
4302
4316
|
}
|
|
4303
|
-
}),
|
|
4317
|
+
}), Ic = /* @__PURE__ */ te({
|
|
4304
4318
|
__name: "PermissionsWrapper",
|
|
4305
4319
|
props: {
|
|
4306
4320
|
/**
|
|
@@ -4322,19 +4336,19 @@ ${g.value}
|
|
|
4322
4336
|
}
|
|
4323
4337
|
},
|
|
4324
4338
|
setup(e) {
|
|
4325
|
-
const t = e, n =
|
|
4326
|
-
return
|
|
4339
|
+
const t = e, n = N(void 0), i = A(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4340
|
+
return Ce(() => t.authFunction, async () => {
|
|
4327
4341
|
n.value = await t.authFunction();
|
|
4328
|
-
}, { immediate: !0 }), (r, a) => i.value ?
|
|
4342
|
+
}, { immediate: !0 }), (r, a) => i.value ? H(r.$slots, "default", {
|
|
4329
4343
|
key: 0,
|
|
4330
4344
|
isAllowed: n.value
|
|
4331
|
-
}) :
|
|
4345
|
+
}) : R("", !0);
|
|
4332
4346
|
}
|
|
4333
|
-
}),
|
|
4347
|
+
}), ce = [];
|
|
4334
4348
|
for (let e = 0; e < 256; ++e)
|
|
4335
|
-
|
|
4349
|
+
ce.push((e + 256).toString(16).slice(1));
|
|
4336
4350
|
function kl(e, t = 0) {
|
|
4337
|
-
return (
|
|
4351
|
+
return (ce[e[t + 0]] + ce[e[t + 1]] + ce[e[t + 2]] + ce[e[t + 3]] + "-" + ce[e[t + 4]] + ce[e[t + 5]] + "-" + ce[e[t + 6]] + ce[e[t + 7]] + "-" + ce[e[t + 8]] + ce[e[t + 9]] + "-" + ce[e[t + 10]] + ce[e[t + 11]] + ce[e[t + 12]] + ce[e[t + 13]] + ce[e[t + 14]] + ce[e[t + 15]]).toLowerCase();
|
|
4338
4352
|
}
|
|
4339
4353
|
const Cl = new Uint8Array(16);
|
|
4340
4354
|
function xl() {
|
|
@@ -4357,7 +4371,7 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4357
4371
|
}, $l = {
|
|
4358
4372
|
key: 2,
|
|
4359
4373
|
class: "form-section-footer"
|
|
4360
|
-
}, El = { class: "form-section-content" }, Il = /* @__PURE__ */
|
|
4374
|
+
}, El = { class: "form-section-content" }, Il = /* @__PURE__ */ te({
|
|
4361
4375
|
__name: "EntityFormSection",
|
|
4362
4376
|
props: {
|
|
4363
4377
|
title: {
|
|
@@ -4386,43 +4400,43 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4386
4400
|
}
|
|
4387
4401
|
},
|
|
4388
4402
|
setup(e) {
|
|
4389
|
-
const t =
|
|
4403
|
+
const t = Ve(), n = Al();
|
|
4390
4404
|
return (i, r) => (d(), T("div", {
|
|
4391
4405
|
"aria-labelledby": e.title ? m(n) : void 0,
|
|
4392
|
-
class:
|
|
4406
|
+
class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4393
4407
|
role: "group"
|
|
4394
4408
|
}, [
|
|
4395
|
-
|
|
4396
|
-
e.hideInfoHeader ?
|
|
4409
|
+
B("div", wl, [
|
|
4410
|
+
e.hideInfoHeader ? R("", !0) : (d(), T("div", {
|
|
4397
4411
|
key: 0,
|
|
4398
|
-
class:
|
|
4412
|
+
class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4399
4413
|
}, [
|
|
4400
|
-
e.title ? (d(), I(
|
|
4414
|
+
e.title ? (d(), I(Ne(e.titleTag), {
|
|
4401
4415
|
key: 0,
|
|
4402
4416
|
id: m(n),
|
|
4403
4417
|
class: "form-section-title"
|
|
4404
4418
|
}, {
|
|
4405
4419
|
default: x(() => [
|
|
4406
|
-
|
|
4420
|
+
P(w(e.title), 1)
|
|
4407
4421
|
]),
|
|
4408
4422
|
_: 1
|
|
4409
|
-
}, 8, ["id"])) :
|
|
4423
|
+
}, 8, ["id"])) : R("", !0),
|
|
4410
4424
|
e.description || m(t).description ? (d(), T("div", _l, [
|
|
4411
|
-
|
|
4412
|
-
|
|
4425
|
+
H(i.$slots, "description", {}, () => [
|
|
4426
|
+
B("p", null, w(e.description), 1)
|
|
4413
4427
|
], !0)
|
|
4414
|
-
])) :
|
|
4428
|
+
])) : R("", !0),
|
|
4415
4429
|
m(t).footer ? (d(), T("div", $l, [
|
|
4416
|
-
|
|
4417
|
-
])) :
|
|
4430
|
+
H(i.$slots, "footer", {}, void 0, !0)
|
|
4431
|
+
])) : R("", !0)
|
|
4418
4432
|
], 2)),
|
|
4419
|
-
|
|
4420
|
-
|
|
4433
|
+
B("div", El, [
|
|
4434
|
+
H(i.$slots, "default", {}, void 0, !0)
|
|
4421
4435
|
])
|
|
4422
4436
|
])
|
|
4423
4437
|
], 10, Tl));
|
|
4424
4438
|
}
|
|
4425
|
-
}),
|
|
4439
|
+
}), Oc = /* @__PURE__ */ le(Il, [["__scopeId", "data-v-ccd29028"]]), Ol = { class: "header" }, Fl = {
|
|
4426
4440
|
key: 0,
|
|
4427
4441
|
class: "step",
|
|
4428
4442
|
"data-testid": "form-block-step"
|
|
@@ -4440,7 +4454,7 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4440
4454
|
}, Dl = {
|
|
4441
4455
|
class: "content",
|
|
4442
4456
|
"data-testid": "form-block-content"
|
|
4443
|
-
}, Nl = /* @__PURE__ */
|
|
4457
|
+
}, Nl = /* @__PURE__ */ te({
|
|
4444
4458
|
__name: "EntityFormBlock",
|
|
4445
4459
|
props: {
|
|
4446
4460
|
step: { default: () => {
|
|
@@ -4449,46 +4463,46 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4449
4463
|
description: { default: "" }
|
|
4450
4464
|
},
|
|
4451
4465
|
setup(e) {
|
|
4452
|
-
const t =
|
|
4466
|
+
const t = Ve();
|
|
4453
4467
|
return (n, i) => (d(), T("div", {
|
|
4454
|
-
class:
|
|
4468
|
+
class: de(["kong-ui-entity-form-block", {
|
|
4455
4469
|
stepped: e.step !== void 0 || t.step
|
|
4456
4470
|
}])
|
|
4457
4471
|
}, [
|
|
4458
|
-
|
|
4472
|
+
B("header", Ol, [
|
|
4459
4473
|
e.step !== void 0 || t.step ? (d(), T("div", Fl, [
|
|
4460
|
-
|
|
4461
|
-
|
|
4474
|
+
H(n.$slots, "step", {}, () => [
|
|
4475
|
+
P(w(e.step), 1)
|
|
4462
4476
|
], !0)
|
|
4463
|
-
])) :
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4477
|
+
])) : R("", !0),
|
|
4478
|
+
B("div", Bl, [
|
|
4479
|
+
B("h2", Kl, [
|
|
4480
|
+
H(n.$slots, "title", {}, () => [
|
|
4481
|
+
P(w(e.title), 1)
|
|
4468
4482
|
], !0)
|
|
4469
4483
|
]),
|
|
4470
4484
|
e.description || t.description ? (d(), T("div", Rl, [
|
|
4471
|
-
|
|
4472
|
-
|
|
4485
|
+
H(n.$slots, "description", {}, () => [
|
|
4486
|
+
P(w(e.description), 1)
|
|
4473
4487
|
], !0)
|
|
4474
|
-
])) :
|
|
4488
|
+
])) : R("", !0)
|
|
4475
4489
|
]),
|
|
4476
4490
|
t.extra ? (d(), T("div", Ll, [
|
|
4477
|
-
|
|
4478
|
-
])) :
|
|
4491
|
+
H(n.$slots, "extra", {}, void 0, !0)
|
|
4492
|
+
])) : R("", !0)
|
|
4479
4493
|
]),
|
|
4480
|
-
|
|
4481
|
-
|
|
4494
|
+
B("div", Dl, [
|
|
4495
|
+
H(n.$slots, "default", {}, void 0, !0)
|
|
4482
4496
|
])
|
|
4483
4497
|
], 2));
|
|
4484
4498
|
}
|
|
4485
|
-
}),
|
|
4499
|
+
}), Fc = /* @__PURE__ */ le(Nl, [["__scopeId", "data-v-8e48a559"]]), Pl = {
|
|
4486
4500
|
class: "kong-ui-public-entity-link",
|
|
4487
4501
|
"data-testid": "entity-link-parent"
|
|
4488
4502
|
}, Ml = {
|
|
4489
4503
|
key: 0,
|
|
4490
4504
|
class: "deleted-entity"
|
|
4491
|
-
}, jl = { key: 1 }, ql = ["onClick"], Ul = /* @__PURE__ */
|
|
4505
|
+
}, jl = { key: 1 }, ql = ["onClick"], Ul = /* @__PURE__ */ te({
|
|
4492
4506
|
__name: "EntityLink",
|
|
4493
4507
|
props: {
|
|
4494
4508
|
entityLinkData: {
|
|
@@ -4512,7 +4526,7 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4512
4526
|
}
|
|
4513
4527
|
},
|
|
4514
4528
|
setup(e) {
|
|
4515
|
-
const t = e, n =
|
|
4529
|
+
const t = e, n = N(), { isTruncated: i } = G.useTruncationDetector(n), { i18n: { t: r } } = G.useI18n(), a = r("global.actions.copyId"), o = N(a), l = A(() => t.entityLinkData.deleted ?? !1), c = A(() => {
|
|
4516
4530
|
var u;
|
|
4517
4531
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4518
4532
|
}), s = A(() => {
|
|
@@ -4524,7 +4538,7 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4524
4538
|
}, 1800));
|
|
4525
4539
|
};
|
|
4526
4540
|
return (u, k) => {
|
|
4527
|
-
const h =
|
|
4541
|
+
const h = L("KTooltip"), _ = L("KExternalLink"), g = L("KClipboardProvider");
|
|
4528
4542
|
return d(), T("div", Pl, [
|
|
4529
4543
|
l.value ? (d(), T("div", Ml, w(s.value), 1)) : c.value ? c.value ? (d(), I(_, {
|
|
4530
4544
|
key: 2,
|
|
@@ -4534,11 +4548,11 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4534
4548
|
target: e.newWindow ? "_blank" : "_self"
|
|
4535
4549
|
}, {
|
|
4536
4550
|
default: x(() => [
|
|
4537
|
-
|
|
4551
|
+
F(h, {
|
|
4538
4552
|
text: m(i) && e.entityLinkData.label || ""
|
|
4539
4553
|
}, {
|
|
4540
4554
|
default: x(() => [
|
|
4541
|
-
|
|
4555
|
+
B("span", {
|
|
4542
4556
|
ref_key: "textContent",
|
|
4543
4557
|
ref: n,
|
|
4544
4558
|
class: "entity-link-label"
|
|
@@ -4548,7 +4562,7 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4548
4562
|
}, 8, ["text"])
|
|
4549
4563
|
]),
|
|
4550
4564
|
_: 1
|
|
4551
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4565
|
+
}, 8, ["hide-icon", "href", "target"])) : R("", !0) : (d(), T("div", jl, w(" – "))),
|
|
4552
4566
|
c.value && e.allowCopy ? (d(), I(h, {
|
|
4553
4567
|
key: o.value,
|
|
4554
4568
|
class: "copy-uuid-tooltip",
|
|
@@ -4557,13 +4571,13 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4557
4571
|
text: o.value
|
|
4558
4572
|
}, {
|
|
4559
4573
|
default: x(() => [
|
|
4560
|
-
|
|
4574
|
+
F(g, null, {
|
|
4561
4575
|
default: x(({ copyToClipboard: p }) => [
|
|
4562
|
-
|
|
4576
|
+
B("span", {
|
|
4563
4577
|
class: "entity-link-copy-id",
|
|
4564
|
-
onClick:
|
|
4578
|
+
onClick: je((E) => y(p), ["stop"])
|
|
4565
4579
|
}, [
|
|
4566
|
-
|
|
4580
|
+
F(m(Xt), {
|
|
4567
4581
|
class: "copy-icon",
|
|
4568
4582
|
color: m(Pi),
|
|
4569
4583
|
"data-testid": "copy-id",
|
|
@@ -4575,11 +4589,11 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4575
4589
|
})
|
|
4576
4590
|
]),
|
|
4577
4591
|
_: 1
|
|
4578
|
-
}, 8, ["text"])) :
|
|
4592
|
+
}, 8, ["text"])) : R("", !0)
|
|
4579
4593
|
]);
|
|
4580
4594
|
};
|
|
4581
4595
|
}
|
|
4582
|
-
}),
|
|
4596
|
+
}), Bc = /* @__PURE__ */ le(Ul, [["__scopeId", "data-v-a18d7efa"]]), Hl = { class: "kong-ui-public-entity-empty-state" }, zl = { class: "entity-empty-state-content" }, Vl = {
|
|
4583
4597
|
key: 0,
|
|
4584
4598
|
class: "empty-state-image"
|
|
4585
4599
|
}, Yl = {
|
|
@@ -4606,7 +4620,7 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4606
4620
|
}, ec = { class: "card-header" }, tc = ["title"], nc = {
|
|
4607
4621
|
key: 3,
|
|
4608
4622
|
class: "entity-empty-state-bottom-container"
|
|
4609
|
-
}, ic = /* @__PURE__ */
|
|
4623
|
+
}, ic = /* @__PURE__ */ te({
|
|
4610
4624
|
__name: "EntityEmptyState",
|
|
4611
4625
|
props: {
|
|
4612
4626
|
appearance: {
|
|
@@ -4647,46 +4661,46 @@ const Tl = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, _l = {
|
|
|
4647
4661
|
},
|
|
4648
4662
|
emits: ["click:create", "click:learn-more"],
|
|
4649
4663
|
setup(e) {
|
|
4650
|
-
const t = e, { i18n: { t: n } } =
|
|
4664
|
+
const t = e, { i18n: { t: n } } = G.useI18n(), i = N(!1), r = A(() => i.value && !!t.actionButtonText), a = A(() => Tt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4651
4665
|
return mt(async () => {
|
|
4652
4666
|
i.value = await t.canCreate();
|
|
4653
4667
|
}), et(() => ei(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4654
4668
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) => {
|
|
4655
|
-
const c =
|
|
4656
|
-
return d(), T("div",
|
|
4657
|
-
|
|
4669
|
+
const c = L("KCard");
|
|
4670
|
+
return d(), T("div", Hl, [
|
|
4671
|
+
B("div", zl, [
|
|
4658
4672
|
o.$slots.image ? (d(), T("div", Vl, [
|
|
4659
|
-
|
|
4660
|
-
])) :
|
|
4673
|
+
H(o.$slots, "image", {}, void 0, !0)
|
|
4674
|
+
])) : R("", !0),
|
|
4661
4675
|
e.title || o.$slots.title ? (d(), T("div", Yl, [
|
|
4662
|
-
|
|
4663
|
-
class:
|
|
4676
|
+
B("h1", {
|
|
4677
|
+
class: de(a.value)
|
|
4664
4678
|
}, [
|
|
4665
|
-
|
|
4666
|
-
|
|
4679
|
+
H(o.$slots, "title", {}, () => [
|
|
4680
|
+
P(w(e.title), 1)
|
|
4667
4681
|
], !0)
|
|
4668
4682
|
], 2)
|
|
4669
|
-
])) :
|
|
4683
|
+
])) : R("", !0),
|
|
4670
4684
|
e.description || o.$slots.default ? (d(), T("div", Wl, [
|
|
4671
|
-
|
|
4672
|
-
|
|
4685
|
+
H(o.$slots, "default", {}, () => [
|
|
4686
|
+
B("p", null, w(e.description), 1)
|
|
4673
4687
|
], !0)
|
|
4674
|
-
])) :
|
|
4688
|
+
])) : R("", !0),
|
|
4675
4689
|
e.pricing || o.$slots.pricing ? (d(), T("div", Gl, [
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
l[2] || (l[2] =
|
|
4679
|
-
|
|
4680
|
-
|
|
4690
|
+
B("p", null, [
|
|
4691
|
+
B("b", null, w(m(n)("emptyState.pricingTitle")), 1),
|
|
4692
|
+
l[2] || (l[2] = P()),
|
|
4693
|
+
H(o.$slots, "pricing", {}, () => [
|
|
4694
|
+
P(w(e.pricing), 1)
|
|
4681
4695
|
], !0)
|
|
4682
4696
|
])
|
|
4683
|
-
])) :
|
|
4697
|
+
])) : R("", !0)
|
|
4684
4698
|
]),
|
|
4685
4699
|
o.$slots.message ? (d(), T("div", Jl, [
|
|
4686
|
-
|
|
4687
|
-
])) :
|
|
4700
|
+
H(o.$slots, "message", {}, void 0, !0)
|
|
4701
|
+
])) : R("", !0),
|
|
4688
4702
|
r.value || e.learnMore || o.$slots.actions ? (d(), T("div", Ql, [
|
|
4689
|
-
|
|
4703
|
+
H(o.$slots, "actions", {}, () => [
|
|
4690
4704
|
r.value ? (d(), I(m(xt), {
|
|
4691
4705
|
key: 0,
|
|
4692
4706
|
appearance: "primary",
|
|
@@ -4695,11 +4709,11 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4695
4709
|
onClick: l[0] || (l[0] = (s) => o.$emit("click:create"))
|
|
4696
4710
|
}, {
|
|
4697
4711
|
default: x(() => [
|
|
4698
|
-
|
|
4699
|
-
|
|
4712
|
+
F(m(Qt)),
|
|
4713
|
+
P(" " + w(e.actionButtonText), 1)
|
|
4700
4714
|
]),
|
|
4701
4715
|
_: 1
|
|
4702
|
-
}, 8, ["size"])) :
|
|
4716
|
+
}, 8, ["size"])) : R("", !0),
|
|
4703
4717
|
e.learnMore ? (d(), I(m(xt), {
|
|
4704
4718
|
key: 1,
|
|
4705
4719
|
appearance: "secondary",
|
|
@@ -4708,43 +4722,43 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4708
4722
|
onClick: l[1] || (l[1] = (s) => o.$emit("click:learn-more"))
|
|
4709
4723
|
}, {
|
|
4710
4724
|
default: x(() => [
|
|
4711
|
-
|
|
4712
|
-
|
|
4725
|
+
F(m(Jt), { decorative: "" }),
|
|
4726
|
+
P(" " + w(m(n)("emptyState.learnMore")), 1)
|
|
4713
4727
|
]),
|
|
4714
4728
|
_: 1
|
|
4715
|
-
}, 8, ["size"])) :
|
|
4729
|
+
}, 8, ["size"])) : R("", !0)
|
|
4716
4730
|
], !0)
|
|
4717
|
-
])) :
|
|
4731
|
+
])) : R("", !0),
|
|
4718
4732
|
e.features.length ? (d(), T("div", Xl, [
|
|
4719
|
-
(d(!0), T(
|
|
4733
|
+
(d(!0), T(se, null, be(e.features, (s, y) => (d(), I(c, {
|
|
4720
4734
|
key: `feature-${y}-card`,
|
|
4721
4735
|
class: "entity-empty-state-card"
|
|
4722
4736
|
}, {
|
|
4723
4737
|
title: x(() => [
|
|
4724
4738
|
o.$slots[`feature-${y}-icon`] ? (d(), T("div", Zl, [
|
|
4725
|
-
|
|
4726
|
-
])) :
|
|
4727
|
-
|
|
4739
|
+
H(o.$slots, `feature-${y}-icon`, {}, void 0, !0)
|
|
4740
|
+
])) : R("", !0),
|
|
4741
|
+
B("div", ec, w(s.title), 1)
|
|
4728
4742
|
]),
|
|
4729
4743
|
default: x(() => [
|
|
4730
|
-
|
|
4744
|
+
B("div", {
|
|
4731
4745
|
title: s.description
|
|
4732
4746
|
}, w(s.description), 9, tc)
|
|
4733
4747
|
]),
|
|
4734
4748
|
_: 2
|
|
4735
4749
|
}, 1024))), 128))
|
|
4736
|
-
])) :
|
|
4750
|
+
])) : R("", !0),
|
|
4737
4751
|
o.$slots.bottom ? (d(), T("div", nc, [
|
|
4738
|
-
|
|
4739
|
-
])) :
|
|
4752
|
+
H(o.$slots, "bottom", {}, void 0, !0)
|
|
4753
|
+
])) : R("", !0)
|
|
4740
4754
|
]);
|
|
4741
4755
|
};
|
|
4742
4756
|
}
|
|
4743
|
-
}),
|
|
4757
|
+
}), Kc = /* @__PURE__ */ le(ic, [["__scopeId", "data-v-0b2e9081"]]), rc = {
|
|
4744
4758
|
key: 0,
|
|
4745
4759
|
class: "sensitive-input-hint",
|
|
4746
4760
|
"data-testid": "sensitive-input-hint"
|
|
4747
|
-
}, oc = { class: "sensitive-input-hint-text" }, ac = "••••••••••••••", lc = /* @__PURE__ */
|
|
4761
|
+
}, oc = { class: "sensitive-input-hint-text" }, ac = "••••••••••••••", lc = /* @__PURE__ */ te({
|
|
4748
4762
|
__name: "SensitiveInput",
|
|
4749
4763
|
props: {
|
|
4750
4764
|
modelValue: { default: "" },
|
|
@@ -4765,9 +4779,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4765
4779
|
emits: ["update:modelValue", "rotate", "generate", "generated"],
|
|
4766
4780
|
setup(e, { emit: t }) {
|
|
4767
4781
|
pt((v) => ({
|
|
4768
|
-
v2efc1ee6:
|
|
4782
|
+
v2efc1ee6: j.value
|
|
4769
4783
|
}));
|
|
4770
|
-
const n = t, { i18n: { t: i } } =
|
|
4784
|
+
const n = t, { i18n: { t: i } } = G.useI18n(), r = N(e.mode === "edit" ? "masked" : "editing"), a = N(!1), o = N(!1), l = A(() => r.value === "masked"), c = ac, s = A(() => e.placeholder ?? i("sensitiveInput.placeholder")), y = A(() => {
|
|
4771
4785
|
var v;
|
|
4772
4786
|
return ((v = e.labels) == null ? void 0 : v.rotateLabel) ?? i("sensitiveInput.rotateKey");
|
|
4773
4787
|
}), u = A(() => {
|
|
@@ -4777,7 +4791,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4777
4791
|
var v;
|
|
4778
4792
|
return ((v = e.labels) == null ? void 0 : v.hintLabel) ?? i("sensitiveInput.oneTimeHint");
|
|
4779
4793
|
}), h = A(() => l.value || a.value ? "text" : "password");
|
|
4780
|
-
|
|
4794
|
+
Ce(() => e.showOneTimeHint, (v) => {
|
|
4781
4795
|
v && (a.value = !0);
|
|
4782
4796
|
}, { immediate: !0 });
|
|
4783
4797
|
const _ = (v) => {
|
|
@@ -4797,28 +4811,28 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4797
4811
|
}
|
|
4798
4812
|
}
|
|
4799
4813
|
}, f = ti("rootElement");
|
|
4800
|
-
let C,
|
|
4801
|
-
const
|
|
4814
|
+
let C, M;
|
|
4815
|
+
const j = N(`calc(${_t} + ${Pe} + ${wt})`), X = () => {
|
|
4802
4816
|
var O;
|
|
4803
4817
|
const v = (O = f.value) == null ? void 0 : O.querySelector(".after-content-wrapper");
|
|
4804
|
-
v && (
|
|
4818
|
+
v && (j.value = `calc(${_t} + ${v.offsetWidth}px + ${wt})`);
|
|
4805
4819
|
};
|
|
4806
4820
|
return et(() => {
|
|
4807
4821
|
var O;
|
|
4808
4822
|
const v = (O = f.value) == null ? void 0 : O.querySelector(".after-content-wrapper");
|
|
4809
4823
|
C = new ResizeObserver(() => {
|
|
4810
|
-
|
|
4811
|
-
}), v && C.observe(v),
|
|
4824
|
+
M = window.requestAnimationFrame(() => X());
|
|
4825
|
+
}), v && C.observe(v), X();
|
|
4812
4826
|
}), ni(() => {
|
|
4813
|
-
C == null || C.disconnect(),
|
|
4827
|
+
C == null || C.disconnect(), M !== void 0 && window.cancelAnimationFrame(M);
|
|
4814
4828
|
}), (v, O) => {
|
|
4815
|
-
const b =
|
|
4829
|
+
const b = L("KButton"), S = L("KInput"), J = L("KClipboardProvider");
|
|
4816
4830
|
return d(), T("div", {
|
|
4817
4831
|
ref_key: "rootElement",
|
|
4818
4832
|
ref: f,
|
|
4819
4833
|
class: "kong-ui-public-sensitive-input"
|
|
4820
4834
|
}, [
|
|
4821
|
-
|
|
4835
|
+
F(S, {
|
|
4822
4836
|
autocomplete: "off",
|
|
4823
4837
|
"data-testid": "sensitive-input",
|
|
4824
4838
|
disabled: e.disabled,
|
|
@@ -4844,10 +4858,10 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4844
4858
|
onClick: g
|
|
4845
4859
|
}, {
|
|
4846
4860
|
default: x(() => [
|
|
4847
|
-
|
|
4861
|
+
P(w(y.value), 1)
|
|
4848
4862
|
]),
|
|
4849
4863
|
_: 1
|
|
4850
|
-
})) : (d(), T(
|
|
4864
|
+
})) : (d(), T(se, { key: 1 }, [
|
|
4851
4865
|
e.generator ? (d(), I(b, {
|
|
4852
4866
|
key: 0,
|
|
4853
4867
|
appearance: "tertiary",
|
|
@@ -4858,58 +4872,58 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4858
4872
|
onClick: E
|
|
4859
4873
|
}, {
|
|
4860
4874
|
default: x(() => [
|
|
4861
|
-
|
|
4875
|
+
P(w(u.value), 1)
|
|
4862
4876
|
]),
|
|
4863
4877
|
_: 1
|
|
4864
|
-
}, 8, ["disabled"])) :
|
|
4865
|
-
(d(), I(
|
|
4878
|
+
}, 8, ["disabled"])) : R("", !0),
|
|
4879
|
+
(d(), I(Ne(a.value ? m(Ti) : m(wi)), {
|
|
4866
4880
|
"aria-label": a.value ? m(i)("sensitiveInput.hideKey") : m(i)("sensitiveInput.showKey"),
|
|
4867
4881
|
class: "sensitive-input-toggle",
|
|
4868
4882
|
color: "currentColor",
|
|
4869
4883
|
"data-testid": "sensitive-input-toggle",
|
|
4870
4884
|
role: "button",
|
|
4871
|
-
size: m(
|
|
4885
|
+
size: m(Pe),
|
|
4872
4886
|
tabindex: "0",
|
|
4873
4887
|
onClick: p,
|
|
4874
|
-
onKeydown: Wt(
|
|
4888
|
+
onKeydown: Wt(je(p, ["prevent"]), ["enter", "space"])
|
|
4875
4889
|
}, null, 40, ["aria-label", "size", "onKeydown"]))
|
|
4876
4890
|
], 64))
|
|
4877
4891
|
]),
|
|
4878
4892
|
_: 1
|
|
4879
4893
|
}, 8, ["disabled", "error", "error-message", "help", "label", "label-attributes", "model-value", "placeholder", "readonly", "required", "type"]),
|
|
4880
4894
|
e.showOneTimeHint ? (d(), T("div", rc, [
|
|
4881
|
-
|
|
4895
|
+
F(m(Gt), {
|
|
4882
4896
|
class: "sensitive-input-hint-icon",
|
|
4883
4897
|
color: m(Di),
|
|
4884
|
-
size: m(
|
|
4898
|
+
size: m(Pe)
|
|
4885
4899
|
}, null, 8, ["color", "size"]),
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
default: x(({ copyToClipboard:
|
|
4889
|
-
|
|
4900
|
+
B("span", oc, w(k.value), 1),
|
|
4901
|
+
F(J, null, {
|
|
4902
|
+
default: x(({ copyToClipboard: z }) => [
|
|
4903
|
+
F(b, {
|
|
4890
4904
|
appearance: "none",
|
|
4891
4905
|
class: "sensitive-input-action sensitive-input-copy",
|
|
4892
4906
|
"data-testid": "sensitive-input-copy",
|
|
4893
4907
|
icon: !0,
|
|
4894
|
-
onClick: (V) =>
|
|
4908
|
+
onClick: (V) => z(e.modelValue)
|
|
4895
4909
|
}, {
|
|
4896
4910
|
default: x(() => [
|
|
4897
|
-
|
|
4911
|
+
F(m(Xt), {
|
|
4898
4912
|
color: "currentColor",
|
|
4899
|
-
size: m(
|
|
4913
|
+
size: m(Pe)
|
|
4900
4914
|
}, null, 8, ["size"]),
|
|
4901
|
-
|
|
4915
|
+
P(" " + w(m(i)("sensitiveInput.copy")), 1)
|
|
4902
4916
|
]),
|
|
4903
4917
|
_: 1
|
|
4904
4918
|
}, 8, ["onClick"])
|
|
4905
4919
|
]),
|
|
4906
4920
|
_: 1
|
|
4907
4921
|
})
|
|
4908
|
-
])) :
|
|
4922
|
+
])) : R("", !0)
|
|
4909
4923
|
], 512);
|
|
4910
4924
|
};
|
|
4911
4925
|
}
|
|
4912
|
-
}),
|
|
4926
|
+
}), Rc = /* @__PURE__ */ le(lc, [["__scopeId", "data-v-204fef12"]]), cc = { key: 1 }, Lc = /* @__PURE__ */ te({
|
|
4913
4927
|
__name: "TableTags",
|
|
4914
4928
|
props: {
|
|
4915
4929
|
/** The tags to display in the table */
|
|
@@ -4939,14 +4953,14 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4939
4953
|
var a;
|
|
4940
4954
|
return ((a = n.value) == null ? void 0 : a.length) > 0 ? (d(), I(m(fi), { key: 0 }, {
|
|
4941
4955
|
default: x(() => [
|
|
4942
|
-
(d(!0), T(
|
|
4956
|
+
(d(!0), T(se, null, be(n.value, (o) => (d(), I(m(pi), {
|
|
4943
4957
|
key: o,
|
|
4944
4958
|
"max-width": e.tagMaxWidth,
|
|
4945
|
-
onClick: r[0] || (r[0] =
|
|
4959
|
+
onClick: r[0] || (r[0] = je(() => {
|
|
4946
4960
|
}, ["stop"]))
|
|
4947
4961
|
}, {
|
|
4948
4962
|
default: x(() => [
|
|
4949
|
-
|
|
4963
|
+
P(w(o), 1)
|
|
4950
4964
|
]),
|
|
4951
4965
|
_: 2
|
|
4952
4966
|
}, 1032, ["max-width"]))), 128))
|
|
@@ -4955,61 +4969,62 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (o, l) =>
|
|
|
4955
4969
|
})) : (d(), T("span", cc, "-"));
|
|
4956
4970
|
};
|
|
4957
4971
|
}
|
|
4958
|
-
}), { useAxios:
|
|
4972
|
+
}), { useAxios: Dc, useDeleteUrlBuilder: Nc, useBaseEntityDeckOptions: Pc, useBaseFormDeckOptions: Mc, useErrors: jc, useExternalLinkCreator: qc, useFetchUrlBuilder: Uc, useFetcher: Hc, useFetcherCacheKey: zc, useDebouncedFilter: Vc, useStringHelpers: Yc, useHelpers: Wc, useGatewayFeatureSupported: Gc, useTruncationDetector: Jc, useValidators: Qc, useSchemaProvider: Xc, useTableState: Zc } = G;
|
|
4959
4973
|
export {
|
|
4960
4974
|
Tt as Appearances,
|
|
4975
|
+
Ac as BASE_FORM_CONFIG_TABS,
|
|
4961
4976
|
li as CONFIG_CARD_FORMATS,
|
|
4962
4977
|
Na as ConfigCardDisplay,
|
|
4963
4978
|
en as ConfigCardItem,
|
|
4964
|
-
|
|
4965
|
-
|
|
4979
|
+
ge as ConfigurationSchemaSection,
|
|
4980
|
+
ee as ConfigurationSchemaType,
|
|
4966
4981
|
oi as DECK_COMMAND_EDITOR_KEY,
|
|
4967
4982
|
ai as DECK_COMMAND_EDITOR_MISSING_WARNING,
|
|
4968
4983
|
Wn as DeckCodeBlock,
|
|
4969
|
-
|
|
4970
|
-
|
|
4984
|
+
Sc as EntityBaseConfigCard,
|
|
4985
|
+
Tc as EntityBaseForm,
|
|
4971
4986
|
Ei as EntityBaseFormType,
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4987
|
+
wc as EntityBaseTable,
|
|
4988
|
+
_c as EntityDeleteModal,
|
|
4989
|
+
Kc as EntityEmptyState,
|
|
4990
|
+
$c as EntityFilter,
|
|
4991
|
+
Fc as EntityFormBlock,
|
|
4992
|
+
Oc as EntityFormSection,
|
|
4993
|
+
Bc as EntityLink,
|
|
4994
|
+
Ec as EntityToggleModal,
|
|
4980
4995
|
$i as EntityTypes,
|
|
4981
4996
|
ii as EventGatewayTypesArray,
|
|
4982
|
-
|
|
4997
|
+
ns as FetcherStatus,
|
|
4983
4998
|
$a as GeneratePatModal,
|
|
4984
4999
|
ri as IdentityTypesArray,
|
|
4985
5000
|
Bi as InternalLinkItem,
|
|
4986
5001
|
tn as JsonCodeBlock,
|
|
4987
5002
|
ci as PLUGIN_FORM_LAYOUT_STATE,
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
5003
|
+
Ic as PermissionsWrapper,
|
|
5004
|
+
Rc as SensitiveInput,
|
|
5005
|
+
is as SupportedEntityDeckArray,
|
|
5006
|
+
_e as SupportedEntityType,
|
|
4992
5007
|
tt as SupportedEntityTypesArray,
|
|
4993
|
-
|
|
5008
|
+
Lc as TableTags,
|
|
4994
5009
|
Yn as TerraformCodeBlock,
|
|
4995
5010
|
Vn as YamlCodeBlock,
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5011
|
+
Le as highlightCodeBlock,
|
|
5012
|
+
rs as isSupportedDeckEntityType,
|
|
5013
|
+
Dc as useAxios,
|
|
5014
|
+
Pc as useBaseEntityDeckOptions,
|
|
5015
|
+
Mc as useBaseFormDeckOptions,
|
|
5016
|
+
Vc as useDebouncedFilter,
|
|
5017
|
+
Nc as useDeleteUrlBuilder,
|
|
5018
|
+
jc as useErrors,
|
|
5019
|
+
qc as useExternalLinkCreator,
|
|
5020
|
+
Uc as useFetchUrlBuilder,
|
|
5021
|
+
Hc as useFetcher,
|
|
5007
5022
|
zc as useFetcherCacheKey,
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5023
|
+
Gc as useGatewayFeatureSupported,
|
|
5024
|
+
Wc as useHelpers,
|
|
5025
|
+
Xc as useSchemaProvider,
|
|
5026
|
+
Yc as useStringHelpers,
|
|
5027
|
+
Zc as useTableState,
|
|
5028
|
+
Jc as useTruncationDetector,
|
|
5029
|
+
Qc as useValidators
|
|
5015
5030
|
};
|