@yuuvis/client-core 2.7.0 → 2.8.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/index.d.ts CHANGED
@@ -65,3 +65,4 @@ export * from './lib/util/utils.helper.enum';
65
65
  export * from './lib/common/pipes';
66
66
  export * from './lib/common/services/native-notifications';
67
67
  export * from './lib/provide.client.core';
68
+ export * from './lib/service/available-backend-apps';
@@ -0,0 +1,6 @@
1
+ export type AvailabilityState = 'enabled' | 'disabled';
2
+ export type Requirements = Record<string, string[]>;
3
+ export interface YuvAvailableBackendApps {
4
+ name: string;
5
+ state: AvailabilityState;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { InjectionToken, Provider } from '@angular/core';
2
+ import { Requirements, YuvAvailableBackendApps } from './available-backend-apps.model';
3
+ export declare const AVAILABLE_BACKEND_APPS: InjectionToken<YuvAvailableBackendApps[] | undefined>;
4
+ export declare const provideAvailabilityManagement: (user: YuvAvailableBackendApps[]) => Provider;
5
+ export declare const CLIENT_APP_REQUIREMENTS: InjectionToken<Requirements | null>;
6
+ export declare const provideRequirements: (requirements: Requirements) => Provider;
@@ -0,0 +1,2 @@
1
+ export * from './available-backend-apps.model';
2
+ export * from './available-backend-apps.provider';
@@ -44,7 +44,8 @@ export declare class PendingChangesService {
44
44
  * Returns whether or not the component|service has pending tasks.
45
45
  * Checks via confirm dialog
46
46
  * @param component
47
- * @returns
47
+ * @returns false if there are no pending changes or user confirmed
48
+ * to continue, true if there are pending changes and user canceled the action
48
49
  */
49
50
  check(component?: PendingChangesComponent): boolean;
50
51
  checkForPendingTasks(taskIds: string | string[]): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-core",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {