@annalib/anna-core 7.2.4 → 7.2.6
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/annalib-anna-core.d.ts +5 -0
- package/esm2020/annalib-anna-core.mjs +5 -0
- package/esm2020/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +15 -0
- 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/components/anna-live-icon-template/anna-live-icon-template.component.mjs +15 -0
- package/esm2020/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +22 -0
- package/esm2020/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +15 -0
- package/esm2020/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +21 -0
- package/esm2020/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +15 -0
- package/esm2020/lib/anna-core-shared-lib/constants/shared.constant.mjs +35 -0
- package/esm2020/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +282 -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 +2 -0
- package/esm2020/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +2 -0
- package/esm2020/lib/anna-core-shared-lib/models/anna-manage-users.model.mjs +8 -0
- package/esm2020/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +2 -0
- package/esm2020/lib/anna-core-shared-lib/models/anna-sort.model.mjs +7 -0
- package/esm2020/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +30 -0
- package/esm2020/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.mjs +26 -0
- package/esm2020/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +46 -0
- package/esm2020/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.mjs +25 -0
- package/esm2020/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.mjs +16 -0
- package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +199 -0
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +469 -0
- package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +124 -0
- package/esm2020/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +133 -0
- package/esm2020/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +41 -0
- package/esm2020/lib/anna-core-shared-lib/services/anna-sort.service.mjs +147 -0
- package/esm2020/lib/anna-core.module.mjs +180 -0
- package/esm2020/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +101 -0
- package/esm2020/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +364 -0
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +1834 -0
- package/esm2020/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +69 -0
- package/esm2020/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +357 -0
- package/esm2020/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +189 -0
- package/esm2020/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +2 -0
- package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +178 -0
- package/esm2020/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +2 -0
- package/esm2020/public-api.mjs +50 -0
- package/fesm2015/annalib-anna-core.mjs +4875 -0
- package/fesm2015/annalib-anna-core.mjs.map +1 -0
- package/fesm2020/annalib-anna-core.mjs +4868 -0
- package/fesm2020/annalib-anna-core.mjs.map +1 -0
- package/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +8 -0
- package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +16 -0
- package/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +8 -0
- package/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.d.ts +11 -0
- package/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +8 -0
- package/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.d.ts +11 -0
- package/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +8 -0
- package/lib/anna-core-shared-lib/constants/shared.constant.d.ts +33 -0
- package/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.d.ts +34 -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 +16 -0
- package/{src/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.ts → lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.d.ts} +9 -21
- package/lib/anna-core-shared-lib/models/anna-manage-users.model.d.ts +6 -0
- package/{src/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.ts → lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts} +17 -28
- package/lib/anna-core-shared-lib/models/anna-sort.model.d.ts +11 -0
- package/lib/anna-core-shared-lib/models/anna-tooltip.model.d.ts +25 -0
- package/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.d.ts +9 -0
- package/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.d.ts +9 -0
- package/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.d.ts +9 -0
- package/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.d.ts +7 -0
- package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +27 -0
- package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +74 -0
- package/lib/anna-core-shared-lib/services/anna-generic-table.service.d.ts +28 -0
- package/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +21 -0
- package/lib/anna-core-shared-lib/services/anna-number-format.service.d.ts +7 -0
- package/lib/anna-core-shared-lib/services/anna-sort.service.d.ts +16 -0
- package/lib/anna-core.module.d.ts +36 -0
- package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +34 -0
- package/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +70 -0
- package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +283 -0
- package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +17 -0
- package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +141 -0
- package/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.d.ts +89 -0
- package/{src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.ts → lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.d.ts} +0 -0
- package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +45 -0
- package/{src/lib/anna-generic-table-lib/directives/anna-virtual-table/index.ts → lib/anna-generic-table-lib/directives/anna-virtual-table/index.d.ts} +0 -0
- package/package.json +39 -19
- package/{src/public-api.ts → public-api.d.ts} +0 -28
- package/.browserslistrc +0 -16
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -14
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.html +0 -22
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.spec.ts +0 -25
- package/src/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.ts +0 -16
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.html +0 -33
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.spec.ts +0 -25
- package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.ts +0 -28
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.html +0 -20
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.spec.ts +0 -25
- package/src/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.ts +0 -16
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.html +0 -3
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.scss +0 -17
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.spec.ts +0 -24
- package/src/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.ts +0 -20
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.html +0 -23
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.spec.ts +0 -25
- package/src/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.ts +0 -16
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.html +0 -15
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.spec.ts +0 -25
- package/src/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.ts +0 -19
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.html +0 -14
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.scss +0 -0
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.spec.ts +0 -25
- package/src/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.ts +0 -16
- package/src/lib/anna-core-shared-lib/constants/shared.constant.ts +0 -35
- package/src/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.ts +0 -307
- package/src/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.ts +0 -19
- package/src/lib/anna-core-shared-lib/models/anna-generic-data-type.model.ts +0 -19
- package/src/lib/anna-core-shared-lib/models/anna-manage-users.model.ts +0 -6
- package/src/lib/anna-core-shared-lib/models/anna-sort.model.ts +0 -13
- package/src/lib/anna-core-shared-lib/models/anna-tooltip.model.ts +0 -44
- package/src/lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe.ts +0 -20
- package/src/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.ts +0 -43
- package/src/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.ts +0 -19
- package/src/lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe.ts +0 -12
- package/src/lib/anna-core-shared-lib/services/anna-date-time-format.service.ts +0 -219
- package/src/lib/anna-core-shared-lib/services/anna-filter.service.ts +0 -563
- package/src/lib/anna-core-shared-lib/services/anna-generic-table.service.ts +0 -136
- package/src/lib/anna-core-shared-lib/services/anna-global-config.service.ts +0 -170
- package/src/lib/anna-core-shared-lib/services/anna-number-format.service.ts +0 -43
- package/src/lib/anna-core-shared-lib/services/anna-sort.service.ts +0 -179
- package/src/lib/anna-core.module.ts +0 -112
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.html +0 -46
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.scss +0 -153
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.spec.ts +0 -24
- package/src/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.ts +0 -106
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.html +0 -129
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.scss +0 -275
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.spec.ts +0 -24
- package/src/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.ts +0 -414
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.html +0 -1080
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.scss +0 -668
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.spec.ts +0 -25
- package/src/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.ts +0 -2186
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.html +0 -10
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.scss +0 -1
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.spec.ts +0 -24
- package/src/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.ts +0 -69
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.html +0 -13
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.scss +0 -88
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.spec.ts +0 -25
- package/src/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.ts +0 -460
- package/src/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.ts +0 -237
- package/src/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.ts +0 -204
- package/src/test.ts +0 -27
- package/tsconfig.lib.json +0 -19
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { NumberInput } from "@angular/cdk/coercion";
|
|
2
|
+
import { CdkVirtualScrollViewport, VirtualScrollStrategy } from "@angular/cdk/scrolling";
|
|
3
|
+
import { AfterContentInit, QueryList, SimpleChanges } from "@angular/core";
|
|
4
|
+
import { MatHeaderRowDef } from "@angular/material/table";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* A custom scroll strategy that accepts a static row height, static header height,
|
|
8
|
+
* and a buffer size. The strategy
|
|
9
|
+
*/
|
|
10
|
+
export declare class AnnaFixedRowSizeTableVirtualScrollStrategy implements VirtualScrollStrategy {
|
|
11
|
+
viewport: CdkVirtualScrollViewport | null;
|
|
12
|
+
private buffer;
|
|
13
|
+
private headerHeight;
|
|
14
|
+
private rowHeight;
|
|
15
|
+
constructor(rowHeight: number, buffer: number, headerHeight: number);
|
|
16
|
+
private _scrolledIndexChange;
|
|
17
|
+
scrolledIndexChange: import("rxjs").Observable<number>;
|
|
18
|
+
/**
|
|
19
|
+
* Attaches this scroll strategy to a viewport.
|
|
20
|
+
* @param viewport The viewport to attach this strategy to.
|
|
21
|
+
*/
|
|
22
|
+
attach(viewport: CdkVirtualScrollViewport): void;
|
|
23
|
+
/**
|
|
24
|
+
* Detaches this scroll strategy from the currently attached viewport.
|
|
25
|
+
*/
|
|
26
|
+
detach(): void;
|
|
27
|
+
onContentScrolled(): void;
|
|
28
|
+
onDataLengthChanged(): void;
|
|
29
|
+
onContentRendered(): void;
|
|
30
|
+
onRenderedOffsetChanged(): void;
|
|
31
|
+
scrollToIndex(index: number, behavior: ScrollBehavior): void;
|
|
32
|
+
/**
|
|
33
|
+
* Update the item size and buffer size.
|
|
34
|
+
* @param rowHeight The height of a row in the virtually scrolling table.
|
|
35
|
+
* @param buffer The number of rows to buffer outside the viewport.
|
|
36
|
+
* @param headerHeight The total height of the table header, including all header rows.
|
|
37
|
+
*/
|
|
38
|
+
updateRowHeightAndBuffer(rowHeight: number, buffer: number, headerHeight: number): void;
|
|
39
|
+
protected updateRenderedRange(): void;
|
|
40
|
+
protected updateTotalContentSize(): void;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
|
|
44
|
+
* `FixedSizeVirtualScrollStrategy` from the given directive.
|
|
45
|
+
* @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
|
|
46
|
+
* `FixedSizeVirtualScrollStrategy` from.
|
|
47
|
+
*/
|
|
48
|
+
export declare function fixedSizeVirtualScrollStrategyFactory(fixedSizeDir: AnnaFixedRowSizeTableVirtualScrollStrategyDirective): AnnaFixedRowSizeTableVirtualScrollStrategy;
|
|
49
|
+
export declare class AnnaFixedRowSizeTableVirtualScrollStrategyDirective implements AfterContentInit {
|
|
50
|
+
/** The height of rows in the table (in pixels). Defaults to 30. */
|
|
51
|
+
set rowHeight(value: number);
|
|
52
|
+
get rowHeight(): number;
|
|
53
|
+
private _rowHeight;
|
|
54
|
+
/**
|
|
55
|
+
* The height of header rows in the table (in pixels). Defaults to 30.
|
|
56
|
+
*/
|
|
57
|
+
set headerRowHeight(value: number);
|
|
58
|
+
get headerRowHeight(): number;
|
|
59
|
+
private _headerRowHeight;
|
|
60
|
+
/**
|
|
61
|
+
* The number of buffered rows rendered beyond the viewport.
|
|
62
|
+
* If the number of buffered rows dips below this number, more rows will be rendered. Defaults to 20.
|
|
63
|
+
*/
|
|
64
|
+
set buffer(value: number);
|
|
65
|
+
get buffer(): number;
|
|
66
|
+
private _buffer;
|
|
67
|
+
set headerRows(value: number | null | undefined);
|
|
68
|
+
get headerRows(): number | null | undefined;
|
|
69
|
+
private _headerRows;
|
|
70
|
+
/**
|
|
71
|
+
* Using ContentChildren here fails to pick up row defs that are added programmatically,
|
|
72
|
+
* but we don't really have a way of handling that without accessing private methods of
|
|
73
|
+
* the CdkTable. Adding header row defs programmatically is uncommon, so ContentChildren
|
|
74
|
+
* is usually sufficient. The explicit `headerRows` input above allows the number of rows
|
|
75
|
+
* to be set by the developer to override the QueryList-driven behavior.
|
|
76
|
+
*/
|
|
77
|
+
headerRowsQuery: QueryList<MatHeaderRowDef>;
|
|
78
|
+
private headerRowCount;
|
|
79
|
+
/** The scroll strategy used by this directive. */
|
|
80
|
+
scrollStrategy: AnnaFixedRowSizeTableVirtualScrollStrategy;
|
|
81
|
+
ngOnChanges(change: SimpleChanges): void;
|
|
82
|
+
ngAfterContentInit(): void;
|
|
83
|
+
private handleChange;
|
|
84
|
+
static ngAcceptInputType_rowHeight: NumberInput;
|
|
85
|
+
static ngAcceptInputType_buffer: NumberInput;
|
|
86
|
+
static ngAcceptInputType_headerRowHeight: NumberInput;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaFixedRowSizeTableVirtualScrollStrategyDirective, never>;
|
|
88
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AnnaFixedRowSizeTableVirtualScrollStrategyDirective, "cdk-virtual-scroll-viewport[rowHeight], anna-table-virtual-scroll-viewport[rowHeight]", never, { "rowHeight": "rowHeight"; "headerRowHeight": "headerRowHeight"; "buffer": "buffer"; "headerRows": "headerRows"; }, {}, ["headerRowsQuery"]>;
|
|
89
|
+
}
|
|
File without changes
|
package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CollectionViewer, ListRange } from "@angular/cdk/collections";
|
|
2
|
+
import { CdkVirtualScrollRepeater, CdkVirtualScrollViewport } from "@angular/cdk/scrolling";
|
|
3
|
+
import { CdkHeaderRowDef, CdkTable, DataSource, _CoalescedStyleScheduler } from "@angular/cdk/table";
|
|
4
|
+
import { ElementRef, NgIterable, NgZone, QueryList } from "@angular/core";
|
|
5
|
+
import { Observable, Subject } from "rxjs";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Directive that wraps a given data source in a "virtual" data source that emits
|
|
9
|
+
* the slice of the original data source that matches the range that should be rendered
|
|
10
|
+
* in the containing virtual scroll viewport.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AnnaVirtualTableDirective<T> implements CdkVirtualScrollRepeater<T>, CollectionViewer {
|
|
13
|
+
private viewport;
|
|
14
|
+
private table;
|
|
15
|
+
private _coalescedStyleScheduler;
|
|
16
|
+
set dataSource(value: DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined);
|
|
17
|
+
get dataSource(): DataSource<T> | Observable<T[]> | NgIterable<T> | null | undefined;
|
|
18
|
+
private _dataSource;
|
|
19
|
+
headerRowDefs: QueryList<CdkHeaderRowDef>;
|
|
20
|
+
private virtualizedDataStream;
|
|
21
|
+
private dataSourceChanges;
|
|
22
|
+
/** The raw, unvirtualized data stream. Emits whenever the data in the current DataSource changes. */
|
|
23
|
+
dataStream: Observable<T[] | ReadonlyArray<T>>;
|
|
24
|
+
viewChange: Subject<ListRange>;
|
|
25
|
+
private data;
|
|
26
|
+
private destroyed$;
|
|
27
|
+
private renderedItems;
|
|
28
|
+
private renderedRange;
|
|
29
|
+
private isNativeHtmlTable;
|
|
30
|
+
constructor(elementRef: ElementRef<HTMLElement>, viewport: CdkVirtualScrollViewport, table: CdkTable<T>, ngZone: NgZone, _coalescedStyleScheduler: _CoalescedStyleScheduler);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
/** React to scroll state changes in the viewport. */
|
|
34
|
+
private onRenderedDataChange;
|
|
35
|
+
/** Swap out one data source for another. */
|
|
36
|
+
private changeDataSource;
|
|
37
|
+
/**
|
|
38
|
+
* This method is only used by the experimental AutoSizeVirtualScrollStrategy.
|
|
39
|
+
* We're not using that strategy, but I've implemented it just to show how it oculd be done.
|
|
40
|
+
* I'm not actually sure if this works.
|
|
41
|
+
*/
|
|
42
|
+
measureRangeSize(range: ListRange, orientation: 'horizontal' | 'vertical'): number;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AnnaVirtualTableDirective<any>, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AnnaVirtualTableDirective<any>, "[mat-table][appVirtualDataSource], mat-table[appVirtualDataSource]", never, { "dataSource": "appVirtualDataSource"; }, {}, ["headerRowDefs"]>;
|
|
45
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,19 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@annalib/anna-core",
|
|
3
|
-
"version": "7.2.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular-slider/ngx-slider": "2.0.3",
|
|
6
|
-
"@angular/common": "^13.2.0",
|
|
7
|
-
"@angular/core": "^13.2.0",
|
|
8
|
-
"@angular/material": "^13.2.6",
|
|
9
|
-
"@ng-bootstrap/ng-bootstrap": "^9.0.1",
|
|
10
|
-
"@annalib/anna-cognito-lib": "0.6.0",
|
|
11
|
-
"lodash-es": "^4.17.21",
|
|
12
|
-
"dayjs": "^1.11.6",
|
|
13
|
-
"ngx-skeleton-loader": "^2.10.1",
|
|
14
|
-
"ng-circle-progress": "1.6.0"
|
|
15
|
-
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"tslib": "^2.3.0"
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@annalib/anna-core",
|
|
3
|
+
"version": "7.2.6",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular-slider/ngx-slider": "2.0.3",
|
|
6
|
+
"@angular/common": "^13.2.0",
|
|
7
|
+
"@angular/core": "^13.2.0",
|
|
8
|
+
"@angular/material": "^13.2.6",
|
|
9
|
+
"@ng-bootstrap/ng-bootstrap": "^9.0.1",
|
|
10
|
+
"@annalib/anna-cognito-lib": "0.6.0",
|
|
11
|
+
"lodash-es": "^4.17.21",
|
|
12
|
+
"dayjs": "^1.11.6",
|
|
13
|
+
"ngx-skeleton-loader": "^2.10.1",
|
|
14
|
+
"ng-circle-progress": "1.6.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"tslib": "^2.3.0"
|
|
18
|
+
},
|
|
19
|
+
"module": "fesm2015/annalib-anna-core.mjs",
|
|
20
|
+
"es2020": "fesm2020/annalib-anna-core.mjs",
|
|
21
|
+
"esm2020": "esm2020/annalib-anna-core.mjs",
|
|
22
|
+
"fesm2020": "fesm2020/annalib-anna-core.mjs",
|
|
23
|
+
"fesm2015": "fesm2015/annalib-anna-core.mjs",
|
|
24
|
+
"typings": "annalib-anna-core.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
"./package.json": {
|
|
27
|
+
"default": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./annalib-anna-core.d.ts",
|
|
31
|
+
"esm2020": "./esm2020/annalib-anna-core.mjs",
|
|
32
|
+
"es2020": "./fesm2020/annalib-anna-core.mjs",
|
|
33
|
+
"es2015": "./fesm2015/annalib-anna-core.mjs",
|
|
34
|
+
"node": "./fesm2015/annalib-anna-core.mjs",
|
|
35
|
+
"default": "./fesm2020/annalib-anna-core.mjs"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"sideEffects": false
|
|
39
|
+
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of anna-core
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
1
|
export * from "./lib/anna-core.module";
|
|
6
|
-
|
|
7
|
-
//ANNA-CORE
|
|
8
|
-
//components
|
|
9
2
|
export * from "./lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component";
|
|
10
3
|
export * from "./lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component";
|
|
11
4
|
export * from "./lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component";
|
|
@@ -13,50 +6,29 @@ export * from "./lib/anna-core-shared-lib/components/anna-notify-icon-template/a
|
|
|
13
6
|
export * from "./lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component";
|
|
14
7
|
export * from "./lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component";
|
|
15
8
|
export * from "./lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component";
|
|
16
|
-
|
|
17
|
-
//services
|
|
18
9
|
export * from "./lib/anna-core-shared-lib/services/anna-date-time-format.service";
|
|
19
10
|
export * from "./lib/anna-core-shared-lib/services/anna-global-config.service";
|
|
20
11
|
export * from "./lib/anna-core-shared-lib/services/anna-filter.service";
|
|
21
12
|
export * from "./lib/anna-core-shared-lib/services/anna-sort.service";
|
|
22
13
|
export * from "./lib/anna-core-shared-lib/services/anna-generic-table.service";
|
|
23
14
|
export * from "./lib/anna-core-shared-lib/services/anna-number-format.service";
|
|
24
|
-
|
|
25
|
-
//models
|
|
26
15
|
export * from "./lib/anna-core-shared-lib/models/anna-generic-data-type.model";
|
|
27
16
|
export * from "./lib/anna-core-shared-lib/models/anna-global-dropdown-config.model";
|
|
28
17
|
export * from "./lib/anna-core-shared-lib/models/anna-non-editable-gt-models";
|
|
29
18
|
export * from "./lib/anna-core-shared-lib/models/anna-tooltip.model";
|
|
30
19
|
export * from "./lib/anna-core-shared-lib/models/anna-sort.model";
|
|
31
20
|
export * from "./lib/anna-core-shared-lib/models/anna-manage-users.model";
|
|
32
|
-
|
|
33
|
-
//constants
|
|
34
21
|
export * from "./lib/anna-core-shared-lib/constants/shared.constant";
|
|
35
|
-
|
|
36
|
-
//pipes
|
|
37
22
|
export * from "./lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe";
|
|
38
23
|
export * from "./lib/anna-core-shared-lib/pipes/annaConvertZeroOrNullOrUndefined.pipe";
|
|
39
24
|
export * from "./lib/anna-core-shared-lib/pipes/annaTypeOfData.pipe";
|
|
40
25
|
export * from "./lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe";
|
|
41
|
-
|
|
42
|
-
//directives
|
|
43
26
|
export * from "./lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive";
|
|
44
27
|
export * from './lib/anna-core-shared-lib/directives/digits-only/digits-only.directive';
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
//ANNA-DROPDOWN LIB
|
|
48
28
|
export * from "./lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component";
|
|
49
29
|
export * from "./lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component";
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
//ANNA-GENERIC-TABLE-LIB
|
|
53
|
-
//Modules
|
|
54
|
-
|
|
55
|
-
//Components
|
|
56
30
|
export * from "./lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component";
|
|
57
31
|
export * from "./lib/anna-generic-table-lib/components/anna-sort/anna-sort.component";
|
|
58
32
|
export * from "./lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component";
|
|
59
|
-
|
|
60
|
-
//Directives
|
|
61
33
|
export * from "./lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy";
|
|
62
34
|
export * from "./lib/anna-generic-table-lib/directives/anna-virtual-table";
|
package/.browserslistrc
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
|
2
|
-
# For additional information regarding the format and rule options, please see:
|
|
3
|
-
# https://github.com/browserslist/browserslist#queries
|
|
4
|
-
|
|
5
|
-
# For the full list of supported browsers by the Angular framework, please see:
|
|
6
|
-
# https://angular.io/guide/browser-support
|
|
7
|
-
|
|
8
|
-
# You can see what browsers were selected by your queries by running:
|
|
9
|
-
# npx browserslist
|
|
10
|
-
|
|
11
|
-
last 1 Chrome version
|
|
12
|
-
last 1 Firefox version
|
|
13
|
-
last 2 Edge major versions
|
|
14
|
-
last 2 Safari major versions
|
|
15
|
-
last 2 iOS major versions
|
|
16
|
-
Firefox ESR
|
package/karma.conf.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: '',
|
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
-
plugins: [
|
|
9
|
-
require('karma-jasmine'),
|
|
10
|
-
require('karma-chrome-launcher'),
|
|
11
|
-
require('karma-jasmine-html-reporter'),
|
|
12
|
-
require('karma-coverage'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client: {
|
|
16
|
-
jasmine: {
|
|
17
|
-
// you can add configuration options for Jasmine here
|
|
18
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
-
// for example, you can disable the random execution with `random: false`
|
|
20
|
-
// or set a specific seed with `seed: 4321`
|
|
21
|
-
},
|
|
22
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
-
},
|
|
24
|
-
jasmineHtmlReporter: {
|
|
25
|
-
suppressAll: true // removes the duplicated traces
|
|
26
|
-
},
|
|
27
|
-
coverageReporter: {
|
|
28
|
-
dir: require('path').join(__dirname, '../../coverage/anna-core'),
|
|
29
|
-
subdir: '.',
|
|
30
|
-
reporters: [
|
|
31
|
-
{ type: 'html' },
|
|
32
|
-
{ type: 'text-summary' }
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
reporters: ['progress', 'kjhtml'],
|
|
36
|
-
port: 9876,
|
|
37
|
-
colors: true,
|
|
38
|
-
logLevel: config.LOG_INFO,
|
|
39
|
-
autoWatch: true,
|
|
40
|
-
browsers: ['Chrome'],
|
|
41
|
-
singleRun: false,
|
|
42
|
-
restartOnFileChange: true
|
|
43
|
-
});
|
|
44
|
-
};
|
package/ng-package.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
-
"dest": "../../dist/anna-core",
|
|
4
|
-
"lib": {
|
|
5
|
-
"entryFile": "src/public-api.ts",
|
|
6
|
-
"styleIncludePaths": [
|
|
7
|
-
"src/lib/anna-common-scss"
|
|
8
|
-
]
|
|
9
|
-
},
|
|
10
|
-
"assets": [
|
|
11
|
-
"src/lib/anna-common-scss",
|
|
12
|
-
"src/lib/anna-assets"
|
|
13
|
-
]
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<ng-container [ngTemplateOutlet]="buyerApprovalIcon"></ng-container>
|
|
2
|
-
|
|
3
|
-
<ng-template #buyerApprovalIcon>
|
|
4
|
-
<svg width="15px" height="15px" viewBox="0 0 20 20">
|
|
5
|
-
<g id="Awaiting-Buyer-Approval-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
6
|
-
<g id="time-left" transform="translate(3.000000, 2.000000)" fill="#4A4A4A" fill-rule="nonzero">
|
|
7
|
-
<path
|
|
8
|
-
d="M6.23157622,14.1696467 C5.70535057,14.0721422 5.2005579,13.9061054 4.72188769,13.6745242 C4.71622258,13.6714711 4.71115545,13.6679958 4.70520709,13.6652025 C4.59240848,13.6104091 4.47979871,13.551718 4.37065094,13.4903961 C4.37027327,13.4899414 4.36958087,13.4896491 4.36898288,13.4893893 C4.16872129,13.37558 3.97327504,13.2496557 3.78339947,13.1117139 C1.01467199,11.0989392 0.348958764,7.13679055 2.29945571,4.27950803 C2.72358352,3.65842885 3.23684237,3.14027823 3.80904983,2.72960334 C3.81609974,2.72453649 3.82314965,2.71950212 3.83013662,2.71440279 C5.84650619,1.28061347 8.58442178,1.183986 10.7254867,2.65733574 L10.2656372,3.34301728 C10.1377946,3.53386873 10.2164452,3.67294733 10.4402485,3.65216024 L12.4377343,3.46760989 C12.6618209,3.4468228 12.7958322,3.24677957 12.7355617,3.0234483 L12.1991703,1.02899228 C12.1391202,0.805401178 11.9853754,0.778637804 11.8574069,0.969456765 L11.3964873,1.6567623 C9.82523796,0.568265989 7.94067659,0.153206329 6.0701521,0.487943386 C5.88175576,0.521592483 5.69600314,0.562776899 5.51279981,0.610717118 C5.51138354,0.610976957 5.51025052,0.611139356 5.50911749,0.611399194 C5.50203611,0.613185585 5.4948603,0.615556612 5.48796775,0.617537881 C3.8749854,1.04500483 2.46767797,2.01585923 1.46347449,3.40105873 C1.4550083,3.41141979 1.44629033,3.4215535 1.43829623,3.432824 C1.40490356,3.47923766 1.37176268,3.52672316 1.33931419,3.57420867 C1.28625101,3.65203032 1.23394317,3.73180077 1.18390138,3.81157121 C1.17763828,3.82118524 1.17285441,3.83096167 1.16737814,3.84067314 C0.338698623,5.1658824 -0.0610062726,6.69795566 0.00754154337,8.25770173 C0.00769890751,8.26283354 0.00741565207,8.26799784 0.00754154337,8.27325957 C0.0141823097,8.42562242 0.0258902012,8.58009646 0.0417839785,8.73216699 C0.0426337448,8.7419759 0.0447424242,8.75126512 0.0463475384,8.76107403 C0.0627763537,8.91398904 0.0833910551,9.06726132 0.109230246,9.22050113 C0.371839509,10.7840149 1.08652445,12.1909434 2.15745032,13.2856758 C2.15993667,13.2882417 2.16251744,13.291035 2.16503527,13.2936983 C2.16591651,13.2947052 2.16689216,13.2952249 2.16774193,13.2961668 C2.45546651,13.5890373 2.7684323,13.8599191 3.10541185,14.1048494 C3.98728044,14.7461311 4.9692641,15.1700252 6.02385557,15.3653264 C6.3438398,15.424667 6.64950389,15.2048436 6.70691032,14.8747836 C6.76428528,14.5444963 6.55146603,14.2287924 6.23157622,14.1696467 Z"
|
|
9
|
-
id="Path"
|
|
10
|
-
></path>
|
|
11
|
-
<path
|
|
12
|
-
d="M9.22237925,14.6588011 C9.29073073,14.9263505 9.1292489,15.198652 8.86169949,15.2670034 C8.51639563,15.355219 8.1641424,15.4188128 7.8069689,15.4570516 C7.53239558,15.4864472 7.28598003,15.2876915 7.25658436,15.0131182 C7.22718869,14.7385449 7.42594445,14.4921293 7.70051776,14.4627336 C8.01004537,14.4295958 8.31515603,14.3745129 8.61417689,14.2981213 C8.8817263,14.2297698 9.15402777,14.3912517 9.22237925,14.6588011 Z M12.5552524,12.2886551 C12.7611952,12.4726175 12.7790139,12.7886982 12.5950515,12.994641 C12.3569806,13.2611574 12.1001968,13.5104915 11.8267859,13.7406023 C11.6155121,13.9184167 11.3000937,13.8912925 11.1222793,13.6800187 C10.9444648,13.4687448 10.9715891,13.1533264 11.1828629,12.975512 C11.4200152,12.7759175 11.6427598,12.5596351 11.8492666,12.3284542 C12.033229,12.1225114 12.3493096,12.1046927 12.5552524,12.2886551 Z M13.9945063,8.57622811 C14.2674538,8.61811209 14.4547678,8.87333344 14.4128838,9.14628095 C14.3584322,9.50112883 14.2787427,9.85020038 14.1746496,10.1914009 C14.0940709,10.4555252 13.8146338,10.6043183 13.5505094,10.5237395 C13.2863851,10.4431608 13.137592,10.1637237 13.2181708,9.89959931 C13.3082912,9.6041989 13.3772907,9.30195366 13.4244534,8.99460564 C13.4663374,8.72165813 13.7215588,8.53434413 13.9945063,8.57622811 Z M13.8741743,4.99628976 C14.0173723,5.32357494 14.1370467,5.66111195 14.2320931,6.00667963 C14.305325,6.27293459 14.1488489,6.54814305 13.8825939,6.62137492 C13.6163389,6.6946068 13.3411305,6.53813067 13.2678986,6.27187571 C13.1856167,5.97271686 13.0820133,5.68050756 12.958028,5.39713383 C12.847338,5.14414702 12.9626923,4.84932868 13.2156791,4.73863865 C13.4686659,4.62794862 13.7634843,4.74330295 13.8741743,4.99628976 Z"
|
|
13
|
-
id="Combined-Shape"
|
|
14
|
-
></path>
|
|
15
|
-
<path
|
|
16
|
-
d="M6.49684035,4 C6.22234237,4 6,4.21290493 6,4.47514225 L6,9.20888548 L10.5252942,11.4469308 C10.5981282,11.4830116 10.6761155,11.5 10.7528554,11.5 C10.9325937,11.5 11.106194,11.4063595 11.1944548,11.2429754 C11.3203307,11.0097848 11.2250786,10.7233052 10.9813357,10.6028789 L6.9931227,8.63027395 L6.9931227,4.47514225 C6.99308988,4.21290493 6.77101009,4 6.49684035,4 Z"
|
|
17
|
-
id="Path"
|
|
18
|
-
></path>
|
|
19
|
-
</g>
|
|
20
|
-
</g>
|
|
21
|
-
</svg>
|
|
22
|
-
</ng-template>
|
|
File without changes
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { AnnaBuyerApprovalIconTemplateComponent } from './anna-buyer-approval-icon-template.component';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
describe('AnnaBuyerApprovalIconTemplateComponent', () => {
|
|
6
|
-
let component: AnnaBuyerApprovalIconTemplateComponent;
|
|
7
|
-
let fixture: ComponentFixture<AnnaBuyerApprovalIconTemplateComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ AnnaBuyerApprovalIconTemplateComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(AnnaBuyerApprovalIconTemplateComponent);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'anna-buyer-approval-icon-template',
|
|
5
|
-
templateUrl: './anna-buyer-approval-icon-template.component.html',
|
|
6
|
-
styleUrls: ['./anna-buyer-approval-icon-template.component.scss'],
|
|
7
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
8
|
-
})
|
|
9
|
-
export class AnnaBuyerApprovalIconTemplateComponent implements OnInit {
|
|
10
|
-
|
|
11
|
-
constructor() { }
|
|
12
|
-
|
|
13
|
-
ngOnInit(): void {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.html
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<ng-container *ngIf="componentName == 'ORDER_LISTING_INFLIGHT'">
|
|
2
|
-
<span
|
|
3
|
-
*ngIf="dataObject.payForPerformance && dataObject.orderCategory == 'TV Revenue' && objectKey == 'payForPerformance'"
|
|
4
|
-
class="cursor-not-allowed"
|
|
5
|
-
(click)="$event.stopPropagation()"
|
|
6
|
-
>
|
|
7
|
-
<anna-pay-for-performance-icon-template
|
|
8
|
-
[color]="PfpIconActiveColor"
|
|
9
|
-
[width]="'15px'"
|
|
10
|
-
[height]="'15px'"
|
|
11
|
-
>
|
|
12
|
-
</anna-pay-for-performance-icon-template>
|
|
13
|
-
</span>
|
|
14
|
-
<span
|
|
15
|
-
*ngIf="dataObject.orderStatus == 'UPCOMING' && dataObject.orderCategory == 'TV Revenue' && !dataObject.payForPerformance && objectKey == 'payForPerformance'"
|
|
16
|
-
(click)="svgIconClicked(dataObject,'payForPerformance')"
|
|
17
|
-
>
|
|
18
|
-
<anna-pay-for-performance-icon-template
|
|
19
|
-
[color]="PfpIconDisableColor"
|
|
20
|
-
[width]="'15px'"
|
|
21
|
-
[height]="'15px'"
|
|
22
|
-
>
|
|
23
|
-
</anna-pay-for-performance-icon-template>
|
|
24
|
-
</span>
|
|
25
|
-
|
|
26
|
-
<anna-live-icon-template *ngIf="dataObject.orderStatus == 'LIVE' && objectKey == 'orderStatus' "></anna-live-icon-template>
|
|
27
|
-
</ng-container>
|
|
28
|
-
|
|
29
|
-
<ng-container *ngIf="objectKey == 'bizRuleStatus'">
|
|
30
|
-
<anna-rejected-icon-template *ngIf="dataObject.bizRuleStatus == 'REJECTED'"></anna-rejected-icon-template>
|
|
31
|
-
<anna-notify-icon-template *ngIf="dataObject.bizRuleStatus == 'NOTIFY'"></anna-notify-icon-template>
|
|
32
|
-
<anna-buyer-approval-icon-template *ngIf="dataObject.bizRuleStatus == 'AWAITING_APPROVAL'"></anna-buyer-approval-icon-template>
|
|
33
|
-
</ng-container>
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.scss
DELETED
|
File without changes
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.spec.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { AnnaIconColumnComponent } from './anna-icon-column.component';
|
|
4
|
-
|
|
5
|
-
describe('AnnaIconColumnComponent', () => {
|
|
6
|
-
let component: AnnaIconColumnComponent;
|
|
7
|
-
let fixture: ComponentFixture<AnnaIconColumnComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ AnnaIconColumnComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(AnnaIconColumnComponent);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|
package/src/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
-
import { GtColumnIconEmittedData } from '../../models/anna-generic-data-type.model';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'anna-core-anna-icon-column',
|
|
6
|
-
templateUrl: './anna-icon-column.component.html',
|
|
7
|
-
styleUrls: ['./anna-icon-column.component.scss'],
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
-
})
|
|
10
|
-
export class AnnaIconColumnComponent implements OnInit {
|
|
11
|
-
|
|
12
|
-
@Input() componentName: string;
|
|
13
|
-
@Input() objectKey: string;
|
|
14
|
-
@Input() dataObject: any;
|
|
15
|
-
PfpIconActiveColor = "#9B1B93"
|
|
16
|
-
PfpIconDisableColor = "rgba(189,189,189,0.5)";
|
|
17
|
-
@Output() onColumnIconClicked = new EventEmitter<GtColumnIconEmittedData>();
|
|
18
|
-
|
|
19
|
-
constructor() { }
|
|
20
|
-
|
|
21
|
-
ngOnInit(): void {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
svgIconClicked(rowData: any,key: string){
|
|
25
|
-
this.onColumnIconClicked.emit({data: rowData,key: key});
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<ng-container [ngTemplateOutlet]="liveIcon"></ng-container>
|
|
2
|
-
<ng-template #liveIcon>
|
|
3
|
-
<svg width="15px" height="15px" viewBox="0 0 20 20">
|
|
4
|
-
<g id="Live-Icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
-
<g id="next" transform="translate(2.000000, 2.000000)" fill-rule="nonzero">
|
|
6
|
-
<path
|
|
7
|
-
d="M8,0 C3.58171139,0 0,3.58171139 0,8 C0,12.4182886 3.58171139,16 8,16 C12.4182886,16 16,12.4182886 16,8 C15.9950435,3.58379835 12.4162343,0.00498913721 8,0 Z"
|
|
8
|
-
id="Path"
|
|
9
|
-
fill="#C2E361"
|
|
10
|
-
></path>
|
|
11
|
-
<path
|
|
12
|
-
d="M8,16 C3.58171139,16 0,12.4182633 0,7.9999837 C0,3.58170409 3.58171139,0 8,0 C12.4182886,0 16,3.58170409 16,7.9999837 C15.9950435,12.416209 12.4162343,15.9950109 8,16 Z M8,0.695640832 C3.96590756,0.695640832 0.69564225,3.96589948 0.69564225,7.9999837 C0.69564225,12.0340679 3.96590756,15.3043266 8,15.3043266 C12.0340924,15.3043266 15.3043578,12.0340679 15.3043578,7.9999837 C15.2997599,3.96782339 12.0322011,0.700238655 8,0.695640832 Z"
|
|
13
|
-
id="Shape"
|
|
14
|
-
fill="#8BAC2A"
|
|
15
|
-
></path>
|
|
16
|
-
<circle id="Oval" fill="#8BAC2A" cx="8" cy="8" r="4"></circle>
|
|
17
|
-
</g>
|
|
18
|
-
</g>
|
|
19
|
-
</svg>
|
|
20
|
-
</ng-template>
|
|
File without changes
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { AnnaLiveIconTemplateComponent } from './anna-live-icon-template.component';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
describe('LiveIconTemplateComponent', () => {
|
|
6
|
-
let component: AnnaLiveIconTemplateComponent;
|
|
7
|
-
let fixture: ComponentFixture<AnnaLiveIconTemplateComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ AnnaLiveIconTemplateComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
beforeEach(() => {
|
|
17
|
-
fixture = TestBed.createComponent(AnnaLiveIconTemplateComponent);
|
|
18
|
-
component = fixture.componentInstance;
|
|
19
|
-
fixture.detectChanges();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it('should create', () => {
|
|
23
|
-
expect(component).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'anna-live-icon-template',
|
|
5
|
-
templateUrl: './anna-live-icon-template.component.html',
|
|
6
|
-
styleUrls: ['./anna-live-icon-template.component.scss'],
|
|
7
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
8
|
-
})
|
|
9
|
-
export class AnnaLiveIconTemplateComponent implements OnInit {
|
|
10
|
-
|
|
11
|
-
constructor() { }
|
|
12
|
-
|
|
13
|
-
ngOnInit(): void {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
div {
|
|
2
|
-
right: 0;
|
|
3
|
-
margin-left: auto;
|
|
4
|
-
margin-right: auto;
|
|
5
|
-
position: absolute;
|
|
6
|
-
margin: 20px;
|
|
7
|
-
z-index: 400;
|
|
8
|
-
transform: translateX(50%);
|
|
9
|
-
label {
|
|
10
|
-
margin: 0;
|
|
11
|
-
width: auto;
|
|
12
|
-
font-weight: 500;
|
|
13
|
-
background-color: lightgray;
|
|
14
|
-
padding: 5px 18px;
|
|
15
|
-
border-radius: 4px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from "@angular/core/testing";
|
|
2
|
-
|
|
3
|
-
import { AnnaNoDataComponent } from "./anna-no-data.component";
|
|
4
|
-
|
|
5
|
-
describe("AnnaNoDataComponent", () => {
|
|
6
|
-
let component: AnnaNoDataComponent;
|
|
7
|
-
let fixture: ComponentFixture<AnnaNoDataComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(waitForAsync(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [AnnaNoDataComponent],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
}));
|
|
14
|
-
|
|
15
|
-
beforeEach(() => {
|
|
16
|
-
fixture = TestBed.createComponent(AnnaNoDataComponent);
|
|
17
|
-
component = fixture.componentInstance;
|
|
18
|
-
fixture.detectChanges();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it("should create", () => {
|
|
22
|
-
expect(component).toBeTruthy();
|
|
23
|
-
});
|
|
24
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input, OnInit } from "@angular/core";
|
|
2
|
-
@Component({
|
|
3
|
-
selector: "anna-core-no-data-lib",
|
|
4
|
-
templateUrl: "./anna-no-data.component.html",
|
|
5
|
-
styleUrls: ["./anna-no-data.component.scss"],
|
|
6
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7
|
-
})
|
|
8
|
-
export class AnnaNoDataComponent implements OnInit {
|
|
9
|
-
@Input() width;
|
|
10
|
-
@Input() marginTop;
|
|
11
|
-
message: string;
|
|
12
|
-
constructor() {
|
|
13
|
-
this.width = "48%";
|
|
14
|
-
this.marginTop = "1.25rem";
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
this.message = "No data to display";
|
|
19
|
-
}
|
|
20
|
-
}
|