@kong-ui-public/entities-redis-configurations 1.5.9-pr.2622.e4dc8379f.0 → 1.5.9-pr.2633.a64f8624d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-redis-configurations.es.js +131 -130
- package/dist/entities-redis-configurations.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigurationSelector.vue.d.ts +10 -0
- package/dist/types/components/RedisConfigurationSelector.vue.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -684,12 +684,12 @@ function We(e, t, n, o, i, a) {
|
|
|
684
684
|
return b;
|
|
685
685
|
a.set(e, u), fl(e) ? e.forEach(function(h) {
|
|
686
686
|
u.add(We(h, t, n, h, e, a));
|
|
687
|
-
}) : dl(e) && e.forEach(function(h,
|
|
688
|
-
u.set(
|
|
687
|
+
}) : dl(e) && e.forEach(function(h, f) {
|
|
688
|
+
u.set(f, We(h, t, n, f, e, a));
|
|
689
689
|
});
|
|
690
690
|
var T = Wn, y = c ? void 0 : T(e);
|
|
691
|
-
return hr(y || e, function(h,
|
|
692
|
-
y && (
|
|
691
|
+
return hr(y || e, function(h, f) {
|
|
692
|
+
y && (f = h, h = e[f]), Rn(u, f, We(h, t, n, f, e, a));
|
|
693
693
|
}), u;
|
|
694
694
|
}
|
|
695
695
|
var Ll = "__lodash_hash_undefined__";
|
|
@@ -725,9 +725,9 @@ function Yn(e, t, n, o, i, a) {
|
|
|
725
725
|
return d == t && b == e;
|
|
726
726
|
var T = -1, y = !0, h = n & Fl ? new Ye() : void 0;
|
|
727
727
|
for (a.set(e, t), a.set(t, e); ++T < c; ) {
|
|
728
|
-
var
|
|
728
|
+
var f = e[T], C = t[T];
|
|
729
729
|
if (o)
|
|
730
|
-
var s = u ? o(C,
|
|
730
|
+
var s = u ? o(C, f, T, t, e, a) : o(f, C, T, e, t, a);
|
|
731
731
|
if (s !== void 0) {
|
|
732
732
|
if (s)
|
|
733
733
|
continue;
|
|
@@ -736,13 +736,13 @@ function Yn(e, t, n, o, i, a) {
|
|
|
736
736
|
}
|
|
737
737
|
if (h) {
|
|
738
738
|
if (!Ul(t, function(k, m) {
|
|
739
|
-
if (!Nl(h, m) && (
|
|
739
|
+
if (!Nl(h, m) && (f === k || i(f, k, n, o, a)))
|
|
740
740
|
return h.push(m);
|
|
741
741
|
})) {
|
|
742
742
|
y = !1;
|
|
743
743
|
break;
|
|
744
744
|
}
|
|
745
|
-
} else if (!(
|
|
745
|
+
} else if (!(f === C || i(f, C, n, o, a))) {
|
|
746
746
|
y = !1;
|
|
747
747
|
break;
|
|
748
748
|
}
|
|
@@ -807,9 +807,9 @@ function ss(e, t, n, o, i, a) {
|
|
|
807
807
|
if (!(u ? y in t : ls.call(t, y)))
|
|
808
808
|
return !1;
|
|
809
809
|
}
|
|
810
|
-
var h = a.get(e),
|
|
811
|
-
if (h &&
|
|
812
|
-
return h == t &&
|
|
810
|
+
var h = a.get(e), f = a.get(t);
|
|
811
|
+
if (h && f)
|
|
812
|
+
return h == t && f == e;
|
|
813
813
|
var C = !0;
|
|
814
814
|
a.set(e, t), a.set(t, e);
|
|
815
815
|
for (var s = u; ++T < l; ) {
|
|
@@ -842,9 +842,9 @@ function cs(e, t, n, o, i, a) {
|
|
|
842
842
|
if (y && !b)
|
|
843
843
|
return a || (a = new de()), u || Dn(e) ? Yn(e, t, n, o, i, a) : rs(e, t, l, n, o, i, a);
|
|
844
844
|
if (!(n & ds)) {
|
|
845
|
-
var h = b && an.call(e, "__wrapped__"),
|
|
846
|
-
if (h ||
|
|
847
|
-
var C = h ? e.value() : e, s =
|
|
845
|
+
var h = b && an.call(e, "__wrapped__"), f = T && an.call(t, "__wrapped__");
|
|
846
|
+
if (h || f) {
|
|
847
|
+
var C = h ? e.value() : e, s = f ? t.value() : t;
|
|
848
848
|
return a || (a = new de()), i(C, s, n, o, a);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
@@ -1155,7 +1155,7 @@ const Zn = {
|
|
|
1155
1155
|
default:
|
|
1156
1156
|
throw new Error("Invalid redis type");
|
|
1157
1157
|
}
|
|
1158
|
-
}),
|
|
1158
|
+
}), f = H(() => {
|
|
1159
1159
|
let m = `${n.apiBaseUrl}${ke.form[n.app][c.value]}`;
|
|
1160
1160
|
return n.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, (n == null ? void 0 : n.controlPlaneId) || "") : n.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, n != null && n.workspace ? `/${n.workspace}` : "")), m = m.replace(/{id}/gi, t || ""), m;
|
|
1161
1161
|
}), C = H(() => {
|
|
@@ -1178,7 +1178,7 @@ const Zn = {
|
|
|
1178
1178
|
return n.app === "konnect" && (m = {
|
|
1179
1179
|
...m,
|
|
1180
1180
|
config: E.removeNullValues(m.config)
|
|
1181
|
-
}), c.value === lt.Create ? await a.post(
|
|
1181
|
+
}), c.value === lt.Create ? await a.post(f.value, m) : n.app === "konnect" ? await a.put(f.value, m) : await a.patch(f.value, m);
|
|
1182
1182
|
} catch (m) {
|
|
1183
1183
|
throw l.errorMessage = u(m), l.readonly = !1, m;
|
|
1184
1184
|
}
|
|
@@ -1909,8 +1909,8 @@ var dn = function(e, t, n, o) {
|
|
|
1909
1909
|
return y.key === e;
|
|
1910
1910
|
}), b.forEach(function(y, h) {
|
|
1911
1911
|
typeof l.data < "u" && (y.data = l.data), y.error = l.error, y.isValidating = l.isValidating, y.isLoading = l.isValidating;
|
|
1912
|
-
var
|
|
1913
|
-
|
|
1912
|
+
var f = h === b.length - 1;
|
|
1913
|
+
f || delete b[h];
|
|
1914
1914
|
}), b = b.filter(Boolean)), [2, l];
|
|
1915
1915
|
}
|
|
1916
1916
|
});
|
|
@@ -1934,7 +1934,7 @@ function ed() {
|
|
|
1934
1934
|
isLoading: !0,
|
|
1935
1935
|
key: null
|
|
1936
1936
|
}));
|
|
1937
|
-
var
|
|
1937
|
+
var f = function(m, _) {
|
|
1938
1938
|
return xe(e, void 0, void 0, function() {
|
|
1939
1939
|
var I, P, W, re, ye, le, X, _e = this;
|
|
1940
1940
|
return Re(this, function(Z) {
|
|
@@ -1960,7 +1960,7 @@ function ed() {
|
|
|
1960
1960
|
case 3:
|
|
1961
1961
|
me.sent(), me.label = 4;
|
|
1962
1962
|
case 4:
|
|
1963
|
-
return h.isValidating = !1, h.isLoading = !1, mt.delete(P), h.error !== void 0 && (Oe = !u && a.shouldRetryOnError && (_ ? _.shouldRetryOnError : !0), Oe && Zs(
|
|
1963
|
+
return h.isValidating = !1, h.isLoading = !1, mt.delete(P), h.error !== void 0 && (Oe = !u && a.shouldRetryOnError && (_ ? _.shouldRetryOnError : !0), Oe && Zs(f, _ ? _.errorRetryCount : 1, a)), [
|
|
1964
1964
|
2
|
|
1965
1965
|
/*return*/
|
|
1966
1966
|
];
|
|
@@ -2002,7 +2002,7 @@ function ed() {
|
|
|
2002
2002
|
}, C = function() {
|
|
2003
2003
|
return xe(e, void 0, void 0, function() {
|
|
2004
2004
|
return Re(this, function(m) {
|
|
2005
|
-
return [2,
|
|
2005
|
+
return [2, f(null, { shouldRetryOnError: !1 })];
|
|
2006
2006
|
});
|
|
2007
2007
|
});
|
|
2008
2008
|
}, s = null;
|
|
@@ -2012,7 +2012,7 @@ function ed() {
|
|
|
2012
2012
|
return Re(this, function(_) {
|
|
2013
2013
|
switch (_.label) {
|
|
2014
2014
|
case 0:
|
|
2015
|
-
return !h.error && a.isOnline() ? [4,
|
|
2015
|
+
return !h.error && a.isOnline() ? [4, f()] : [3, 2];
|
|
2016
2016
|
case 1:
|
|
2017
2017
|
return _.sent(), [3, 3];
|
|
2018
2018
|
case 2:
|
|
@@ -2036,14 +2036,14 @@ function ed() {
|
|
|
2036
2036
|
});
|
|
2037
2037
|
try {
|
|
2038
2038
|
Te(y, function(m) {
|
|
2039
|
-
bi(y) || (y.value = m), h.key = m, h.isValidating = !!m, Xs(y.value, h, T), !b && !c && y.value &&
|
|
2039
|
+
bi(y) || (y.value = m), h.key = m, h.isValidating = !!m, Xs(y.value, h, T), !b && !c && y.value && f(), c = !1;
|
|
2040
2040
|
}, {
|
|
2041
2041
|
immediate: !0
|
|
2042
2042
|
});
|
|
2043
2043
|
} catch {
|
|
2044
2044
|
}
|
|
2045
2045
|
var k = se(se({}, yi(h)), { mutate: function(m, _) {
|
|
2046
|
-
return
|
|
2046
|
+
return f(m, se(se({}, _), { forceRevalidate: !0 }));
|
|
2047
2047
|
} });
|
|
2048
2048
|
return k;
|
|
2049
2049
|
}
|
|
@@ -2155,7 +2155,7 @@ const Ne = (e) => {
|
|
|
2155
2155
|
{ label: i("form.options.sentinel_role.master"), value: "master" },
|
|
2156
2156
|
{ label: i("form.options.sentinel_role.slave"), value: "slave" },
|
|
2157
2157
|
{ label: i("form.options.sentinel_role.any"), value: "any" }
|
|
2158
|
-
],
|
|
2158
|
+
], f = (U) => {
|
|
2159
2159
|
const v = U.value === w.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
2160
2160
|
return `${U.label}${v}`;
|
|
2161
2161
|
}, C = () => n.disabledPartialType && Xe($e) === n.disabledPartialType ? n.disabledPartialType === G.REDIS_CE ? w.HOST_PORT_EE : w.HOST_PORT_CE : $e, {
|
|
@@ -2220,7 +2220,7 @@ const Ne = (e) => {
|
|
|
2220
2220
|
"is-readonly": r(s).readonly,
|
|
2221
2221
|
"slidout-top-offset": e.slidoutTopOffset,
|
|
2222
2222
|
onCancel: Oe,
|
|
2223
|
-
onCodeBlockTabChange: v[29] || (v[29] = (
|
|
2223
|
+
onCodeBlockTabChange: v[29] || (v[29] = (p) => d.value = p),
|
|
2224
2224
|
"onFetch:error": rt,
|
|
2225
2225
|
"onFetch:success": Be,
|
|
2226
2226
|
onLoading: me,
|
|
@@ -2254,7 +2254,7 @@ const Ne = (e) => {
|
|
|
2254
2254
|
default: S(() => [
|
|
2255
2255
|
g(Ie, {
|
|
2256
2256
|
modelValue: r(I),
|
|
2257
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
2257
|
+
"onUpdate:modelValue": v[0] || (v[0] = (p) => _i(I) ? I.value = p : null),
|
|
2258
2258
|
"data-testid": "redis-type-select",
|
|
2259
2259
|
disabled: r(_) && r(I) === r(w).HOST_PORT_CE,
|
|
2260
2260
|
items: y.value,
|
|
@@ -2263,8 +2263,8 @@ const Ne = (e) => {
|
|
|
2263
2263
|
readonly: r(s).readonly,
|
|
2264
2264
|
required: ""
|
|
2265
2265
|
}, {
|
|
2266
|
-
"selected-item-template": S(({ item:
|
|
2267
|
-
ne(N(p
|
|
2266
|
+
"selected-item-template": S(({ item: p }) => [
|
|
2267
|
+
ne(N(f(p)), 1)
|
|
2268
2268
|
]),
|
|
2269
2269
|
_: 1
|
|
2270
2270
|
}, 8, ["modelValue", "disabled", "items", "label", "readonly"])
|
|
@@ -2279,7 +2279,7 @@ const Ne = (e) => {
|
|
|
2279
2279
|
default: S(() => [
|
|
2280
2280
|
g(B, {
|
|
2281
2281
|
modelValue: r(s).fields.name,
|
|
2282
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
2282
|
+
"onUpdate:modelValue": v[1] || (v[1] = (p) => r(s).fields.name = p),
|
|
2283
2283
|
modelModifiers: { trim: !0 },
|
|
2284
2284
|
"data-testid": "redis-name-input",
|
|
2285
2285
|
disabled: r(_),
|
|
@@ -2290,7 +2290,7 @@ const Ne = (e) => {
|
|
|
2290
2290
|
}, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
|
|
2291
2291
|
g(B, {
|
|
2292
2292
|
modelValue: r(s).fields.tags,
|
|
2293
|
-
"onUpdate:modelValue": v[2] || (v[2] = (
|
|
2293
|
+
"onUpdate:modelValue": v[2] || (v[2] = (p) => r(s).fields.tags = p),
|
|
2294
2294
|
modelModifiers: { trim: !0 },
|
|
2295
2295
|
"data-testid": "redis-tags-input",
|
|
2296
2296
|
help: r(i)("form.fields.tags.help"),
|
|
@@ -2314,7 +2314,7 @@ const Ne = (e) => {
|
|
|
2314
2314
|
default: S(() => [
|
|
2315
2315
|
g(B, {
|
|
2316
2316
|
modelValue: r(s).fields.config.sentinel_master,
|
|
2317
|
-
"onUpdate:modelValue": v[3] || (v[3] = (
|
|
2317
|
+
"onUpdate:modelValue": v[3] || (v[3] = (p) => r(s).fields.config.sentinel_master = p),
|
|
2318
2318
|
"data-testid": "redis-sentinel-master-input",
|
|
2319
2319
|
label: r(i)("form.fields.sentinel_master.label"),
|
|
2320
2320
|
"label-attributes": {
|
|
@@ -2326,7 +2326,7 @@ const Ne = (e) => {
|
|
|
2326
2326
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2327
2327
|
g(Ie, {
|
|
2328
2328
|
modelValue: r(s).fields.config.sentinel_role,
|
|
2329
|
-
"onUpdate:modelValue": v[4] || (v[4] = (
|
|
2329
|
+
"onUpdate:modelValue": v[4] || (v[4] = (p) => r(s).fields.config.sentinel_role = p),
|
|
2330
2330
|
"data-testid": "redis-sentinel-role-select",
|
|
2331
2331
|
items: h,
|
|
2332
2332
|
"kpop-attributes": { "data-testid": "redis-sentinel-role-select-popover" },
|
|
@@ -2340,12 +2340,12 @@ const Ne = (e) => {
|
|
|
2340
2340
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2341
2341
|
g(Hs, {
|
|
2342
2342
|
modelValue: r(s).fields.config.sentinel_nodes,
|
|
2343
|
-
"onUpdate:modelValue": v[5] || (v[5] = (
|
|
2343
|
+
"onUpdate:modelValue": v[5] || (v[5] = (p) => r(s).fields.config.sentinel_nodes = p),
|
|
2344
2344
|
readonly: r(s).readonly
|
|
2345
2345
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2346
2346
|
g(B, {
|
|
2347
2347
|
modelValue: r(s).fields.config.sentinel_username,
|
|
2348
|
-
"onUpdate:modelValue": v[6] || (v[6] = (
|
|
2348
|
+
"onUpdate:modelValue": v[6] || (v[6] = (p) => r(s).fields.config.sentinel_username = p),
|
|
2349
2349
|
modelModifiers: { trim: !0 },
|
|
2350
2350
|
label: r(i)("form.fields.sentinel_username.label"),
|
|
2351
2351
|
"label-attributes": {
|
|
@@ -2357,13 +2357,13 @@ const Ne = (e) => {
|
|
|
2357
2357
|
g(r(Ke), {
|
|
2358
2358
|
class: "secret-picker-provider",
|
|
2359
2359
|
disabled: r(s).readonly,
|
|
2360
|
-
update: (
|
|
2360
|
+
update: (p) => r(s).fields.config.sentinel_username = p,
|
|
2361
2361
|
value: r(s).fields.config.sentinel_username,
|
|
2362
|
-
onOpen: v[7] || (v[7] = (
|
|
2362
|
+
onOpen: v[7] || (v[7] = (p, K) => b(p, K))
|
|
2363
2363
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2364
2364
|
g(B, {
|
|
2365
2365
|
modelValue: r(s).fields.config.sentinel_password,
|
|
2366
|
-
"onUpdate:modelValue": v[8] || (v[8] = (
|
|
2366
|
+
"onUpdate:modelValue": v[8] || (v[8] = (p) => r(s).fields.config.sentinel_password = p),
|
|
2367
2367
|
modelModifiers: { trim: !0 },
|
|
2368
2368
|
label: r(i)("form.fields.sentinel_password.label"),
|
|
2369
2369
|
"label-attributes": {
|
|
@@ -2377,9 +2377,9 @@ const Ne = (e) => {
|
|
|
2377
2377
|
g(r(Ke), {
|
|
2378
2378
|
class: "secret-picker-provider",
|
|
2379
2379
|
disabled: r(s).readonly,
|
|
2380
|
-
update: (
|
|
2380
|
+
update: (p) => r(s).fields.config.sentinel_password = p,
|
|
2381
2381
|
value: r(s).fields.config.sentinel_password,
|
|
2382
|
-
onOpen: v[9] || (v[9] = (
|
|
2382
|
+
onOpen: v[9] || (v[9] = (p, K) => b(p, K))
|
|
2383
2383
|
}, null, 8, ["disabled", "update", "value"])
|
|
2384
2384
|
]),
|
|
2385
2385
|
_: 1
|
|
@@ -2393,12 +2393,12 @@ const Ne = (e) => {
|
|
|
2393
2393
|
default: S(() => [
|
|
2394
2394
|
g(Bs, {
|
|
2395
2395
|
modelValue: r(s).fields.config.cluster_nodes,
|
|
2396
|
-
"onUpdate:modelValue": v[10] || (v[10] = (
|
|
2396
|
+
"onUpdate:modelValue": v[10] || (v[10] = (p) => r(s).fields.config.cluster_nodes = p),
|
|
2397
2397
|
readonly: r(s).readonly
|
|
2398
2398
|
}, null, 8, ["modelValue", "readonly"]),
|
|
2399
2399
|
g(B, {
|
|
2400
2400
|
modelValue: r(s).fields.config.cluster_max_redirections,
|
|
2401
|
-
"onUpdate:modelValue": v[11] || (v[11] = (
|
|
2401
|
+
"onUpdate:modelValue": v[11] || (v[11] = (p) => r(s).fields.config.cluster_max_redirections = p),
|
|
2402
2402
|
"data-testid": "redis-cluster-max-redirections-input",
|
|
2403
2403
|
label: r(i)("form.fields.cluster_max_redirections.label"),
|
|
2404
2404
|
"label-attributes": {
|
|
@@ -2420,7 +2420,7 @@ const Ne = (e) => {
|
|
|
2420
2420
|
r(I) === r(w).HOST_PORT_CE || r(I) === r(w).HOST_PORT_EE ? (R(), q(B, {
|
|
2421
2421
|
key: 0,
|
|
2422
2422
|
modelValue: r(s).fields.config.host,
|
|
2423
|
-
"onUpdate:modelValue": v[12] || (v[12] = (
|
|
2423
|
+
"onUpdate:modelValue": v[12] || (v[12] = (p) => r(s).fields.config.host = p),
|
|
2424
2424
|
modelModifiers: { trim: !0 },
|
|
2425
2425
|
"data-testid": "redis-host-input",
|
|
2426
2426
|
label: r(i)("form.fields.host.label"),
|
|
@@ -2433,7 +2433,7 @@ const Ne = (e) => {
|
|
|
2433
2433
|
r(I) === r(w).HOST_PORT_CE || r(I) === r(w).HOST_PORT_EE ? (R(), q(B, {
|
|
2434
2434
|
key: 1,
|
|
2435
2435
|
modelValue: r(s).fields.config.port,
|
|
2436
|
-
"onUpdate:modelValue": v[13] || (v[13] = (
|
|
2436
|
+
"onUpdate:modelValue": v[13] || (v[13] = (p) => r(s).fields.config.port = p),
|
|
2437
2437
|
modelModifiers: { trim: !0 },
|
|
2438
2438
|
"data-testid": "redis-port-input",
|
|
2439
2439
|
label: r(i)("form.fields.port.label"),
|
|
@@ -2447,7 +2447,7 @@ const Ne = (e) => {
|
|
|
2447
2447
|
r(I) === r(w).HOST_PORT_EE ? (R(), q(O, {
|
|
2448
2448
|
key: 2,
|
|
2449
2449
|
modelValue: r(s).fields.config.connection_is_proxied,
|
|
2450
|
-
"onUpdate:modelValue": v[14] || (v[14] = (
|
|
2450
|
+
"onUpdate:modelValue": v[14] || (v[14] = (p) => r(s).fields.config.connection_is_proxied = p),
|
|
2451
2451
|
"data-testid": "redis-connection-is-proxied-checkbox",
|
|
2452
2452
|
disabled: r(s).readonly,
|
|
2453
2453
|
label: r(i)("form.fields.connection_is_proxied.label"),
|
|
@@ -2459,7 +2459,7 @@ const Ne = (e) => {
|
|
|
2459
2459
|
r(I) === r(w).HOST_PORT_CE ? (R(), q(B, {
|
|
2460
2460
|
key: 3,
|
|
2461
2461
|
modelValue: r(s).fields.config.timeout,
|
|
2462
|
-
"onUpdate:modelValue": v[15] || (v[15] = (
|
|
2462
|
+
"onUpdate:modelValue": v[15] || (v[15] = (p) => r(s).fields.config.timeout = p),
|
|
2463
2463
|
modelModifiers: { trim: !0 },
|
|
2464
2464
|
"data-testid": "redis-timeout-input",
|
|
2465
2465
|
label: r(i)("form.fields.timeout.label"),
|
|
@@ -2472,7 +2472,7 @@ const Ne = (e) => {
|
|
|
2472
2472
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : oe("", !0),
|
|
2473
2473
|
g(B, {
|
|
2474
2474
|
modelValue: r(s).fields.config.database,
|
|
2475
|
-
"onUpdate:modelValue": v[16] || (v[16] = (
|
|
2475
|
+
"onUpdate:modelValue": v[16] || (v[16] = (p) => r(s).fields.config.database = p),
|
|
2476
2476
|
modelModifiers: { trim: !0 },
|
|
2477
2477
|
"data-testid": "redis-database-input",
|
|
2478
2478
|
label: r(i)("form.fields.database.label"),
|
|
@@ -2485,7 +2485,7 @@ const Ne = (e) => {
|
|
|
2485
2485
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2486
2486
|
g(B, {
|
|
2487
2487
|
modelValue: r(s).fields.config.username,
|
|
2488
|
-
"onUpdate:modelValue": v[17] || (v[17] = (
|
|
2488
|
+
"onUpdate:modelValue": v[17] || (v[17] = (p) => r(s).fields.config.username = p),
|
|
2489
2489
|
modelModifiers: { trim: !0 },
|
|
2490
2490
|
"data-testid": "redis-username-input",
|
|
2491
2491
|
label: r(i)("form.fields.username.label"),
|
|
@@ -2498,13 +2498,13 @@ const Ne = (e) => {
|
|
|
2498
2498
|
g(r(Ke), {
|
|
2499
2499
|
class: "secret-picker-provider",
|
|
2500
2500
|
disabled: r(s).readonly,
|
|
2501
|
-
update: (
|
|
2501
|
+
update: (p) => r(s).fields.config.username = p,
|
|
2502
2502
|
value: r(s).fields.config.username,
|
|
2503
|
-
onOpen: v[18] || (v[18] = (
|
|
2503
|
+
onOpen: v[18] || (v[18] = (p, K) => b(p, K))
|
|
2504
2504
|
}, null, 8, ["disabled", "update", "value"]),
|
|
2505
2505
|
g(B, {
|
|
2506
2506
|
modelValue: r(s).fields.config.password,
|
|
2507
|
-
"onUpdate:modelValue": v[19] || (v[19] = (
|
|
2507
|
+
"onUpdate:modelValue": v[19] || (v[19] = (p) => r(s).fields.config.password = p),
|
|
2508
2508
|
modelModifiers: { trim: !0 },
|
|
2509
2509
|
"data-testid": "redis-password-input",
|
|
2510
2510
|
label: r(i)("form.fields.password.label"),
|
|
@@ -2519,9 +2519,9 @@ const Ne = (e) => {
|
|
|
2519
2519
|
g(r(Ke), {
|
|
2520
2520
|
class: "secret-picker-provider",
|
|
2521
2521
|
disabled: r(s).readonly,
|
|
2522
|
-
update: (
|
|
2522
|
+
update: (p) => r(s).fields.config.password = p,
|
|
2523
2523
|
value: r(s).fields.config.password,
|
|
2524
|
-
onOpen: v[20] || (v[20] = (
|
|
2524
|
+
onOpen: v[20] || (v[20] = (p, K) => b(p, K))
|
|
2525
2525
|
}, null, 8, ["disabled", "update", "value"])
|
|
2526
2526
|
]),
|
|
2527
2527
|
_: 1
|
|
@@ -2534,7 +2534,7 @@ const Ne = (e) => {
|
|
|
2534
2534
|
default: S(() => [
|
|
2535
2535
|
g(O, {
|
|
2536
2536
|
modelValue: r(s).fields.config.ssl,
|
|
2537
|
-
"onUpdate:modelValue": v[21] || (v[21] = (
|
|
2537
|
+
"onUpdate:modelValue": v[21] || (v[21] = (p) => r(s).fields.config.ssl = p),
|
|
2538
2538
|
"data-testid": "redis-ssl-checkbox",
|
|
2539
2539
|
description: r(i)("form.fields.ssl.description"),
|
|
2540
2540
|
disabled: r(s).readonly,
|
|
@@ -2546,7 +2546,7 @@ const Ne = (e) => {
|
|
|
2546
2546
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2547
2547
|
g(O, {
|
|
2548
2548
|
modelValue: r(s).fields.config.ssl_verify,
|
|
2549
|
-
"onUpdate:modelValue": v[22] || (v[22] = (
|
|
2549
|
+
"onUpdate:modelValue": v[22] || (v[22] = (p) => r(s).fields.config.ssl_verify = p),
|
|
2550
2550
|
"data-testid": "redis-ssl-verify-checkbox",
|
|
2551
2551
|
description: r(i)("form.fields.ssl_verify.description"),
|
|
2552
2552
|
disabled: r(s).readonly,
|
|
@@ -2558,7 +2558,7 @@ const Ne = (e) => {
|
|
|
2558
2558
|
}, null, 8, ["modelValue", "description", "disabled", "label", "label-attributes"]),
|
|
2559
2559
|
g(B, {
|
|
2560
2560
|
modelValue: r(s).fields.config.server_name,
|
|
2561
|
-
"onUpdate:modelValue": v[23] || (v[23] = (
|
|
2561
|
+
"onUpdate:modelValue": v[23] || (v[23] = (p) => r(s).fields.config.server_name = p),
|
|
2562
2562
|
modelModifiers: { trim: !0 },
|
|
2563
2563
|
label: r(i)("form.fields.server_name.label"),
|
|
2564
2564
|
"label-attributes": {
|
|
@@ -2579,7 +2579,7 @@ const Ne = (e) => {
|
|
|
2579
2579
|
default: S(() => [
|
|
2580
2580
|
g(B, {
|
|
2581
2581
|
modelValue: r(s).fields.config.keepalive_backlog,
|
|
2582
|
-
"onUpdate:modelValue": v[24] || (v[24] = (
|
|
2582
|
+
"onUpdate:modelValue": v[24] || (v[24] = (p) => r(s).fields.config.keepalive_backlog = p),
|
|
2583
2583
|
"data-testid": "redis-keepalive-backlog-input",
|
|
2584
2584
|
label: r(i)("form.fields.keepalive_backlog.label"),
|
|
2585
2585
|
"label-attributes": {
|
|
@@ -2591,7 +2591,7 @@ const Ne = (e) => {
|
|
|
2591
2591
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2592
2592
|
g(B, {
|
|
2593
2593
|
modelValue: r(s).fields.config.keepalive_pool_size,
|
|
2594
|
-
"onUpdate:modelValue": v[25] || (v[25] = (
|
|
2594
|
+
"onUpdate:modelValue": v[25] || (v[25] = (p) => r(s).fields.config.keepalive_pool_size = p),
|
|
2595
2595
|
"data-testid": "redis-keepalive-pool-size-input",
|
|
2596
2596
|
label: r(i)("form.fields.keepalive_pool_size.label"),
|
|
2597
2597
|
"label-attributes": {
|
|
@@ -2613,7 +2613,7 @@ const Ne = (e) => {
|
|
|
2613
2613
|
default: S(() => [
|
|
2614
2614
|
g(B, {
|
|
2615
2615
|
modelValue: r(s).fields.config.read_timeout,
|
|
2616
|
-
"onUpdate:modelValue": v[26] || (v[26] = (
|
|
2616
|
+
"onUpdate:modelValue": v[26] || (v[26] = (p) => r(s).fields.config.read_timeout = p),
|
|
2617
2617
|
"data-testid": "redis-read-timeout-input",
|
|
2618
2618
|
label: r(i)("form.fields.read_timeout.label"),
|
|
2619
2619
|
"label-attributes": {
|
|
@@ -2625,7 +2625,7 @@ const Ne = (e) => {
|
|
|
2625
2625
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2626
2626
|
g(B, {
|
|
2627
2627
|
modelValue: r(s).fields.config.send_timeout,
|
|
2628
|
-
"onUpdate:modelValue": v[27] || (v[27] = (
|
|
2628
|
+
"onUpdate:modelValue": v[27] || (v[27] = (p) => r(s).fields.config.send_timeout = p),
|
|
2629
2629
|
"data-testid": "redis-send-timeout-input",
|
|
2630
2630
|
label: r(i)("form.fields.send_timeout.label"),
|
|
2631
2631
|
"label-attributes": {
|
|
@@ -2637,7 +2637,7 @@ const Ne = (e) => {
|
|
|
2637
2637
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
2638
2638
|
g(B, {
|
|
2639
2639
|
modelValue: r(s).fields.config.connect_timeout,
|
|
2640
|
-
"onUpdate:modelValue": v[28] || (v[28] = (
|
|
2640
|
+
"onUpdate:modelValue": v[28] || (v[28] = (p) => r(s).fields.config.connect_timeout = p),
|
|
2641
2641
|
"data-testid": "redis-connect-timeout-input",
|
|
2642
2642
|
label: r(i)("form.fields.connect_timeout.label"),
|
|
2643
2643
|
"label-attributes": {
|
|
@@ -2667,7 +2667,7 @@ const Ne = (e) => {
|
|
|
2667
2667
|
"max-width": "640",
|
|
2668
2668
|
title: r(i)("form.edit_warning_modal.title"),
|
|
2669
2669
|
visible: X.value,
|
|
2670
|
-
onCancel: v[31] || (v[31] = (
|
|
2670
|
+
onCancel: v[31] || (v[31] = (p) => X.value = !1),
|
|
2671
2671
|
onProceed: he
|
|
2672
2672
|
}, {
|
|
2673
2673
|
default: S(() => [
|
|
@@ -2772,15 +2772,15 @@ const Ne = (e) => {
|
|
|
2772
2772
|
{ key: "instance_name", label: i("linked_plugins_modal.headers.instance_name") },
|
|
2773
2773
|
{ key: "actions", hideLabel: !0 }
|
|
2774
2774
|
], { fetcher: u } = Ne(n.config), c = $(0), l = async (y) => {
|
|
2775
|
-
const { data: h, count:
|
|
2775
|
+
const { data: h, count: f } = await u({
|
|
2776
2776
|
partialId: n.partialId,
|
|
2777
2777
|
size: y.pageSize,
|
|
2778
2778
|
offset: y.offset,
|
|
2779
2779
|
query: y.query
|
|
2780
2780
|
});
|
|
2781
|
-
c.value =
|
|
2781
|
+
c.value = f;
|
|
2782
2782
|
const C = {
|
|
2783
|
-
total:
|
|
2783
|
+
total: f,
|
|
2784
2784
|
data: h
|
|
2785
2785
|
};
|
|
2786
2786
|
return o("load", C), C;
|
|
@@ -2794,7 +2794,7 @@ const Ne = (e) => {
|
|
|
2794
2794
|
o("view-plugin", { id: y.id, plugin: y.name });
|
|
2795
2795
|
};
|
|
2796
2796
|
return (y, h) => {
|
|
2797
|
-
const
|
|
2797
|
+
const f = j("KDropdownItem"), C = j("KTableData");
|
|
2798
2798
|
return R(), q(C, {
|
|
2799
2799
|
"cache-identifier": r(li)(e.partialId),
|
|
2800
2800
|
fetcher: l,
|
|
@@ -2807,7 +2807,7 @@ const Ne = (e) => {
|
|
|
2807
2807
|
g(ud, { "plugin-name": s }, null, 8, ["plugin-name"])
|
|
2808
2808
|
]),
|
|
2809
2809
|
"action-items": S(({ row: s }) => [
|
|
2810
|
-
g(
|
|
2810
|
+
g(f, {
|
|
2811
2811
|
onClick: (k) => T(s)
|
|
2812
2812
|
}, {
|
|
2813
2813
|
default: S(() => [
|
|
@@ -2966,13 +2966,13 @@ const Ne = (e) => {
|
|
|
2966
2966
|
setup(e, { emit: t }) {
|
|
2967
2967
|
var B;
|
|
2968
2968
|
const n = t, o = e, i = H(() => {
|
|
2969
|
-
var x,
|
|
2969
|
+
var x, p;
|
|
2970
2970
|
let O = `${o.config.apiBaseUrl}${ke.list[o.config.app]}`;
|
|
2971
|
-
return o.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((x = o.config) == null ? void 0 : x.controlPlaneId) || "") : o.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (
|
|
2972
|
-
}), a = $(!1), u = $(""), c = $(null), l = $(void 0), d = $(!1), b = $(!1), T = $(""), y = $(!1), h = Si(o.config, i.value),
|
|
2971
|
+
return o.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((x = o.config) == null ? void 0 : x.controlPlaneId) || "") : o.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (p = o.config) != null && p.workspace ? `/${o.config.workspace}` : "")), O;
|
|
2972
|
+
}), a = $(!1), u = $(""), c = $(null), l = $(void 0), d = $(!1), b = $(!1), T = $(""), y = $(!1), h = Si(o.config, i.value), f = $(1), C = H(() => o.config.app !== "kongManager" || !!o.config.disableSorting), { fetcher: s, fetcherState: k } = Ei(o.config, i);
|
|
2973
2973
|
async function m(O) {
|
|
2974
2974
|
const x = await s({ ...O, pageSize: vd });
|
|
2975
|
-
return x.data = x.data.filter((
|
|
2975
|
+
return x.data = x.data.filter((p) => p.type === G.REDIS_CE || p.type === G.REDIS_EE), x;
|
|
2976
2976
|
}
|
|
2977
2977
|
const { i18n: { t: _ } } = be.useI18n(), { axiosInstance: I } = St((B = o.config) == null ? void 0 : B.axiosRequestConfig), P = vn(), W = $(""), re = H(() => {
|
|
2978
2978
|
const O = o.config.app === "konnect" || o.config.isExactMatch;
|
|
@@ -3011,26 +3011,26 @@ const Ne = (e) => {
|
|
|
3011
3011
|
}, ve = () => {
|
|
3012
3012
|
W.value = "";
|
|
3013
3013
|
}, he = async (O) => {
|
|
3014
|
-
var
|
|
3015
|
-
await ((
|
|
3014
|
+
var p;
|
|
3015
|
+
await ((p = o.canRetrieve) == null ? void 0 : p.call(o, O)) && P.push(o.config.getViewRoute(O.id));
|
|
3016
3016
|
}, Oe = () => {
|
|
3017
3017
|
d.value = !1;
|
|
3018
3018
|
}, me = (O) => {
|
|
3019
3019
|
u.value = O, a.value = !0;
|
|
3020
3020
|
}, rt = async () => {
|
|
3021
|
-
var O, x,
|
|
3021
|
+
var O, x, p;
|
|
3022
3022
|
if ((O = l.value) != null && O.id) {
|
|
3023
3023
|
b.value = !0;
|
|
3024
3024
|
try {
|
|
3025
3025
|
await I.delete(h(l.value.id)), b.value = !1, d.value = !1, Be(), n("delete:success", l.value);
|
|
3026
3026
|
} catch (K) {
|
|
3027
|
-
T.value = ((
|
|
3027
|
+
T.value = ((p = (x = K.response) == null ? void 0 : x.data) == null ? void 0 : p.message) || K.message || _("errors.delete"), n("error", K);
|
|
3028
3028
|
} finally {
|
|
3029
3029
|
b.value = !1;
|
|
3030
3030
|
}
|
|
3031
3031
|
}
|
|
3032
3032
|
}, Be = () => {
|
|
3033
|
-
|
|
3033
|
+
f.value++;
|
|
3034
3034
|
}, U = (O) => {
|
|
3035
3035
|
switch (Ue(O)) {
|
|
3036
3036
|
case w.HOST_PORT_CE:
|
|
@@ -3045,8 +3045,8 @@ const Ne = (e) => {
|
|
|
3045
3045
|
}, v = () => {
|
|
3046
3046
|
P.push(o.config.createRoute);
|
|
3047
3047
|
}, ot = async (O, x) => {
|
|
3048
|
-
const
|
|
3049
|
-
if (!await x(
|
|
3048
|
+
const p = O.id;
|
|
3049
|
+
if (!await x(p)) {
|
|
3050
3050
|
n("copy:error", {
|
|
3051
3051
|
entity: O,
|
|
3052
3052
|
field: "id",
|
|
@@ -3057,15 +3057,15 @@ const Ne = (e) => {
|
|
|
3057
3057
|
n("copy:success", {
|
|
3058
3058
|
entity: O,
|
|
3059
3059
|
field: "id",
|
|
3060
|
-
message: _("copy.success", { val:
|
|
3060
|
+
message: _("copy.success", { val: p })
|
|
3061
3061
|
});
|
|
3062
3062
|
};
|
|
3063
3063
|
Te(k, (O) => {
|
|
3064
|
-
var x,
|
|
3064
|
+
var x, p, K;
|
|
3065
3065
|
if (O.status === Ci.Error) {
|
|
3066
3066
|
c.value = {
|
|
3067
3067
|
title: _("errors.general")
|
|
3068
|
-
}, (K = (
|
|
3068
|
+
}, (K = (p = (x = O.error) == null ? void 0 : x.response) == null ? void 0 : p.data) != null && K.message && (c.value.message = O.error.response.data.message), n("error", O.error);
|
|
3069
3069
|
return;
|
|
3070
3070
|
}
|
|
3071
3071
|
c.value = null;
|
|
@@ -3076,7 +3076,7 @@ const Ne = (e) => {
|
|
|
3076
3076
|
}, {
|
|
3077
3077
|
immediate: !0
|
|
3078
3078
|
}), (O, x) => {
|
|
3079
|
-
const
|
|
3079
|
+
const p = j("KButton"), K = j("KDropdownItem"), ui = j("KClipboardProvider"), ci = j("KEmptyState");
|
|
3080
3080
|
return R(), J("div", _d, [
|
|
3081
3081
|
g(r(Oi), {
|
|
3082
3082
|
"cache-identifier": e.cacheIdentifier,
|
|
@@ -3085,7 +3085,7 @@ const Ne = (e) => {
|
|
|
3085
3085
|
"enable-entity-actions": "",
|
|
3086
3086
|
"error-message": c.value,
|
|
3087
3087
|
fetcher: m,
|
|
3088
|
-
"fetcher-cache-key":
|
|
3088
|
+
"fetcher-cache-key": f.value,
|
|
3089
3089
|
"pagination-type": "offset",
|
|
3090
3090
|
"preferences-storage-key": "kong-ui-entities-redis-configuration-list",
|
|
3091
3091
|
query: W.value,
|
|
@@ -3108,7 +3108,7 @@ const Ne = (e) => {
|
|
|
3108
3108
|
}, [
|
|
3109
3109
|
g(r(Fe), { "auth-function": e.canCreate }, {
|
|
3110
3110
|
default: S(() => [
|
|
3111
|
-
g(
|
|
3111
|
+
g(p, {
|
|
3112
3112
|
appearance: "primary",
|
|
3113
3113
|
"data-testid": "toolbar-add-redis-configuration",
|
|
3114
3114
|
size: "large",
|
|
@@ -3291,10 +3291,10 @@ const Ne = (e) => {
|
|
|
3291
3291
|
},
|
|
3292
3292
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
3293
3293
|
setup(e, { emit: t }) {
|
|
3294
|
-
const n = e, o = t, { i18n: { t: i } } = be.useI18n(), a = H(() => ke.form[n.config.app].edit), u = $($e), c = (
|
|
3295
|
-
u.value = Ue(
|
|
3294
|
+
const n = e, o = t, { i18n: { t: i } } = be.useI18n(), a = H(() => ke.form[n.config.app].edit), u = $($e), c = (f) => {
|
|
3295
|
+
u.value = Ue(f), o("fetch:success", f);
|
|
3296
3296
|
}, l = H(() => {
|
|
3297
|
-
const
|
|
3297
|
+
const f = u.value === w.HOST_PORT_CE ? i("form.options.type.suffix_open_source") : i("form.options.type.suffix_enterprise");
|
|
3298
3298
|
let C = "";
|
|
3299
3299
|
switch (u.value) {
|
|
3300
3300
|
case w.HOST_PORT_CE:
|
|
@@ -3310,19 +3310,19 @@ const Ne = (e) => {
|
|
|
3310
3310
|
C = i("form.options.type.sentinel");
|
|
3311
3311
|
break;
|
|
3312
3312
|
}
|
|
3313
|
-
return `${C}${
|
|
3314
|
-
}), d = (
|
|
3315
|
-
id:
|
|
3316
|
-
name:
|
|
3317
|
-
tags:
|
|
3318
|
-
created_at:
|
|
3319
|
-
updated_at:
|
|
3320
|
-
type:
|
|
3321
|
-
...
|
|
3322
|
-
}), b = (
|
|
3323
|
-
if (!
|
|
3313
|
+
return `${C}${f}`;
|
|
3314
|
+
}), d = (f) => ({
|
|
3315
|
+
id: f.id,
|
|
3316
|
+
name: f.name,
|
|
3317
|
+
tags: f.tags,
|
|
3318
|
+
created_at: f.created_at,
|
|
3319
|
+
updated_at: f.updated_at,
|
|
3320
|
+
type: f.type,
|
|
3321
|
+
...f.config
|
|
3322
|
+
}), b = (f, C) => {
|
|
3323
|
+
if (!f || Object.keys(f).length === 0)
|
|
3324
3324
|
return {};
|
|
3325
|
-
const { id: s, name: k, created_at: m, updated_at: _, type: I, tags: P, ...W } =
|
|
3325
|
+
const { id: s, name: k, created_at: m, updated_at: _, type: I, tags: P, ...W } = f;
|
|
3326
3326
|
return C === "terraform" ? {
|
|
3327
3327
|
[I.replaceAll("-", "_")]: {
|
|
3328
3328
|
id: s,
|
|
@@ -3492,23 +3492,23 @@ const Ne = (e) => {
|
|
|
3492
3492
|
label: i("form.fields.username.label"),
|
|
3493
3493
|
tooltip: i("form.fields.username.tooltip")
|
|
3494
3494
|
}
|
|
3495
|
-
}, y = (
|
|
3495
|
+
}, y = (f) => {
|
|
3496
3496
|
const C = {}, s = Object.keys(T);
|
|
3497
3497
|
for (const k of s)
|
|
3498
|
-
|
|
3498
|
+
f.includes(k) ? C[k] = {
|
|
3499
3499
|
...T[k],
|
|
3500
|
-
order:
|
|
3500
|
+
order: f.indexOf(k) + 1
|
|
3501
3501
|
} : C[k] = {
|
|
3502
3502
|
...T[k],
|
|
3503
3503
|
hidden: !0
|
|
3504
3504
|
};
|
|
3505
3505
|
return C;
|
|
3506
3506
|
}, h = H(() => {
|
|
3507
|
-
const
|
|
3507
|
+
const f = ["id", "name", "tags", "type", "updated_at", "created_at"];
|
|
3508
3508
|
switch (u.value) {
|
|
3509
3509
|
case w.HOST_PORT_CE:
|
|
3510
3510
|
return y([
|
|
3511
|
-
...
|
|
3511
|
+
...f,
|
|
3512
3512
|
"host",
|
|
3513
3513
|
"port",
|
|
3514
3514
|
"timeout",
|
|
@@ -3521,7 +3521,7 @@ const Ne = (e) => {
|
|
|
3521
3521
|
]);
|
|
3522
3522
|
case w.HOST_PORT_EE:
|
|
3523
3523
|
return y([
|
|
3524
|
-
...
|
|
3524
|
+
...f,
|
|
3525
3525
|
"host",
|
|
3526
3526
|
"port",
|
|
3527
3527
|
"connection_is_proxied",
|
|
@@ -3539,7 +3539,7 @@ const Ne = (e) => {
|
|
|
3539
3539
|
]);
|
|
3540
3540
|
case w.CLUSTER:
|
|
3541
3541
|
return y([
|
|
3542
|
-
...
|
|
3542
|
+
...f,
|
|
3543
3543
|
"cluster_nodes",
|
|
3544
3544
|
"cluster_max_redirections",
|
|
3545
3545
|
"database",
|
|
@@ -3556,7 +3556,7 @@ const Ne = (e) => {
|
|
|
3556
3556
|
]);
|
|
3557
3557
|
case w.SENTINEL:
|
|
3558
3558
|
return y([
|
|
3559
|
-
...
|
|
3559
|
+
...f,
|
|
3560
3560
|
"sentinel_master",
|
|
3561
3561
|
"sentinel_role",
|
|
3562
3562
|
"sentinel_nodes",
|
|
@@ -3578,7 +3578,7 @@ const Ne = (e) => {
|
|
|
3578
3578
|
throw new Error("Invalid Redis type");
|
|
3579
3579
|
}
|
|
3580
3580
|
});
|
|
3581
|
-
return (
|
|
3581
|
+
return (f, C) => (R(), J("div", Td, [
|
|
3582
3582
|
g(r($i), {
|
|
3583
3583
|
"code-block-record-formatter": b,
|
|
3584
3584
|
config: e.config,
|
|
@@ -3588,9 +3588,9 @@ const Ne = (e) => {
|
|
|
3588
3588
|
"fetch-url": a.value,
|
|
3589
3589
|
"hide-title": e.hideTitle,
|
|
3590
3590
|
"record-resolver": d,
|
|
3591
|
-
"onFetch:error": C[0] || (C[0] = (s) =>
|
|
3591
|
+
"onFetch:error": C[0] || (C[0] = (s) => f.$emit("fetch:error", s)),
|
|
3592
3592
|
"onFetch:success": c,
|
|
3593
|
-
onLoading: C[1] || (C[1] = (s) =>
|
|
3593
|
+
onLoading: C[1] || (C[1] = (s) => f.$emit("loading", s))
|
|
3594
3594
|
}, {
|
|
3595
3595
|
type: S(() => [
|
|
3596
3596
|
F("div", null, N(l.value), 1)
|
|
@@ -3657,16 +3657,16 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3657
3657
|
default:
|
|
3658
3658
|
return;
|
|
3659
3659
|
}
|
|
3660
|
-
}), d = $(!1), b = $(), T = (
|
|
3660
|
+
}), d = $(!1), b = $(), T = (f) => {
|
|
3661
3661
|
n("toast", {
|
|
3662
|
-
message: u(
|
|
3662
|
+
message: u(f),
|
|
3663
3663
|
appearance: "danger"
|
|
3664
3664
|
});
|
|
3665
|
-
}, y = (
|
|
3665
|
+
}, y = (f) => {
|
|
3666
3666
|
n("toast", {
|
|
3667
3667
|
message: o("form.partial_created_success_message"),
|
|
3668
3668
|
appearance: "success"
|
|
3669
|
-
}), h(), n("created",
|
|
3669
|
+
}), h(), n("created", f);
|
|
3670
3670
|
}, h = () => {
|
|
3671
3671
|
b.value = void 0, n("modal-close"), kt(() => {
|
|
3672
3672
|
d.value = !1;
|
|
@@ -3674,12 +3674,12 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3674
3674
|
};
|
|
3675
3675
|
return Te(
|
|
3676
3676
|
() => e.visible,
|
|
3677
|
-
(
|
|
3678
|
-
|
|
3677
|
+
(f) => {
|
|
3678
|
+
f && (d.value = !0, kt(() => {
|
|
3679
3679
|
b.value = `#redis-modal-footer-${c}`;
|
|
3680
3680
|
}));
|
|
3681
3681
|
}
|
|
3682
|
-
), (
|
|
3682
|
+
), (f, C) => {
|
|
3683
3683
|
const s = j("KModal");
|
|
3684
3684
|
return R(), q(s, {
|
|
3685
3685
|
class: "redis-configuration-partial-form",
|
|
@@ -3726,7 +3726,7 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3726
3726
|
showCreateButton: { type: Boolean, default: !0 },
|
|
3727
3727
|
createButtonText: {}
|
|
3728
3728
|
},
|
|
3729
|
-
emits: ["update:modelValue", "change", "create-new", "error", "modal-close"],
|
|
3729
|
+
emits: ["update:modelValue", "change", "create-new", "error", "error-change", "modal-close", "toast"],
|
|
3730
3730
|
setup(e, { emit: t }) {
|
|
3731
3731
|
const n = t, { i18n: { t: o } } = it(), {
|
|
3732
3732
|
items: i,
|
|
@@ -3736,23 +3736,23 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3736
3736
|
loadItems: l
|
|
3737
3737
|
} = di({
|
|
3738
3738
|
redisType: e.redisType
|
|
3739
|
-
}), d = $(!1), b = (
|
|
3740
|
-
const C =
|
|
3741
|
-
n("update:modelValue", C), n("change",
|
|
3739
|
+
}), d = $(!1), b = (f) => {
|
|
3740
|
+
const C = f == null ? void 0 : f.value;
|
|
3741
|
+
n("update:modelValue", C), n("change", f);
|
|
3742
3742
|
}, T = () => {
|
|
3743
3743
|
d.value = !0;
|
|
3744
3744
|
}, y = () => {
|
|
3745
3745
|
d.value = !1, n("modal-close");
|
|
3746
|
-
}, h = (
|
|
3746
|
+
}, h = (f) => {
|
|
3747
3747
|
d.value = !1, l(), b({
|
|
3748
|
-
name:
|
|
3749
|
-
value:
|
|
3750
|
-
label:
|
|
3748
|
+
name: f.name,
|
|
3749
|
+
value: f.id,
|
|
3750
|
+
label: f.name
|
|
3751
3751
|
});
|
|
3752
3752
|
};
|
|
3753
|
-
return Te(c, (
|
|
3754
|
-
|
|
3755
|
-
}), (
|
|
3753
|
+
return Te(c, (f) => {
|
|
3754
|
+
f && n("error", new Error(String(f))), n("error-change", f ? new Error(String(f)) : null);
|
|
3755
|
+
}), (f, C) => {
|
|
3756
3756
|
const s = j("KBadge"), k = j("KSelect");
|
|
3757
3757
|
return R(), J(je, null, [
|
|
3758
3758
|
g(k, {
|
|
@@ -3810,12 +3810,13 @@ const Sd = ["id"], Ed = /* @__PURE__ */ Q({
|
|
|
3810
3810
|
"partial-type": e.redisType,
|
|
3811
3811
|
visible: d.value,
|
|
3812
3812
|
onCreated: h,
|
|
3813
|
-
onModalClose: y
|
|
3813
|
+
onModalClose: y,
|
|
3814
|
+
onToast: C[0] || (C[0] = (m) => n("toast", m))
|
|
3814
3815
|
}, null, 8, ["partial-type", "visible"])
|
|
3815
3816
|
], 64);
|
|
3816
3817
|
};
|
|
3817
3818
|
}
|
|
3818
|
-
}), qd = /* @__PURE__ */ ie($d, [["__scopeId", "data-v-
|
|
3819
|
+
}), qd = /* @__PURE__ */ ie($d, [["__scopeId", "data-v-7c83c561"]]), Wd = {
|
|
3819
3820
|
useLinkedPlugins: si,
|
|
3820
3821
|
useLinkedPluginsFetcher: Ne,
|
|
3821
3822
|
useRedisConfigurationSelector: di
|