@ahmadmubarak98/namozaj 1.6.4 → 1.6.5
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/main.d.ts +1 -0
- package/dist/namozaj.js +34 -9
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
package/dist/namozaj.js
CHANGED
|
@@ -80539,7 +80539,7 @@ const RowActions = ({
|
|
|
80539
80539
|
{
|
|
80540
80540
|
onClick: () => d && d(e),
|
|
80541
80541
|
variant: "outlined",
|
|
80542
|
-
color: "
|
|
80542
|
+
color: "error",
|
|
80543
80543
|
size: "small",
|
|
80544
80544
|
children: a
|
|
80545
80545
|
}
|
|
@@ -80795,7 +80795,7 @@ const ConfirmationDialog = ({
|
|
|
80795
80795
|
error: p
|
|
80796
80796
|
}) => {
|
|
80797
80797
|
var Ze;
|
|
80798
|
-
const { enableRtl: d } = useLocalDynamicFormProvider(), { meta: u } = t, b = typeof u.inline == "boolean" ? u.inline : !0, h = useFormContext(), g = useRef(null), [m, y] = useState(!1), [C, v] = useState(!1), [w, S] = useState(null), [x, L] = useState(!1), D = u.addEditModalTitle || `Add ${u.label}`, N = u.removeDialogTitle ||
|
|
80798
|
+
const { enableRtl: d } = useLocalDynamicFormProvider(), { meta: u } = t, b = typeof u.inline == "boolean" ? u.inline : !0, h = useFormContext(), g = useRef(null), [m, y] = useState(!1), [C, v] = useState(!1), [w, S] = useState(null), [x, L] = useState(!1), D = u.addEditModalTitle || `Add ${u.label}`, N = u.removeDialogTitle || `${t.meta.removeBtn || "Remove"} ${u.label}`, I = u.removeDialogDescription || `Are you sure you want to remove this ${u.label}?`, k = t.meta.saveBtn || "Save", H = t.meta.cancelBtn || "Cancel", G = t.meta.addBtn || `Add ${u.label}`, Y = t.meta.editBtn || "Edit", V = t.meta.removeBtn || "Remove", j = u.minEntries ?? void 0, Z = u.maxEntries ?? void 0, te = Z ? l.length < Z : u.canAdd ?? !0, re = u.canEdit ?? !0, oe = j ? l.length > j : u.canRemove ?? !0, be = () => {
|
|
80799
80799
|
Ye();
|
|
80800
80800
|
}, ve = (Ve) => {
|
|
80801
80801
|
S(Ve), Ye();
|
|
@@ -80980,7 +80980,7 @@ const ConfirmationDialog = ({
|
|
|
80980
80980
|
control: b,
|
|
80981
80981
|
name: a,
|
|
80982
80982
|
keyName: "_id"
|
|
80983
|
-
}), [g, m] = useState(!1), [y, C] = useState(null), [v, w] = useState(!1), S = d.removeDialogTitle ||
|
|
80983
|
+
}), [g, m] = useState(!1), [y, C] = useState(null), [v, w] = useState(!1), S = d.removeDialogTitle || `${t.meta.removeBtn || "Remove"} ${d.label}`, x = d.removeDialogDescription || `Are you sure you want to remove this ${d.label}?`, L = t.meta.addBtn || `Add ${d.label}`, D = t.meta.removeBtn || "Remove", N = t.meta.cancelBtn || "Cancel", I = d.minEntries ?? void 0, k = d.maxEntries ?? void 0, H = k ? h.fields.length < k : d.canAdd ?? !0, G = I ? h.fields.length > I : d.canRemove ?? !0, Y = (be) => {
|
|
80984
80984
|
be.preventDefault(), be.stopPropagation(), h.append({
|
|
80985
80985
|
...d.fields.reduce((ve, Re) => (ve[Re.name] = getDefaultValue(Re), ve), {})
|
|
80986
80986
|
});
|
|
@@ -81053,7 +81053,7 @@ const ConfirmationDialog = ({
|
|
|
81053
81053
|
Button$1,
|
|
81054
81054
|
{
|
|
81055
81055
|
variant: "outlined",
|
|
81056
|
-
color: "
|
|
81056
|
+
color: "error",
|
|
81057
81057
|
onClick: () => V(ve),
|
|
81058
81058
|
size: "small",
|
|
81059
81059
|
children: /* @__PURE__ */ jsx(Fragment, { children: D })
|
|
@@ -85102,7 +85102,17 @@ const Form = React__default.forwardRef(
|
|
|
85102
85102
|
({ ...H }, (G = e.onSubmit) == null || G.call(e, H));
|
|
85103
85103
|
}, b = async () => (await c.trigger()).valueOf(), h = () => {
|
|
85104
85104
|
var H, G;
|
|
85105
|
-
return /* @__PURE__ */ jsx(Fragment, { children: !((H = e.submitButtonProps) != null && H.hidden) && /* @__PURE__ */ jsx(
|
|
85105
|
+
return /* @__PURE__ */ jsx(Fragment, { children: !((H = e.submitButtonProps) != null && H.hidden) && /* @__PURE__ */ jsx(
|
|
85106
|
+
Button$1,
|
|
85107
|
+
{
|
|
85108
|
+
loading: e.loading,
|
|
85109
|
+
loadingPosition: "start",
|
|
85110
|
+
variant: "contained",
|
|
85111
|
+
color: "primary",
|
|
85112
|
+
type: "submit",
|
|
85113
|
+
children: ((G = e.submitButtonProps) == null ? void 0 : G.label) || "Submit"
|
|
85114
|
+
}
|
|
85115
|
+
) });
|
|
85106
85116
|
}, g = () => /* @__PURE__ */ jsx(Fragment, {});
|
|
85107
85117
|
useEffect(() => {
|
|
85108
85118
|
const H = c.watch(
|
|
@@ -85157,15 +85167,30 @@ const Form = React__default.forwardRef(
|
|
|
85157
85167
|
},
|
|
85158
85168
|
...(w = (v = e.slots) == null ? void 0 : v.formBody) == null ? void 0 : w.style
|
|
85159
85169
|
},
|
|
85160
|
-
children: /* @__PURE__ */ jsx(Grid, { container: !0, spacing: 2, children: (e.fields || []).map((H, G) => /* @__PURE__ */ jsx(
|
|
85170
|
+
children: /* @__PURE__ */ jsx(Grid, { container: !0, spacing: 2, children: (e.fields || []).map((H, G) => /* @__PURE__ */ jsx(Fragment$1, { children: H.meta.fullRow ? /* @__PURE__ */ jsx(
|
|
85171
|
+
Grid,
|
|
85172
|
+
{
|
|
85173
|
+
columns: 12,
|
|
85174
|
+
size: {
|
|
85175
|
+
xs: 12
|
|
85176
|
+
},
|
|
85177
|
+
children: /* @__PURE__ */ jsx(Grid, { container: !0, spacing: 2, children: /* @__PURE__ */ jsx(
|
|
85178
|
+
FieldRenderer,
|
|
85179
|
+
{
|
|
85180
|
+
...H,
|
|
85181
|
+
locale: H.locale,
|
|
85182
|
+
control: c.control
|
|
85183
|
+
}
|
|
85184
|
+
) })
|
|
85185
|
+
}
|
|
85186
|
+
) : /* @__PURE__ */ jsx(
|
|
85161
85187
|
FieldRenderer,
|
|
85162
85188
|
{
|
|
85163
85189
|
...H,
|
|
85164
85190
|
locale: H.locale,
|
|
85165
85191
|
control: c.control
|
|
85166
|
-
}
|
|
85167
|
-
|
|
85168
|
-
)) })
|
|
85192
|
+
}
|
|
85193
|
+
) }, H.name || G)) })
|
|
85169
85194
|
}
|
|
85170
85195
|
),
|
|
85171
85196
|
/* @__PURE__ */ jsxs(
|