@indigina/ui-kit 1.1.593 → 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;
|
|
@@ -4952,7 +4956,7 @@ declare const kitBuildFilterBooleanOptions: (trueLabelKey: string, falseLabelKey
|
|
|
4952
4956
|
declare const kitBuildOdataFilter: (filter?: KitCompositeFilterDescriptor, columns?: KitGridColumnConfig[]) => string;
|
|
4953
4957
|
declare const kitBuildFilters: (filters: KitFilterItem[]) => KitCompositeFilterDescriptor;
|
|
4954
4958
|
|
|
4955
|
-
declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
4959
|
+
declare class KitFilterCheckboxComponent implements OnInit, OnChanges, OnDestroy {
|
|
4956
4960
|
readonly translateService: TranslateService;
|
|
4957
4961
|
readonly filter: InputSignal<KitFilterItem>;
|
|
4958
4962
|
readonly translateKeyPrefix: InputSignal<string>;
|
|
@@ -4968,13 +4972,14 @@ declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
|
4968
4972
|
readonly searchTerm: WritableSignal<string>;
|
|
4969
4973
|
readonly selectedValues: WritableSignal<{
|
|
4970
4974
|
title: string;
|
|
4971
|
-
value:
|
|
4975
|
+
value: KitFilterListOptionValue;
|
|
4972
4976
|
}[]>;
|
|
4973
|
-
readonly groupedItems: Signal<KitFilterListOption<
|
|
4974
|
-
readonly visibleItems: Signal<KitFilterListOption<
|
|
4977
|
+
readonly groupedItems: Signal<KitFilterListOption<KitFilterListOptionValue[]>[]>;
|
|
4978
|
+
readonly visibleItems: Signal<KitFilterListOption<KitFilterListOptionValue[]>[]>;
|
|
4975
4979
|
readonly kitTooltipPosition: typeof KitTooltipPosition;
|
|
4976
4980
|
readonly kitPillTheme: typeof KitPillTheme;
|
|
4977
4981
|
readonly kitTextboxSize: typeof KitTextboxSize;
|
|
4982
|
+
private popupToggleRafId;
|
|
4978
4983
|
get isPopupOpen(): boolean;
|
|
4979
4984
|
get checkedItems(): KitFilterListOption[];
|
|
4980
4985
|
get displayedValues(): string[];
|
|
@@ -4982,6 +4987,7 @@ declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
|
4982
4987
|
constructor();
|
|
4983
4988
|
ngOnInit(): void;
|
|
4984
4989
|
ngOnChanges({ filter }: SimpleChanges): void;
|
|
4990
|
+
ngOnDestroy(): void;
|
|
4985
4991
|
removeFilter(): void;
|
|
4986
4992
|
clearAllFilters(): void;
|
|
4987
4993
|
applyFilter(): void;
|
|
@@ -4989,7 +4995,7 @@ declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
|
4989
4995
|
close(): void;
|
|
4990
4996
|
buildTranslateKey(value: string): string;
|
|
4991
4997
|
toggleAll(isChecked: boolean): void;
|
|
4992
|
-
onChange(isChecked: boolean, values:
|
|
4998
|
+
onChange(isChecked: boolean, values: KitFilterListOptionValue[]): void;
|
|
4993
4999
|
private buildFilterValue;
|
|
4994
5000
|
private buildIsNotNullFilter;
|
|
4995
5001
|
private buildNeqFilter;
|
|
@@ -4999,6 +5005,7 @@ declare class KitFilterCheckboxComponent implements OnInit, OnChanges {
|
|
|
4999
5005
|
private itemsExcluding;
|
|
5000
5006
|
private itemsFromEqFilters;
|
|
5001
5007
|
private updateItemsState;
|
|
5008
|
+
private openPopupOnInit;
|
|
5002
5009
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitFilterCheckboxComponent, never>;
|
|
5003
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>;
|
|
5004
5011
|
}
|