@ahmadmubarak98/namozaj 1.6.16 → 1.6.17
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 +0 -1
- package/dist/namozaj.js +6 -5
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -99,7 +99,6 @@ export declare type DynamicFormField = TextFieldConfig | NumberFieldConfig | Sli
|
|
|
99
99
|
export declare interface DynamicFormProps {
|
|
100
100
|
fields: DynamicFormField[];
|
|
101
101
|
dirtyLock?: boolean;
|
|
102
|
-
validLock?: boolean;
|
|
103
102
|
localization?: NamozajLocalizationOptions;
|
|
104
103
|
emptyFormMessage?: string;
|
|
105
104
|
defaultValues?: Record<string, FieldValueType>;
|
package/dist/namozaj.js
CHANGED
|
@@ -85132,10 +85132,11 @@ const Form = React__default.forwardRef(
|
|
|
85132
85132
|
p.current = new Set(e.fields.map((H) => H.name));
|
|
85133
85133
|
}, [e.fields]);
|
|
85134
85134
|
const u = (H) => {
|
|
85135
|
-
var
|
|
85136
|
-
|
|
85135
|
+
var Y;
|
|
85136
|
+
let G = { ...H };
|
|
85137
|
+
delete G[DEFAULT_LOCALE_PICKER_FIELD_NAME], (Y = e.onSubmit) == null || Y.call(e, H), e.dirtyLock && c.reset(G);
|
|
85137
85138
|
}, b = async () => (await c.trigger()).valueOf(), h = () => {
|
|
85138
|
-
var H, G, Y;
|
|
85139
|
+
var H, G, Y, V;
|
|
85139
85140
|
return /* @__PURE__ */ jsx(Fragment, { children: !((H = e.submitButtonProps) != null && H.hidden) && /* @__PURE__ */ jsx(
|
|
85140
85141
|
Button$1,
|
|
85141
85142
|
{
|
|
@@ -85144,8 +85145,8 @@ const Form = React__default.forwardRef(
|
|
|
85144
85145
|
variant: "contained",
|
|
85145
85146
|
color: "primary",
|
|
85146
85147
|
type: "submit",
|
|
85147
|
-
disabled: (G = e.submitButtonProps)
|
|
85148
|
-
children: ((
|
|
85148
|
+
disabled: typeof ((G = e.submitButtonProps) == null ? void 0 : G.disabled) == "boolean" ? (Y = e.submitButtonProps) == null ? void 0 : Y.disabled : e.dirtyLock ? Object.keys(c.formState.dirtyFields).length === 0 : !1,
|
|
85149
|
+
children: ((V = e.submitButtonProps) == null ? void 0 : V.label) || "Submit"
|
|
85149
85150
|
}
|
|
85150
85151
|
) });
|
|
85151
85152
|
}, g = () => /* @__PURE__ */ jsx(Fragment, {});
|