@ahmadmubarak98/namozaj 1.12.21 → 1.12.22
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/namozaj.js +50 -56
- package/package.json +1 -1
package/dist/namozaj.js
CHANGED
|
@@ -14625,49 +14625,51 @@ const CloseIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
|
|
|
14625
14625
|
...g && (a == null ? void 0 : a.length) > 0 && {
|
|
14626
14626
|
startAdornment: /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(Box$1, { onClick: () => l([]), className: "cursor-pointer", children: /* @__PURE__ */ jsx(CloseIcon, { fontSize: "small" }) }) })
|
|
14627
14627
|
},
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14640
|
-
|
|
14641
|
-
/* @__PURE__ */
|
|
14642
|
-
|
|
14643
|
-
|
|
14644
|
-
|
|
14645
|
-
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
B
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14628
|
+
...A && {
|
|
14629
|
+
MenuProps: {
|
|
14630
|
+
PaperProps: {
|
|
14631
|
+
sx: (L) => {
|
|
14632
|
+
var D, I, B, H, G, U, k, j, te, Y;
|
|
14633
|
+
return {
|
|
14634
|
+
...(G = (H = (B = (I = (D = L == null ? void 0 : L.components) == null ? void 0 : D.MuiSelect) == null ? void 0 : I.defaultProps) == null ? void 0 : B.MenuProps) == null ? void 0 : H.PaperProps) != null && G.sx ? (Y = (te = (j = (k = (U = L == null ? void 0 : L.components) == null ? void 0 : U.MuiSelect) == null ? void 0 : k.defaultProps) == null ? void 0 : j.MenuProps) == null ? void 0 : te.PaperProps) == null ? void 0 : Y.sx : {},
|
|
14635
|
+
width: "100%",
|
|
14636
|
+
maxWidth: 300
|
|
14637
|
+
};
|
|
14638
|
+
},
|
|
14639
|
+
component: (L) => {
|
|
14640
|
+
const { children: D, ...I } = L;
|
|
14641
|
+
return /* @__PURE__ */ jsxs(Paper$1, { ...I, children: [
|
|
14642
|
+
/* @__PURE__ */ jsx(
|
|
14643
|
+
Box$1,
|
|
14644
|
+
{
|
|
14645
|
+
onMouseDown: (B) => B.preventDefault(),
|
|
14646
|
+
pl: 1.5,
|
|
14647
|
+
py: 0.5,
|
|
14648
|
+
children: /* @__PURE__ */ jsx(
|
|
14649
|
+
FormControlLabel,
|
|
14650
|
+
{
|
|
14651
|
+
onClick: (B) => {
|
|
14652
|
+
B.preventDefault(), N();
|
|
14653
|
+
},
|
|
14654
|
+
label: C || "Select all",
|
|
14655
|
+
control: /* @__PURE__ */ jsx(
|
|
14656
|
+
Checkbox,
|
|
14657
|
+
{
|
|
14658
|
+
id: "select-all-checkbox",
|
|
14659
|
+
checked: S
|
|
14660
|
+
}
|
|
14661
|
+
),
|
|
14662
|
+
sx: {
|
|
14663
|
+
width: "100%"
|
|
14659
14664
|
}
|
|
14660
|
-
),
|
|
14661
|
-
sx: {
|
|
14662
|
-
width: "100%"
|
|
14663
14665
|
}
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14666
|
+
)
|
|
14667
|
+
}
|
|
14668
|
+
),
|
|
14669
|
+
/* @__PURE__ */ jsx(Divider$1, {}),
|
|
14670
|
+
D
|
|
14671
|
+
] });
|
|
14672
|
+
}
|
|
14671
14673
|
}
|
|
14672
14674
|
}
|
|
14673
14675
|
},
|
|
@@ -51229,7 +51231,9 @@ const FileField = ({
|
|
|
51229
51231
|
children: /* @__PURE__ */ jsx(ShowFileIcon, { fontSize: "small" })
|
|
51230
51232
|
}
|
|
51231
51233
|
),
|
|
51232
|
-
/* @__PURE__ */ jsx(IconButton$1, { size: "small", onClick: () =>
|
|
51234
|
+
/* @__PURE__ */ jsx(IconButton$1, { size: "small", onClick: () => {
|
|
51235
|
+
S || o0(r0);
|
|
51236
|
+
}, disabled: S, children: /* @__PURE__ */ jsx(DeleteIcon, { fontSize: "small" }) })
|
|
51233
51237
|
] })
|
|
51234
51238
|
]
|
|
51235
51239
|
},
|
|
@@ -85908,7 +85912,6 @@ const ConfirmationDialog = ({
|
|
|
85908
85912
|
error: p
|
|
85909
85913
|
}) => {
|
|
85910
85914
|
var Ge;
|
|
85911
|
-
console.log("value", l);
|
|
85912
85915
|
const { enableRtl: d } = useLocalNamozajProvider(), { meta: u } = t, b = typeof u.inline == "boolean" ? u.inline : !1, h = useFormContext(), g = useRef(null), [m, A] = useState(!1), [C, v] = useState(!1), [T, S] = useState(null), [x, N] = useState(!1), L = x || u.disabled, D = u.addEditModalTitle || `Add ${u.label}`, I = u.removeDialogTitle || `${t.meta.removeBtn || "Remove"} ${u.label}`, B = u.removeDialogDescription || `Are you sure you want to remove this ${u.label}?`, H = t.meta.saveBtn || "Save", G = t.meta.cancelBtn || "Cancel", U = t.meta.addBtn || `Add ${u.label}`, k = t.meta.editBtn || "Edit", j = t.meta.removeBtn || "Remove", te = u.minEntries ?? void 0, Y = u.maxEntries ?? void 0, oe = Y ? l.length < Y : u.canAdd ?? !0, re = u.canEdit ?? !0, ce = te ? l.length > te : u.canRemove ?? !0, we = () => {
|
|
85913
85916
|
Re();
|
|
85914
85917
|
}, ve = (Ke) => {
|
|
@@ -88460,19 +88463,10 @@ const Form = React__default.forwardRef(
|
|
|
88460
88463
|
const [a, l] = useState(null), [c, p] = useState(
|
|
88461
88464
|
((g = e.localization) == null ? void 0 : g.defaultSelectedLocales) || []
|
|
88462
88465
|
), d = useMemo(() => {
|
|
88463
|
-
const A = (C, v = "") => {
|
|
88464
|
-
|
|
88465
|
-
|
|
88466
|
-
|
|
88467
|
-
if (Array.isArray(C)) {
|
|
88468
|
-
const T = encodeFieldName(v) ?? v;
|
|
88469
|
-
return console.log("key", T, C), { [T]: C };
|
|
88470
|
-
}
|
|
88471
|
-
return Object.entries(C).reduce((T, [S, x]) => {
|
|
88472
|
-
const N = v ? `${v}.${S}` : S;
|
|
88473
|
-
return Object.assign(T, A(x, N)), T;
|
|
88474
|
-
}, {});
|
|
88475
|
-
};
|
|
88466
|
+
const A = (C, v = "") => C == null ? {} : typeof C != "object" || C instanceof Date ? { [encodeFieldName(v) ?? v]: C } : Array.isArray(C) ? { [encodeFieldName(v) ?? v]: C } : Object.entries(C).reduce((T, [S, x]) => {
|
|
88467
|
+
const N = v ? `${v}.${S}` : S;
|
|
88468
|
+
return Object.assign(T, A(x, N)), T;
|
|
88469
|
+
}, {});
|
|
88476
88470
|
return e.defaultValues ? A(e.defaultValues) : void 0;
|
|
88477
88471
|
}, [e.defaultValues]), u = (A, C) => {
|
|
88478
88472
|
var N, L, D, I, B;
|