@indigina/ui-kit 1.1.489 → 1.1.490
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/package.json +1 -1
- package/types/indigina-ui-kit.d.ts +68 -68
package/package.json
CHANGED
|
@@ -3013,6 +3013,73 @@ declare enum KitFilterOperator {
|
|
|
3013
3013
|
IS_NOT_EMPTY = "isnotempty"
|
|
3014
3014
|
}
|
|
3015
3015
|
|
|
3016
|
+
interface KitFilterValue {
|
|
3017
|
+
logic: KitFilterLogic;
|
|
3018
|
+
filters: KitFilterDescriptor[];
|
|
3019
|
+
dateRange?: KitFilterDateRange;
|
|
3020
|
+
}
|
|
3021
|
+
interface KitFilterItem {
|
|
3022
|
+
title: string;
|
|
3023
|
+
field: string;
|
|
3024
|
+
value: KitFilterValue | null;
|
|
3025
|
+
readonly?: boolean;
|
|
3026
|
+
type?: KitFilterType;
|
|
3027
|
+
}
|
|
3028
|
+
declare enum KitFilterType {
|
|
3029
|
+
CHECKBOX = "checkbox",
|
|
3030
|
+
RADIO = "radio",
|
|
3031
|
+
DATE = "date",
|
|
3032
|
+
TEXT = "text",
|
|
3033
|
+
NUMERIC = "numeric",
|
|
3034
|
+
NULL = "null",
|
|
3035
|
+
GUID = "guid",
|
|
3036
|
+
CUSTOM_INPUT = "customInput"
|
|
3037
|
+
}
|
|
3038
|
+
declare enum KitFilterDateRange {
|
|
3039
|
+
TODAY = "today",
|
|
3040
|
+
LAST_24_HOURS = "last24Hours",
|
|
3041
|
+
LAST_THREE_DAYS = "lastThreeDays",
|
|
3042
|
+
LAST_WEEK = "lastWeek",
|
|
3043
|
+
LAST_MONTH = "lastMonth",
|
|
3044
|
+
CUSTOM_RANGE = "customRange"
|
|
3045
|
+
}
|
|
3046
|
+
interface KitFilterListOption<T = string> {
|
|
3047
|
+
title: string;
|
|
3048
|
+
value: T;
|
|
3049
|
+
checked: boolean;
|
|
3050
|
+
}
|
|
3051
|
+
interface KitFilterListConfigValue<T> {
|
|
3052
|
+
items: KitFilterListOption<T>[];
|
|
3053
|
+
translateKeyPrefix: string;
|
|
3054
|
+
guidField?: string;
|
|
3055
|
+
}
|
|
3056
|
+
type KitFilterListConfig = Record<string, KitFilterListConfigValue<string | boolean | number>>;
|
|
3057
|
+
|
|
3058
|
+
type KitGridColumnType = 'date' | 'number' | 'plainNumber' | 'boolean' | 'string' | 'dateTime' | 'dateLocal' | 'dateTimeLocal' | 'dateZone' | 'dateTimeZone' | 'time';
|
|
3059
|
+
interface KitGridColumnConfig {
|
|
3060
|
+
field: string;
|
|
3061
|
+
title: string;
|
|
3062
|
+
sortable: boolean;
|
|
3063
|
+
hidden: boolean;
|
|
3064
|
+
type: KitGridColumnType;
|
|
3065
|
+
width?: number;
|
|
3066
|
+
filterType?: KitFilterType;
|
|
3067
|
+
excelFormat?: string;
|
|
3068
|
+
apiField?: string;
|
|
3069
|
+
hiddenInGrid?: boolean;
|
|
3070
|
+
customFieldHandler?(value: KitCompositeFilterDescriptor | KitFilterDescriptor): string;
|
|
3071
|
+
customRangeHandler?(): [Date, Date];
|
|
3072
|
+
}
|
|
3073
|
+
interface KitGridDataState {
|
|
3074
|
+
skip: number;
|
|
3075
|
+
take: number;
|
|
3076
|
+
sort: KitSortDescriptor[];
|
|
3077
|
+
filter: KitFilterItem[];
|
|
3078
|
+
columns: KitGridColumnConfig[];
|
|
3079
|
+
search?: string;
|
|
3080
|
+
archive?: boolean;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3016
3083
|
interface KitDataResult<T> {
|
|
3017
3084
|
data: T[];
|
|
3018
3085
|
total: number;
|
|
@@ -3022,7 +3089,7 @@ interface KitDataState {
|
|
|
3022
3089
|
take?: number;
|
|
3023
3090
|
sort?: KitSortDescriptor[];
|
|
3024
3091
|
filter?: KitCompositeFilterDescriptor;
|
|
3025
|
-
columns?:
|
|
3092
|
+
columns?: KitGridColumnConfig[];
|
|
3026
3093
|
}
|
|
3027
3094
|
interface KitCompositeFilterDescriptor extends CompositeFilterDescriptor {
|
|
3028
3095
|
filters: (KitCompositeFilterDescriptor | KitFilterDescriptor)[];
|
|
@@ -3701,48 +3768,6 @@ interface KitPermission {
|
|
|
3701
3768
|
type?: string | string[];
|
|
3702
3769
|
}
|
|
3703
3770
|
|
|
3704
|
-
interface KitFilterValue {
|
|
3705
|
-
logic: KitFilterLogic;
|
|
3706
|
-
filters: KitFilterDescriptor[];
|
|
3707
|
-
dateRange?: KitFilterDateRange;
|
|
3708
|
-
}
|
|
3709
|
-
interface KitFilterItem {
|
|
3710
|
-
title: string;
|
|
3711
|
-
field: string;
|
|
3712
|
-
value: KitFilterValue | null;
|
|
3713
|
-
readonly?: boolean;
|
|
3714
|
-
type?: KitFilterType;
|
|
3715
|
-
}
|
|
3716
|
-
declare enum KitFilterType {
|
|
3717
|
-
CHECKBOX = "checkbox",
|
|
3718
|
-
RADIO = "radio",
|
|
3719
|
-
DATE = "date",
|
|
3720
|
-
TEXT = "text",
|
|
3721
|
-
NUMERIC = "numeric",
|
|
3722
|
-
NULL = "null",
|
|
3723
|
-
GUID = "guid",
|
|
3724
|
-
CUSTOM_INPUT = "customInput"
|
|
3725
|
-
}
|
|
3726
|
-
declare enum KitFilterDateRange {
|
|
3727
|
-
TODAY = "today",
|
|
3728
|
-
LAST_24_HOURS = "last24Hours",
|
|
3729
|
-
LAST_THREE_DAYS = "lastThreeDays",
|
|
3730
|
-
LAST_WEEK = "lastWeek",
|
|
3731
|
-
LAST_MONTH = "lastMonth",
|
|
3732
|
-
CUSTOM_RANGE = "customRange"
|
|
3733
|
-
}
|
|
3734
|
-
interface KitFilterListOption<T = string> {
|
|
3735
|
-
title: string;
|
|
3736
|
-
value: T;
|
|
3737
|
-
checked: boolean;
|
|
3738
|
-
}
|
|
3739
|
-
interface KitFilterListConfigValue<T> {
|
|
3740
|
-
items: KitFilterListOption<T>[];
|
|
3741
|
-
translateKeyPrefix: string;
|
|
3742
|
-
guidField?: string;
|
|
3743
|
-
}
|
|
3744
|
-
type KitFilterListConfig = Record<string, KitFilterListConfigValue<string | boolean | number>>;
|
|
3745
|
-
|
|
3746
3771
|
interface GlobalSearchRouteConfig {
|
|
3747
3772
|
commands: string[];
|
|
3748
3773
|
extras?: NavigationExtras;
|
|
@@ -3915,31 +3940,6 @@ interface KitCardDetailsSkeletonConfig {
|
|
|
3915
3940
|
itemsCount: number;
|
|
3916
3941
|
}
|
|
3917
3942
|
|
|
3918
|
-
type KitGridColumnType = 'date' | 'number' | 'plainNumber' | 'boolean' | 'string' | 'dateTime' | 'dateLocal' | 'dateTimeLocal' | 'dateZone' | 'dateTimeZone' | 'time';
|
|
3919
|
-
interface KitGridColumnConfig {
|
|
3920
|
-
field: string;
|
|
3921
|
-
title: string;
|
|
3922
|
-
sortable: boolean;
|
|
3923
|
-
hidden: boolean;
|
|
3924
|
-
type: KitGridColumnType;
|
|
3925
|
-
width?: number;
|
|
3926
|
-
filterType?: KitFilterType;
|
|
3927
|
-
excelFormat?: string;
|
|
3928
|
-
apiField?: string;
|
|
3929
|
-
hiddenInGrid?: boolean;
|
|
3930
|
-
customFieldHandler?(value: KitCompositeFilterDescriptor | KitFilterDescriptor): string;
|
|
3931
|
-
customRangeHandler?(): [Date, Date];
|
|
3932
|
-
}
|
|
3933
|
-
interface KitGridDataState {
|
|
3934
|
-
skip: number;
|
|
3935
|
-
take: number;
|
|
3936
|
-
sort: KitSortDescriptor[];
|
|
3937
|
-
filter: KitFilterItem[];
|
|
3938
|
-
columns: KitGridColumnConfig[];
|
|
3939
|
-
search?: string;
|
|
3940
|
-
archive?: boolean;
|
|
3941
|
-
}
|
|
3942
|
-
|
|
3943
3943
|
type KitGridColumns = Record<string, KitGridColumn>;
|
|
3944
3944
|
interface KitGridColumn {
|
|
3945
3945
|
name: string;
|