@ahmadmubarak98/namozaj 1.12.21 → 1.12.23

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.
Files changed (2) hide show
  1. package/dist/namozaj.js +53 -58
  2. package/package.json +1 -1
package/dist/namozaj.js CHANGED
@@ -14580,7 +14580,7 @@ const CloseIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
14580
14580
  children: /* @__PURE__ */ jsx(
14581
14581
  FormControlLabel,
14582
14582
  {
14583
- onClick: (B) => {
14583
+ onMouseDown: (B) => {
14584
14584
  B.preventDefault(), N();
14585
14585
  },
14586
14586
  label: C || "Select all",
@@ -14588,7 +14588,8 @@ const CloseIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
14588
14588
  Checkbox,
14589
14589
  {
14590
14590
  id: "select-all-checkbox",
14591
- checked: S
14591
+ checked: S,
14592
+ disableRipple: !0
14592
14593
  }
14593
14594
  ),
14594
14595
  sx: {
@@ -14625,49 +14626,51 @@ const CloseIcon = createSvgIcon(/* @__PURE__ */ jsx("path", {
14625
14626
  ...g && (a == null ? void 0 : a.length) > 0 && {
14626
14627
  startAdornment: /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(Box$1, { onClick: () => l([]), className: "cursor-pointer", children: /* @__PURE__ */ jsx(CloseIcon, { fontSize: "small" }) }) })
14627
14628
  },
14628
- MenuProps: {
14629
- PaperProps: {
14630
- sx: (L) => {
14631
- var D, I, B, H, G, U, k, j, te, Y;
14632
- return {
14633
- ...(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 : {},
14634
- width: "100%",
14635
- maxWidth: 300
14636
- };
14637
- },
14638
- component: (L) => {
14639
- const { children: D, ...I } = L;
14640
- return /* @__PURE__ */ jsxs(Paper$1, { ...I, children: [
14641
- /* @__PURE__ */ jsx(
14642
- Box$1,
14643
- {
14644
- onMouseDown: (B) => B.preventDefault(),
14645
- pl: 1.5,
14646
- py: 0.5,
14647
- children: /* @__PURE__ */ jsx(
14648
- FormControlLabel,
14649
- {
14650
- onClick: (B) => {
14651
- B.preventDefault(), N();
14652
- },
14653
- label: C || "Select all",
14654
- control: /* @__PURE__ */ jsx(
14655
- Checkbox,
14656
- {
14657
- id: "select-all-checkbox",
14658
- checked: S
14629
+ ...A && {
14630
+ MenuProps: {
14631
+ PaperProps: {
14632
+ sx: (L) => {
14633
+ var D, I, B, H, G, U, k, j, te, Y;
14634
+ return {
14635
+ ...(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 : {},
14636
+ width: "100%",
14637
+ maxWidth: 300
14638
+ };
14639
+ },
14640
+ component: (L) => {
14641
+ const { children: D, ...I } = L;
14642
+ return /* @__PURE__ */ jsxs(Paper$1, { ...I, children: [
14643
+ /* @__PURE__ */ jsx(
14644
+ Box$1,
14645
+ {
14646
+ onMouseDown: (B) => B.preventDefault(),
14647
+ pl: 1.5,
14648
+ py: 0.5,
14649
+ children: /* @__PURE__ */ jsx(
14650
+ FormControlLabel,
14651
+ {
14652
+ onClick: (B) => {
14653
+ B.preventDefault(), N();
14654
+ },
14655
+ label: C || "Select all",
14656
+ control: /* @__PURE__ */ jsx(
14657
+ Checkbox,
14658
+ {
14659
+ id: "select-all-checkbox",
14660
+ checked: S
14661
+ }
14662
+ ),
14663
+ sx: {
14664
+ width: "100%"
14659
14665
  }
14660
- ),
14661
- sx: {
14662
- width: "100%"
14663
14666
  }
14664
- }
14665
- )
14666
- }
14667
- ),
14668
- /* @__PURE__ */ jsx(Divider$1, {}),
14669
- D
14670
- ] });
14667
+ )
14668
+ }
14669
+ ),
14670
+ /* @__PURE__ */ jsx(Divider$1, {}),
14671
+ D
14672
+ ] });
14673
+ }
14671
14674
  }
14672
14675
  }
14673
14676
  },
@@ -51229,7 +51232,9 @@ const FileField = ({
51229
51232
  children: /* @__PURE__ */ jsx(ShowFileIcon, { fontSize: "small" })
51230
51233
  }
51231
51234
  ),
51232
- /* @__PURE__ */ jsx(IconButton$1, { size: "small", onClick: () => o0(r0), children: /* @__PURE__ */ jsx(DeleteIcon, { fontSize: "small" }) })
51235
+ /* @__PURE__ */ jsx(IconButton$1, { size: "small", onClick: () => {
51236
+ S || o0(r0);
51237
+ }, disabled: S, children: /* @__PURE__ */ jsx(DeleteIcon, { fontSize: "small" }) })
51233
51238
  ] })
51234
51239
  ]
51235
51240
  },
@@ -85908,7 +85913,6 @@ const ConfirmationDialog = ({
85908
85913
  error: p
85909
85914
  }) => {
85910
85915
  var Ge;
85911
- console.log("value", l);
85912
85916
  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
85917
  Re();
85914
85918
  }, ve = (Ke) => {
@@ -88460,19 +88464,10 @@ const Form = React__default.forwardRef(
88460
88464
  const [a, l] = useState(null), [c, p] = useState(
88461
88465
  ((g = e.localization) == null ? void 0 : g.defaultSelectedLocales) || []
88462
88466
  ), d = useMemo(() => {
88463
- const A = (C, v = "") => {
88464
- if (C == null) return {};
88465
- if (typeof C != "object" || C instanceof Date)
88466
- return { [encodeFieldName(v) ?? v]: C };
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
- };
88467
+ 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]) => {
88468
+ const N = v ? `${v}.${S}` : S;
88469
+ return Object.assign(T, A(x, N)), T;
88470
+ }, {});
88476
88471
  return e.defaultValues ? A(e.defaultValues) : void 0;
88477
88472
  }, [e.defaultValues]), u = (A, C) => {
88478
88473
  var N, L, D, I, B;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ahmadmubarak98/namozaj",
3
3
  "private": false,
4
- "version": "1.12.21",
4
+ "version": "1.12.23",
5
5
  "type": "module",
6
6
  "main": "dist/namozaj.js",
7
7
  "types": "dist/main.d.ts",