@ethlete/cdk 4.17.2 → 4.18.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 +16 -0
- package/esm2022/lib/components/overlay/components/overlay/components/overlay-container/overlay-container.component.mjs +3 -3
- package/esm2022/lib/components/overlay/utils/overlay-dismiss-checker.util.mjs +5 -3
- package/fesm2022/ethlete-cdk.mjs +6 -4
- package/fesm2022/ethlete-cdk.mjs.map +1 -1
- package/lib/components/overlay/utils/overlay-dismiss-checker.util.d.ts +8 -1
- package/package.json +2 -2
|
@@ -23,7 +23,7 @@ export type CreateOverlayDismissCheckerConfig<T extends AbstractControl> = {
|
|
|
23
23
|
*
|
|
24
24
|
* @default form.getRawValue()
|
|
25
25
|
*/
|
|
26
|
-
defaultValue?:
|
|
26
|
+
defaultValue?: ReturnType<T['getRawValue']>;
|
|
27
27
|
/**
|
|
28
28
|
* The events that should trigger the dismiss check
|
|
29
29
|
*
|
|
@@ -65,6 +65,13 @@ export type CreateOverlayDismissCheckerConfig<T extends AbstractControl> = {
|
|
|
65
65
|
* @param v The current form value
|
|
66
66
|
*/
|
|
67
67
|
dismissCheckFn: (v: ReturnType<T['getRawValue']>) => unknown | Promise<unknown> | Observable<unknown>;
|
|
68
|
+
/**
|
|
69
|
+
* A custom compare function to compare the current form value to the default value.
|
|
70
|
+
* By default, a deep comparison will be used.
|
|
71
|
+
*
|
|
72
|
+
* @default (currentValue, defaultValue) => equal(currentValue, defaultValue)
|
|
73
|
+
*/
|
|
74
|
+
compareFn?: (currentValue: ReturnType<T['getRawValue']>, defaultValue: ReturnType<T['getRawValue']>) => boolean;
|
|
68
75
|
};
|
|
69
76
|
/**
|
|
70
77
|
* A utility function to enhance the ux of overlays containing forms.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/cdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.1",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"css": "./src/lib/styles/index.css",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@angular/animations": "17.3.4",
|
|
18
|
-
"@angular/cdk": "17.3.
|
|
18
|
+
"@angular/cdk": "17.3.4",
|
|
19
19
|
"@angular/common": "17.3.4",
|
|
20
20
|
"@angular/core": "17.3.4",
|
|
21
21
|
"@angular/forms": "17.3.4",
|