@anzusystems/common-admin 0.0.30 → 0.0.31
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/common-admin.es.d.ts +58 -15
- package/dist/common-admin.es.js +1945 -2004
- package/dist/common-admin.es.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +3 -3
|
@@ -2062,6 +2062,16 @@ export declare const apiFetchList: <T, R = T>(client: () => AxiosInstance, urlTe
|
|
|
2062
2062
|
*/
|
|
2063
2063
|
export declare const apiFetchOne: <R>(client: () => AxiosInstance, urlTemplate: string, urlParams: UrlParams | undefined, system: string, entity: string, options?: AxiosRequestConfig) => Promise<R>;
|
|
2064
2064
|
|
|
2065
|
+
export declare interface ApiInfiniteResponseList<T> {
|
|
2066
|
+
hasNextPage: boolean;
|
|
2067
|
+
data: T;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
export declare interface ApiResponseList<T> {
|
|
2071
|
+
totalCount: number;
|
|
2072
|
+
data: T;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2065
2075
|
/**
|
|
2066
2076
|
* @template T Type used for request payload, by default same as Response type
|
|
2067
2077
|
* @template R Response type override, optional
|
|
@@ -3029,10 +3039,19 @@ export declare const messagesEn: {
|
|
|
3029
3039
|
};
|
|
3030
3040
|
validations: {
|
|
3031
3041
|
api: {
|
|
3042
|
+
validation_failed: string;
|
|
3043
|
+
error_id_mismatch: string;
|
|
3044
|
+
error_field_empty: string;
|
|
3032
3045
|
error_field_length_min: string;
|
|
3033
3046
|
error_field_length_max: string;
|
|
3047
|
+
error_field_invalid: string;
|
|
3034
3048
|
error_field_not_unique: string;
|
|
3035
|
-
|
|
3049
|
+
error_field_value_not_found: string;
|
|
3050
|
+
error_field_range_min: string;
|
|
3051
|
+
error_field_range_max: string;
|
|
3052
|
+
error_field_regex: string;
|
|
3053
|
+
error_field_url: string;
|
|
3054
|
+
error_already_exists: string;
|
|
3036
3055
|
};
|
|
3037
3056
|
js: {
|
|
3038
3057
|
required: string;
|
|
@@ -3371,10 +3390,19 @@ export declare const messagesSk: {
|
|
|
3371
3390
|
};
|
|
3372
3391
|
validations: {
|
|
3373
3392
|
api: {
|
|
3393
|
+
validation_failed: string;
|
|
3394
|
+
error_id_mismatch: string;
|
|
3395
|
+
error_field_empty: string;
|
|
3374
3396
|
error_field_length_min: string;
|
|
3375
3397
|
error_field_length_max: string;
|
|
3398
|
+
error_field_invalid: string;
|
|
3376
3399
|
error_field_not_unique: string;
|
|
3377
|
-
|
|
3400
|
+
error_field_value_not_found: string;
|
|
3401
|
+
error_field_range_min: string;
|
|
3402
|
+
error_field_range_max: string;
|
|
3403
|
+
error_field_regex: string;
|
|
3404
|
+
error_field_url: string;
|
|
3405
|
+
error_already_exists: string;
|
|
3378
3406
|
};
|
|
3379
3407
|
js: {
|
|
3380
3408
|
required: string;
|
|
@@ -3706,12 +3734,27 @@ export declare function useTheme(): {
|
|
|
3706
3734
|
setThemeLight: () => void;
|
|
3707
3735
|
};
|
|
3708
3736
|
|
|
3709
|
-
export declare function
|
|
3737
|
+
export declare function useValidate(): {
|
|
3738
|
+
required: typeof useValidateRequired;
|
|
3739
|
+
requiredIf: typeof useValidateRequiredIf;
|
|
3740
|
+
minLength: typeof useValidateMinLength;
|
|
3741
|
+
maxLength: typeof useValidateMaxLength;
|
|
3742
|
+
minValue: typeof useValidateMinValue;
|
|
3743
|
+
maxValue: typeof useValidateMaxValue;
|
|
3744
|
+
between: typeof useValidateBetween;
|
|
3745
|
+
email: typeof useValidateEmail;
|
|
3746
|
+
numeric: typeof useValidateNumeric;
|
|
3747
|
+
slug: typeof useValidateSlug;
|
|
3748
|
+
url: typeof useValidateUrl;
|
|
3749
|
+
stringArrayItemLength: typeof useValidateStringArrayItemLength;
|
|
3750
|
+
};
|
|
3751
|
+
|
|
3752
|
+
declare function useValidateBetween(): (min: number | Ref_2<number>, max: number | Ref_2<number>) => ValidationRuleWithParams<{
|
|
3710
3753
|
min: number;
|
|
3711
3754
|
max: number;
|
|
3712
3755
|
}, any>;
|
|
3713
3756
|
|
|
3714
|
-
|
|
3757
|
+
declare function useValidateEmail(): ValidationRuleWithoutParams<any>;
|
|
3715
3758
|
|
|
3716
3759
|
export declare function useValidateLatitude(): any;
|
|
3717
3760
|
|
|
@@ -3729,33 +3772,33 @@ export declare function useValidateLongitudeNotZeroAsLatitude(): (value: string,
|
|
|
3729
3772
|
required: boolean;
|
|
3730
3773
|
}) => boolean;
|
|
3731
3774
|
|
|
3732
|
-
|
|
3775
|
+
declare function useValidateMaxLength(): (max: number | Ref_2<number>) => ValidationRuleWithParams<{
|
|
3733
3776
|
max: number;
|
|
3734
3777
|
}, any>;
|
|
3735
3778
|
|
|
3736
|
-
|
|
3779
|
+
declare function useValidateMaxValue(): (max: string | number | Ref_2<number> | Ref_2<string>) => ValidationRuleWithParams<{
|
|
3737
3780
|
max: number;
|
|
3738
3781
|
}, any>;
|
|
3739
3782
|
|
|
3740
|
-
|
|
3783
|
+
declare function useValidateMinLength(): (min: number | Ref_2<number>) => ValidationRuleWithParams<{
|
|
3741
3784
|
min: number;
|
|
3742
3785
|
}, any>;
|
|
3743
3786
|
|
|
3744
|
-
|
|
3787
|
+
declare function useValidateMinValue(): (min: string | number | Ref_2<number> | Ref_2<string>) => ValidationRuleWithParams<{
|
|
3745
3788
|
min: number;
|
|
3746
3789
|
}, any>;
|
|
3747
3790
|
|
|
3748
|
-
|
|
3791
|
+
declare function useValidateNumeric(): ValidationRuleWithoutParams<any>;
|
|
3749
3792
|
|
|
3750
|
-
|
|
3793
|
+
declare function useValidateRequired(): ValidationRuleWithoutParams<any>;
|
|
3751
3794
|
|
|
3752
|
-
|
|
3795
|
+
declare function useValidateRequiredIf(): (prop: string | boolean | Ref_2<boolean> | (() => boolean | Promise<boolean>)) => ValidationRuleWithoutParams<any>;
|
|
3753
3796
|
|
|
3754
|
-
export declare function
|
|
3797
|
+
export declare function useValidateSlovakPhoneNumber(): any;
|
|
3755
3798
|
|
|
3756
|
-
|
|
3799
|
+
declare function useValidateSlug(): any;
|
|
3757
3800
|
|
|
3758
|
-
|
|
3801
|
+
declare function useValidateStringArrayItemLength(): (min: number, max: number) => {
|
|
3759
3802
|
$validator: (value: string[]) => boolean;
|
|
3760
3803
|
$params: {
|
|
3761
3804
|
min: number;
|
|
@@ -3764,7 +3807,7 @@ export declare function useValidateStringArrayItemLength(): (min: number, max: n
|
|
|
3764
3807
|
};
|
|
3765
3808
|
};
|
|
3766
3809
|
|
|
3767
|
-
|
|
3810
|
+
declare function useValidateUrl(): ValidationRuleWithoutParams<any>;
|
|
3768
3811
|
|
|
3769
3812
|
declare interface ValidationError {
|
|
3770
3813
|
field: string;
|