@ethlete/cdk 4.34.0 → 4.34.1
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/CHANGELOG.md +8 -0
- package/esm2022/lib/components/overlay/components/overlay/components/overlay-container/overlay-container.component.mjs +3 -3
- package/esm2022/lib/components/overlay/components/overlay/partials/overlay-body/overlay-body.component.mjs +2 -2
- package/esm2022/lib/components/overlay/components/overlay/services/overlay.service.mjs +3 -15
- package/esm2022/lib/components/overlay/components/overlay/utils/overlay-handler.mjs +1 -1
- package/fesm2022/ethlete-cdk.mjs +5 -17
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/lib/components/overlay/components/overlay/utils/overlay-handler.d.ts +3 -3
- package/package.json +1 -1
|
@@ -31,13 +31,13 @@ export type OverlayHandlerWithQueryParamLifecycle<Q = string> = {
|
|
|
31
31
|
/** Close the overlay and remove the query param */
|
|
32
32
|
close: () => void;
|
|
33
33
|
};
|
|
34
|
-
export type CreateOverlayHandlerWithQueryParamLifecycleConfig<T
|
|
34
|
+
export type CreateOverlayHandlerWithQueryParamLifecycleConfig<T> = Omit<OverlayConfig<unknown>, 'positions' | 'data'> & {
|
|
35
35
|
/** The overlay component */
|
|
36
36
|
component: ComponentType<T>;
|
|
37
37
|
/** The overlay positions using the position builder provided via argument */
|
|
38
38
|
positions: (builder: OverlayPositionBuilder) => OverlayBreakpointConfigEntry[];
|
|
39
39
|
/** The query param key to be used for the overlay */
|
|
40
|
-
queryParamKey:
|
|
40
|
+
queryParamKey: string;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* This handler will automatically open the overlay when the query param is present.
|
|
@@ -48,4 +48,4 @@ export type CreateOverlayHandlerWithQueryParamLifecycleConfig<T, R = unknown, Q
|
|
|
48
48
|
*
|
|
49
49
|
* To open the overlay either use the `OverlayHandlerLinkDirective` or call the `.open` method of the returned handler.
|
|
50
50
|
*/
|
|
51
|
-
export declare const createOverlayHandlerWithQueryParamLifecycle: <TComponent,
|
|
51
|
+
export declare const createOverlayHandlerWithQueryParamLifecycle: <TComponent, TQueryParam extends string = string, TResult = unknown>(config: CreateOverlayHandlerWithQueryParamLifecycleConfig<TComponent>) => (innerConfig?: CreateOverlayHandlerInnerConfig<TResult>) => OverlayHandlerWithQueryParamLifecycle<TQueryParam>;
|