@indigina/ui-kit 1.1.594 → 1.1.595
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
|
@@ -3152,7 +3152,8 @@ declare enum KitFilterDateRange {
|
|
|
3152
3152
|
LAST_MONTH = "lastMonth",
|
|
3153
3153
|
CUSTOM_RANGE = "customRange"
|
|
3154
3154
|
}
|
|
3155
|
-
|
|
3155
|
+
type KitFilterListOptionValue = string | boolean | number;
|
|
3156
|
+
interface KitFilterListOption<T = KitFilterListOptionValue> {
|
|
3156
3157
|
title: string;
|
|
3157
3158
|
value: T;
|
|
3158
3159
|
checked: boolean;
|
|
@@ -3162,7 +3163,7 @@ interface KitFilterListConfigValue<T> {
|
|
|
3162
3163
|
translateKeyPrefix: string;
|
|
3163
3164
|
guidField?: string;
|
|
3164
3165
|
}
|
|
3165
|
-
type KitFilterListConfig = Record<string, KitFilterListConfigValue<
|
|
3166
|
+
type KitFilterListConfig = Record<string, KitFilterListConfigValue<KitFilterListOptionValue>>;
|
|
3166
3167
|
|
|
3167
3168
|
interface KitDateFilterConstraint {
|
|
3168
3169
|
months?: number;
|
|
@@ -4744,8 +4745,10 @@ declare class KitGridUrlStateService {
|
|
|
4744
4745
|
private readonly location;
|
|
4745
4746
|
getGridStateFromUrl(): KitGridDataState;
|
|
4746
4747
|
setGridStateToUrl(state: KitGridDataState, defaultColumns?: KitGridViewColumn[]): void;
|
|
4748
|
+
replaceGridStateInUrl(state: KitGridDataState, defaultColumns?: KitGridViewColumn[]): void;
|
|
4747
4749
|
getFiltersVisible(filterDetailsSetting: string): boolean;
|
|
4748
4750
|
setFiltersVisible(filtersVisible: boolean): void;
|
|
4751
|
+
private buildGridQueryParams;
|
|
4749
4752
|
}
|
|
4750
4753
|
|
|
4751
4754
|
interface KitGridViewListItem extends KitCollapsedListItem, KitGridView {
|
|
@@ -4935,6 +4938,7 @@ declare class KitGridFiltersComponent {
|
|
|
4935
4938
|
readonly kitFilterType: typeof KitFilterType;
|
|
4936
4939
|
readonly filters: Signal<KitFilterItem[]>;
|
|
4937
4940
|
readonly filterSelectorItems: Signal<KitFilterSelectorItem[]>;
|
|
4941
|
+
readonly filterToAutoOpen: WritableSignal<string | null>;
|
|
4938
4942
|
addFilter(item: KitFilterSelectorItem): void;
|
|
4939
4943
|
removeFilter(field: string): void;
|
|
4940
4944
|
applyFilter(filter: KitFilterItem, values: KitFilterValue): void;
|
|
@@ -4942,7 +4946,6 @@ declare class KitGridFiltersComponent {
|
|
|
4942
4946
|
useUserTimeZone(filter: KitFilterItem): boolean;
|
|
4943
4947
|
isLocalDateColumn(filter: KitFilterItem): boolean;
|
|
4944
4948
|
getDateFilterConstraint(filter: KitFilterItem): KitDateFilterConstraint | undefined;
|
|
4945
|
-
getCheckboxFilterItems(field: string): KitFilterListOption[];
|
|
4946
4949
|
private isFilterSelectorItemDisabled;
|
|
4947
4950
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridFiltersComponent, never>;
|
|
4948
4951
|
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridFiltersComponent, "kit-grid-filters", never, { "excludedColumns": { "alias": "excludedColumns"; "required": true; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "filterListConfig": { "alias": "filterListConfig"; "required": true; "isSignal": true; }; "useLocalTimeZone": { "alias": "useLocalTimeZone"; "required": false; "isSignal": true; }; "nullLabel": { "alias": "nullLabel"; "required": false; "isSignal": true; }; "notNullLabel": { "alias": "notNullLabel"; "required": false; "isSignal": true; }; }, { "filterChanged": "filterChanged"; }, never, never, true, never>;
|
|
@@ -4953,7 +4956,7 @@ declare const kitBuildFilterBooleanOptions: (trueLabelKey: string, falseLabelKey
|
|
|
4953
4956
|
declare const kitBuildOdataFilter: (filter?: KitCompositeFilterDescriptor, columns?: KitGridColumnConfig[]) => string;
|
|
4954
4957
|
declare const kitBuildFilters: (filters: KitFilterItem[]) => KitCompositeFilterDescriptor;
|
|
4955
4958
|
|
|
4956
|
-
declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
4959
|
+
declare class KitFilterCheckboxComponent implements OnInit, OnChanges, OnDestroy {
|
|
4957
4960
|
readonly translateService: TranslateService;
|
|
4958
4961
|
readonly filter: InputSignal<KitFilterItem>;
|
|
4959
4962
|
readonly translateKeyPrefix: InputSignal<string>;
|
|
@@ -4969,13 +4972,14 @@ declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
|
4969
4972
|
readonly searchTerm: WritableSignal<string>;
|
|
4970
4973
|
readonly selectedValues: WritableSignal<{
|
|
4971
4974
|
title: string;
|
|
4972
|
-
value:
|
|
4975
|
+
value: KitFilterListOptionValue;
|
|
4973
4976
|
}[]>;
|
|
4974
|
-
readonly groupedItems: Signal<KitFilterListOption<
|
|
4975
|
-
readonly visibleItems: Signal<KitFilterListOption<
|
|
4977
|
+
readonly groupedItems: Signal<KitFilterListOption<KitFilterListOptionValue[]>[]>;
|
|
4978
|
+
readonly visibleItems: Signal<KitFilterListOption<KitFilterListOptionValue[]>[]>;
|
|
4976
4979
|
readonly kitTooltipPosition: typeof KitTooltipPosition;
|
|
4977
4980
|
readonly kitPillTheme: typeof KitPillTheme;
|
|
4978
4981
|
readonly kitTextboxSize: typeof KitTextboxSize;
|
|
4982
|
+
private popupToggleRafId;
|
|
4979
4983
|
get isPopupOpen(): boolean;
|
|
4980
4984
|
get checkedItems(): KitFilterListOption[];
|
|
4981
4985
|
get displayedValues(): string[];
|
|
@@ -4983,6 +4987,7 @@ declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
|
4983
4987
|
constructor();
|
|
4984
4988
|
ngOnInit(): void;
|
|
4985
4989
|
ngOnChanges({ filter }: SimpleChanges): void;
|
|
4990
|
+
ngOnDestroy(): void;
|
|
4986
4991
|
removeFilter(): void;
|
|
4987
4992
|
clearAllFilters(): void;
|
|
4988
4993
|
applyFilter(): void;
|
|
@@ -4990,7 +4995,7 @@ declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
|
4990
4995
|
close(): void;
|
|
4991
4996
|
buildTranslateKey(value: string): string;
|
|
4992
4997
|
toggleAll(isChecked: boolean): void;
|
|
4993
|
-
onChange(isChecked: boolean, values:
|
|
4998
|
+
onChange(isChecked: boolean, values: KitFilterListOptionValue[]): void;
|
|
4994
4999
|
private buildFilterValue;
|
|
4995
5000
|
private buildIsNotNullFilter;
|
|
4996
5001
|
private buildNeqFilter;
|
|
@@ -5000,6 +5005,7 @@ declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
|
5000
5005
|
private itemsExcluding;
|
|
5001
5006
|
private itemsFromEqFilters;
|
|
5002
5007
|
private updateItemsState;
|
|
5008
|
+
private openPopupOnInit;
|
|
5003
5009
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitFilterCheckboxComponent, never>;
|
|
5004
5010
|
static ɵcmp: i0.ɵɵComponentDeclaration<KitFilterCheckboxComponent, "kit-filter-checkbox", never, { "filter": { "alias": "filter"; "required": true; "isSignal": true; }; "translateKeyPrefix": { "alias": "translateKeyPrefix"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "showPopupOnInit": { "alias": "showPopupOnInit"; "required": false; "isSignal": true; }; "guidField": { "alias": "guidField"; "required": false; "isSignal": true; }; }, { "items": "itemsChange"; "filterRemoved": "filterRemoved"; "filterChanged": "filterChanged"; }, never, never, true, never>;
|
|
5005
5011
|
}
|