@annalib/anna-core 1.2.6 → 1.2.9
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/esm2020/lib/anna-core-shared-lib/anna-core-shared-lib.module.mjs +11 -6
- package/esm2020/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +35 -0
- package/esm2020/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +27 -0
- package/esm2020/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/public-api.mjs +3 -2
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +18 -195
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +129 -289
- package/esm2020/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +5 -5
- package/esm2020/src/lib/anna-core-shared-lib/anna-core-shared-lib.module.mjs +11 -6
- package/esm2020/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +35 -0
- package/esm2020/src/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +27 -0
- package/esm2020/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +1 -1
- package/esm2020/src/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
- package/esm2020/src/lib/anna-core-shared-lib/public-api.mjs +3 -2
- package/esm2020/src/lib/anna-core-shared-lib/services/anna-filter.service.mjs +18 -195
- package/esm2020/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +129 -289
- package/esm2020/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +5 -5
- package/fesm2015/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +90 -235
- package/fesm2015/annalib-anna-core-src-lib-anna-core-shared-lib.mjs.map +1 -1
- package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +133 -293
- package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +1 -1
- package/fesm2015/annalib-anna-core.mjs +220 -525
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +90 -235
- package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs.map +1 -1
- package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs +133 -293
- package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +220 -525
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/anna-core-shared-lib.module.d.ts +4 -3
- package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +16 -0
- package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +9 -0
- package/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +4 -0
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -0
- package/lib/anna-core-shared-lib/public-api.d.ts +2 -1
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +4 -13
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +23 -9
- package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/anna-core-shared-lib/anna-core-shared-lib.module.d.ts +4 -3
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +16 -0
- package/src/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +9 -0
- package/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.d.ts +4 -0
- package/src/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -0
- package/src/lib/anna-core-shared-lib/public-api.d.ts +2 -1
- package/src/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +4 -13
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +23 -9
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +1 -1
- package/esm2020/lib/anna-core-shared-lib/directives/show-tooltip/show-tooltip.directive.mjs +0 -27
- package/esm2020/src/lib/anna-core-shared-lib/directives/show-tooltip/show-tooltip.directive.mjs +0 -27
- package/lib/anna-core-shared-lib/directives/show-tooltip/show-tooltip.directive.d.ts +0 -9
- package/src/lib/anna-core-shared-lib/directives/show-tooltip/show-tooltip.directive.d.ts +0 -9
|
@@ -6,10 +6,11 @@ import * as i4 from "./components/anna-live-icon-template/anna-live-icon-templat
|
|
|
6
6
|
import * as i5 from "./components/anna-notify-icon-template/anna-notify-icon-template.component";
|
|
7
7
|
import * as i6 from "./components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component";
|
|
8
8
|
import * as i7 from "./components/anna-rejected-icon-template/anna-rejected-icon-template.component";
|
|
9
|
-
import * as i8 from "./directives/show-
|
|
10
|
-
import * as i9 from "
|
|
9
|
+
import * as i8 from "./directives/show-ellipsis-text/show-ellipsis-text.directive";
|
|
10
|
+
import * as i9 from "./components/anna-icon-column/anna-icon-column.component";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
11
12
|
export declare class AnnaCoreSharedLibModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreSharedLibModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreSharedLibModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaBuyerApprovalIconTemplateComponent, typeof i4.AnnaLiveIconTemplateComponent, typeof i5.AnnaNotifyIconTemplateComponent, typeof i6.AnnaPayForPerformanceIconTemplateComponent, typeof i7.AnnaRejectedIconTemplateComponent, typeof i8.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreSharedLibModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaBuyerApprovalIconTemplateComponent, typeof i4.AnnaLiveIconTemplateComponent, typeof i5.AnnaNotifyIconTemplateComponent, typeof i6.AnnaPayForPerformanceIconTemplateComponent, typeof i7.AnnaRejectedIconTemplateComponent, typeof i8.showEllipsisTextOnHoverDirective, typeof i9.AnnaIconColumnComponent], [typeof i10.CommonModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaBuyerApprovalIconTemplateComponent, typeof i4.AnnaLiveIconTemplateComponent, typeof i5.AnnaNotifyIconTemplateComponent, typeof i6.AnnaPayForPerformanceIconTemplateComponent, typeof i7.AnnaRejectedIconTemplateComponent, typeof i8.showEllipsisTextOnHoverDirective, typeof i9.AnnaIconColumnComponent]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreSharedLibModule>;
|
|
15
16
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { GtColumnIconEmittedData } from '../../public-api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AnnaIconColumnComponent implements OnInit {
|
|
5
|
+
componentName: string;
|
|
6
|
+
objectKey: string;
|
|
7
|
+
dataObject: any;
|
|
8
|
+
PfpIconActiveColor: string;
|
|
9
|
+
PfpIconDisableColor: string;
|
|
10
|
+
onColumnIconClicked: EventEmitter<GtColumnIconEmittedData>;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
svgIconClicked(rowData: any, key: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaIconColumnComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaIconColumnComponent, "anna-core-anna-icon-column", never, { "componentName": "componentName"; "objectKey": "objectKey"; "dataObject": "dataObject"; }, { "onColumnIconClicked": "onColumnIconClicked"; }, never, never>;
|
|
16
|
+
}
|
package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class showEllipsisTextOnHoverDirective {
|
|
4
|
+
private elementRef;
|
|
5
|
+
constructor(elementRef: ElementRef);
|
|
6
|
+
onMouseEnter(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<showEllipsisTextOnHoverDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<showEllipsisTextOnHoverDirective, "[showEllipsisTextOnHover]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -18,6 +18,7 @@ export interface IHeaderInfo {
|
|
|
18
18
|
showTooltipIcon: boolean;
|
|
19
19
|
disableTooltipIcon?: boolean;
|
|
20
20
|
tooltip?: ITooltip;
|
|
21
|
+
joinedFilterSortObjectKeys?: string;
|
|
21
22
|
}
|
|
22
23
|
declare type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS";
|
|
23
24
|
declare type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
|
|
@@ -5,6 +5,7 @@ export * from "./components/anna-live-icon-template/anna-live-icon-template.comp
|
|
|
5
5
|
export * from "./components/anna-notify-icon-template/anna-notify-icon-template.component";
|
|
6
6
|
export * from "./components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component";
|
|
7
7
|
export * from "./components/anna-rejected-icon-template/anna-rejected-icon-template.component";
|
|
8
|
+
export * from "./components/anna-icon-column/anna-icon-column.component";
|
|
8
9
|
export * from "./services/anna-date-time-format.service";
|
|
9
10
|
export * from "./services/anna-global-config.service";
|
|
10
11
|
export * from "./services/anna-filter.service";
|
|
@@ -17,4 +18,4 @@ export * from "./models/anna-tooltip.model";
|
|
|
17
18
|
export * from "./models/anna-sort.model";
|
|
18
19
|
export * from "./constants/shared.constant";
|
|
19
20
|
export * from "./pipes/annaFilterSearchedText.pipe";
|
|
20
|
-
export * from "./directives/show-
|
|
21
|
+
export * from "./directives/show-ellipsis-text/show-ellipsis-text.directive";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Options } from '@angular-slider/ngx-slider';
|
|
2
2
|
import moment from "moment";
|
|
3
|
-
import {
|
|
4
|
-
import { SortType } from '../public-api';
|
|
3
|
+
import { SortType } from '../models/anna-sort.model';
|
|
5
4
|
import { AnnaDateTimeFormatService, NgbDateType } from './anna-date-time-format.service';
|
|
6
5
|
import { AnnaSortService } from './anna-sort.service';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
@@ -32,12 +31,12 @@ export declare class AnnaFilterService {
|
|
|
32
31
|
ngxSliderObj: Options;
|
|
33
32
|
sliderCurrencySet: Set<string>;
|
|
34
33
|
static bufferSize: number;
|
|
34
|
+
isFilterSortActive: any;
|
|
35
35
|
constructor(dateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService);
|
|
36
36
|
returnMaxAndMinValue(data: any[], key: string, isMin: boolean): any;
|
|
37
37
|
returnMinAndMaxDate(data: any[], key: string): moment.Moment[];
|
|
38
38
|
isTooltipActive(header: string[], sortMap: Map<string, SortType>): boolean;
|
|
39
39
|
clearColumnFilter(): void;
|
|
40
|
-
populateSliderTooltip(completeData: any[], filteredData: any[]): Options;
|
|
41
40
|
setOptionValues(minValue: number, maxValue: number): {
|
|
42
41
|
floor: number;
|
|
43
42
|
ceil: number;
|
|
@@ -47,17 +46,7 @@ export declare class AnnaFilterService {
|
|
|
47
46
|
percentTranslateFunction: (data: number) => string;
|
|
48
47
|
currencyTranslateFunction: (data: number) => string;
|
|
49
48
|
normalTranslateFunction: (data: number) => string;
|
|
50
|
-
populateTooltip(selectedColumnName: string, completeData: any[], filteredData: any[]): any;
|
|
51
|
-
populateTooltipDataBasedOnSelectedRadio(value: string[], originalData: any): any;
|
|
52
|
-
showHideFilterCheckbox(arr: any[], selectedColumnName: string): any;
|
|
53
|
-
isAllOptionsSelected(): AllSelectedStatus;
|
|
54
|
-
populateDatePickerTooltipWithData(completeData: any[], filteredData: any[]): moment.Moment[] | {
|
|
55
|
-
minStartDate: moment.Moment;
|
|
56
|
-
maxEndDate: moment.Moment;
|
|
57
|
-
};
|
|
58
49
|
findUniqueDatesWithData(data: any[]): NgbDateType[];
|
|
59
|
-
isCheckboxSelected(selectedData: any): AllSelectedStatus;
|
|
60
|
-
allOptionsClicked(status: number): void;
|
|
61
50
|
reOrderAppliedFiltersArray(isHierarchialUserFiltered: boolean, date?: any): void;
|
|
62
51
|
checkIfDataIsFiltered(isFiltered: boolean, isHierarchialUserFiltered: boolean, date?: any): boolean;
|
|
63
52
|
removeOrChangeLatestFilterIndex(isFiltered: boolean): void;
|
|
@@ -77,6 +66,8 @@ export declare class AnnaFilterService {
|
|
|
77
66
|
fromDate: moment.Moment;
|
|
78
67
|
toDate: moment.Moment;
|
|
79
68
|
}, key: string): boolean;
|
|
69
|
+
updateStateOfTheCurrentFilterTab(sortMap: Map<string, SortType>): void;
|
|
70
|
+
updateStateOfAllTheKeys(sortMap: Map<string, SortType>): void;
|
|
80
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFilterService, never>;
|
|
81
72
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaFilterService>;
|
|
82
73
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { OnInit, QueryList, EventEmitter, SimpleChanges, OnChanges, ChangeDetectorRef, ElementRef, AfterViewChecked } from '@angular/core';
|
|
2
|
+
import moment from "moment";
|
|
2
3
|
import { Options } from '@angular-slider/ngx-slider';
|
|
3
4
|
import { AnnaSortComponent } from '../anna-sort/anna-sort.component';
|
|
4
|
-
import { SellerGroupHierarchy, IWeekCalendar, TooltipModel, AnnaSortService, AnnaDateTimeFormatService, NgbDateType, AnnaFilterService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo, AnnaGenericTableService, SortType, IHeaderInfo, radioButtonModel } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
|
|
5
|
+
import { SellerGroupHierarchy, IWeekCalendar, TooltipModel, AnnaSortService, AnnaDateTimeFormatService, NgbDateType, AnnaFilterService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo, AnnaGenericTableService, SortType, IHeaderInfo, radioButtonModel, GtColumnIconEmittedData } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnChanges, AfterViewChecked {
|
|
7
8
|
private cdRef;
|
|
@@ -47,7 +48,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
47
48
|
toolTipdata: any;
|
|
48
49
|
tempTooltipData: any;
|
|
49
50
|
tooltipRadioTextMap: Map<any, any>;
|
|
50
|
-
|
|
51
|
+
filterTabObjects: any[];
|
|
51
52
|
tooltip: any;
|
|
52
53
|
clonedTooltipData: any;
|
|
53
54
|
clonedTooltipSelectedMapData: any;
|
|
@@ -93,12 +94,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
93
94
|
close: () => void;
|
|
94
95
|
};
|
|
95
96
|
sellerGroupHierarchy: SellerGroupHierarchy[];
|
|
96
|
-
|
|
97
|
+
showFilterTooltipTabs: boolean;
|
|
97
98
|
sortComponent: QueryList<AnnaSortComponent>;
|
|
98
99
|
isScrolledLeft: boolean;
|
|
99
100
|
rowBorderWidth: number;
|
|
100
|
-
PfpIconActiveColor: string;
|
|
101
|
-
PfpIconDisableColor: string;
|
|
102
101
|
showSortComponent: boolean;
|
|
103
102
|
showFilterComponent: boolean;
|
|
104
103
|
tempSortOrder: SortType;
|
|
@@ -140,12 +139,22 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
140
139
|
closeTooltip(): void;
|
|
141
140
|
isTooltipActive(header: any[]): boolean;
|
|
142
141
|
bindTheValueToToolTip(tooltip: any, header: IHeaderInfo): void;
|
|
142
|
+
checkIfUniqueValuePresentForTheHeader(header: IHeaderInfo, enabledHeaders: any[]): void;
|
|
143
143
|
openTooltip(tooltip: any, header: any, columnHeader: IHeaderInfo): void;
|
|
144
144
|
clearColumnFilter(): void;
|
|
145
|
-
populateTooltipDataBasedOnSelectedRadio(
|
|
145
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
146
|
+
createFilterTooltipData(header: string): void;
|
|
147
|
+
disableActiveFilterClearButton(): void;
|
|
146
148
|
getSliderData(header: string): void;
|
|
149
|
+
createOptionsForSlider(header: string): void;
|
|
150
|
+
setSelectedRangeForSlider(header: string): void;
|
|
147
151
|
getCheckboxData(header: string): void;
|
|
152
|
+
createListForCheckboxFilter(header: string): TooltipModel[];
|
|
153
|
+
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
148
154
|
getCalendarData(): void;
|
|
155
|
+
createRangeForTheDateFilter(): moment.Moment[];
|
|
156
|
+
createStartEndDateRange(optionData: any[]): moment.Moment[];
|
|
157
|
+
selectRangeForTheDateFilter(minMaxDate: any[], parsingFormat: string): void;
|
|
149
158
|
getTimeFilterData(header: string): void;
|
|
150
159
|
setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): void;
|
|
151
160
|
setTimeFilterDataForRatingPageComponent(header: string): void;
|
|
@@ -159,16 +168,19 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
159
168
|
disableSliderApplyBtn(): void;
|
|
160
169
|
sliderValueChange(): void;
|
|
161
170
|
cancelSliderFilter(): void;
|
|
162
|
-
allOptionClicked(): void;
|
|
163
171
|
applyFilters(): void;
|
|
172
|
+
applyListFilters(): void;
|
|
173
|
+
applySortingOnFilteredData(): void;
|
|
164
174
|
emitData(): void;
|
|
165
175
|
applySorting(key: string): void;
|
|
166
176
|
revert(): void;
|
|
167
177
|
closeCheckboxFilter(): void;
|
|
168
178
|
applySliderFilter(): void;
|
|
179
|
+
applySliderFilterOnData(): void;
|
|
169
180
|
cancelInDateFilter(): void;
|
|
170
181
|
updateSortMap(): void;
|
|
171
182
|
applyDateFilter(): void;
|
|
183
|
+
applyDateFilterOnData(): void;
|
|
172
184
|
applyWeekFilter(event: any): void;
|
|
173
185
|
incrementHour(arr: any[]): void;
|
|
174
186
|
decrementHour(arr: any[]): void;
|
|
@@ -179,6 +191,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
179
191
|
changeEndTimeMinute(increment: boolean): void;
|
|
180
192
|
changeStartTimeMinute(increment: boolean): void;
|
|
181
193
|
applyTimeFilters(): void;
|
|
194
|
+
applyTimeFilterOnData(): void;
|
|
182
195
|
closeTimeFilter(): void;
|
|
183
196
|
disableTimeFilterApplyButton(): void;
|
|
184
197
|
validateTimeFilterInput(): boolean;
|
|
@@ -191,7 +204,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
191
204
|
radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
|
|
192
205
|
bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: SellerGroupHierarchy[], tooltip: any): void;
|
|
193
206
|
iconClicked(rowData: any, iconClass: string): void;
|
|
194
|
-
svgIconClicked(
|
|
207
|
+
svgIconClicked(data: GtColumnIconEmittedData): void;
|
|
195
208
|
textActionClicked(rowData: any, id: number): void;
|
|
196
209
|
viewDetailsClicked(rowData: any): void;
|
|
197
210
|
setColumnSortStateMap(): void;
|
|
@@ -219,7 +232,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
219
232
|
checkIfSortingChanged(): boolean;
|
|
220
233
|
disableApplyButtonOfSelectedFilter(): void;
|
|
221
234
|
disableCheckboxFilterApplyButton(): void;
|
|
222
|
-
|
|
235
|
+
trackByTooltipModelId(index: number, item: TooltipModel): number;
|
|
236
|
+
setActiveStateObject(): void;
|
|
223
237
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
|
|
224
238
|
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "numberOfSkeletonRows": "numberOfSkeletonRows"; "numberOfSkeletonColumns": "numberOfSkeletonColumns"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; }, { "toggleCheckbox": "toggleCheckbox"; "toggleRowCheckbox": "toggleRowCheckbox"; "toggleHeaderCheckbox": "toggleHeaderCheckbox"; "undoIconClicked": "undoIconClicked"; "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "rowClicked": "rowClicked"; "radioButtonSelected": "radioButtonSelected"; "columnFilterOpened": "columnFilterOpened"; "columnFilterClosed": "columnFilterClosed"; "gtIconClicked": "gtIconClicked"; "gtSVGIconClicked": "gtSVGIconClicked"; "gtTextActionClicked": "gtTextActionClicked"; "gtViewDetailClicked": "gtViewDetailClicked"; }, never, never>;
|
|
225
239
|
}
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class AnnaSortComponent implements OnChanges {
|
|
5
5
|
private annaSortService;
|
|
6
6
|
sortObjectKey: string;
|
|
7
|
-
sortOptionClicked: EventEmitter<
|
|
7
|
+
sortOptionClicked: EventEmitter<SortType>;
|
|
8
8
|
sortOptions: SortOption[];
|
|
9
9
|
constructor(annaSortService: AnnaSortService);
|
|
10
10
|
ngOnChanges(changes: SimpleChanges): void;
|
package/package.json
CHANGED
|
@@ -6,10 +6,11 @@ import * as i4 from "./components/anna-live-icon-template/anna-live-icon-templat
|
|
|
6
6
|
import * as i5 from "./components/anna-notify-icon-template/anna-notify-icon-template.component";
|
|
7
7
|
import * as i6 from "./components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component";
|
|
8
8
|
import * as i7 from "./components/anna-rejected-icon-template/anna-rejected-icon-template.component";
|
|
9
|
-
import * as i8 from "./directives/show-
|
|
10
|
-
import * as i9 from "
|
|
9
|
+
import * as i8 from "./directives/show-ellipsis-text/show-ellipsis-text.directive";
|
|
10
|
+
import * as i9 from "./components/anna-icon-column/anna-icon-column.component";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
11
12
|
export declare class AnnaCoreSharedLibModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreSharedLibModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreSharedLibModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaBuyerApprovalIconTemplateComponent, typeof i4.AnnaLiveIconTemplateComponent, typeof i5.AnnaNotifyIconTemplateComponent, typeof i6.AnnaPayForPerformanceIconTemplateComponent, typeof i7.AnnaRejectedIconTemplateComponent, typeof i8.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreSharedLibModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaBuyerApprovalIconTemplateComponent, typeof i4.AnnaLiveIconTemplateComponent, typeof i5.AnnaNotifyIconTemplateComponent, typeof i6.AnnaPayForPerformanceIconTemplateComponent, typeof i7.AnnaRejectedIconTemplateComponent, typeof i8.showEllipsisTextOnHoverDirective, typeof i9.AnnaIconColumnComponent], [typeof i10.CommonModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaBuyerApprovalIconTemplateComponent, typeof i4.AnnaLiveIconTemplateComponent, typeof i5.AnnaNotifyIconTemplateComponent, typeof i6.AnnaPayForPerformanceIconTemplateComponent, typeof i7.AnnaRejectedIconTemplateComponent, typeof i8.showEllipsisTextOnHoverDirective, typeof i9.AnnaIconColumnComponent]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreSharedLibModule>;
|
|
15
16
|
}
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { GtColumnIconEmittedData } from '../../public-api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AnnaIconColumnComponent implements OnInit {
|
|
5
|
+
componentName: string;
|
|
6
|
+
objectKey: string;
|
|
7
|
+
dataObject: any;
|
|
8
|
+
PfpIconActiveColor: string;
|
|
9
|
+
PfpIconDisableColor: string;
|
|
10
|
+
onColumnIconClicked: EventEmitter<GtColumnIconEmittedData>;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
svgIconClicked(rowData: any, key: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaIconColumnComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaIconColumnComponent, "anna-core-anna-icon-column", never, { "componentName": "componentName"; "objectKey": "objectKey"; "dataObject": "dataObject"; }, { "onColumnIconClicked": "onColumnIconClicked"; }, never, never>;
|
|
16
|
+
}
|
package/src/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class showEllipsisTextOnHoverDirective {
|
|
4
|
+
private elementRef;
|
|
5
|
+
constructor(elementRef: ElementRef);
|
|
6
|
+
onMouseEnter(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<showEllipsisTextOnHoverDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<showEllipsisTextOnHoverDirective, "[showEllipsisTextOnHover]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -18,6 +18,7 @@ export interface IHeaderInfo {
|
|
|
18
18
|
showTooltipIcon: boolean;
|
|
19
19
|
disableTooltipIcon?: boolean;
|
|
20
20
|
tooltip?: ITooltip;
|
|
21
|
+
joinedFilterSortObjectKeys?: string;
|
|
21
22
|
}
|
|
22
23
|
declare type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS";
|
|
23
24
|
declare type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
|
|
@@ -5,6 +5,7 @@ export * from "./components/anna-live-icon-template/anna-live-icon-template.comp
|
|
|
5
5
|
export * from "./components/anna-notify-icon-template/anna-notify-icon-template.component";
|
|
6
6
|
export * from "./components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component";
|
|
7
7
|
export * from "./components/anna-rejected-icon-template/anna-rejected-icon-template.component";
|
|
8
|
+
export * from "./components/anna-icon-column/anna-icon-column.component";
|
|
8
9
|
export * from "./services/anna-date-time-format.service";
|
|
9
10
|
export * from "./services/anna-global-config.service";
|
|
10
11
|
export * from "./services/anna-filter.service";
|
|
@@ -17,4 +18,4 @@ export * from "./models/anna-tooltip.model";
|
|
|
17
18
|
export * from "./models/anna-sort.model";
|
|
18
19
|
export * from "./constants/shared.constant";
|
|
19
20
|
export * from "./pipes/annaFilterSearchedText.pipe";
|
|
20
|
-
export * from "./directives/show-
|
|
21
|
+
export * from "./directives/show-ellipsis-text/show-ellipsis-text.directive";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Options } from '@angular-slider/ngx-slider';
|
|
2
2
|
import moment from "moment";
|
|
3
|
-
import {
|
|
4
|
-
import { SortType } from '../public-api';
|
|
3
|
+
import { SortType } from '../models/anna-sort.model';
|
|
5
4
|
import { AnnaDateTimeFormatService, NgbDateType } from './anna-date-time-format.service';
|
|
6
5
|
import { AnnaSortService } from './anna-sort.service';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
@@ -32,12 +31,12 @@ export declare class AnnaFilterService {
|
|
|
32
31
|
ngxSliderObj: Options;
|
|
33
32
|
sliderCurrencySet: Set<string>;
|
|
34
33
|
static bufferSize: number;
|
|
34
|
+
isFilterSortActive: any;
|
|
35
35
|
constructor(dateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService);
|
|
36
36
|
returnMaxAndMinValue(data: any[], key: string, isMin: boolean): any;
|
|
37
37
|
returnMinAndMaxDate(data: any[], key: string): moment.Moment[];
|
|
38
38
|
isTooltipActive(header: string[], sortMap: Map<string, SortType>): boolean;
|
|
39
39
|
clearColumnFilter(): void;
|
|
40
|
-
populateSliderTooltip(completeData: any[], filteredData: any[]): Options;
|
|
41
40
|
setOptionValues(minValue: number, maxValue: number): {
|
|
42
41
|
floor: number;
|
|
43
42
|
ceil: number;
|
|
@@ -47,17 +46,7 @@ export declare class AnnaFilterService {
|
|
|
47
46
|
percentTranslateFunction: (data: number) => string;
|
|
48
47
|
currencyTranslateFunction: (data: number) => string;
|
|
49
48
|
normalTranslateFunction: (data: number) => string;
|
|
50
|
-
populateTooltip(selectedColumnName: string, completeData: any[], filteredData: any[]): any;
|
|
51
|
-
populateTooltipDataBasedOnSelectedRadio(value: string[], originalData: any): any;
|
|
52
|
-
showHideFilterCheckbox(arr: any[], selectedColumnName: string): any;
|
|
53
|
-
isAllOptionsSelected(): AllSelectedStatus;
|
|
54
|
-
populateDatePickerTooltipWithData(completeData: any[], filteredData: any[]): moment.Moment[] | {
|
|
55
|
-
minStartDate: moment.Moment;
|
|
56
|
-
maxEndDate: moment.Moment;
|
|
57
|
-
};
|
|
58
49
|
findUniqueDatesWithData(data: any[]): NgbDateType[];
|
|
59
|
-
isCheckboxSelected(selectedData: any): AllSelectedStatus;
|
|
60
|
-
allOptionsClicked(status: number): void;
|
|
61
50
|
reOrderAppliedFiltersArray(isHierarchialUserFiltered: boolean, date?: any): void;
|
|
62
51
|
checkIfDataIsFiltered(isFiltered: boolean, isHierarchialUserFiltered: boolean, date?: any): boolean;
|
|
63
52
|
removeOrChangeLatestFilterIndex(isFiltered: boolean): void;
|
|
@@ -77,6 +66,8 @@ export declare class AnnaFilterService {
|
|
|
77
66
|
fromDate: moment.Moment;
|
|
78
67
|
toDate: moment.Moment;
|
|
79
68
|
}, key: string): boolean;
|
|
69
|
+
updateStateOfTheCurrentFilterTab(sortMap: Map<string, SortType>): void;
|
|
70
|
+
updateStateOfAllTheKeys(sortMap: Map<string, SortType>): void;
|
|
80
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFilterService, never>;
|
|
81
72
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaFilterService>;
|
|
82
73
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { OnInit, QueryList, EventEmitter, SimpleChanges, OnChanges, ChangeDetectorRef, ElementRef, AfterViewChecked } from '@angular/core';
|
|
2
|
+
import moment from "moment";
|
|
2
3
|
import { Options } from '@angular-slider/ngx-slider';
|
|
3
4
|
import { AnnaSortComponent } from '../anna-sort/anna-sort.component';
|
|
4
|
-
import { SellerGroupHierarchy, IWeekCalendar, TooltipModel, AnnaSortService, AnnaDateTimeFormatService, NgbDateType, AnnaFilterService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo, AnnaGenericTableService, SortType, IHeaderInfo, radioButtonModel } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
|
|
5
|
+
import { SellerGroupHierarchy, IWeekCalendar, TooltipModel, AnnaSortService, AnnaDateTimeFormatService, NgbDateType, AnnaFilterService, IGtGeneralConfig, IGtTableHeader, ITotalRowInfo, AnnaGenericTableService, SortType, IHeaderInfo, radioButtonModel, GtColumnIconEmittedData } from "@annalib/anna-core/src/lib/anna-core-shared-lib";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnChanges, AfterViewChecked {
|
|
7
8
|
private cdRef;
|
|
@@ -47,7 +48,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
47
48
|
toolTipdata: any;
|
|
48
49
|
tempTooltipData: any;
|
|
49
50
|
tooltipRadioTextMap: Map<any, any>;
|
|
50
|
-
|
|
51
|
+
filterTabObjects: any[];
|
|
51
52
|
tooltip: any;
|
|
52
53
|
clonedTooltipData: any;
|
|
53
54
|
clonedTooltipSelectedMapData: any;
|
|
@@ -93,12 +94,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
93
94
|
close: () => void;
|
|
94
95
|
};
|
|
95
96
|
sellerGroupHierarchy: SellerGroupHierarchy[];
|
|
96
|
-
|
|
97
|
+
showFilterTooltipTabs: boolean;
|
|
97
98
|
sortComponent: QueryList<AnnaSortComponent>;
|
|
98
99
|
isScrolledLeft: boolean;
|
|
99
100
|
rowBorderWidth: number;
|
|
100
|
-
PfpIconActiveColor: string;
|
|
101
|
-
PfpIconDisableColor: string;
|
|
102
101
|
showSortComponent: boolean;
|
|
103
102
|
showFilterComponent: boolean;
|
|
104
103
|
tempSortOrder: SortType;
|
|
@@ -140,12 +139,22 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
140
139
|
closeTooltip(): void;
|
|
141
140
|
isTooltipActive(header: any[]): boolean;
|
|
142
141
|
bindTheValueToToolTip(tooltip: any, header: IHeaderInfo): void;
|
|
142
|
+
checkIfUniqueValuePresentForTheHeader(header: IHeaderInfo, enabledHeaders: any[]): void;
|
|
143
143
|
openTooltip(tooltip: any, header: any, columnHeader: IHeaderInfo): void;
|
|
144
144
|
clearColumnFilter(): void;
|
|
145
|
-
populateTooltipDataBasedOnSelectedRadio(
|
|
145
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
146
|
+
createFilterTooltipData(header: string): void;
|
|
147
|
+
disableActiveFilterClearButton(): void;
|
|
146
148
|
getSliderData(header: string): void;
|
|
149
|
+
createOptionsForSlider(header: string): void;
|
|
150
|
+
setSelectedRangeForSlider(header: string): void;
|
|
147
151
|
getCheckboxData(header: string): void;
|
|
152
|
+
createListForCheckboxFilter(header: string): TooltipModel[];
|
|
153
|
+
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
148
154
|
getCalendarData(): void;
|
|
155
|
+
createRangeForTheDateFilter(): moment.Moment[];
|
|
156
|
+
createStartEndDateRange(optionData: any[]): moment.Moment[];
|
|
157
|
+
selectRangeForTheDateFilter(minMaxDate: any[], parsingFormat: string): void;
|
|
149
158
|
getTimeFilterData(header: string): void;
|
|
150
159
|
setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): void;
|
|
151
160
|
setTimeFilterDataForRatingPageComponent(header: string): void;
|
|
@@ -159,16 +168,19 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
159
168
|
disableSliderApplyBtn(): void;
|
|
160
169
|
sliderValueChange(): void;
|
|
161
170
|
cancelSliderFilter(): void;
|
|
162
|
-
allOptionClicked(): void;
|
|
163
171
|
applyFilters(): void;
|
|
172
|
+
applyListFilters(): void;
|
|
173
|
+
applySortingOnFilteredData(): void;
|
|
164
174
|
emitData(): void;
|
|
165
175
|
applySorting(key: string): void;
|
|
166
176
|
revert(): void;
|
|
167
177
|
closeCheckboxFilter(): void;
|
|
168
178
|
applySliderFilter(): void;
|
|
179
|
+
applySliderFilterOnData(): void;
|
|
169
180
|
cancelInDateFilter(): void;
|
|
170
181
|
updateSortMap(): void;
|
|
171
182
|
applyDateFilter(): void;
|
|
183
|
+
applyDateFilterOnData(): void;
|
|
172
184
|
applyWeekFilter(event: any): void;
|
|
173
185
|
incrementHour(arr: any[]): void;
|
|
174
186
|
decrementHour(arr: any[]): void;
|
|
@@ -179,6 +191,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
179
191
|
changeEndTimeMinute(increment: boolean): void;
|
|
180
192
|
changeStartTimeMinute(increment: boolean): void;
|
|
181
193
|
applyTimeFilters(): void;
|
|
194
|
+
applyTimeFilterOnData(): void;
|
|
182
195
|
closeTimeFilter(): void;
|
|
183
196
|
disableTimeFilterApplyButton(): void;
|
|
184
197
|
validateTimeFilterInput(): boolean;
|
|
@@ -191,7 +204,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
191
204
|
radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
|
|
192
205
|
bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: SellerGroupHierarchy[], tooltip: any): void;
|
|
193
206
|
iconClicked(rowData: any, iconClass: string): void;
|
|
194
|
-
svgIconClicked(
|
|
207
|
+
svgIconClicked(data: GtColumnIconEmittedData): void;
|
|
195
208
|
textActionClicked(rowData: any, id: number): void;
|
|
196
209
|
viewDetailsClicked(rowData: any): void;
|
|
197
210
|
setColumnSortStateMap(): void;
|
|
@@ -219,7 +232,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
219
232
|
checkIfSortingChanged(): boolean;
|
|
220
233
|
disableApplyButtonOfSelectedFilter(): void;
|
|
221
234
|
disableCheckboxFilterApplyButton(): void;
|
|
222
|
-
|
|
235
|
+
trackByTooltipModelId(index: number, item: TooltipModel): number;
|
|
236
|
+
setActiveStateObject(): void;
|
|
223
237
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
|
|
224
238
|
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaNonEditableGenericTableComponent, "anna-core-non-editable-generic-table-lib", never, { "showSkeletonLoading": "showSkeletonLoading"; "tableHeaders": "tableHeaders"; "tableData": "tableData"; "clonedTableData": "clonedTableData"; "numberOfSkeletonRows": "numberOfSkeletonRows"; "numberOfSkeletonColumns": "numberOfSkeletonColumns"; "gtGeneralConfig": "gtGeneralConfig"; "totalRowInfo": "totalRowInfo"; "gtDimension": "gtDimension"; "tableClass": "tableClass"; "maximumRowsWhichCanBeRenderedWithoutScroll": "maximumRowsWhichCanBeRenderedWithoutScroll"; }, { "toggleCheckbox": "toggleCheckbox"; "toggleRowCheckbox": "toggleRowCheckbox"; "toggleHeaderCheckbox": "toggleHeaderCheckbox"; "undoIconClicked": "undoIconClicked"; "filterAppliedToTable": "filterAppliedToTable"; "sortingAppliedToTable": "sortingAppliedToTable"; "rowClicked": "rowClicked"; "radioButtonSelected": "radioButtonSelected"; "columnFilterOpened": "columnFilterOpened"; "columnFilterClosed": "columnFilterClosed"; "gtIconClicked": "gtIconClicked"; "gtSVGIconClicked": "gtSVGIconClicked"; "gtTextActionClicked": "gtTextActionClicked"; "gtViewDetailClicked": "gtViewDetailClicked"; }, never, never>;
|
|
225
239
|
}
|
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class AnnaSortComponent implements OnChanges {
|
|
5
5
|
private annaSortService;
|
|
6
6
|
sortObjectKey: string;
|
|
7
|
-
sortOptionClicked: EventEmitter<
|
|
7
|
+
sortOptionClicked: EventEmitter<SortType>;
|
|
8
8
|
sortOptions: SortOption[];
|
|
9
9
|
constructor(annaSortService: AnnaSortService);
|
|
10
10
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, HostListener } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class ShowTooltipDirective {
|
|
4
|
-
constructor(elementRef) {
|
|
5
|
-
this.elementRef = elementRef;
|
|
6
|
-
}
|
|
7
|
-
onMouseEnter() {
|
|
8
|
-
const element = this.elementRef.nativeElement;
|
|
9
|
-
if (element.offsetWidth < element.scrollWidth) {
|
|
10
|
-
element.title = element.textContent;
|
|
11
|
-
}
|
|
12
|
-
else if (element.title)
|
|
13
|
-
element.removeAttribute('title');
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
ShowTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ShowTooltipDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
-
ShowTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ShowTooltipDirective, selector: "[showTooltip]", host: { listeners: { "mouseenter": "onMouseEnter()" } }, ngImport: i0 });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ShowTooltipDirective, decorators: [{
|
|
19
|
-
type: Directive,
|
|
20
|
-
args: [{
|
|
21
|
-
selector: '[showTooltip]'
|
|
22
|
-
}]
|
|
23
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onMouseEnter: [{
|
|
24
|
-
type: HostListener,
|
|
25
|
-
args: ['mouseenter']
|
|
26
|
-
}] } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvdy10b29sdGlwLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FubmEtY29yZS9zcmMvbGliL2FubmEtY29yZS1zaGFyZWQtbGliL2RpcmVjdGl2ZXMvc2hvdy10b29sdGlwL3Nob3ctdG9vbHRpcC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU1wRSxNQUFNLE9BQU8sb0JBQW9CO0lBRS9CLFlBQW9CLFVBQXNCO1FBQXRCLGVBQVUsR0FBVixVQUFVLENBQVk7SUFBRyxDQUFDO0lBRzlDLFlBQVk7UUFDUixNQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLGFBQWEsQ0FBQztRQUM5QyxJQUFJLE9BQU8sQ0FBQyxXQUFXLEdBQUcsT0FBTyxDQUFDLFdBQVcsRUFBRTtZQUM3QyxPQUFPLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxXQUFXLENBQUM7U0FDckM7YUFDSSxJQUFJLE9BQU8sQ0FBQyxLQUFLO1lBQUUsT0FBTyxDQUFDLGVBQWUsQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUM3RCxDQUFDOztpSEFYVSxvQkFBb0I7cUdBQXBCLG9CQUFvQjsyRkFBcEIsb0JBQW9CO2tCQUpoQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxlQUFlO2lCQUMxQjtpR0FPQyxZQUFZO3NCQURYLFlBQVk7dUJBQUMsWUFBWSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSwgRWxlbWVudFJlZiwgSG9zdExpc3RlbmVyIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5ARGlyZWN0aXZlKHtcclxuICBzZWxlY3RvcjogJ1tzaG93VG9vbHRpcF0nXHJcbn0pXHJcblxyXG5leHBvcnQgY2xhc3MgU2hvd1Rvb2x0aXBEaXJlY3RpdmUge1xyXG5cclxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIGVsZW1lbnRSZWY6IEVsZW1lbnRSZWYpIHt9XHJcblxyXG4gIEBIb3N0TGlzdGVuZXIoJ21vdXNlZW50ZXInKVxyXG4gIG9uTW91c2VFbnRlcigpOiB2b2lkIHtcclxuICAgICAgY29uc3QgZWxlbWVudCA9IHRoaXMuZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50O1xyXG4gICAgICBpZiAoZWxlbWVudC5vZmZzZXRXaWR0aCA8IGVsZW1lbnQuc2Nyb2xsV2lkdGgpIHtcclxuICAgICAgICBlbGVtZW50LnRpdGxlID0gZWxlbWVudC50ZXh0Q29udGVudDtcclxuICAgICAgfVxyXG4gICAgICBlbHNlIGlmIChlbGVtZW50LnRpdGxlKSBlbGVtZW50LnJlbW92ZUF0dHJpYnV0ZSgndGl0bGUnKTsgXHJcbiAgfVxyXG59Il19
|
package/esm2020/src/lib/anna-core-shared-lib/directives/show-tooltip/show-tooltip.directive.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, HostListener } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class ShowTooltipDirective {
|
|
4
|
-
constructor(elementRef) {
|
|
5
|
-
this.elementRef = elementRef;
|
|
6
|
-
}
|
|
7
|
-
onMouseEnter() {
|
|
8
|
-
const element = this.elementRef.nativeElement;
|
|
9
|
-
if (element.offsetWidth < element.scrollWidth) {
|
|
10
|
-
element.title = element.textContent;
|
|
11
|
-
}
|
|
12
|
-
else if (element.title)
|
|
13
|
-
element.removeAttribute('title');
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
ShowTooltipDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ShowTooltipDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
-
ShowTooltipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ShowTooltipDirective, selector: "[showTooltip]", host: { listeners: { "mouseenter": "onMouseEnter()" } }, ngImport: i0 });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ShowTooltipDirective, decorators: [{
|
|
19
|
-
type: Directive,
|
|
20
|
-
args: [{
|
|
21
|
-
selector: '[showTooltip]'
|
|
22
|
-
}]
|
|
23
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onMouseEnter: [{
|
|
24
|
-
type: HostListener,
|
|
25
|
-
args: ['mouseenter']
|
|
26
|
-
}] } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvdy10b29sdGlwLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FubmEtY29yZS9zcmMvbGliL2FubmEtY29yZS1zaGFyZWQtbGliL2RpcmVjdGl2ZXMvc2hvdy10b29sdGlwL3Nob3ctdG9vbHRpcC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQU1wRSxNQUFNLE9BQU8sb0JBQW9CO0lBRS9CLFlBQW9CLFVBQXNCO1FBQXRCLGVBQVUsR0FBVixVQUFVLENBQVk7SUFBRyxDQUFDO0lBRzlDLFlBQVk7UUFDUixNQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLGFBQWEsQ0FBQztRQUM5QyxJQUFJLE9BQU8sQ0FBQyxXQUFXLEdBQUcsT0FBTyxDQUFDLFdBQVcsRUFBRTtZQUM3QyxPQUFPLENBQUMsS0FBSyxHQUFHLE9BQU8sQ0FBQyxXQUFXLENBQUM7U0FDckM7YUFDSSxJQUFJLE9BQU8sQ0FBQyxLQUFLO1lBQUUsT0FBTyxDQUFDLGVBQWUsQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUM3RCxDQUFDOztpSEFYVSxvQkFBb0I7cUdBQXBCLG9CQUFvQjsyRkFBcEIsb0JBQW9CO2tCQUpoQyxTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxlQUFlO2lCQUMxQjtpR0FPQyxZQUFZO3NCQURYLFlBQVk7dUJBQUMsWUFBWSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSwgRWxlbWVudFJlZiwgSG9zdExpc3RlbmVyIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5ARGlyZWN0aXZlKHtcclxuICBzZWxlY3RvcjogJ1tzaG93VG9vbHRpcF0nXHJcbn0pXHJcblxyXG5leHBvcnQgY2xhc3MgU2hvd1Rvb2x0aXBEaXJlY3RpdmUge1xyXG5cclxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIGVsZW1lbnRSZWY6IEVsZW1lbnRSZWYpIHt9XHJcblxyXG4gIEBIb3N0TGlzdGVuZXIoJ21vdXNlZW50ZXInKVxyXG4gIG9uTW91c2VFbnRlcigpOiB2b2lkIHtcclxuICAgICAgY29uc3QgZWxlbWVudCA9IHRoaXMuZWxlbWVudFJlZi5uYXRpdmVFbGVtZW50O1xyXG4gICAgICBpZiAoZWxlbWVudC5vZmZzZXRXaWR0aCA8IGVsZW1lbnQuc2Nyb2xsV2lkdGgpIHtcclxuICAgICAgICBlbGVtZW50LnRpdGxlID0gZWxlbWVudC50ZXh0Q29udGVudDtcclxuICAgICAgfVxyXG4gICAgICBlbHNlIGlmIChlbGVtZW50LnRpdGxlKSBlbGVtZW50LnJlbW92ZUF0dHJpYnV0ZSgndGl0bGUnKTsgXHJcbiAgfVxyXG59Il19
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ShowTooltipDirective {
|
|
4
|
-
private elementRef;
|
|
5
|
-
constructor(elementRef: ElementRef);
|
|
6
|
-
onMouseEnter(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShowTooltipDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ShowTooltipDirective, "[showTooltip]", never, {}, {}, never>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ShowTooltipDirective {
|
|
4
|
-
private elementRef;
|
|
5
|
-
constructor(elementRef: ElementRef);
|
|
6
|
-
onMouseEnter(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShowTooltipDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ShowTooltipDirective, "[showTooltip]", never, {}, {}, never>;
|
|
9
|
-
}
|