@fundamental-ngx/core 0.58.0-rc.5 → 0.58.0-rc.51
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/combobox/index.d.ts +4 -0
- package/fesm2022/fundamental-ngx-core-avatar.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-avatar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-combobox.mjs +27 -3
- package/fesm2022/fundamental-ngx-core-combobox.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-dialog.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-form.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-notification.mjs +3 -1
- package/fesm2022/fundamental-ngx-core-notification.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-object-status.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-object-status.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-popover.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-shellbar.mjs +12 -3
- package/fesm2022/fundamental-ngx-core-shellbar.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-table.mjs +4 -4
- package/fesm2022/fundamental-ngx-core-table.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-core-user-menu.mjs +2 -2
- package/fesm2022/fundamental-ngx-core-user-menu.mjs.map +1 -1
- package/notification/index.d.ts +2 -0
- package/package.json +30 -30
- package/shellbar/index.d.ts +8 -2
|
@@ -764,6 +764,8 @@ class NotificationConfig {
|
|
|
764
764
|
* @default true
|
|
765
765
|
*/
|
|
766
766
|
this.shouldTrapFocus = true;
|
|
767
|
+
/** Whether to dismiss the notification on router navigation start. */
|
|
768
|
+
this.closeOnNavigation = true;
|
|
767
769
|
}
|
|
768
770
|
}
|
|
769
771
|
|
|
@@ -975,7 +977,7 @@ class NotificationComponent extends AbstractFdNgxClass {
|
|
|
975
977
|
_listenAndCloseOnNavigation() {
|
|
976
978
|
if (this._router && this._notificationRef) {
|
|
977
979
|
this._router.events
|
|
978
|
-
.pipe(filter((event) => event instanceof NavigationStart && this.closeOnNavigation), takeUntilDestroyed(this._destroyRef))
|
|
980
|
+
.pipe(filter((event) => event instanceof NavigationStart && !!this._notificationConfig?.closeOnNavigation), takeUntilDestroyed(this._destroyRef))
|
|
979
981
|
.subscribe(() => this._notificationRef?.dismiss());
|
|
980
982
|
}
|
|
981
983
|
}
|