@annalib/anna-core 20.3.3 → 20.3.4
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/README.md +28 -28
- package/esm2022/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-est-icon-template/anna-est-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +3 -3
- package/esm2022/lib/anna-core-shared-lib/models/anna-generic-data-type.model.mjs +1 -1
- package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +6 -5
- package/esm2022/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +3 -3
- package/esm2022/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +3 -3
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +3 -3
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +3 -3
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.mjs +3 -3
- package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +3 -3
- package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +3 -3
- package/esm2022/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +3 -3
- package/fesm2022/annalib-anna-core.mjs +39 -38
- package/fesm2022/annalib-anna-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/anna-common-scss/_animate.scss +27 -27
- package/src/lib/anna-common-scss/_application-spacing.scss +7 -7
- package/src/lib/anna-common-scss/_bootstrap-tooltip.scss +27 -27
- package/src/lib/anna-common-scss/_button.scss +18 -18
- package/src/lib/anna-common-scss/_colors.scss +107 -107
- package/src/lib/anna-common-scss/_common-order-listing-table.scss +176 -176
- package/src/lib/anna-common-scss/_custom-anna-datepicker.scss +14 -14
- package/src/lib/anna-common-scss/_customDropdown.scss +123 -123
- package/src/lib/anna-common-scss/_dashboard-partials.scss +106 -106
- package/src/lib/anna-common-scss/_date-picker-form.scss +87 -87
- package/src/lib/anna-common-scss/_easy-filter.scss +138 -138
- package/src/lib/anna-common-scss/_edit-filter-popup.scss +70 -70
- package/src/lib/anna-common-scss/_filters.scss +724 -724
- package/src/lib/anna-common-scss/_font.scss +9 -9
- package/src/lib/anna-common-scss/_fonts.scss +86 -86
- package/src/lib/anna-common-scss/_generic-modal.scss +63 -63
- package/src/lib/anna-common-scss/_generic-table-common.scss +198 -198
- package/src/lib/anna-common-scss/_gt-table.scss +425 -425
- package/src/lib/anna-common-scss/_icons.scss +3 -3
- package/src/lib/anna-common-scss/_legend.scss +11 -11
- package/src/lib/anna-common-scss/_mat-button-toggle.scss +38 -38
- package/src/lib/anna-common-scss/_mat-menu.scss +17 -17
- package/src/lib/anna-common-scss/_mixins.scss +187 -187
- package/src/lib/anna-common-scss/_modal.scss +37 -37
- package/src/lib/anna-common-scss/_popup-filter-toggle-button.scss +36 -36
- package/src/lib/anna-common-scss/_scrollbar.scss +14 -14
- package/src/lib/anna-common-scss/_sort.scss +30 -30
- package/src/lib/anna-common-scss/_toggle.scss +86 -86
- package/src/lib/anna-common-scss/style.scss +1 -1
- package/src/lib/anna-common-scss/third-party-lib/_angular-material-mat-radio.scss +25 -25
- package/src/lib/anna-common-scss/third-party-lib/_anna-mat-button-toggle-group-size-lg.scss +34 -34
- package/src/lib/anna-common-scss/third-party-lib/_mat-autocomplete.scss +31 -31
- package/esm2022/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +0 -353
- package/esm2022/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/anna-fixed-row-size-table-virtual-scroll-strategy.directive.mjs +0 -204
- package/esm2022/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +0 -2
- package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +0 -186
- package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +0 -2
- package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +0 -141
- 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 +0 -89
- package/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.d.ts +0 -1
- package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +0 -45
- package/lib/anna-generic-table-lib/directives/anna-virtual-table/index.d.ts +0 -1
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { NumberInput } from "@angular/cdk/coercion";
|
|
2
|
-
import { CdkVirtualScrollViewport, VirtualScrollStrategy } from "@angular/cdk/scrolling";
|
|
3
|
-
import { AfterContentInit, OnChanges, 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 scrolledIndexChangeSubject;
|
|
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, OnChanges {
|
|
50
|
-
/** The height of rows in the table (in pixels). Defaults to 30. */
|
|
51
|
-
set rowHeight(value: number);
|
|
52
|
-
get rowHeight(): number;
|
|
53
|
-
private heightOfRow;
|
|
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 heightOfHeaderRow;
|
|
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 bufferForRows;
|
|
67
|
-
set headerRows(value: number | null | undefined);
|
|
68
|
-
get headerRows(): number | null | undefined;
|
|
69
|
-
private noOfHeaderRows;
|
|
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": { "alias": "rowHeight"; "required": false; }; "headerRowHeight": { "alias": "headerRowHeight"; "required": false; }; "buffer": { "alias": "buffer"; "required": false; }; "headerRows": { "alias": "headerRows"; "required": false; }; }, {}, ["headerRowsQuery"], never, true, never>;
|
|
89
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./anna-fixed-row-size-table-virtual-scroll-strategy.directive";
|
package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { CollectionViewer, ListRange } from "@angular/cdk/collections";
|
|
2
|
-
import { CdkVirtualScrollRepeater, CdkVirtualScrollViewport } from "@angular/cdk/scrolling";
|
|
3
|
-
import { _CoalescedStyleScheduler, CdkHeaderRowDef, CdkTable, DataSource } from "@angular/cdk/table";
|
|
4
|
-
import { ElementRef, NgIterable, NgZone, OnDestroy, OnInit, 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, OnInit, OnDestroy {
|
|
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 tableDataSource;
|
|
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": { "alias": "appVirtualDataSource"; "required": false; }; }, {}, ["headerRowDefs"], never, true, never>;
|
|
45
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./anna-virtual-table.directive";
|