@annalib/anna-core 1.2.5 → 1.2.8
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-non-editable-gt-models.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +2 -2
- 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 -9
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +168 -259
- 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-non-editable-gt-models.mjs +1 -1
- package/esm2020/src/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +2 -2
- 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 -9
- package/esm2020/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +168 -259
- 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 +60 -20
- 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 +172 -263
- package/fesm2015/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +1 -1
- package/fesm2015/annalib-anna-core.mjs +230 -281
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core-src-lib-anna-core-shared-lib.mjs +60 -20
- 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 +172 -263
- package/fesm2020/annalib-anna-core-src-lib-anna-generic-table-lib.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +230 -281
- 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 +15 -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-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 -1
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +24 -7
- 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 +15 -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-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 -1
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +24 -7
- 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,15 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnnaIconColumnComponent implements OnInit {
|
|
4
|
+
componentName: string;
|
|
5
|
+
objectKey: string;
|
|
6
|
+
dataObject: any;
|
|
7
|
+
PfpIconActiveColor: string;
|
|
8
|
+
PfpIconDisableColor: string;
|
|
9
|
+
pfpIconClicked: EventEmitter<any>;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
svgIconClicked(rowData: any, key: string): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaIconColumnComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaIconColumnComponent, "anna-core-anna-icon-column", never, { "componentName": "componentName"; "objectKey": "objectKey"; "dataObject": "dataObject"; }, { "pfpIconClicked": "pfpIconClicked"; }, never, never>;
|
|
15
|
+
}
|
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,7 @@
|
|
|
1
1
|
import { Options } from '@angular-slider/ngx-slider';
|
|
2
2
|
import moment from "moment";
|
|
3
|
+
import { SortType } from '../models/anna-sort.model';
|
|
3
4
|
import { AllSelectedStatus } from "../models/anna-tooltip.model";
|
|
4
|
-
import { SortType } from '../public-api';
|
|
5
5
|
import { AnnaDateTimeFormatService, NgbDateType } from './anna-date-time-format.service';
|
|
6
6
|
import { AnnaSortService } from './anna-sort.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -32,6 +32,7 @@ export declare class AnnaFilterService {
|
|
|
32
32
|
ngxSliderObj: Options;
|
|
33
33
|
sliderCurrencySet: Set<string>;
|
|
34
34
|
static bufferSize: number;
|
|
35
|
+
isFilterSortActive: any;
|
|
35
36
|
constructor(dateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService);
|
|
36
37
|
returnMaxAndMinValue(data: any[], key: string, isMin: boolean): any;
|
|
37
38
|
returnMinAndMaxDate(data: any[], key: string): moment.Moment[];
|
|
@@ -77,6 +78,8 @@ export declare class AnnaFilterService {
|
|
|
77
78
|
fromDate: moment.Moment;
|
|
78
79
|
toDate: moment.Moment;
|
|
79
80
|
}, key: string): boolean;
|
|
81
|
+
updateStateOfTheCurrentFilterTab(sortMap: Map<string, SortType>): void;
|
|
82
|
+
updateStateOfAllTheKeys(sortMap: Map<string, SortType>): void;
|
|
80
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFilterService, never>;
|
|
81
84
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaFilterService>;
|
|
82
85
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
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
5
|
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";
|
|
@@ -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;
|
|
@@ -67,6 +68,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
67
68
|
max: number;
|
|
68
69
|
};
|
|
69
70
|
sliderFilterTextBoxStep: string;
|
|
71
|
+
sliderEnteredMinValue: number;
|
|
72
|
+
sliderEnteredMaxValue: number;
|
|
70
73
|
calendarMinEnabledDate: NgbDateType;
|
|
71
74
|
calendarMaxEnabledDate: NgbDateType;
|
|
72
75
|
selectedMinDate: NgbDateType;
|
|
@@ -91,12 +94,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
91
94
|
close: () => void;
|
|
92
95
|
};
|
|
93
96
|
sellerGroupHierarchy: SellerGroupHierarchy[];
|
|
94
|
-
|
|
97
|
+
showFilterTooltipTabs: boolean;
|
|
95
98
|
sortComponent: QueryList<AnnaSortComponent>;
|
|
96
99
|
isScrolledLeft: boolean;
|
|
97
100
|
rowBorderWidth: number;
|
|
98
|
-
PfpIconActiveColor: string;
|
|
99
|
-
PfpIconDisableColor: string;
|
|
100
101
|
showSortComponent: boolean;
|
|
101
102
|
showFilterComponent: boolean;
|
|
102
103
|
tempSortOrder: SortType;
|
|
@@ -138,12 +139,22 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
138
139
|
closeTooltip(): void;
|
|
139
140
|
isTooltipActive(header: any[]): boolean;
|
|
140
141
|
bindTheValueToToolTip(tooltip: any, header: IHeaderInfo): void;
|
|
142
|
+
checkIfUniqueValuePresentForTheHeader(header: IHeaderInfo, enabledHeaders: any[]): void;
|
|
141
143
|
openTooltip(tooltip: any, header: any, columnHeader: IHeaderInfo): void;
|
|
142
144
|
clearColumnFilter(): void;
|
|
143
|
-
populateTooltipDataBasedOnSelectedRadio(
|
|
145
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
146
|
+
createFilterTooltipData(header: string): void;
|
|
147
|
+
disableActiveFilterClearButton(): void;
|
|
144
148
|
getSliderData(header: string): void;
|
|
149
|
+
createOptionsForSlider(header: string): void;
|
|
150
|
+
setSelectedRangeForSlider(header: string): void;
|
|
145
151
|
getCheckboxData(header: string): void;
|
|
152
|
+
createListForCheckboxFilter(header: string): TooltipModel[];
|
|
153
|
+
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
146
154
|
getCalendarData(): void;
|
|
155
|
+
createRangeForTheDateFilter(): moment.Moment[];
|
|
156
|
+
createStartEndDateRange(optionData: any[]): moment.Moment[];
|
|
157
|
+
selectRangeForTheDateFilter(minMaxDate: any[], parsingFormat: string): void;
|
|
147
158
|
getTimeFilterData(header: string): void;
|
|
148
159
|
setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): void;
|
|
149
160
|
setTimeFilterDataForRatingPageComponent(header: string): void;
|
|
@@ -159,14 +170,18 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
159
170
|
cancelSliderFilter(): void;
|
|
160
171
|
allOptionClicked(): void;
|
|
161
172
|
applyFilters(): void;
|
|
173
|
+
applyListFilters(): void;
|
|
174
|
+
applySortingOnFilteredData(): void;
|
|
162
175
|
emitData(): void;
|
|
163
176
|
applySorting(key: string): void;
|
|
164
177
|
revert(): void;
|
|
165
178
|
closeCheckboxFilter(): void;
|
|
166
179
|
applySliderFilter(): void;
|
|
180
|
+
applySliderFilterOnData(): void;
|
|
167
181
|
cancelInDateFilter(): void;
|
|
168
182
|
updateSortMap(): void;
|
|
169
183
|
applyDateFilter(): void;
|
|
184
|
+
applyDateFilterOnData(): void;
|
|
170
185
|
applyWeekFilter(event: any): void;
|
|
171
186
|
incrementHour(arr: any[]): void;
|
|
172
187
|
decrementHour(arr: any[]): void;
|
|
@@ -177,6 +192,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
177
192
|
changeEndTimeMinute(increment: boolean): void;
|
|
178
193
|
changeStartTimeMinute(increment: boolean): void;
|
|
179
194
|
applyTimeFilters(): void;
|
|
195
|
+
applyTimeFilterOnData(): void;
|
|
180
196
|
closeTimeFilter(): void;
|
|
181
197
|
disableTimeFilterApplyButton(): void;
|
|
182
198
|
validateTimeFilterInput(): boolean;
|
|
@@ -189,7 +205,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
189
205
|
radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
|
|
190
206
|
bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: SellerGroupHierarchy[], tooltip: any): void;
|
|
191
207
|
iconClicked(rowData: any, iconClass: string): void;
|
|
192
|
-
svgIconClicked(
|
|
208
|
+
svgIconClicked(data: any): void;
|
|
193
209
|
textActionClicked(rowData: any, id: number): void;
|
|
194
210
|
viewDetailsClicked(rowData: any): void;
|
|
195
211
|
setColumnSortStateMap(): void;
|
|
@@ -217,7 +233,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
217
233
|
checkIfSortingChanged(): boolean;
|
|
218
234
|
disableApplyButtonOfSelectedFilter(): void;
|
|
219
235
|
disableCheckboxFilterApplyButton(): void;
|
|
220
|
-
|
|
236
|
+
trackByTooltipModelId(index: number, item: TooltipModel): number;
|
|
237
|
+
setActiveStateObject(): void;
|
|
221
238
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
|
|
222
239
|
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>;
|
|
223
240
|
}
|
|
@@ -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,15 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AnnaIconColumnComponent implements OnInit {
|
|
4
|
+
componentName: string;
|
|
5
|
+
objectKey: string;
|
|
6
|
+
dataObject: any;
|
|
7
|
+
PfpIconActiveColor: string;
|
|
8
|
+
PfpIconDisableColor: string;
|
|
9
|
+
pfpIconClicked: EventEmitter<any>;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
svgIconClicked(rowData: any, key: string): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaIconColumnComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnaIconColumnComponent, "anna-core-anna-icon-column", never, { "componentName": "componentName"; "objectKey": "objectKey"; "dataObject": "dataObject"; }, { "pfpIconClicked": "pfpIconClicked"; }, never, never>;
|
|
15
|
+
}
|
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,7 @@
|
|
|
1
1
|
import { Options } from '@angular-slider/ngx-slider';
|
|
2
2
|
import moment from "moment";
|
|
3
|
+
import { SortType } from '../models/anna-sort.model';
|
|
3
4
|
import { AllSelectedStatus } from "../models/anna-tooltip.model";
|
|
4
|
-
import { SortType } from '../public-api';
|
|
5
5
|
import { AnnaDateTimeFormatService, NgbDateType } from './anna-date-time-format.service';
|
|
6
6
|
import { AnnaSortService } from './anna-sort.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -32,6 +32,7 @@ export declare class AnnaFilterService {
|
|
|
32
32
|
ngxSliderObj: Options;
|
|
33
33
|
sliderCurrencySet: Set<string>;
|
|
34
34
|
static bufferSize: number;
|
|
35
|
+
isFilterSortActive: any;
|
|
35
36
|
constructor(dateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService);
|
|
36
37
|
returnMaxAndMinValue(data: any[], key: string, isMin: boolean): any;
|
|
37
38
|
returnMinAndMaxDate(data: any[], key: string): moment.Moment[];
|
|
@@ -77,6 +78,8 @@ export declare class AnnaFilterService {
|
|
|
77
78
|
fromDate: moment.Moment;
|
|
78
79
|
toDate: moment.Moment;
|
|
79
80
|
}, key: string): boolean;
|
|
81
|
+
updateStateOfTheCurrentFilterTab(sortMap: Map<string, SortType>): void;
|
|
82
|
+
updateStateOfAllTheKeys(sortMap: Map<string, SortType>): void;
|
|
80
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFilterService, never>;
|
|
81
84
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaFilterService>;
|
|
82
85
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
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
5
|
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";
|
|
@@ -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;
|
|
@@ -67,6 +68,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
67
68
|
max: number;
|
|
68
69
|
};
|
|
69
70
|
sliderFilterTextBoxStep: string;
|
|
71
|
+
sliderEnteredMinValue: number;
|
|
72
|
+
sliderEnteredMaxValue: number;
|
|
70
73
|
calendarMinEnabledDate: NgbDateType;
|
|
71
74
|
calendarMaxEnabledDate: NgbDateType;
|
|
72
75
|
selectedMinDate: NgbDateType;
|
|
@@ -91,12 +94,10 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
91
94
|
close: () => void;
|
|
92
95
|
};
|
|
93
96
|
sellerGroupHierarchy: SellerGroupHierarchy[];
|
|
94
|
-
|
|
97
|
+
showFilterTooltipTabs: boolean;
|
|
95
98
|
sortComponent: QueryList<AnnaSortComponent>;
|
|
96
99
|
isScrolledLeft: boolean;
|
|
97
100
|
rowBorderWidth: number;
|
|
98
|
-
PfpIconActiveColor: string;
|
|
99
|
-
PfpIconDisableColor: string;
|
|
100
101
|
showSortComponent: boolean;
|
|
101
102
|
showFilterComponent: boolean;
|
|
102
103
|
tempSortOrder: SortType;
|
|
@@ -138,12 +139,22 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
138
139
|
closeTooltip(): void;
|
|
139
140
|
isTooltipActive(header: any[]): boolean;
|
|
140
141
|
bindTheValueToToolTip(tooltip: any, header: IHeaderInfo): void;
|
|
142
|
+
checkIfUniqueValuePresentForTheHeader(header: IHeaderInfo, enabledHeaders: any[]): void;
|
|
141
143
|
openTooltip(tooltip: any, header: any, columnHeader: IHeaderInfo): void;
|
|
142
144
|
clearColumnFilter(): void;
|
|
143
|
-
populateTooltipDataBasedOnSelectedRadio(
|
|
145
|
+
populateTooltipDataBasedOnSelectedRadio(activeTab: radioButtonModel): void;
|
|
146
|
+
createFilterTooltipData(header: string): void;
|
|
147
|
+
disableActiveFilterClearButton(): void;
|
|
144
148
|
getSliderData(header: string): void;
|
|
149
|
+
createOptionsForSlider(header: string): void;
|
|
150
|
+
setSelectedRangeForSlider(header: string): void;
|
|
145
151
|
getCheckboxData(header: string): void;
|
|
152
|
+
createListForCheckboxFilter(header: string): TooltipModel[];
|
|
153
|
+
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
146
154
|
getCalendarData(): void;
|
|
155
|
+
createRangeForTheDateFilter(): moment.Moment[];
|
|
156
|
+
createStartEndDateRange(optionData: any[]): moment.Moment[];
|
|
157
|
+
selectRangeForTheDateFilter(minMaxDate: any[], parsingFormat: string): void;
|
|
147
158
|
getTimeFilterData(header: string): void;
|
|
148
159
|
setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): void;
|
|
149
160
|
setTimeFilterDataForRatingPageComponent(header: string): void;
|
|
@@ -159,14 +170,18 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
159
170
|
cancelSliderFilter(): void;
|
|
160
171
|
allOptionClicked(): void;
|
|
161
172
|
applyFilters(): void;
|
|
173
|
+
applyListFilters(): void;
|
|
174
|
+
applySortingOnFilteredData(): void;
|
|
162
175
|
emitData(): void;
|
|
163
176
|
applySorting(key: string): void;
|
|
164
177
|
revert(): void;
|
|
165
178
|
closeCheckboxFilter(): void;
|
|
166
179
|
applySliderFilter(): void;
|
|
180
|
+
applySliderFilterOnData(): void;
|
|
167
181
|
cancelInDateFilter(): void;
|
|
168
182
|
updateSortMap(): void;
|
|
169
183
|
applyDateFilter(): void;
|
|
184
|
+
applyDateFilterOnData(): void;
|
|
170
185
|
applyWeekFilter(event: any): void;
|
|
171
186
|
incrementHour(arr: any[]): void;
|
|
172
187
|
decrementHour(arr: any[]): void;
|
|
@@ -177,6 +192,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
177
192
|
changeEndTimeMinute(increment: boolean): void;
|
|
178
193
|
changeStartTimeMinute(increment: boolean): void;
|
|
179
194
|
applyTimeFilters(): void;
|
|
195
|
+
applyTimeFilterOnData(): void;
|
|
180
196
|
closeTimeFilter(): void;
|
|
181
197
|
disableTimeFilterApplyButton(): void;
|
|
182
198
|
validateTimeFilterInput(): boolean;
|
|
@@ -189,7 +205,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
189
205
|
radioButtonClicked(data: any, action: string, isDisabled: boolean): void;
|
|
190
206
|
bindTheValueToSellerGroupTooltip(sellerGroupHierarchy: SellerGroupHierarchy[], tooltip: any): void;
|
|
191
207
|
iconClicked(rowData: any, iconClass: string): void;
|
|
192
|
-
svgIconClicked(
|
|
208
|
+
svgIconClicked(data: any): void;
|
|
193
209
|
textActionClicked(rowData: any, id: number): void;
|
|
194
210
|
viewDetailsClicked(rowData: any): void;
|
|
195
211
|
setColumnSortStateMap(): void;
|
|
@@ -217,7 +233,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
217
233
|
checkIfSortingChanged(): boolean;
|
|
218
234
|
disableApplyButtonOfSelectedFilter(): void;
|
|
219
235
|
disableCheckboxFilterApplyButton(): void;
|
|
220
|
-
|
|
236
|
+
trackByTooltipModelId(index: number, item: TooltipModel): number;
|
|
237
|
+
setActiveStateObject(): void;
|
|
221
238
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
|
|
222
239
|
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>;
|
|
223
240
|
}
|
|
@@ -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
|
-
}
|