@kong-ui-public/forms 4.15.4-pr.2204.696104c39.0 → 4.15.4-pr.2204.f9043269d.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/forms.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as v, openBlock as c, createElementVNode as
|
|
1
|
+
import { createElementBlock as v, openBlock as c, createElementVNode as f, toDisplayString as N, normalizeClass as ee, createVNode as F, defineComponent as he, provide as zt, resolveComponent as P, withCtx as M, renderSlot as Oe, unref as I, createTextVNode as ce, createBlock as U, resolveDynamicComponent as me, Fragment as Y, renderList as oe, mergeModels as Oi, useModel as Po, createSlots as cn, ref as ae, computed as z, onMounted as Zn, toRefs as ut, inject as an, onBeforeMount as Xn, mergeProps as et, Transition as Do, createCommentVNode as B, resolveDirective as Aa, withDirectives as Ee, vModelText as $t, vModelCheckbox as $o, vModelSelect as Vo, vModelDynamic as Ia, isRef as Et, toRef as jo, vModelRadio as qo, vShow as Ko, watch as Jn, normalizeProps as Bo, guardReactiveProps as zo, useSlots as mn, nextTick as Fi } from "vue";
|
|
2
2
|
import { createI18n as ke } from "@kong-ui-public/i18n";
|
|
3
3
|
import { TrashIcon as xt, SearchIcon as xo, AddIcon as Qn, RemoveIcon as Ho } from "@kong/icons";
|
|
4
4
|
import { useStringHelpers as Yo, useErrors as Go, useDebouncedFilter as Wo, useAxios as Zo } from "@kong-ui-public/entities-shared";
|
|
@@ -565,7 +565,7 @@ function xa() {
|
|
|
565
565
|
HTMLFormElement: h,
|
|
566
566
|
DOMParser: y,
|
|
567
567
|
trustedTypes: k
|
|
568
|
-
} = e, j = d.prototype, p = Lt(j, "cloneNode"), A = Lt(j, "remove"), O = Lt(j, "nextSibling"), D = Lt(j, "childNodes"),
|
|
568
|
+
} = e, j = d.prototype, p = Lt(j, "cloneNode"), A = Lt(j, "remove"), O = Lt(j, "nextSibling"), D = Lt(j, "childNodes"), m = Lt(j, "parentNode");
|
|
569
569
|
if (typeof r == "function") {
|
|
570
570
|
const L = n.createElement("template");
|
|
571
571
|
L.content && L.content.ownerDocument && (n = L.content.ownerDocument);
|
|
@@ -580,7 +580,7 @@ function xa() {
|
|
|
580
580
|
importNode: E
|
|
581
581
|
} = i;
|
|
582
582
|
let S = Yi();
|
|
583
|
-
t.isSupported = typeof qa == "function" && typeof
|
|
583
|
+
t.isSupported = typeof qa == "function" && typeof m == "function" && w && w.createHTMLDocument !== void 0;
|
|
584
584
|
const {
|
|
585
585
|
MUSTACHE_EXPR: V,
|
|
586
586
|
ERB_EXPR: K,
|
|
@@ -648,7 +648,7 @@ function xa() {
|
|
|
648
648
|
Me && Me(l), vt = l;
|
|
649
649
|
}
|
|
650
650
|
}, vi = x({}, [...Pn, ...Dn, ...hl]), bi = x({}, [...$n, ...pl]), No = function(l) {
|
|
651
|
-
let T =
|
|
651
|
+
let T = m(l);
|
|
652
652
|
(!T || !T.tagName) && (T = {
|
|
653
653
|
namespaceURI: yt,
|
|
654
654
|
tagName: "template"
|
|
@@ -660,7 +660,7 @@ function xa() {
|
|
|
660
660
|
element: l
|
|
661
661
|
});
|
|
662
662
|
try {
|
|
663
|
-
|
|
663
|
+
m(l).removeChild(l);
|
|
664
664
|
} catch {
|
|
665
665
|
A(l);
|
|
666
666
|
}
|
|
@@ -743,7 +743,7 @@ function xa() {
|
|
|
743
743
|
if (!It[R] && Mi(R) && (se.tagNameCheck instanceof RegExp && Se(se.tagNameCheck, R) || se.tagNameCheck instanceof Function && se.tagNameCheck(R)))
|
|
744
744
|
return !1;
|
|
745
745
|
if (An && !gt[R]) {
|
|
746
|
-
const te =
|
|
746
|
+
const te = m(l) || l.parentNode, be = D(l) || l.childNodes;
|
|
747
747
|
if (be && te) {
|
|
748
748
|
const pe = be.length;
|
|
749
749
|
for (let Ie = pe - 1; Ie >= 0; --Ie) {
|
|
@@ -1312,7 +1312,7 @@ function wt(e, t, n) {
|
|
|
1312
1312
|
function D(w) {
|
|
1313
1313
|
return s = void 0, y && i ? k(w) : (i = a = void 0, r);
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function m() {
|
|
1316
1316
|
s !== void 0 && clearTimeout(s), u = 0, i = d = a = s = void 0;
|
|
1317
1317
|
}
|
|
1318
1318
|
function _() {
|
|
@@ -1328,7 +1328,7 @@ function wt(e, t, n) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
return s === void 0 && (s = setTimeout(O, t)), r;
|
|
1330
1330
|
}
|
|
1331
|
-
return C.cancel =
|
|
1331
|
+
return C.cancel = m, C.flush = _, C;
|
|
1332
1332
|
}
|
|
1333
1333
|
var Au = "__lodash_hash_undefined__";
|
|
1334
1334
|
function Iu(e) {
|
|
@@ -1696,7 +1696,7 @@ function Zu(e, t, n) {
|
|
|
1696
1696
|
["hour", "getHours"],
|
|
1697
1697
|
["minute", "getMinutes"],
|
|
1698
1698
|
["second", "getSeconds"]
|
|
1699
|
-
], y = 0,
|
|
1699
|
+
], y = 0, m = D.length; y < m; y++)
|
|
1700
1700
|
if (d[D[y][0]] && a[D[y][0]] !== O[D[y][1]]())
|
|
1701
1701
|
return null;
|
|
1702
1702
|
} else if (O = new Date(Date.UTC(a.year, a.month, a.day, a.hour, a.minute - a.timezoneOffset, a.second, a.millisecond)), a.month > 11 || a.month < 0 || a.day > 31 || a.day < 1 || a.hour > 23 || a.hour < 0 || a.minute > 59 || a.minute < 0 || a.second > 59 || a.second < 0)
|
|
@@ -2267,15 +2267,15 @@ const $e = {
|
|
|
2267
2267
|
__name: "FieldAdvanced",
|
|
2268
2268
|
setup(e) {
|
|
2269
2269
|
return (t, n) => (c(), v("div", wc, [
|
|
2270
|
-
|
|
2270
|
+
f("button", {
|
|
2271
2271
|
class: "advanced-field-title",
|
|
2272
2272
|
type: "button",
|
|
2273
2273
|
onClick: n[0] || (n[0] = (...i) => t.handleOpen && t.handleOpen(...i))
|
|
2274
2274
|
}, [
|
|
2275
|
-
|
|
2276
|
-
|
|
2275
|
+
f("i", Ec, N(t.isOpen ? "keyboard_arrow_up" : "keyboard_arrow_right"), 1),
|
|
2276
|
+
f("span", null, N(t.titleText), 1)
|
|
2277
2277
|
]),
|
|
2278
|
-
|
|
2278
|
+
f("div", {
|
|
2279
2279
|
class: ee(["advanced-field-dropdown", t.openClass])
|
|
2280
2280
|
}, [
|
|
2281
2281
|
F(ue, {
|
|
@@ -2340,7 +2340,7 @@ const $e = {
|
|
|
2340
2340
|
return (t, n) => {
|
|
2341
2341
|
const i = P("KButton");
|
|
2342
2342
|
return c(), v("div", Fc, [
|
|
2343
|
-
|
|
2343
|
+
f("div", kc, [
|
|
2344
2344
|
Oe(t.$slots, "default", {}, void 0, !0),
|
|
2345
2345
|
F(i, {
|
|
2346
2346
|
appearance: "tertiary",
|
|
@@ -2353,7 +2353,7 @@ const $e = {
|
|
|
2353
2353
|
_: 1
|
|
2354
2354
|
})
|
|
2355
2355
|
]),
|
|
2356
|
-
|
|
2356
|
+
f("div", Rc, [
|
|
2357
2357
|
Oe(t.$slots, "after", {}, void 0, !0)
|
|
2358
2358
|
])
|
|
2359
2359
|
]);
|
|
@@ -2377,7 +2377,7 @@ const $e = {
|
|
|
2377
2377
|
])),
|
|
2378
2378
|
_: 1
|
|
2379
2379
|
}),
|
|
2380
|
-
n[2] || (n[2] =
|
|
2380
|
+
n[2] || (n[2] = f("hr", null, null, -1))
|
|
2381
2381
|
]);
|
|
2382
2382
|
};
|
|
2383
2383
|
}
|
|
@@ -2540,7 +2540,7 @@ function Kc(e, t, n, i, a, o) {
|
|
|
2540
2540
|
onQueryChange: o.onQueryChange
|
|
2541
2541
|
}, {
|
|
2542
2542
|
"item-template": M(({ item: s }) => [
|
|
2543
|
-
|
|
2543
|
+
f("span", {
|
|
2544
2544
|
class: "first-part",
|
|
2545
2545
|
"data-testid": s.id && `${s.id}-0`,
|
|
2546
2546
|
"data-testlabel": s.label
|
|
@@ -2552,8 +2552,8 @@ function Kc(e, t, n, i, a, o) {
|
|
|
2552
2552
|
}, N(d), 9, jc))), 128))
|
|
2553
2553
|
]),
|
|
2554
2554
|
empty: M(() => [
|
|
2555
|
-
|
|
2556
|
-
|
|
2555
|
+
f("div", qc, [
|
|
2556
|
+
f("span", null, N(a.message), 1)
|
|
2557
2557
|
])
|
|
2558
2558
|
]),
|
|
2559
2559
|
_: 1
|
|
@@ -2603,7 +2603,7 @@ const Yc = ["data-testid", "data-testlabel"], Gc = { class: "item-label" }, Wc =
|
|
|
2603
2603
|
}, cn({
|
|
2604
2604
|
"item-template": M(({ item: r }) => [
|
|
2605
2605
|
Oe(i.$slots, "item", { item: r }, () => [
|
|
2606
|
-
|
|
2606
|
+
f("span", {
|
|
2607
2607
|
class: "item-label",
|
|
2608
2608
|
"data-testid": r.id && `${r.id}-0`,
|
|
2609
2609
|
"data-testlabel": r.label
|
|
@@ -2612,12 +2612,12 @@ const Yc = ["data-testid", "data-testlabel"], Gc = { class: "item-label" }, Wc =
|
|
|
2612
2612
|
]),
|
|
2613
2613
|
"selected-item-template": M(({ item: r }) => [
|
|
2614
2614
|
Oe(i.$slots, "selected-item", { item: r }, () => [
|
|
2615
|
-
|
|
2615
|
+
f("span", Gc, N(r.label), 1)
|
|
2616
2616
|
], !0)
|
|
2617
2617
|
]),
|
|
2618
2618
|
empty: M(() => [
|
|
2619
|
-
|
|
2620
|
-
|
|
2619
|
+
f("div", Wc, [
|
|
2620
|
+
f("span", null, N(i.emptyMessage || I(t)("fields.auto_suggest.no_results")), 1)
|
|
2621
2621
|
])
|
|
2622
2622
|
]),
|
|
2623
2623
|
_: 2
|
|
@@ -2654,12 +2654,12 @@ const Yc = ["data-testid", "data-testlabel"], Gc = { class: "item-label" }, Wc =
|
|
|
2654
2654
|
setup(e) {
|
|
2655
2655
|
const t = ae(""), n = ae(!1), i = ae(!1), a = ae(""), o = ae([]), r = ae([]), s = ae([]), { t: d } = ke("en-us", Re), u = ae(null);
|
|
2656
2656
|
let g = null;
|
|
2657
|
-
const h = async (
|
|
2657
|
+
const h = async (m, _) => {
|
|
2658
2658
|
clearTimeout(g), g = setTimeout(() => {
|
|
2659
2659
|
n.value = !0;
|
|
2660
2660
|
}, 1500);
|
|
2661
2661
|
try {
|
|
2662
|
-
const C = await
|
|
2662
|
+
const C = await m();
|
|
2663
2663
|
r.value = C, o.value = r.value.map(e.transformItem);
|
|
2664
2664
|
} catch (C) {
|
|
2665
2665
|
if (_ != null && _.aborted)
|
|
@@ -2668,63 +2668,63 @@ const Yc = ["data-testid", "data-testlabel"], Gc = { class: "item-label" }, Wc =
|
|
|
2668
2668
|
} finally {
|
|
2669
2669
|
clearTimeout(g), n.value = !1;
|
|
2670
2670
|
}
|
|
2671
|
-
}, y = wt((
|
|
2672
|
-
if (a.value =
|
|
2671
|
+
}, y = wt((m = "") => {
|
|
2672
|
+
if (a.value = m, !m.trim())
|
|
2673
2673
|
return;
|
|
2674
2674
|
u.value && u.value.abort();
|
|
2675
2675
|
const _ = new AbortController();
|
|
2676
2676
|
if (u.value = _, i.value) {
|
|
2677
|
-
Wn(
|
|
2677
|
+
Wn(m) && e.allowUuidSearch ? O(m) : A(m);
|
|
2678
2678
|
return;
|
|
2679
2679
|
}
|
|
2680
|
-
Wn(
|
|
2681
|
-
}, Jc, { leading: !0 }), k = async (
|
|
2682
|
-
const { data: { data:
|
|
2683
|
-
return (!_ || !C) && (i.value = !0), r.value =
|
|
2680
|
+
Wn(m) && e.allowUuidSearch ? h(async () => await p(m)) : h(async () => await k(m, _.signal), _.signal);
|
|
2681
|
+
}, Jc, { leading: !0 }), k = async (m, _) => await e.getAll(m, _), j = async () => {
|
|
2682
|
+
const { data: { data: m, next: _, offset: C } } = await e.getPartial(Qc);
|
|
2683
|
+
return (!_ || !C) && (i.value = !0), r.value = m, s.value = m.map((w) => ({
|
|
2684
2684
|
...e.transformItem(w),
|
|
2685
2685
|
group: d("fields.auto_suggest.recently_created", { entity: e.entity })
|
|
2686
|
-
})),
|
|
2687
|
-
}, p = async (
|
|
2688
|
-
const { data: _ } = await e.getOne(
|
|
2686
|
+
})), m;
|
|
2687
|
+
}, p = async (m) => {
|
|
2688
|
+
const { data: _ } = await e.getOne(m);
|
|
2689
2689
|
return [_];
|
|
2690
|
-
}, A = (
|
|
2691
|
-
|
|
2692
|
-
}, O = (
|
|
2693
|
-
o.value = r.value.filter((_) => _.id ===
|
|
2690
|
+
}, A = (m) => {
|
|
2691
|
+
m.trim() || (o.value = r.value.map(e.transformItem)), o.value = r.value.filter((_) => e.fields.some((C) => (_[C] || "").includes(m))).map(e.transformItem);
|
|
2692
|
+
}, O = (m) => {
|
|
2693
|
+
o.value = r.value.filter((_) => _.id === m).map(e.transformItem);
|
|
2694
2694
|
}, D = z(() => {
|
|
2695
2695
|
var C;
|
|
2696
|
-
const
|
|
2696
|
+
const m = a.value.trim(), _ = m ? o.value : s.value;
|
|
2697
2697
|
return e.initialItemSelected ? _.some((w) => {
|
|
2698
2698
|
var b;
|
|
2699
2699
|
return w.value !== ((b = e.initialItem) == null ? void 0 : b.value);
|
|
2700
|
-
}) ? _ : (C = e.initialItem) != null && C.value.includes(
|
|
2700
|
+
}) ? _ : (C = e.initialItem) != null && C.value.includes(m) ? [e.initialItem, ..._] : _ : _;
|
|
2701
2701
|
});
|
|
2702
2702
|
return Zn(async () => {
|
|
2703
2703
|
await h(j);
|
|
2704
|
-
}), (
|
|
2705
|
-
id:
|
|
2706
|
-
disabled:
|
|
2707
|
-
"dom-id":
|
|
2704
|
+
}), (m, _) => (c(), U(Xc, {
|
|
2705
|
+
id: m.id,
|
|
2706
|
+
disabled: m.fieldDisabled,
|
|
2707
|
+
"dom-id": m.domId,
|
|
2708
2708
|
"empty-message": t.value,
|
|
2709
2709
|
loading: n.value,
|
|
2710
|
-
placeholder:
|
|
2711
|
-
readonly:
|
|
2710
|
+
placeholder: m.placeholder,
|
|
2711
|
+
readonly: m.disabled,
|
|
2712
2712
|
suggestions: D.value,
|
|
2713
|
-
onChange: _[0] || (_[0] = (C) =>
|
|
2713
|
+
onChange: _[0] || (_[0] = (C) => m.$emit("change", C)),
|
|
2714
2714
|
onQueryChange: I(y)
|
|
2715
2715
|
}, cn({
|
|
2716
2716
|
"selected-item": M(({ item: C }) => [
|
|
2717
|
-
Oe(
|
|
2717
|
+
Oe(m.$slots, "selected-item", { item: C })
|
|
2718
2718
|
]),
|
|
2719
2719
|
item: M(({ item: C }) => [
|
|
2720
|
-
Oe(
|
|
2720
|
+
Oe(m.$slots, "item", { item: C })
|
|
2721
2721
|
]),
|
|
2722
2722
|
_: 2
|
|
2723
2723
|
}, [
|
|
2724
|
-
|
|
2724
|
+
m.$slots.before ? {
|
|
2725
2725
|
name: "before",
|
|
2726
2726
|
fn: M(() => [
|
|
2727
|
-
Oe(
|
|
2727
|
+
Oe(m.$slots, "before")
|
|
2728
2728
|
]),
|
|
2729
2729
|
key: "0"
|
|
2730
2730
|
} : void 0
|
|
@@ -2903,14 +2903,14 @@ function lm(e, t, n, i, a, o) {
|
|
|
2903
2903
|
}, null, 8, ["color", "size"])
|
|
2904
2904
|
]),
|
|
2905
2905
|
item: M(({ item: d }) => [
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2906
|
+
f("div", im, [
|
|
2907
|
+
f("span", am, N(d.label || "–"), 1),
|
|
2908
|
+
f("span", om, N(d.id), 1)
|
|
2909
2909
|
])
|
|
2910
2910
|
]),
|
|
2911
2911
|
"selected-item": M(({ item: d }) => [
|
|
2912
|
-
|
|
2913
|
-
|
|
2912
|
+
f("span", rm, [
|
|
2913
|
+
f("span", sm, N(d.label || "–"), 1)
|
|
2914
2914
|
])
|
|
2915
2915
|
]),
|
|
2916
2916
|
_: 1
|
|
@@ -2932,12 +2932,12 @@ function dm(e) {
|
|
|
2932
2932
|
p = j(p), X(p) ? p(p, A) : s(p, A);
|
|
2933
2933
|
}
|
|
2934
2934
|
}), o = (p) => {
|
|
2935
|
-
var
|
|
2935
|
+
var m;
|
|
2936
2936
|
d();
|
|
2937
2937
|
const A = G(e.formOptions, "validateAsync", !1);
|
|
2938
2938
|
let O = [];
|
|
2939
2939
|
if (e.schema.readonly !== !0 && e.disabled !== !0) {
|
|
2940
|
-
const _ = [], C = (
|
|
2940
|
+
const _ = [], C = (m = e.schema) == null ? void 0 : m.validator;
|
|
2941
2941
|
C && (Array.isArray(C) ? we(C, (w) => {
|
|
2942
2942
|
_.push(i(w));
|
|
2943
2943
|
}) : _.push(i(C))), X(e.externalValidator) && _.push(e.externalValidator), we(_, (w) => {
|
|
@@ -2972,26 +2972,26 @@ function dm(e) {
|
|
|
2972
2972
|
G(e.schema, "validateDebounceTime", G(e.formOptions, "validateDebounceTime", 500))
|
|
2973
2973
|
);
|
|
2974
2974
|
}, s = (p, A) => {
|
|
2975
|
-
var D,
|
|
2975
|
+
var D, m, _;
|
|
2976
2976
|
let O = !1;
|
|
2977
|
-
X(e.schema.set) ? (e.schema.set((D = e.model) == null ? void 0 : D.value, p), O = !0) : e.schema.model && (u(e.schema.model, p), O = !0), O && (e.emitModelUpdated && ((
|
|
2977
|
+
X(e.schema.set) ? (e.schema.set((D = e.model) == null ? void 0 : D.value, p), O = !0) : e.schema.model && (u(e.schema.model, p), O = !0), O && (e.emitModelUpdated && ((m = e.model) != null && m.value) && e.emitModelUpdated({ value: p, model: e.schema.model }), X(e.schema.onChanged) && e.schema.onChanged((_ = e.model) == null ? void 0 : _.value, p, A, e.schema), G(e.formOptions, "validateAfterChanged", !1) === !0 && (G(e.schema, "validateDebounceTime", G(e.formOptions, "validateDebounceTime", 0)) > 0 ? r() : o()));
|
|
2978
2978
|
}, d = () => {
|
|
2979
2979
|
t.value.splice(0);
|
|
2980
2980
|
}, u = (p, A) => {
|
|
2981
2981
|
var w;
|
|
2982
2982
|
let O = p.replace(/\[(\w+)\]/g, ".$1");
|
|
2983
2983
|
O = O.replace(/^\./, "");
|
|
2984
|
-
let D = ((w = e.model) == null ? void 0 : w.value) || {},
|
|
2984
|
+
let D = ((w = e.model) == null ? void 0 : w.value) || {}, m = 0;
|
|
2985
2985
|
const _ = O.split("."), C = _.length;
|
|
2986
|
-
for (;
|
|
2987
|
-
const b = _[
|
|
2988
|
-
if (
|
|
2986
|
+
for (; m < C; ) {
|
|
2987
|
+
const b = _[m];
|
|
2988
|
+
if (m < C - 1)
|
|
2989
2989
|
D[b] !== void 0 || (D[b] = {}), D = D[b];
|
|
2990
2990
|
else {
|
|
2991
2991
|
D[b] = A;
|
|
2992
2992
|
return;
|
|
2993
2993
|
}
|
|
2994
|
-
++
|
|
2994
|
+
++m;
|
|
2995
2995
|
}
|
|
2996
2996
|
}, g = (p, A = !1) => {
|
|
2997
2997
|
const O = G(e.formOptions, "fieldIdPrefix", "");
|
|
@@ -3090,8 +3090,8 @@ const qe = {
|
|
|
3090
3090
|
model: o.model,
|
|
3091
3091
|
schema: i.schema,
|
|
3092
3092
|
formOptions: i.formOptions,
|
|
3093
|
-
emitModelUpdated: (
|
|
3094
|
-
a("modelUpdated",
|
|
3093
|
+
emitModelUpdated: (m) => {
|
|
3094
|
+
a("modelUpdated", m.value, m.model);
|
|
3095
3095
|
}
|
|
3096
3096
|
});
|
|
3097
3097
|
t({
|
|
@@ -3099,48 +3099,48 @@ const qe = {
|
|
|
3099
3099
|
});
|
|
3100
3100
|
const h = z(() => {
|
|
3101
3101
|
var _;
|
|
3102
|
-
const
|
|
3103
|
-
switch (
|
|
3102
|
+
const m = (_ = i.schema) == null ? void 0 : _.inputType.toLowerCase();
|
|
3103
|
+
switch (m) {
|
|
3104
3104
|
case "string":
|
|
3105
3105
|
return "text";
|
|
3106
3106
|
case "datetime":
|
|
3107
3107
|
return "datetime-local";
|
|
3108
3108
|
default:
|
|
3109
|
-
return
|
|
3109
|
+
return m || "text";
|
|
3110
3110
|
}
|
|
3111
3111
|
}), y = {
|
|
3112
3112
|
date: "YYYY-MM-DD",
|
|
3113
3113
|
datetime: "YYYY-MM-DD HH:mm:ss",
|
|
3114
3114
|
"datetime-local": "YYYY-MM-DDTHH:mm:ss"
|
|
3115
|
-
}, k = (
|
|
3115
|
+
}, k = (m, _) => {
|
|
3116
3116
|
var q, Z;
|
|
3117
|
-
let C =
|
|
3118
|
-
const w = y[h.value] || "", b = _t.parse(
|
|
3117
|
+
let C = m;
|
|
3118
|
+
const w = y[h.value] || "", b = _t.parse(m, w);
|
|
3119
3119
|
b && ((q = i.schema) != null && q.format ? C = _t.format(b, (Z = i.schema) == null ? void 0 : Z.format) : C = b.valueOf()), s(C, _);
|
|
3120
|
-
}, j = (
|
|
3121
|
-
dn(
|
|
3122
|
-
}, p = (
|
|
3123
|
-
let _ =
|
|
3120
|
+
}, j = (m, _) => {
|
|
3121
|
+
dn(m) || (m = NaN), s(m, _);
|
|
3122
|
+
}, p = (m) => {
|
|
3123
|
+
let _ = m;
|
|
3124
3124
|
switch (h.value) {
|
|
3125
3125
|
case "number":
|
|
3126
3126
|
case "range":
|
|
3127
|
-
dn(parseFloat(
|
|
3127
|
+
dn(parseFloat(m)) && (_ = parseFloat(m));
|
|
3128
3128
|
break;
|
|
3129
3129
|
}
|
|
3130
|
-
g.value = _, s(_,
|
|
3131
|
-
}, A = (
|
|
3132
|
-
g.value =
|
|
3130
|
+
g.value = _, s(_, m);
|
|
3131
|
+
}, A = (m) => {
|
|
3132
|
+
g.value = m, s(m, m);
|
|
3133
3133
|
}, O = ae(null), D = () => {
|
|
3134
|
-
var
|
|
3135
|
-
X(O.value) && ((
|
|
3134
|
+
var m;
|
|
3135
|
+
X(O.value) && ((m = O.value) == null || m.flush());
|
|
3136
3136
|
};
|
|
3137
3137
|
return Zn(() => {
|
|
3138
3138
|
switch (h.value) {
|
|
3139
3139
|
case "number":
|
|
3140
3140
|
case "range":
|
|
3141
3141
|
O.value = wt(
|
|
3142
|
-
(
|
|
3143
|
-
j(
|
|
3142
|
+
(m, _) => {
|
|
3143
|
+
j(m, _);
|
|
3144
3144
|
},
|
|
3145
3145
|
parseInt(G(i.schema, "debounceFormatTimeout", 1e3)),
|
|
3146
3146
|
{
|
|
@@ -3153,8 +3153,8 @@ const qe = {
|
|
|
3153
3153
|
case "datetime":
|
|
3154
3154
|
case "datetime-local":
|
|
3155
3155
|
O.value = wt(
|
|
3156
|
-
(
|
|
3157
|
-
k(
|
|
3156
|
+
(m, _) => {
|
|
3157
|
+
k(m, _);
|
|
3158
3158
|
},
|
|
3159
3159
|
parseInt(G(i.schema, "debounceFormatTimeout", 1e3)),
|
|
3160
3160
|
{
|
|
@@ -3166,10 +3166,10 @@ const qe = {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
}), Xn(() => {
|
|
3168
3168
|
h.value === "checkbox" ? console.warn("The use of 'checkbox' inputType with 'input' type fields is deprecated. Use 'checkbox' type instead.") : h.value === "radio" ? console.warn("The use of 'radio' inputType with 'input' type fields is deprecated. Use 'radio' type instead.") : h.value === "file" && console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.");
|
|
3169
|
-
}), (
|
|
3169
|
+
}), (m, _) => {
|
|
3170
3170
|
const C = P("KInput");
|
|
3171
3171
|
return c(), v("div", mm, [
|
|
3172
|
-
F(C, et(
|
|
3172
|
+
F(C, et(m.$attrs, {
|
|
3173
3173
|
id: I(d)(e.schema),
|
|
3174
3174
|
autocomplete: e.schema.autocomplete,
|
|
3175
3175
|
class: e.schema.fieldClasses,
|
|
@@ -3218,7 +3218,7 @@ function gm(e, t, n, i, a, o) {
|
|
|
3218
3218
|
return c(), v("div", {
|
|
3219
3219
|
class: ee(["field-dropdown", { active: a.contentVisible }])
|
|
3220
3220
|
}, [
|
|
3221
|
-
|
|
3221
|
+
f("div", {
|
|
3222
3222
|
class: "title",
|
|
3223
3223
|
onClick: t[0] || (t[0] = (u) => a.contentVisible = !a.contentVisible)
|
|
3224
3224
|
}, [
|
|
@@ -3296,14 +3296,14 @@ const So = /* @__PURE__ */ W(hm, [["render", gm]]), ym = { class: "field-object-
|
|
|
3296
3296
|
schema: t.schema.schema,
|
|
3297
3297
|
onModelUpdated: t.updateModel
|
|
3298
3298
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : (c(), v("div", vm, [
|
|
3299
|
-
|
|
3299
|
+
f("table", {
|
|
3300
3300
|
id: t.getFieldID(t.schema),
|
|
3301
3301
|
class: ee(t.schema.fieldClasses)
|
|
3302
3302
|
}, [
|
|
3303
3303
|
(c(!0), v(Y, null, oe(t.value, (a, o) => (c(), v("tr", { key: o }, [
|
|
3304
|
-
|
|
3304
|
+
f("td", null, N(o), 1),
|
|
3305
3305
|
t.keyTypes[o] === "string" ? (c(), v("td", _m, [
|
|
3306
|
-
Ee(
|
|
3306
|
+
Ee(f("input", {
|
|
3307
3307
|
"onUpdate:modelValue": (r) => t.value[o] = r,
|
|
3308
3308
|
type: "text"
|
|
3309
3309
|
}, null, 8, Tm), [
|
|
@@ -3311,7 +3311,7 @@ const So = /* @__PURE__ */ W(hm, [["render", gm]]), ym = { class: "field-object-
|
|
|
3311
3311
|
])
|
|
3312
3312
|
])) : B("", !0),
|
|
3313
3313
|
t.keyTypes[o] === "boolean" ? (c(), v("td", Sm, [
|
|
3314
|
-
Ee(
|
|
3314
|
+
Ee(f("input", {
|
|
3315
3315
|
"onUpdate:modelValue": (r) => t.value[o] = r,
|
|
3316
3316
|
type: "checkbox"
|
|
3317
3317
|
}, null, 8, wm), [
|
|
@@ -3319,15 +3319,15 @@ const So = /* @__PURE__ */ W(hm, [["render", gm]]), ym = { class: "field-object-
|
|
|
3319
3319
|
])
|
|
3320
3320
|
])) : B("", !0),
|
|
3321
3321
|
t.keyTypes[o] === "number" ? (c(), v("td", Em, [
|
|
3322
|
-
Ee(
|
|
3322
|
+
Ee(f("input", {
|
|
3323
3323
|
"onUpdate:modelValue": (r) => t.value[o] = r,
|
|
3324
3324
|
type: "number"
|
|
3325
3325
|
}, null, 8, Mm), [
|
|
3326
3326
|
[$t, t.value[o]]
|
|
3327
3327
|
])
|
|
3328
3328
|
])) : B("", !0),
|
|
3329
|
-
|
|
3330
|
-
|
|
3329
|
+
f("td", null, [
|
|
3330
|
+
f("input", {
|
|
3331
3331
|
type: "button",
|
|
3332
3332
|
value: "x",
|
|
3333
3333
|
onClick: (r) => t.removeElement(o)
|
|
@@ -3335,22 +3335,22 @@ const So = /* @__PURE__ */ W(hm, [["render", gm]]), ym = { class: "field-object-
|
|
|
3335
3335
|
])
|
|
3336
3336
|
]))), 128))
|
|
3337
3337
|
], 10, bm),
|
|
3338
|
-
Ee(
|
|
3338
|
+
Ee(f("select", {
|
|
3339
3339
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyType = a)
|
|
3340
3340
|
}, n[3] || (n[3] = [
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3341
|
+
f("option", { value: "string" }, " String ", -1),
|
|
3342
|
+
f("option", { value: "number" }, " Number ", -1),
|
|
3343
|
+
f("option", { value: "boolean" }, " Boolean ", -1)
|
|
3344
3344
|
]), 512), [
|
|
3345
3345
|
[Vo, t.newKeyType]
|
|
3346
3346
|
]),
|
|
3347
|
-
Ee(
|
|
3347
|
+
Ee(f("input", {
|
|
3348
3348
|
"onUpdate:modelValue": n[1] || (n[1] = (a) => t.newKeyName = a),
|
|
3349
3349
|
type: "text"
|
|
3350
3350
|
}, null, 512), [
|
|
3351
3351
|
[$t, t.newKeyName]
|
|
3352
3352
|
]),
|
|
3353
|
-
|
|
3353
|
+
f("input", {
|
|
3354
3354
|
type: "button",
|
|
3355
3355
|
value: "Add key",
|
|
3356
3356
|
onClick: n[2] || (n[2] = (...a) => t.addKey && t.addKey(...a))
|
|
@@ -3479,11 +3479,11 @@ const So = /* @__PURE__ */ W(hm, [["render", gm]]), ym = { class: "field-object-
|
|
|
3479
3479
|
key: o,
|
|
3480
3480
|
"data-testid": `field-object-key-${o}`
|
|
3481
3481
|
}, [
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3482
|
+
f("div", null, [
|
|
3483
|
+
f("div", km, [
|
|
3484
|
+
f("div", Rm, [
|
|
3485
|
+
f("strong", null, N(o), 1),
|
|
3486
|
+
f("div", null, [
|
|
3487
3487
|
F(i, {
|
|
3488
3488
|
appearance: "tertiary",
|
|
3489
3489
|
class: "delete",
|
|
@@ -3498,7 +3498,7 @@ const So = /* @__PURE__ */ W(hm, [["render", gm]]), ym = { class: "field-object-
|
|
|
3498
3498
|
}, 1032, ["onClick"])
|
|
3499
3499
|
])
|
|
3500
3500
|
]),
|
|
3501
|
-
n[1] || (n[1] =
|
|
3501
|
+
n[1] || (n[1] = f("hr", { class: "divider" }, null, -1)),
|
|
3502
3502
|
t.subSchema ? (c(), v("div", Um, [
|
|
3503
3503
|
F(ue, {
|
|
3504
3504
|
model: t.transformedModel[o],
|
|
@@ -3507,7 +3507,7 @@ const So = /* @__PURE__ */ W(hm, [["render", gm]]), ym = { class: "field-object-
|
|
|
3507
3507
|
onModelUpdated: t.updateModel
|
|
3508
3508
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
3509
3509
|
])) : (c(), v("div", Nm, [
|
|
3510
|
-
Ee(
|
|
3510
|
+
Ee(f("input", {
|
|
3511
3511
|
"onUpdate:modelValue": (r) => t.value[o] = r,
|
|
3512
3512
|
class: "form-control",
|
|
3513
3513
|
placeholder: t.schema.fields && t.schema.fields[0].schema.placeholder,
|
|
@@ -3523,15 +3523,15 @@ const So = /* @__PURE__ */ W(hm, [["render", gm]]), ym = { class: "field-object-
|
|
|
3523
3523
|
value: t.value[o]
|
|
3524
3524
|
}, null, 8, ["schema", "update", "value"]))
|
|
3525
3525
|
])),
|
|
3526
|
-
n[2] || (n[2] =
|
|
3526
|
+
n[2] || (n[2] = f("hr", { class: "wide-divider" }, null, -1))
|
|
3527
3527
|
])
|
|
3528
3528
|
])
|
|
3529
3529
|
], 8, Fm))), 128)),
|
|
3530
|
-
|
|
3530
|
+
f("div", {
|
|
3531
3531
|
class: ee(["input-wrapper", { indent: t.hasObjectKeys }])
|
|
3532
3532
|
}, [
|
|
3533
|
-
|
|
3534
|
-
Ee(
|
|
3533
|
+
f("div", Dm, [
|
|
3534
|
+
Ee(f("input", {
|
|
3535
3535
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.newKeyName = a),
|
|
3536
3536
|
class: "form-control",
|
|
3537
3537
|
"data-testid": "keyname-input",
|
|
@@ -3894,7 +3894,7 @@ function Wm(e, t, n, i, a, o) {
|
|
|
3894
3894
|
}),
|
|
3895
3895
|
_: 2
|
|
3896
3896
|
}, 1064, ["data-testid", "model", "schema", "onRemoveItem"])) : (c(), v(Y, { key: 3 }, [
|
|
3897
|
-
Ee(
|
|
3897
|
+
Ee(f("input", et({ ref_for: !0 }, e.schema.inputAttributes, {
|
|
3898
3898
|
"onUpdate:modelValue": (h) => e.value[g] = h,
|
|
3899
3899
|
"aria-labelledby": e.getLabelId(e.schema),
|
|
3900
3900
|
type: "text"
|
|
@@ -4003,8 +4003,8 @@ function lf(e, t, n, i, a, o) {
|
|
|
4003
4003
|
(c(!0), v(Y, null, oe(o.items, (s) => (c(), v("div", {
|
|
4004
4004
|
class: ee(["list-row", { "is-checked": o.isItemChecked(s) }])
|
|
4005
4005
|
}, [
|
|
4006
|
-
|
|
4007
|
-
Ee(
|
|
4006
|
+
f("label", null, [
|
|
4007
|
+
Ee(f("input", {
|
|
4008
4008
|
id: e.getFieldID(e.schema, !0),
|
|
4009
4009
|
type: "checkbox",
|
|
4010
4010
|
checked: o.isItemChecked(s) || null,
|
|
@@ -4023,19 +4023,19 @@ function lf(e, t, n, i, a, o) {
|
|
|
4023
4023
|
class: "combobox form-control",
|
|
4024
4024
|
disabled: e.disabled || null
|
|
4025
4025
|
}, [
|
|
4026
|
-
|
|
4026
|
+
f("div", {
|
|
4027
4027
|
class: ee(["mainRow", { expanded: a.comboExpanded }]),
|
|
4028
4028
|
onClick: t[0] || (t[0] = (...s) => o.onExpandCombo && o.onExpandCombo(...s))
|
|
4029
4029
|
}, [
|
|
4030
|
-
|
|
4031
|
-
t[1] || (t[1] =
|
|
4030
|
+
f("div", of, N(o.selectedCount) + " selected", 1),
|
|
4031
|
+
t[1] || (t[1] = f("div", { class: "arrow" }, null, -1))
|
|
4032
4032
|
], 2),
|
|
4033
|
-
|
|
4033
|
+
f("div", rf, [
|
|
4034
4034
|
a.comboExpanded ? (c(!0), v(Y, { key: 0 }, oe(o.items, (s) => (c(), v("div", {
|
|
4035
4035
|
class: ee(["list-row", { "is-checked": o.isItemChecked(s) }])
|
|
4036
4036
|
}, [
|
|
4037
|
-
|
|
4038
|
-
Ee(
|
|
4037
|
+
f("label", null, [
|
|
4038
|
+
Ee(f("input", {
|
|
4039
4039
|
id: e.getFieldID(e.schema, !0),
|
|
4040
4040
|
type: "checkbox",
|
|
4041
4041
|
checked: o.isItemChecked(s) || null,
|
|
@@ -4172,8 +4172,8 @@ function yf(e, t, n, i, a, o) {
|
|
|
4172
4172
|
key: u,
|
|
4173
4173
|
class: "pair-item"
|
|
4174
4174
|
}, [
|
|
4175
|
-
|
|
4176
|
-
|
|
4175
|
+
f("div", ff, [
|
|
4176
|
+
f("input", {
|
|
4177
4177
|
class: "form-control",
|
|
4178
4178
|
"data-testid": `${e.getFieldID(e.schema)}-pair-key-${u}`,
|
|
4179
4179
|
placeholder: e.schema.keyInputPlaceholder ?? "Key",
|
|
@@ -4189,8 +4189,8 @@ function yf(e, t, n, i, a, o) {
|
|
|
4189
4189
|
value: d.key
|
|
4190
4190
|
}, null, 8, ["schema", "update", "value"]))
|
|
4191
4191
|
]),
|
|
4192
|
-
|
|
4193
|
-
|
|
4192
|
+
f("div", pf, [
|
|
4193
|
+
f("input", {
|
|
4194
4194
|
class: "form-control",
|
|
4195
4195
|
"data-testid": `${e.getFieldID(e.schema)}-pair-value-${u}`,
|
|
4196
4196
|
placeholder: e.schema.valueInputPlaceholder ?? "Value",
|
|
@@ -4356,7 +4356,10 @@ const vf = /* @__PURE__ */ W(cf, [["render", yf], ["__scopeId", "data-v-70998d5b
|
|
|
4356
4356
|
}, null, 8, ["id", "modelValue", "aria-labelledby", "class", "disabled", "items", "kpop-attributes", "label-attributes", "name", "placeholder", "required"]);
|
|
4357
4357
|
};
|
|
4358
4358
|
}
|
|
4359
|
-
}), Sf = { class: "selection-group" }, wf = { class: "form-group horizontal-radios" }, Ef = { class: "radio-group" }, Mf = ["disabled", "value"], Af = { class: "control-help" }, If = {
|
|
4359
|
+
}), Sf = { class: "selection-group" }, wf = { class: "form-group horizontal-radios" }, Ef = { class: "radio-group" }, Mf = ["disabled", "value"], Af = { class: "control-help" }, If = {
|
|
4360
|
+
key: 0,
|
|
4361
|
+
class: "option-field"
|
|
4362
|
+
}, Cf = { class: "option-field-container" }, Of = {
|
|
4360
4363
|
mixins: [$e],
|
|
4361
4364
|
expose: ["validate", "clearValidationErrors", "schema"],
|
|
4362
4365
|
emits: ["model-updated"],
|
|
@@ -4365,6 +4368,13 @@ const vf = /* @__PURE__ */ W(cf, [["render", yf], ["__scopeId", "data-v-70998d5b
|
|
|
4365
4368
|
checkedGroup: null,
|
|
4366
4369
|
fieldModel: { ...this.model },
|
|
4367
4370
|
// keep local copy of original model
|
|
4371
|
+
/**
|
|
4372
|
+
* renderedTrack tracks makes lazy rendering possible by tracking each index pointed component's render state
|
|
4373
|
+
* all unrendered components are set to 0, when the corresponding group got picked it will be set to 1 for good,
|
|
4374
|
+
* this retains the local state for each subgroup without initializing early to send unpermitted requests which
|
|
4375
|
+
* triggers testing failures
|
|
4376
|
+
*/
|
|
4377
|
+
renderedTrack: [],
|
|
4368
4378
|
fieldSchema: [],
|
|
4369
4379
|
scope: "scope"
|
|
4370
4380
|
};
|
|
@@ -4372,7 +4382,7 @@ const vf = /* @__PURE__ */ W(cf, [["render", yf], ["__scopeId", "data-v-70998d5b
|
|
|
4372
4382
|
watch: {
|
|
4373
4383
|
checkedGroup: {
|
|
4374
4384
|
handler(e, t) {
|
|
4375
|
-
if (t === null) {
|
|
4385
|
+
if (this.renderedTrack[e] = 1, t === null) {
|
|
4376
4386
|
this.fieldModel = { ...this.model };
|
|
4377
4387
|
return;
|
|
4378
4388
|
}
|
|
@@ -4383,7 +4393,7 @@ const vf = /* @__PURE__ */ W(cf, [["render", yf], ["__scopeId", "data-v-70998d5b
|
|
|
4383
4393
|
},
|
|
4384
4394
|
async created() {
|
|
4385
4395
|
await this.$nextTick(), this.schema.fields.forEach((e, t) => {
|
|
4386
|
-
e.fields && e.fields.forEach((n) => {
|
|
4396
|
+
this.renderedTrack.push(0), e.fields && e.fields.forEach((n) => {
|
|
4387
4397
|
var i;
|
|
4388
4398
|
this.model[n.model] && (this.checkedGroup = t, this.fieldSchema.push(n.model), this.scope = (i = n.label) == null ? void 0 : i.toLowerCase());
|
|
4389
4399
|
});
|
|
@@ -4404,16 +4414,16 @@ const vf = /* @__PURE__ */ W(cf, [["render", yf], ["__scopeId", "data-v-70998d5b
|
|
|
4404
4414
|
text: I(t)("general.disable_global_radio", { scope: n.scope })
|
|
4405
4415
|
}, {
|
|
4406
4416
|
default: M(() => [
|
|
4407
|
-
|
|
4408
|
-
|
|
4417
|
+
f("div", wf, [
|
|
4418
|
+
f("div", Ef, [
|
|
4409
4419
|
(c(!0), v(Y, null, oe(n.schema.fields, (a, o) => (c(), v("div", {
|
|
4410
4420
|
key: o,
|
|
4411
4421
|
class: ee(["option-group", { "radio-disabled": n.$props.disabled }])
|
|
4412
4422
|
}, [
|
|
4413
|
-
|
|
4423
|
+
f("label", {
|
|
4414
4424
|
class: ee(["k-label", `${a.label}-check`])
|
|
4415
4425
|
}, [
|
|
4416
|
-
Ee(
|
|
4426
|
+
Ee(f("input", {
|
|
4417
4427
|
"onUpdate:modelValue": i[0] || (i[0] = (r) => n.checkedGroup = r),
|
|
4418
4428
|
class: "k-input",
|
|
4419
4429
|
disabled: n.$props.disabled,
|
|
@@ -4423,7 +4433,7 @@ const vf = /* @__PURE__ */ W(cf, [["render", yf], ["__scopeId", "data-v-70998d5b
|
|
|
4423
4433
|
[qo, n.checkedGroup]
|
|
4424
4434
|
]),
|
|
4425
4435
|
ce(" " + N(a.label) + " ", 1),
|
|
4426
|
-
|
|
4436
|
+
f("div", Af, N(a.description), 1)
|
|
4427
4437
|
], 2)
|
|
4428
4438
|
], 2))), 128))
|
|
4429
4439
|
])
|
|
@@ -4435,8 +4445,8 @@ const vf = /* @__PURE__ */ W(cf, [["render", yf], ["__scopeId", "data-v-70998d5b
|
|
|
4435
4445
|
key: o,
|
|
4436
4446
|
class: "option-group"
|
|
4437
4447
|
}, [
|
|
4438
|
-
Ee(
|
|
4439
|
-
|
|
4448
|
+
n.renderedTrack[o] ? Ee((c(), v("div", If, [
|
|
4449
|
+
f("div", Cf, [
|
|
4440
4450
|
F(ue, {
|
|
4441
4451
|
model: n.model,
|
|
4442
4452
|
options: { helpAsHtml: !0 },
|
|
@@ -4444,13 +4454,13 @@ const vf = /* @__PURE__ */ W(cf, [["render", yf], ["__scopeId", "data-v-70998d5b
|
|
|
4444
4454
|
onModelUpdated: n.updateModel
|
|
4445
4455
|
}, null, 8, ["model", "schema", "onModelUpdated"])
|
|
4446
4456
|
])
|
|
4447
|
-
], 512), [
|
|
4457
|
+
], 512)), [
|
|
4448
4458
|
[Ko, a.fields && n.checkedGroup === o]
|
|
4449
|
-
])
|
|
4459
|
+
]) : B("", !0)
|
|
4450
4460
|
]))), 128))
|
|
4451
4461
|
]));
|
|
4452
4462
|
}
|
|
4453
|
-
}), kf = /* @__PURE__ */ W(Ff, [["__scopeId", "data-v-
|
|
4463
|
+
}), kf = /* @__PURE__ */ W(Ff, [["__scopeId", "data-v-0dda17d6"]]), Rf = { class: "form-field-wrapper" }, Uf = /* @__PURE__ */ he({
|
|
4454
4464
|
__name: "FieldSwitch",
|
|
4455
4465
|
props: {
|
|
4456
4466
|
disabled: {
|
|
@@ -4783,15 +4793,15 @@ function Yf(e, t, n, i, a, o) {
|
|
|
4783
4793
|
} : void 0
|
|
4784
4794
|
}, cn({
|
|
4785
4795
|
default: M(() => [
|
|
4786
|
-
|
|
4787
|
-
|
|
4796
|
+
f("div", jf, [
|
|
4797
|
+
f("span", null, N(o.formattedLabel(n.field.label)), 1)
|
|
4788
4798
|
]),
|
|
4789
4799
|
n.field.link ? (c(), v("div", qf, [
|
|
4790
4800
|
F(r, {
|
|
4791
4801
|
href: n.field.link
|
|
4792
4802
|
}, {
|
|
4793
4803
|
default: M(() => t[0] || (t[0] = [
|
|
4794
|
-
|
|
4804
|
+
f("span", { class: "section-header" }, "More info", -1)
|
|
4795
4805
|
])),
|
|
4796
4806
|
_: 1
|
|
4797
4807
|
}, 8, ["href"])
|
|
@@ -4802,14 +4812,14 @@ function Yf(e, t, n, i, a, o) {
|
|
|
4802
4812
|
n.options.helpAsHtml && n.field.help ? {
|
|
4803
4813
|
name: "tooltip",
|
|
4804
4814
|
fn: M(() => [
|
|
4805
|
-
|
|
4815
|
+
f("div", {
|
|
4806
4816
|
innerHTML: o.sanitize(n.field.help)
|
|
4807
4817
|
}, null, 8, Vf)
|
|
4808
4818
|
]),
|
|
4809
4819
|
key: "0"
|
|
4810
4820
|
} : void 0
|
|
4811
4821
|
]), 1032, ["aria-describedby", "class", "for", "info", "tooltip-attributes"])) : B("", !0),
|
|
4812
|
-
|
|
4822
|
+
f("div", Kf, [
|
|
4813
4823
|
(c(), U(me(o.getFieldComponent(n.field)), et(e.$attrs, {
|
|
4814
4824
|
ref: "child",
|
|
4815
4825
|
disabled: e.fieldDisabled(n.field) || null,
|
|
@@ -4899,10 +4909,10 @@ const Gf = (e) => {
|
|
|
4899
4909
|
key: j,
|
|
4900
4910
|
class: "partial-config-card-row"
|
|
4901
4911
|
}, [
|
|
4902
|
-
|
|
4903
|
-
|
|
4912
|
+
f("div", Xf, [
|
|
4913
|
+
f("div", Jf, N(p), 1)
|
|
4904
4914
|
]),
|
|
4905
|
-
|
|
4915
|
+
f("div", {
|
|
4906
4916
|
class: "config-card-row-value",
|
|
4907
4917
|
"data-testid": `${j}-property-value`
|
|
4908
4918
|
}, [
|
|
@@ -4987,22 +4997,22 @@ const Gf = (e) => {
|
|
|
4987
4997
|
fetchedItemsKey: "data",
|
|
4988
4998
|
searchKeys: ["id", "name"]
|
|
4989
4999
|
}), k = z(() => g.value ? r(g.value) : ""), j = (D) => {
|
|
4990
|
-
let
|
|
4991
|
-
return s.app === "konnect" ?
|
|
5000
|
+
let m = `${s.apiBaseUrl}${i[s.app].getOne}`;
|
|
5001
|
+
return s.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, (s == null ? void 0 : s.controlPlaneId) || "") : s.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, s != null && s.workspace ? `/${s.workspace}` : "")), m = m.replace(/{id}/gi, String(D)), m;
|
|
4992
5002
|
}, p = z(() => {
|
|
4993
|
-
const D = (y.value || []).map((
|
|
4994
|
-
return a.redisType !== "all" ? D.filter((
|
|
5003
|
+
const D = (y.value || []).map((m) => ({ label: m.id, name: m.name, value: m.id, type: m.type, tag: Gf(m) })).filter((m) => m.type === "redis-ce" || m.type === "redis-ee");
|
|
5004
|
+
return a.redisType !== "all" ? D.filter((m) => m.type === a.redisType) : D;
|
|
4995
5005
|
}), { axiosInstance: A } = Zo(s == null ? void 0 : s.axiosRequestConfig), O = async (D) => {
|
|
4996
5006
|
if (D) {
|
|
4997
5007
|
a.updateRedisModel(D);
|
|
4998
5008
|
try {
|
|
4999
|
-
const
|
|
5000
|
-
if (
|
|
5001
|
-
const _ = Object.assign(
|
|
5009
|
+
const m = await A.get(j(D));
|
|
5010
|
+
if (m.data.config) {
|
|
5011
|
+
const _ = Object.assign(m.data, m.data.config);
|
|
5002
5012
|
delete _.config, o.value = _;
|
|
5003
5013
|
}
|
|
5004
|
-
} catch (
|
|
5005
|
-
console.error(
|
|
5014
|
+
} catch (m) {
|
|
5015
|
+
console.error(m);
|
|
5006
5016
|
}
|
|
5007
5017
|
}
|
|
5008
5018
|
};
|
|
@@ -5010,10 +5020,10 @@ const Gf = (e) => {
|
|
|
5010
5020
|
D && await h();
|
|
5011
5021
|
}), Xn(() => {
|
|
5012
5022
|
h(), a.defaultRedisConfigItem && O(a.defaultRedisConfigItem);
|
|
5013
|
-
}), (D,
|
|
5023
|
+
}), (D, m) => {
|
|
5014
5024
|
const _ = P("KLabel"), C = P("KBadge"), w = P("KSelect");
|
|
5015
5025
|
return c(), v(Y, null, [
|
|
5016
|
-
|
|
5026
|
+
f("div", rh, [
|
|
5017
5027
|
F(_, {
|
|
5018
5028
|
info: e.isCustomPlugin ? I(t)("redis.custom_plugin.tooltip") : I(t)("redis.shared_configuration.tooltip", { type: I(Sa)(e.redisType) }),
|
|
5019
5029
|
"tooltip-attributes": {
|
|
@@ -5026,7 +5036,7 @@ const Gf = (e) => {
|
|
|
5026
5036
|
]),
|
|
5027
5037
|
_: 1
|
|
5028
5038
|
}, 8, ["info"]),
|
|
5029
|
-
|
|
5039
|
+
m[2] || (m[2] = f("div", { class: "shared-redis-config-title" }, null, -1)),
|
|
5030
5040
|
F(w, {
|
|
5031
5041
|
class: "redis-config-select-trigger",
|
|
5032
5042
|
"data-testid": "redis-config-select-trigger",
|
|
@@ -5036,18 +5046,18 @@ const Gf = (e) => {
|
|
|
5036
5046
|
loading: I(u),
|
|
5037
5047
|
"model-value": e.defaultRedisConfigItem,
|
|
5038
5048
|
placeholder: I(t)("redis.shared_configuration.selector.placeholder"),
|
|
5039
|
-
onChange:
|
|
5049
|
+
onChange: m[1] || (m[1] = (b) => O(b == null ? void 0 : b.value)),
|
|
5040
5050
|
onQueryChange: I(d)
|
|
5041
5051
|
}, {
|
|
5042
5052
|
"selected-item-template": M(({ item: b }) => [
|
|
5043
|
-
|
|
5053
|
+
f("div", sh, N(b.name), 1)
|
|
5044
5054
|
]),
|
|
5045
5055
|
"item-template": M(({ item: b }) => [
|
|
5046
|
-
|
|
5056
|
+
f("div", {
|
|
5047
5057
|
class: "plugin-form-redis-configuration-dropdown-item",
|
|
5048
5058
|
"data-testid": `redis-configuration-dropdown-item-${b.name}`
|
|
5049
5059
|
}, [
|
|
5050
|
-
|
|
5060
|
+
f("span", dh, N(b.name), 1),
|
|
5051
5061
|
F(C, {
|
|
5052
5062
|
appearance: "info",
|
|
5053
5063
|
class: "select-item-label"
|
|
@@ -5060,16 +5070,16 @@ const Gf = (e) => {
|
|
|
5060
5070
|
], 8, lh)
|
|
5061
5071
|
]),
|
|
5062
5072
|
empty: M(() => [
|
|
5063
|
-
|
|
5073
|
+
f("div", uh, N(I(t)("redis.shared_configuration.empty_state")), 1)
|
|
5064
5074
|
]),
|
|
5065
5075
|
"dropdown-footer-text": M(() => [
|
|
5066
|
-
|
|
5076
|
+
f("div", {
|
|
5067
5077
|
class: "new-redis-config-area",
|
|
5068
5078
|
"data-testid": "new-redis-config-area",
|
|
5069
|
-
onClick:
|
|
5079
|
+
onClick: m[0] || (m[0] = (b) => D.$emit("showNewPartialModal"))
|
|
5070
5080
|
}, [
|
|
5071
5081
|
F(I(Qn), { size: I(zc) }, null, 8, ["size"]),
|
|
5072
|
-
|
|
5082
|
+
f("span", null, N(I(t)("redis.shared_configuration.create_new_configuration", { type: I(Sa)(e.redisType) })), 1)
|
|
5073
5083
|
])
|
|
5074
5084
|
]),
|
|
5075
5085
|
_: 1
|
|
@@ -5154,12 +5164,12 @@ const Gf = (e) => {
|
|
|
5154
5164
|
p ? u.value && i("partialToggled", "redis", { partials: u.value }) : i("partialToggled", "partials", d.value);
|
|
5155
5165
|
}), Xn(() => {
|
|
5156
5166
|
var p, A, O;
|
|
5157
|
-
if (n.model && (d.value = n.field.fields.reduce((D,
|
|
5167
|
+
if (n.model && (d.value = n.field.fields.reduce((D, m) => (Object.keys(n.model).includes(m.model) && (D[m.model] = n.model[m.model]), D), {})), (O = (A = (p = n == null ? void 0 : n.model) == null ? void 0 : p.partials) == null ? void 0 : A[0]) != null && O.id) {
|
|
5158
5168
|
const D = n.model.partials[0].id;
|
|
5159
5169
|
r.value = !0, s.value = D;
|
|
5160
5170
|
}
|
|
5161
5171
|
}), (p, A) => {
|
|
5162
|
-
const O = P("KAlert"), D = P("KBadge"),
|
|
5172
|
+
const O = P("KAlert"), D = P("KBadge"), m = P("KRadio"), _ = P("KCard");
|
|
5163
5173
|
return c(), v("div", null, [
|
|
5164
5174
|
o.value ? (c(), v("div", hh, [
|
|
5165
5175
|
F(O, {
|
|
@@ -5180,8 +5190,8 @@ const Gf = (e) => {
|
|
|
5180
5190
|
title: I(a)("redis.title")
|
|
5181
5191
|
}, {
|
|
5182
5192
|
default: M(() => [
|
|
5183
|
-
|
|
5184
|
-
F(
|
|
5193
|
+
f("div", ph, [
|
|
5194
|
+
F(m, {
|
|
5185
5195
|
modelValue: r.value,
|
|
5186
5196
|
"onUpdate:modelValue": A[1] || (A[1] = (C) => r.value = C),
|
|
5187
5197
|
card: "",
|
|
@@ -5201,7 +5211,7 @@ const Gf = (e) => {
|
|
|
5201
5211
|
]),
|
|
5202
5212
|
_: 1
|
|
5203
5213
|
}, 8, ["modelValue", "description", "label"]),
|
|
5204
|
-
F(
|
|
5214
|
+
F(m, {
|
|
5205
5215
|
modelValue: r.value,
|
|
5206
5216
|
"onUpdate:modelValue": A[2] || (A[2] = (C) => r.value = C),
|
|
5207
5217
|
card: "",
|
|
@@ -5221,7 +5231,7 @@ const Gf = (e) => {
|
|
|
5221
5231
|
onShowNewPartialModal: A[3] || (A[3] = (C) => p.$emit("showNewPartialModal"))
|
|
5222
5232
|
}, null, 8, ["default-redis-config-item", "plugin-redis-fields", "redis-type"])
|
|
5223
5233
|
])) : (c(), v("div", yh, [
|
|
5224
|
-
|
|
5234
|
+
f("div", vh, N(I(a)("redis.dedicated_configuration.title")), 1),
|
|
5225
5235
|
(c(), U(me(e.tag), null, {
|
|
5226
5236
|
default: M(() => [
|
|
5227
5237
|
(c(!0), v(Y, null, oe(e.field.fields, (C) => (c(), v(Y, {
|
|
@@ -5823,16 +5833,16 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5823
5833
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
5824
5834
|
F(h, { tabs: a.tabs }, {
|
|
5825
5835
|
common: M(() => [
|
|
5826
|
-
|
|
5827
|
-
|
|
5836
|
+
f("div", Ah, [
|
|
5837
|
+
f("div", Ih, [
|
|
5828
5838
|
F(s, { href: a.openIdConfigurationDocs }, {
|
|
5829
5839
|
default: M(() => t[2] || (t[2] = [
|
|
5830
|
-
|
|
5840
|
+
f("span", { class: "section-header" }, "Common Configuration Settings", -1)
|
|
5831
5841
|
])),
|
|
5832
5842
|
_: 1
|
|
5833
5843
|
}, 8, ["href"])
|
|
5834
5844
|
]),
|
|
5835
|
-
t[4] || (t[4] =
|
|
5845
|
+
t[4] || (t[4] = f("div", { class: "description" }, " Parameters for enabling the OpenID Connect plugin. Set these parameters before adding authorization, authentication, or other advanced configuration details. ", -1)),
|
|
5836
5846
|
o.displayForm ? (c(), U(r, {
|
|
5837
5847
|
key: 0,
|
|
5838
5848
|
model: n.formModel,
|
|
@@ -5846,7 +5856,7 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5846
5856
|
])),
|
|
5847
5857
|
_: 1
|
|
5848
5858
|
}),
|
|
5849
|
-
|
|
5859
|
+
f("div", Ch, [
|
|
5850
5860
|
(c(!0), v(Y, null, oe(a.authMethods, (y) => (c(), v("div", {
|
|
5851
5861
|
key: y.value,
|
|
5852
5862
|
class: "auth-method"
|
|
@@ -5872,16 +5882,16 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5872
5882
|
])
|
|
5873
5883
|
]),
|
|
5874
5884
|
authorization: M(() => [
|
|
5875
|
-
|
|
5876
|
-
|
|
5885
|
+
f("div", Oh, [
|
|
5886
|
+
f("div", Fh, [
|
|
5877
5887
|
F(s, { href: a.openIdAuthorizationDocs }, {
|
|
5878
5888
|
default: M(() => t[5] || (t[5] = [
|
|
5879
|
-
|
|
5889
|
+
f("span", { class: "section-header" }, "Authorization Configuration Settings", -1)
|
|
5880
5890
|
])),
|
|
5881
5891
|
_: 1
|
|
5882
5892
|
}, 8, ["href"])
|
|
5883
5893
|
]),
|
|
5884
|
-
t[6] || (t[6] =
|
|
5894
|
+
t[6] || (t[6] = f("div", { class: "description" }, " Parameters for setting up claims-based authorization. ", -1)),
|
|
5885
5895
|
o.displayForm ? (c(), U(r, {
|
|
5886
5896
|
key: 0,
|
|
5887
5897
|
model: n.formModel,
|
|
@@ -5897,16 +5907,16 @@ function Uh(e, t, n, i, a, o) {
|
|
|
5897
5907
|
])
|
|
5898
5908
|
]),
|
|
5899
5909
|
advanced: M(() => [
|
|
5900
|
-
|
|
5901
|
-
|
|
5910
|
+
f("div", kh, [
|
|
5911
|
+
f("div", Rh, [
|
|
5902
5912
|
F(s, { href: a.openIdConnectLink }, {
|
|
5903
5913
|
default: M(() => t[7] || (t[7] = [
|
|
5904
|
-
|
|
5914
|
+
f("span", { class: "section-header" }, "Advanced Configuration Settings", -1)
|
|
5905
5915
|
])),
|
|
5906
5916
|
_: 1
|
|
5907
5917
|
}, 8, ["href"])
|
|
5908
5918
|
]),
|
|
5909
|
-
t[8] || (t[8] =
|
|
5919
|
+
t[8] || (t[8] = f("div", { class: "description" }, " Advanced parameters for manually configuring the OpenID Connect plugin. ", -1)),
|
|
5910
5920
|
o.displayForm ? (c(), U(r, {
|
|
5911
5921
|
key: 0,
|
|
5912
5922
|
"enable-redis-partial": n.enableRedisPartial,
|
|
@@ -6206,7 +6216,7 @@ const Nh = /* @__PURE__ */ W(Mh, [["render", Uh], ["__scopeId", "data-v-741bf3cb
|
|
|
6206
6216
|
Zn(() => {
|
|
6207
6217
|
n.value === "zeroSsl" && (t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90");
|
|
6208
6218
|
});
|
|
6209
|
-
const
|
|
6219
|
+
const m = (w) => {
|
|
6210
6220
|
n.value = w.value, (w.value === "zeroSsl" || w.value === "other") && (w.value === "zeroSsl" ? t.formModel["config-api_uri"] = "https://acme.zerossl.com/v2/DV90" : t.formModel["config-api_uri"] = "https://acme.example.com/", t.formModel["config-tos_accepted"] = !1), w.value === "letsEncrypt" && (t.formModel["config-api_uri"] = "https://acme-v02.api.letsencrypt.org/directory", t.formModel["config-eab_hmac_key"] = "", t.formModel["config-eab_kid"] = ""), t.onModelUpdated();
|
|
6211
6221
|
}, _ = (w, b) => {
|
|
6212
6222
|
b === "config-storage" && (i.value = w), t.onModelUpdated();
|
|
@@ -6224,11 +6234,11 @@ const Nh = /* @__PURE__ */ W(Mh, [["render", Uh], ["__scopeId", "data-v-741bf3cb
|
|
|
6224
6234
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6225
6235
|
F(Z, { tabs: O }, {
|
|
6226
6236
|
general: M(() => [
|
|
6227
|
-
|
|
6228
|
-
b[0] || (b[0] =
|
|
6229
|
-
|
|
6237
|
+
f("div", Kh, [
|
|
6238
|
+
b[0] || (b[0] = f("div", { class: "header-wrapper" }, [
|
|
6239
|
+
f("span", { class: "section-header" }, "General Configuration Settings")
|
|
6230
6240
|
], -1)),
|
|
6231
|
-
b[1] || (b[1] =
|
|
6241
|
+
b[1] || (b[1] = f("div", { class: "description" }, " Parameters for enabling the ACME plugin. ", -1)),
|
|
6232
6242
|
A.value ? (c(), U(ue, {
|
|
6233
6243
|
key: 0,
|
|
6234
6244
|
model: e.formModel,
|
|
@@ -6236,14 +6246,14 @@ const Nh = /* @__PURE__ */ W(Mh, [["render", Uh], ["__scopeId", "data-v-741bf3cb
|
|
|
6236
6246
|
schema: u.value,
|
|
6237
6247
|
onModelUpdated: e.onModelUpdated
|
|
6238
6248
|
}, null, 8, ["model", "options", "schema", "onModelUpdated"])) : B("", !0),
|
|
6239
|
-
b[2] || (b[2] =
|
|
6249
|
+
b[2] || (b[2] = f("hr", null, null, -1)),
|
|
6240
6250
|
F(q, {
|
|
6241
6251
|
class: "issuer-select",
|
|
6242
6252
|
items: D,
|
|
6243
6253
|
label: "Issuer",
|
|
6244
|
-
onChange:
|
|
6254
|
+
onChange: m
|
|
6245
6255
|
}),
|
|
6246
|
-
|
|
6256
|
+
f("div", Bh, [
|
|
6247
6257
|
n.value === "letsEncrypt" ? (c(), U(ue, {
|
|
6248
6258
|
key: 0,
|
|
6249
6259
|
model: e.formModel,
|
|
@@ -6262,11 +6272,11 @@ const Nh = /* @__PURE__ */ W(Mh, [["render", Uh], ["__scopeId", "data-v-741bf3cb
|
|
|
6262
6272
|
])
|
|
6263
6273
|
]),
|
|
6264
6274
|
storage: M(() => [
|
|
6265
|
-
|
|
6266
|
-
b[3] || (b[3] =
|
|
6267
|
-
|
|
6275
|
+
f("div", zh, [
|
|
6276
|
+
b[3] || (b[3] = f("div", { class: "header-wrapper" }, [
|
|
6277
|
+
f("span", { class: "section-header" }, "Storage Configuration Settings")
|
|
6268
6278
|
], -1)),
|
|
6269
|
-
b[4] || (b[4] =
|
|
6279
|
+
b[4] || (b[4] = f("div", { class: "description" }, " Parameters for setting up storage. ", -1)),
|
|
6270
6280
|
A.value ? (c(), U(ue, {
|
|
6271
6281
|
key: 0,
|
|
6272
6282
|
model: e.formModel,
|
|
@@ -6274,7 +6284,7 @@ const Nh = /* @__PURE__ */ W(Mh, [["render", Uh], ["__scopeId", "data-v-741bf3cb
|
|
|
6274
6284
|
schema: g.value,
|
|
6275
6285
|
onModelUpdated: _
|
|
6276
6286
|
}, null, 8, ["model", "options", "schema"])) : B("", !0),
|
|
6277
|
-
|
|
6287
|
+
f("div", xh, [
|
|
6278
6288
|
i.value === "consul" ? (c(), U(ue, {
|
|
6279
6289
|
key: 0,
|
|
6280
6290
|
model: e.formModel,
|
|
@@ -6307,11 +6317,11 @@ const Nh = /* @__PURE__ */ W(Mh, [["render", Uh], ["__scopeId", "data-v-741bf3cb
|
|
|
6307
6317
|
])
|
|
6308
6318
|
]),
|
|
6309
6319
|
advanced: M(() => [
|
|
6310
|
-
|
|
6311
|
-
b[5] || (b[5] =
|
|
6312
|
-
|
|
6320
|
+
f("div", Hh, [
|
|
6321
|
+
b[5] || (b[5] = f("div", { class: "header-wrapper" }, [
|
|
6322
|
+
f("span", { class: "section-header" }, "Advanced Configuration Settings")
|
|
6313
6323
|
], -1)),
|
|
6314
|
-
b[6] || (b[6] =
|
|
6324
|
+
b[6] || (b[6] = f("div", { class: "description" }, " Advanced parameters for manually configuring the ACME plugin. ", -1)),
|
|
6315
6325
|
A.value ? (c(), U(ue, {
|
|
6316
6326
|
key: 0,
|
|
6317
6327
|
model: e.formModel,
|
|
@@ -6478,7 +6488,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6478
6488
|
var E, S, V, K;
|
|
6479
6489
|
return ((E = o.formModel) == null ? void 0 : E["config-error_message"]) ?? ((K = (V = (S = o.formSchema) == null ? void 0 : S.fields) == null ? void 0 : V.find((H) => H.model === "config-error_message")) == null ? void 0 : K.default);
|
|
6480
6490
|
}
|
|
6481
|
-
),
|
|
6491
|
+
), m = (E, S) => {
|
|
6482
6492
|
if (S === h.value) {
|
|
6483
6493
|
o.onModelUpdated([], "config-limit"), o.onModelUpdated([], "config-window_size"), Fi(() => {
|
|
6484
6494
|
h.value = void 0;
|
|
@@ -6518,7 +6528,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6518
6528
|
}), (E, S) => {
|
|
6519
6529
|
const V = P("KLabel"), K = P("KRadio"), H = P("KInput"), ge = P("KButton"), Ke = P("KBadge"), fe = P("KTooltip"), Be = P("KCard"), Tn = P("KSelect"), Ht = P("KCollapse");
|
|
6520
6530
|
return c(), v(Y, null, [
|
|
6521
|
-
|
|
6531
|
+
f("div", Wh, [
|
|
6522
6532
|
F(ue, {
|
|
6523
6533
|
model: E.formModel,
|
|
6524
6534
|
options: E.formOptions,
|
|
@@ -6537,11 +6547,11 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6537
6547
|
]),
|
|
6538
6548
|
_: 1
|
|
6539
6549
|
}),
|
|
6540
|
-
|
|
6550
|
+
f("div", Zh, N(I(a)("rla.request_limits.subtitle")), 1)
|
|
6541
6551
|
]),
|
|
6542
6552
|
default: M(() => [
|
|
6543
|
-
|
|
6544
|
-
|
|
6553
|
+
f("div", Xh, [
|
|
6554
|
+
f("div", Jh, [
|
|
6545
6555
|
F(V, {
|
|
6546
6556
|
class: "rla-form-window-type-label",
|
|
6547
6557
|
"tooltip-attributes": {
|
|
@@ -6550,7 +6560,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6550
6560
|
}
|
|
6551
6561
|
}, {
|
|
6552
6562
|
tooltip: M(() => [
|
|
6553
|
-
|
|
6563
|
+
f("div", {
|
|
6554
6564
|
innerHTML: I(a)("rla.window_type.help")
|
|
6555
6565
|
}, null, 8, Qh)
|
|
6556
6566
|
]),
|
|
@@ -6559,7 +6569,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6559
6569
|
]),
|
|
6560
6570
|
_: 1
|
|
6561
6571
|
}),
|
|
6562
|
-
|
|
6572
|
+
f("div", ep, [
|
|
6563
6573
|
(c(!0), v(Y, null, oe(j.value, ($) => (c(), U(K, {
|
|
6564
6574
|
key: `window-type-${$}`,
|
|
6565
6575
|
"model-value": k.value,
|
|
@@ -6574,7 +6584,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6574
6584
|
}, 1032, ["model-value", "name", "selected-value"]))), 128))
|
|
6575
6585
|
])
|
|
6576
6586
|
]),
|
|
6577
|
-
|
|
6587
|
+
f("div", tp, [
|
|
6578
6588
|
(c(!0), v(Y, null, oe(p.value, ($, ne) => (c(), v("div", {
|
|
6579
6589
|
key: ne.toString()
|
|
6580
6590
|
}, [
|
|
@@ -6586,8 +6596,8 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6586
6596
|
]),
|
|
6587
6597
|
_: 2
|
|
6588
6598
|
}, 1032, ["for"]),
|
|
6589
|
-
|
|
6590
|
-
|
|
6599
|
+
f("div", np, [
|
|
6600
|
+
f("legend", {
|
|
6591
6601
|
id: `rla-form-request-limits-item-${ne}-legend`,
|
|
6592
6602
|
class: "rla-form-request-limits-inputs"
|
|
6593
6603
|
}, [
|
|
@@ -6597,16 +6607,16 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6597
6607
|
type: "number",
|
|
6598
6608
|
"onUpdate:modelValue": (re) => C(ne, Number.parseInt(re))
|
|
6599
6609
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6600
|
-
|
|
6610
|
+
f("div", null, N(I(a)("rla.request_limits.interval_determiner")), 1),
|
|
6601
6611
|
F(H, {
|
|
6602
6612
|
"model-value": $.windowSize && $.windowSize.toString(),
|
|
6603
6613
|
placeholder: I(a)("rla.request_limits.time_interval"),
|
|
6604
6614
|
type: "number",
|
|
6605
6615
|
"onUpdate:modelValue": (re) => w(ne, Number.parseInt(re))
|
|
6606
6616
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"]),
|
|
6607
|
-
|
|
6617
|
+
f("div", null, N(I(a)("rla.request_limits.seconds")), 1)
|
|
6608
6618
|
], 8, ip),
|
|
6609
|
-
|
|
6619
|
+
f("div", ap, [
|
|
6610
6620
|
F(ge, {
|
|
6611
6621
|
appearance: "tertiary",
|
|
6612
6622
|
disabled: p.value.length <= 1,
|
|
@@ -6631,23 +6641,23 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6631
6641
|
]))), 128))
|
|
6632
6642
|
]),
|
|
6633
6643
|
d.value.length > 0 ? (c(), v("div", op, [
|
|
6634
|
-
|
|
6635
|
-
|
|
6644
|
+
f("div", null, N(I(a)("rla.start_with_a_use_case")), 1),
|
|
6645
|
+
f("div", rp, [
|
|
6636
6646
|
(c(!0), v(Y, null, oe(d.value, ($, ne) => (c(), U(fe, {
|
|
6637
6647
|
key: `use-case-${ne}`,
|
|
6638
6648
|
"max-width": "300"
|
|
6639
6649
|
}, {
|
|
6640
6650
|
content: M(() => [
|
|
6641
|
-
|
|
6642
|
-
S[10] || (S[10] =
|
|
6643
|
-
|
|
6644
|
-
|
|
6651
|
+
f("div", null, N($.description), 1),
|
|
6652
|
+
S[10] || (S[10] = f("br", null, null, -1)),
|
|
6653
|
+
f("div", null, N(I(a)("rla.request_limits.label")) + ": " + N($.config.limit), 1),
|
|
6654
|
+
f("div", null, N(I(a)("rla.request_limits.time_interval")) + ": " + N($.config.window_size), 1)
|
|
6645
6655
|
]),
|
|
6646
6656
|
default: M(() => [
|
|
6647
6657
|
F(Ke, {
|
|
6648
6658
|
appearance: h.value === `${k.value}-${ne}` ? "info" : "decorative",
|
|
6649
6659
|
class: "rla-form-request-limits-examples-badge",
|
|
6650
|
-
onClick: () =>
|
|
6660
|
+
onClick: () => m($, `${k.value}-${ne}`)
|
|
6651
6661
|
}, {
|
|
6652
6662
|
default: M(() => [
|
|
6653
6663
|
ce(N($.label), 1)
|
|
@@ -6679,13 +6689,13 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6679
6689
|
onSelected: S[2] || (S[2] = ($) => o.onModelUpdated($.value, "config-identifier"))
|
|
6680
6690
|
}, {
|
|
6681
6691
|
"label-tooltip": M(() => [
|
|
6682
|
-
|
|
6692
|
+
f("div", {
|
|
6683
6693
|
innerHTML: u.value && u.value.help
|
|
6684
6694
|
}, null, 8, sp)
|
|
6685
6695
|
]),
|
|
6686
6696
|
_: 1
|
|
6687
6697
|
}, 8, ["modelValue", "items", "label"]),
|
|
6688
|
-
|
|
6698
|
+
f("div", null, [
|
|
6689
6699
|
F(V, {
|
|
6690
6700
|
for: "rla-form-error-legend",
|
|
6691
6701
|
info: I(a)("rla.error_message.help"),
|
|
@@ -6700,7 +6710,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6700
6710
|
]),
|
|
6701
6711
|
_: 1
|
|
6702
6712
|
}, 8, ["info"]),
|
|
6703
|
-
|
|
6713
|
+
f("legend", lp, [
|
|
6704
6714
|
F(H, {
|
|
6705
6715
|
class: "input-error-code",
|
|
6706
6716
|
"model-value": O.value && O.value.toString(),
|
|
@@ -6708,7 +6718,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
6708
6718
|
type: "number",
|
|
6709
6719
|
"onUpdate:modelValue": S[3] || (S[3] = ($) => E.onModelUpdated(Number.parseInt($), "config-error_code"))
|
|
6710
6720
|
}, null, 8, ["model-value", "placeholder"]),
|
|
6711
|
-
S[11] || (S[11] =
|
|
6721
|
+
S[11] || (S[11] = f("div", null, ":", -1)),
|
|
6712
6722
|
F(H, {
|
|
6713
6723
|
"model-value": D.value,
|
|
6714
6724
|
placeholder: I(a)("rla.error_message.message_placeholder"),
|