@one-paragon/angular-utilities 1.2.5 → 1.2.7

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 (111) hide show
  1. package/README.md +24 -24
  2. package/action-state/ngrx.d.ts +1 -1
  3. package/esm2022/action-state/action-state-spinner/action-state-spinner.component.mjs +3 -3
  4. package/esm2022/action-state/action-state-ui/action-state-ui.module.mjs +1 -1
  5. package/esm2022/action-state/index.mjs +1 -1
  6. package/esm2022/action-state/ngrx-ext/ngrx-ext.module.mjs +1 -1
  7. package/esm2022/action-state/ngrx.mjs +1 -1
  8. package/esm2022/http-request-state/HttpRequestStateStore.mjs +19 -3
  9. package/esm2022/http-request-state/directives/index.mjs +1 -1
  10. package/esm2022/http-request-state/index.mjs +1 -1
  11. package/esm2022/http-request-state/rxjs/getRequestorBody.mjs +1 -1
  12. package/esm2022/http-request-state/rxjs/getRequestorState.mjs +1 -1
  13. package/esm2022/http-request-state/rxjs/index.mjs +1 -1
  14. package/esm2022/http-request-state/types.mjs +1 -1
  15. package/esm2022/ngrx/actionable-selector.mjs +1 -1
  16. package/esm2022/public-api.mjs +1 -1
  17. package/esm2022/rxjs/defaultShareReplay.mjs +1 -1
  18. package/esm2022/rxjs/index.mjs +1 -1
  19. package/esm2022/rxjs/mapError.mjs +1 -1
  20. package/esm2022/rxjs/rxjs-operators.mjs +1 -1
  21. package/esm2022/rxjs/subjectifier.mjs +1 -1
  22. package/esm2022/rxjs/subscriber.directive.mjs +1 -1
  23. package/esm2022/table-builder/classes/DefaultSettings.mjs +1 -1
  24. package/esm2022/table-builder/classes/MatTableObservableDataSource.mjs +1 -1
  25. package/esm2022/table-builder/classes/TableBuilderConfig.mjs +1 -1
  26. package/esm2022/table-builder/classes/TableBuilderDataSource.mjs +1 -1
  27. package/esm2022/table-builder/classes/TableState.mjs +1 -1
  28. package/esm2022/table-builder/classes/display-col.mjs +1 -1
  29. package/esm2022/table-builder/classes/filter-info.mjs +1 -1
  30. package/esm2022/table-builder/classes/table-builder-general-settings.mjs +1 -1
  31. package/esm2022/table-builder/classes/table-builder.mjs +1 -1
  32. package/esm2022/table-builder/classes/table-store.mjs +1 -1
  33. package/esm2022/table-builder/components/column-builder/column-builder.component.mjs +3 -3
  34. package/esm2022/table-builder/components/column-builder/column-helpers.mjs +1 -1
  35. package/esm2022/table-builder/components/date-filter/date-filter.component.mjs +3 -3
  36. package/esm2022/table-builder/components/date-time-filter/date-time-filter.component.mjs +3 -3
  37. package/esm2022/table-builder/components/filter/filter.component.mjs +3 -3
  38. package/esm2022/table-builder/components/filter/in-list/in-list-filter.component.mjs +19 -19
  39. package/esm2022/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +3 -3
  40. package/esm2022/table-builder/components/generic-table/generic-table.component.mjs +3 -3
  41. package/esm2022/table-builder/components/generic-table/paginator.component.mjs +25 -25
  42. package/esm2022/table-builder/components/group-by-list/group-by-list.component.mjs +3 -3
  43. package/esm2022/table-builder/components/in-filter/in-filter.component.mjs +3 -3
  44. package/esm2022/table-builder/components/index.mjs +1 -1
  45. package/esm2022/table-builder/components/initialization-component/initialization-component.mjs +3 -3
  46. package/esm2022/table-builder/components/link-column.component.mjs +31 -31
  47. package/esm2022/table-builder/components/number-filter/number-filter.component.mjs +3 -3
  48. package/esm2022/table-builder/components/profiles-menu/profiles-menu.component.mjs +3 -3
  49. package/esm2022/table-builder/components/scroll-strategy.mjs +1 -1
  50. package/esm2022/table-builder/components/sort-menu/sort-menu.component-store.mjs +1 -1
  51. package/esm2022/table-builder/components/sort-menu/sort-menu.component.mjs +3 -3
  52. package/esm2022/table-builder/components/table-container/table-container-imports.mjs +1 -1
  53. package/esm2022/table-builder/components/table-container/table-container.helpers/data-state.helpers.mjs +1 -1
  54. package/esm2022/table-builder/components/table-container/table-container.helpers/filter-state.helpers.mjs +1 -1
  55. package/esm2022/table-builder/components/table-container/table-container.helpers/groupBy.helpers.mjs +1 -1
  56. package/esm2022/table-builder/components/table-container/table-container.helpers/sort-state.helpers.mjs +1 -1
  57. package/esm2022/table-builder/components/table-container/table-container.mjs +45 -43
  58. package/esm2022/table-builder/components/table-container/tableProps.mjs +1 -1
  59. package/esm2022/table-builder/components/table-container/virtual-scroll-container.mjs +9 -9
  60. package/esm2022/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +3 -3
  61. package/esm2022/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +3 -3
  62. package/esm2022/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +1 -1
  63. package/esm2022/table-builder/directives/custom-cell-directive.mjs +1 -1
  64. package/esm2022/table-builder/directives/index.mjs +1 -1
  65. package/esm2022/table-builder/directives/multi-sort.directive.mjs +1 -1
  66. package/esm2022/table-builder/directives/resize-column.directive.mjs +1 -1
  67. package/esm2022/table-builder/directives/table-wrapper.directive.mjs +4 -4
  68. package/esm2022/table-builder/directives/tb-filter.directive.mjs +1 -1
  69. package/esm2022/table-builder/enums/filterTypes.mjs +1 -1
  70. package/esm2022/table-builder/functions/boolean-filter-function.mjs +1 -1
  71. package/esm2022/table-builder/functions/date-filter-function.mjs +1 -1
  72. package/esm2022/table-builder/functions/download-data.mjs +1 -1
  73. package/esm2022/table-builder/functions/null-filter-function.mjs +1 -1
  74. package/esm2022/table-builder/functions/number-filter-function.mjs +1 -1
  75. package/esm2022/table-builder/functions/sort-data-function.mjs +1 -1
  76. package/esm2022/table-builder/functions/string-filter-function.mjs +1 -1
  77. package/esm2022/table-builder/interfaces/ColumnInfo.mjs +1 -1
  78. package/esm2022/table-builder/interfaces/report-def.mjs +1 -1
  79. package/esm2022/table-builder/ngrx/tableBuilderStateStore.mjs +1 -1
  80. package/esm2022/table-builder/pipes/column-total.pipe.mjs +1 -1
  81. package/esm2022/table-builder/pipes/format-filter-type.pipe.mjs +1 -1
  82. package/esm2022/table-builder/pipes/format-filter-value.pipe.mjs +1 -1
  83. package/esm2022/table-builder/services/export-to-csv.service.mjs +1 -1
  84. package/esm2022/table-builder/services/link-creator.service.mjs +1 -1
  85. package/esm2022/table-builder/services/table-template-service.mjs +1 -1
  86. package/esm2022/table-builder/services/transform-creator.mjs +1 -1
  87. package/esm2022/table-builder/table-builder.module.mjs +1 -1
  88. package/esm2022/utilities/array-helpers.mjs +1 -1
  89. package/esm2022/utilities/directives/auto-focus.directive.mjs +1 -1
  90. package/esm2022/utilities/directives/clickEmitterDirective.mjs +1 -1
  91. package/esm2022/utilities/directives/clickSubject.mjs +1 -1
  92. package/esm2022/utilities/directives/conditional-classes.directive.mjs +1 -1
  93. package/esm2022/utilities/directives/dialog-service.mjs +1 -1
  94. package/esm2022/utilities/directives/dialog.mjs +1 -1
  95. package/esm2022/utilities/directives/mat-toggle-group-directive.mjs +1 -1
  96. package/esm2022/utilities/directives/prevent-enter.directive.mjs +1 -1
  97. package/esm2022/utilities/directives/stop-propagation.directive.mjs +1 -1
  98. package/esm2022/utilities/directives/trim-whitespace.directive.mjs +1 -1
  99. package/esm2022/utilities/index.mjs +1 -1
  100. package/esm2022/utilities/module.mjs +1 -1
  101. package/esm2022/utilities/pipes/function.pipe.mjs +1 -1
  102. package/esm2022/utilities/pipes/phone.pipe.mjs +1 -1
  103. package/esm2022/utilities/pipes/space-case.pipes.mjs +1 -1
  104. package/fesm2022/one-paragon-angular-utilities.mjs +334 -318
  105. package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -1
  106. package/http-request-state/HttpRequestStateStore.d.ts +5 -0
  107. package/http-request-state/types.d.ts +1 -1
  108. package/package.json +1 -1
  109. package/table-builder/components/table-container/table-container-imports.d.ts +1 -1
  110. package/table-builder/components/table-container/table-container.d.ts +6 -3
  111. package/table-builder/directives/table-wrapper.directive.d.ts +1 -1
@@ -2,6 +2,7 @@ import { Observable, Subscription } from 'rxjs';
2
2
  import { ComponentStore } from '@ngrx/component-store';
3
3
  import { HttpRequestFactory, HttpRequestStatus, HttpRequestState, RequestStateOptions } from './types';
4
4
  import { HttpErrorResponse } from '@angular/common/http';
5
+ import { Signal } from '@angular/core';
5
6
  import * as i0 from "@angular/core";
6
7
  export interface RequestResponse<TParam extends any[], T> {
7
8
  requestParams: [...TParam];
@@ -11,6 +12,7 @@ export declare class HttpRequestStateStore<TParam extends any[], V, R = null, T
11
12
  private options?;
12
13
  private project?;
13
14
  private req;
15
+ private injector?;
14
16
  constructor(req: HttpRequestFactory<TParam, V>, options?: RequestStateOptions<TParam>, project?: (v: V) => R);
15
17
  reset(): void;
16
18
  private flatteningStrategy;
@@ -42,8 +44,11 @@ export declare class HttpRequestStateStore<TParam extends any[], V, R = null, T
42
44
  on: <V_1>(srcObservable: Observable<V_1>, func: (obj: V_1) => void) => Subscription;
43
45
  request: (...value: [...TParam]) => Subscription;
44
46
  ngOnDestroy(): void;
47
+ requestWith: (params: Observable<[...TParam]> | Signal<[...TParam]>) => this;
45
48
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestStateStore<any, any, any, any>, never>;
46
49
  static ɵdir: i0.ɵɵDirectiveDeclaration<HttpRequestStateStore<any, any, any, any>, never, never, {}, {}, never, never, false, never>;
47
50
  }
48
51
  export declare class CancellationToken {
49
52
  }
53
+ export declare function wrapInArr<T>(sig: Signal<T>): Signal<[T]>;
54
+ export declare function wrapInArr<T>(obs: Observable<T>): Observable<[T]>;
@@ -34,8 +34,8 @@ export declare enum HttpRequestStrategy {
34
34
  export interface RequestStateOptions<TParam extends any[] = any> {
35
35
  strategy?: HttpRequestStrategy;
36
36
  autoRequestWith?: [...TParam];
37
+ injector?: Injector;
37
38
  }
38
39
  export interface RequestCreatorOptions<TParam extends any[] = any> extends RequestStateOptions<TParam> {
39
- injector?: Injector;
40
40
  }
41
41
  export type HttpRequestFactory<TParam extends any[], T> = (...params: [...TParam]) => Observable<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@one-paragon/angular-utilities",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "18.2.2",
6
6
  "@angular/core": "18.2.2",
@@ -11,4 +11,4 @@ import { SortMenuComponent } from "../sort-menu/sort-menu.component";
11
11
  import { StopPropagationDirective } from "../../../utilities";
12
12
  import { PaginatorComponent } from "../generic-table/paginator.component";
13
13
  import { VirtualScrollContainer } from "./virtual-scroll-container";
14
- export declare const containerImports: (typeof VirtualScrollContainer | typeof MatButtonModule | typeof NgTemplateOutlet | typeof AsyncPipe | typeof MultiSortDirective | typeof StopPropagationDirective | typeof GenColDisplayerComponent | typeof GenFilterDisplayerComponent | typeof LetDirective | typeof FilterChipsComponent | typeof GenericTableComponent | typeof GroupByListComponent | typeof SortMenuComponent | typeof PaginatorComponent)[];
14
+ export declare const containerImports: (typeof MatButtonModule | typeof NgTemplateOutlet | typeof AsyncPipe | typeof MultiSortDirective | typeof StopPropagationDirective | typeof GenColDisplayerComponent | typeof GenFilterDisplayerComponent | typeof LetDirective | typeof FilterChipsComponent | typeof GenericTableComponent | typeof GroupByListComponent | typeof SortMenuComponent | typeof PaginatorComponent | typeof VirtualScrollContainer)[];
@@ -23,10 +23,13 @@ export declare class TableContainerComponent<T = any> implements OnInit, OnDestr
23
23
  wrapper: TableWrapperDirective | null;
24
24
  stateService: TableBuilderStateStore;
25
25
  injector: Injector;
26
+ filterDirectives: import("@angular/core").Signal<readonly TableFilterDirective[]>;
27
+ customFilterDirectives: import("@angular/core").Signal<readonly TableCustomFilterDirective<any>[]>;
28
+ allFilterDirectives: import("@angular/core").Signal<(TableCustomFilterDirective<any> | TableFilterDirective)[]>;
29
+ tableState: import("@angular/core").Signal<TableState | undefined>;
30
+ allFilterDirectivesEffect: import("@angular/core").EffectRef;
26
31
  paginatorComponent?: PaginatorComponent;
27
32
  genericTable?: GenericTableComponent;
28
- customFilterDirectives: QueryList<TableCustomFilterDirective>;
29
- filterDirectives: QueryList<TableFilterDirective>;
30
33
  customRows: QueryList<MatRowDef<any>>;
31
34
  customCells: QueryList<CustomCellDirective>;
32
35
  tableElRef: ElementRef;
@@ -69,5 +72,5 @@ export declare class TableContainerComponent<T = any> implements OnInit, OnDestr
69
72
  addFilterDirectives: (state: TableState) => void;
70
73
  $useVirtual: import("@angular/core").Signal<boolean>;
71
74
  static ɵfac: i0.ɵɵFactoryDeclaration<TableContainerComponent<any>, never>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<TableContainerComponent<any>, "tb-table-container", never, { "tableBuilder": { "alias": "tableBuilder"; "required": true; }; "tableId": { "alias": "tableId"; "required": false; }; "indexColumn": { "alias": "indexColumn"; "required": false; }; "selectionColumn": { "alias": "selectionColumn"; "required": false; }; "isSticky": { "alias": "isSticky"; "required": false; }; "stickyFooter": { "alias": "stickyFooter"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "groupHeaderTemplate": { "alias": "groupHeaderTemplate"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "inputFilters": { "alias": "inputFilters"; "required": false; }; }, { "selection$": "selection$"; "data": "data"; "onStateReset": "onStateReset"; "onSaveState": "onSaveState"; "state$": "state$"; }, ["tableElRef", "customFilterDirectives", "filterDirectives", "customRows", "customCells"], ["[before]", ".tb-header-title"], true, never>;
75
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableContainerComponent<any>, "tb-table-container", never, { "tableBuilder": { "alias": "tableBuilder"; "required": true; }; "tableId": { "alias": "tableId"; "required": false; }; "indexColumn": { "alias": "indexColumn"; "required": false; }; "selectionColumn": { "alias": "selectionColumn"; "required": false; }; "isSticky": { "alias": "isSticky"; "required": false; }; "stickyFooter": { "alias": "stickyFooter"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "groupHeaderTemplate": { "alias": "groupHeaderTemplate"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "inputFilters": { "alias": "inputFilters"; "required": false; }; }, { "selection$": "selection$"; "data": "data"; "onStateReset": "onStateReset"; "onSaveState": "onSaveState"; "state$": "state$"; }, ["filterDirectives", "customFilterDirectives", "tableElRef", "customRows", "customCells"], ["[before]", ".tb-header-title"], true, never>;
73
76
  }
@@ -1,7 +1,7 @@
1
1
  import { TableCustomFilterDirective, TableFilterDirective } from "./tb-filter.directive";
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TableWrapperDirective {
4
- registrations: (TableCustomFilterDirective | TableFilterDirective)[];
4
+ $registrations: import("@angular/core").WritableSignal<(TableCustomFilterDirective<any> | TableFilterDirective)[]>;
5
5
  register(filter: TableCustomFilterDirective | TableFilterDirective): void;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TableWrapperDirective, never>;
7
7
  static ɵdir: i0.ɵɵDirectiveDeclaration<TableWrapperDirective, "[tbWrapper]", never, {}, {}, never, never, true, never>;