@messaia/cdk-cms 19.0.1 → 20.0.0-RC.1
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/README.md +49 -10
- package/fesm2022/messaia-cdk-cms.mjs +265 -277
- package/fesm2022/messaia-cdk-cms.mjs.map +1 -1
- package/index.d.ts +1164 -3
- package/package.json +6 -7
- package/lib/cms-routing.module.d.ts +0 -7
- package/lib/cms.module.d.ts +0 -46
- package/lib/comnponents/content-form/content-form.component.d.ts +0 -110
- package/lib/comnponents/document-dialog/document-dialog.component.d.ts +0 -26
- package/lib/comnponents/document-form-base/document-form-base.component.d.ts +0 -48
- package/lib/comnponents/template-form/template-form.component.d.ts +0 -73
- package/lib/comnponents/template-preview-dialog/template-preview-dialog.component.d.ts +0 -80
- package/lib/enums/content-type.d.ts +0 -4
- package/lib/enums/faq-scope.d.ts +0 -4
- package/lib/enums/template-type.d.ts +0 -4
- package/lib/enums/wrap-tag.d.ts +0 -7
- package/lib/models/cms-settings.d.ts +0 -30
- package/lib/models/content-client.d.ts +0 -26
- package/lib/models/content-department.d.ts +0 -26
- package/lib/models/content-variable-client.d.ts +0 -26
- package/lib/models/content-variable-department.d.ts +0 -26
- package/lib/models/content-variable.d.ts +0 -29
- package/lib/models/content.d.ts +0 -103
- package/lib/models/document.d.ts +0 -20
- package/lib/models/faq-client.d.ts +0 -26
- package/lib/models/faq-department.d.ts +0 -26
- package/lib/models/faq.d.ts +0 -38
- package/lib/models/slider.d.ts +0 -39
- package/lib/models/template-client.d.ts +0 -26
- package/lib/models/template-department.d.ts +0 -26
- package/lib/models/template-preview.d.ts +0 -44
- package/lib/models/template.d.ts +0 -59
- package/lib/public-api.d.ts +0 -31
- package/lib/resolvers/document-list-projection.resolve.d.ts +0 -20
- package/lib/resolvers/excluded-columns.resolve.d.ts +0 -13
- package/lib/resolvers/excluded-fields.resolve.d.ts +0 -13
- package/lib/resolvers/form-includes.resolve.d.ts +0 -20
- package/lib/resolvers/form-validation.resolve.d.ts +0 -13
- package/lib/resolvers/list-projection.resolve.d.ts +0 -20
- package/lib/resolvers/settings.resolve.d.ts +0 -15
- package/lib/services/content-variable.service.d.ts +0 -17
- package/lib/services/content.service.d.ts +0 -23
- package/lib/services/document.generic-service.d.ts +0 -9
- package/lib/services/document.service`.d.ts +0 -17
- package/lib/services/faq.service.d.ts +0 -11
- package/lib/services/slider.service.d.ts +0 -11
- package/lib/services/template-doc.service.d.ts +0 -11
- package/lib/services/template-preview.service.d.ts +0 -11
- package/lib/services/template.service.d.ts +0 -11
- package/lib/templates/document-form.template.d.ts +0 -2
- package/public_api.d.ts +0 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,1166 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, Type, ElementRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/router';
|
|
4
|
+
import { ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router';
|
|
5
|
+
import * as _angular_forms from '@angular/forms';
|
|
6
|
+
import { NgModel } from '@angular/forms';
|
|
7
|
+
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import { MatChipInputEvent } from '@angular/material/chips';
|
|
9
|
+
import { AuditEntity, GenericService, GenericReactiveFormComponent, FileService, SaveAction, BaseComponent } from '@messaia/cdk';
|
|
10
|
+
import { EditorComponent } from '@tinymce/tinymce-angular';
|
|
11
|
+
import * as rxjs from 'rxjs';
|
|
12
|
+
import { Subscription, Observable } from 'rxjs';
|
|
13
|
+
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
14
|
+
import { DocumentBase, Attachment } from '@messaia/cdk-base';
|
|
15
|
+
import { PDFSource } from 'ng2-pdf-viewer';
|
|
16
|
+
import { OidcSecurityService } from 'angular-auth-oidc-client';
|
|
17
|
+
|
|
18
|
+
declare class VdCmsRoutingModule {
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VdCmsRoutingModule, never>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VdCmsRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
21
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VdCmsRoutingModule>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class VdCmsModule {
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VdCmsModule, never>;
|
|
26
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VdCmsModule, never, [typeof VdCmsRoutingModule], never>;
|
|
27
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<VdCmsModule>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare enum ContentType {
|
|
31
|
+
Page = 1,
|
|
32
|
+
Block = 2
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare class CmsSettings {
|
|
36
|
+
/**
|
|
37
|
+
* @property
|
|
38
|
+
*/
|
|
39
|
+
multiClients?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @property
|
|
42
|
+
*/
|
|
43
|
+
multiDepartments?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @property
|
|
46
|
+
*/
|
|
47
|
+
multitenantable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @property
|
|
50
|
+
*/
|
|
51
|
+
styleUrlEndpoint?: Function;
|
|
52
|
+
/**
|
|
53
|
+
* @property
|
|
54
|
+
*/
|
|
55
|
+
editorHeight?: string;
|
|
56
|
+
/**
|
|
57
|
+
* constructor
|
|
58
|
+
* @param init
|
|
59
|
+
*/
|
|
60
|
+
constructor(init?: Partial<CmsSettings>);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare enum WrapTag {
|
|
64
|
+
None = "",
|
|
65
|
+
Section = "section",
|
|
66
|
+
Div = "div",
|
|
67
|
+
Address = "address",
|
|
68
|
+
Article = "article"
|
|
69
|
+
}
|
|
70
|
+
|
|
1
71
|
/**
|
|
2
|
-
*
|
|
72
|
+
* @class
|
|
3
73
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
74
|
+
declare class ContentClient {
|
|
75
|
+
/**
|
|
76
|
+
* @property
|
|
77
|
+
*/
|
|
78
|
+
contentId?: number;
|
|
79
|
+
/**
|
|
80
|
+
* @property
|
|
81
|
+
*/
|
|
82
|
+
clientId?: number;
|
|
83
|
+
/**
|
|
84
|
+
* @property
|
|
85
|
+
*/
|
|
86
|
+
client?: any;
|
|
87
|
+
/**
|
|
88
|
+
* @property
|
|
89
|
+
*/
|
|
90
|
+
clientName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Constructor
|
|
93
|
+
* @param init
|
|
94
|
+
*/
|
|
95
|
+
constructor(init?: Partial<ContentClient>);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @class
|
|
100
|
+
*/
|
|
101
|
+
declare class ContentDepartment {
|
|
102
|
+
/**
|
|
103
|
+
* @property
|
|
104
|
+
*/
|
|
105
|
+
contentId?: number;
|
|
106
|
+
/**
|
|
107
|
+
* @property
|
|
108
|
+
*/
|
|
109
|
+
departmentId?: number;
|
|
110
|
+
/**
|
|
111
|
+
* @property
|
|
112
|
+
*/
|
|
113
|
+
department?: any;
|
|
114
|
+
/**
|
|
115
|
+
* @property
|
|
116
|
+
*/
|
|
117
|
+
departmentName?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Constructor
|
|
120
|
+
* @param init
|
|
121
|
+
*/
|
|
122
|
+
constructor(init?: Partial<ContentDepartment>);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
declare class Content extends AuditEntity {
|
|
126
|
+
/**
|
|
127
|
+
* @property Defines the type of the content.
|
|
128
|
+
* @description Optional enum property indicating the content's type.
|
|
129
|
+
* @type {ContentType}
|
|
130
|
+
*/
|
|
131
|
+
type?: ContentType;
|
|
132
|
+
/**
|
|
133
|
+
* @property Identifier for the section the content belongs to.
|
|
134
|
+
* @description Optional number representing the section ID.
|
|
135
|
+
* @type {number}
|
|
136
|
+
*/
|
|
137
|
+
sectionId?: number;
|
|
138
|
+
/**
|
|
139
|
+
* @property The title of the content.
|
|
140
|
+
* @description This required property represents the human-readable title displayed in the UI.
|
|
141
|
+
* @type {string}
|
|
142
|
+
*/
|
|
143
|
+
title?: string;
|
|
144
|
+
/**
|
|
145
|
+
* @property Internal name of the content.
|
|
146
|
+
* @description This required property is used for internal reference and URLs.
|
|
147
|
+
* @type {string}
|
|
148
|
+
*/
|
|
149
|
+
name?: string;
|
|
150
|
+
/**
|
|
151
|
+
* @property Aliases of the content.
|
|
152
|
+
* @description Optional string used to define alternative names or keywords.
|
|
153
|
+
* @type {string}
|
|
154
|
+
*/
|
|
155
|
+
aliases?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @property The wrap tag used for HTML structure.
|
|
158
|
+
* @description Optional property that defines how the content is wrapped in the DOM.
|
|
159
|
+
* @type {WrapTag}
|
|
160
|
+
*/
|
|
161
|
+
wrapTag: WrapTag;
|
|
162
|
+
/**
|
|
163
|
+
* @property Layout identifier or class name.
|
|
164
|
+
* @description Optional layout style applied to this content block.
|
|
165
|
+
* @type {string}
|
|
166
|
+
*/
|
|
167
|
+
layout?: string;
|
|
168
|
+
/**
|
|
169
|
+
* @property Main body of the content.
|
|
170
|
+
* @description Optional HTML or markdown content.
|
|
171
|
+
* @type {string}
|
|
172
|
+
*/
|
|
173
|
+
body?: string;
|
|
174
|
+
/**
|
|
175
|
+
* @property Embedded script.
|
|
176
|
+
* @description Optional JavaScript code associated with the content.
|
|
177
|
+
* @type {string}
|
|
178
|
+
*/
|
|
179
|
+
script?: string;
|
|
180
|
+
/**
|
|
181
|
+
* @property headScript
|
|
182
|
+
* @description This optional property allows insertion of custom JavaScript code inside the <head> tag of the HTML document.
|
|
183
|
+
* @type {string}
|
|
184
|
+
*/
|
|
185
|
+
headScript?: string;
|
|
186
|
+
/**
|
|
187
|
+
* @property noScript
|
|
188
|
+
* @description This optional property allows inserting content inside a <noscript> tag, which is rendered when JavaScript is disabled.
|
|
189
|
+
* @type {string}
|
|
190
|
+
*/
|
|
191
|
+
noScript?: string;
|
|
192
|
+
/**
|
|
193
|
+
* @property Embedded style.
|
|
194
|
+
* @description Optional CSS styling specific to this content.
|
|
195
|
+
* @type {string}
|
|
196
|
+
*/
|
|
197
|
+
style?: string;
|
|
198
|
+
/**
|
|
199
|
+
* @property Indicates whether the title should be shown.
|
|
200
|
+
* @description This optional boolean defaults to true and determines title visibility.
|
|
201
|
+
* @type {boolean}
|
|
202
|
+
*/
|
|
203
|
+
showTitle: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* @property Indicates whether the content is enabled.
|
|
206
|
+
* @description This boolean property enables or disables the content, default is true.
|
|
207
|
+
* @type {boolean}
|
|
208
|
+
*/
|
|
209
|
+
enabled: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* @property Associated clients for this content.
|
|
212
|
+
* @description This required property defines which clients the content is related to.
|
|
213
|
+
* @type {ContentClient[]}
|
|
214
|
+
*/
|
|
215
|
+
clientJoins?: ContentClient[];
|
|
216
|
+
/**
|
|
217
|
+
* @property Associated departments for this content.
|
|
218
|
+
* @description Optional departments related to this content, with visibility based on admin context.
|
|
219
|
+
* @type {ContentDepartment[]}
|
|
220
|
+
*/
|
|
221
|
+
departmentJoins?: ContentDepartment[];
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
declare class ContentService extends GenericService<Content> {
|
|
225
|
+
/**
|
|
226
|
+
* Constructor
|
|
227
|
+
*/
|
|
228
|
+
constructor();
|
|
229
|
+
/**
|
|
230
|
+
* Checks if the specified alias is available.
|
|
231
|
+
* @param id
|
|
232
|
+
* @param alias
|
|
233
|
+
*/
|
|
234
|
+
isAliasAvailable(item: Content): rxjs.Observable<any>;
|
|
235
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentService, never>;
|
|
236
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContentService>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare class ContentFormComponent extends GenericReactiveFormComponent<Content, ContentService> {
|
|
240
|
+
protected service: ContentService;
|
|
241
|
+
protected fileService: FileService;
|
|
242
|
+
protected httpClient: HttpClient;
|
|
243
|
+
protected route: ActivatedRoute;
|
|
244
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
245
|
+
/**
|
|
246
|
+
* Injects the CmsSettings service using Angular's `inject()` function.
|
|
247
|
+
* This allows access to the CmsSettings instance outside of constructor-based dependency injection,
|
|
248
|
+
* commonly used in standalone components or functional-style Angular APIs.
|
|
249
|
+
*/
|
|
250
|
+
settings: CmsSettings;
|
|
251
|
+
/**
|
|
252
|
+
* Router Subscription
|
|
253
|
+
*/
|
|
254
|
+
routeSubscription?: Subscription;
|
|
255
|
+
/**
|
|
256
|
+
* The status of the issue
|
|
257
|
+
*/
|
|
258
|
+
type?: ContentType;
|
|
259
|
+
/**
|
|
260
|
+
* Content status
|
|
261
|
+
*/
|
|
262
|
+
ContentType: typeof ContentType;
|
|
263
|
+
/**
|
|
264
|
+
* Wrap tag enum
|
|
265
|
+
*/
|
|
266
|
+
wrapTags: any[];
|
|
267
|
+
/**
|
|
268
|
+
* Separator keys codes
|
|
269
|
+
*/
|
|
270
|
+
separatorKeysCodes: number[];
|
|
271
|
+
/**
|
|
272
|
+
* Gets the aliases control
|
|
273
|
+
*/
|
|
274
|
+
get aliasesControl(): _angular_forms.AbstractControl<any, any>;
|
|
275
|
+
/**
|
|
276
|
+
* A ref to form html element
|
|
277
|
+
*/
|
|
278
|
+
formElement?: HTMLFormElement;
|
|
279
|
+
/**
|
|
280
|
+
* A ref to tinymce editor
|
|
281
|
+
*/
|
|
282
|
+
editorComponent?: EditorComponent;
|
|
283
|
+
/**
|
|
284
|
+
* Constructor
|
|
285
|
+
*/
|
|
286
|
+
constructor(service: ContentService, fileService: FileService, httpClient: HttpClient, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
|
|
287
|
+
/**
|
|
288
|
+
* Lifecycle hook that is called after data-bound properties
|
|
289
|
+
* of a directive are initialized.
|
|
290
|
+
*/
|
|
291
|
+
ngOnInit(): void;
|
|
292
|
+
/**
|
|
293
|
+
* Shows client joins in the form
|
|
294
|
+
* @returns
|
|
295
|
+
*/
|
|
296
|
+
showClientJoins(): boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Checks if the specified alias is available.
|
|
299
|
+
*/
|
|
300
|
+
isAliasAvailable(): void;
|
|
301
|
+
/**
|
|
302
|
+
* Set client
|
|
303
|
+
*/
|
|
304
|
+
setClient(): void;
|
|
305
|
+
/**
|
|
306
|
+
* Add a aliases to the current field
|
|
307
|
+
* @param event
|
|
308
|
+
*/
|
|
309
|
+
addAliases(event: MatChipInputEvent): void;
|
|
310
|
+
/**
|
|
311
|
+
* Removes a aliases
|
|
312
|
+
* @param aliass
|
|
313
|
+
*/
|
|
314
|
+
removeAliases(aliass: string): void;
|
|
315
|
+
/**
|
|
316
|
+
* Creates a new instance of the Template
|
|
317
|
+
*/
|
|
318
|
+
protected newInstance(): Content;
|
|
319
|
+
/**
|
|
320
|
+
* Event emitted when the form has built.
|
|
321
|
+
*/
|
|
322
|
+
protected onAfterFormBuild(): void;
|
|
323
|
+
/**
|
|
324
|
+
* Configures the tinymce editor
|
|
325
|
+
*/
|
|
326
|
+
private configEditor;
|
|
327
|
+
/**
|
|
328
|
+
* Creates config for the editor
|
|
329
|
+
* @returns
|
|
330
|
+
*/
|
|
331
|
+
private getEditorConfig;
|
|
332
|
+
/**
|
|
333
|
+
* Cleanup subscriptions when this component is destroyed.
|
|
334
|
+
*/
|
|
335
|
+
ngOnDestroy(): void;
|
|
336
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentFormComponent, never>;
|
|
337
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentFormComponent, "app-content-form", never, {}, {}, never, never, true, never>;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
declare class Document extends DocumentBase {
|
|
341
|
+
/**
|
|
342
|
+
* @property
|
|
343
|
+
*/
|
|
344
|
+
clientId?: number;
|
|
345
|
+
/**
|
|
346
|
+
* @property
|
|
347
|
+
*/
|
|
348
|
+
departmentId?: number;
|
|
349
|
+
/**
|
|
350
|
+
* @property
|
|
351
|
+
*/
|
|
352
|
+
path: string;
|
|
353
|
+
/**
|
|
354
|
+
* constructor
|
|
355
|
+
* @param init
|
|
356
|
+
*/
|
|
357
|
+
constructor(init?: Partial<Document>);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
declare abstract class DocumentGenericService<TDocument extends DocumentBase> extends GenericService<TDocument> {
|
|
361
|
+
/**
|
|
362
|
+
* Constructor
|
|
363
|
+
* @param serviceName
|
|
364
|
+
*/
|
|
365
|
+
constructor(serviceName?: string);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
declare class DocumentService extends DocumentGenericService<Document> {
|
|
369
|
+
/**
|
|
370
|
+
* Constructor
|
|
371
|
+
*/
|
|
372
|
+
constructor();
|
|
373
|
+
/**
|
|
374
|
+
* Sends an email to the customer
|
|
375
|
+
* @param id The ID of the document
|
|
376
|
+
*/
|
|
377
|
+
sendMail(id: number): Observable<any>;
|
|
378
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
|
|
379
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
declare abstract class DocumentFormBaseComponent<TDocument extends DocumentBase, TDocumentService extends DocumentGenericService<TDocument>> extends GenericReactiveFormComponent<TDocument, TDocumentService> {
|
|
383
|
+
protected entityType: Type<TDocument>;
|
|
384
|
+
protected documentService: TDocumentService;
|
|
385
|
+
protected fileService: FileService;
|
|
386
|
+
protected dialogRef: MatDialogRef<DocumentFormBaseComponent<TDocument, TDocumentService>>;
|
|
387
|
+
protected route: ActivatedRoute;
|
|
388
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
389
|
+
protected data: TDocument;
|
|
390
|
+
/**
|
|
391
|
+
* Upload status
|
|
392
|
+
*/
|
|
393
|
+
isUploading: boolean;
|
|
394
|
+
/**
|
|
395
|
+
* Upload progress
|
|
396
|
+
*/
|
|
397
|
+
uploadProgress: number;
|
|
398
|
+
/**
|
|
399
|
+
* Constructor
|
|
400
|
+
*/
|
|
401
|
+
constructor(entityType: Type<TDocument>, documentService: TDocumentService, fileService: FileService, dialogRef: MatDialogRef<DocumentFormBaseComponent<TDocument, TDocumentService>>, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef, data: TDocument);
|
|
402
|
+
/**
|
|
403
|
+
* Uploads a new document
|
|
404
|
+
*/
|
|
405
|
+
upload(file: File | FileList): void;
|
|
406
|
+
/**
|
|
407
|
+
* Event emitted after data submition
|
|
408
|
+
* @param action
|
|
409
|
+
* @param response
|
|
410
|
+
*/
|
|
411
|
+
protected onAfterSubmit(_1?: SaveAction, _2?: any): void;
|
|
412
|
+
/**
|
|
413
|
+
* Closes the dialog
|
|
414
|
+
*/
|
|
415
|
+
cancel(): void;
|
|
416
|
+
/**
|
|
417
|
+
* Creates a new instance of the TEntity
|
|
418
|
+
*/
|
|
419
|
+
protected newInstance(): TDocument;
|
|
420
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentFormBaseComponent<any, any>, never>;
|
|
421
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DocumentFormBaseComponent<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
declare class DocumentDialogComponent extends DocumentFormBaseComponent<Document, DocumentService> {
|
|
425
|
+
protected documentService: DocumentService;
|
|
426
|
+
protected fileService: FileService;
|
|
427
|
+
protected route: ActivatedRoute;
|
|
428
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
429
|
+
dialogRef: MatDialogRef<DocumentDialogComponent>;
|
|
430
|
+
data: Document;
|
|
431
|
+
/**
|
|
432
|
+
* Constructor
|
|
433
|
+
*/
|
|
434
|
+
constructor(documentService: DocumentService, fileService: FileService, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef, dialogRef: MatDialogRef<DocumentDialogComponent>, data?: Document);
|
|
435
|
+
/**
|
|
436
|
+
* Event emitted before the form has built.
|
|
437
|
+
*/
|
|
438
|
+
protected onBeforeFormBuild(): void;
|
|
439
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentDialogComponent, never>;
|
|
440
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentDialogComponent, "document-dialog", never, {}, {}, never, never, true, never>;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
declare enum TemplateType {
|
|
444
|
+
Email = 0,
|
|
445
|
+
Pdf = 1
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* @class
|
|
450
|
+
*/
|
|
451
|
+
declare class TemplateClient {
|
|
452
|
+
/**
|
|
453
|
+
* @property
|
|
454
|
+
*/
|
|
455
|
+
templateId?: number;
|
|
456
|
+
/**
|
|
457
|
+
* @property
|
|
458
|
+
*/
|
|
459
|
+
clientId?: number;
|
|
460
|
+
/**
|
|
461
|
+
* @property
|
|
462
|
+
*/
|
|
463
|
+
client?: any;
|
|
464
|
+
/**
|
|
465
|
+
* @property
|
|
466
|
+
*/
|
|
467
|
+
clientName?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Constructor
|
|
470
|
+
* @param init
|
|
471
|
+
*/
|
|
472
|
+
constructor(init?: Partial<TemplateClient>);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @class
|
|
477
|
+
*/
|
|
478
|
+
declare class TemplateDepartment {
|
|
479
|
+
/**
|
|
480
|
+
* @property
|
|
481
|
+
*/
|
|
482
|
+
templateId?: number;
|
|
483
|
+
/**
|
|
484
|
+
* @property
|
|
485
|
+
*/
|
|
486
|
+
departmentId?: number;
|
|
487
|
+
/**
|
|
488
|
+
* @property
|
|
489
|
+
*/
|
|
490
|
+
department?: any;
|
|
491
|
+
/**
|
|
492
|
+
* @property
|
|
493
|
+
*/
|
|
494
|
+
departmentName?: string;
|
|
495
|
+
/**
|
|
496
|
+
* Constructor
|
|
497
|
+
* @param init
|
|
498
|
+
*/
|
|
499
|
+
constructor(init?: Partial<TemplateDepartment>);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
declare class Template extends AuditEntity {
|
|
503
|
+
/**
|
|
504
|
+
* @property
|
|
505
|
+
*/
|
|
506
|
+
type: TemplateType;
|
|
507
|
+
/**
|
|
508
|
+
* @property
|
|
509
|
+
*/
|
|
510
|
+
name?: string;
|
|
511
|
+
/**
|
|
512
|
+
* @property
|
|
513
|
+
*/
|
|
514
|
+
draft?: string;
|
|
515
|
+
/**
|
|
516
|
+
* @property
|
|
517
|
+
*/
|
|
518
|
+
subject?: string;
|
|
519
|
+
/**
|
|
520
|
+
* @property
|
|
521
|
+
*/
|
|
522
|
+
key?: string;
|
|
523
|
+
/**
|
|
524
|
+
* @property
|
|
525
|
+
*/
|
|
526
|
+
notice?: string;
|
|
527
|
+
/**
|
|
528
|
+
* @property
|
|
529
|
+
*/
|
|
530
|
+
email?: string;
|
|
531
|
+
/**
|
|
532
|
+
* @property
|
|
533
|
+
*/
|
|
534
|
+
content?: string;
|
|
535
|
+
/**
|
|
536
|
+
* @property
|
|
537
|
+
*/
|
|
538
|
+
dummyData?: string;
|
|
539
|
+
/**
|
|
540
|
+
* @property
|
|
541
|
+
*/
|
|
542
|
+
clientJoins?: TemplateClient[];
|
|
543
|
+
/**
|
|
544
|
+
* @property
|
|
545
|
+
*/
|
|
546
|
+
departmentJoins?: TemplateDepartment[];
|
|
547
|
+
/**
|
|
548
|
+
* @property
|
|
549
|
+
*/
|
|
550
|
+
enabled?: true;
|
|
551
|
+
/**
|
|
552
|
+
* @property
|
|
553
|
+
*/
|
|
554
|
+
attachments: Attachment[];
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
declare class TemplateService extends GenericService<Template> {
|
|
558
|
+
/**
|
|
559
|
+
* Constructor
|
|
560
|
+
*/
|
|
561
|
+
constructor();
|
|
562
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateService, never>;
|
|
563
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TemplateService>;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
declare class TemplateDocService extends GenericService<Template> {
|
|
567
|
+
/**
|
|
568
|
+
* Constructor
|
|
569
|
+
*/
|
|
570
|
+
constructor();
|
|
571
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateDocService, never>;
|
|
572
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TemplateDocService>;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
declare class TemplateFormComponent extends GenericReactiveFormComponent<Template, TemplateService> {
|
|
576
|
+
protected service: TemplateService;
|
|
577
|
+
protected templateDocService: TemplateDocService;
|
|
578
|
+
protected fileService: FileService;
|
|
579
|
+
protected dialog: MatDialog;
|
|
580
|
+
protected route: ActivatedRoute;
|
|
581
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
582
|
+
/**
|
|
583
|
+
* Injects the CmsSettings service using Angular's `inject()` function.
|
|
584
|
+
* This allows access to the CmsSettings instance outside of constructor-based dependency injection,
|
|
585
|
+
* commonly used in standalone components or functional-style Angular APIs.
|
|
586
|
+
*/
|
|
587
|
+
settings: CmsSettings;
|
|
588
|
+
/**
|
|
589
|
+
* Represents the available template types.
|
|
590
|
+
*/
|
|
591
|
+
TemplateType: typeof TemplateType;
|
|
592
|
+
/**
|
|
593
|
+
* Retrieves the attachments form control.
|
|
594
|
+
*/
|
|
595
|
+
get attachmentsControl(): _angular_forms.AbstractControl<any, any>;
|
|
596
|
+
/**
|
|
597
|
+
* Configuration options for the HTML editor.
|
|
598
|
+
*/
|
|
599
|
+
editorOptions: any;
|
|
600
|
+
/**
|
|
601
|
+
* Configuration options for the JSON editor.
|
|
602
|
+
*/
|
|
603
|
+
jsonEditorOptions: any;
|
|
604
|
+
/**
|
|
605
|
+
* Initializes an instance of TemplateFormComponent.
|
|
606
|
+
*/
|
|
607
|
+
constructor(service: TemplateService, templateDocService: TemplateDocService, fileService: FileService, dialog: MatDialog, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
|
|
608
|
+
/**
|
|
609
|
+
* Removes an attachment from the form.
|
|
610
|
+
* @param attachment The attachment to remove.
|
|
611
|
+
*/
|
|
612
|
+
removeAttachment(attachment: Attachment): void;
|
|
613
|
+
/**
|
|
614
|
+
* Handles file upload for attachments.
|
|
615
|
+
* @param $event The file input event.
|
|
616
|
+
*/
|
|
617
|
+
uploadAttachment($event: Event): void;
|
|
618
|
+
/**
|
|
619
|
+
* Initiates a download for the specified attachment.
|
|
620
|
+
* @param attachment The attachment to download.
|
|
621
|
+
*/
|
|
622
|
+
downloadAttachment(attachment: Attachment): void;
|
|
623
|
+
/**
|
|
624
|
+
* Opens a preview dialog for the template.
|
|
625
|
+
*/
|
|
626
|
+
showPreview(): void;
|
|
627
|
+
/**
|
|
628
|
+
* Loads a draft version of the template.
|
|
629
|
+
*/
|
|
630
|
+
loadDraft(): void;
|
|
631
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateFormComponent, never>;
|
|
632
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateFormComponent, "app-template-form", never, {}, {}, never, never, true, never>;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
declare class TemplatePreview {
|
|
636
|
+
/**
|
|
637
|
+
* @property
|
|
638
|
+
*/
|
|
639
|
+
type?: TemplateType;
|
|
640
|
+
/**
|
|
641
|
+
* @property
|
|
642
|
+
*/
|
|
643
|
+
endpoint?: string;
|
|
644
|
+
/**
|
|
645
|
+
* @property
|
|
646
|
+
*/
|
|
647
|
+
displayName?: string;
|
|
648
|
+
/**
|
|
649
|
+
* @property
|
|
650
|
+
*/
|
|
651
|
+
entityName?: string;
|
|
652
|
+
/**
|
|
653
|
+
* @property
|
|
654
|
+
*/
|
|
655
|
+
entityId?: number;
|
|
656
|
+
/**
|
|
657
|
+
* @property
|
|
658
|
+
*/
|
|
659
|
+
templateId?: number;
|
|
660
|
+
/**
|
|
661
|
+
* @property
|
|
662
|
+
*/
|
|
663
|
+
email?: string;
|
|
664
|
+
/**
|
|
665
|
+
* @property
|
|
666
|
+
*/
|
|
667
|
+
subject?: string;
|
|
668
|
+
/**
|
|
669
|
+
* @property
|
|
670
|
+
*/
|
|
671
|
+
content?: string;
|
|
672
|
+
/**
|
|
673
|
+
* constructor
|
|
674
|
+
* @param init
|
|
675
|
+
*/
|
|
676
|
+
constructor(init?: Partial<TemplatePreview>);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
declare class TemplatePreviewService extends GenericService<TemplatePreview> {
|
|
680
|
+
/**
|
|
681
|
+
* Constructor
|
|
682
|
+
*/
|
|
683
|
+
constructor();
|
|
684
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePreviewService, never>;
|
|
685
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TemplatePreviewService>;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
declare class TemplatePreviewDialogComponent extends BaseComponent {
|
|
689
|
+
protected service: TemplatePreviewService;
|
|
690
|
+
dialogRef: MatDialogRef<TemplatePreviewDialogComponent>;
|
|
691
|
+
data: TemplatePreview;
|
|
692
|
+
protected route: ActivatedRoute;
|
|
693
|
+
protected changeDetectorRef: ChangeDetectorRef;
|
|
694
|
+
/**
|
|
695
|
+
* TemplateType
|
|
696
|
+
*/
|
|
697
|
+
TemplateType: typeof TemplateType;
|
|
698
|
+
/**
|
|
699
|
+
* Pdf blob
|
|
700
|
+
*/
|
|
701
|
+
pdfBlob?: Blob;
|
|
702
|
+
/**
|
|
703
|
+
* PDF source
|
|
704
|
+
*/
|
|
705
|
+
pdfSrc?: string | Uint8Array | PDFSource;
|
|
706
|
+
/**
|
|
707
|
+
* Pdf zoom
|
|
708
|
+
*/
|
|
709
|
+
zoom: number;
|
|
710
|
+
/**
|
|
711
|
+
* Pdf zoom scale
|
|
712
|
+
*/
|
|
713
|
+
zoomScale: 'page-height' | 'page-fit' | 'page-width';
|
|
714
|
+
/**
|
|
715
|
+
* Track whether the dialog is maximized
|
|
716
|
+
*/
|
|
717
|
+
isMaximized: boolean;
|
|
718
|
+
iframeRef?: ElementRef;
|
|
719
|
+
emailModel?: NgModel;
|
|
720
|
+
/**
|
|
721
|
+
* Constructor
|
|
722
|
+
* @param dialogRef
|
|
723
|
+
* @param data
|
|
724
|
+
*/
|
|
725
|
+
constructor(service: TemplatePreviewService, dialogRef: MatDialogRef<TemplatePreviewDialogComponent>, data: TemplatePreview, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
|
|
726
|
+
/**
|
|
727
|
+
* Lifecycle hook that is called after data-bound properties
|
|
728
|
+
* of a directive are initialized.
|
|
729
|
+
*/
|
|
730
|
+
ngOnInit(): void;
|
|
731
|
+
/**
|
|
732
|
+
* Sends a mail
|
|
733
|
+
*/
|
|
734
|
+
sendMail(): void;
|
|
735
|
+
/**
|
|
736
|
+
* Downloads the pdf
|
|
737
|
+
*/
|
|
738
|
+
download(): void;
|
|
739
|
+
/**
|
|
740
|
+
* Zooms in the pdf
|
|
741
|
+
*/
|
|
742
|
+
zoomIn(): void;
|
|
743
|
+
/**
|
|
744
|
+
* Zooms out the pdf
|
|
745
|
+
*/
|
|
746
|
+
zoomOut(): void;
|
|
747
|
+
/**
|
|
748
|
+
* Closes the dialog
|
|
749
|
+
*/
|
|
750
|
+
cancel(): void;
|
|
751
|
+
/**
|
|
752
|
+
* Toggle the dialog between maximized and normal size
|
|
753
|
+
*/
|
|
754
|
+
toggleMaximize(): void;
|
|
755
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePreviewDialogComponent, never>;
|
|
756
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplatePreviewDialogComponent, "app-template-preview", never, {}, {}, never, never, true, never>;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
declare enum FaqScope {
|
|
760
|
+
CustomerPortal = 0,
|
|
761
|
+
Admin = 1
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* @class
|
|
766
|
+
*/
|
|
767
|
+
declare class ContentVariableClient {
|
|
768
|
+
/**
|
|
769
|
+
* @property
|
|
770
|
+
*/
|
|
771
|
+
contentVariableId?: number;
|
|
772
|
+
/**
|
|
773
|
+
* @property
|
|
774
|
+
*/
|
|
775
|
+
clientId?: number;
|
|
776
|
+
/**
|
|
777
|
+
* @property
|
|
778
|
+
*/
|
|
779
|
+
client?: any;
|
|
780
|
+
/**
|
|
781
|
+
* @property
|
|
782
|
+
*/
|
|
783
|
+
clientName?: string;
|
|
784
|
+
/**
|
|
785
|
+
* Constructor
|
|
786
|
+
* @param init
|
|
787
|
+
*/
|
|
788
|
+
constructor(init?: Partial<ContentVariableClient>);
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* @class
|
|
793
|
+
*/
|
|
794
|
+
declare class ContentVariableDepartment {
|
|
795
|
+
/**
|
|
796
|
+
* @property
|
|
797
|
+
*/
|
|
798
|
+
contentVariableId?: number;
|
|
799
|
+
/**
|
|
800
|
+
* @property
|
|
801
|
+
*/
|
|
802
|
+
departmentId?: number;
|
|
803
|
+
/**
|
|
804
|
+
* @property
|
|
805
|
+
*/
|
|
806
|
+
department?: any;
|
|
807
|
+
/**
|
|
808
|
+
* @property
|
|
809
|
+
*/
|
|
810
|
+
departmentName?: string;
|
|
811
|
+
/**
|
|
812
|
+
* Constructor
|
|
813
|
+
* @param init
|
|
814
|
+
*/
|
|
815
|
+
constructor(init?: Partial<ContentVariableDepartment>);
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
declare class ContentVariable extends AuditEntity {
|
|
819
|
+
/**
|
|
820
|
+
* @property
|
|
821
|
+
*/
|
|
822
|
+
title?: string;
|
|
823
|
+
/**
|
|
824
|
+
* @property
|
|
825
|
+
*/
|
|
826
|
+
name?: string;
|
|
827
|
+
/**
|
|
828
|
+
* @property
|
|
829
|
+
*/
|
|
830
|
+
value?: string;
|
|
831
|
+
/**
|
|
832
|
+
* @property
|
|
833
|
+
*/
|
|
834
|
+
clientJoins?: ContentVariableClient[];
|
|
835
|
+
/**
|
|
836
|
+
* @property
|
|
837
|
+
*/
|
|
838
|
+
departmentJoins?: ContentVariableDepartment[];
|
|
839
|
+
/**
|
|
840
|
+
* @property
|
|
841
|
+
*/
|
|
842
|
+
enabled?: boolean;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* @class
|
|
847
|
+
*/
|
|
848
|
+
declare class FaqClient {
|
|
849
|
+
/**
|
|
850
|
+
* @property
|
|
851
|
+
*/
|
|
852
|
+
faqId?: number;
|
|
853
|
+
/**
|
|
854
|
+
* @property
|
|
855
|
+
*/
|
|
856
|
+
clientId?: number;
|
|
857
|
+
/**
|
|
858
|
+
* @property
|
|
859
|
+
*/
|
|
860
|
+
client?: any;
|
|
861
|
+
/**
|
|
862
|
+
* @property
|
|
863
|
+
*/
|
|
864
|
+
clientName?: string;
|
|
865
|
+
/**
|
|
866
|
+
* Constructor
|
|
867
|
+
* @param init
|
|
868
|
+
*/
|
|
869
|
+
constructor(init?: Partial<FaqClient>);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* @class
|
|
874
|
+
*/
|
|
875
|
+
declare class FaqDepartment {
|
|
876
|
+
/**
|
|
877
|
+
* @property
|
|
878
|
+
*/
|
|
879
|
+
faqId?: number;
|
|
880
|
+
/**
|
|
881
|
+
* @property
|
|
882
|
+
*/
|
|
883
|
+
departmentId?: number;
|
|
884
|
+
/**
|
|
885
|
+
* @property
|
|
886
|
+
*/
|
|
887
|
+
department?: any;
|
|
888
|
+
/**
|
|
889
|
+
* @property
|
|
890
|
+
*/
|
|
891
|
+
departmentName?: string;
|
|
892
|
+
/**
|
|
893
|
+
* Constructor
|
|
894
|
+
* @param init
|
|
895
|
+
*/
|
|
896
|
+
constructor(init?: Partial<FaqDepartment>);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
declare class Faq extends AuditEntity {
|
|
900
|
+
/**
|
|
901
|
+
* @property
|
|
902
|
+
*/
|
|
903
|
+
question?: string;
|
|
904
|
+
/**
|
|
905
|
+
* @property
|
|
906
|
+
*/
|
|
907
|
+
group?: string;
|
|
908
|
+
/**
|
|
909
|
+
* @property
|
|
910
|
+
*/
|
|
911
|
+
clientJoins?: FaqClient[];
|
|
912
|
+
/**
|
|
913
|
+
* @property
|
|
914
|
+
*/
|
|
915
|
+
departmentJoins?: FaqDepartment[];
|
|
916
|
+
/**
|
|
917
|
+
* @property
|
|
918
|
+
*/
|
|
919
|
+
ordering?: number;
|
|
920
|
+
/**
|
|
921
|
+
* @property
|
|
922
|
+
*/
|
|
923
|
+
answer?: string;
|
|
924
|
+
/**
|
|
925
|
+
* @property
|
|
926
|
+
*/
|
|
927
|
+
enabled?: boolean;
|
|
928
|
+
/**
|
|
929
|
+
* constructor
|
|
930
|
+
* @param init
|
|
931
|
+
*/
|
|
932
|
+
constructor(init?: Partial<Faq>);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
declare class Slider extends AuditEntity {
|
|
936
|
+
/**
|
|
937
|
+
* @property Slider name.
|
|
938
|
+
* @description The title or identifier for the slider.
|
|
939
|
+
* @type {string | undefined}
|
|
940
|
+
*/
|
|
941
|
+
name?: string;
|
|
942
|
+
/**
|
|
943
|
+
* @property Slider group.
|
|
944
|
+
* @description A group identifier used to categorize sliders.
|
|
945
|
+
* @type {string | undefined}
|
|
946
|
+
*/
|
|
947
|
+
group?: string;
|
|
948
|
+
/**
|
|
949
|
+
* @property Slider content.
|
|
950
|
+
* @description HTML or rich text content displayed within the slider.
|
|
951
|
+
* @type {string | undefined}
|
|
952
|
+
*/
|
|
953
|
+
content?: string;
|
|
954
|
+
/**
|
|
955
|
+
* @property Embedded style.
|
|
956
|
+
* @description Optional CSS styling specific to this content.
|
|
957
|
+
* @type {string}
|
|
958
|
+
*/
|
|
959
|
+
styleInline?: string;
|
|
960
|
+
/**
|
|
961
|
+
* @property Slider image path.
|
|
962
|
+
* @description File path to the slider image, typically used internally.
|
|
963
|
+
* @type {string | undefined}
|
|
964
|
+
*/
|
|
965
|
+
imagePath?: string;
|
|
966
|
+
/**
|
|
967
|
+
* @property Image file for the slider.
|
|
968
|
+
* @description This property stores the image file for the slider, located in a common directory for slider images.
|
|
969
|
+
* @type {string | undefined}
|
|
970
|
+
*/
|
|
971
|
+
image?: string;
|
|
972
|
+
/**
|
|
973
|
+
* @property CSS class.
|
|
974
|
+
* @description Custom CSS class applied to the slider, useful for styling purposes.
|
|
975
|
+
* @type {string | undefined}
|
|
976
|
+
*/
|
|
977
|
+
cssClass?: string;
|
|
978
|
+
/**
|
|
979
|
+
* @property Client ID.
|
|
980
|
+
* @description Reference to the associated client or project.
|
|
981
|
+
* @type {number | undefined}
|
|
982
|
+
*/
|
|
983
|
+
clientId?: number;
|
|
984
|
+
/**
|
|
985
|
+
* @property Ordering index.
|
|
986
|
+
* @description Position of the slider in a sorted list.
|
|
987
|
+
* @type {number | undefined}
|
|
988
|
+
*/
|
|
989
|
+
ordering?: number;
|
|
990
|
+
/**
|
|
991
|
+
* @property Enabled flag.
|
|
992
|
+
* @description Indicates whether the slider is active or visible.
|
|
993
|
+
* @type {boolean | undefined}
|
|
994
|
+
*/
|
|
995
|
+
enabled?: boolean;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Includes resolve service
|
|
1000
|
+
*/
|
|
1001
|
+
declare class DocumentListProjectionResolve {
|
|
1002
|
+
private oidcSecurityService;
|
|
1003
|
+
private settings;
|
|
1004
|
+
/**
|
|
1005
|
+
* Constructor
|
|
1006
|
+
* @param oidcSecurityService
|
|
1007
|
+
*/
|
|
1008
|
+
constructor(oidcSecurityService: OidcSecurityService);
|
|
1009
|
+
/**
|
|
1010
|
+
* Resolves includes
|
|
1011
|
+
*/
|
|
1012
|
+
resolve(): Observable<string[]>;
|
|
1013
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentListProjectionResolve, never>;
|
|
1014
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentListProjectionResolve>;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Excluded columns resolve service
|
|
1019
|
+
*/
|
|
1020
|
+
declare class ExcludedColumnsResolve {
|
|
1021
|
+
/**
|
|
1022
|
+
* Injects the CmsSettings service using Angular's `inject()` function.
|
|
1023
|
+
* This allows access to the CmsSettings instance outside of constructor-based dependency injection,
|
|
1024
|
+
* commonly used in standalone components or functional-style Angular APIs.
|
|
1025
|
+
*/
|
|
1026
|
+
private settings;
|
|
1027
|
+
/**
|
|
1028
|
+
* Resolves excluded columns
|
|
1029
|
+
*/
|
|
1030
|
+
resolve(): Observable<string[]>;
|
|
1031
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExcludedColumnsResolve, never>;
|
|
1032
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExcludedColumnsResolve>;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Excluded fields resolve service
|
|
1037
|
+
*/
|
|
1038
|
+
declare class ExcludedFieldsResolve {
|
|
1039
|
+
/**
|
|
1040
|
+
* Injects the CmsSettings service using Angular's `inject()` function.
|
|
1041
|
+
* This allows access to the CmsSettings instance outside of constructor-based dependency injection,
|
|
1042
|
+
* commonly used in standalone components or functional-style Angular APIs.
|
|
1043
|
+
*/
|
|
1044
|
+
private settings;
|
|
1045
|
+
/**
|
|
1046
|
+
* Resolves excluded fields
|
|
1047
|
+
*/
|
|
1048
|
+
resolve(): Observable<string[]>;
|
|
1049
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExcludedFieldsResolve, never>;
|
|
1050
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExcludedFieldsResolve>;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Includes resolve service
|
|
1055
|
+
*/
|
|
1056
|
+
declare class FormIncludesResolve {
|
|
1057
|
+
private oidcSecurityService;
|
|
1058
|
+
/**
|
|
1059
|
+
* Injects the CmsSettings service using Angular's `inject()` function.
|
|
1060
|
+
* This allows access to the CmsSettings instance outside of constructor-based dependency injection,
|
|
1061
|
+
* commonly used in standalone components or functional-style Angular APIs.
|
|
1062
|
+
*/
|
|
1063
|
+
private settings;
|
|
1064
|
+
/**
|
|
1065
|
+
* Constructor
|
|
1066
|
+
* @param oidcSecurityService
|
|
1067
|
+
*/
|
|
1068
|
+
constructor(oidcSecurityService: OidcSecurityService);
|
|
1069
|
+
/**
|
|
1070
|
+
* Resolves includes
|
|
1071
|
+
*/
|
|
1072
|
+
resolve(): Observable<string[]>;
|
|
1073
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormIncludesResolve, never>;
|
|
1074
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormIncludesResolve>;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Form validation resolve service
|
|
1079
|
+
*/
|
|
1080
|
+
declare class FormValidationResolve {
|
|
1081
|
+
/**
|
|
1082
|
+
* Injects the CmsSettings service using Angular's `inject()` function.
|
|
1083
|
+
* This allows access to the CmsSettings instance outside of constructor-based dependency injection,
|
|
1084
|
+
* commonly used in standalone components or functional-style Angular APIs.
|
|
1085
|
+
*/
|
|
1086
|
+
private settings;
|
|
1087
|
+
/**
|
|
1088
|
+
* Resolves Form validation
|
|
1089
|
+
*/
|
|
1090
|
+
resolve(): Observable<any>;
|
|
1091
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormValidationResolve, never>;
|
|
1092
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormValidationResolve>;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Includes resolve service
|
|
1097
|
+
*/
|
|
1098
|
+
declare class ListProjectionResolve {
|
|
1099
|
+
private oidcSecurityService;
|
|
1100
|
+
/**
|
|
1101
|
+
* Injects the CmsSettings service using Angular's `inject()` function.
|
|
1102
|
+
* This allows access to the CmsSettings instance outside of constructor-based dependency injection,
|
|
1103
|
+
* commonly used in standalone components or functional-style Angular APIs.
|
|
1104
|
+
*/
|
|
1105
|
+
private settings;
|
|
1106
|
+
/**
|
|
1107
|
+
* Constructor
|
|
1108
|
+
* @param oidcSecurityService
|
|
1109
|
+
*/
|
|
1110
|
+
constructor(oidcSecurityService: OidcSecurityService);
|
|
1111
|
+
/**
|
|
1112
|
+
* Resolves includes
|
|
1113
|
+
*/
|
|
1114
|
+
resolve(): Observable<string[]>;
|
|
1115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListProjectionResolve, never>;
|
|
1116
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ListProjectionResolve>;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Settings resolve service
|
|
1121
|
+
*/
|
|
1122
|
+
declare class SettingsResolve {
|
|
1123
|
+
/**
|
|
1124
|
+
* Resolves settings
|
|
1125
|
+
*/
|
|
1126
|
+
resolve(route: ActivatedRouteSnapshot): Observable<CmsSettings>;
|
|
1127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsResolve, never>;
|
|
1128
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SettingsResolve>;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
declare class ContentVariableService extends GenericService<ContentVariable> {
|
|
1132
|
+
/**
|
|
1133
|
+
* Constructor
|
|
1134
|
+
*/
|
|
1135
|
+
constructor();
|
|
1136
|
+
/**
|
|
1137
|
+
* Checks if the specified alias is available.
|
|
1138
|
+
* @param id
|
|
1139
|
+
* @param alias
|
|
1140
|
+
*/
|
|
1141
|
+
isNameAvailable(item: ContentVariable): rxjs.Observable<any>;
|
|
1142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentVariableService, never>;
|
|
1143
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContentVariableService>;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
declare class FaqService extends GenericService<Faq> {
|
|
1147
|
+
/**
|
|
1148
|
+
* Constructor
|
|
1149
|
+
*/
|
|
1150
|
+
constructor();
|
|
1151
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FaqService, never>;
|
|
1152
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FaqService>;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
declare class SliderService extends GenericService<Slider> {
|
|
1156
|
+
/**
|
|
1157
|
+
* Constructor
|
|
1158
|
+
*/
|
|
1159
|
+
constructor();
|
|
1160
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderService, never>;
|
|
1161
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SliderService>;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
declare const DocumentFormTemplate = "\n <div mat-dialog-title class=\"mat-headline-6\" i18n=\"@@newDocument\">New document</div>\n <form *ngIf=\"form\" [formGroup]=\"form\" (ngSubmit)=\"save()\">\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\n <ng-template vd-file let-field=\"field\" let-formGroup=\"formGroup\">\n <mat-form-field [attr.flex]=\"field.flex||0\" layout-margin appearance=\"outline\">\n <mat-label>{{field.header}}</mat-label>\n <div vd-file-input [formControlName]=\"field.name\" (select)=\"upload($event)\" [accept]=\"field.fileExtensions\"></div>\n </mat-form-field>\n </ng-template>\n </vd-generic-form>\n <div mat-dialog-actions class=\"pad-top\">\n <button type=\"submit\" mat-flat-button [disabled]=\"isSaving\" color=\"primary\" i18n=\"@@save\">Save</button>\n <button type=\"button\" mat-button (click)=\"cancel()\" i18n=\"@@cancel\">Cancel</button>\n </div>\n </form>";
|
|
1165
|
+
|
|
1166
|
+
export { CmsSettings, Content, ContentClient, ContentDepartment, ContentFormComponent, ContentService, ContentType, ContentVariable, ContentVariableClient, ContentVariableDepartment, ContentVariableService, Document, DocumentDialogComponent, DocumentFormBaseComponent, DocumentFormTemplate, DocumentGenericService, DocumentListProjectionResolve, DocumentService, ExcludedColumnsResolve, ExcludedFieldsResolve, Faq, FaqClient, FaqDepartment, FaqScope, FaqService, FormIncludesResolve, FormValidationResolve, ListProjectionResolve, SettingsResolve, Slider, SliderService, Template, TemplateClient, TemplateDepartment, TemplateDocService, TemplateFormComponent, TemplatePreview, TemplatePreviewDialogComponent, TemplatePreviewService, TemplateService, TemplateType, VdCmsModule, VdCmsRoutingModule, WrapTag };
|