@annalib/anna-core 4.4.5 → 4.5.1
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/components/anna-no-data/anna-no-data.component.mjs +4 -4
- package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +39 -41
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +34 -47
- package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +80 -8
- package/esm2020/lib/anna-core.module.mjs +4 -9
- package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +14 -16
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +52 -49
- package/esm2020/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +4 -4
- package/esm2020/public-api.mjs +1 -3
- package/fesm2015/annalib-anna-core.mjs +255 -524
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +255 -520
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -1
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +2 -2
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +4 -4
- package/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +18 -4
- package/lib/anna-core.module.d.ts +11 -12
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +14 -7
- package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +2 -2
- package/package.json +2 -2
- package/public-api.d.ts +0 -2
- package/src/lib/anna-common-scss/_bootstrap-tooltip.scss +25 -0
- package/src/lib/anna-common-scss/_generic-table-common.scss +59 -0
- package/esm2020/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +0 -282
- package/esm2020/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +0 -41
- package/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.d.ts +0 -34
- package/lib/anna-core-shared-lib/services/anna-number-format.service.d.ts +0 -7
|
@@ -20,7 +20,7 @@ export interface IHeaderInfo {
|
|
|
20
20
|
tooltip?: ITooltip;
|
|
21
21
|
joinedFilterSortObjectKeys?: string;
|
|
22
22
|
}
|
|
23
|
-
declare type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA";
|
|
23
|
+
declare type DATATYPE = "CHECKBOX" | "ICON" | "STRING" | "RADIO" | "" | "SVG_ICON" | "TEXT_ACTIONS" | "CLICKABLE_DATA" | "STRING__TEXT_ACTION";
|
|
24
24
|
declare type FILTERTYPE = "CHECKBOX" | "SLIDER" | "DATE" | "TIME" | "WEEK";
|
|
25
25
|
export interface ITotalRowInfo {
|
|
26
26
|
colspan: number;
|
|
@@ -17,8 +17,8 @@ export declare class AnnaDateTimeFormatService {
|
|
|
17
17
|
sortByTimeDescending(a: any, b: any): number;
|
|
18
18
|
convertNgbDateToMoment(ngbDate: NgbDate | NgbDateType): string;
|
|
19
19
|
compareDate(a: string, b: string, isAsc: boolean): number;
|
|
20
|
-
static formatTwentyFourHourTimeToHHMMAFormat(value: any
|
|
21
|
-
static formatTwelveHourTimeToHHMMAFormat(
|
|
20
|
+
static formatTwentyFourHourTimeToHHMMAFormat(value: any): string;
|
|
21
|
+
static formatTwelveHourTimeToHHMMAFormat(value: any): string;
|
|
22
22
|
formatDateAndHHMMATimeToStandardFormat(dateAndTime: any): string;
|
|
23
23
|
compare(a: number | string, b: number | string, isAsc: boolean): number;
|
|
24
24
|
sortDataByBroadcastTimeAsc(firstParamTime: string, secondParamTime: string, broadcastTime: string): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Options } from '@angular-slider/ngx-slider';
|
|
2
|
-
import
|
|
2
|
+
import moment from "moment";
|
|
3
3
|
import { SortType } from '../models/anna-sort.model';
|
|
4
4
|
import { AnnaDateTimeFormatService, NgbDateType } from './anna-date-time-format.service';
|
|
5
5
|
import { AnnaSortService } from './anna-sort.service';
|
|
@@ -34,7 +34,7 @@ export declare class AnnaFilterService {
|
|
|
34
34
|
isFilterSortActive: any;
|
|
35
35
|
constructor(dateTimeFormatService: AnnaDateTimeFormatService, annaSortService: AnnaSortService);
|
|
36
36
|
returnMaxAndMinValue(data: any[], key: string, isMin: boolean): any;
|
|
37
|
-
returnMinAndMaxDate(data: any[], key: string):
|
|
37
|
+
returnMinAndMaxDate(data: any[], key: string): moment.Moment[];
|
|
38
38
|
isTooltipActive(header: string[], sortMap: Map<string, SortType>): boolean;
|
|
39
39
|
clearColumnFilter(): void;
|
|
40
40
|
setOptionValues(minValue: number, maxValue: number): {
|
|
@@ -63,8 +63,8 @@ export declare class AnnaFilterService {
|
|
|
63
63
|
checkIfFilterIsApplied(clonedData: any[], value: any): boolean;
|
|
64
64
|
applyFilter(data: any[], value: any): any[];
|
|
65
65
|
isObjectInTheRange(obj: any, value: {
|
|
66
|
-
fromDate:
|
|
67
|
-
toDate:
|
|
66
|
+
fromDate: moment.Moment;
|
|
67
|
+
toDate: moment.Moment;
|
|
68
68
|
}, key: string): boolean;
|
|
69
69
|
updateStateOfTheCurrentFilterTab(sortMap: Map<string, SortType>): void;
|
|
70
70
|
updateStateOfAllTheKeys(sortMap: Map<string, SortType>): void;
|
|
@@ -1,14 +1,28 @@
|
|
|
1
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
1
2
|
import { Subject } from "rxjs";
|
|
2
3
|
import { AnnaFilterService } from "./anna-filter.service";
|
|
3
4
|
import { AnnaSortService } from "./anna-sort.service";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
6
|
+
export declare class AnnaGtHelperService {
|
|
6
7
|
private annaFilterService;
|
|
8
|
+
private router;
|
|
9
|
+
private route;
|
|
7
10
|
private annaSortService;
|
|
8
11
|
virtualScrollSubject: Subject<unknown>;
|
|
9
|
-
constructor(annaFilterService: AnnaFilterService, annaSortService: AnnaSortService);
|
|
12
|
+
constructor(annaFilterService: AnnaFilterService, router: Router, route: ActivatedRoute, annaSortService: AnnaSortService);
|
|
10
13
|
calculateNumberOfSkeletonColumnsForTable(tableHeaders: any[]): number[][];
|
|
11
14
|
initColumnFilterAndSorting(): void;
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
enableOrDisableClearAllBtn(): boolean;
|
|
16
|
+
updateFiltersInURL(): void;
|
|
17
|
+
prepareQueryParamsOnFilter(): {
|
|
18
|
+
appliedFilters: string[];
|
|
19
|
+
selectedFilterData: string;
|
|
20
|
+
sortState: string;
|
|
21
|
+
};
|
|
22
|
+
initTableFilters(clonedTableData: any): void;
|
|
23
|
+
initFilters(): void;
|
|
24
|
+
setDataAsPerPersistingFilter(isPersistingFilter: boolean, clonedTable: any, filters: any): any;
|
|
25
|
+
callSort(usersTable: any): any;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaGtHelperService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AnnaGtHelperService>;
|
|
14
28
|
}
|
|
@@ -18,19 +18,18 @@ import * as i16 from "./anna-generic-table-lib/directives/anna-virtual-table/ann
|
|
|
18
18
|
import * as i17 from "./anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
|
|
19
19
|
import * as i18 from "./anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component";
|
|
20
20
|
import * as i19 from "./anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive";
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "@
|
|
23
|
-
import * as i22 from "@
|
|
24
|
-
import * as i23 from "@angular/
|
|
25
|
-
import * as i24 from "@angular/material/
|
|
26
|
-
import * as i25 from "@angular/material/
|
|
27
|
-
import * as i26 from "@angular/
|
|
28
|
-
import * as i27 from "
|
|
29
|
-
import * as i28 from "
|
|
30
|
-
import * as i29 from "
|
|
31
|
-
import * as i30 from "ng-circle-progress";
|
|
21
|
+
import * as i20 from "@angular/common";
|
|
22
|
+
import * as i21 from "@ng-bootstrap/ng-bootstrap";
|
|
23
|
+
import * as i22 from "@angular/forms";
|
|
24
|
+
import * as i23 from "@angular/material/radio";
|
|
25
|
+
import * as i24 from "@angular/material/button-toggle";
|
|
26
|
+
import * as i25 from "@angular/material/table";
|
|
27
|
+
import * as i26 from "@angular-slider/ngx-slider";
|
|
28
|
+
import * as i27 from "ngx-skeleton-loader";
|
|
29
|
+
import * as i28 from "@angular/cdk/scrolling";
|
|
30
|
+
import * as i29 from "ng-circle-progress";
|
|
32
31
|
export declare class AnnaCoreModule {
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaCoreModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i5.AnnaReplaceCharPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective
|
|
33
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AnnaCoreModule, [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i5.AnnaReplaceCharPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective], [typeof i20.CommonModule, typeof i21.NgbModule, typeof i22.FormsModule, typeof i23.MatRadioModule, typeof i24.MatButtonToggleModule, typeof i25.MatTableModule, typeof i26.NgxSliderModule, typeof i27.NgxSkeletonLoaderModule, typeof i28.ScrollingModule, typeof i29.NgCircleProgressModule], [typeof i1.AnnaNoDataComponent, typeof i2.AnnaFilterSearchedTextPipe, typeof i3.AnnaConvertZeroOrNullOrUndefinedPipe, typeof i4.AnnaTypeofDataPipe, typeof i5.AnnaReplaceCharPipe, typeof i2.AnnaFilterSearchedTextPipe, typeof i6.AnnaBuyerApprovalIconTemplateComponent, typeof i7.AnnaLiveIconTemplateComponent, typeof i8.AnnaNotifyIconTemplateComponent, typeof i9.AnnaPayForPerformanceIconTemplateComponent, typeof i10.AnnaRejectedIconTemplateComponent, typeof i11.showEllipsisTextOnHoverDirective, typeof i12.AnnaIconColumnComponent, typeof i13.AnnaWeekCalendarComponent, typeof i14.AnnaCalendarFilterComponent, typeof i15.AnnaSortComponent, typeof i16.AnnaVirtualTableDirective, typeof i17.AnnaNonEditableGenericTableComponent, typeof i18.AnnaTableVirtualScrollViewportComponent, typeof i19.AnnaFixedRowSizeTableVirtualScrollStrategyDirective]>;
|
|
35
34
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnnaCoreModule>;
|
|
36
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, QueryList, EventEmitter, SimpleChanges, OnChanges, ChangeDetectorRef, ElementRef, AfterViewChecked } from '@angular/core';
|
|
2
|
-
import
|
|
2
|
+
import moment from "moment";
|
|
3
3
|
import { Options } from '@angular-slider/ngx-slider';
|
|
4
4
|
import { IGtGeneralConfig, IGtTableHeader, IHeaderInfo, ITotalRowInfo } from '../../../anna-core-shared-lib/models/anna-non-editable-gt-models';
|
|
5
5
|
import { AnnaDateTimeFormatService, NgbDateType } from '../../../anna-core-shared-lib/services/anna-date-time-format.service';
|
|
@@ -9,7 +9,6 @@ import { SortType } from '../../../anna-core-shared-lib/models/anna-sort.model';
|
|
|
9
9
|
import { radioButtonModel, TooltipModel } from '../../../anna-core-shared-lib/models/anna-tooltip.model';
|
|
10
10
|
import { AnnaSortService } from '../../../anna-core-shared-lib/services/anna-sort.service';
|
|
11
11
|
import { AnnaFilterService } from '../../../anna-core-shared-lib/services/anna-filter.service';
|
|
12
|
-
import { AnnaGenericTableService } from '../../../anna-core-shared-lib/services/anna-generic-table.service';
|
|
13
12
|
import { BehaviorSubject } from 'rxjs';
|
|
14
13
|
import * as i0 from "@angular/core";
|
|
15
14
|
export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnChanges, AfterViewChecked {
|
|
@@ -17,7 +16,6 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
17
16
|
private annaSortService;
|
|
18
17
|
annaDateTimeFormatService: AnnaDateTimeFormatService;
|
|
19
18
|
annaFilterService: AnnaFilterService;
|
|
20
|
-
private annaGenericTableService;
|
|
21
19
|
showSkeletonLoading: boolean;
|
|
22
20
|
tableHeaders: IGtTableHeader[];
|
|
23
21
|
tableData: any[];
|
|
@@ -38,6 +36,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
38
36
|
downloadInProgress: boolean;
|
|
39
37
|
percentDone: number;
|
|
40
38
|
starredInProgress: boolean;
|
|
39
|
+
clickableRow: boolean;
|
|
41
40
|
toggleCheckbox: EventEmitter<any>;
|
|
42
41
|
toggleRowCheckbox: EventEmitter<any>;
|
|
43
42
|
toggleHeaderCheckbox: EventEmitter<any>;
|
|
@@ -53,6 +52,7 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
53
52
|
gtTextActionClicked: EventEmitter<any>;
|
|
54
53
|
gtViewDetailClicked: EventEmitter<any>;
|
|
55
54
|
downloadSpotDetails: EventEmitter<any>;
|
|
55
|
+
clickableDataClicked: EventEmitter<any>;
|
|
56
56
|
tableDataWrapper: any[];
|
|
57
57
|
rowChecked: boolean;
|
|
58
58
|
isAllRowsChecked: boolean;
|
|
@@ -147,7 +147,12 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
147
147
|
heightOfCheckboxTooltipFilter: number;
|
|
148
148
|
isNoDataToDisplaySubject$: BehaviorSubject<boolean>;
|
|
149
149
|
selectedStarredOrderId: string;
|
|
150
|
-
|
|
150
|
+
userActionTableMetaData: {
|
|
151
|
+
lastEmailResentAt: string;
|
|
152
|
+
passwordValidity: string;
|
|
153
|
+
status: string;
|
|
154
|
+
};
|
|
155
|
+
constructor(cdRef: ChangeDetectorRef, annaSortService: AnnaSortService, annaDateTimeFormatService: AnnaDateTimeFormatService, annaFilterService: AnnaFilterService);
|
|
151
156
|
ngAfterViewChecked(): void;
|
|
152
157
|
ngOnInit(): void;
|
|
153
158
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -175,8 +180,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
175
180
|
createListForCheckboxFilter(header: string): TooltipModel[];
|
|
176
181
|
selectUnselectListCheckbox(tooltipOptions: TooltipModel[], header: string): void;
|
|
177
182
|
getCalendarData(): void;
|
|
178
|
-
createRangeForTheDateFilter():
|
|
179
|
-
createStartEndDateRange(optionData: any[]):
|
|
183
|
+
createRangeForTheDateFilter(): moment.Moment[];
|
|
184
|
+
createStartEndDateRange(optionData: any[]): moment.Moment[];
|
|
180
185
|
selectRangeForTheDateFilter(minMaxDate: any[], parsingFormat: string): void;
|
|
181
186
|
getTimeFilterData(header: string): void;
|
|
182
187
|
setTimeFilterDataForComponentsOtherThanRatingsPage(header: string): void;
|
|
@@ -266,6 +271,8 @@ export declare class AnnaNonEditableGenericTableComponent implements OnInit, OnC
|
|
|
266
271
|
setInitialRowsForTable(): void;
|
|
267
272
|
spotDetailsDownloadClicked(parentChildOrTotalRow: "DATAROW" | "TOTALROW", rowdata?: any): void;
|
|
268
273
|
tableContainerScrolled(event: any): void;
|
|
274
|
+
mouseEnterOnStringTextActionType(rowData: any): void;
|
|
275
|
+
onClickableDataClicked(Rowdata: any, id: number): void;
|
|
269
276
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaNonEditableGenericTableComponent, never>;
|
|
270
|
-
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"; "limit": "limit"; "includeBorderInTableHeight": "includeBorderInTableHeight"; "downloadInProgress": "downloadInProgress"; "percentDone": "percentDone"; "starredInProgress": "starredInProgress"; }, { "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"; "downloadSpotDetails": "downloadSpotDetails"; }, never, never>;
|
|
277
|
+
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"; "limit": "limit"; "includeBorderInTableHeight": "includeBorderInTableHeight"; "downloadInProgress": "downloadInProgress"; "percentDone": "percentDone"; "starredInProgress": "starredInProgress"; "clickableRow": "clickableRow"; }, { "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"; "downloadSpotDetails": "downloadSpotDetails"; "clickableDataClicked": "clickableDataClicked"; }, never, never>;
|
|
271
278
|
}
|
|
@@ -10,7 +10,7 @@ import { ListRange } from "@angular/cdk/collections";
|
|
|
10
10
|
import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from "@angular/core";
|
|
11
11
|
import { Observable } from "rxjs";
|
|
12
12
|
import { CdkScrollable, CdkVirtualScrollRepeater, VirtualScrollStrategy, ScrollDispatcher, ViewportRuler } from "@angular/cdk/scrolling";
|
|
13
|
-
import {
|
|
13
|
+
import { AnnaGtHelperService } from '../../../anna-core-shared-lib/services/anna-generic-table.service';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
/**
|
|
16
16
|
* A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
|
|
@@ -70,7 +70,7 @@ export declare class AnnaTableVirtualScrollViewportComponent extends CdkScrollab
|
|
|
70
70
|
private _runAfterChangeDetection;
|
|
71
71
|
/** Subscription to changes in the viewport size. */
|
|
72
72
|
private _viewportChanges;
|
|
73
|
-
constructor(elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, _scrollStrategy: VirtualScrollStrategy, dir: Directionality, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler, annaGtService:
|
|
73
|
+
constructor(elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, _scrollStrategy: VirtualScrollStrategy, dir: Directionality, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler, annaGtService: AnnaGtHelperService);
|
|
74
74
|
ngOnInit(): void;
|
|
75
75
|
ngOnDestroy(): void;
|
|
76
76
|
/** Attaches a `CdkVirtualScrollRepeater` to this viewport. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annalib/anna-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular-slider/ngx-slider": "2.0.3",
|
|
6
6
|
"@angular/common": "^13.2.0",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@angular/material": "^13.2.6",
|
|
9
9
|
"@ng-bootstrap/ng-bootstrap": "^9.0.1",
|
|
10
10
|
"lodash-es": "^4.17.21",
|
|
11
|
-
"
|
|
11
|
+
"moment": "^2.24.0",
|
|
12
12
|
"ngx-skeleton-loader": "^2.10.1",
|
|
13
13
|
"ng-circle-progress": "^1.6.0"
|
|
14
14
|
},
|
package/public-api.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export * from "./lib/anna-core-shared-lib/services/anna-global-config.service";
|
|
|
11
11
|
export * from "./lib/anna-core-shared-lib/services/anna-filter.service";
|
|
12
12
|
export * from "./lib/anna-core-shared-lib/services/anna-sort.service";
|
|
13
13
|
export * from "./lib/anna-core-shared-lib/services/anna-generic-table.service";
|
|
14
|
-
export * from "./lib/anna-core-shared-lib/services/anna-number-format.service";
|
|
15
14
|
export * from "./lib/anna-core-shared-lib/models/anna-generic-data-type.model";
|
|
16
15
|
export * from "./lib/anna-core-shared-lib/models/anna-global-dropdown-config.model";
|
|
17
16
|
export * from "./lib/anna-core-shared-lib/models/anna-non-editable-gt-models";
|
|
@@ -23,7 +22,6 @@ export * from "./lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined
|
|
|
23
22
|
export * from "./lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe";
|
|
24
23
|
export * from "./lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe";
|
|
25
24
|
export * from "./lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive";
|
|
26
|
-
export * from './lib/anna-core-shared-lib/directives/digits-only/digits-only.directive';
|
|
27
25
|
export * from "./lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component";
|
|
28
26
|
export * from "./lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component";
|
|
29
27
|
export * from "./lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@mixin common-bootstrap-tooltip() {
|
|
2
|
+
opacity: 1 !important;
|
|
3
|
+
.tooltip-inner {
|
|
4
|
+
color: #4a4a4a;
|
|
5
|
+
text-align: left;
|
|
6
|
+
padding: 8px !important;
|
|
7
|
+
border-radius: $fs-2;
|
|
8
|
+
background: white !important;
|
|
9
|
+
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
|
10
|
+
@include fonts(Roboto, 12px, normal, normal, normal, normal, normal);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.bs-tooltip-top .arrow::before {
|
|
14
|
+
border-top: 6px solid white
|
|
15
|
+
}
|
|
16
|
+
&.bs-tooltip-left .arrow::before {
|
|
17
|
+
border-left:6px solid white
|
|
18
|
+
}
|
|
19
|
+
&.bs-tooltip-bottom .arrow::before {
|
|
20
|
+
border-bottom: 6px solid white
|
|
21
|
+
}
|
|
22
|
+
&.bs-tooltip-right .arrow::before {
|
|
23
|
+
border-right:5px solid white
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@mixin no-data-to-display-gt($tableHeight, $rowHeight, $noDataMarginTop) {
|
|
2
|
+
.table-container {
|
|
3
|
+
height: calc($tableHeight) !important;
|
|
4
|
+
table {
|
|
5
|
+
tbody {
|
|
6
|
+
border-top: none;
|
|
7
|
+
border-left: 1px solid #d3d3d3;
|
|
8
|
+
border-right: 1px solid #d3d3d3;
|
|
9
|
+
border-bottom: 1px solid #d3d3d3;
|
|
10
|
+
|
|
11
|
+
tr.no-border-tr:first-of-type {
|
|
12
|
+
height: $rowHeight !important;
|
|
13
|
+
|
|
14
|
+
td {
|
|
15
|
+
box-shadow: none !important;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
tr:nth-child(n+1) {
|
|
20
|
+
td {
|
|
21
|
+
box-shadow: none !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.no-data {
|
|
29
|
+
margin-top: $noDataMarginTop !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin resetFilterStyle() {
|
|
34
|
+
padding: 0;
|
|
35
|
+
border: none;
|
|
36
|
+
display: block;
|
|
37
|
+
text-align: right;
|
|
38
|
+
margin-left: auto;
|
|
39
|
+
background-color: white;
|
|
40
|
+
text-decoration: underline;
|
|
41
|
+
color: #268bff;
|
|
42
|
+
border: none;
|
|
43
|
+
&:hover:enabled {
|
|
44
|
+
color: #4a4a4a;
|
|
45
|
+
}
|
|
46
|
+
&:disabled {
|
|
47
|
+
color: #4a4a4a;
|
|
48
|
+
opacity: 0.5;
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin table-ellipses {
|
|
54
|
+
div {
|
|
55
|
+
text-overflow: ellipsis !important;
|
|
56
|
+
overflow: hidden !important;
|
|
57
|
+
white-space:nowrap !important;
|
|
58
|
+
}
|
|
59
|
+
}
|