@realtek/core-theme 0.0.128 → 0.0.130
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-lib/index.cjs +1 -1
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +31 -14
- package/dist-lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -25665,9 +25665,9 @@ function Mx({ open: e, initial: t, isChild: n, popupForms: r, templateOptions: i
|
|
|
25665
25665
|
function Nx() {
|
|
25666
25666
|
let [e, t] = A([]), [n, r] = A([]), [i, a] = A(""), [o, s] = A(0), [c, l] = A([]), [u, d] = A(null), [f, p] = A([]), [m, h] = A(!1), [g, _] = A(!1), [v, y] = A(!1), [b, x] = A(null), [S, C] = A(!1), [w, T] = A(null), [k, M] = A([]), [N, ee] = A([]), [P, I] = A(null), [te, L] = A(""), [ne, re] = A([]), [R, ie] = A([]);
|
|
25667
25667
|
D(() => {
|
|
25668
|
-
Promise.all([
|
|
25669
|
-
let i =
|
|
25670
|
-
t(
|
|
25668
|
+
Promise.all([Ki(), _a()]).then(([e, { roles: n }]) => {
|
|
25669
|
+
let i = ob(e).map((e) => e.value);
|
|
25670
|
+
t(i), a((e) => e || i[0] || ""), r(n ?? []);
|
|
25671
25671
|
}).catch(() => {
|
|
25672
25672
|
t([]);
|
|
25673
25673
|
});
|
|
@@ -25689,7 +25689,9 @@ function Nx() {
|
|
|
25689
25689
|
}
|
|
25690
25690
|
}, [i]);
|
|
25691
25691
|
D(() => {
|
|
25692
|
-
|
|
25692
|
+
queueMicrotask(() => {
|
|
25693
|
+
z();
|
|
25694
|
+
});
|
|
25693
25695
|
}, [z]), D(() => {
|
|
25694
25696
|
Promise.all([Xa(i, "popup").catch(() => []), gx({ module: i }).catch(() => [])]).then(([e, t]) => {
|
|
25695
25697
|
M(e), ee(t.map((e) => ({
|
|
@@ -25698,9 +25700,15 @@ function Nx() {
|
|
|
25698
25700
|
})));
|
|
25699
25701
|
});
|
|
25700
25702
|
}, [i]), D(() => {
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25703
|
+
queueMicrotask(() => {
|
|
25704
|
+
let e = c.filter((e) => e.roleId === o), t = e.find((e) => e.module === i) ?? e[0];
|
|
25705
|
+
d(t ?? null), p(t ? t.rowActions ?? [] : []), h(!1);
|
|
25706
|
+
});
|
|
25707
|
+
}, [
|
|
25708
|
+
o,
|
|
25709
|
+
i,
|
|
25710
|
+
c
|
|
25711
|
+
]);
|
|
25704
25712
|
let oe = async () => {
|
|
25705
25713
|
y(!0);
|
|
25706
25714
|
try {
|
|
@@ -25718,7 +25726,7 @@ function Nx() {
|
|
|
25718
25726
|
}
|
|
25719
25727
|
h(!1);
|
|
25720
25728
|
} catch (e) {
|
|
25721
|
-
X.error(e.message);
|
|
25729
|
+
X.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && z();
|
|
25722
25730
|
} finally {
|
|
25723
25731
|
y(!1);
|
|
25724
25732
|
}
|
|
@@ -25771,7 +25779,7 @@ function Nx() {
|
|
|
25771
25779
|
}
|
|
25772
25780
|
p(t), h(!1), C(!1);
|
|
25773
25781
|
} catch (e) {
|
|
25774
|
-
X.error(e.message);
|
|
25782
|
+
X.error(e.message), String(e.message ?? "").toLowerCase().includes("already exists") && z();
|
|
25775
25783
|
}
|
|
25776
25784
|
}, de = (e, t = null) => {
|
|
25777
25785
|
p(t ? (n) => n.map((n) => n.key === t ? {
|
|
@@ -26095,7 +26103,7 @@ function Nx() {
|
|
|
26095
26103
|
maxCount: 1,
|
|
26096
26104
|
placeholder: "Pick or type a module key",
|
|
26097
26105
|
value: i ? [i] : [],
|
|
26098
|
-
onChange: (e) => a(String(e[e.length - 1] ?? "").trim()
|
|
26106
|
+
onChange: (e) => a(String(e[e.length - 1] ?? "").trim()),
|
|
26099
26107
|
options: e.map((e) => ({
|
|
26100
26108
|
value: e,
|
|
26101
26109
|
label: e
|
|
@@ -26431,17 +26439,24 @@ function Kx() {
|
|
|
26431
26439
|
if (m.name.trim()) {
|
|
26432
26440
|
_(!0);
|
|
26433
26441
|
try {
|
|
26434
|
-
f ? await lo(f.id, m) : await co({
|
|
26442
|
+
f ? (await lo(f.id, m), X.success("Rule updated")) : (await co({
|
|
26435
26443
|
...m,
|
|
26436
26444
|
module: i
|
|
26437
|
-
}), d(!1), w(i);
|
|
26445
|
+
}), X.success("Rule created")), d(!1), w(i);
|
|
26446
|
+
} catch (e) {
|
|
26447
|
+
X.error(e.message);
|
|
26438
26448
|
} finally {
|
|
26439
26449
|
_(!1);
|
|
26440
26450
|
}
|
|
26441
26451
|
}
|
|
26442
26452
|
}
|
|
26443
26453
|
async function N(e) {
|
|
26444
|
-
|
|
26454
|
+
try {
|
|
26455
|
+
await uo(e.id), X.success("Rule deleted");
|
|
26456
|
+
} catch (e) {
|
|
26457
|
+
X.error(e.message);
|
|
26458
|
+
}
|
|
26459
|
+
w(i);
|
|
26445
26460
|
}
|
|
26446
26461
|
async function ee() {
|
|
26447
26462
|
y(!0);
|
|
@@ -26450,7 +26465,9 @@ function Kx() {
|
|
|
26450
26465
|
...e,
|
|
26451
26466
|
module: i
|
|
26452
26467
|
});
|
|
26453
|
-
w(i);
|
|
26468
|
+
X.success("Default job rules created"), w(i);
|
|
26469
|
+
} catch (e) {
|
|
26470
|
+
X.error(e.message);
|
|
26454
26471
|
} finally {
|
|
26455
26472
|
y(!1);
|
|
26456
26473
|
}
|