@one-paragon/angular-utilities 2.3.2 → 2.3.4
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/index.d.ts
CHANGED
|
@@ -165,7 +165,19 @@ declare class RequestStateStore<TParam extends any[], V, R = null, T = R extends
|
|
|
165
165
|
*/
|
|
166
166
|
on: <V_1>(srcObservable: Observable<V_1>, func: (obj: V_1) => void) => Subscription;
|
|
167
167
|
request: (...value: [...TParam]) => Subscription;
|
|
168
|
+
/**
|
|
169
|
+
* @param params An observable or signal that returns an array to be spread into the request function.
|
|
170
|
+
* If undefined is returned, the request will not be made.
|
|
171
|
+
*/
|
|
168
172
|
requestWith: (params: Observable<[...TParam]> | Signal<[...TParam]>) => this;
|
|
173
|
+
/**
|
|
174
|
+
* @param params The parameters to be passed to the request function.
|
|
175
|
+
* The parameters can be either actual values or wrapped in a signal.
|
|
176
|
+
* If any of the parameters are a signal, it will be unwrapped and passed to the request.
|
|
177
|
+
* It will be tracked and the request will be made whenever its value changes.
|
|
178
|
+
* If any of the signals return undefined, the request will not be made.
|
|
179
|
+
*/
|
|
180
|
+
requestOn: (...params: SignalOrValArr<TParam>) => this;
|
|
169
181
|
private assertInjectionContext;
|
|
170
182
|
destroy(): void;
|
|
171
183
|
}
|
|
@@ -193,6 +205,10 @@ interface RequestStateStoreConfig {
|
|
|
193
205
|
defaultSuccessHandling?: <T>(e?: T) => void;
|
|
194
206
|
}
|
|
195
207
|
declare const RequestStateStoreConfigToken: InjectionToken<RequestStateStoreConfig>;
|
|
208
|
+
type SignalOrVal<T> = Signal<T> | T;
|
|
209
|
+
type SignalOrValArr<T extends readonly any[]> = {
|
|
210
|
+
[K in keyof T]: SignalOrVal<T[K]>;
|
|
211
|
+
};
|
|
196
212
|
|
|
197
213
|
interface HttpSuccessStateViewContext<T> {
|
|
198
214
|
$implicit: T;
|
|
@@ -1042,6 +1058,7 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
1042
1058
|
keys: string[];
|
|
1043
1059
|
}>) => rxjs.Subscription;
|
|
1044
1060
|
readonly setLinkMaps: (() => void) | ((observableOrValue: any) => rxjs.Subscription);
|
|
1061
|
+
updateRowProps: (observableOrValue: Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick"> | Observable<Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick">>) => rxjs.Subscription;
|
|
1045
1062
|
on: <V>(srcObservable: Observable<V>, func: (obj: V) => void) => this;
|
|
1046
1063
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableStore, never>;
|
|
1047
1064
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableStore>;
|