@kong-ui-public/entities-key-sets 3.10.21 → 3.10.23-pr.2584.fbde353ad.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/dist/entities-key-sets.es.js +0 -657
- package/dist/entities-key-sets.umd.js +0 -1
- package/dist/style.css +0 -1
- package/dist/types/components/KeySetConfigCard.vue.d.ts +0 -63
- package/dist/types/components/KeySetConfigCard.vue.d.ts.map +0 -1
- package/dist/types/components/KeySetForm.vue.d.ts +0 -44
- package/dist/types/components/KeySetForm.vue.d.ts.map +0 -1
- package/dist/types/components/KeySetList.vue.d.ts +0 -107
- package/dist/types/components/KeySetList.vue.d.ts.map +0 -1
- package/dist/types/composables/index.d.ts +0 -6
- package/dist/types/composables/index.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/key-sets-endpoints.d.ts +0 -18
- package/dist/types/key-sets-endpoints.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -4
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/key-set-config-card.d.ts +0 -15
- package/dist/types/types/key-set-config-card.d.ts.map +0 -1
- package/dist/types/types/key-set-form.d.ts +0 -25
- package/dist/types/types/key-set-form.d.ts.map +0 -1
- package/dist/types/types/key-set-list.d.ts +0 -33
- package/dist/types/types/key-set-list.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-key-sets",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.23-pr.2584.fbde353ad.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-key-sets.umd.js",
|
|
6
6
|
"module": "./dist/entities-key-sets.es.js",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"@kong/kongponents": "^9.52.11",
|
|
26
26
|
"axios": "^1.15.2",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
|
-
"vue-router": "^5.0.
|
|
29
|
-
"@kong-ui-public/entities-shared": "^3.42.
|
|
28
|
+
"vue-router": "^5.0.6",
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.42.9-pr.2584.fbde353ad.0",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.4.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@kong/icons": "^1.52.0",
|
|
34
34
|
"@kong/kongponents": "9.52.11",
|
|
35
35
|
"axios": "^1.15.2",
|
|
36
|
-
"vue": "^3.5.
|
|
37
|
-
"vue-router": "^5.0.
|
|
38
|
-
"@kong-ui-public/entities-shared": "^3.42.
|
|
36
|
+
"vue": "^3.5.33",
|
|
37
|
+
"vue-router": "^5.0.6",
|
|
38
|
+
"@kong-ui-public/entities-shared": "^3.42.9-pr.2584.fbde353ad.0",
|
|
39
39
|
"@kong-ui-public/i18n": "^2.4.6"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
@@ -1,657 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, computed as v, ref as S, watch as we, onBeforeMount as Ee, resolveComponent as D, openBlock as F, createElementBlock as Q, createVNode as i, unref as n, createSlots as te, withCtx as l, createTextVNode as E, toDisplayString as I, createElementVNode as ae, createBlock as G, Teleport as Ke, createCommentVNode as ne, reactive as oe } from "vue";
|
|
2
|
-
import { BookIcon as se, AddIcon as ie, KeyIcon as $e } from "@kong/icons";
|
|
3
|
-
import { useRouter as le } from "vue-router";
|
|
4
|
-
import { createI18n as Me, i18nTComponent as De } from "@kong-ui-public/i18n";
|
|
5
|
-
import { useAxios as ce, useTableState as Fe, useFetcher as Re, useDeleteUrlBuilder as Te, FetcherStatus as Be, EntityBaseTable as Ve, PermissionsWrapper as P, TableTags as xe, EntityFilter as Oe, EntityDeleteModal as qe, EntityTypes as Pe, useErrors as Ne, EntityBaseFormType as re, EntityBaseForm as Ue, SupportedEntityType as de, EntityFormSection as je, EntityBaseConfigCard as Ae } from "@kong-ui-public/entities-shared";
|
|
6
|
-
const Je = {
|
|
7
|
-
title: "Key Sets",
|
|
8
|
-
list: {
|
|
9
|
-
toolbar_actions: {
|
|
10
|
-
new_key_set: "New key set"
|
|
11
|
-
},
|
|
12
|
-
table_headers: {
|
|
13
|
-
name: "Name",
|
|
14
|
-
id: "ID",
|
|
15
|
-
tags: "Tags"
|
|
16
|
-
},
|
|
17
|
-
empty_state: {
|
|
18
|
-
title: "Configure a New Key Set",
|
|
19
|
-
description: "A Key Set object holds a collection of asymmetric key objects. This entity allows to logically group keys by their purpose."
|
|
20
|
-
},
|
|
21
|
-
empty_state_v2: {
|
|
22
|
-
title: "Configure your first key set",
|
|
23
|
-
group: "Key sets created in gateways within this group will automatically appear here.",
|
|
24
|
-
description: "Key sets centrally manage asymmetric keys for plugins like OpenID Connect and JWT, simplifying configuration and security across services.",
|
|
25
|
-
create_cta: "New key set",
|
|
26
|
-
learn_more: "Learn more"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
actions: {
|
|
30
|
-
create: "New Key Set",
|
|
31
|
-
copy_id: "Copy ID",
|
|
32
|
-
copy_json: "Copy JSON",
|
|
33
|
-
edit: "Edit",
|
|
34
|
-
delete: "Delete",
|
|
35
|
-
clear: "Clear",
|
|
36
|
-
view: "View Details"
|
|
37
|
-
},
|
|
38
|
-
search: {
|
|
39
|
-
placeholder: "Filter by exact name or ID"
|
|
40
|
-
},
|
|
41
|
-
delete: {
|
|
42
|
-
title: "Delete a Key Set",
|
|
43
|
-
description: "Deleting this key set will also delete keys associated. This action cannot be reversed so make sure to check the key set usage before deleting."
|
|
44
|
-
},
|
|
45
|
-
errors: {
|
|
46
|
-
general: "Key sets could not be retrieved",
|
|
47
|
-
delete: "The key set could not be deleted at this time.",
|
|
48
|
-
copy: "Failed to copy to clipboard"
|
|
49
|
-
},
|
|
50
|
-
copy: {
|
|
51
|
-
success: "Copied {val} to clipboard",
|
|
52
|
-
success_brief: "Successfully copied to clipboard"
|
|
53
|
-
},
|
|
54
|
-
form: {
|
|
55
|
-
sections: {
|
|
56
|
-
general: {
|
|
57
|
-
title: "General Information",
|
|
58
|
-
description: "General information will help identify and manage this key set."
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
fields: {
|
|
62
|
-
name: {
|
|
63
|
-
label: "Name",
|
|
64
|
-
placeholder: "Enter a unique name for this key set"
|
|
65
|
-
},
|
|
66
|
-
tags: {
|
|
67
|
-
label: "Tags",
|
|
68
|
-
placeholder: "Enter a list of tags separated by comma",
|
|
69
|
-
help: "e.g. tag1, tag2, tag3",
|
|
70
|
-
tooltip: "An optional set of strings for grouping and filtering, separated by commas."
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, Le = {
|
|
75
|
-
keySets: Je
|
|
76
|
-
};
|
|
77
|
-
function Ge() {
|
|
78
|
-
const e = Me("en-us", Le);
|
|
79
|
-
return {
|
|
80
|
-
i18n: e,
|
|
81
|
-
i18nT: De(e)
|
|
82
|
-
// Translation component <i18n-t>
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
const X = {
|
|
86
|
-
useI18n: Ge
|
|
87
|
-
}, H = "/v2/control-planes/{controlPlaneId}/core-entities", W = "/{workspace}", N = {
|
|
88
|
-
list: {
|
|
89
|
-
konnect: `${H}/key-sets`,
|
|
90
|
-
kongManager: `${W}/key-sets`
|
|
91
|
-
},
|
|
92
|
-
form: {
|
|
93
|
-
konnect: {
|
|
94
|
-
create: `${H}/key-sets`,
|
|
95
|
-
edit: `${H}/key-sets/{id}`
|
|
96
|
-
},
|
|
97
|
-
kongManager: {
|
|
98
|
-
create: `${W}/key-sets`,
|
|
99
|
-
edit: `${W}/key-sets/{id}`
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}, He = { class: "kong-ui-entities-key-sets-list" }, We = { class: "button-row" }, ze = /* @__PURE__ */ z({
|
|
103
|
-
__name: "KeySetList",
|
|
104
|
-
props: {
|
|
105
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
106
|
-
config: {
|
|
107
|
-
type: Object,
|
|
108
|
-
required: !0,
|
|
109
|
-
validator: (e) => !(!e || !["konnect", "kongManager"].includes(e == null ? void 0 : e.app) || !e.createRoute || !e.getViewRoute || !e.getEditRoute || e.app === "kongManager" && !e.isExactMatch && !e.filterSchema)
|
|
110
|
-
},
|
|
111
|
-
// used to override the default identifier for the cache entry
|
|
112
|
-
cacheIdentifier: {
|
|
113
|
-
type: String,
|
|
114
|
-
default: ""
|
|
115
|
-
},
|
|
116
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
|
|
117
|
-
canCreate: {
|
|
118
|
-
type: Function,
|
|
119
|
-
required: !1,
|
|
120
|
-
default: async () => !0
|
|
121
|
-
},
|
|
122
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
|
|
123
|
-
canDelete: {
|
|
124
|
-
type: Function,
|
|
125
|
-
required: !1,
|
|
126
|
-
default: async () => !0
|
|
127
|
-
},
|
|
128
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
|
|
129
|
-
canEdit: {
|
|
130
|
-
type: Function,
|
|
131
|
-
required: !1,
|
|
132
|
-
default: async () => !0
|
|
133
|
-
},
|
|
134
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
|
|
135
|
-
canRetrieve: {
|
|
136
|
-
type: Function,
|
|
137
|
-
required: !1,
|
|
138
|
-
default: async () => !0
|
|
139
|
-
},
|
|
140
|
-
/** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
|
|
141
|
-
useActionOutside: {
|
|
142
|
-
type: Boolean,
|
|
143
|
-
default: !1
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
|
|
147
|
-
setup(e, { emit: _ }) {
|
|
148
|
-
var Z;
|
|
149
|
-
const m = _, t = e, { i18n: { t: o } } = X.useI18n(), g = le(), { axiosInstance: h } = ce((Z = t.config) == null ? void 0 : Z.axiosRequestConfig), { hasRecords: k, handleStateChange: U } = Fe(() => b.value), R = v(() => k.value && t.config.app === "konnect"), d = v(() => t.config.app !== "kongManager" || !!t.config.disableSorting), K = {
|
|
150
|
-
// the Name column is non-hidable
|
|
151
|
-
name: { label: o("keySets.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
152
|
-
tags: { label: o("keySets.list.table_headers.tags") },
|
|
153
|
-
id: { label: o("keySets.list.table_headers.id"), sortable: !0 }
|
|
154
|
-
}, j = K, x = v(() => {
|
|
155
|
-
var s, p;
|
|
156
|
-
let a = `${t.config.apiBaseUrl}${N.list[t.config.app]}`;
|
|
157
|
-
return t.config.app === "konnect" ? a = a.replace(/{controlPlaneId}/gi, ((s = t.config) == null ? void 0 : s.controlPlaneId) || "") : t.config.app === "kongManager" && (a = a.replace(/\/{workspace}/gi, (p = t.config) != null && p.workspace ? `/${t.config.workspace}` : "")), a;
|
|
158
|
-
}), b = S(""), T = v(() => {
|
|
159
|
-
const a = t.config.app === "konnect" || t.config.isExactMatch;
|
|
160
|
-
if (a)
|
|
161
|
-
return {
|
|
162
|
-
isExactMatch: a,
|
|
163
|
-
placeholder: o("keySets.search.placeholder")
|
|
164
|
-
};
|
|
165
|
-
const s = { name: K.name };
|
|
166
|
-
return {
|
|
167
|
-
isExactMatch: a,
|
|
168
|
-
fields: s,
|
|
169
|
-
schema: t.config.filterSchema
|
|
170
|
-
};
|
|
171
|
-
}), {
|
|
172
|
-
fetcher: $,
|
|
173
|
-
fetcherState: A,
|
|
174
|
-
fetcherCacheKey: M
|
|
175
|
-
} = Re(v(() => ({ ...t.config, cacheIdentifier: t.cacheIdentifier })), x), r = () => {
|
|
176
|
-
b.value = "";
|
|
177
|
-
}, u = () => {
|
|
178
|
-
M.value++;
|
|
179
|
-
}, c = S(null), y = async (a, s) => {
|
|
180
|
-
const p = a.id;
|
|
181
|
-
if (!await s(p)) {
|
|
182
|
-
pe(a, "id");
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
ye(a, "id");
|
|
186
|
-
}, fe = async (a, s) => {
|
|
187
|
-
const p = JSON.stringify(a);
|
|
188
|
-
if (!await s(p)) {
|
|
189
|
-
m("copy:error", {
|
|
190
|
-
entity: a,
|
|
191
|
-
message: o("keySets.errors.copy")
|
|
192
|
-
});
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
m("copy:success", {
|
|
196
|
-
entity: a,
|
|
197
|
-
message: o("keySets.copy.success_brief")
|
|
198
|
-
});
|
|
199
|
-
}, ye = (a, s) => {
|
|
200
|
-
m("copy:success", {
|
|
201
|
-
entity: a,
|
|
202
|
-
field: s,
|
|
203
|
-
message: o("keySets.copy.success", { val: a[s] })
|
|
204
|
-
});
|
|
205
|
-
}, pe = (a, s) => {
|
|
206
|
-
m("copy:error", {
|
|
207
|
-
entity: a,
|
|
208
|
-
field: s,
|
|
209
|
-
message: o("keySets.errors.copy")
|
|
210
|
-
});
|
|
211
|
-
}, me = async (a) => {
|
|
212
|
-
var p;
|
|
213
|
-
await ((p = t.canRetrieve) == null ? void 0 : p.call(t, a)) && g.push(t.config.getViewRoute(a.id));
|
|
214
|
-
}, ge = (a) => ({
|
|
215
|
-
label: o("keySets.actions.view"),
|
|
216
|
-
to: t.config.getViewRoute(a)
|
|
217
|
-
}), ke = (a) => ({
|
|
218
|
-
label: o("keySets.actions.edit"),
|
|
219
|
-
to: t.config.getEditRoute(a)
|
|
220
|
-
}), w = S(void 0), O = S(!1), q = S(!1), Y = S(""), ve = Te(t.config, x.value), he = (a) => {
|
|
221
|
-
w.value = a, O.value = !0;
|
|
222
|
-
}, Se = () => {
|
|
223
|
-
O.value = !1;
|
|
224
|
-
}, be = async () => {
|
|
225
|
-
var a, s, p;
|
|
226
|
-
if ((a = w.value) != null && a.id) {
|
|
227
|
-
q.value = !0;
|
|
228
|
-
try {
|
|
229
|
-
await h.delete(ve(w.value.id)), q.value = !1, O.value = !1, M.value++, m("delete:success", w.value);
|
|
230
|
-
} catch (C) {
|
|
231
|
-
Y.value = ((p = (s = C.response) == null ? void 0 : s.data) == null ? void 0 : p.message) || C.message || o("keySets.errors.delete"), m("error", C);
|
|
232
|
-
} finally {
|
|
233
|
-
q.value = !1;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}, Ce = () => {
|
|
237
|
-
g.push(t.config.createRoute);
|
|
238
|
-
};
|
|
239
|
-
we(A, (a) => {
|
|
240
|
-
var s, p, C;
|
|
241
|
-
if (a.status === Be.Error) {
|
|
242
|
-
c.value = {
|
|
243
|
-
title: o("keySets.errors.general")
|
|
244
|
-
}, (C = (p = (s = a.error) == null ? void 0 : s.response) == null ? void 0 : p.data) != null && C.message && (c.value.message = a.error.response.data.message), m("error", a.error);
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
c.value = null;
|
|
248
|
-
});
|
|
249
|
-
const J = S({
|
|
250
|
-
ctaPath: t.config.createRoute,
|
|
251
|
-
ctaText: void 0,
|
|
252
|
-
message: `${o("keySets.list.empty_state.description")}${t.config.additionMessageForEmptyState ? ` ${t.config.additionMessageForEmptyState}` : ""}`,
|
|
253
|
-
title: o("keySets.title")
|
|
254
|
-
}), L = S(!1);
|
|
255
|
-
return Ee(async () => {
|
|
256
|
-
L.value = await t.canCreate(), L.value && (J.value.title = o("keySets.list.empty_state.title"), J.value.ctaText = o("keySets.actions.create"));
|
|
257
|
-
}), (a, s) => {
|
|
258
|
-
const p = D("KButton"), C = D("KEmptyState"), Ie = D("KCopy"), B = D("KDropdownItem"), ee = D("KClipboardProvider");
|
|
259
|
-
return F(), Q("div", He, [
|
|
260
|
-
i(n(Ve), {
|
|
261
|
-
"cache-identifier": e.cacheIdentifier,
|
|
262
|
-
"disable-sorting": d.value,
|
|
263
|
-
"empty-state-options": J.value,
|
|
264
|
-
"enable-entity-actions": "",
|
|
265
|
-
"error-message": c.value,
|
|
266
|
-
fetcher: n($),
|
|
267
|
-
"fetcher-cache-key": n(M),
|
|
268
|
-
"pagination-type": "offset",
|
|
269
|
-
"preferences-storage-key": "kong-ui-entities-key-sets-list",
|
|
270
|
-
query: b.value,
|
|
271
|
-
"table-headers": n(j),
|
|
272
|
-
onClearSearchInput: r,
|
|
273
|
-
"onClick:row": s[3] || (s[3] = (f) => me(f)),
|
|
274
|
-
onSort: u,
|
|
275
|
-
onState: n(U)
|
|
276
|
-
}, te({
|
|
277
|
-
"toolbar-filter": l(() => [
|
|
278
|
-
i(n(Oe), {
|
|
279
|
-
modelValue: b.value,
|
|
280
|
-
"onUpdate:modelValue": s[0] || (s[0] = (f) => b.value = f),
|
|
281
|
-
config: T.value
|
|
282
|
-
}, null, 8, ["modelValue", "config"])
|
|
283
|
-
]),
|
|
284
|
-
"toolbar-button": l(() => [
|
|
285
|
-
(F(), G(Ke, {
|
|
286
|
-
disabled: !e.useActionOutside,
|
|
287
|
-
to: "#kong-ui-app-page-header-action-button"
|
|
288
|
-
}, [
|
|
289
|
-
ae("div", We, [
|
|
290
|
-
R.value ? (F(), G(p, {
|
|
291
|
-
key: 0,
|
|
292
|
-
appearance: "secondary",
|
|
293
|
-
class: "open-learning-hub",
|
|
294
|
-
"data-testid": "keys-set-learn-more-button",
|
|
295
|
-
icon: "",
|
|
296
|
-
onClick: s[1] || (s[1] = (f) => a.$emit("click:learn-more"))
|
|
297
|
-
}, {
|
|
298
|
-
default: l(() => [
|
|
299
|
-
i(n(se), { decorative: "" })
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
})) : ne("", !0),
|
|
303
|
-
i(n(P), {
|
|
304
|
-
"auth-function": () => e.canCreate()
|
|
305
|
-
}, {
|
|
306
|
-
default: l(() => [
|
|
307
|
-
i(p, {
|
|
308
|
-
appearance: "primary",
|
|
309
|
-
"data-testid": "toolbar-add-key-set",
|
|
310
|
-
size: e.useActionOutside ? "medium" : "large",
|
|
311
|
-
to: e.config.createRoute
|
|
312
|
-
}, {
|
|
313
|
-
default: l(() => [
|
|
314
|
-
i(n(ie)),
|
|
315
|
-
E(" " + I(n(o)("keySets.list.toolbar_actions.new_key_set")), 1)
|
|
316
|
-
]),
|
|
317
|
-
_: 1
|
|
318
|
-
}, 8, ["size", "to"])
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
}, 8, ["auth-function"])
|
|
322
|
-
])
|
|
323
|
-
], 8, ["disabled"]))
|
|
324
|
-
]),
|
|
325
|
-
name: l(({ rowValue: f }) => [
|
|
326
|
-
ae("b", null, I(f ?? "-"), 1)
|
|
327
|
-
]),
|
|
328
|
-
tags: l(({ rowValue: f }) => [
|
|
329
|
-
i(n(xe), { tags: f }, null, 8, ["tags"])
|
|
330
|
-
]),
|
|
331
|
-
id: l(({ rowValue: f }) => [
|
|
332
|
-
i(Ie, {
|
|
333
|
-
text: f,
|
|
334
|
-
truncate: ""
|
|
335
|
-
}, null, 8, ["text"])
|
|
336
|
-
]),
|
|
337
|
-
actions: l(({ row: f }) => [
|
|
338
|
-
i(ee, null, {
|
|
339
|
-
default: l(({ copyToClipboard: V }) => [
|
|
340
|
-
i(B, {
|
|
341
|
-
"data-testid": "action-entity-copy-id",
|
|
342
|
-
onClick: (_e) => y(f, V)
|
|
343
|
-
}, {
|
|
344
|
-
default: l(() => [
|
|
345
|
-
E(I(n(o)("keySets.actions.copy_id")), 1)
|
|
346
|
-
]),
|
|
347
|
-
_: 1
|
|
348
|
-
}, 8, ["onClick"])
|
|
349
|
-
]),
|
|
350
|
-
_: 2
|
|
351
|
-
}, 1024),
|
|
352
|
-
i(ee, null, {
|
|
353
|
-
default: l(({ copyToClipboard: V }) => [
|
|
354
|
-
i(B, {
|
|
355
|
-
"data-testid": "action-entity-copy-json",
|
|
356
|
-
onClick: (_e) => fe(f, V)
|
|
357
|
-
}, {
|
|
358
|
-
default: l(() => [
|
|
359
|
-
E(I(n(o)("keySets.actions.copy_json")), 1)
|
|
360
|
-
]),
|
|
361
|
-
_: 1
|
|
362
|
-
}, 8, ["onClick"])
|
|
363
|
-
]),
|
|
364
|
-
_: 2
|
|
365
|
-
}, 1024),
|
|
366
|
-
i(n(P), {
|
|
367
|
-
"auth-function": () => e.canRetrieve(f)
|
|
368
|
-
}, {
|
|
369
|
-
default: l(() => [
|
|
370
|
-
i(B, {
|
|
371
|
-
"data-testid": "action-entity-view",
|
|
372
|
-
"has-divider": "",
|
|
373
|
-
item: ge(f.id)
|
|
374
|
-
}, null, 8, ["item"])
|
|
375
|
-
]),
|
|
376
|
-
_: 2
|
|
377
|
-
}, 1032, ["auth-function"]),
|
|
378
|
-
i(n(P), {
|
|
379
|
-
"auth-function": () => e.canEdit(f)
|
|
380
|
-
}, {
|
|
381
|
-
default: l(() => [
|
|
382
|
-
i(B, {
|
|
383
|
-
"data-testid": "action-entity-edit",
|
|
384
|
-
item: ke(f.id)
|
|
385
|
-
}, null, 8, ["item"])
|
|
386
|
-
]),
|
|
387
|
-
_: 2
|
|
388
|
-
}, 1032, ["auth-function"]),
|
|
389
|
-
i(n(P), {
|
|
390
|
-
"auth-function": () => e.canDelete(f)
|
|
391
|
-
}, {
|
|
392
|
-
default: l(() => [
|
|
393
|
-
i(B, {
|
|
394
|
-
danger: "",
|
|
395
|
-
"data-testid": "action-entity-delete",
|
|
396
|
-
"has-divider": "",
|
|
397
|
-
onClick: (V) => he(f)
|
|
398
|
-
}, {
|
|
399
|
-
default: l(() => [
|
|
400
|
-
E(I(n(o)("keySets.actions.delete")), 1)
|
|
401
|
-
]),
|
|
402
|
-
_: 1
|
|
403
|
-
}, 8, ["onClick"])
|
|
404
|
-
]),
|
|
405
|
-
_: 2
|
|
406
|
-
}, 1032, ["auth-function"])
|
|
407
|
-
]),
|
|
408
|
-
_: 2
|
|
409
|
-
}, [
|
|
410
|
-
!b.value && e.config.app === "konnect" ? {
|
|
411
|
-
name: "empty-state",
|
|
412
|
-
fn: l(() => {
|
|
413
|
-
var f;
|
|
414
|
-
return [
|
|
415
|
-
i(C, {
|
|
416
|
-
"data-testid": "key-sets-entity-empty-state",
|
|
417
|
-
"icon-background": "",
|
|
418
|
-
message: n(o)("keySets.list.empty_state_v2.description"),
|
|
419
|
-
title: n(o)("keySets.list.empty_state_v2.title")
|
|
420
|
-
}, te({
|
|
421
|
-
icon: l(() => [
|
|
422
|
-
i(n($e), { decorative: "" })
|
|
423
|
-
]),
|
|
424
|
-
action: l(() => [
|
|
425
|
-
L.value ? (F(), G(p, {
|
|
426
|
-
key: 0,
|
|
427
|
-
"data-testid": "entity-create-button",
|
|
428
|
-
onClick: Ce
|
|
429
|
-
}, {
|
|
430
|
-
default: l(() => [
|
|
431
|
-
i(n(ie), { decorative: "" }),
|
|
432
|
-
E(" " + I(n(o)("keySets.list.empty_state_v2.create_cta")), 1)
|
|
433
|
-
]),
|
|
434
|
-
_: 1
|
|
435
|
-
})) : ne("", !0),
|
|
436
|
-
i(p, {
|
|
437
|
-
appearance: "secondary",
|
|
438
|
-
"data-testid": "entity-learn-more-button",
|
|
439
|
-
onClick: s[2] || (s[2] = (V) => a.$emit("click:learn-more"))
|
|
440
|
-
}, {
|
|
441
|
-
default: l(() => [
|
|
442
|
-
i(n(se), { decorative: "" }),
|
|
443
|
-
E(" " + I(n(o)("keySets.list.empty_state_v2.learn_more")), 1)
|
|
444
|
-
]),
|
|
445
|
-
_: 1
|
|
446
|
-
})
|
|
447
|
-
]),
|
|
448
|
-
_: 2
|
|
449
|
-
}, [
|
|
450
|
-
(f = e.config) != null && f.isControlPlaneGroup ? {
|
|
451
|
-
name: "default",
|
|
452
|
-
fn: l(() => [
|
|
453
|
-
E(I(n(o)("keySets.list.empty_state_v2.group")), 1)
|
|
454
|
-
]),
|
|
455
|
-
key: "0"
|
|
456
|
-
} : void 0
|
|
457
|
-
]), 1032, ["message", "title"])
|
|
458
|
-
];
|
|
459
|
-
}),
|
|
460
|
-
key: "0"
|
|
461
|
-
} : void 0
|
|
462
|
-
]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
|
|
463
|
-
i(n(qe), {
|
|
464
|
-
"action-pending": q.value,
|
|
465
|
-
description: n(o)("keySets.delete.description"),
|
|
466
|
-
"entity-name": w.value && (w.value.name || w.value.id),
|
|
467
|
-
"entity-type": n(Pe).KeySet,
|
|
468
|
-
error: Y.value,
|
|
469
|
-
title: n(o)("keySets.delete.title"),
|
|
470
|
-
visible: O.value,
|
|
471
|
-
onCancel: Se,
|
|
472
|
-
onProceed: be
|
|
473
|
-
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
|
|
474
|
-
]);
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
}), ue = (e, _) => {
|
|
478
|
-
const m = e.__vccOpts || e;
|
|
479
|
-
for (const [t, o] of _)
|
|
480
|
-
m[t] = o;
|
|
481
|
-
return m;
|
|
482
|
-
}, ot = /* @__PURE__ */ ue(ze, [["__scopeId", "data-v-45a30a02"]]), Qe = { class: "kong-ui-entities-key-sets-form" }, Xe = /* @__PURE__ */ z({
|
|
483
|
-
__name: "KeySetForm",
|
|
484
|
-
props: {
|
|
485
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
486
|
-
config: {
|
|
487
|
-
type: Object,
|
|
488
|
-
required: !0,
|
|
489
|
-
validator: (e) => !(!e || !["konnect", "kongManager"].includes(e == null ? void 0 : e.app) || e.app === "konnect" && !e.controlPlaneId || e.app === "kongManager" && typeof e.workspace != "string" || !e.cancelRoute)
|
|
490
|
-
},
|
|
491
|
-
/** If a valid Key Set ID is provided, it will put the form in Edit mode instead of Create */
|
|
492
|
-
keySetId: {
|
|
493
|
-
type: String,
|
|
494
|
-
required: !1,
|
|
495
|
-
default: ""
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
emits: ["update", "error", "loading"],
|
|
499
|
-
setup(e, { emit: _ }) {
|
|
500
|
-
var M;
|
|
501
|
-
const m = _, t = e, o = le(), { i18n: { t: g } } = X.useI18n(), { getMessageFromError: h } = Ne(), { axiosInstance: k } = ce((M = t.config) == null ? void 0 : M.axiosRequestConfig), U = v(() => N.form[t.config.app].edit), R = v(() => t.keySetId ? re.Edit : re.Create), d = oe({
|
|
502
|
-
fields: {
|
|
503
|
-
name: "",
|
|
504
|
-
tags: ""
|
|
505
|
-
},
|
|
506
|
-
isReadonly: !1,
|
|
507
|
-
errorMessage: ""
|
|
508
|
-
}), K = oe({
|
|
509
|
-
name: "",
|
|
510
|
-
tags: ""
|
|
511
|
-
}), j = v(() => JSON.stringify(d.fields) !== JSON.stringify(K) && !!d.fields.name), x = (r) => {
|
|
512
|
-
var u;
|
|
513
|
-
d.fields.name = (r == null ? void 0 : r.name) || "", d.fields.tags = ((u = r == null ? void 0 : r.tags) == null ? void 0 : u.join(", ")) || "", Object.assign(K, d.fields);
|
|
514
|
-
}, b = () => {
|
|
515
|
-
o.push(t.config.cancelRoute);
|
|
516
|
-
}, T = v(() => {
|
|
517
|
-
var u, c;
|
|
518
|
-
let r = `${t.config.apiBaseUrl}${N.form[t.config.app][R.value]}`;
|
|
519
|
-
return t.config.app === "konnect" ? r = r.replace(/{controlPlaneId}/gi, ((u = t.config) == null ? void 0 : u.controlPlaneId) || "") : t.config.app === "kongManager" && (r = r.replace(/\/{workspace}/gi, (c = t.config) != null && c.workspace ? `/${t.config.workspace}` : "")), r = r.replace(/{id}/gi, t.keySetId), r;
|
|
520
|
-
}), $ = v(() => {
|
|
521
|
-
var r, u, c;
|
|
522
|
-
return {
|
|
523
|
-
name: d.fields.name,
|
|
524
|
-
tags: ((c = (u = (r = d.fields.tags) == null ? void 0 : r.split(",")) == null ? void 0 : u.map((y) => String(y || "").trim())) == null ? void 0 : c.filter((y) => y !== "")) || ""
|
|
525
|
-
};
|
|
526
|
-
}), A = async () => {
|
|
527
|
-
var r, u;
|
|
528
|
-
try {
|
|
529
|
-
d.isReadonly = !0;
|
|
530
|
-
let c;
|
|
531
|
-
if (R.value === "create" ? c = await k.post(T.value, $.value) : R.value === "edit" && (c = ((r = t.config) == null ? void 0 : r.app) === "konnect" ? await k.put(T.value, $.value) : await k.patch(T.value, $.value)), c) {
|
|
532
|
-
const { data: y } = c;
|
|
533
|
-
d.fields.name = (y == null ? void 0 : y.name) || "", d.fields.tags = ((u = y == null ? void 0 : y.tags) == null ? void 0 : u.join(", ")) || "", Object.assign(K, d.fields), m("update", c == null ? void 0 : c.data);
|
|
534
|
-
}
|
|
535
|
-
} catch (c) {
|
|
536
|
-
d.errorMessage = h(c), m("error", c);
|
|
537
|
-
} finally {
|
|
538
|
-
d.isReadonly = !1;
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
return (r, u) => {
|
|
542
|
-
const c = D("KInput");
|
|
543
|
-
return F(), Q("div", Qe, [
|
|
544
|
-
i(n(Ue), {
|
|
545
|
-
"can-submit": j.value,
|
|
546
|
-
config: e.config,
|
|
547
|
-
"edit-id": e.keySetId,
|
|
548
|
-
"entity-type": n(de).KeySet,
|
|
549
|
-
"error-message": d.errorMessage,
|
|
550
|
-
"fetch-url": U.value,
|
|
551
|
-
"form-fields": $.value,
|
|
552
|
-
"is-readonly": d.isReadonly,
|
|
553
|
-
onCancel: b,
|
|
554
|
-
"onFetch:error": u[2] || (u[2] = (y) => r.$emit("error", y)),
|
|
555
|
-
"onFetch:success": x,
|
|
556
|
-
onLoading: u[3] || (u[3] = (y) => r.$emit("loading", y)),
|
|
557
|
-
onSubmit: A
|
|
558
|
-
}, {
|
|
559
|
-
default: l(() => [
|
|
560
|
-
i(n(je), {
|
|
561
|
-
description: n(g)("keySets.form.sections.general.description"),
|
|
562
|
-
"has-divider": "",
|
|
563
|
-
title: n(g)("keySets.form.sections.general.title")
|
|
564
|
-
}, {
|
|
565
|
-
default: l(() => [
|
|
566
|
-
i(c, {
|
|
567
|
-
modelValue: d.fields.name,
|
|
568
|
-
"onUpdate:modelValue": u[0] || (u[0] = (y) => d.fields.name = y),
|
|
569
|
-
modelModifiers: { trim: !0 },
|
|
570
|
-
autocomplete: "off",
|
|
571
|
-
"data-testid": "key-set-form-name",
|
|
572
|
-
label: n(g)("keySets.form.fields.name.label"),
|
|
573
|
-
placeholder: n(g)("keySets.form.fields.name.placeholder"),
|
|
574
|
-
readonly: d.isReadonly,
|
|
575
|
-
type: "text"
|
|
576
|
-
}, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
577
|
-
i(c, {
|
|
578
|
-
modelValue: d.fields.tags,
|
|
579
|
-
"onUpdate:modelValue": u[1] || (u[1] = (y) => d.fields.tags = y),
|
|
580
|
-
modelModifiers: { trim: !0 },
|
|
581
|
-
autocomplete: "off",
|
|
582
|
-
"data-testid": "key-set-form-tags",
|
|
583
|
-
help: n(g)("keySets.form.fields.tags.help"),
|
|
584
|
-
label: n(g)("keySets.form.fields.tags.label"),
|
|
585
|
-
"label-attributes": {
|
|
586
|
-
info: n(g)("keySets.form.fields.tags.tooltip"),
|
|
587
|
-
tooltipAttributes: { maxWidth: "400" }
|
|
588
|
-
},
|
|
589
|
-
placeholder: n(g)("keySets.form.fields.tags.placeholder"),
|
|
590
|
-
readonly: d.isReadonly,
|
|
591
|
-
type: "text"
|
|
592
|
-
}, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
|
|
593
|
-
]),
|
|
594
|
-
_: 1
|
|
595
|
-
}, 8, ["description", "title"])
|
|
596
|
-
]),
|
|
597
|
-
_: 1
|
|
598
|
-
}, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
|
|
599
|
-
]);
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
}), st = /* @__PURE__ */ ue(Xe, [["__scopeId", "data-v-a4b01cc5"]]), Ye = { class: "kong-ui-entities-keys-entity-config-card" }, it = /* @__PURE__ */ z({
|
|
603
|
-
__name: "KeySetConfigCard",
|
|
604
|
-
props: {
|
|
605
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
606
|
-
config: {
|
|
607
|
-
type: Object,
|
|
608
|
-
required: !0,
|
|
609
|
-
validator: (e) => !(!e || !["konnect", "kongManager"].includes(e == null ? void 0 : e.app) || e.app === "konnect" && !e.controlPlaneId || e.app === "kongManager" && typeof e.workspace != "string" || !e.entityId)
|
|
610
|
-
},
|
|
611
|
-
/**
|
|
612
|
-
* External link for documentation that determines visibility of Documentation button
|
|
613
|
-
*/
|
|
614
|
-
configCardDoc: {
|
|
615
|
-
type: String,
|
|
616
|
-
default: "",
|
|
617
|
-
required: !1
|
|
618
|
-
},
|
|
619
|
-
/**
|
|
620
|
-
* Control visibility of card title content
|
|
621
|
-
*/
|
|
622
|
-
hideTitle: {
|
|
623
|
-
type: Boolean,
|
|
624
|
-
default: !1
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
|
-
emits: ["loading", "fetch:error", "fetch:success"],
|
|
628
|
-
setup(e) {
|
|
629
|
-
const _ = e, { i18n: { t: m } } = X.useI18n(), t = v(() => N.form[_.config.app].edit), o = S({
|
|
630
|
-
id: {},
|
|
631
|
-
name: {},
|
|
632
|
-
last_updated: {},
|
|
633
|
-
created: {},
|
|
634
|
-
tags: {
|
|
635
|
-
tooltip: m("keySets.form.fields.tags.tooltip")
|
|
636
|
-
}
|
|
637
|
-
});
|
|
638
|
-
return (g, h) => (F(), Q("div", Ye, [
|
|
639
|
-
i(n(Ae), {
|
|
640
|
-
config: e.config,
|
|
641
|
-
"config-card-doc": e.configCardDoc,
|
|
642
|
-
"config-schema": o.value,
|
|
643
|
-
"entity-type": n(de).KeySet,
|
|
644
|
-
"fetch-url": t.value,
|
|
645
|
-
"hide-title": e.hideTitle,
|
|
646
|
-
"onFetch:error": h[0] || (h[0] = (k) => g.$emit("fetch:error", k)),
|
|
647
|
-
"onFetch:success": h[1] || (h[1] = (k) => g.$emit("fetch:success", k)),
|
|
648
|
-
onLoading: h[2] || (h[2] = (k) => g.$emit("loading", k))
|
|
649
|
-
}, null, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
|
|
650
|
-
]));
|
|
651
|
-
}
|
|
652
|
-
});
|
|
653
|
-
export {
|
|
654
|
-
it as KeySetConfigCard,
|
|
655
|
-
st as KeySetForm,
|
|
656
|
-
ot as KeySetList
|
|
657
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/icons"),require("vue-router"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/icons","vue-router","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g["kong-ui-public-entities-key-sets"]={},g.Vue,g.KongIcons,g.VueRouter,g["kong-ui-public-i18n"],g["kong-ui-public-entities-shared"]))})(this,function(g,e,I,L,J,l){"use strict";const Q={keySets:{title:"Key Sets",list:{toolbar_actions:{new_key_set:"New key set"},table_headers:{name:"Name",id:"ID",tags:"Tags"},empty_state:{title:"Configure a New Key Set",description:"A Key Set object holds a collection of asymmetric key objects. This entity allows to logically group keys by their purpose."},empty_state_v2:{title:"Configure your first key set",group:"Key sets created in gateways within this group will automatically appear here.",description:"Key sets centrally manage asymmetric keys for plugins like OpenID Connect and JWT, simplifying configuration and security across services.",create_cta:"New key set",learn_more:"Learn more"}},actions:{create:"New Key Set",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details"},search:{placeholder:"Filter by exact name or ID"},delete:{title:"Delete a Key Set",description:"Deleting this key set will also delete keys associated. This action cannot be reversed so make sure to check the key set usage before deleting."},errors:{general:"Key sets could not be retrieved",delete:"The key set could not be deleted at this time.",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this key set."}},fields:{name:{label:"Name",placeholder:"Enter a unique name for this key set"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."}}}}};function X(){const t=J.createI18n("en-us",Q);return{i18n:t,i18nT:J.i18nTComponent(t)}}const F={useI18n:X},R="/v2/control-planes/{controlPlaneId}/core-entities",q="/{workspace}",B={list:{konnect:`${R}/key-sets`,kongManager:`${q}/key-sets`},form:{konnect:{create:`${R}/key-sets`,edit:`${R}/key-sets/{id}`},kongManager:{create:`${q}/key-sets`,edit:`${q}/key-sets/{id}`}}},Y={class:"kong-ui-entities-key-sets-list"},Z={class:"button-row"},v=e.defineComponent({__name:"KeySetList",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||!t.createRoute||!t.getViewRoute||!t.getEditRoute||t.app==="kongManager"&&!t.isExactMatch&&!t.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(t,{emit:S}){var H;const u=S,o=t,{i18n:{t:a}}=F.useI18n(),m=L.useRouter(),{axiosInstance:h}=l.useAxios((H=o.config)==null?void 0:H.axiosRequestConfig),{hasRecords:k,handleStateChange:P}=l.useTableState(()=>b.value),_=e.computed(()=>k.value&&o.config.app==="konnect"),c=e.computed(()=>o.config.app!=="kongManager"||!!o.config.disableSorting),V={name:{label:a("keySets.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},tags:{label:a("keySets.list.table_headers.tags")},id:{label:a("keySets.list.table_headers.id"),sortable:!0}},O=V,D=e.computed(()=>{var r,y;let n=`${o.config.apiBaseUrl}${B.list[o.config.app]}`;return o.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((r=o.config)==null?void 0:r.controlPlaneId)||""):o.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(y=o.config)!=null&&y.workspace?`/${o.config.workspace}`:"")),n}),b=e.ref(""),E=e.computed(()=>{const n=o.config.app==="konnect"||o.config.isExactMatch;if(n)return{isExactMatch:n,placeholder:a("keySets.search.placeholder")};const r={name:V.name};return{isExactMatch:n,fields:r,schema:o.config.filterSchema}}),{fetcher:N,fetcherState:j,fetcherCacheKey:x}=l.useFetcher(e.computed(()=>({...o.config,cacheIdentifier:o.cacheIdentifier})),D),s=()=>{b.value=""},d=()=>{x.value++},i=e.ref(null),p=async(n,r)=>{const y=n.id;if(!await r(y)){ie(n,"id");return}se(n,"id")},re=async(n,r)=>{const y=JSON.stringify(n);if(!await r(y)){u("copy:error",{entity:n,message:a("keySets.errors.copy")});return}u("copy:success",{entity:n,message:a("keySets.copy.success_brief")})},se=(n,r)=>{u("copy:success",{entity:n,field:r,message:a("keySets.copy.success",{val:n[r]})})},ie=(n,r)=>{u("copy:error",{entity:n,field:r,message:a("keySets.errors.copy")})},le=async n=>{var y;await((y=o.canRetrieve)==null?void 0:y.call(o,n))&&m.push(o.config.getViewRoute(n.id))},ce=n=>({label:a("keySets.actions.view"),to:o.config.getViewRoute(n)}),de=n=>({label:a("keySets.actions.edit"),to:o.config.getEditRoute(n)}),w=e.ref(void 0),$=e.ref(!1),M=e.ref(!1),G=e.ref(""),fe=l.useDeleteUrlBuilder(o.config,D.value),pe=n=>{w.value=n,$.value=!0},ye=()=>{$.value=!1},ue=async()=>{var n,r,y;if((n=w.value)!=null&&n.id){M.value=!0;try{await h.delete(fe(w.value.id)),M.value=!1,$.value=!1,x.value++,u("delete:success",w.value)}catch(C){G.value=((y=(r=C.response)==null?void 0:r.data)==null?void 0:y.message)||C.message||a("keySets.errors.delete"),u("error",C)}finally{M.value=!1}}},me=()=>{m.push(o.config.createRoute)};e.watch(j,n=>{var r,y,C;if(n.status===l.FetcherStatus.Error){i.value={title:a("keySets.errors.general")},(C=(y=(r=n.error)==null?void 0:r.response)==null?void 0:y.data)!=null&&C.message&&(i.value.message=n.error.response.data.message),u("error",n.error);return}i.value=null});const A=e.ref({ctaPath:o.config.createRoute,ctaText:void 0,message:`${a("keySets.list.empty_state.description")}${o.config.additionMessageForEmptyState?` ${o.config.additionMessageForEmptyState}`:""}`,title:a("keySets.title")}),U=e.ref(!1);return e.onBeforeMount(async()=>{U.value=await o.canCreate(),U.value&&(A.value.title=a("keySets.list.empty_state.title"),A.value.ctaText=a("keySets.actions.create"))}),(n,r)=>{const y=e.resolveComponent("KButton"),C=e.resolveComponent("KEmptyState"),ge=e.resolveComponent("KCopy"),K=e.resolveComponent("KDropdownItem"),z=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Y,[e.createVNode(e.unref(l.EntityBaseTable),{"cache-identifier":t.cacheIdentifier,"disable-sorting":c.value,"empty-state-options":A.value,"enable-entity-actions":"","error-message":i.value,fetcher:e.unref(N),"fetcher-cache-key":e.unref(x),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-key-sets-list",query:b.value,"table-headers":e.unref(O),onClearSearchInput:s,"onClick:row":r[3]||(r[3]=f=>le(f)),onSort:d,onState:e.unref(P)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(l.EntityFilter),{modelValue:b.value,"onUpdate:modelValue":r[0]||(r[0]=f=>b.value=f),config:E.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!t.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Z,[_.value?(e.openBlock(),e.createBlock(y,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"keys-set-learn-more-button",icon:"",onClick:r[1]||(r[1]=f=>n.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(I.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canCreate()},{default:e.withCtx(()=>[e.createVNode(y,{appearance:"primary","data-testid":"toolbar-add-key-set",size:t.useActionOutside?"medium":"large",to:t.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(I.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("keySets.list.toolbar_actions.new_key_set")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:f})=>[e.createElementVNode("b",null,e.toDisplayString(f??"-"),1)]),tags:e.withCtx(({rowValue:f})=>[e.createVNode(e.unref(l.TableTags),{tags:f},null,8,["tags"])]),id:e.withCtx(({rowValue:f})=>[e.createVNode(ge,{text:f,truncate:""},null,8,["text"])]),actions:e.withCtx(({row:f})=>[e.createVNode(z,null,{default:e.withCtx(({copyToClipboard:T})=>[e.createVNode(K,{"data-testid":"action-entity-copy-id",onClick:ke=>p(f,T)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(z,null,{default:e.withCtx(({copyToClipboard:T})=>[e.createVNode(K,{"data-testid":"action-entity-copy-json",onClick:ke=>re(f,T)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canRetrieve(f)},{default:e.withCtx(()=>[e.createVNode(K,{"data-testid":"action-entity-view","has-divider":"",item:ce(f.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canEdit(f)},{default:e.withCtx(()=>[e.createVNode(K,{"data-testid":"action-entity-edit",item:de(f.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(l.PermissionsWrapper),{"auth-function":()=>t.canDelete(f)},{default:e.withCtx(()=>[e.createVNode(K,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:T=>pe(f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.actions.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!b.value&&t.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var f;return[e.createVNode(C,{"data-testid":"key-sets-entity-empty-state","icon-background":"",message:e.unref(a)("keySets.list.empty_state_v2.description"),title:e.unref(a)("keySets.list.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(I.KeyIcon),{decorative:""})]),action:e.withCtx(()=>[U.value?(e.openBlock(),e.createBlock(y,{key:0,"data-testid":"entity-create-button",onClick:me},{default:e.withCtx(()=>[e.createVNode(e.unref(I.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("keySets.list.empty_state_v2.create_cta")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(y,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:r[2]||(r[2]=T=>n.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(I.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("keySets.list.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(f=t.config)!=null&&f.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("keySets.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["message","title"])]}),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(l.EntityDeleteModal),{"action-pending":M.value,description:e.unref(a)("keySets.delete.description"),"entity-name":w.value&&(w.value.name||w.value.id),"entity-type":e.unref(l.EntityTypes).KeySet,error:G.value,title:e.unref(a)("keySets.delete.title"),visible:$.value,onCancel:ye,onProceed:ue},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),W=(t,S)=>{const u=t.__vccOpts||t;for(const[o,a]of S)u[o]=a;return u},ee=W(v,[["__scopeId","data-v-45a30a02"]]),te={class:"kong-ui-entities-key-sets-form"},oe=W(e.defineComponent({__name:"KeySetForm",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string"||!t.cancelRoute)},keySetId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(t,{emit:S}){var x;const u=S,o=t,a=L.useRouter(),{i18n:{t:m}}=F.useI18n(),{getMessageFromError:h}=l.useErrors(),{axiosInstance:k}=l.useAxios((x=o.config)==null?void 0:x.axiosRequestConfig),P=e.computed(()=>B.form[o.config.app].edit),_=e.computed(()=>o.keySetId?l.EntityBaseFormType.Edit:l.EntityBaseFormType.Create),c=e.reactive({fields:{name:"",tags:""},isReadonly:!1,errorMessage:""}),V=e.reactive({name:"",tags:""}),O=e.computed(()=>JSON.stringify(c.fields)!==JSON.stringify(V)&&!!c.fields.name),D=s=>{var d;c.fields.name=(s==null?void 0:s.name)||"",c.fields.tags=((d=s==null?void 0:s.tags)==null?void 0:d.join(", "))||"",Object.assign(V,c.fields)},b=()=>{a.push(o.config.cancelRoute)},E=e.computed(()=>{var d,i;let s=`${o.config.apiBaseUrl}${B.form[o.config.app][_.value]}`;return o.config.app==="konnect"?s=s.replace(/{controlPlaneId}/gi,((d=o.config)==null?void 0:d.controlPlaneId)||""):o.config.app==="kongManager"&&(s=s.replace(/\/{workspace}/gi,(i=o.config)!=null&&i.workspace?`/${o.config.workspace}`:"")),s=s.replace(/{id}/gi,o.keySetId),s}),N=e.computed(()=>{var s,d,i;return{name:c.fields.name,tags:((i=(d=(s=c.fields.tags)==null?void 0:s.split(","))==null?void 0:d.map(p=>String(p||"").trim()))==null?void 0:i.filter(p=>p!==""))||""}}),j=async()=>{var s,d;try{c.isReadonly=!0;let i;if(_.value==="create"?i=await k.post(E.value,N.value):_.value==="edit"&&(i=((s=o.config)==null?void 0:s.app)==="konnect"?await k.put(E.value,N.value):await k.patch(E.value,N.value)),i){const{data:p}=i;c.fields.name=(p==null?void 0:p.name)||"",c.fields.tags=((d=p==null?void 0:p.tags)==null?void 0:d.join(", "))||"",Object.assign(V,c.fields),u("update",i==null?void 0:i.data)}}catch(i){c.errorMessage=h(i),u("error",i)}finally{c.isReadonly=!1}};return(s,d)=>{const i=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(e.unref(l.EntityBaseForm),{"can-submit":O.value,config:t.config,"edit-id":t.keySetId,"entity-type":e.unref(l.SupportedEntityType).KeySet,"error-message":c.errorMessage,"fetch-url":P.value,"form-fields":N.value,"is-readonly":c.isReadonly,onCancel:b,"onFetch:error":d[2]||(d[2]=p=>s.$emit("error",p)),"onFetch:success":D,onLoading:d[3]||(d[3]=p=>s.$emit("loading",p)),onSubmit:j},{default:e.withCtx(()=>[e.createVNode(e.unref(l.EntityFormSection),{description:e.unref(m)("keySets.form.sections.general.description"),"has-divider":"",title:e.unref(m)("keySets.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:c.fields.name,"onUpdate:modelValue":d[0]||(d[0]=p=>c.fields.name=p),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-set-form-name",label:e.unref(m)("keySets.form.fields.name.label"),placeholder:e.unref(m)("keySets.form.fields.name.placeholder"),readonly:c.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(i,{modelValue:c.fields.tags,"onUpdate:modelValue":d[1]||(d[1]=p=>c.fields.tags=p),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"key-set-form-tags",help:e.unref(m)("keySets.form.fields.tags.help"),label:e.unref(m)("keySets.form.fields.tags.label"),"label-attributes":{info:e.unref(m)("keySets.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(m)("keySets.form.fields.tags.placeholder"),readonly:c.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-a4b01cc5"]]),ne={class:"kong-ui-entities-keys-entity-config-card"},ae=e.defineComponent({__name:"KeySetConfigCard",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string"||!t.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(t){const S=t,{i18n:{t:u}}=F.useI18n(),o=e.computed(()=>B.form[S.config.app].edit),a=e.ref({id:{},name:{},last_updated:{},created:{},tags:{tooltip:u("keySets.form.fields.tags.tooltip")}});return(m,h)=>(e.openBlock(),e.createElementBlock("div",ne,[e.createVNode(e.unref(l.EntityBaseConfigCard),{config:t.config,"config-card-doc":t.configCardDoc,"config-schema":a.value,"entity-type":e.unref(l.SupportedEntityType).KeySet,"fetch-url":o.value,"hide-title":t.hideTitle,"onFetch:error":h[0]||(h[0]=k=>m.$emit("fetch:error",k)),"onFetch:success":h[1]||(h[1]=k=>m.$emit("fetch:success",k)),onLoading:h[2]||(h[2]=k=>m.$emit("loading",k))},null,8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});g.KeySetConfigCard=ae,g.KeySetForm=oe,g.KeySetList=ee,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";.config-card-fieldset[data-v-5baf64ca]{border:solid 1px #e0e4ea;border:solid var(--kui-border-width-10, 1px) var(--kui-color-border, #e0e4ea);border-radius:4px;margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:4px}.config-card-fieldset-title[data-v-5baf64ca]{font-size:14px;font-size:var(--kui-font-size-30, 14px);padding:0 8px;padding:0 var(--kui-space-40, 8px);width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px;margin:var(--kui-space-0, 0px) var(--kui-space-60, 16px)}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-b6987b3c]{align-items:center;border-bottom:var(--v25a763c4);box-sizing:border-box;display:var(--v1ac90e12);padding:16px;padding:var(--kui-space-60, 16px);padding-left:0;width:100%}.config-card-details-row .config-card-details-label[data-v-b6987b3c]{box-sizing:border-box;padding-right:16px;padding-right:var(--kui-space-60, 16px);width:var(--v45a716ee)}.config-card-details-row .config-card-details-label label[data-v-b6987b3c]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-b6987b3c]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-b6987b3c]{min-width:0}.config-card-details-row .config-card-details-value[data-v-b6987b3c]{box-sizing:border-box;width:var(--v45a28b38)}.config-card-details-row .config-card-details-value .truncated[data-v-b6987b3c]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-b6987b3c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-b6987b3c] .k-copy:not(:last-of-type){margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.config-card-details-row .config-card-details-value .method-badge-array[data-v-b6987b3c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-b6987b3c]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-b6987b3c] .k-label{margin-bottom:0}.config-card-details-row[data-v-b6987b3c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-b6987b3c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-left-radius:var(--kui-border-radius-0, 0px);border-top-right-radius:0;border-top-right-radius:var(--kui-border-radius-0, 0px)}.json-endpoint{align-items:baseline;background-color:#000933;background-color:var(--kui-color-background-inverse, #000933);border-bottom:1px solid rgba(255,255,255,.2);border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border-inverse, rgba(255, 255, 255, .2));border-top-left-radius:8px;border-top-left-radius:var(--kui-border-radius-40, 8px);border-top-right-radius:8px;border-top-right-radius:var(--kui-border-radius-40, 8px);display:flex;padding:8px 0 8px 12px;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px) var(--kui-space-40, 8px) var(--kui-space-50, 12px)}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-bottom:var(--kui-space-0, 0px);padding-top:0;padding-top:var(--kui-space-0, 0px)}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v775b4bd8);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.deck-config .k-select[data-v-d4838dcc]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-config .k-code-block[data-v-d4838dcc]{margin-top:12px;margin-top:var(--kui-space-50, 12px)}.config-card-prop-section-title[data-v-64b3b239]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card .config-card-actions[data-v-2a91c722]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-2a91c722]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-2a91c722]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card[data-v-2a91c722]:not(:has(.config-card-details-after)) .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .config-card-details-after[data-v-2a91c722]{padding-top:16px;padding-top:var(--kui-space-60, 16px)}.kong-ui-entity-base-config-card .book-icon[data-v-2a91c722]{margin-left:8px;margin-left:var(--kui-space-40, 8px);padding:0;padding:var(--kui-space-0, 0px)}.kong-ui-entity-base-form[data-v-a447ea3f]{box-sizing:border-box;max-width:1536px;max-width:var(--kui-breakpoint-desktop, 1536px);width:100%}.kong-ui-entity-base-form[data-v-a447ea3f] .k-slideout-title{color:#000933!important;color:var(--kui-color-text, #000933)!important;font-size:24px!important;font-size:var(--kui-font-size-70, 24px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:32px!important;line-height:var(--kui-line-height-60, 32px)!important;margin-bottom:16px!important;margin-bottom:var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-a447ea3f] .k-card.content-card{padding:0 16px!important;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-a447ea3f] .tab-item>div.tab-link.has-panels{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:14px!important;font-size:var(--kui-font-size-30, 14px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:24px!important;line-height:var(--kui-line-height-40, 24px)!important}.kong-ui-entity-base-form[data-v-a447ea3f] .tab-item.active>div.tab-link.has-panels{color:#000933!important;color:var(--kui-color-text, #000933)!important;font-weight:600!important;font-weight:var(--kui-font-weight-semibold, 600)!important}.kong-ui-entity-base-form[data-v-a447ea3f] .slideout-content{overflow-y:unset!important}.kong-ui-entity-base-form.new-form-layout[data-v-a447ea3f]{border:none;padding:0}.kong-ui-entity-base-form.new-form-layout[data-v-a447ea3f]>.card-content>form>.form-actions{justify-content:flex-start;margin-top:20px;margin-top:var(--kui-space-70, 20px)}.kong-ui-entity-base-form.new-form-layout .form-error[data-v-a447ea3f]{margin:20px 0 0 16px;margin:var(--kui-space-70, 20px) 0 0 var(--kui-space-60, 16px)}.form-actions[data-v-a447ea3f]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px;margin-top:var(--kui-space-80, 24px)}.form-actions[data-v-a447ea3f] .k-button:last-of-type,.form-actions[data-v-a447ea3f] .k-button:nth-last-of-type(2){margin-inline-start:16px;margin-inline-start:var(--kui-space-60, 16px)}.form-actions-reverted[data-v-a447ea3f]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.kong-ui-entity-delete-modal .message[data-v-fc366e0c],.kong-ui-entity-delete-modal .description[data-v-fc366e0c]{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .message strong[data-v-fc366e0c]{font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-entity-delete-modal .description[data-v-fc366e0c]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-modal .body-stacked-copy .description[data-v-fc366e0c]{margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .description>p[data-v-fc366e0c]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal .body-stacked-copy .message[data-v-fc366e0c]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal[data-v-fc366e0c] .prompt-confirmation-text{line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-entity-delete-modal-stacked-copy[data-v-fc366e0c] .prompt-content+.prompt-confirmation-container{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-delete-error[data-v-fc366e0c]{margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-entity-filter-input[data-v-d3d2bd8b]{width:100%}.kong-ui-entity-filter-clear[data-v-d3d2bd8b]{cursor:pointer}.kong-ui-entity-filter[data-v-d3d2bd8b]{display:flex;position:relative}.kong-ui-entity-filter[data-v-d3d2bd8b] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-d3d2bd8b] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-d3d2bd8b]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-d3d2bd8b]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 4px 20px #e0e4ea;box-shadow:0 4px 20px var(--kui-color-border, #e0e4ea);left:0;margin-top:16px;padding:8px 0 12px;padding:var(--kui-space-40, 8px) 0 var(--kui-space-50, 12px);position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-d3d2bd8b]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:16px;line-height:var(--kui-line-height-20, 16px);list-style:none;margin:0 20px;margin:var(--kui-space-0, 0px) var(--kui-space-70, 20px);padding:16px 0;padding:var(--kui-space-60, 16px) 0;position:relative;white-space:nowrap}.menu-item-title[data-v-d3d2bd8b]{align-items:center;cursor:pointer;display:flex;line-height:24px;line-height:var(--kui-line-height-40, 24px)}.menu-item-title.expanded[data-v-d3d2bd8b]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633)}.menu-item-expand-icon[data-v-d3d2bd8b]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-d3d2bd8b]{transform:rotate(180deg)}.menu-item-indicator[data-v-d3d2bd8b]{background-color:#0044f4;background-color:var(--kui-color-background-primary, #0044f4);border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-d3d2bd8b]{align-items:center;display:flex;justify-content:space-between;margin-top:16px;margin-top:var(--kui-space-60, 16px)}.menu-item-body[data-v-d3d2bd8b] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-d3d2bd8b] .k-input{width:100%}.menu-item-body[data-v-d3d2bd8b] .k-select-input .input{font-size:12px}.menu-item-body[data-v-d3d2bd8b] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-d3d2bd8b]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-d3d2bd8b]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-d3d2bd8b]{padding:12px 20px 0;padding:var(--kui-space-50, 12px) var(--kui-space-70, 20px) 0}fieldset[data-v-ccd29028]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-ccd29028]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{column-gap:16px;column-gap:var(--kui-space-60, 16px);display:flex;flex-direction:column;padding-bottom:64px;padding-bottom:var(--kui-space-130, 64px);row-gap:12px;row-gap:var(--kui-space-50, 12px);width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-ccd29028]{height:fit-content;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-ccd29028]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028] p{color:#000933;color:var(--kui-color-text, #000933);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-ccd29028]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]>*:not(:first-child){margin-top:24px;margin-top:var(--kui-space-80, 24px)}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-ccd29028]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.kong-ui-entity-form-block .header[data-v-8e48a559]{align-items:flex-start;display:flex;gap:8px;gap:var(--kui-space-40, 8px)}.kong-ui-entity-form-block .step[data-v-8e48a559]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:1px solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;padding:var(--kui-space-20, 4px);width:32px}.kong-ui-entity-form-block .header-content[data-v-8e48a559]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);padding-top:4px;padding-top:var(--kui-space-20, 4px)}.kong-ui-entity-form-block .header-title[data-v-8e48a559]{color:#000933;color:var(--kui-color-text, #000933);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0}.kong-ui-entity-form-block .header-description[data-v-8e48a559]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0}.kong-ui-entity-form-block .header-extra[data-v-8e48a559]{align-items:center;display:flex;flex:0 0 auto;gap:8px;gap:var(--kui-space-40, 8px);justify-content:flex-end}.kong-ui-entity-form-block .content[data-v-8e48a559]{background:#f9fafb;background:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px);margin-top:20px;margin-top:var(--kui-space-70, 20px);padding:20px 24px;padding:var(--kui-space-70, 20px) var(--kui-space-80, 24px)}.kong-ui-entity-form-block.stepped .content[data-v-8e48a559]{margin-left:16px;margin-left:var(--kui-space-60, 16px)}.kong-ui-public-entity-link[data-v-a18d7efa]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-a18d7efa]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-a18d7efa]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-a18d7efa] .external-link-icon{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);margin-left:4px;margin-left:var(--kui-space-20, 4px);padding:2px;padding:var(--kui-space-10, 2px)}.kong-ui-public-entity-link .entity-link-label[data-v-a18d7efa]{display:inline-block;font-weight:400;font-weight:var(--kui-font-weight-regular, 400);max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-a18d7efa]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-a18d7efa]{margin-left:2px;margin-left:var(--kui-space-10, 2px)}.kong-ui-public-entity-empty-state[data-v-0b2e9081]{align-items:center;background-color:#fff;background-color:var(--kui-color-background, #ffffff);box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);gap:24px;gap:var(--kui-space-80, 24px);padding:64px 0;padding:var(--kui-space-130, 64px) var(--kui-space-0, 0px);width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-0b2e9081]{padding:64px 96px;padding:var(--kui-space-130, 64px) var(--kui-space-150, 96px)}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-0b2e9081]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-0b2e9081]{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-0b2e9081]{align-items:center;color:#000933;color:var(--kui-color-text, #000933);display:flex;font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:8px;gap:var(--kui-space-40, 8px);line-height:32px;line-height:var(--kui-line-height-60, 32px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-0b2e9081]{font-size:18px;font-size:var(--kui-font-size-50, 18px)}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-0b2e9081],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-0b2e9081]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-0b2e9081]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-0b2e9081]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-0b2e9081]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{display:flex;flex-wrap:wrap;gap:16px;gap:var(--kui-space-60, 16px);justify-content:space-around;margin-top:8px;margin-top:var(--kui-space-40, 8px);width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);gap:8px;gap:var(--kui-space-40, 8px);height:160px;padding:20px;padding:var(--kui-space-70, 20px);width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:flex;margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-0b2e9081] .kui-icon{height:20px!important;height:var(--kui-icon-size-40, 20px)!important;width:20px!important;width:var(--kui-icon-size-40, 20px)!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-title{font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-0b2e9081] .card-content{-webkit-box-orient:vertical;color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);padding-top:48px;padding-top:var(--kui-space-110, 48px);width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-0b2e9081]{width:calc(624px + kui-space-60);width:calc(2 * 312px + var(--kui-space-60, kui-space-60))}}.button-row[data-v-45a30a02]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-entities-key-sets-list[data-v-45a30a02]{width:100%}.kong-ui-entities-key-sets-list .kong-ui-entity-filter-input[data-v-45a30a02]{margin-right:12px;margin-right:var(--kui-space-50, 12px)}.kong-ui-entities-key-sets-form[data-v-a4b01cc5]{width:100%}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type { AxiosError } from 'axios';
|
|
3
|
-
import type { KongManagerKeySetEntityConfig, KonnectKeySetEntityConfig } from '../types';
|
|
4
|
-
import '@kong-ui-public/entities-shared/dist/style.css';
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
7
|
-
config: {
|
|
8
|
-
type: PropType<KonnectKeySetEntityConfig | KongManagerKeySetEntityConfig>;
|
|
9
|
-
required: true;
|
|
10
|
-
validator: (config: KonnectKeySetEntityConfig | KongManagerKeySetEntityConfig) => boolean;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* External link for documentation that determines visibility of Documentation button
|
|
14
|
-
*/
|
|
15
|
-
configCardDoc: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
required: false;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Control visibility of card title content
|
|
22
|
-
*/
|
|
23
|
-
hideTitle: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
28
|
-
loading: (isLoading: boolean) => any;
|
|
29
|
-
"fetch:success": (data: Record<string, any>) => any;
|
|
30
|
-
"fetch:error": (error: AxiosError<unknown, any>) => any;
|
|
31
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
33
|
-
config: {
|
|
34
|
-
type: PropType<KonnectKeySetEntityConfig | KongManagerKeySetEntityConfig>;
|
|
35
|
-
required: true;
|
|
36
|
-
validator: (config: KonnectKeySetEntityConfig | KongManagerKeySetEntityConfig) => boolean;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* External link for documentation that determines visibility of Documentation button
|
|
40
|
-
*/
|
|
41
|
-
configCardDoc: {
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
default: string;
|
|
44
|
-
required: false;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Control visibility of card title content
|
|
48
|
-
*/
|
|
49
|
-
hideTitle: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
}>> & Readonly<{
|
|
54
|
-
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
55
|
-
"onFetch:success"?: ((data: Record<string, any>) => any) | undefined;
|
|
56
|
-
"onFetch:error"?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
57
|
-
}>, {
|
|
58
|
-
configCardDoc: string;
|
|
59
|
-
hideTitle: boolean;
|
|
60
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
|
-
declare const _default: typeof __VLS_export;
|
|
62
|
-
export default _default;
|
|
63
|
-
//# sourceMappingURL=KeySetConfigCard.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeySetConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeySetConfigCard.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EACV,6BAA6B,EAC7B,yBAAyB,EAE1B,MAAM,UAAU,CAAA;AAIjB,OAAO,gDAAgD,CAAA;AAwHvD,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,yBAAyB,GAAG,6BAA6B,CAAC;;4BAE/D,yBAAyB,GAAG,6BAA6B,KAAG,OAAO;;IAQzF;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;IAtBH,oHAAoH;;cAElG,QAAQ,CAAC,yBAAyB,GAAG,6BAA6B,CAAC;;4BAE/D,yBAAyB,GAAG,6BAA6B,KAAG,OAAO;;IAQzF;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;;;4EAMH,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type { AxiosError } from 'axios';
|
|
3
|
-
import type { KonnectKeySetFormConfig, KongManagerKeySetFormConfig } from '../types';
|
|
4
|
-
import '@kong-ui-public/entities-shared/dist/style.css';
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
7
|
-
config: {
|
|
8
|
-
type: PropType<KonnectKeySetFormConfig | KongManagerKeySetFormConfig>;
|
|
9
|
-
required: true;
|
|
10
|
-
validator: (config: KonnectKeySetFormConfig | KongManagerKeySetFormConfig) => boolean;
|
|
11
|
-
};
|
|
12
|
-
/** If a valid Key Set ID is provided, it will put the form in Edit mode instead of Create */
|
|
13
|
-
keySetId: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
required: false;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
19
|
-
error: (error: AxiosError<unknown, any>) => any;
|
|
20
|
-
update: (data: Record<string, any>) => any;
|
|
21
|
-
loading: (isLoading: boolean) => any;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
24
|
-
config: {
|
|
25
|
-
type: PropType<KonnectKeySetFormConfig | KongManagerKeySetFormConfig>;
|
|
26
|
-
required: true;
|
|
27
|
-
validator: (config: KonnectKeySetFormConfig | KongManagerKeySetFormConfig) => boolean;
|
|
28
|
-
};
|
|
29
|
-
/** If a valid Key Set ID is provided, it will put the form in Edit mode instead of Create */
|
|
30
|
-
keySetId: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
required: false;
|
|
33
|
-
default: string;
|
|
34
|
-
};
|
|
35
|
-
}>> & Readonly<{
|
|
36
|
-
onError?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
37
|
-
onUpdate?: ((data: Record<string, any>) => any) | undefined;
|
|
38
|
-
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
39
|
-
}>, {
|
|
40
|
-
keySetId: string;
|
|
41
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
42
|
-
declare const _default: typeof __VLS_export;
|
|
43
|
-
export default _default;
|
|
44
|
-
//# sourceMappingURL=KeySetForm.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeySetForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeySetForm.vue"],"names":[],"mappings":"AA6NA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AAUtD,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAG5B,MAAM,UAAU,CAAA;AAIjB,OAAO,gDAAgD,CAAA;AAoTvD,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;IAQrF,6FAA6F;;;;;;;;;;;IAZ7F,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;IAQrF,6FAA6F;;;;;;;;;;;;4EAO7F,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type { AxiosError } from 'axios';
|
|
3
|
-
import type { KongManagerKeySetListConfig, KonnectKeySetListConfig, EntityRow, CopyEventPayload } from '../types';
|
|
4
|
-
import '@kong-ui-public/entities-shared/dist/style.css';
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
7
|
-
config: {
|
|
8
|
-
type: PropType<KonnectKeySetListConfig | KongManagerKeySetListConfig>;
|
|
9
|
-
required: true;
|
|
10
|
-
validator: (config: KonnectKeySetListConfig | KongManagerKeySetListConfig) => boolean;
|
|
11
|
-
};
|
|
12
|
-
cacheIdentifier: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
|
|
17
|
-
canCreate: {
|
|
18
|
-
type: PropType<() => boolean | Promise<boolean>>;
|
|
19
|
-
required: false;
|
|
20
|
-
default: () => Promise<boolean>;
|
|
21
|
-
};
|
|
22
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
|
|
23
|
-
canDelete: {
|
|
24
|
-
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
25
|
-
required: false;
|
|
26
|
-
default: () => Promise<boolean>;
|
|
27
|
-
};
|
|
28
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
|
|
29
|
-
canEdit: {
|
|
30
|
-
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
31
|
-
required: false;
|
|
32
|
-
default: () => Promise<boolean>;
|
|
33
|
-
};
|
|
34
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
|
|
35
|
-
canRetrieve: {
|
|
36
|
-
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
37
|
-
required: false;
|
|
38
|
-
default: () => Promise<boolean>;
|
|
39
|
-
};
|
|
40
|
-
/** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
|
|
41
|
-
useActionOutside: {
|
|
42
|
-
type: BooleanConstructor;
|
|
43
|
-
default: boolean;
|
|
44
|
-
};
|
|
45
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
46
|
-
error: (error: AxiosError<unknown, any>) => any;
|
|
47
|
-
"click:learn-more": () => any;
|
|
48
|
-
"copy:success": (payload: CopyEventPayload) => any;
|
|
49
|
-
"copy:error": (payload: CopyEventPayload) => any;
|
|
50
|
-
"delete:success": (keySet: EntityRow) => any;
|
|
51
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
-
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
53
|
-
config: {
|
|
54
|
-
type: PropType<KonnectKeySetListConfig | KongManagerKeySetListConfig>;
|
|
55
|
-
required: true;
|
|
56
|
-
validator: (config: KonnectKeySetListConfig | KongManagerKeySetListConfig) => boolean;
|
|
57
|
-
};
|
|
58
|
-
cacheIdentifier: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can create a new entity */
|
|
63
|
-
canCreate: {
|
|
64
|
-
type: PropType<() => boolean | Promise<boolean>>;
|
|
65
|
-
required: false;
|
|
66
|
-
default: () => Promise<boolean>;
|
|
67
|
-
};
|
|
68
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can delete a given entity */
|
|
69
|
-
canDelete: {
|
|
70
|
-
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
71
|
-
required: false;
|
|
72
|
-
default: () => Promise<boolean>;
|
|
73
|
-
};
|
|
74
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can edit a given entity */
|
|
75
|
-
canEdit: {
|
|
76
|
-
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
77
|
-
required: false;
|
|
78
|
-
default: () => Promise<boolean>;
|
|
79
|
-
};
|
|
80
|
-
/** A synchronous or asynchronous function, that returns a boolean, that evaluates if the user can retrieve (view details) a given entity */
|
|
81
|
-
canRetrieve: {
|
|
82
|
-
type: PropType<(row: EntityRow) => boolean | Promise<boolean>>;
|
|
83
|
-
required: false;
|
|
84
|
-
default: () => Promise<boolean>;
|
|
85
|
-
};
|
|
86
|
-
/** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
|
|
87
|
-
useActionOutside: {
|
|
88
|
-
type: BooleanConstructor;
|
|
89
|
-
default: boolean;
|
|
90
|
-
};
|
|
91
|
-
}>> & Readonly<{
|
|
92
|
-
onError?: ((error: AxiosError<unknown, any>) => any) | undefined;
|
|
93
|
-
"onClick:learn-more"?: (() => any) | undefined;
|
|
94
|
-
"onCopy:success"?: ((payload: CopyEventPayload) => any) | undefined;
|
|
95
|
-
"onCopy:error"?: ((payload: CopyEventPayload) => any) | undefined;
|
|
96
|
-
"onDelete:success"?: ((keySet: EntityRow) => any) | undefined;
|
|
97
|
-
}>, {
|
|
98
|
-
cacheIdentifier: string;
|
|
99
|
-
canCreate: () => boolean | Promise<boolean>;
|
|
100
|
-
canDelete: (row: EntityRow) => boolean | Promise<boolean>;
|
|
101
|
-
canEdit: (row: EntityRow) => boolean | Promise<boolean>;
|
|
102
|
-
canRetrieve: (row: EntityRow) => boolean | Promise<boolean>;
|
|
103
|
-
useActionOutside: boolean;
|
|
104
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
105
|
-
declare const _default: typeof __VLS_export;
|
|
106
|
-
export default _default;
|
|
107
|
-
//# sourceMappingURL=KeySetList.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeySetList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KeySetList.vue"],"names":[],"mappings":"AAkiBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAkBvC,OAAO,KAAK,EACV,2BAA2B,EAC3B,uBAAuB,EACvB,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;AAo8BvD,QAAA,MAAM,YAAY;IAGhB,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;;;;;IAYrF,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;IAxCjH,oHAAoH;;cAElG,QAAQ,CAAC,uBAAuB,GAAG,2BAA2B,CAAC;;4BAE3D,uBAAuB,GAAG,2BAA2B,KAAG,OAAO;;;;;;IAYrF,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;;;;;;;;;qBAtB9E,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;4EAU3E,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;;;;AAG/B,wBAEC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createI18n, i18nTComponent } from '@kong-ui-public/i18n';
|
|
2
|
-
import english from '../locales/en.json';
|
|
3
|
-
interface UseI18nReturn {
|
|
4
|
-
i18n: ReturnType<typeof createI18n<typeof english>>;
|
|
5
|
-
i18nT: ReturnType<typeof i18nTComponent<typeof english>>;
|
|
6
|
-
}
|
|
7
|
-
export default function useI18n(): UseI18nReturn;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../../src/composables/useI18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,OAAO,MAAM,oBAAoB,CAAA;AAExC,UAAU,aAAa;IACrB,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC,CAAA;CACzD;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,aAAa,CAO/C"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import KeySetList from './components/KeySetList.vue';
|
|
2
|
-
import KeySetForm from './components/KeySetForm.vue';
|
|
3
|
-
import KeySetConfigCard from './components/KeySetConfigCard.vue';
|
|
4
|
-
export { KeySetList, KeySetForm, KeySetConfigCard };
|
|
5
|
-
export * from './types';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,6BAA6B,CAAA;AACpD,OAAO,UAAU,MAAM,6BAA6B,CAAA;AACpD,OAAO,gBAAgB,MAAM,mCAAmC,CAAA;AAEhE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA;AAEnD,cAAc,SAAS,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
list: {
|
|
3
|
-
konnect: string;
|
|
4
|
-
kongManager: string;
|
|
5
|
-
};
|
|
6
|
-
form: {
|
|
7
|
-
konnect: {
|
|
8
|
-
create: string;
|
|
9
|
-
edit: string;
|
|
10
|
-
};
|
|
11
|
-
kongManager: {
|
|
12
|
-
create: string;
|
|
13
|
-
edit: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
18
|
-
//# sourceMappingURL=key-sets-endpoints.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-sets-endpoints.d.ts","sourceRoot":"","sources":["../../src/key-sets-endpoints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,wBAeC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { KonnectBaseEntityConfig, KongManagerBaseEntityConfig, ConfigurationSchemaItem } from '@kong-ui-public/entities-shared';
|
|
2
|
-
/** Konnect KeySet entity config */
|
|
3
|
-
export interface KonnectKeySetEntityConfig extends KonnectBaseEntityConfig {
|
|
4
|
-
}
|
|
5
|
-
/** Kong Manager KeySet entity config */
|
|
6
|
-
export interface KongManagerKeySetEntityConfig extends KongManagerBaseEntityConfig {
|
|
7
|
-
}
|
|
8
|
-
export interface KeySetConfigurationSchema {
|
|
9
|
-
id: ConfigurationSchemaItem;
|
|
10
|
-
name: ConfigurationSchemaItem;
|
|
11
|
-
last_updated: ConfigurationSchemaItem;
|
|
12
|
-
created: ConfigurationSchemaItem;
|
|
13
|
-
tags: ConfigurationSchemaItem;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=key-set-config-card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-set-config-card.d.ts","sourceRoot":"","sources":["../../../src/types/key-set-config-card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEpI,mCAAmC;AACnC,MAAM,WAAW,yBAA0B,SAAQ,uBAAuB;CAAG;AAE7E,wCAAwC;AACxC,MAAM,WAAW,6BAA8B,SAAQ,2BAA2B;CAAG;AAErF,MAAM,WAAW,yBAAyB;IAExC,EAAE,EAAE,uBAAuB,CAAA;IAC3B,IAAI,EAAE,uBAAuB,CAAA;IAC7B,YAAY,EAAE,uBAAuB,CAAA;IACrC,OAAO,EAAE,uBAAuB,CAAA;IAChC,IAAI,EAAE,uBAAuB,CAAA;CAC9B"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
-
import type { KonnectBaseFormConfig, KongManagerBaseFormConfig } from '@kong-ui-public/entities-shared';
|
|
3
|
-
/** Konnect Key Set form config */
|
|
4
|
-
export interface KonnectKeySetFormConfig extends KonnectBaseFormConfig {
|
|
5
|
-
/** Route to return to if canceling create/edit a Key Set */
|
|
6
|
-
cancelRoute: RouteLocationRaw;
|
|
7
|
-
}
|
|
8
|
-
/** Kong Manager Key Set form config */
|
|
9
|
-
export interface KongManagerKeySetFormConfig extends KongManagerBaseFormConfig {
|
|
10
|
-
/** Route to return to if canceling create/edit a Key Set */
|
|
11
|
-
cancelRoute: RouteLocationRaw;
|
|
12
|
-
}
|
|
13
|
-
export interface KeySetFormFields {
|
|
14
|
-
name: string;
|
|
15
|
-
tags?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface KeySetFormState {
|
|
18
|
-
/** Form fields */
|
|
19
|
-
fields: KeySetFormFields;
|
|
20
|
-
/** Form readonly state (only used when saving entity details) */
|
|
21
|
-
isReadonly: boolean;
|
|
22
|
-
/** The error message to show on the form */
|
|
23
|
-
errorMessage: string;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=key-set-form.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-set-form.d.ts","sourceRoot":"","sources":["../../../src/types/key-set-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAEvG,kCAAkC;AAClC,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE,4DAA4D;IAC5D,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,uCAAuC;AACvC,MAAM,WAAW,2BAA4B,SAAQ,yBAAyB;IAC5E,4DAA4D;IAC5D,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,kBAAkB;IAClB,MAAM,EAAE,gBAAgB,CAAA;IACxB,iEAAiE;IACjE,UAAU,EAAE,OAAO,CAAA;IACnB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
-
import type { FilterSchema, KongManagerBaseTableConfig, KonnectBaseTableConfig } from '@kong-ui-public/entities-shared';
|
|
3
|
-
export interface BaseKeySetListConfig {
|
|
4
|
-
/** Route for creating a key set */
|
|
5
|
-
createRoute: RouteLocationRaw;
|
|
6
|
-
/** A function that returns the route for viewing a key set */
|
|
7
|
-
getViewRoute: (id: string) => RouteLocationRaw;
|
|
8
|
-
/** A function that returns the route for editing a key set */
|
|
9
|
-
getEditRoute: (id: string) => RouteLocationRaw;
|
|
10
|
-
}
|
|
11
|
-
/** Konnect key list config */
|
|
12
|
-
export interface KonnectKeySetListConfig extends KonnectBaseTableConfig, BaseKeySetListConfig {
|
|
13
|
-
}
|
|
14
|
-
/** Kong Manager key list config */
|
|
15
|
-
export interface KongManagerKeySetListConfig extends KongManagerBaseTableConfig, BaseKeySetListConfig {
|
|
16
|
-
/** FilterSchema for fuzzy match */
|
|
17
|
-
filterSchema?: FilterSchema;
|
|
18
|
-
}
|
|
19
|
-
export interface EntityRow extends Record<string, any> {
|
|
20
|
-
id: string;
|
|
21
|
-
name?: string;
|
|
22
|
-
kid: string;
|
|
23
|
-
}
|
|
24
|
-
/** Copy field event payload */
|
|
25
|
-
export interface CopyEventPayload {
|
|
26
|
-
/** The entity row */
|
|
27
|
-
entity: EntityRow;
|
|
28
|
-
/** The field being copied. If omitted, the entity JSON is being copied. */
|
|
29
|
-
field?: string;
|
|
30
|
-
/** The toaster message */
|
|
31
|
-
message: string;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=key-set-list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"key-set-list.d.ts","sourceRoot":"","sources":["../../../src/types/key-set-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAEvH,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,WAAW,EAAE,gBAAgB,CAAA;IAC7B,8DAA8D;IAC9D,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IAC9C,8DAA8D;IAC9D,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;CAC/C;AAED,8BAA8B;AAC9B,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB,EAAE,oBAAoB;CAAG;AAEhG,mCAAmC;AACnC,MAAM,WAAW,2BAA4B,SAAQ,0BAA0B,EAAE,oBAAoB;IACnG,mCAAmC;IACnC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACpD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,qBAAqB;IACrB,MAAM,EAAE,SAAS,CAAA;IACjB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB"}
|