@one-paragon/angular-utilities 2.8.0 → 2.8.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@one-paragon/angular-utilities",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "21.1.0",
6
6
  "@angular/core": "21.1.0",
@@ -1711,7 +1711,7 @@ declare class TableContainerComponent<T = any> {
1711
1711
  static headerId: string;
1712
1712
  headerId: string;
1713
1713
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableContainerComponent<any>, never>;
1714
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableContainerComponent<any>, "tb-table-container", never, { "$tableBuilder": { "alias": "tableBuilder"; "required": true; "isSignal": true; }; "$tableIdInput": { "alias": "tableId"; "required": false; "isSignal": true; }; "$trackByInput": { "alias": "trackBy"; "required": false; "isSignal": true; }; "$inputFilters": { "alias": "inputFilters"; "required": false; "isSignal": true; }; "$indexColumnInput": { "alias": "indexColumn"; "required": false; "isSignal": true; }; "$selectionColumnInput": { "alias": "selectionColumn"; "required": false; "isSignal": true; }; "$stickyHeaderInput": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "$stickyFooterInput": { "alias": "stickyFooter"; "required": false; "isSignal": true; }; "$groupHeaderTemplate": { "alias": "groupHeaderTemplate"; "required": false; "isSignal": true; }; "$groupHeaderHeight": { "alias": "groupHeaderHeight"; "required": false; "isSignal": true; }; "$pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; }, { "selection$": "selection"; "onStateReset$": "onStateReset"; "onSaveState$": "onSaveState"; "state$": "state"; "data$": "data"; "sortedAndFilteredAndGroupedData$": "sortedAndFilteredAndGroupedData"; }, ["$filterDirectives", "$customFilterDirectives", "_$customRows", "$customCells", "$customHeaders", "$customGroupRows"], ["[before]", ".tb-header-title"], true, never>;
1714
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableContainerComponent<any>, "tb-table-container", never, { "$tableBuilder": { "alias": "tableBuilder"; "required": true; "isSignal": true; }; "$tableIdInput": { "alias": "tableId"; "required": false; "isSignal": true; }; "$trackByInput": { "alias": "trackBy"; "required": false; "isSignal": true; }; "$inputFilters": { "alias": "inputFilters"; "required": false; "isSignal": true; }; "$indexColumnInput": { "alias": "indexColumn"; "required": false; "isSignal": true; }; "$selectionColumnInput": { "alias": "selectionColumn"; "required": false; "isSignal": true; }; "$stickyHeaderInput": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "$stickyFooterInput": { "alias": "stickyFooter"; "required": false; "isSignal": true; }; "$groupHeaderTemplate": { "alias": "groupHeaderTemplate"; "required": false; "isSignal": true; }; "$groupHeaderHeight": { "alias": "groupHeaderHeight"; "required": false; "isSignal": true; }; "$pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; }, { "selection$": "selection"; "onStateReset$": "onStateReset"; "onSaveState$": "onSaveState"; "state$": "state"; "data$": "data"; "sortedAndFilteredAndGroupedData$": "sortedAndFilteredAndGroupedData"; }, ["$filterDirectives", "$customFilterDirectives", "_$customRows", "$customCells", "$customHeaders", "$customGroupRows"], ["[before]", ".tb-header-title", ".tb-paginator-row"], true, never>;
1715
1715
  }
1716
1716
 
1717
1717
  declare class SpaceCasePipe implements PipeTransform {
@@ -2148,14 +2148,14 @@ declare class ActionStateUiModule {
2148
2148
  * @param [dispatchIf = defaultFilter] Optional. A method that takes the result of the selector and returns a boolean. The actions gets dispatched
2149
2149
  * if true is returned. If no method is passed in than the action will be dispatched if the selector returns undefined or null.
2150
2150
  */
2151
- declare const createActionableSelector: <State, Result, Props extends any[]>(selectorFactory: ((...props: Props) => MemoizedSelector<State, Result>), action: ActionReturner<Props, Result>, dispatchIf?: (data: Result) => boolean) => (...props: Props) => MemoizedSelector<State, Result | undefined, (s1: LoadingState<Result>) => Result | undefined>;
2151
+ declare const createActionableSelector: <State, Result, Props extends any[]>(selectorFactory: ((...props: Props) => MemoizedSelector<State, Result>), action: ActionReturner<Props, Result>, dispatchIf?: (data: Result) => boolean, defaultValue?: Result) => (...props: Props) => MemoizedSelector<State, Result | undefined, (s1: LoadingState<Result>) => Result | undefined>;
2152
2152
  /**
2153
2153
  * Creates a selector that can run an action if conditions are met.
2154
2154
  * The action will run in the environment injector context if no injector is added to the options
2155
2155
  * Note: The props of the selector factory must include the props of the action.
2156
2156
  */
2157
2157
  declare const createActionSelector: <State, Result, Props extends any[] = any[]>(options: CreateActionResultsOptions<State, Result, Props>) => (...props: [...Props]) => MemoizedSelector<State, Result | undefined, (s1: LoadingState<Result>) => Result | undefined>;
2158
- declare const createActionableResultSelector: <State, Result, Props extends any[]>(selectorFactory: ((...props: Props) => MemoizedSelector<State, Result>), action: ActionReturner<Props, Result>, dispatchIf?: (data: Result) => boolean) => (...props: Props) => ActionableMemoizedSelector<State, LoadingState<Result>>;
2158
+ declare const createActionableResultSelector: <State, Result, Props extends any[]>(selectorFactory: ((...props: Props) => MemoizedSelector<State, Result>), action: ActionReturner<Props, Result>, dispatchIf?: (data: Result) => boolean, defaultValue?: Result) => (...props: Props) => ActionableMemoizedSelector<State, LoadingState<Result>>;
2159
2159
  declare const createActionResultSelector: <State, Result, Props extends any[] = any[]>(options: CreateActionResultsOptions<State, Result, Props>) => (...props: Props) => ActionableMemoizedSelector<State, LoadingState<Result>>;
2160
2160
  declare const clearActionableSelectorRequestCache: () => {};
2161
2161
  declare function defaultFilter(data: any): boolean;
@@ -2181,6 +2181,10 @@ interface CreateActionResultsOptions<State, Result, Props extends any[]> {
2181
2181
  */
2182
2182
  dispatchIf?: (data: Result) => boolean;
2183
2183
  injector?: Injector;
2184
+ /**
2185
+ * The default value to use if the selector returns undefined or null.
2186
+ */
2187
+ defaultValue?: Result;
2184
2188
  }
2185
2189
  interface LoadingState<T> {
2186
2190
  loading: boolean;