@yuuvis/client-core 2.17.0 → 2.19.0
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/fesm2022/yuuvis-client-core.mjs +96 -17
- package/fesm2022/yuuvis-client-core.mjs.map +1 -1
- package/index.d.ts +2 -3
- package/lib/provider/index.d.ts +3 -0
- package/lib/provider/navigation/index.d.ts +3 -0
- package/lib/provider/navigation/provide.before.unload.guard.d.ts +12 -0
- package/lib/provider/navigation/provide.navigation-protection.d.ts +2 -0
- package/lib/provider/navigation/provide.popstate-dialog.guard.d.ts +14 -0
- package/lib/{provide.client.core.d.ts → provider/provide.client.core.d.ts} +1 -1
- package/package.json +1 -1
- package/lib/assets/i18n/de.json +0 -1
- package/lib/assets/i18n/en.json +0 -1
- /package/lib/{service → provider}/available-backend-apps/available-backend-apps.model.d.ts +0 -0
- /package/lib/{service → provider}/available-backend-apps/available-backend-apps.provider.d.ts +0 -0
- /package/lib/{service → provider}/available-backend-apps/index.d.ts +0 -0
package/index.d.ts
CHANGED
|
@@ -34,8 +34,8 @@ export * from './lib/service/dms/dms.service.interface';
|
|
|
34
34
|
export * from './lib/service/event/event.interface';
|
|
35
35
|
export * from './lib/service/event/event.service';
|
|
36
36
|
export * from './lib/service/event/events';
|
|
37
|
-
export * from './lib/service/idm/models';
|
|
38
37
|
export * from './lib/service/idm/idm.service';
|
|
38
|
+
export * from './lib/service/idm/models';
|
|
39
39
|
export * from './lib/service/logger/logger.interface';
|
|
40
40
|
export * from './lib/service/logger/logger.service';
|
|
41
41
|
export * from './lib/service/notification/notification.service';
|
|
@@ -66,5 +66,4 @@ export * from './lib/util/utils';
|
|
|
66
66
|
export * from './lib/util/utils.helper.enum';
|
|
67
67
|
export * from './lib/common/pipes';
|
|
68
68
|
export * from './lib/common/services/native-notifications';
|
|
69
|
-
export * from './lib/
|
|
70
|
-
export * from './lib/service/available-backend-apps';
|
|
69
|
+
export * from './lib/provider';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Registers a global `beforeunload` event listener that prevents the browser
|
|
4
|
+
* from navigating away (tab close / reload) whenever there are pending tasks
|
|
5
|
+
* tracked by {@link PendingChangesService}.
|
|
6
|
+
*
|
|
7
|
+
* Usage in `app.config.ts`:
|
|
8
|
+
* ```ts
|
|
9
|
+
* provideBeforeUnloadProtection()
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare function provideBeforeUnloadProtection(): EnvironmentProviders;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Provides environment-level protection against the browser back/forward buttons
|
|
4
|
+
* while a Material dialog is open.
|
|
5
|
+
*
|
|
6
|
+
* Behavior:
|
|
7
|
+
* 1. Listens for the browser `popstate` event (triggered by back/forward navigation).
|
|
8
|
+
* 2. If at least one `MatDialog` is open, the URL is immediately restored via
|
|
9
|
+
* `history.pushState` so the Angular router does not pick up the navigation.
|
|
10
|
+
* 3. If `PendingChangesService` reports a pending task the user is prompted for
|
|
11
|
+
* confirmation — the topmost dialog is closed only when the user agrees to discard.
|
|
12
|
+
* 4. If there are no pending changes the topmost dialog is closed directly.
|
|
13
|
+
*/
|
|
14
|
+
export declare function providePopstateDialogProtection(): EnvironmentProviders;
|
|
@@ -2,4 +2,4 @@ import { EnvironmentProviders } from '@angular/core';
|
|
|
2
2
|
export interface YuvClientCoreConfig {
|
|
3
3
|
translations: string[];
|
|
4
4
|
}
|
|
5
|
-
export declare const provideYuvClientCore: (options?: YuvClientCoreConfig, customEvents?: string[], customEventsTrustedOrigin?: string[]) => EnvironmentProviders;
|
|
5
|
+
export declare const provideYuvClientCore: (options?: YuvClientCoreConfig, customEvents?: string[], customEventsTrustedOrigin?: string[], disableBeforeUnloadProtection?: boolean, disablePopstateDialogProtection?: boolean) => EnvironmentProviders;
|
package/package.json
CHANGED
package/lib/assets/i18n/de.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
package/lib/assets/i18n/en.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
File without changes
|
/package/lib/{service → provider}/available-backend-apps/available-backend-apps.provider.d.ts
RENAMED
|
File without changes
|
|
File without changes
|