@ahmadmubarak98/namozaj 1.3.0 → 1.4.0

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 CHANGED
@@ -21,6 +21,7 @@ export declare type BaseFieldConfig = {
21
21
  disabled?: boolean;
22
22
  visibilityRules?: VisibilityRule[];
23
23
  dependencies?: FieldDependency[];
24
+ onValueChange?: (value: FieldValueType, formMethods: any) => void;
24
25
  };
25
26
  };
26
27
 
@@ -52,6 +53,8 @@ export declare type CheckboxFieldConfig = BaseFieldConfig & {
52
53
  export declare type CheckBoxGroupFieldConfig = BaseFieldConfig & {
53
54
  type: "checkbox-group";
54
55
  meta: BaseFieldConfig["meta"] & {
56
+ min?: number;
57
+ max?: number;
55
58
  horizontal?: boolean;
56
59
  options?: FieldOption[];
57
60
  optionsFetch?: FieldOptionFetch;
@@ -235,6 +238,13 @@ export declare interface NamozajLocalizationOptions {
235
238
  translatedLabelSuffix?: (label: string, locale: string) => string;
236
239
  translatedFieldNameSuffix?: (locale: string) => string;
237
240
  translatedFieldGrid?: (field: DynamicFormField, locale: string) => GridColumnConfig;
241
+ localePicker?: {
242
+ name?: string;
243
+ label?: string;
244
+ getLocaleLabel: (locale: string) => string;
245
+ onLocaleChange: (locale: string[], formMethods: any) => void;
246
+ grid?: GridColumnConfig;
247
+ };
238
248
  }
239
249
 
240
250
  export declare type NumberFieldConfig = BaseFieldConfig & {
@@ -317,6 +327,8 @@ export declare type SectionFieldConfig = BaseFieldConfig & {
317
327
  export declare type SelectFieldConfig = BaseFieldConfig & {
318
328
  type: "select";
319
329
  meta: BaseFieldConfig["meta"] & {
330
+ min?: number;
331
+ max?: number;
320
332
  options?: FieldOption[];
321
333
  optionsFetch?: FieldOptionFetch;
322
334
  optionsFetchFnc?: FieldOptionFetchFunction;