@indigina/ui-kit 1.1.489 → 1.1.491

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
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.489",
10
+ "version": "1.1.491",
11
11
  "peerDependencies": {
12
12
  "@angular/common": ">=21.0.0 <22.0.0",
13
13
  "@angular/core": ">=21.0.0 <22.0.0",
@@ -201,7 +201,8 @@ declare enum KitSvgIcon {
201
201
  TRAIN = "train",
202
202
  BUILDING = "building",
203
203
  CODE = "code",
204
- TREE_VIEW = "tree-view"
204
+ TREE_VIEW = "tree-view",
205
+ MAGIC_WAND = "magic-wand"
205
206
  }
206
207
  declare enum KitSvgIconType {
207
208
  FILL = "fill",
@@ -3013,6 +3014,73 @@ declare enum KitFilterOperator {
3013
3014
  IS_NOT_EMPTY = "isnotempty"
3014
3015
  }
3015
3016
 
3017
+ interface KitFilterValue {
3018
+ logic: KitFilterLogic;
3019
+ filters: KitFilterDescriptor[];
3020
+ dateRange?: KitFilterDateRange;
3021
+ }
3022
+ interface KitFilterItem {
3023
+ title: string;
3024
+ field: string;
3025
+ value: KitFilterValue | null;
3026
+ readonly?: boolean;
3027
+ type?: KitFilterType;
3028
+ }
3029
+ declare enum KitFilterType {
3030
+ CHECKBOX = "checkbox",
3031
+ RADIO = "radio",
3032
+ DATE = "date",
3033
+ TEXT = "text",
3034
+ NUMERIC = "numeric",
3035
+ NULL = "null",
3036
+ GUID = "guid",
3037
+ CUSTOM_INPUT = "customInput"
3038
+ }
3039
+ declare enum KitFilterDateRange {
3040
+ TODAY = "today",
3041
+ LAST_24_HOURS = "last24Hours",
3042
+ LAST_THREE_DAYS = "lastThreeDays",
3043
+ LAST_WEEK = "lastWeek",
3044
+ LAST_MONTH = "lastMonth",
3045
+ CUSTOM_RANGE = "customRange"
3046
+ }
3047
+ interface KitFilterListOption<T = string> {
3048
+ title: string;
3049
+ value: T;
3050
+ checked: boolean;
3051
+ }
3052
+ interface KitFilterListConfigValue<T> {
3053
+ items: KitFilterListOption<T>[];
3054
+ translateKeyPrefix: string;
3055
+ guidField?: string;
3056
+ }
3057
+ type KitFilterListConfig = Record<string, KitFilterListConfigValue<string | boolean | number>>;
3058
+
3059
+ type KitGridColumnType = 'date' | 'number' | 'plainNumber' | 'boolean' | 'string' | 'dateTime' | 'dateLocal' | 'dateTimeLocal' | 'dateZone' | 'dateTimeZone' | 'time';
3060
+ interface KitGridColumnConfig {
3061
+ field: string;
3062
+ title: string;
3063
+ sortable: boolean;
3064
+ hidden: boolean;
3065
+ type: KitGridColumnType;
3066
+ width?: number;
3067
+ filterType?: KitFilterType;
3068
+ excelFormat?: string;
3069
+ apiField?: string;
3070
+ hiddenInGrid?: boolean;
3071
+ customFieldHandler?(value: KitCompositeFilterDescriptor | KitFilterDescriptor): string;
3072
+ customRangeHandler?(): [Date, Date];
3073
+ }
3074
+ interface KitGridDataState {
3075
+ skip: number;
3076
+ take: number;
3077
+ sort: KitSortDescriptor[];
3078
+ filter: KitFilterItem[];
3079
+ columns: KitGridColumnConfig[];
3080
+ search?: string;
3081
+ archive?: boolean;
3082
+ }
3083
+
3016
3084
  interface KitDataResult<T> {
3017
3085
  data: T[];
3018
3086
  total: number;
@@ -3022,7 +3090,7 @@ interface KitDataState {
3022
3090
  take?: number;
3023
3091
  sort?: KitSortDescriptor[];
3024
3092
  filter?: KitCompositeFilterDescriptor;
3025
- columns?: unknown[];
3093
+ columns?: KitGridColumnConfig[];
3026
3094
  }
3027
3095
  interface KitCompositeFilterDescriptor extends CompositeFilterDescriptor {
3028
3096
  filters: (KitCompositeFilterDescriptor | KitFilterDescriptor)[];
@@ -3653,9 +3721,13 @@ declare enum KitDataFieldState {
3653
3721
  WARNING = "warning"
3654
3722
  }
3655
3723
 
3724
+ type KitDataFieldLinkTarget = '_self' | '_blank' | '_parent' | '_top';
3725
+
3656
3726
  declare class KitDataFieldComponent {
3657
3727
  readonly label: InputSignal<string>;
3658
3728
  readonly value: InputSignal<string | number | null | undefined>;
3729
+ readonly link: InputSignal<(string | number)[] | string | undefined>;
3730
+ readonly target: InputSignal<KitDataFieldLinkTarget>;
3659
3731
  readonly state: InputSignal<KitDataFieldState>;
3660
3732
  readonly tooltipText: InputSignal<string | undefined>;
3661
3733
  readonly icon: InputSignal<KitSvgIcon | undefined>;
@@ -3664,7 +3736,7 @@ declare class KitDataFieldComponent {
3664
3736
  readonly kitSvgIconType: typeof KitSvgIconType;
3665
3737
  readonly kitTooltipPosition: typeof KitTooltipPosition;
3666
3738
  static ɵfac: i0.ɵɵFactoryDeclaration<KitDataFieldComponent, never>;
3667
- static ɵcmp: i0.ɵɵComponentDeclaration<KitDataFieldComponent, "kit-data-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "tooltipText": { "alias": "tooltipText"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconType": { "alias": "iconType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3739
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitDataFieldComponent, "kit-data-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "tooltipText": { "alias": "tooltipText"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconType": { "alias": "iconType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3668
3740
  }
3669
3741
 
3670
3742
  declare class KitSearchBarComponent {
@@ -3701,48 +3773,6 @@ interface KitPermission {
3701
3773
  type?: string | string[];
3702
3774
  }
3703
3775
 
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
3776
  interface GlobalSearchRouteConfig {
3747
3777
  commands: string[];
3748
3778
  extras?: NavigationExtras;
@@ -3915,31 +3945,6 @@ interface KitCardDetailsSkeletonConfig {
3915
3945
  itemsCount: number;
3916
3946
  }
3917
3947
 
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
3948
  type KitGridColumns = Record<string, KitGridColumn>;
3944
3949
  interface KitGridColumn {
3945
3950
  name: string;