@indigina/ui-kit 1.1.488 → 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
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,6 +3089,7 @@ interface KitDataState {
|
|
|
3022
3089
|
take?: number;
|
|
3023
3090
|
sort?: KitSortDescriptor[];
|
|
3024
3091
|
filter?: KitCompositeFilterDescriptor;
|
|
3092
|
+
columns?: KitGridColumnConfig[];
|
|
3025
3093
|
}
|
|
3026
3094
|
interface KitCompositeFilterDescriptor extends CompositeFilterDescriptor {
|
|
3027
3095
|
filters: (KitCompositeFilterDescriptor | KitFilterDescriptor)[];
|
|
@@ -3700,48 +3768,6 @@ interface KitPermission {
|
|
|
3700
3768
|
type?: string | string[];
|
|
3701
3769
|
}
|
|
3702
3770
|
|
|
3703
|
-
interface KitFilterValue {
|
|
3704
|
-
logic: KitFilterLogic;
|
|
3705
|
-
filters: KitFilterDescriptor[];
|
|
3706
|
-
dateRange?: KitFilterDateRange;
|
|
3707
|
-
}
|
|
3708
|
-
interface KitFilterItem {
|
|
3709
|
-
title: string;
|
|
3710
|
-
field: string;
|
|
3711
|
-
value: KitFilterValue | null;
|
|
3712
|
-
readonly?: boolean;
|
|
3713
|
-
type?: KitFilterType;
|
|
3714
|
-
}
|
|
3715
|
-
declare enum KitFilterType {
|
|
3716
|
-
CHECKBOX = "checkbox",
|
|
3717
|
-
RADIO = "radio",
|
|
3718
|
-
DATE = "date",
|
|
3719
|
-
TEXT = "text",
|
|
3720
|
-
NUMERIC = "numeric",
|
|
3721
|
-
NULL = "null",
|
|
3722
|
-
GUID = "guid",
|
|
3723
|
-
CUSTOM_INPUT = "customInput"
|
|
3724
|
-
}
|
|
3725
|
-
declare enum KitFilterDateRange {
|
|
3726
|
-
TODAY = "today",
|
|
3727
|
-
LAST_24_HOURS = "last24Hours",
|
|
3728
|
-
LAST_THREE_DAYS = "lastThreeDays",
|
|
3729
|
-
LAST_WEEK = "lastWeek",
|
|
3730
|
-
LAST_MONTH = "lastMonth",
|
|
3731
|
-
CUSTOM_RANGE = "customRange"
|
|
3732
|
-
}
|
|
3733
|
-
interface KitFilterListOption<T = string> {
|
|
3734
|
-
title: string;
|
|
3735
|
-
value: T;
|
|
3736
|
-
checked: boolean;
|
|
3737
|
-
}
|
|
3738
|
-
interface KitFilterListConfigValue<T> {
|
|
3739
|
-
items: KitFilterListOption<T>[];
|
|
3740
|
-
translateKeyPrefix: string;
|
|
3741
|
-
guidField?: string;
|
|
3742
|
-
}
|
|
3743
|
-
type KitFilterListConfig = Record<string, KitFilterListConfigValue<string | boolean | number>>;
|
|
3744
|
-
|
|
3745
3771
|
interface GlobalSearchRouteConfig {
|
|
3746
3772
|
commands: string[];
|
|
3747
3773
|
extras?: NavigationExtras;
|
|
@@ -3914,31 +3940,6 @@ interface KitCardDetailsSkeletonConfig {
|
|
|
3914
3940
|
itemsCount: number;
|
|
3915
3941
|
}
|
|
3916
3942
|
|
|
3917
|
-
type KitGridColumnType = 'date' | 'number' | 'plainNumber' | 'boolean' | 'string' | 'dateTime' | 'dateLocal' | 'dateTimeLocal' | 'dateZone' | 'dateTimeZone' | 'time';
|
|
3918
|
-
interface KitGridColumnConfig {
|
|
3919
|
-
field: string;
|
|
3920
|
-
title: string;
|
|
3921
|
-
sortable: boolean;
|
|
3922
|
-
hidden: boolean;
|
|
3923
|
-
type: KitGridColumnType;
|
|
3924
|
-
width?: number;
|
|
3925
|
-
filterType?: KitFilterType;
|
|
3926
|
-
excelFormat?: string;
|
|
3927
|
-
apiField?: string;
|
|
3928
|
-
hiddenInGrid?: boolean;
|
|
3929
|
-
customFieldHandler?(value: KitCompositeFilterDescriptor | KitFilterDescriptor): string;
|
|
3930
|
-
customRangeHandler?(): [Date, Date];
|
|
3931
|
-
}
|
|
3932
|
-
interface KitGridDataState {
|
|
3933
|
-
skip: number;
|
|
3934
|
-
take: number;
|
|
3935
|
-
sort: KitSortDescriptor[];
|
|
3936
|
-
filter: KitFilterItem[];
|
|
3937
|
-
columns: KitGridColumnConfig[];
|
|
3938
|
-
search?: string;
|
|
3939
|
-
archive?: boolean;
|
|
3940
|
-
}
|
|
3941
|
-
|
|
3942
3943
|
type KitGridColumns = Record<string, KitGridColumn>;
|
|
3943
3944
|
interface KitGridColumn {
|
|
3944
3945
|
name: string;
|