@ahmadmubarak98/namozaj 1.6.68 → 1.6.69
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 -19
- package/dist/namozaj.js +8 -7
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export declare type DateMinMaxValue = {
|
|
|
98
98
|
errorMessage?: string;
|
|
99
99
|
} | null);
|
|
100
100
|
|
|
101
|
-
export declare type EliminatedOptionValues = string[] | number[] | ((formMethods: RHFFormMethods) => string[] | number[]);
|
|
101
|
+
export declare type EliminatedOptionValues = string[] | number[] | ((options: FieldOption[], formMethods: RHFFormMethods) => string[] | number[]);
|
|
102
102
|
|
|
103
103
|
export declare type FieldArrayFieldConfig = BaseFieldConfig & {
|
|
104
104
|
type: "field-array";
|
|
@@ -316,24 +316,6 @@ export declare interface NamozajProps {
|
|
|
316
316
|
onChange?: (data: any) => void;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export declare interface NamozajRef {
|
|
320
|
-
setFieldValue: (name: string, value: FieldValueType) => void;
|
|
321
|
-
getFieldValue: (name: string) => any;
|
|
322
|
-
validateField: (name: string) => Promise<boolean>;
|
|
323
|
-
validateForm: () => Promise<boolean>;
|
|
324
|
-
resetForm: () => void;
|
|
325
|
-
setMultipleFieldValues: (values: Record<string, FieldValueType>) => void;
|
|
326
|
-
clearFieldError: (name: string) => void;
|
|
327
|
-
setFieldError: (name: string, error: string) => void;
|
|
328
|
-
focusField: (name: string) => void;
|
|
329
|
-
isDirty: () => boolean;
|
|
330
|
-
isFieldDirty: (name: string) => boolean;
|
|
331
|
-
submitForm: () => Promise<void>;
|
|
332
|
-
getFieldError: (name: string) => string | undefined;
|
|
333
|
-
setFieldVisibility: (name: string, visible: boolean) => void;
|
|
334
|
-
getFetchedFieldsOptions: () => Promise<any>;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
319
|
export declare type NumberFieldConfig = BaseFieldConfig & {
|
|
338
320
|
type: "number";
|
|
339
321
|
meta: BaseFieldConfig["meta"] & {
|
package/dist/namozaj.js
CHANGED
|
@@ -85797,18 +85797,19 @@ const ConfirmationDialog = ({
|
|
|
85797
85797
|
var S, x, L, N, D, k, V, H;
|
|
85798
85798
|
if ("options" in e.meta && ((S = e.meta) != null && S.options)) {
|
|
85799
85799
|
let G = [];
|
|
85800
|
-
if (
|
|
85801
|
-
Promise.resolve((
|
|
85800
|
+
if (typeof ((x = e.meta) == null ? void 0 : x.options) == "function")
|
|
85801
|
+
Promise.resolve((L = e.meta) == null ? void 0 : L.options()).then(
|
|
85802
85802
|
(te) => {
|
|
85803
|
+
var U, Z, Y;
|
|
85803
85804
|
let I = te;
|
|
85804
|
-
I = I.filter(
|
|
85805
|
-
(
|
|
85805
|
+
"eliminatedOptionValues" in e.meta && (G = (typeof ((U = e.meta) == null ? void 0 : U.eliminatedOptionValues) == "function" ? (Z = e.meta) == null ? void 0 : Z.eliminatedOptionValues(I, g) : (Y = e.meta) == null ? void 0 : Y.eliminatedOptionValues) ?? []), I = I.filter(
|
|
85806
|
+
(re) => !G.includes(re.value)
|
|
85806
85807
|
), a(e.name, I);
|
|
85807
85808
|
}
|
|
85808
85809
|
);
|
|
85809
|
-
else if (Array.isArray((
|
|
85810
|
-
let te = (
|
|
85811
|
-
te = te.filter(
|
|
85810
|
+
else if (Array.isArray((N = e.meta) == null ? void 0 : N.options)) {
|
|
85811
|
+
let te = (D = e.meta) == null ? void 0 : D.options;
|
|
85812
|
+
"eliminatedOptionValues" in e.meta && (G = (typeof ((k = e.meta) == null ? void 0 : k.eliminatedOptionValues) == "function" ? (V = e.meta) == null ? void 0 : V.eliminatedOptionValues(te, g) : (H = e.meta) == null ? void 0 : H.eliminatedOptionValues) ?? []), te = te.filter(
|
|
85812
85813
|
(I) => !G.includes(I.value)
|
|
85813
85814
|
), a(e.name, te);
|
|
85814
85815
|
} else
|