@yuuvis/client-core 2.20.1 → 3.0.0-beta.20.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 +160 -159
- package/fesm2022/yuuvis-client-core.mjs.map +1 -1
- package/index.d.ts +3255 -68
- package/package.json +6 -6
- package/lib/common/pipes/filesize.pipe.d.ts +0 -18
- package/lib/common/pipes/index.d.ts +0 -5
- package/lib/common/pipes/keys.pipe.d.ts +0 -10
- package/lib/common/pipes/locale-date.pipe.d.ts +0 -12
- package/lib/common/pipes/locale-number.pipe.d.ts +0 -47
- package/lib/common/pipes/safe-html.pipe.d.ts +0 -28
- package/lib/common/services/native-notifications.d.ts +0 -8
- package/lib/common/services/native-notifications.interface.d.ts +0 -5
- package/lib/model/dms-object.interface.d.ts +0 -22
- package/lib/model/dms-object.model.d.ts +0 -26
- package/lib/model/file-upload-options.model.d.ts +0 -5
- package/lib/model/object-flavor.interface.d.ts +0 -46
- package/lib/model/range-value.interface.d.ts +0 -9
- package/lib/model/yuv-error.model.d.ts +0 -18
- package/lib/model/yuv-user.model.d.ts +0 -42
- package/lib/provider/available-backend-apps/available-backend-apps.model.d.ts +0 -6
- package/lib/provider/available-backend-apps/available-backend-apps.provider.d.ts +0 -6
- package/lib/provider/available-backend-apps/index.d.ts +0 -2
- package/lib/provider/index.d.ts +0 -3
- package/lib/provider/navigation/index.d.ts +0 -3
- package/lib/provider/navigation/provide.before.unload.guard.d.ts +0 -12
- package/lib/provider/navigation/provide.navigation-protection.d.ts +0 -2
- package/lib/provider/navigation/provide.popstate-dialog.guard.d.ts +0 -14
- package/lib/provider/provide.client.core.d.ts +0 -5
- package/lib/service/audit/audit.interface.d.ts +0 -47
- package/lib/service/audit/audit.service.d.ts +0 -37
- package/lib/service/auth/auth.interceptor.d.ts +0 -6
- package/lib/service/auth/auth.interface.d.ts +0 -34
- package/lib/service/auth/auth.service.d.ts +0 -54
- package/lib/service/backend/api.enum.d.ts +0 -7
- package/lib/service/backend/backend.interface.d.ts +0 -21
- package/lib/service/backend/backend.service.d.ts +0 -145
- package/lib/service/bpm/bpm.interface.d.ts +0 -87
- package/lib/service/bpm/bpm.service.d.ts +0 -19
- package/lib/service/cache/app-cache.service.d.ts +0 -43
- package/lib/service/catalog/catalog.interface.d.ts +0 -12
- package/lib/service/catalog/catalog.service.d.ts +0 -5
- package/lib/service/client-cache/client-cache.interface.d.ts +0 -5
- package/lib/service/client-cache/client-cache.service.d.ts +0 -35
- package/lib/service/clipboard/clipboard.interface.d.ts +0 -11
- package/lib/service/clipboard/clipboard.service.d.ts +0 -24
- package/lib/service/config/config.interface.d.ts +0 -34
- package/lib/service/config/config.service.d.ts +0 -37
- package/lib/service/config/core-config.d.ts +0 -12
- package/lib/service/config/core-config.tokens.d.ts +0 -7
- package/lib/service/connection/connection.service.d.ts +0 -31
- package/lib/service/connection/offline.interceptor.d.ts +0 -6
- package/lib/service/core-init/core-init.service.d.ts +0 -5
- package/lib/service/core-init/missing-translation-handler.d.ts +0 -8
- package/lib/service/core-init/translate-json-loader.d.ts +0 -20
- package/lib/service/device/device.interface.d.ts +0 -15
- package/lib/service/device/device.service.d.ts +0 -62
- package/lib/service/dms/dms.service.d.ts +0 -207
- package/lib/service/dms/dms.service.interface.d.ts +0 -60
- package/lib/service/event/custom.events.token.d.ts +0 -3
- package/lib/service/event/event.interface.d.ts +0 -36
- package/lib/service/event/event.service.d.ts +0 -30
- package/lib/service/event/events.d.ts +0 -22
- package/lib/service/idm/idm.service.d.ts +0 -43
- package/lib/service/idm/models/idm-cached-user.model.d.ts +0 -11
- package/lib/service/idm/models/idm-user-cache.model.d.ts +0 -9
- package/lib/service/idm/models/idm-user-response.model.d.ts +0 -24
- package/lib/service/idm/models/index.d.ts +0 -4
- package/lib/service/idm/models/organization-set-entry.model.d.ts +0 -12
- package/lib/service/logger/logger.interface.d.ts +0 -10
- package/lib/service/logger/logger.service.d.ts +0 -20
- package/lib/service/notification/notification.service.d.ts +0 -71
- package/lib/service/object-config/object-config.interface.d.ts +0 -62
- package/lib/service/object-config/object-config.service.d.ts +0 -40
- package/lib/service/object-form/object-form.interface.d.ts +0 -46
- package/lib/service/object-form/object-form.model.d.ts +0 -45
- package/lib/service/pending-changes/index.d.ts +0 -4
- package/lib/service/pending-changes/pending-changes-component.interface.d.ts +0 -6
- package/lib/service/pending-changes/pending-changes-dialog.guard.service.d.ts +0 -128
- package/lib/service/pending-changes/pending-changes-guard.service.d.ts +0 -14
- package/lib/service/pending-changes/pending-changes-tab.guard.directive.d.ts +0 -9
- package/lib/service/pending-changes/pending-changes.service.d.ts +0 -58
- package/lib/service/prediction/prediction.interface.d.ts +0 -18
- package/lib/service/prediction/prediction.service.d.ts +0 -15
- package/lib/service/retention/retention.interface.d.ts +0 -5
- package/lib/service/retention/retention.service.d.ts +0 -26
- package/lib/service/search/search.service.d.ts +0 -55
- package/lib/service/search/search.service.interface.d.ts +0 -123
- package/lib/service/search/search.utils.d.ts +0 -18
- package/lib/service/session-storage/session-storage.service.d.ts +0 -15
- package/lib/service/system/system.enum.d.ts +0 -143
- package/lib/service/system/system.interface.d.ts +0 -165
- package/lib/service/system/system.service.d.ts +0 -175
- package/lib/service/toast/toast.interface.d.ts +0 -8
- package/lib/service/toast/toast.service.d.ts +0 -17
- package/lib/service/toast/toast.styles.d.ts +0 -1
- package/lib/service/upload/upload.interface.d.ts +0 -56
- package/lib/service/upload/upload.service.d.ts +0 -160
- package/lib/service/user/user-storage.service.d.ts +0 -18
- package/lib/service/user/user.providers.d.ts +0 -4
- package/lib/service/user/user.service.d.ts +0 -67
- package/lib/util/utils.d.ts +0 -123
- package/lib/util/utils.helper.enum.d.ts +0 -13
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ConfigService } from '../config/config.service';
|
|
4
|
-
import { HttpDeleteOptions, HttpOptions } from './backend.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Service for HTTP communication with the yuuvis Momentum backend.
|
|
8
|
-
*
|
|
9
|
-
* This service wraps Angular's HttpClient and provides:
|
|
10
|
-
* - Automatic base URI management for different backend services
|
|
11
|
-
* - Centralized header management (authorization, content-type, etc.)
|
|
12
|
-
* - Response caching with configurable TTL
|
|
13
|
-
* - HTTP activity tracking for session management
|
|
14
|
-
* - Standardized error handling and logging
|
|
15
|
-
*
|
|
16
|
-
* **Why Use This Service:**
|
|
17
|
-
* Applications should use BackendService instead of HttpClient directly because
|
|
18
|
-
* required headers (authentication, content-type) are automatically managed,
|
|
19
|
-
* and apps don't have to handle backend URL construction and prerequisites.
|
|
20
|
-
*
|
|
21
|
-
* **HTTP Activity Tracking:**
|
|
22
|
-
* All HTTP requests emit events via `httpCommunicationOccurred$`, which is used by
|
|
23
|
-
* SessionService and other consumers to detect user activity and keep sessions alive.
|
|
24
|
-
*
|
|
25
|
-
* @see {@link SessionService} for session management integration (Task HAR-2975)
|
|
26
|
-
*/
|
|
27
|
-
export declare class BackendService {
|
|
28
|
-
#private;
|
|
29
|
-
configService: ConfigService;
|
|
30
|
-
httpCommunicationOccurred$: Observable<void>;
|
|
31
|
-
/**
|
|
32
|
-
* OpenIdConnect authorization headers
|
|
33
|
-
*/
|
|
34
|
-
getAuthHeaders(): HttpHeaders;
|
|
35
|
-
/**
|
|
36
|
-
* Add a new header.
|
|
37
|
-
* @param key The headers name
|
|
38
|
-
* @param value The value to be added to the headers. Setting this to null
|
|
39
|
-
* will remove the header
|
|
40
|
-
*/
|
|
41
|
-
setHeader(key: string, value: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* Performs an HTTP GET request against a yuuvis Momentum backend endpoint.
|
|
44
|
-
*
|
|
45
|
-
* Automatically prepends the resolved base URI (via {@link getApiBase}) to the given `uri`,
|
|
46
|
-
* applies centralized headers (authorization, content-type) and emits an event on
|
|
47
|
-
* `httpCommunicationOccurred$` after each successful response — used by SessionService
|
|
48
|
-
* to keep the session alive.
|
|
49
|
-
*
|
|
50
|
-
* @param uri REST URI relative to the selected backend service base. Must start with `/`,
|
|
51
|
-
* e.g. `/api/dms/objects/{objectId}`.
|
|
52
|
-
* @param base Selects which backend service base URL to use.
|
|
53
|
-
* @param requestOptions Optional Angular `HttpClient` options (headers, params, responseType, etc.)
|
|
54
|
-
* merged on top of the default headers set by this service.
|
|
55
|
-
* @returns An `Observable<T>` that emits the deserialized response body and completes.
|
|
56
|
-
* Unsubscribing before completion cancels the underlying HTTP request.
|
|
57
|
-
*/
|
|
58
|
-
get<T = any>(uri: string, base?: string, requestOptions?: HttpOptions): Observable<T>;
|
|
59
|
-
/**
|
|
60
|
-
* Wrapped HTTP POST method
|
|
61
|
-
* @param uri The target REST URI
|
|
62
|
-
* @param data Data to be 'posted'
|
|
63
|
-
* @param base The Base URI (backend service) to be used
|
|
64
|
-
* @param requestOptions Additional request options
|
|
65
|
-
* @returns The return value of the target POST endpoint
|
|
66
|
-
*/
|
|
67
|
-
post<T = any>(uri: string, data?: any, base?: string, requestOptions?: HttpOptions): Observable<T>;
|
|
68
|
-
/**
|
|
69
|
-
* Performs a multipart form data POST request.
|
|
70
|
-
* @param uri The target REST URI
|
|
71
|
-
* @param formData FormData to be 'posted'
|
|
72
|
-
* @param base The Base URI (backend service) to be used
|
|
73
|
-
* @param requestOptions Additional request options (see HttpRequest for details)
|
|
74
|
-
* @returns The return value of the target POST endpoint
|
|
75
|
-
*/
|
|
76
|
-
postMultiPart(uri: string, formData: FormData, base?: string, requestOptions?: any): Observable<any>;
|
|
77
|
-
/**
|
|
78
|
-
* Wrapped HTTP PATCH method
|
|
79
|
-
* @param uri The target REST URI
|
|
80
|
-
* @param data Data to be 'patched'
|
|
81
|
-
* @param base The Base URI (backend service) to be used
|
|
82
|
-
* @param requestOptions Additional request options
|
|
83
|
-
* @returns The return value of the target PATCH endpoint
|
|
84
|
-
*/
|
|
85
|
-
patch<T = any>(uri: string, data?: any, base?: string, requestOptions?: HttpOptions): Observable<T>;
|
|
86
|
-
/**
|
|
87
|
-
* Wrapped HTTP PUT method
|
|
88
|
-
* @param uri The target REST URI
|
|
89
|
-
* @param data Data to be 'posted'
|
|
90
|
-
* @param base The Base URI (backend service) to be used
|
|
91
|
-
* @param requestOptions Additional request options
|
|
92
|
-
* @returns The return value of the target PUT endpoint
|
|
93
|
-
*/
|
|
94
|
-
put<T = any>(uri: string, data?: any, base?: string, requestOptions?: HttpOptions): Observable<T>;
|
|
95
|
-
/**
|
|
96
|
-
* Wrapped HTTP DELETE method
|
|
97
|
-
* @param uri The target REST URI
|
|
98
|
-
* @param base The Base URI (backend service) to be used
|
|
99
|
-
* @param requestOptions Additional request options
|
|
100
|
-
* @returns The return value of the target DELETE endpoint
|
|
101
|
-
*/
|
|
102
|
-
delete<T = any>(uri: string, base?: string, requestOptions?: HttpDeleteOptions): Observable<T>;
|
|
103
|
-
/**
|
|
104
|
-
* @ignore
|
|
105
|
-
* Cache for small requests like icons and configs
|
|
106
|
-
*
|
|
107
|
-
* @param string uri
|
|
108
|
-
* @returns Observable<any>
|
|
109
|
-
*/
|
|
110
|
-
getViaCache(uri: string): Observable<any>;
|
|
111
|
-
/**
|
|
112
|
-
* @ignore
|
|
113
|
-
* Temporary Cache for multiple identical requests
|
|
114
|
-
*
|
|
115
|
-
* @param string id
|
|
116
|
-
* @param Function request
|
|
117
|
-
* @returns Observable<any>
|
|
118
|
-
*/
|
|
119
|
-
getViaTempCache(id: string, request?: () => Observable<object>): Observable<any>;
|
|
120
|
-
download(uri: string, filename?: string): void;
|
|
121
|
-
/**
|
|
122
|
-
* Gets the base URI for an API endpoint
|
|
123
|
-
* @param api The API to get the base URI for. Leaving this blank will return
|
|
124
|
-
* base URI for the web API
|
|
125
|
-
* @param origin The flag to include location origin
|
|
126
|
-
* @returns Base URI for the given API.
|
|
127
|
-
*/
|
|
128
|
-
getApiBase(api?: string, origin?: boolean): string;
|
|
129
|
-
/**
|
|
130
|
-
* @ignore
|
|
131
|
-
*/
|
|
132
|
-
getHttpOptions(requestOptions?: HttpOptions): HttpOptions;
|
|
133
|
-
/**
|
|
134
|
-
* Batch service
|
|
135
|
-
*/
|
|
136
|
-
batch(requests: {
|
|
137
|
-
method?: string;
|
|
138
|
-
uri: string;
|
|
139
|
-
body?: any;
|
|
140
|
-
base?: string;
|
|
141
|
-
requestOptions?: HttpOptions;
|
|
142
|
-
}[]): Observable<any[]>;
|
|
143
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BackendService, never>;
|
|
144
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BackendService>;
|
|
145
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
export declare const ProcessAction: {
|
|
2
|
-
complete: string;
|
|
3
|
-
claim: string;
|
|
4
|
-
delegate: string;
|
|
5
|
-
resolve: string;
|
|
6
|
-
save: string;
|
|
7
|
-
};
|
|
8
|
-
export interface Process {
|
|
9
|
-
id: string;
|
|
10
|
-
attachments: string[];
|
|
11
|
-
businessKey: string;
|
|
12
|
-
deleteReason: string;
|
|
13
|
-
durationInMillis: number;
|
|
14
|
-
endActivityId: string;
|
|
15
|
-
endTime: Date;
|
|
16
|
-
initiator: ProcessUser;
|
|
17
|
-
name: string;
|
|
18
|
-
processDefinition: {
|
|
19
|
-
description: string;
|
|
20
|
-
id: string;
|
|
21
|
-
idPrefix: string;
|
|
22
|
-
name: string;
|
|
23
|
-
};
|
|
24
|
-
startActivityId: string;
|
|
25
|
-
startTime: Date;
|
|
26
|
-
startUserId: string;
|
|
27
|
-
suspended?: boolean;
|
|
28
|
-
variables: ProcessVariable[];
|
|
29
|
-
}
|
|
30
|
-
export interface ProcessCreatePayload extends ProcessPostPayload {
|
|
31
|
-
processDefinitionKey: string;
|
|
32
|
-
name?: string;
|
|
33
|
-
businessKey?: string;
|
|
34
|
-
returnVariables?: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface ProcessPostPayload {
|
|
37
|
-
variables?: ProcessVariable[];
|
|
38
|
-
attachments?: string[];
|
|
39
|
-
subject?: string;
|
|
40
|
-
}
|
|
41
|
-
export interface ProcessVariable {
|
|
42
|
-
name: string;
|
|
43
|
-
type?: string;
|
|
44
|
-
value: any;
|
|
45
|
-
readonly?: boolean;
|
|
46
|
-
scope?: string;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Tasks are basically activities defined by a process.
|
|
50
|
-
* Processes may contain several tasks.
|
|
51
|
-
*/
|
|
52
|
-
export interface InboxTask {
|
|
53
|
-
id: string;
|
|
54
|
-
processInstanceId: string;
|
|
55
|
-
assignee: ProcessUser;
|
|
56
|
-
claimTime: Date;
|
|
57
|
-
createTime: Date;
|
|
58
|
-
dueDate: Date;
|
|
59
|
-
description: string;
|
|
60
|
-
delegationState?: string;
|
|
61
|
-
formKey: string;
|
|
62
|
-
initiator: ProcessUser;
|
|
63
|
-
name: string;
|
|
64
|
-
owner: ProcessUser;
|
|
65
|
-
parentTaskId: string;
|
|
66
|
-
processDefinition: {
|
|
67
|
-
id: string;
|
|
68
|
-
idPrefix: string;
|
|
69
|
-
};
|
|
70
|
-
subject: string;
|
|
71
|
-
suspended: false;
|
|
72
|
-
variables: ProcessVariable[];
|
|
73
|
-
resolvedValues?: {
|
|
74
|
-
[id: string]: string;
|
|
75
|
-
};
|
|
76
|
-
attachments: string[];
|
|
77
|
-
}
|
|
78
|
-
export interface ProcessUser {
|
|
79
|
-
id: string;
|
|
80
|
-
title: string;
|
|
81
|
-
}
|
|
82
|
-
export interface FetchTaskOptions {
|
|
83
|
-
businessKey?: string;
|
|
84
|
-
includeProcessVar?: boolean;
|
|
85
|
-
isCompleted?: boolean;
|
|
86
|
-
processDefinitionKey?: string;
|
|
87
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FetchTaskOptions, Process, ProcessCreatePayload, ProcessPostPayload } from './bpm.interface';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BpmService {
|
|
5
|
-
#private;
|
|
6
|
-
startProcess(payload: ProcessCreatePayload): Observable<any>;
|
|
7
|
-
/**
|
|
8
|
-
* Finsihes a task.
|
|
9
|
-
* @param taskId ID of the taks to finish
|
|
10
|
-
* @param payload Data to be send with the complete request (may contain attachments, a new subject or variables)
|
|
11
|
-
*/
|
|
12
|
-
completeTask(taskId: string, payload?: ProcessPostPayload): Observable<any>;
|
|
13
|
-
updateTask(taskId: string, payload?: ProcessPostPayload): Observable<any>;
|
|
14
|
-
getProcessPoll(): Observable<any>;
|
|
15
|
-
getProcessInstance(processDefinitionKey: string, options?: FetchTaskOptions): Observable<Process>;
|
|
16
|
-
deleteProcess(processInstanceId: string): Observable<any>;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BpmService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BpmService>;
|
|
19
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Service for saving or caching data on the users device. It uses the most efficient storage
|
|
5
|
-
* available (IndexDB, localstorage, ...) on the device. Depending on the type of storage used,
|
|
6
|
-
* its limitations apply.
|
|
7
|
-
*/
|
|
8
|
-
export declare class AppCacheService {
|
|
9
|
-
#private;
|
|
10
|
-
/**
|
|
11
|
-
* Set item in storage.
|
|
12
|
-
* @param key The key under which the value is stored.
|
|
13
|
-
* @param value The value to store.
|
|
14
|
-
* @returns An Observable that emits true when the operation is successful.
|
|
15
|
-
*/
|
|
16
|
-
setItem<T = any>(key: string, value: T): Observable<boolean>;
|
|
17
|
-
/**
|
|
18
|
-
* Get item from storage.
|
|
19
|
-
* @param key The key of the item to retrieve.
|
|
20
|
-
* @returns An Observable that emits the retrieved value.
|
|
21
|
-
*/
|
|
22
|
-
getItem<T = any>(key: string): Observable<T>;
|
|
23
|
-
/**
|
|
24
|
-
* Remove item from storage.
|
|
25
|
-
* @param key The key of the item to remove.
|
|
26
|
-
* @returns An Observable that emits true when the operation is successful.
|
|
27
|
-
*/
|
|
28
|
-
removeItem(key: string): Observable<boolean>;
|
|
29
|
-
/**
|
|
30
|
-
* Clear storage, optionally filtered by a function.
|
|
31
|
-
* @param filter A function to filter which keys to clear.
|
|
32
|
-
* @returns An Observable that emits true when the operation is successful.
|
|
33
|
-
*/
|
|
34
|
-
clear(filter?: (key: any) => boolean): Observable<boolean>;
|
|
35
|
-
/**
|
|
36
|
-
* Get all storage keys.
|
|
37
|
-
* @returns An Observable that emits an array of all storage keys.
|
|
38
|
-
*/
|
|
39
|
-
getStorageKeys(): Observable<string[]>;
|
|
40
|
-
setStorage(options: any): Observable<any>;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppCacheService, never>;
|
|
42
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppCacheService>;
|
|
43
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { CacheEntry } from './client-cache.interface';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Service for client-side caching of data with expiry handling.
|
|
6
|
-
* Provides methods to get, update, and invalidate cache entries.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ClientCacheService {
|
|
9
|
-
#private;
|
|
10
|
-
/**
|
|
11
|
-
* Get cached entry by ID.
|
|
12
|
-
* @param id The ID of the cache entry.
|
|
13
|
-
* @param keepIfExpired Whether to return/keep the entry even if it is expired.
|
|
14
|
-
* @returns The cached data or null if not found/expired.
|
|
15
|
-
*/
|
|
16
|
-
getFromCache<T>(id: string, keepIfExpired?: boolean): Observable<T | null>;
|
|
17
|
-
/**
|
|
18
|
-
* Update or add cache entry.
|
|
19
|
-
* @param id The ID of the cache entry.
|
|
20
|
-
* @param data The data to cache.
|
|
21
|
-
* @param ttl TimeToLeave - The cache expiry time in milliseconds (how long to keep the cache entry valid).
|
|
22
|
-
*/
|
|
23
|
-
updateCache<T>(id: string, data: T, ttl?: number): Observable<CacheEntry<T>>;
|
|
24
|
-
/**
|
|
25
|
-
* Invalidate cache entry by ID. This will remove the entry from the cache.
|
|
26
|
-
* @param id The ID of the cache entry to invalidate.
|
|
27
|
-
*/
|
|
28
|
-
invalidateCache(id: string): Observable<boolean>;
|
|
29
|
-
/**
|
|
30
|
-
* Clear all client cache entries.
|
|
31
|
-
*/
|
|
32
|
-
clear(): Observable<boolean>;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClientCacheService, never>;
|
|
34
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ClientCacheService>;
|
|
35
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DmsObject } from "../../model/dms-object.model";
|
|
2
|
-
export interface ClipboardStore {
|
|
3
|
-
buckets?: Record<string, ClipboardData>;
|
|
4
|
-
main?: ClipboardData;
|
|
5
|
-
}
|
|
6
|
-
export interface ClipboardData {
|
|
7
|
-
mode?: ClipboardDataMode;
|
|
8
|
-
files?: File[];
|
|
9
|
-
objects?: DmsObject[];
|
|
10
|
-
}
|
|
11
|
-
export type ClipboardDataMode = 'copy' | 'cut';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Signal } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DmsObject } from '../../model/dms-object.model';
|
|
4
|
-
import { ClipboardData, ClipboardDataMode } from './clipboard.interface';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ClipboardService {
|
|
7
|
-
#private;
|
|
8
|
-
clipboard(bucket?: string): Signal<ClipboardData | undefined>;
|
|
9
|
-
clipboard$(bucket?: string): Observable<ClipboardData | undefined>;
|
|
10
|
-
paste$(bucket?: string): Observable<ClipboardData>;
|
|
11
|
-
getClipboardData(bucket?: string): ClipboardData | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Add objects to the clipboard
|
|
14
|
-
* @param bucket Buckets are ways to separate data from the global scope.
|
|
15
|
-
* If you have an app that would like to have a separate section in the clipboard
|
|
16
|
-
* you'll use a unique bucket to store your stuff. When observing chages to the
|
|
17
|
-
* clipboard you couls as well provide the bucket and you will only get
|
|
18
|
-
*/
|
|
19
|
-
addObjects(objects: DmsObject[], mode: ClipboardDataMode, bucket?: string): void;
|
|
20
|
-
clear(bucket?: string): void;
|
|
21
|
-
addToNavigatorClipBoard(data: string): Promise<void>;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, never>;
|
|
23
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ClipboardService>;
|
|
24
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for the applications main config file
|
|
3
|
-
* @ignore
|
|
4
|
-
*/
|
|
5
|
-
export interface YuvConfig {
|
|
6
|
-
core: {
|
|
7
|
-
languages: YuvConfigLanguages[];
|
|
8
|
-
logging?: {
|
|
9
|
-
level: 'debug' | 'error' | 'warn' | 'info';
|
|
10
|
-
};
|
|
11
|
-
permissions?: {
|
|
12
|
-
retentionManagerRole?: string;
|
|
13
|
-
advancedUserRole?: string;
|
|
14
|
-
manageSettingsRole?: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
location?: {
|
|
18
|
-
hostname?: string;
|
|
19
|
-
port?: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* interface providing localization of application
|
|
24
|
-
*/
|
|
25
|
-
export interface YuvConfigLanguages {
|
|
26
|
-
iso: string;
|
|
27
|
-
label: string;
|
|
28
|
-
dir?: Direction;
|
|
29
|
-
fallback?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare enum Direction {
|
|
32
|
-
LTR = "ltr",
|
|
33
|
-
RTL = "rtl"
|
|
34
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { YuvConfig, YuvConfigLanguages } from './config.interface';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Load and provide configuration for hole apllication while application is inizialized.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ConfigService {
|
|
7
|
-
private translate;
|
|
8
|
-
static GLOBAL_RESOURCES: string;
|
|
9
|
-
static PARSER(c: any): any;
|
|
10
|
-
static GLOBAL_MAIN_CONFIG(prefix?: 'system' | 'admin' | ''): string;
|
|
11
|
-
static GLOBAL_MAIN_CONFIG_LANG(iso?: string, prefix?: 'system' | 'admin' | ''): string;
|
|
12
|
-
static GLOBAL_RESOURCES_PATH(section?: string, prefix?: 'system' | 'admin' | ''): string;
|
|
13
|
-
private cfg?;
|
|
14
|
-
/**
|
|
15
|
-
* Set during app init (see CoreInit)
|
|
16
|
-
* @ignore
|
|
17
|
-
*/
|
|
18
|
-
set(cfg: YuvConfig): void;
|
|
19
|
-
get(configKey: string): any;
|
|
20
|
-
extendTranslations(translations: any, lang?: string): void;
|
|
21
|
-
extendConfig(configs: YuvConfig[]): void;
|
|
22
|
-
private _mergeConfigs;
|
|
23
|
-
/**
|
|
24
|
-
* Getter for the available client locales
|
|
25
|
-
* @returns available client locales
|
|
26
|
-
*/
|
|
27
|
-
getClientLocales(): YuvConfigLanguages[];
|
|
28
|
-
getApiBase(api?: string, origin?: boolean): string;
|
|
29
|
-
/**
|
|
30
|
-
* Get the default client locale
|
|
31
|
-
* @returns ISO string of the locale
|
|
32
|
-
*/
|
|
33
|
-
getDefaultClientLocale(): string;
|
|
34
|
-
private _getCoreConfig;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService, never>;
|
|
36
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService>;
|
|
37
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Service to monitor the online/offline state of the application.
|
|
5
|
-
* It listens to the browser's online and offline events and provides an observable
|
|
6
|
-
* to track the current connection state.
|
|
7
|
-
*
|
|
8
|
-
* An observable `connection$` is provided which emits the current connection state
|
|
9
|
-
* whenever the online or offline state changes. The initial state is determined by
|
|
10
|
-
* the `window.navigator.onLine` property.
|
|
11
|
-
*/
|
|
12
|
-
export declare class ConnectionService {
|
|
13
|
-
private currentState;
|
|
14
|
-
private connectionStateSource;
|
|
15
|
-
connection$: Observable<ConnectionState>;
|
|
16
|
-
/**
|
|
17
|
-
* @ignore
|
|
18
|
-
*/
|
|
19
|
-
constructor();
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConnectionService, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConnectionService>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Check a connection state of a client
|
|
25
|
-
*/
|
|
26
|
-
export interface ConnectionState {
|
|
27
|
-
/**
|
|
28
|
-
* whether or not the application is online.
|
|
29
|
-
*/
|
|
30
|
-
isOnline: boolean;
|
|
31
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Http Offline interceptor trys to serving offline content for method/url
|
|
5
|
-
*/
|
|
6
|
-
export declare function OfflineInterceptorFnc(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { YuvConfig } from '../config/config.interface';
|
|
2
|
-
/**
|
|
3
|
-
* Providing functions,that are are injected at application startup and executed during app initialization.
|
|
4
|
-
*/
|
|
5
|
-
export declare const init_moduleFnc: () => import("rxjs").Observable<boolean | import("@yuuvis/client-core").YuvUser | YuvConfig[]>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
|
|
2
|
-
/**
|
|
3
|
-
* Handles missing translations
|
|
4
|
-
* @ignore
|
|
5
|
-
*/
|
|
6
|
-
export declare class EoxMissingTranslationHandler implements MissingTranslationHandler {
|
|
7
|
-
handle(params: MissingTranslationHandlerParams): string;
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { CoreConfig } from '../config/core-config';
|
|
5
|
-
/**
|
|
6
|
-
* Loader that fetches translations based on the configured locations
|
|
7
|
-
* @ignore
|
|
8
|
-
*/
|
|
9
|
-
export declare class EoxTranslateJsonLoader implements TranslateLoader {
|
|
10
|
-
http: HttpClient;
|
|
11
|
-
config: CoreConfig;
|
|
12
|
-
constructor(http: HttpClient, config: CoreConfig);
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @param string lang
|
|
16
|
-
* @returns Observable<Object>
|
|
17
|
-
*/
|
|
18
|
-
getTranslation(lang: string): Observable<Record<string, string>>;
|
|
19
|
-
private loadTranslationFile;
|
|
20
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare enum DeviceScreenOrientation {
|
|
2
|
-
PORTRAIT = "portrait",
|
|
3
|
-
LANDSCAPE = "landscape"
|
|
4
|
-
}
|
|
5
|
-
export interface DeviceScreen {
|
|
6
|
-
size: ScreenSize;
|
|
7
|
-
orientation: DeviceScreenOrientation;
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
}
|
|
11
|
-
export interface DeviceScreenBounds {
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
}
|
|
15
|
-
export type ScreenSize = 's' | 'm' | 'l' | 'xl';
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { DeviceInfo } from 'ngx-device-detector';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { DeviceScreen } from './device.interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated This service is deprecated. Please use the DeviceService from the `@yuuvis/material` package instead.
|
|
7
|
-
*
|
|
8
|
-
* This service is used to adapt styles and designs of the client to
|
|
9
|
-
* different devices and screen sizes.
|
|
10
|
-
*
|
|
11
|
-
* Using `screenChange$` observable you are able to monitor changes to
|
|
12
|
-
* the screen size and act upon it.
|
|
13
|
-
*
|
|
14
|
-
* This service will also adds attributes to the body tag that reflect the
|
|
15
|
-
* current screen/device state. This way you can apply secific styles in your
|
|
16
|
-
* css files for different screen resolutions and orientations.
|
|
17
|
-
*
|
|
18
|
-
* Attributes applied to the body tag are:
|
|
19
|
-
*
|
|
20
|
-
* - `data-screen` - [s, m, l, xl] - for different screen sizes
|
|
21
|
-
* (s: for mobile phone like screen sizes, m: for tablet like screen
|
|
22
|
-
* sizes, 'l': for desktop like screen sizes, 'xl': for screen sizes exceeding
|
|
23
|
-
* the desktop screen size).
|
|
24
|
-
*
|
|
25
|
-
* - `data-orientation` - [portrait, landscape] - for the current screen orientation
|
|
26
|
-
*
|
|
27
|
-
* - `data-touch-enabled` - [true] - if the device has touch capabilities (won't be added if the device doesn't have touch capabilities)
|
|
28
|
-
*
|
|
29
|
-
* ```html
|
|
30
|
-
* <body data-screen-size="s" data-screen-orientation="portrait" data-touch-enabled="true">
|
|
31
|
-
* ...
|
|
32
|
-
* </body>
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare class DeviceService {
|
|
36
|
-
#private;
|
|
37
|
-
screenChange$: Observable<DeviceScreen>;
|
|
38
|
-
/**
|
|
39
|
-
* Signal to indicate if the screen size is small (e.g. mobile phone).
|
|
40
|
-
* This will only be triggered if `supportsSmallScreens` is set to true.
|
|
41
|
-
* Major components will use this metric to adapt to 'small screen behavior' and so can you
|
|
42
|
-
*/
|
|
43
|
-
smallScreenLayout: import("@angular/core").WritableSignal<boolean>;
|
|
44
|
-
/**
|
|
45
|
-
* if the device is a mobile device (android / iPhone / windows-phone etc)
|
|
46
|
-
*/
|
|
47
|
-
isMobile: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* if the device us a tablet (iPad etc)
|
|
50
|
-
*/
|
|
51
|
-
isTablet: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* if the app is running on a Desktop browser
|
|
54
|
-
*/
|
|
55
|
-
isDesktop: boolean;
|
|
56
|
-
info?: DeviceInfo;
|
|
57
|
-
isTouchEnabled: boolean;
|
|
58
|
-
constructor();
|
|
59
|
-
init(supportsSmallScreens?: boolean): void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DeviceService, never>;
|
|
61
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DeviceService>;
|
|
62
|
-
}
|