@anzusystems/common-admin 0.0.30 → 0.0.32

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.
@@ -291,11 +291,11 @@ export declare const AActionDeleteButton: DefineComponent<{
291
291
  }>> & {
292
292
  onDeleteRecord?: ((...args: any[]) => any) | undefined;
293
293
  }, {
294
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
295
294
  dataCy: string | undefined;
296
295
  width: number | undefined;
297
296
  buttonT: string | undefined;
298
297
  buttonClass: string | undefined;
298
+ variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
299
299
  dialogMessageT: string | undefined;
300
300
  dialogConfirmButtonT: string | undefined;
301
301
  dialogCancelButtonT: string | undefined;
@@ -607,54 +607,48 @@ export declare const ABooleanValue: DefineComponent<{
607
607
  }>;
608
608
 
609
609
  export declare const ACard: DefineComponent<{
610
- variant: {
611
- type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined>;
612
- required: false;
613
- default: string;
614
- };
615
610
  loading: {
616
611
  type: PropType<boolean | undefined>;
617
612
  required: false;
618
613
  default: undefined;
619
614
  };
620
- innerDivClass: {
621
- type: PropType<string | undefined>;
622
- required: false;
623
- default: string;
624
- };
625
615
  title: {
626
616
  type: PropType<string | undefined>;
627
617
  required: false;
628
618
  default: undefined;
629
619
  };
630
620
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
631
- variant: {
632
- type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined>;
633
- required: false;
634
- default: string;
635
- };
636
621
  loading: {
637
622
  type: PropType<boolean | undefined>;
638
623
  required: false;
639
624
  default: undefined;
640
625
  };
641
- innerDivClass: {
642
- type: PropType<string | undefined>;
643
- required: false;
644
- default: string;
645
- };
646
626
  title: {
647
627
  type: PropType<string | undefined>;
648
628
  required: false;
649
629
  default: undefined;
650
630
  };
651
631
  }>>, {
652
- variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
653
632
  loading: boolean | undefined;
654
- innerDivClass: string | undefined;
655
633
  title: string | undefined;
656
634
  }>;
657
635
 
636
+ export declare const ACardLoader: DefineComponent<{
637
+ loading: {
638
+ type: PropType<boolean | undefined>;
639
+ required: false;
640
+ default: undefined;
641
+ };
642
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
643
+ loading: {
644
+ type: PropType<boolean | undefined>;
645
+ required: false;
646
+ default: undefined;
647
+ };
648
+ }>>, {
649
+ loading: boolean | undefined;
650
+ }>;
651
+
658
652
  export declare const Acl: DefineComponent<{
659
653
  permission: {
660
654
  type: PropType<`${string}_${string}_${string}`>;
@@ -1044,6 +1038,11 @@ export declare const AFilterSubmitButton: DefineComponent<{
1044
1038
  required: false;
1045
1039
  default: string;
1046
1040
  };
1041
+ touched: {
1042
+ type: PropType<boolean | undefined>;
1043
+ required: false;
1044
+ default: boolean;
1045
+ };
1047
1046
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1048
1047
  buttonT: {
1049
1048
  type: PropType<string | undefined>;
@@ -1060,10 +1059,16 @@ export declare const AFilterSubmitButton: DefineComponent<{
1060
1059
  required: false;
1061
1060
  default: string;
1062
1061
  };
1062
+ touched: {
1063
+ type: PropType<boolean | undefined>;
1064
+ required: false;
1065
+ default: boolean;
1066
+ };
1063
1067
  }>> & {
1064
1068
  onSubmit?: ((...args: any[]) => any) | undefined;
1065
1069
  }, {
1066
1070
  dataCy: string | undefined;
1071
+ touched: boolean | undefined;
1067
1072
  buttonT: string | undefined;
1068
1073
  buttonClass: string | undefined;
1069
1074
  }>;
@@ -1107,6 +1112,11 @@ export declare const AFilterWrapper: DefineComponent<{
1107
1112
  required: false;
1108
1113
  default: boolean;
1109
1114
  };
1115
+ touched: {
1116
+ type: PropType<boolean | undefined>;
1117
+ required: false;
1118
+ default: boolean;
1119
+ };
1110
1120
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "resetFilter"[], "resetFilter", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
1111
1121
  enableAdvanced: {
1112
1122
  type: PropType<boolean | undefined>;
@@ -1123,12 +1133,18 @@ export declare const AFilterWrapper: DefineComponent<{
1123
1133
  required: false;
1124
1134
  default: boolean;
1125
1135
  };
1136
+ touched: {
1137
+ type: PropType<boolean | undefined>;
1138
+ required: false;
1139
+ default: boolean;
1140
+ };
1126
1141
  }>> & {
1127
1142
  onResetFilter?: ((...args: any[]) => any) | undefined;
1128
1143
  }, {
1129
1144
  enableAdvanced: boolean | undefined;
1130
1145
  enableTop: boolean | undefined;
1131
1146
  hideButtons: boolean | undefined;
1147
+ touched: boolean | undefined;
1132
1148
  }>;
1133
1149
 
1134
1150
  export declare const AFormBooleanToggle: DefineComponent<{
@@ -2062,6 +2078,16 @@ export declare const apiFetchList: <T, R = T>(client: () => AxiosInstance, urlTe
2062
2078
  */
2063
2079
  export declare const apiFetchOne: <R>(client: () => AxiosInstance, urlTemplate: string, urlParams: UrlParams | undefined, system: string, entity: string, options?: AxiosRequestConfig) => Promise<R>;
2064
2080
 
2081
+ export declare interface ApiInfiniteResponseList<T> {
2082
+ hasNextPage: boolean;
2083
+ data: T;
2084
+ }
2085
+
2086
+ export declare interface ApiResponseList<T> {
2087
+ totalCount: number;
2088
+ data: T;
2089
+ }
2090
+
2065
2091
  /**
2066
2092
  * @template T Type used for request payload, by default same as Response type
2067
2093
  * @template R Response type override, optional
@@ -3029,10 +3055,19 @@ export declare const messagesEn: {
3029
3055
  };
3030
3056
  validations: {
3031
3057
  api: {
3058
+ validation_failed: string;
3059
+ error_id_mismatch: string;
3060
+ error_field_empty: string;
3032
3061
  error_field_length_min: string;
3033
3062
  error_field_length_max: string;
3063
+ error_field_invalid: string;
3034
3064
  error_field_not_unique: string;
3035
- error_compromised_password: string;
3065
+ error_field_value_not_found: string;
3066
+ error_field_range_min: string;
3067
+ error_field_range_max: string;
3068
+ error_field_regex: string;
3069
+ error_field_url: string;
3070
+ error_already_exists: string;
3036
3071
  };
3037
3072
  js: {
3038
3073
  required: string;
@@ -3371,10 +3406,19 @@ export declare const messagesSk: {
3371
3406
  };
3372
3407
  validations: {
3373
3408
  api: {
3409
+ validation_failed: string;
3410
+ error_id_mismatch: string;
3411
+ error_field_empty: string;
3374
3412
  error_field_length_min: string;
3375
3413
  error_field_length_max: string;
3414
+ error_field_invalid: string;
3376
3415
  error_field_not_unique: string;
3377
- error_compromised_password: string;
3416
+ error_field_value_not_found: string;
3417
+ error_field_range_min: string;
3418
+ error_field_range_max: string;
3419
+ error_field_regex: string;
3420
+ error_field_url: string;
3421
+ error_already_exists: string;
3378
3422
  };
3379
3423
  js: {
3380
3424
  required: string;
@@ -3706,12 +3750,27 @@ export declare function useTheme(): {
3706
3750
  setThemeLight: () => void;
3707
3751
  };
3708
3752
 
3709
- export declare function useValidateBetween(): (min: number | Ref_2<number>, max: number | Ref_2<number>) => ValidationRuleWithParams<{
3753
+ export declare function useValidate(): {
3754
+ required: typeof useValidateRequired;
3755
+ requiredIf: typeof useValidateRequiredIf;
3756
+ minLength: typeof useValidateMinLength;
3757
+ maxLength: typeof useValidateMaxLength;
3758
+ minValue: typeof useValidateMinValue;
3759
+ maxValue: typeof useValidateMaxValue;
3760
+ between: typeof useValidateBetween;
3761
+ email: typeof useValidateEmail;
3762
+ numeric: typeof useValidateNumeric;
3763
+ slug: typeof useValidateSlug;
3764
+ url: typeof useValidateUrl;
3765
+ stringArrayItemLength: typeof useValidateStringArrayItemLength;
3766
+ };
3767
+
3768
+ declare function useValidateBetween(): (min: number | Ref_2<number>, max: number | Ref_2<number>) => ValidationRuleWithParams<{
3710
3769
  min: number;
3711
3770
  max: number;
3712
3771
  }, any>;
3713
3772
 
3714
- export declare function useValidateEmail(): ValidationRuleWithoutParams<any>;
3773
+ declare function useValidateEmail(): ValidationRuleWithoutParams<any>;
3715
3774
 
3716
3775
  export declare function useValidateLatitude(): any;
3717
3776
 
@@ -3729,33 +3788,33 @@ export declare function useValidateLongitudeNotZeroAsLatitude(): (value: string,
3729
3788
  required: boolean;
3730
3789
  }) => boolean;
3731
3790
 
3732
- export declare function useValidateMaxLength(): (max: number | Ref_2<number>) => ValidationRuleWithParams<{
3791
+ declare function useValidateMaxLength(): (max: number | Ref_2<number>) => ValidationRuleWithParams<{
3733
3792
  max: number;
3734
3793
  }, any>;
3735
3794
 
3736
- export declare function useValidateMaxValue(): (max: string | number | Ref_2<number> | Ref_2<string>) => ValidationRuleWithParams<{
3795
+ declare function useValidateMaxValue(): (max: string | number | Ref_2<number> | Ref_2<string>) => ValidationRuleWithParams<{
3737
3796
  max: number;
3738
3797
  }, any>;
3739
3798
 
3740
- export declare function useValidateMinLength(): (min: number | Ref_2<number>) => ValidationRuleWithParams<{
3799
+ declare function useValidateMinLength(): (min: number | Ref_2<number>) => ValidationRuleWithParams<{
3741
3800
  min: number;
3742
3801
  }, any>;
3743
3802
 
3744
- export declare function useValidateMinValue(): (min: string | number | Ref_2<number> | Ref_2<string>) => ValidationRuleWithParams<{
3803
+ declare function useValidateMinValue(): (min: string | number | Ref_2<number> | Ref_2<string>) => ValidationRuleWithParams<{
3745
3804
  min: number;
3746
3805
  }, any>;
3747
3806
 
3748
- export declare function useValidateNumeric(): ValidationRuleWithoutParams<any>;
3807
+ declare function useValidateNumeric(): ValidationRuleWithoutParams<any>;
3749
3808
 
3750
- export declare function useValidatePhoneNumber(): any;
3809
+ declare function useValidateRequired(): ValidationRuleWithoutParams<any>;
3751
3810
 
3752
- export declare function useValidateRequired(): ValidationRuleWithoutParams<any>;
3811
+ declare function useValidateRequiredIf(): (prop: string | boolean | Ref_2<boolean> | (() => boolean | Promise<boolean>)) => ValidationRuleWithoutParams<any>;
3753
3812
 
3754
- export declare function useValidateRequiredIf(): (prop: string | boolean | Ref_2<boolean> | (() => boolean | Promise<boolean>)) => ValidationRuleWithoutParams<any>;
3813
+ export declare function useValidateSlovakPhoneNumber(): any;
3755
3814
 
3756
- export declare function useValidateSlug(): any;
3815
+ declare function useValidateSlug(): any;
3757
3816
 
3758
- export declare function useValidateStringArrayItemLength(): (min: number, max: number) => {
3817
+ declare function useValidateStringArrayItemLength(): (min: number, max: number) => {
3759
3818
  $validator: (value: string[]) => boolean;
3760
3819
  $params: {
3761
3820
  min: number;
@@ -3764,7 +3823,7 @@ export declare function useValidateStringArrayItemLength(): (min: number, max: n
3764
3823
  };
3765
3824
  };
3766
3825
 
3767
- export declare function useValidateUrl(): ValidationRuleWithoutParams<any>;
3826
+ declare function useValidateUrl(): ValidationRuleWithoutParams<any>;
3768
3827
 
3769
3828
  declare interface ValidationError {
3770
3829
  field: string;