@firecms/user_management 3.0.0-beta.14 → 3.0.0-beta.15
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/index.umd.js
CHANGED
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
return true;
|
|
501
501
|
}
|
|
502
502
|
function RolesDetailsForm(t0) {
|
|
503
|
-
const $ = reactCompilerRuntime.c(
|
|
503
|
+
const $ = reactCompilerRuntime.c(164);
|
|
504
504
|
const {
|
|
505
505
|
open,
|
|
506
506
|
role,
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
}
|
|
1116
1116
|
let t80;
|
|
1117
1117
|
if ($[144] !== handleClose) {
|
|
1118
|
-
t80 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "text", onClick: () => {
|
|
1118
|
+
t80 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "text", color: "primary", onClick: () => {
|
|
1119
1119
|
handleClose();
|
|
1120
1120
|
}, children: "Cancel" });
|
|
1121
1121
|
$[144] = handleClose;
|
|
@@ -1124,71 +1124,64 @@
|
|
|
1124
1124
|
t80 = $[145];
|
|
1125
1125
|
}
|
|
1126
1126
|
const t81 = !dirty;
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
const t83 = isNewRole ? "Create role" : "Update";
|
|
1135
|
-
let t84;
|
|
1136
|
-
if ($[147] !== isSubmitting || $[148] !== t81 || $[149] !== t83) {
|
|
1137
|
-
t84 = /* @__PURE__ */ jsxRuntime.jsx(ui.LoadingButton, { variant: "filled", color: "primary", type: "submit", disabled: t81, loading: isSubmitting, startIcon: t82, children: t83 });
|
|
1138
|
-
$[147] = isSubmitting;
|
|
1139
|
-
$[148] = t81;
|
|
1127
|
+
const t82 = isNewRole ? "Create role" : "Update";
|
|
1128
|
+
let t83;
|
|
1129
|
+
if ($[146] !== isSubmitting || $[147] !== t81 || $[148] !== t82) {
|
|
1130
|
+
t83 = /* @__PURE__ */ jsxRuntime.jsx(ui.LoadingButton, { variant: "filled", color: "primary", type: "submit", disabled: t81, loading: isSubmitting, children: t82 });
|
|
1131
|
+
$[146] = isSubmitting;
|
|
1132
|
+
$[147] = t81;
|
|
1133
|
+
$[148] = t82;
|
|
1140
1134
|
$[149] = t83;
|
|
1141
|
-
$[150] = t84;
|
|
1142
1135
|
} else {
|
|
1143
|
-
|
|
1136
|
+
t83 = $[149];
|
|
1144
1137
|
}
|
|
1145
|
-
let
|
|
1146
|
-
if ($[
|
|
1147
|
-
|
|
1138
|
+
let t84;
|
|
1139
|
+
if ($[150] !== t79 || $[151] !== t80 || $[152] !== t83) {
|
|
1140
|
+
t84 = /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogActions, { position: "sticky", children: [
|
|
1148
1141
|
t79,
|
|
1149
1142
|
t80,
|
|
1150
|
-
|
|
1143
|
+
t83
|
|
1151
1144
|
] });
|
|
1152
|
-
$[
|
|
1153
|
-
$[
|
|
1145
|
+
$[150] = t79;
|
|
1146
|
+
$[151] = t80;
|
|
1147
|
+
$[152] = t83;
|
|
1154
1148
|
$[153] = t84;
|
|
1155
|
-
$[154] = t85;
|
|
1156
1149
|
} else {
|
|
1157
|
-
|
|
1150
|
+
t84 = $[153];
|
|
1158
1151
|
}
|
|
1159
|
-
let
|
|
1160
|
-
if ($[
|
|
1161
|
-
|
|
1152
|
+
let t85;
|
|
1153
|
+
if ($[154] !== formex$1.handleSubmit || $[155] !== t78 || $[156] !== t84) {
|
|
1154
|
+
t85 = /* @__PURE__ */ jsxRuntime.jsxs("form", { noValidate: true, autoComplete: "off", onSubmit: formex$1.handleSubmit, style: t7, children: [
|
|
1162
1155
|
t8,
|
|
1163
1156
|
t78,
|
|
1164
|
-
|
|
1157
|
+
t84
|
|
1165
1158
|
] });
|
|
1166
|
-
$[
|
|
1167
|
-
$[
|
|
1159
|
+
$[154] = formex$1.handleSubmit;
|
|
1160
|
+
$[155] = t78;
|
|
1161
|
+
$[156] = t84;
|
|
1168
1162
|
$[157] = t85;
|
|
1169
|
-
$[158] = t86;
|
|
1170
1163
|
} else {
|
|
1171
|
-
|
|
1164
|
+
t85 = $[157];
|
|
1172
1165
|
}
|
|
1173
|
-
let
|
|
1174
|
-
if ($[
|
|
1175
|
-
|
|
1176
|
-
$[
|
|
1166
|
+
let t86;
|
|
1167
|
+
if ($[158] !== formex$1 || $[159] !== t85) {
|
|
1168
|
+
t86 = /* @__PURE__ */ jsxRuntime.jsx(formex.Formex, { value: formex$1, children: t85 });
|
|
1169
|
+
$[158] = formex$1;
|
|
1170
|
+
$[159] = t85;
|
|
1177
1171
|
$[160] = t86;
|
|
1178
|
-
$[161] = t87;
|
|
1179
1172
|
} else {
|
|
1180
|
-
|
|
1173
|
+
t86 = $[160];
|
|
1181
1174
|
}
|
|
1182
|
-
let
|
|
1183
|
-
if ($[
|
|
1184
|
-
|
|
1185
|
-
$[
|
|
1175
|
+
let t87;
|
|
1176
|
+
if ($[161] !== open || $[162] !== t86) {
|
|
1177
|
+
t87 = /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open, maxWidth: "4xl", children: t86 });
|
|
1178
|
+
$[161] = open;
|
|
1179
|
+
$[162] = t86;
|
|
1186
1180
|
$[163] = t87;
|
|
1187
|
-
$[164] = t88;
|
|
1188
1181
|
} else {
|
|
1189
|
-
|
|
1182
|
+
t87 = $[163];
|
|
1190
1183
|
}
|
|
1191
|
-
return
|
|
1184
|
+
return t87;
|
|
1192
1185
|
}
|
|
1193
1186
|
function _temp6$1(value_1) {
|
|
1194
1187
|
return value_1 === "own" ? "Own" : value_1 === "true" ? "Yes" : "No";
|
|
@@ -1495,7 +1488,7 @@
|
|
|
1495
1488
|
return true;
|
|
1496
1489
|
}
|
|
1497
1490
|
function UserDetailsForm(t0) {
|
|
1498
|
-
const $ = reactCompilerRuntime.c(
|
|
1491
|
+
const $ = reactCompilerRuntime.c(73);
|
|
1499
1492
|
const {
|
|
1500
1493
|
open,
|
|
1501
1494
|
user: userProp,
|
|
@@ -1733,7 +1726,7 @@
|
|
|
1733
1726
|
}
|
|
1734
1727
|
let t25;
|
|
1735
1728
|
if ($[53] !== handleClose) {
|
|
1736
|
-
t25 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "text", onClick: () => {
|
|
1729
|
+
t25 = /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "text", color: "primary", onClick: () => {
|
|
1737
1730
|
handleClose();
|
|
1738
1731
|
}, children: "Cancel" });
|
|
1739
1732
|
$[53] = handleClose;
|
|
@@ -1742,70 +1735,63 @@
|
|
|
1742
1735
|
t25 = $[54];
|
|
1743
1736
|
}
|
|
1744
1737
|
const t26 = !dirty;
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
const t28 = isNewUser ? "Create user" : "Update";
|
|
1753
|
-
let t29;
|
|
1754
|
-
if ($[56] !== isSubmitting || $[57] !== t26 || $[58] !== t28) {
|
|
1755
|
-
t29 = /* @__PURE__ */ jsxRuntime.jsx(ui.LoadingButton, { variant: "filled", color: "primary", type: "submit", disabled: t26, loading: isSubmitting, startIcon: t27, children: t28 });
|
|
1756
|
-
$[56] = isSubmitting;
|
|
1757
|
-
$[57] = t26;
|
|
1738
|
+
const t27 = isNewUser ? "Create user" : "Update";
|
|
1739
|
+
let t28;
|
|
1740
|
+
if ($[55] !== isSubmitting || $[56] !== t26 || $[57] !== t27) {
|
|
1741
|
+
t28 = /* @__PURE__ */ jsxRuntime.jsx(ui.LoadingButton, { variant: "filled", color: "primary", type: "submit", disabled: t26, loading: isSubmitting, children: t27 });
|
|
1742
|
+
$[55] = isSubmitting;
|
|
1743
|
+
$[56] = t26;
|
|
1744
|
+
$[57] = t27;
|
|
1758
1745
|
$[58] = t28;
|
|
1759
|
-
$[59] = t29;
|
|
1760
1746
|
} else {
|
|
1761
|
-
|
|
1747
|
+
t28 = $[58];
|
|
1762
1748
|
}
|
|
1763
|
-
let
|
|
1764
|
-
if ($[
|
|
1765
|
-
|
|
1749
|
+
let t29;
|
|
1750
|
+
if ($[59] !== t25 || $[60] !== t28) {
|
|
1751
|
+
t29 = /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogActions, { children: [
|
|
1766
1752
|
t25,
|
|
1767
|
-
|
|
1753
|
+
t28
|
|
1768
1754
|
] });
|
|
1769
|
-
$[
|
|
1755
|
+
$[59] = t25;
|
|
1756
|
+
$[60] = t28;
|
|
1770
1757
|
$[61] = t29;
|
|
1771
|
-
$[62] = t30;
|
|
1772
1758
|
} else {
|
|
1773
|
-
|
|
1759
|
+
t29 = $[61];
|
|
1774
1760
|
}
|
|
1775
|
-
let
|
|
1776
|
-
if ($[
|
|
1777
|
-
|
|
1761
|
+
let t30;
|
|
1762
|
+
if ($[62] !== handleSubmit || $[63] !== t24 || $[64] !== t29) {
|
|
1763
|
+
t30 = /* @__PURE__ */ jsxRuntime.jsxs("form", { onSubmit: handleSubmit, autoComplete: "off", noValidate: true, style: t6, children: [
|
|
1778
1764
|
t7,
|
|
1779
1765
|
t24,
|
|
1780
|
-
|
|
1766
|
+
t29
|
|
1781
1767
|
] });
|
|
1782
|
-
$[
|
|
1783
|
-
$[
|
|
1768
|
+
$[62] = handleSubmit;
|
|
1769
|
+
$[63] = t24;
|
|
1770
|
+
$[64] = t29;
|
|
1784
1771
|
$[65] = t30;
|
|
1785
|
-
$[66] = t31;
|
|
1786
1772
|
} else {
|
|
1787
|
-
|
|
1773
|
+
t30 = $[65];
|
|
1788
1774
|
}
|
|
1789
|
-
let
|
|
1790
|
-
if ($[
|
|
1791
|
-
|
|
1792
|
-
$[
|
|
1775
|
+
let t31;
|
|
1776
|
+
if ($[66] !== formex$1 || $[67] !== t30) {
|
|
1777
|
+
t31 = /* @__PURE__ */ jsxRuntime.jsx(formex.Formex, { value: formex$1, children: t30 });
|
|
1778
|
+
$[66] = formex$1;
|
|
1779
|
+
$[67] = t30;
|
|
1793
1780
|
$[68] = t31;
|
|
1794
|
-
$[69] = t32;
|
|
1795
1781
|
} else {
|
|
1796
|
-
|
|
1782
|
+
t31 = $[68];
|
|
1797
1783
|
}
|
|
1798
|
-
let
|
|
1799
|
-
if ($[
|
|
1800
|
-
|
|
1801
|
-
$[
|
|
1802
|
-
$[
|
|
1803
|
-
$[
|
|
1804
|
-
$[
|
|
1784
|
+
let t32;
|
|
1785
|
+
if ($[69] !== open || $[70] !== t31 || $[71] !== t5) {
|
|
1786
|
+
t32 = /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open, onOpenChange: t5, maxWidth: "4xl", children: t31 });
|
|
1787
|
+
$[69] = open;
|
|
1788
|
+
$[70] = t31;
|
|
1789
|
+
$[71] = t5;
|
|
1790
|
+
$[72] = t32;
|
|
1805
1791
|
} else {
|
|
1806
|
-
|
|
1792
|
+
t32 = $[72];
|
|
1807
1793
|
}
|
|
1808
|
-
return
|
|
1794
|
+
return t32;
|
|
1809
1795
|
}
|
|
1810
1796
|
function _temp7(userRole) {
|
|
1811
1797
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.MultiSelectItem, { value: userRole.id, children: /* @__PURE__ */ jsxRuntime.jsx(RoleChip, { role: userRole }, userRole?.id) }, userRole.id);
|