@yuuvis/client-core 2.20.0 → 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 +173 -169
- 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,160 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { FileUploadOptions } from '../../model/file-upload-options.model';
|
|
3
|
-
import { ProgressStatus } from './upload.interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Service for providing upload of different object types into a client.
|
|
7
|
-
*/
|
|
8
|
-
export declare class UploadService {
|
|
9
|
-
#private;
|
|
10
|
-
status$: Observable<ProgressStatus>;
|
|
11
|
-
uploadStatus$: Observable<boolean | null>;
|
|
12
|
-
/**
|
|
13
|
-
* Upload a file.
|
|
14
|
-
* @param url The URL to upload the file to
|
|
15
|
-
* @param file The file to be uploaded
|
|
16
|
-
* @param label A label that will show up in the upload overlay dialog while uploading
|
|
17
|
-
*
|
|
18
|
-
* @deprecated use uploadFile instead. `label`, `silent` as well as `scope` can be provided through `options`.
|
|
19
|
-
*/
|
|
20
|
-
upload(url: string, file: File, label?: string, silent?: boolean): Observable<any>;
|
|
21
|
-
/**
|
|
22
|
-
* Uploads a single file to the specified URL using the structured `FileUploadOptions` object.
|
|
23
|
-
*
|
|
24
|
-
* This is the preferred alternative to the legacy `upload()` method. It accepts a typed
|
|
25
|
-
* options object instead of individual parameters, which makes it easier to pass optional
|
|
26
|
-
* settings such as `silent` mode and `scope` without relying on positional arguments.
|
|
27
|
-
*
|
|
28
|
-
* **Behavior:**
|
|
29
|
-
* - If `options.silent` is `false` (default), the upload appears in the upload overlay dialog
|
|
30
|
-
* and progress is tracked via `status$`
|
|
31
|
-
* - If `options.silent` is `true`, the upload runs quietly in the background with no UI feedback
|
|
32
|
-
* - `options.label` is shown in the overlay dialog during upload; falls back to `file.name` if omitted
|
|
33
|
-
* - `options.scope` tags the upload with a named scope, enabling an `UploadProgressComponent`
|
|
34
|
-
* configured with the same scope to display only the uploads relevant to its section of the UI
|
|
35
|
-
*
|
|
36
|
-
* @param url - The backend URL to POST the file to
|
|
37
|
-
* @param file - The `File` object to be uploaded
|
|
38
|
-
* @param options - Upload configuration: label, silent mode, and optional scope
|
|
39
|
-
* @returns An `Observable` that emits the server response on completion
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```typescript
|
|
43
|
-
* // Standard upload with progress indicator
|
|
44
|
-
* this.uploadService.uploadFile(url, file, { label: 'Uploading contract.pdf' }).subscribe();
|
|
45
|
-
*
|
|
46
|
-
* // Silent upload (no UI, runs in background)
|
|
47
|
-
* this.uploadService.uploadFile(url, file, { label: 'document.pdf', silent: true }).subscribe();
|
|
48
|
-
*
|
|
49
|
-
* // Scoped upload — only the UploadProgressComponent with scope 'profile-editor' will show this
|
|
50
|
-
* this.uploadService.uploadFile(url, file, { label: 'photo.jpg', scope: 'profile-editor' }).subscribe();
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
uploadFile(url: string, file: File, options: FileUploadOptions): Observable<unknown>;
|
|
54
|
-
/**
|
|
55
|
-
* Upload files using multipart upload.
|
|
56
|
-
* @param url The URL to upload the files to
|
|
57
|
-
* @param files The files to be uploaded
|
|
58
|
-
* @param data Data to be send along with the files
|
|
59
|
-
* @param label A label that will show up in the upload overlay dialog while uploading
|
|
60
|
-
*
|
|
61
|
-
* @deprecated Use multipartUpload(url, files, options, data) instead. Provide scope through options.
|
|
62
|
-
*/
|
|
63
|
-
uploadMultipart(url: string, files: File[], data?: any, label?: string, silent?: boolean): Observable<any>;
|
|
64
|
-
/**
|
|
65
|
-
* Uploads multiple files to the specified URL using a multipart/form-data request.
|
|
66
|
-
*
|
|
67
|
-
* This is the preferred method for multi-file uploads. It accepts a typed `FileUploadOptions`
|
|
68
|
-
* object for configuration, making it easier to pass `scope` and other options compared
|
|
69
|
-
* to the legacy `uploadMultipart()` overload.
|
|
70
|
-
*
|
|
71
|
-
* **Behavior:**
|
|
72
|
-
* - All files are bundled into a single `FormData` payload under the `files` field
|
|
73
|
-
* - Optional `data` is appended as a JSON blob under the `data` field
|
|
74
|
-
* - If `options.silent` is `false` (default), upload progress is shown in the overlay dialog
|
|
75
|
-
* - If `options.silent` is `true`, the upload runs in the background with no UI feedback
|
|
76
|
-
* - `options.scope` tags the upload with a named scope, enabling an `UploadProgressComponent`
|
|
77
|
-
* configured with the same scope to display only the uploads relevant to its section of the UI
|
|
78
|
-
*
|
|
79
|
-
* @param url - The backend URL to POST the multipart request to
|
|
80
|
-
* @param files - Array of `File` objects to upload
|
|
81
|
-
* @param options - Upload configuration: label (required), silent mode, and optional scope
|
|
82
|
-
* @param data - Optional metadata object to send alongside the files (serialized as JSON)
|
|
83
|
-
* @returns An `Observable` that emits the server response on completion
|
|
84
|
-
*
|
|
85
|
-
* @example
|
|
86
|
-
* ```typescript
|
|
87
|
-
* // Upload files with a visible progress indicator
|
|
88
|
-
* this.uploadService.multipartUpload(url, files, { label: 'Uploading 3 files' }).subscribe();
|
|
89
|
-
*
|
|
90
|
-
* // Upload files with additional metadata
|
|
91
|
-
* this.uploadService
|
|
92
|
-
* .multipartUpload(url, files, { label: 'Batch upload' }, { folderId: 'abc123' })
|
|
93
|
-
* .subscribe();
|
|
94
|
-
*
|
|
95
|
-
* // Scoped upload — only the UploadProgressComponent with scope 'mail-editor' will show this
|
|
96
|
-
* this.uploadService
|
|
97
|
-
* .multipartUpload(url, files, { label: 'attachments', scope: 'mail-editor' })
|
|
98
|
-
* .subscribe();
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
multipartUpload(url: string, files: File[], options: FileUploadOptions, data?: unknown): Observable<unknown>;
|
|
102
|
-
/**
|
|
103
|
-
* Creates a document on the server by sending structured metadata without a file attachment.
|
|
104
|
-
*
|
|
105
|
-
* Unlike `uploadFile()` and `multipartUpload()`, this method does not attach any file content.
|
|
106
|
-
* It is intended for creating document objects from metadata alone — for example, creating
|
|
107
|
-
* a folder, a placeholder record, or a document entry where the content stream will be
|
|
108
|
-
* provided separately.
|
|
109
|
-
*
|
|
110
|
-
* **Behavior:**
|
|
111
|
-
* - Sends the `data` object as a JSON blob inside a `FormData` payload
|
|
112
|
-
* - Progress is NOT tracked — this method does not appear in `status$`
|
|
113
|
-
* - Errors are re-thrown so the caller can handle them via the returned `Observable`
|
|
114
|
-
*
|
|
115
|
-
* @param url - The backend URL to POST the document creation request to
|
|
116
|
-
* @param data - Metadata object describing the document to be created
|
|
117
|
-
* @returns An `Observable` that emits the created object(s) on success
|
|
118
|
-
*
|
|
119
|
-
* @example
|
|
120
|
-
* ```typescript
|
|
121
|
-
* const metadata = {
|
|
122
|
-
* objectTypeId: 'yuv:document',
|
|
123
|
-
* properties: { 'yuv:title': 'My Document' }
|
|
124
|
-
* };
|
|
125
|
-
*
|
|
126
|
-
* this.uploadService.createDocument(url, metadata).subscribe((result) => {
|
|
127
|
-
* console.log('Created:', result);
|
|
128
|
-
* });
|
|
129
|
-
* ```
|
|
130
|
-
*/
|
|
131
|
-
createDocument(url: string, data: any): Observable<any>;
|
|
132
|
-
/**
|
|
133
|
-
* Cancels one or all active upload requests and removes them from the tracked upload list.
|
|
134
|
-
*
|
|
135
|
-
* This method unsubscribes from the underlying HTTP request, effectively aborting the upload,
|
|
136
|
-
* and removes the corresponding item(s) from the internal status list. The updated status
|
|
137
|
-
* is then emitted via `status$` so that any subscribed UI components (e.g. the upload overlay)
|
|
138
|
-
* can reflect the change immediately.
|
|
139
|
-
*
|
|
140
|
-
* **Behavior:**
|
|
141
|
-
* - If `id` is provided, only the matching upload item is cancelled
|
|
142
|
-
* - If `id` is omitted, **all** active uploads are cancelled at once
|
|
143
|
-
* - If the provided `id` does not match any active item, the call is a no-op
|
|
144
|
-
* - After cancellation, the error count on `status$` is recalculated
|
|
145
|
-
*
|
|
146
|
-
* @param id - Optional ID of the upload item to cancel. Omit to cancel all active uploads.
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
* ```typescript
|
|
150
|
-
* // Cancel a specific upload by ID
|
|
151
|
-
* this.uploadService.cancelItem(uploadId);
|
|
152
|
-
*
|
|
153
|
-
* // Cancel all ongoing uploads (e.g. on component destroy or user confirmation)
|
|
154
|
-
* this.uploadService.cancelItem();
|
|
155
|
-
* ```
|
|
156
|
-
*/
|
|
157
|
-
cancelItem(id?: string): void;
|
|
158
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UploadService, never>;
|
|
159
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UploadService>;
|
|
160
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Service providing user related remote storage. This service is used load and
|
|
5
|
-
* store user related data from any device.
|
|
6
|
-
*/
|
|
7
|
-
export declare class UserStorageService {
|
|
8
|
-
#private;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param section section key for
|
|
12
|
-
* @param value value to be stored
|
|
13
|
-
*/
|
|
14
|
-
getItem(section: string): Observable<Record<string, any> | undefined>;
|
|
15
|
-
setItem(section: string, data: Record<string, any>): Observable<any>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserStorageService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserStorageService>;
|
|
18
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { UserSettings, YuvUser } from '../../model/yuv-user.model';
|
|
4
|
-
import { BackendService } from '../backend/backend.service';
|
|
5
|
-
import { ConfigService } from '../config/config.service';
|
|
6
|
-
import { EventService } from '../event/event.service';
|
|
7
|
-
import { Logger } from '../logger/logger.service';
|
|
8
|
-
import { StoredObjectConfig } from '../object-config/object-config.interface';
|
|
9
|
-
import { UserPermissions } from '../system/system.interface';
|
|
10
|
-
import { SystemService } from '../system/system.service';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Service providing user account configurations.
|
|
14
|
-
*/
|
|
15
|
-
export declare class UserService {
|
|
16
|
-
#private;
|
|
17
|
-
private backend;
|
|
18
|
-
private translate;
|
|
19
|
-
private logger;
|
|
20
|
-
private system;
|
|
21
|
-
private eventService;
|
|
22
|
-
private config;
|
|
23
|
-
user$: Observable<YuvUser | undefined>;
|
|
24
|
-
globalSettings: Map<any, any>;
|
|
25
|
-
userPermissions?: UserPermissions;
|
|
26
|
-
/**
|
|
27
|
-
* @ignore
|
|
28
|
-
*/
|
|
29
|
-
constructor(backend: BackendService, translate: TranslateService, logger: Logger, system: SystemService, eventService: EventService, config: ConfigService);
|
|
30
|
-
private getUiDirection;
|
|
31
|
-
/**
|
|
32
|
-
* Set a new current user
|
|
33
|
-
* @param user The user to be set as current user
|
|
34
|
-
*/
|
|
35
|
-
setCurrentUser(user: YuvUser): void;
|
|
36
|
-
getCurrentUser(): YuvUser;
|
|
37
|
-
get hasAdminRole(): boolean;
|
|
38
|
-
get hasSystemRole(): boolean;
|
|
39
|
-
get hasAdministrationRoles(): boolean;
|
|
40
|
-
get hasManageSettingsRole(): boolean;
|
|
41
|
-
get isAdvancedUser(): boolean;
|
|
42
|
-
get isRetentionManager(): boolean;
|
|
43
|
-
canCreateObjects: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Change the users client locale
|
|
46
|
-
* @param iso ISO locale string to be set as new client locale
|
|
47
|
-
*/
|
|
48
|
-
changeClientLocale(iso: string, persist?: boolean): void;
|
|
49
|
-
saveUserSettings(settings: Partial<UserSettings>): Observable<any>;
|
|
50
|
-
fetchUserSettings(): Observable<UserSettings>;
|
|
51
|
-
private setUserPermissions;
|
|
52
|
-
private mapPermissions;
|
|
53
|
-
/**
|
|
54
|
-
* Search for a user based on a search term
|
|
55
|
-
* @param term Search term
|
|
56
|
-
* @param excludeMe whether or not to exclude myself from the result list
|
|
57
|
-
* @param roles narrow down the search results by certain roles
|
|
58
|
-
*/
|
|
59
|
-
queryUser(term: string, excludeMe?: boolean, roles?: string[]): Observable<YuvUser[]>;
|
|
60
|
-
getUserById(id: string): Observable<YuvUser>;
|
|
61
|
-
logout(redirRoute?: string): void;
|
|
62
|
-
getSettings(section: string): Observable<any>;
|
|
63
|
-
saveObjectConfig(objectConfigs: StoredObjectConfig): Observable<any>;
|
|
64
|
-
loadObjectConfig(): Observable<StoredObjectConfig | undefined>;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
66
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
67
|
-
}
|
package/lib/util/utils.d.ts
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { FormattedMailTo, Sort } from './utils.helper.enum';
|
|
2
|
-
import { RangeValue } from '../model/range-value.interface';
|
|
3
|
-
export declare class Utils {
|
|
4
|
-
static readonly DEFAULT_TIME_OFFSET_V2: number;
|
|
5
|
-
static optionsToURLParams(options: Record<string, any>): string;
|
|
6
|
-
/**
|
|
7
|
-
* Get all focusable child elements of a host element.
|
|
8
|
-
* @param host The host/parent element
|
|
9
|
-
* @returns Array of focusable child elements
|
|
10
|
-
*/
|
|
11
|
-
static getFocusableChildren(host: HTMLElement): Element[];
|
|
12
|
-
static hasProperty(o: unknown, property: string): boolean;
|
|
13
|
-
static patternToRegExp(pattern: string): RegExp;
|
|
14
|
-
/**
|
|
15
|
-
* Utility method for adding parameters to a given URI.
|
|
16
|
-
*
|
|
17
|
-
* @param uri The uri string to attach the parameters to
|
|
18
|
-
* @param params The object containing parameters to be appended
|
|
19
|
-
* @returns the given uri extended by the given parameters + remove empty parameters
|
|
20
|
-
*/
|
|
21
|
-
static buildUri(uri: string, params: any): string;
|
|
22
|
-
static formatMailTo(value: FormattedMailTo, isEmail: boolean): FormattedMailTo;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a unique identifier.
|
|
25
|
-
* @returns A Universally Unique Identifier
|
|
26
|
-
*/
|
|
27
|
-
static uuid(): string;
|
|
28
|
-
/**
|
|
29
|
-
* Encode a filename safe for sending chars beyond ASCII-7bit using quoted printable encoding.
|
|
30
|
-
*
|
|
31
|
-
* @param filename The file name
|
|
32
|
-
* @returns The quoted printable filename
|
|
33
|
-
*/
|
|
34
|
-
static encodeFileName(filename: string): string;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param boolean s
|
|
38
|
-
* @return string
|
|
39
|
-
*/
|
|
40
|
-
private static _p8;
|
|
41
|
-
/**
|
|
42
|
-
* Converts a javascript text to the utf-8 converted variant.
|
|
43
|
-
* See [unicode]{@link http://thlist.onlinehome.de/thomas_homepage/unicode/UTF-8%20Konvertierung%20mittels%20JavaScript.htm} for reference
|
|
44
|
-
*
|
|
45
|
-
* @param rawinput The input string
|
|
46
|
-
* @returns The utf-8 converted string
|
|
47
|
-
*/
|
|
48
|
-
private static encodeToUtf8;
|
|
49
|
-
/**
|
|
50
|
-
* See [quoted-printable]{@link https://github.com/mathiasbynens/quoted-printable/blob/master/quoted-printable.js}
|
|
51
|
-
**/
|
|
52
|
-
private static quotedPrintable;
|
|
53
|
-
/**
|
|
54
|
-
* Encode symbols that are definitely unsafe (i.e. unsafe in any context). The regular expression describes these unsafe symbols.
|
|
55
|
-
*
|
|
56
|
-
* @param rawinput Input string to be encoded
|
|
57
|
-
* @returns The encoded string
|
|
58
|
-
*/
|
|
59
|
-
private static encodeToQuotedPrintable;
|
|
60
|
-
/**
|
|
61
|
-
* Sorts An Array of Object by given key
|
|
62
|
-
* See [ng-packagr issues 696]{@link https://github.com/dherges/ng-packagr/issues/696}
|
|
63
|
-
*
|
|
64
|
-
* @param key
|
|
65
|
-
* @param order
|
|
66
|
-
* @param locales
|
|
67
|
-
* @param options
|
|
68
|
-
* @returns (a: any, b: any) => number
|
|
69
|
-
*/
|
|
70
|
-
static sortValues(key?: string, order?: Sort, locales?: string | string[], options?: Intl.CollatorOptions): (a: any, b: any) => number;
|
|
71
|
-
/**
|
|
72
|
-
* [ng-packagr issues 696]{@link https://github.com/dherges/ng-packagr/issues/696}
|
|
73
|
-
*
|
|
74
|
-
* @param object
|
|
75
|
-
* @param string key
|
|
76
|
-
* @returns any
|
|
77
|
-
*/
|
|
78
|
-
static getProperty(object: any, key?: string): any;
|
|
79
|
-
/**
|
|
80
|
-
* @param object
|
|
81
|
-
* @param key
|
|
82
|
-
* @param value
|
|
83
|
-
*/
|
|
84
|
-
static setProperty(object: any, key: string | undefined, value: any): any;
|
|
85
|
-
/**
|
|
86
|
-
* Use on Observable.catch or Observable.subscribe to return empty value
|
|
87
|
-
* [ng-packagr issues 696]{@link https://github.com/dherges/ng-packagr/issues/696}
|
|
88
|
-
*
|
|
89
|
-
* @param (error) => any callback
|
|
90
|
-
* @returns (error) => Observable<never>
|
|
91
|
-
*/
|
|
92
|
-
static empty(callback?: (error: any) => any): () => import("rxjs").Observable<never>;
|
|
93
|
-
static getBaseHref(removeTrailingSlash?: boolean): string;
|
|
94
|
-
/**
|
|
95
|
-
* Truncate a string (first argument) if it is longer than the given maximum string length (second argument).
|
|
96
|
-
* Return the truncated string with a ... ending or whats provided.
|
|
97
|
-
*
|
|
98
|
-
* @param string str
|
|
99
|
-
* @param number num
|
|
100
|
-
*/
|
|
101
|
-
static truncateString(str: string, num: number, ending?: string): string;
|
|
102
|
-
/**
|
|
103
|
-
* Get the TimeZone Offsest as minutes
|
|
104
|
-
*/
|
|
105
|
-
static getTimezoneOffset(): number;
|
|
106
|
-
/**
|
|
107
|
-
* Transform to date with yyyy-mm-dd format
|
|
108
|
-
*/
|
|
109
|
-
static transformDate(v: Date | string): string;
|
|
110
|
-
static isEdge(): boolean;
|
|
111
|
-
static isFirefox(): boolean;
|
|
112
|
-
static isSafari(): boolean;
|
|
113
|
-
static isEmpty(obj: any): boolean;
|
|
114
|
-
static isEmptyOrFalse(val: any): boolean;
|
|
115
|
-
static escapeHtml(str: string): string;
|
|
116
|
-
static arrayToObject<T>(arr?: any[], keyProperty?: string | ((o: any) => string), valueProperty?: string | ((o: any) => any)): {
|
|
117
|
-
[key: string]: T;
|
|
118
|
-
};
|
|
119
|
-
static downloadBlob(content: any, mimeType: string, filename: string): void;
|
|
120
|
-
static isValidDate(value: any): value is Date;
|
|
121
|
-
static getDateFrom(value?: Date | string | null): Date | undefined;
|
|
122
|
-
static getDateRangeFrom(dateRange: RangeValue<Date | string>): RangeValue<Date> | undefined;
|
|
123
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum Sort {
|
|
2
|
-
ASC = "asc",
|
|
3
|
-
DESC = "desc"
|
|
4
|
-
}
|
|
5
|
-
export declare enum ClassificationPrefix {
|
|
6
|
-
EMAIL = "mailto:",
|
|
7
|
-
EMAIL_ICON = "envelope",
|
|
8
|
-
PHONE = "tel:",
|
|
9
|
-
PHONE_ICON = "phone",
|
|
10
|
-
URL = "",
|
|
11
|
-
URL_ICON = "globe"
|
|
12
|
-
}
|
|
13
|
-
export type FormattedMailTo = string | string[];
|