@ahmadmubarak98/namozaj 1.15.4 → 1.16.1
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 +40 -2
- package/dist/namozaj.js +8011 -7902
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ export declare type FieldOptionFetchFunction = ((data: any, index: number) => Pr
|
|
|
224
224
|
|
|
225
225
|
export declare type FieldSize = 'small' | 'medium';
|
|
226
226
|
|
|
227
|
-
export declare type FieldType = "custom" | "text" | "phone" | "number" | "slider" | "select" | "multi-select" | "checkbox-group" | "radio-group" | "checkbox" | "switch" | "date" | "time" | "datetime" | "file" | "repeater" | "field-array" | "group" | "button" | "color";
|
|
227
|
+
export declare type FieldType = "custom" | "text" | "phone" | "number" | "slider" | "select" | "multi-select" | "checkbox-group" | "radio-group" | "checkbox" | "switch" | "date" | "time" | "datetime" | "file" | "repeater" | "field-array" | "group" | "panel-group" | "button" | "color";
|
|
228
228
|
|
|
229
229
|
export declare type FieldValueType = string | number | boolean | Date | File | (string | undefined)[] | ({
|
|
230
230
|
[x: string]: any;
|
|
@@ -362,7 +362,7 @@ export declare const NamozajDateLocaleProvider: (<TDate extends PickerValidDate,
|
|
|
362
362
|
propTypes?: any;
|
|
363
363
|
};
|
|
364
364
|
|
|
365
|
-
export declare type NamozajField = CustomFieldConfig | TextFieldConfig | ColorFieldConfig | NumberFieldConfig | SliderFieldConfig | PhoneFieldConfig | GroupFieldConfig | SelectFieldConfig | MultiSelectFieldConfig | CheckBoxGroupFieldConfig | RadioGroupFieldConfig | SwitchFieldConfig | CheckboxFieldConfig | DateFieldConfig | FileFieldConfig | ComputedFieldConfig | SectionFieldConfig | ButtonFieldConfig | RepeaterFieldConfig | FieldArrayFieldConfig;
|
|
365
|
+
export declare type NamozajField = CustomFieldConfig | TextFieldConfig | ColorFieldConfig | NumberFieldConfig | SliderFieldConfig | PhoneFieldConfig | GroupFieldConfig | PanelGroupFieldConfig | SelectFieldConfig | MultiSelectFieldConfig | CheckBoxGroupFieldConfig | RadioGroupFieldConfig | SwitchFieldConfig | CheckboxFieldConfig | DateFieldConfig | FileFieldConfig | ComputedFieldConfig | SectionFieldConfig | ButtonFieldConfig | RepeaterFieldConfig | FieldArrayFieldConfig;
|
|
366
366
|
|
|
367
367
|
export declare type NamozajFormMethods = RHFFormMethods & {
|
|
368
368
|
validateForm: () => Promise<boolean>;
|
|
@@ -473,6 +473,44 @@ export declare type Operand = "OR" | "AND";
|
|
|
473
473
|
|
|
474
474
|
export declare type Operator = "=" | "!=" | ">" | "<" | ">=" | "<=" | "in" | "not-in" | "contains" | "not-contains" | "match" | "not-match" | "between" | "starts-with" | "not-starts-with" | "ends-with" | "not-ends-with" | "is-empty" | "is-not-empty" | "is-true" | "is-false";
|
|
475
475
|
|
|
476
|
+
export declare type PanelGroupFieldConfig = BaseFieldConfig & {
|
|
477
|
+
name: string;
|
|
478
|
+
type: "panel-group";
|
|
479
|
+
meta: {
|
|
480
|
+
label: string;
|
|
481
|
+
step?: number | string;
|
|
482
|
+
variant?: PanelGroupVariant;
|
|
483
|
+
icon?: React.ReactNode;
|
|
484
|
+
collapsible?: boolean;
|
|
485
|
+
defaultCollapsed?: boolean;
|
|
486
|
+
tooltip?: TooltipConfig;
|
|
487
|
+
helperText?: HelperTextConfig;
|
|
488
|
+
disabled?: boolean | ((data: any, formIndex: number) => boolean | undefined) | undefined;
|
|
489
|
+
hidden?: boolean | ((data: any, formIndex: number) => boolean | undefined);
|
|
490
|
+
grid?: GridColumnConfig;
|
|
491
|
+
fullRow?: boolean | FullRowConfig;
|
|
492
|
+
fields: NamozajField[];
|
|
493
|
+
visibilityRules?: VisibilityRule[];
|
|
494
|
+
hideLabel?: boolean;
|
|
495
|
+
slots?: {
|
|
496
|
+
container?: {
|
|
497
|
+
className?: string;
|
|
498
|
+
style?: React.CSSProperties;
|
|
499
|
+
};
|
|
500
|
+
header?: {
|
|
501
|
+
className?: string;
|
|
502
|
+
style?: React.CSSProperties;
|
|
503
|
+
};
|
|
504
|
+
content?: {
|
|
505
|
+
className?: string;
|
|
506
|
+
style?: React.CSSProperties;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
export declare type PanelGroupVariant = "fieldset" | "card";
|
|
513
|
+
|
|
476
514
|
export declare type PhoneFieldConfig = BaseFieldConfig & {
|
|
477
515
|
type: "phone";
|
|
478
516
|
meta: BaseFieldConfig["meta"] & {
|