@one-paragon/angular-utilities 0.1.12 → 0.1.15
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/esm2020/ngrx/actionable-selector.mjs +76 -0
- package/esm2020/ngrx/index.mjs +2 -0
- package/esm2020/public-api.mjs +2 -1
- package/esm2020/rxjs/index.mjs +2 -1
- package/esm2020/rxjs/subjectifier.mjs +15 -0
- package/esm2020/table-builder/classes/table-builder.mjs +2 -2
- package/esm2020/table-builder/components/initialization-component/initialization-component.mjs +3 -3
- package/esm2020/table-builder/components/link-column.component.mjs +9 -6
- package/fesm2015/one-paragon-angular-utilities.mjs +101 -10
- package/fesm2015/one-paragon-angular-utilities.mjs.map +1 -1
- package/fesm2020/one-paragon-angular-utilities.mjs +101 -10
- package/fesm2020/one-paragon-angular-utilities.mjs.map +1 -1
- package/ngrx/actionable-selector.d.ts +15 -0
- package/ngrx/index.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/rxjs/index.d.ts +1 -0
- package/rxjs/subjectifier.d.ts +9 -0
- package/table-builder/components/link-column.component.d.ts +2 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action, MemoizedSelector, Store } from "@ngrx/store";
|
|
2
|
+
export declare function setUpStoreFactory(store: Store): () => Promise<unknown>;
|
|
3
|
+
/**
|
|
4
|
+
* Creates a selector that can dispatch an action if conditions are met.
|
|
5
|
+
* Note: The props of the selector factory must include the props of the action.
|
|
6
|
+
* @param selectorFactory A method that returns selector.
|
|
7
|
+
* @param action The action that will be dispatched when conditions are met.
|
|
8
|
+
* @param [dispatchIf = defaultFilter] Optional. A method that takes the result of the selector and returns a boolean. The actions gets dispatched
|
|
9
|
+
* if true is returned. If no method is passed in than the action will be dispatched if the selector returns undefined or null.
|
|
10
|
+
*/
|
|
11
|
+
export declare const createActionableSelector: <State, Result, Props = any>(selectorFactory: (props?: Props | undefined) => MemoizedSelector<State, Result, import("@ngrx/store").DefaultProjectorFn<Result>>, action: ActionReturner<Props | undefined>, dispatchIf?: (data: Result) => boolean) => (props?: Props | undefined) => ActionableMemoizedSelector<State, Result>;
|
|
12
|
+
declare type ActionableMemoizedSelector<State, Result> = MemoizedSelector<State, Result>;
|
|
13
|
+
export declare type ActionReturner<Props> = (props: Props) => Action;
|
|
14
|
+
export declare function defaultFilter(data: any): boolean;
|
|
15
|
+
export {};
|
package/ngrx/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './actionable-selector';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
package/rxjs/index.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable, Subject } from 'rxjs';
|
|
2
|
+
export declare class Subjectifier<T> extends Observable<T> {
|
|
3
|
+
private _source;
|
|
4
|
+
private _subj;
|
|
5
|
+
private merged;
|
|
6
|
+
constructor(_source: Observable<T>);
|
|
7
|
+
next: Subject<T>['next'];
|
|
8
|
+
newSubj: (op1: import("rxjs").OperatorFunction<T, unknown>, op2: import("rxjs").OperatorFunction<unknown, unknown>, op3: import("rxjs").OperatorFunction<unknown, unknown>, op4: import("rxjs").OperatorFunction<unknown, unknown>, op5: import("rxjs").OperatorFunction<unknown, unknown>, op6: import("rxjs").OperatorFunction<unknown, unknown>, op7: import("rxjs").OperatorFunction<unknown, unknown>, op8: import("rxjs").OperatorFunction<unknown, unknown>, op9: import("rxjs").OperatorFunction<unknown, unknown>, ...operations: import("rxjs").OperatorFunction<any, any>[]) => Subjectifier<unknown>;
|
|
9
|
+
}
|
|
@@ -5,6 +5,7 @@ export declare class LinkColumnComponent {
|
|
|
5
5
|
protected store: TableStore;
|
|
6
6
|
metaData: MetaData;
|
|
7
7
|
element: any;
|
|
8
|
+
transform: (a: any) => any;
|
|
8
9
|
constructor(store: TableStore);
|
|
9
10
|
link: (metaData: MetaData) => import("rxjs").Observable<{
|
|
10
11
|
link: (t: any) => string;
|
|
@@ -12,5 +13,5 @@ export declare class LinkColumnComponent {
|
|
|
12
13
|
target: import("../interfaces/report-def").Target;
|
|
13
14
|
}>;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinkColumnComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LinkColumnComponent, "tb-link-column", never, { "metaData": "metaData"; "element": "element"; }, {}, never, never, false>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkColumnComponent, "tb-link-column", never, { "metaData": "metaData"; "element": "element"; "transform": "transform"; }, {}, never, never, false>;
|
|
16
17
|
}
|