@one-paragon/angular-utilities 1.2.6 → 1.2.8-beta.3
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 +24 -24
- package/action-state/ngrx.d.ts +1 -1
- package/esm2022/action-state/action-state-spinner/action-state-spinner.component.mjs +3 -3
- package/esm2022/action-state/action-state-ui/action-state-ui.module.mjs +1 -1
- package/esm2022/action-state/index.mjs +1 -1
- package/esm2022/action-state/ngrx-ext/ngrx-ext.module.mjs +1 -1
- package/esm2022/action-state/ngrx.mjs +1 -1
- package/esm2022/http-request-state/HttpRequestStateStore.mjs +19 -3
- package/esm2022/http-request-state/directives/index.mjs +1 -1
- package/esm2022/http-request-state/index.mjs +1 -1
- package/esm2022/http-request-state/rxjs/getRequestorBody.mjs +1 -1
- package/esm2022/http-request-state/rxjs/getRequestorState.mjs +1 -1
- package/esm2022/http-request-state/rxjs/index.mjs +1 -1
- package/esm2022/http-request-state/types.mjs +1 -1
- package/esm2022/ngrx/actionable-selector.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/esm2022/rxjs/defaultShareReplay.mjs +1 -1
- package/esm2022/rxjs/index.mjs +1 -1
- package/esm2022/rxjs/mapError.mjs +1 -1
- package/esm2022/rxjs/rxjs-operators.mjs +1 -1
- package/esm2022/rxjs/subjectifier.mjs +1 -1
- package/esm2022/rxjs/subscriber.directive.mjs +1 -1
- package/esm2022/table-builder/classes/DefaultSettings.mjs +1 -1
- package/esm2022/table-builder/classes/MatTableObservableDataSource.mjs +1 -1
- package/esm2022/table-builder/classes/TableBuilderConfig.mjs +1 -1
- package/esm2022/table-builder/classes/TableBuilderDataSource.mjs +1 -1
- package/esm2022/table-builder/classes/TableState.mjs +1 -1
- package/esm2022/table-builder/classes/display-col.mjs +1 -1
- package/esm2022/table-builder/classes/filter-info.mjs +1 -1
- package/esm2022/table-builder/classes/table-builder-general-settings.mjs +1 -1
- package/esm2022/table-builder/classes/table-builder.mjs +1 -1
- package/esm2022/table-builder/classes/table-store.mjs +1 -1
- package/esm2022/table-builder/components/column-builder/column-builder.component.mjs +3 -3
- package/esm2022/table-builder/components/column-builder/column-helpers.mjs +1 -1
- package/esm2022/table-builder/components/date-filter/date-filter.component.mjs +3 -3
- package/esm2022/table-builder/components/date-time-filter/date-time-filter.component.mjs +3 -3
- package/esm2022/table-builder/components/filter/filter.component.mjs +3 -3
- package/esm2022/table-builder/components/filter/in-list/in-list-filter.component.mjs +19 -19
- package/esm2022/table-builder/components/gen-col-displayer/gen-col-displayer.component.mjs +3 -3
- package/esm2022/table-builder/components/generic-table/generic-table.component.mjs +4 -7
- package/esm2022/table-builder/components/generic-table/paginator.component.mjs +25 -25
- package/esm2022/table-builder/components/group-by-list/group-by-list.component.mjs +3 -3
- package/esm2022/table-builder/components/in-filter/in-filter.component.mjs +3 -3
- package/esm2022/table-builder/components/index.mjs +1 -1
- package/esm2022/table-builder/components/initialization-component/initialization-component.mjs +3 -3
- package/esm2022/table-builder/components/link-column.component.mjs +31 -31
- package/esm2022/table-builder/components/number-filter/number-filter.component.mjs +3 -3
- package/esm2022/table-builder/components/profiles-menu/profiles-menu.component.mjs +3 -3
- package/esm2022/table-builder/components/scroll-strategy.mjs +1 -1
- package/esm2022/table-builder/components/sort-menu/sort-menu.component-store.mjs +1 -1
- package/esm2022/table-builder/components/sort-menu/sort-menu.component.mjs +3 -3
- package/esm2022/table-builder/components/table-container/table-container-imports.mjs +1 -1
- package/esm2022/table-builder/components/table-container/table-container.helpers/data-state.helpers.mjs +1 -1
- package/esm2022/table-builder/components/table-container/table-container.helpers/filter-state.helpers.mjs +1 -1
- package/esm2022/table-builder/components/table-container/table-container.helpers/groupBy.helpers.mjs +1 -1
- package/esm2022/table-builder/components/table-container/table-container.helpers/sort-state.helpers.mjs +1 -1
- package/esm2022/table-builder/components/table-container/table-container.mjs +47 -43
- package/esm2022/table-builder/components/table-container/tableProps.mjs +1 -1
- package/esm2022/table-builder/components/table-container/virtual-scroll-container.mjs +9 -9
- package/esm2022/table-builder/components/table-container-filter/filter-list/filter-list.component.mjs +3 -3
- package/esm2022/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.mjs +3 -3
- package/esm2022/table-builder/components/table-container-filter/table-wrapper-filter-store.mjs +1 -1
- package/esm2022/table-builder/directives/custom-cell-directive.mjs +1 -1
- package/esm2022/table-builder/directives/index.mjs +1 -1
- package/esm2022/table-builder/directives/multi-sort.directive.mjs +1 -1
- package/esm2022/table-builder/directives/resize-column.directive.mjs +1 -1
- package/esm2022/table-builder/directives/table-wrapper.directive.mjs +4 -4
- package/esm2022/table-builder/directives/tb-filter.directive.mjs +1 -1
- package/esm2022/table-builder/enums/filterTypes.mjs +1 -1
- package/esm2022/table-builder/functions/boolean-filter-function.mjs +1 -1
- package/esm2022/table-builder/functions/date-filter-function.mjs +1 -1
- package/esm2022/table-builder/functions/download-data.mjs +1 -1
- package/esm2022/table-builder/functions/null-filter-function.mjs +1 -1
- package/esm2022/table-builder/functions/number-filter-function.mjs +1 -1
- package/esm2022/table-builder/functions/sort-data-function.mjs +1 -1
- package/esm2022/table-builder/functions/string-filter-function.mjs +1 -1
- package/esm2022/table-builder/interfaces/ColumnInfo.mjs +1 -1
- package/esm2022/table-builder/interfaces/report-def.mjs +1 -1
- package/esm2022/table-builder/ngrx/tableBuilderStateStore.mjs +1 -1
- package/esm2022/table-builder/pipes/column-total.pipe.mjs +1 -1
- package/esm2022/table-builder/pipes/format-filter-type.pipe.mjs +1 -1
- package/esm2022/table-builder/pipes/format-filter-value.pipe.mjs +1 -1
- package/esm2022/table-builder/services/export-to-csv.service.mjs +1 -1
- package/esm2022/table-builder/services/link-creator.service.mjs +1 -1
- package/esm2022/table-builder/services/table-template-service.mjs +1 -1
- package/esm2022/table-builder/services/transform-creator.mjs +1 -1
- package/esm2022/table-builder/table-builder.module.mjs +1 -1
- package/esm2022/utilities/array-helpers.mjs +1 -1
- package/esm2022/utilities/directives/auto-focus.directive.mjs +1 -1
- package/esm2022/utilities/directives/clickEmitterDirective.mjs +1 -1
- package/esm2022/utilities/directives/clickSubject.mjs +1 -1
- package/esm2022/utilities/directives/conditional-classes.directive.mjs +1 -1
- package/esm2022/utilities/directives/dialog-service.mjs +1 -1
- package/esm2022/utilities/directives/dialog.mjs +1 -1
- package/esm2022/utilities/directives/mat-toggle-group-directive.mjs +1 -1
- package/esm2022/utilities/directives/prevent-enter.directive.mjs +1 -1
- package/esm2022/utilities/directives/stop-propagation.directive.mjs +1 -1
- package/esm2022/utilities/directives/trim-whitespace.directive.mjs +1 -1
- package/esm2022/utilities/index.mjs +1 -1
- package/esm2022/utilities/module.mjs +1 -1
- package/esm2022/utilities/pipes/function.pipe.mjs +1 -1
- package/esm2022/utilities/pipes/phone.pipe.mjs +1 -1
- package/esm2022/utilities/pipes/space-case.pipes.mjs +1 -1
- package/fesm2022/one-paragon-angular-utilities.mjs +337 -322
- package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -1
- package/http-request-state/HttpRequestStateStore.d.ts +5 -0
- package/http-request-state/types.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
- package/table-builder/components/table-container/table-container-imports.d.ts +1 -1
- package/table-builder/components/table-container/table-container.d.ts +6 -3
- 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
package/public-api.d.ts
CHANGED
|
@@ -9,8 +9,7 @@ export * from './table-builder/classes/table-builder';
|
|
|
9
9
|
export * from './table-builder/classes/table-builder-general-settings';
|
|
10
10
|
export * from './table-builder/components';
|
|
11
11
|
export * from './table-builder/directives';
|
|
12
|
-
export
|
|
13
|
-
export type { FilterTypes } from './table-builder/enums/filterTypes';
|
|
12
|
+
export * from './table-builder/enums/filterTypes';
|
|
14
13
|
export * from './rxjs';
|
|
15
14
|
export * from './utilities';
|
|
16
15
|
export * from './action-state';
|
|
@@ -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 MatButtonModule | typeof
|
|
14
|
+
export declare const containerImports: (typeof MatButtonModule | typeof StopPropagationDirective | typeof AsyncPipe | typeof GenFilterDisplayerComponent | typeof LetDirective | typeof FilterChipsComponent | typeof NgTemplateOutlet | typeof GenericTableComponent | typeof PaginatorComponent | typeof VirtualScrollContainer | typeof MultiSortDirective | typeof GroupByListComponent | typeof GenColDisplayerComponent | typeof SortMenuComponent)[];
|
|
@@ -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<(TableFilterDirective | TableCustomFilterDirective<any>)[]>;
|
|
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$"; }, ["
|
|
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: (
|
|
4
|
+
$registrations: import("@angular/core").WritableSignal<(TableFilterDirective | TableCustomFilterDirective<any>)[]>;
|
|
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>;
|