@annalib/anna-core 20.2.73 → 20.2.75

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.
Files changed (78) hide show
  1. package/esm2022/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.mjs +5 -7
  2. package/esm2022/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.mjs +4 -6
  3. package/esm2022/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.mjs +16 -13
  4. package/esm2022/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.mjs +5 -7
  5. package/esm2022/lib/anna-core-shared-lib/components/anna-no-data/anna-no-data.component.mjs +1 -1
  6. package/esm2022/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.mjs +4 -6
  7. package/esm2022/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.mjs +5 -7
  8. package/esm2022/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.mjs +5 -7
  9. package/esm2022/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.mjs +27 -34
  10. package/esm2022/lib/anna-core-shared-lib/directives/fixed-rows-popup-table/fixed-rows-popup-table.directive.mjs +5 -5
  11. package/esm2022/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +17 -15
  12. package/esm2022/lib/anna-core-shared-lib/models/anna-global-dropdown-config.model.mjs +1 -1
  13. package/esm2022/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.mjs +1 -1
  14. package/esm2022/lib/anna-core-shared-lib/models/anna-tooltip.model.mjs +2 -2
  15. package/esm2022/lib/anna-core-shared-lib/pipes/annaConvertArrayToCommaSeperatedValue.pipe.mjs +3 -3
  16. package/esm2022/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.mjs +3 -4
  17. package/esm2022/lib/anna-core-shared-lib/pipes/annaFilterSearchedText.pipe.mjs +17 -19
  18. package/esm2022/lib/anna-core-shared-lib/pipes/annaReplaceChar.pipe.mjs +2 -1
  19. package/esm2022/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +102 -81
  20. package/esm2022/lib/anna-core-shared-lib/services/anna-filter.service.mjs +381 -376
  21. package/esm2022/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +29 -31
  22. package/esm2022/lib/anna-core-shared-lib/services/anna-global-config.service.mjs +1 -1
  23. package/esm2022/lib/anna-core-shared-lib/services/anna-number-format.service.mjs +21 -15
  24. package/esm2022/lib/anna-core-shared-lib/services/anna-persisting-filter.service.mjs +6 -7
  25. package/esm2022/lib/anna-core-shared-lib/services/anna-sort.service.mjs +41 -43
  26. package/esm2022/lib/anna-core.module.mjs +28 -47
  27. package/esm2022/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.mjs +19 -19
  28. package/esm2022/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.mjs +76 -88
  29. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.mjs +40 -36
  30. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.mjs +14 -13
  31. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.mjs +23 -23
  32. package/esm2022/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.mjs +31 -34
  33. package/esm2022/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +108 -101
  34. package/esm2022/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.mjs +13 -9
  35. package/esm2022/public-api.mjs +27 -30
  36. package/fesm2022/annalib-anna-core.mjs +2842 -3565
  37. package/fesm2022/annalib-anna-core.mjs.map +1 -1
  38. package/lib/anna-core-shared-lib/components/anna-buyer-approval-icon-template/anna-buyer-approval-icon-template.component.d.ts +2 -5
  39. package/lib/anna-core-shared-lib/components/anna-deleted-order-icon-template/anna-deleted-order-icon-template.component.d.ts +2 -5
  40. package/lib/anna-core-shared-lib/components/anna-icon-column/anna-icon-column.component.d.ts +4 -6
  41. package/lib/anna-core-shared-lib/components/anna-live-icon-template/anna-live-icon-template.component.d.ts +2 -5
  42. package/lib/anna-core-shared-lib/components/anna-notify-icon-template/anna-notify-icon-template.component.d.ts +2 -5
  43. package/lib/anna-core-shared-lib/components/anna-pay-for-performance-icon-template/anna-pay-for-performance-icon-template.component.d.ts +2 -5
  44. package/lib/anna-core-shared-lib/components/anna-rejected-icon-template/anna-rejected-icon-template.component.d.ts +2 -5
  45. package/lib/anna-core-shared-lib/directives/digits-only/digits-only.directive.d.ts +1 -1
  46. package/lib/anna-core-shared-lib/directives/fixed-rows-popup-table/fixed-rows-popup-table.directive.d.ts +3 -3
  47. package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +3 -3
  48. package/lib/anna-core-shared-lib/models/anna-non-editable-gt-models.d.ts +1 -1
  49. package/lib/anna-core-shared-lib/models/anna-tooltip.model.d.ts +1 -1
  50. package/lib/anna-core-shared-lib/pipes/annaDateFormatter.pipe.d.ts +0 -1
  51. package/lib/anna-core-shared-lib/services/anna-date-time-format.service.d.ts +3 -1
  52. package/lib/anna-core-shared-lib/services/anna-filter.service.d.ts +4 -4
  53. package/lib/anna-core-shared-lib/services/anna-global-config.service.d.ts +2 -2
  54. package/lib/anna-core-shared-lib/services/anna-persisting-filter.service.d.ts +0 -1
  55. package/lib/anna-core.module.d.ts +12 -15
  56. package/lib/anna-dropdown-lib/components/anna-calendar-filter/anna-calendar-filter.component.d.ts +1 -1
  57. package/lib/anna-dropdown-lib/components/anna-week-calendar-filter/anna-week-calendar-filter.component.d.ts +2 -2
  58. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-checkbox-filter/anna-column-checkbox-filter.component.d.ts +4 -4
  59. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-date-range-filter/anna-column-date-range-filter.component.d.ts +3 -3
  60. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-slider-filter/anna-column-slider-filter.component.d.ts +4 -4
  61. package/lib/anna-generic-table-lib/components/anna-column-filters/anna-column-time-filter/anna-column-time-filter.component.d.ts +4 -4
  62. package/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.d.ts +9 -9
  63. package/lib/anna-generic-table-lib/components/anna-sort/anna-sort.component.d.ts +2 -2
  64. package/package.json +1 -1
  65. package/public-api.d.ts +14 -17
  66. package/src/lib/anna-common-scss/_filters.scss +12 -0
  67. package/src/lib/anna-common-scss/_show-hide-total-row.scss +1 -1
  68. package/esm2022/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.mjs +0 -352
  69. 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
  70. package/esm2022/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.mjs +0 -2
  71. package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.mjs +0 -180
  72. package/esm2022/lib/anna-generic-table-lib/directives/anna-virtual-table/index.mjs +0 -2
  73. package/lib/anna-generic-table-lib/components/anna-table-virtual-scroll-viewport/anna-table-virtual-scroll-viewport.component.d.ts +0 -141
  74. 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
  75. package/lib/anna-generic-table-lib/directives/anna-fixed-row-size-table-virtual-scroll-strategy/index.d.ts +0 -1
  76. package/lib/anna-generic-table-lib/directives/anna-virtual-table/anna-virtual-table.directive.d.ts +0 -45
  77. package/lib/anna-generic-table-lib/directives/anna-virtual-table/index.d.ts +0 -1
  78. package/src/lib/anna-common-scss/_drag-and-drop.scss +0 -22
@@ -1,89 +0,0 @@
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": { "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";
@@ -1,45 +0,0 @@
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": { "alias": "appVirtualDataSource"; "required": false; }; }, {}, ["headerRowDefs"], never, true, never>;
45
- }
@@ -1 +0,0 @@
1
- export * from "./anna-virtual-table.directive";
@@ -1,22 +0,0 @@
1
-
2
- .cdk-overlay-pane {
3
- background: transparent;
4
- }
5
-
6
-
7
- .cdk-drag-preview {
8
- box-sizing: border-box;
9
- border-radius: 4px;
10
- box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
11
- 0 8px 10px 1px rgba(0, 0, 0, 0.14),
12
- 0 3px 14px 2px rgba(0, 0, 0, 0.12);
13
- }
14
-
15
- .cdk-drag-placeholder {
16
- opacity: 0;
17
- }
18
-
19
- .cdk-drag-animating {
20
- transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
21
- }
22
-