@messaia/cdk-cms 22.0.0-rc.6 → 22.0.0-rc.8
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/messaia-cdk-cms.mjs +237 -157
- package/fesm2022/messaia-cdk-cms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -19,9 +19,9 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
19
19
|
import * as i5 from '@tinymce/tinymce-angular';
|
|
20
20
|
import { EditorModule } from '@tinymce/tinymce-angular';
|
|
21
21
|
import { of, map as map$1 } from 'rxjs';
|
|
22
|
-
import { __decorate } from 'tslib';
|
|
22
|
+
import { __decorate, __metadata } from 'tslib';
|
|
23
23
|
import { map } from 'rxjs/operators';
|
|
24
|
-
import * as
|
|
24
|
+
import * as i2$1 from '@angular/material/dialog';
|
|
25
25
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
26
26
|
import * as i6$2 from '@ctrl/ngx-codemirror';
|
|
27
27
|
import { CodemirrorModule } from '@ctrl/ngx-codemirror';
|
|
@@ -34,9 +34,11 @@ import { saveAs } from 'file-saver';
|
|
|
34
34
|
import { MatCard } from '@angular/material/card';
|
|
35
35
|
import { MatDivider } from '@angular/material/divider';
|
|
36
36
|
import { MatIcon } from '@angular/material/icon';
|
|
37
|
-
import * as i4$1 from '@angular/material/
|
|
37
|
+
import * as i4$1 from '@angular/material/input';
|
|
38
|
+
import { MatInputModule } from '@angular/material/input';
|
|
39
|
+
import * as i6$1 from '@angular/material/progress-bar';
|
|
38
40
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
39
|
-
import * as
|
|
41
|
+
import * as i8$1 from 'ng2-pdf-viewer';
|
|
40
42
|
import { PdfViewerModule } from 'ng2-pdf-viewer';
|
|
41
43
|
import * as i1 from 'angular-auth-oidc-client';
|
|
42
44
|
|
|
@@ -114,10 +116,12 @@ class ContentClient {
|
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
__decorate([
|
|
117
|
-
prop()
|
|
119
|
+
prop(),
|
|
120
|
+
__metadata("design:type", Number)
|
|
118
121
|
], ContentClient.prototype, "contentId", void 0);
|
|
119
122
|
__decorate([
|
|
120
|
-
required()
|
|
123
|
+
required(),
|
|
124
|
+
__metadata("design:type", Number)
|
|
121
125
|
], ContentClient.prototype, "clientId", void 0);
|
|
122
126
|
|
|
123
127
|
/**
|
|
@@ -149,10 +153,12 @@ class ContentDepartment {
|
|
|
149
153
|
}
|
|
150
154
|
}
|
|
151
155
|
__decorate([
|
|
152
|
-
prop()
|
|
156
|
+
prop(),
|
|
157
|
+
__metadata("design:type", Number)
|
|
153
158
|
], ContentDepartment.prototype, "contentId", void 0);
|
|
154
159
|
__decorate([
|
|
155
|
-
required()
|
|
160
|
+
required(),
|
|
161
|
+
__metadata("design:type", Number)
|
|
156
162
|
], ContentDepartment.prototype, "departmentId", void 0);
|
|
157
163
|
|
|
158
164
|
let Content = class Content extends AuditEntity {
|
|
@@ -254,42 +260,50 @@ let Content = class Content extends AuditEntity {
|
|
|
254
260
|
departmentJoins;
|
|
255
261
|
};
|
|
256
262
|
__decorate([
|
|
257
|
-
prop()
|
|
263
|
+
prop(),
|
|
264
|
+
__metadata("design:type", Number)
|
|
258
265
|
], Content.prototype, "type", void 0);
|
|
259
266
|
__decorate([
|
|
260
|
-
prop()
|
|
267
|
+
prop(),
|
|
268
|
+
__metadata("design:type", Number)
|
|
261
269
|
], Content.prototype, "sectionId", void 0);
|
|
262
270
|
__decorate([
|
|
263
271
|
required(),
|
|
264
272
|
Column(),
|
|
265
273
|
FormField({ row: 20 }),
|
|
266
|
-
Display($localize `:@@title:Title`)
|
|
274
|
+
Display($localize `:@@title:Title`),
|
|
275
|
+
__metadata("design:type", String)
|
|
267
276
|
], Content.prototype, "title", void 0);
|
|
268
277
|
__decorate([
|
|
269
278
|
required(),
|
|
270
279
|
Column({ maxWidth: 190, display: Grid.Md }),
|
|
271
280
|
FormField({ row: 30 }),
|
|
272
|
-
Display($localize `:@@name:Name`)
|
|
281
|
+
Display($localize `:@@name:Name`),
|
|
282
|
+
__metadata("design:type", String)
|
|
273
283
|
], Content.prototype, "name", void 0);
|
|
274
284
|
__decorate([
|
|
275
285
|
prop(),
|
|
276
286
|
FormField({ row: 40, type: FormFieldType.Chips }),
|
|
277
|
-
Display($localize `:@@aliases:Aliases`)
|
|
287
|
+
Display($localize `:@@aliases:Aliases`),
|
|
288
|
+
__metadata("design:type", String)
|
|
278
289
|
], Content.prototype, "aliases", void 0);
|
|
279
290
|
__decorate([
|
|
280
291
|
prop(),
|
|
281
292
|
FormField({ row: 50 }),
|
|
282
|
-
Display($localize `:@@wrap:Wrap`)
|
|
293
|
+
Display($localize `:@@wrap:Wrap`),
|
|
294
|
+
__metadata("design:type", String)
|
|
283
295
|
], Content.prototype, "wrapTag", void 0);
|
|
284
296
|
__decorate([
|
|
285
297
|
prop(),
|
|
286
298
|
FormField({ row: 50 }),
|
|
287
|
-
Display($localize `:@@layout:Layout`)
|
|
299
|
+
Display($localize `:@@layout:Layout`),
|
|
300
|
+
__metadata("design:type", String)
|
|
288
301
|
], Content.prototype, "layout", void 0);
|
|
289
302
|
__decorate([
|
|
290
303
|
prop(),
|
|
291
304
|
FormField({ row: 60, type: FormFieldType.Editor }),
|
|
292
|
-
Display($localize `:@@content:Content`)
|
|
305
|
+
Display($localize `:@@content:Content`),
|
|
306
|
+
__metadata("design:type", String)
|
|
293
307
|
], Content.prototype, "body", void 0);
|
|
294
308
|
__decorate([
|
|
295
309
|
prop(),
|
|
@@ -298,7 +312,8 @@ __decorate([
|
|
|
298
312
|
type: FormFieldType.TextArea,
|
|
299
313
|
hint: $localize `:@@scriptHint:Do not include <script> tags.`
|
|
300
314
|
}),
|
|
301
|
-
Display($localize `:@@bodyScript:Body Script`)
|
|
315
|
+
Display($localize `:@@bodyScript:Body Script`),
|
|
316
|
+
__metadata("design:type", String)
|
|
302
317
|
], Content.prototype, "script", void 0);
|
|
303
318
|
__decorate([
|
|
304
319
|
prop(),
|
|
@@ -307,7 +322,8 @@ __decorate([
|
|
|
307
322
|
type: FormFieldType.TextArea,
|
|
308
323
|
hint: $localize `:@@headScriptHint:Do not include <script> tags.`
|
|
309
324
|
}),
|
|
310
|
-
Display($localize `:@@headScript:Head Script`)
|
|
325
|
+
Display($localize `:@@headScript:Head Script`),
|
|
326
|
+
__metadata("design:type", String)
|
|
311
327
|
], Content.prototype, "headScript", void 0);
|
|
312
328
|
__decorate([
|
|
313
329
|
prop(),
|
|
@@ -316,7 +332,8 @@ __decorate([
|
|
|
316
332
|
type: FormFieldType.TextArea,
|
|
317
333
|
hint: $localize `:@@noScriptHint:Do not include <noscript> tags.`
|
|
318
334
|
}),
|
|
319
|
-
Display($localize `:@@noScript:NoScript`)
|
|
335
|
+
Display($localize `:@@noScript:NoScript`),
|
|
336
|
+
__metadata("design:type", String)
|
|
320
337
|
], Content.prototype, "noScript", void 0);
|
|
321
338
|
__decorate([
|
|
322
339
|
prop(),
|
|
@@ -325,12 +342,14 @@ __decorate([
|
|
|
325
342
|
type: FormFieldType.TextArea,
|
|
326
343
|
hint: $localize `:@@styleHint:Do not include <style> or <link> tags.`
|
|
327
344
|
}),
|
|
328
|
-
Display($localize `:@@style:Style`)
|
|
345
|
+
Display($localize `:@@style:Style`),
|
|
346
|
+
__metadata("design:type", String)
|
|
329
347
|
], Content.prototype, "style", void 0);
|
|
330
348
|
__decorate([
|
|
331
349
|
prop(),
|
|
332
350
|
FormField({ row: 200 }),
|
|
333
|
-
Display($localize `:@@showTitle:Show title`)
|
|
351
|
+
Display($localize `:@@showTitle:Show title`),
|
|
352
|
+
__metadata("design:type", Boolean)
|
|
334
353
|
], Content.prototype, "showTitle", void 0);
|
|
335
354
|
__decorate([
|
|
336
355
|
prop(),
|
|
@@ -339,7 +358,8 @@ __decorate([
|
|
|
339
358
|
event: 'toggle'
|
|
340
359
|
}),
|
|
341
360
|
FormField({ row: 210 }),
|
|
342
|
-
Display($localize `:@@enabled:Enabled`)
|
|
361
|
+
Display($localize `:@@enabled:Enabled`),
|
|
362
|
+
__metadata("design:type", Boolean)
|
|
343
363
|
], Content.prototype, "enabled", void 0);
|
|
344
364
|
__decorate([
|
|
345
365
|
required({ conditionalExpression: (x) => true }),
|
|
@@ -367,7 +387,8 @@ __decorate([
|
|
|
367
387
|
optionTemplate: (x) => x?.clientName,
|
|
368
388
|
triggerMapper: (x) => x?.clientName
|
|
369
389
|
}),
|
|
370
|
-
Display($localize `:@@projects:Projects`)
|
|
390
|
+
Display($localize `:@@projects:Projects`),
|
|
391
|
+
__metadata("design:type", Array)
|
|
371
392
|
], Content.prototype, "clientJoins", void 0);
|
|
372
393
|
__decorate([
|
|
373
394
|
prop(),
|
|
@@ -396,7 +417,8 @@ __decorate([
|
|
|
396
417
|
optionTemplate: (x) => x?.departmentName,
|
|
397
418
|
triggerMapper: (x) => x?.departmentName
|
|
398
419
|
}),
|
|
399
|
-
Display($localize `:@@departments:Departments`)
|
|
420
|
+
Display($localize `:@@departments:Departments`),
|
|
421
|
+
__metadata("design:type", Array)
|
|
400
422
|
], Content.prototype, "departmentJoins", void 0);
|
|
401
423
|
Content = __decorate([
|
|
402
424
|
Api('content'),
|
|
@@ -674,7 +696,7 @@ class ContentFormComponent extends GenericReactiveFormComponent {
|
|
|
674
696
|
}
|
|
675
697
|
}
|
|
676
698
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ContentFormComponent, deps: [{ token: ContentService }, { token: i2.FileService }, { token: i3.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
677
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: ContentFormComponent, isStandalone: true, selector: "app-content-form", viewQueries: [{ propertyName: "formElement", first: true, predicate: ["form"], descendants: true }, { propertyName: "editorComponent", first: true, predicate: ["editor"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"Content\" i18n-toolbarTitle=\"@@content\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\r\n <ng-template vd-editor let-field=\"field\" let-formGroup=\"formGroup\">\r\n <mat-form-field
|
|
699
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: ContentFormComponent, isStandalone: true, selector: "app-content-form", viewQueries: [{ propertyName: "formElement", first: true, predicate: ["form"], descendants: true }, { propertyName: "editorComponent", first: true, predicate: ["editor"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"Content\" i18n-toolbarTitle=\"@@content\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\r\n <ng-template vd-editor let-field=\"field\" let-formGroup=\"formGroup\">\r\n <mat-form-field appearance=\"outline\">\r\n <mat-label>{{field.label}}</mat-label>\r\n <editor [formControlName]=\"field.name\" [init]=\"editorConfig\" tinyMatFormControl flex></editor>\r\n @if (field.hint) {\r\n <mat-hint>{{field.hint}}</mat-hint>\r\n }\r\n @for (errorMessage of formGroup.controls[field.name]['errorMessages']; track errorMessage) {\r\n <mat-error>{{errorMessage}}</mat-error>\r\n }\r\n </mat-form-field>\r\n </ng-template>\r\n </vd-generic-form>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode || true) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Audit -->\r\n @if (isEditMode) {\r\n <mat-expansion-panel id=\"audit\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@audit\">Audit</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-audit [entity]=\"item\"> </vd-audit>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"button\" mat-flat-button color=\"accent\" (click)=\"back()\" i18n=\"@@close\">Close</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n }\r\n <!-- #endregion -->\r\n </mat-accordion>\r\n </vd-layout-card-over>\r\n </form>\r\n }\r\n</vd-layout-nav>", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: RxReactiveFormsModule }, { kind: "directive", type: i2.AsyncValidationDirective, selector: "[ngModel],[formControlName],[formControl]", inputs: ["async"] }, { kind: "directive", type: i2.RxwebFormDirective, selector: "[formGroup],[rxwebForm]", inputs: ["formGroup", "rxwebForm"] }, { kind: "directive", type: i2.RxFormControlDirective, selector: "[ngModel],[formControlName],[formControl]", inputs: ["rxalpha", "rxalphaNumeric", "rxascii", "rxcompare", "rxcompose", "rxcontains", "rxcreditCard", "rxdataUri", "rxdifferent", "rxdigit", "rxemail", "rxendsWith", "rxeven", "rxextension", "rxfactor", "rxfileSize", "rxgreaterThanEqualTo", "rxgreaterThan", "rxhexColor", "rxjson", "rxlatitude", "rxlatLong", "rxleapYear", "rxlessThan", "rxlessThanEqualTo", "rxlongitude", "rxlowerCase", "rxmac", "rxmaxDate", "rxmaxLength", "rxmaxNumber", "rxminDate", "rxminLength", "rxminNumber", "rxnumeric", "rxodd", "rxpassword", "rxport", "rxprimeNumber", "rxrequired", "rxrange", "rxrule", "rxstartsWith", "rxtime", "rxupperCase", "rxurl", "rxunique", "rxnotEmpty", "rxcusip", "rxgrid", "rxdate"] }, { kind: "ngmodule", type: EditorModule }, { kind: "component", type: i5.EditorComponent, selector: "editor", inputs: ["cloudChannel", "apiKey", "licenseKey", "init", "id", "initialValue", "outputFormat", "inline", "tagName", "plugins", "toolbar", "modelEvents", "allowedEvents", "ignoreEvents", "disabled"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i6.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i6.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "directive", type: i6.MatExpansionPanelActionRow, selector: "mat-action-row" }, { kind: "component", type: i6.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i6.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i6.MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "directive", type: i7.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i7.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: MatFormFieldEditorDirective, selector: "[tinyMatFormControl]", inputs: ["errorStateMatcher", "disabled", "id", "placeholder", "required", "value"], outputs: ["editorChange"] }, { kind: "component", type: VdLayoutNavComponent, selector: "vd-layout-nav", inputs: ["toolbarTitle", "editMode", "actions", "data", "context", "hideToolbar", "icon", "logo", "color", "hideToggle", "backNavigationRoute", "navigationRoute"], outputs: ["reload"] }, { kind: "component", type: VdLayoutCardOverComponent, selector: "vd-layout-card-over", inputs: ["cardTitle", "cardSubtitle", "cardWidth", "color"] }, { kind: "component", type: VdGenericFormComponent, selector: "vd-generic-form", inputs: ["formGroup", "classType", "formDefinition", "fieldGroups", "groupName", "fieldSets", "context", "debugValue", "readonly", "separatorKeysCodes"], outputs: ["init"] }, { kind: "directive", type: VdEditorDirective, selector: "[vd-editor]ng-template" }, { kind: "component", type: VdAuditComponent, selector: "vd-audit", inputs: ["entity"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
678
700
|
}
|
|
679
701
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ContentFormComponent, decorators: [{
|
|
680
702
|
type: Component,
|
|
@@ -691,7 +713,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
691
713
|
VdGenericFormComponent,
|
|
692
714
|
VdEditorDirective,
|
|
693
715
|
VdAuditComponent
|
|
694
|
-
], template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"Content\" i18n-toolbarTitle=\"@@content\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\r\n <ng-template vd-editor let-field=\"field\" let-formGroup=\"formGroup\">\r\n <mat-form-field
|
|
716
|
+
], template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"Content\" i18n-toolbarTitle=\"@@content\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\r\n <ng-template vd-editor let-field=\"field\" let-formGroup=\"formGroup\">\r\n <mat-form-field appearance=\"outline\">\r\n <mat-label>{{field.label}}</mat-label>\r\n <editor [formControlName]=\"field.name\" [init]=\"editorConfig\" tinyMatFormControl flex></editor>\r\n @if (field.hint) {\r\n <mat-hint>{{field.hint}}</mat-hint>\r\n }\r\n @for (errorMessage of formGroup.controls[field.name]['errorMessages']; track errorMessage) {\r\n <mat-error>{{errorMessage}}</mat-error>\r\n }\r\n </mat-form-field>\r\n </ng-template>\r\n </vd-generic-form>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode || true) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Audit -->\r\n @if (isEditMode) {\r\n <mat-expansion-panel id=\"audit\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@audit\">Audit</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-audit [entity]=\"item\"> </vd-audit>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"button\" mat-flat-button color=\"accent\" (click)=\"back()\" i18n=\"@@close\">Close</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n }\r\n <!-- #endregion -->\r\n </mat-accordion>\r\n </vd-layout-card-over>\r\n </form>\r\n }\r\n</vd-layout-nav>" }]
|
|
695
717
|
}], ctorParameters: () => [{ type: ContentService }, { type: i2.FileService }, { type: i3.HttpClient }], propDecorators: { formElement: [{
|
|
696
718
|
type: ViewChild,
|
|
697
719
|
args: ['form', { static: false }]
|
|
@@ -747,7 +769,8 @@ __decorate([
|
|
|
747
769
|
readonly: (x) => (x.id ?? 0) > 0,
|
|
748
770
|
hide: (_, __, ctx) => ctx?.currentUser?.isDepartmentAdmin
|
|
749
771
|
}),
|
|
750
|
-
Display($localize `:@@project:Project`)
|
|
772
|
+
Display($localize `:@@project:Project`),
|
|
773
|
+
__metadata("design:type", Number)
|
|
751
774
|
], Document.prototype, "clientId", void 0);
|
|
752
775
|
__decorate([
|
|
753
776
|
prop(),
|
|
@@ -768,10 +791,12 @@ __decorate([
|
|
|
768
791
|
readonly: (x) => (x.id ?? 0) > 0 || !x.clientId,
|
|
769
792
|
hide: (_, __, ctx) => ctx?.currentUser?.isDepartmentAdmin
|
|
770
793
|
}),
|
|
771
|
-
Display($localize `:@@department:Department`)
|
|
794
|
+
Display($localize `:@@department:Department`),
|
|
795
|
+
__metadata("design:type", Number)
|
|
772
796
|
], Document.prototype, "departmentId", void 0);
|
|
773
797
|
__decorate([
|
|
774
|
-
required()
|
|
798
|
+
required(),
|
|
799
|
+
__metadata("design:type", String)
|
|
775
800
|
], Document.prototype, "path", void 0);
|
|
776
801
|
Document = __decorate([
|
|
777
802
|
Table({
|
|
@@ -779,9 +804,42 @@ Document = __decorate([
|
|
|
779
804
|
projection: ['id', 'createdDate', 'name', 'extension', 'publicLink', 'isEditable', 'isDeletable'],
|
|
780
805
|
editable: false,
|
|
781
806
|
downloadable: true
|
|
782
|
-
})
|
|
807
|
+
}),
|
|
808
|
+
__metadata("design:paramtypes", [Object])
|
|
783
809
|
], Document);
|
|
784
810
|
|
|
811
|
+
class DocumentGenericService extends GenericService {
|
|
812
|
+
/**
|
|
813
|
+
* Constructor
|
|
814
|
+
* @param serviceName
|
|
815
|
+
*/
|
|
816
|
+
constructor(serviceName) {
|
|
817
|
+
super(serviceName);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
class DocumentService extends DocumentGenericService {
|
|
822
|
+
/**
|
|
823
|
+
* Constructor
|
|
824
|
+
*/
|
|
825
|
+
constructor() {
|
|
826
|
+
super('document');
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Sends an email to the customer
|
|
830
|
+
* @param id The ID of the document
|
|
831
|
+
*/
|
|
832
|
+
sendMail(id) {
|
|
833
|
+
return this.update(`sendMail/${id}`, null);
|
|
834
|
+
}
|
|
835
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
836
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
837
|
+
}
|
|
838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, decorators: [{
|
|
839
|
+
type: Injectable,
|
|
840
|
+
args: [{ providedIn: 'root' }]
|
|
841
|
+
}], ctorParameters: () => [] });
|
|
842
|
+
|
|
785
843
|
const DocumentFormTemplate = /* html */ `
|
|
786
844
|
<div mat-dialog-title class="mat-headline-6" i18n="@@newDocument">New document</div>
|
|
787
845
|
@if(form){
|
|
@@ -881,39 +939,7 @@ class DocumentFormBaseComponent extends GenericReactiveFormComponent {
|
|
|
881
939
|
}
|
|
882
940
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentFormBaseComponent, decorators: [{
|
|
883
941
|
type: Directive
|
|
884
|
-
}], ctorParameters: () => [{ type: i0.Type }, { type: undefined }, { type: i2.FileService }, { type:
|
|
885
|
-
|
|
886
|
-
class DocumentGenericService extends GenericService {
|
|
887
|
-
/**
|
|
888
|
-
* Constructor
|
|
889
|
-
* @param serviceName
|
|
890
|
-
*/
|
|
891
|
-
constructor(serviceName) {
|
|
892
|
-
super(serviceName);
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
class DocumentService extends DocumentGenericService {
|
|
897
|
-
/**
|
|
898
|
-
* Constructor
|
|
899
|
-
*/
|
|
900
|
-
constructor() {
|
|
901
|
-
super('document');
|
|
902
|
-
}
|
|
903
|
-
/**
|
|
904
|
-
* Sends an email to the customer
|
|
905
|
-
* @param id The ID of the document
|
|
906
|
-
*/
|
|
907
|
-
sendMail(id) {
|
|
908
|
-
return this.update(`sendMail/${id}`, null);
|
|
909
|
-
}
|
|
910
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
911
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
912
|
-
}
|
|
913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, decorators: [{
|
|
914
|
-
type: Injectable,
|
|
915
|
-
args: [{ providedIn: 'root' }]
|
|
916
|
-
}], ctorParameters: () => [] });
|
|
942
|
+
}], ctorParameters: () => [{ type: i0.Type }, { type: undefined }, { type: i2.FileService }, { type: i2$1.MatDialogRef }, { type: undefined }] });
|
|
917
943
|
|
|
918
944
|
class DocumentDialogComponent extends DocumentFormBaseComponent {
|
|
919
945
|
documentService;
|
|
@@ -936,8 +962,8 @@ class DocumentDialogComponent extends DocumentFormBaseComponent {
|
|
|
936
962
|
onBeforeFormBuild() {
|
|
937
963
|
this.item.isPublic = true;
|
|
938
964
|
}
|
|
939
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentDialogComponent, deps: [{ token: DocumentService }, { token: i2.FileService }, { token:
|
|
940
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: DocumentDialogComponent, isStandalone: true, selector: "document-dialog", usesInheritance: true, ngImport: i0, template: "\n <div mat-dialog-title class=\"mat-headline-6\" i18n=\"@@newDocument\">New document</div>\n @if(form){\n <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>\n }", isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type:
|
|
965
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentDialogComponent, deps: [{ token: DocumentService }, { token: i2.FileService }, { token: i2$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
966
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: DocumentDialogComponent, isStandalone: true, selector: "document-dialog", usesInheritance: true, ngImport: i0, template: "\n <div mat-dialog-title class=\"mat-headline-6\" i18n=\"@@newDocument\">New document</div>\n @if(form){\n <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>\n }", isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i2$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "component", type: VdGenericFormComponent, selector: "vd-generic-form", inputs: ["formGroup", "classType", "formDefinition", "fieldGroups", "groupName", "fieldSets", "context", "debugValue", "readonly", "separatorKeysCodes"], outputs: ["init"] }, { kind: "component", type: VdFileInputComponent, selector: "[vd-file-input]", inputs: ["accept", "placeholder", "required", "multiple", "disabled", "errorState"], outputs: ["select", "clear"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
941
967
|
}
|
|
942
968
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentDialogComponent, decorators: [{
|
|
943
969
|
type: Component,
|
|
@@ -953,7 +979,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
953
979
|
VdFileInputComponent
|
|
954
980
|
]
|
|
955
981
|
}]
|
|
956
|
-
}], ctorParameters: () => [{ type: DocumentService }, { type: i2.FileService }, { type:
|
|
982
|
+
}], ctorParameters: () => [{ type: DocumentService }, { type: i2.FileService }, { type: i2$1.MatDialogRef }, { type: Document, decorators: [{
|
|
957
983
|
type: Inject,
|
|
958
984
|
args: [MAT_DIALOG_DATA]
|
|
959
985
|
}] }] });
|
|
@@ -987,10 +1013,12 @@ class FaqClient {
|
|
|
987
1013
|
}
|
|
988
1014
|
}
|
|
989
1015
|
__decorate([
|
|
990
|
-
prop()
|
|
1016
|
+
prop(),
|
|
1017
|
+
__metadata("design:type", Number)
|
|
991
1018
|
], FaqClient.prototype, "faqId", void 0);
|
|
992
1019
|
__decorate([
|
|
993
|
-
required()
|
|
1020
|
+
required(),
|
|
1021
|
+
__metadata("design:type", Number)
|
|
994
1022
|
], FaqClient.prototype, "clientId", void 0);
|
|
995
1023
|
|
|
996
1024
|
/**
|
|
@@ -1022,10 +1050,12 @@ class FaqDepartment {
|
|
|
1022
1050
|
}
|
|
1023
1051
|
}
|
|
1024
1052
|
__decorate([
|
|
1025
|
-
prop()
|
|
1053
|
+
prop(),
|
|
1054
|
+
__metadata("design:type", Number)
|
|
1026
1055
|
], FaqDepartment.prototype, "faqId", void 0);
|
|
1027
1056
|
__decorate([
|
|
1028
|
-
required()
|
|
1057
|
+
required(),
|
|
1058
|
+
__metadata("design:type", Number)
|
|
1029
1059
|
], FaqDepartment.prototype, "departmentId", void 0);
|
|
1030
1060
|
|
|
1031
1061
|
let Faq = class Faq extends AuditEntity {
|
|
@@ -1080,7 +1110,8 @@ __decorate([
|
|
|
1080
1110
|
contentLength: 30
|
|
1081
1111
|
}),
|
|
1082
1112
|
FormField({ row: 10 }),
|
|
1083
|
-
Display($localize `:@@question:Question`)
|
|
1113
|
+
Display($localize `:@@question:Question`),
|
|
1114
|
+
__metadata("design:type", String)
|
|
1084
1115
|
], Faq.prototype, "question", void 0);
|
|
1085
1116
|
__decorate([
|
|
1086
1117
|
required(),
|
|
@@ -1093,7 +1124,8 @@ __decorate([
|
|
|
1093
1124
|
row: 20,
|
|
1094
1125
|
type: FormFieldType.Autocomplete
|
|
1095
1126
|
}),
|
|
1096
|
-
Display($localize `:@@group:Group`)
|
|
1127
|
+
Display($localize `:@@group:Group`),
|
|
1128
|
+
__metadata("design:type", String)
|
|
1097
1129
|
], Faq.prototype, "group", void 0);
|
|
1098
1130
|
__decorate([
|
|
1099
1131
|
required({ conditionalExpression: (x) => true }),
|
|
@@ -1122,7 +1154,8 @@ __decorate([
|
|
|
1122
1154
|
optionTemplate: (x) => x?.clientName,
|
|
1123
1155
|
triggerMapper: (x) => x?.clientName
|
|
1124
1156
|
}),
|
|
1125
|
-
Display($localize `:@@projects:Projects`)
|
|
1157
|
+
Display($localize `:@@projects:Projects`),
|
|
1158
|
+
__metadata("design:type", Array)
|
|
1126
1159
|
], Faq.prototype, "clientJoins", void 0);
|
|
1127
1160
|
__decorate([
|
|
1128
1161
|
prop(),
|
|
@@ -1152,12 +1185,14 @@ __decorate([
|
|
|
1152
1185
|
optionTemplate: (x) => x?.departmentName,
|
|
1153
1186
|
triggerMapper: (x) => x?.departmentName
|
|
1154
1187
|
}),
|
|
1155
|
-
Display($localize `:@@departments:Departments`)
|
|
1188
|
+
Display($localize `:@@departments:Departments`),
|
|
1189
|
+
__metadata("design:type", Array)
|
|
1156
1190
|
], Faq.prototype, "departmentJoins", void 0);
|
|
1157
1191
|
__decorate([
|
|
1158
1192
|
prop(),
|
|
1159
1193
|
FormField({ row: 20 }),
|
|
1160
|
-
Display($localize `:@@ordering:Ordering`)
|
|
1194
|
+
Display($localize `:@@ordering:Ordering`),
|
|
1195
|
+
__metadata("design:type", Number)
|
|
1161
1196
|
], Faq.prototype, "ordering", void 0);
|
|
1162
1197
|
__decorate([
|
|
1163
1198
|
required(),
|
|
@@ -1165,7 +1200,8 @@ __decorate([
|
|
|
1165
1200
|
row: 50,
|
|
1166
1201
|
type: FormFieldType.Editor
|
|
1167
1202
|
}),
|
|
1168
|
-
Display($localize `:@@answer:Answer`)
|
|
1203
|
+
Display($localize `:@@answer:Answer`),
|
|
1204
|
+
__metadata("design:type", String)
|
|
1169
1205
|
], Faq.prototype, "answer", void 0);
|
|
1170
1206
|
__decorate([
|
|
1171
1207
|
prop(),
|
|
@@ -1174,7 +1210,8 @@ __decorate([
|
|
|
1174
1210
|
event: 'toggle'
|
|
1175
1211
|
}),
|
|
1176
1212
|
FormField({ row: 100 }),
|
|
1177
|
-
Display($localize `:@@enabled:Enabled`)
|
|
1213
|
+
Display($localize `:@@enabled:Enabled`),
|
|
1214
|
+
__metadata("design:type", Boolean)
|
|
1178
1215
|
], Faq.prototype, "enabled", void 0);
|
|
1179
1216
|
Faq = __decorate([
|
|
1180
1217
|
Api('faq'),
|
|
@@ -1182,7 +1219,8 @@ Faq = __decorate([
|
|
|
1182
1219
|
endpoint: 'faq',
|
|
1183
1220
|
projection: ['id', 'createdDate', 'question', 'group', 'enabled'],
|
|
1184
1221
|
duplicable: true
|
|
1185
|
-
})
|
|
1222
|
+
}),
|
|
1223
|
+
__metadata("design:paramtypes", [Object])
|
|
1186
1224
|
], Faq);
|
|
1187
1225
|
|
|
1188
1226
|
class FaqService extends GenericService {
|
|
@@ -1244,7 +1282,7 @@ class FaqFormComponent extends GenericReactiveFormComponent {
|
|
|
1244
1282
|
return (!this.canCreate || (!this.settings?.multitenantable && !this.settings?.multiClients)) || this.isClientAdmin;
|
|
1245
1283
|
}
|
|
1246
1284
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FaqFormComponent, deps: [{ token: FaqService }, { token: i2.FileService }, { token: i3.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
1247
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: FaqFormComponent, isStandalone: true, selector: "app-faq-form", usesInheritance: true, ngImport: i0, template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"FAQ\" i18n-toolbarTitle=\"@@faq\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\r\n <ng-template vd-editor let-field=\"field\" let-formGroup=\"formGroup\">\r\n <mat-form-field
|
|
1285
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: FaqFormComponent, isStandalone: true, selector: "app-faq-form", usesInheritance: true, ngImport: i0, template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"FAQ\" i18n-toolbarTitle=\"@@faq\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\r\n <ng-template vd-editor let-field=\"field\" let-formGroup=\"formGroup\">\r\n <mat-form-field appearance=\"outline\">\r\n <mat-label>{{field.label}}</mat-label>\r\n <editor [formControlName]=\"field.name\" [init]=\"editorConfig\" tinyMatFormControl flex></editor>\r\n @if (field.hint) {\r\n <mat-hint>{{field.hint}}</mat-hint>\r\n }\r\n @for (errorMessage of formGroup.controls[field.name]['errorMessages']; track errorMessage) {\r\n <mat-error>{{errorMessage}}</mat-error>\r\n }\r\n </mat-form-field>\r\n </ng-template>\r\n </vd-generic-form>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode || true) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Audit -->\r\n @if (isEditMode) {\r\n <mat-expansion-panel id=\"audit\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@audit\">Audit</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-audit [entity]=\"item\"> </vd-audit>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"button\" mat-flat-button color=\"accent\" (click)=\"back()\" i18n=\"@@close\">Close</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n }\r\n <!-- #endregion -->\r\n </mat-accordion>\r\n </vd-layout-card-over>\r\n </form>\r\n }\r\n</vd-layout-nav>", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: RxReactiveFormsModule }, { kind: "directive", type: i2.AsyncValidationDirective, selector: "[ngModel],[formControlName],[formControl]", inputs: ["async"] }, { kind: "directive", type: i2.RxwebFormDirective, selector: "[formGroup],[rxwebForm]", inputs: ["formGroup", "rxwebForm"] }, { kind: "directive", type: i2.RxFormControlDirective, selector: "[ngModel],[formControlName],[formControl]", inputs: ["rxalpha", "rxalphaNumeric", "rxascii", "rxcompare", "rxcompose", "rxcontains", "rxcreditCard", "rxdataUri", "rxdifferent", "rxdigit", "rxemail", "rxendsWith", "rxeven", "rxextension", "rxfactor", "rxfileSize", "rxgreaterThanEqualTo", "rxgreaterThan", "rxhexColor", "rxjson", "rxlatitude", "rxlatLong", "rxleapYear", "rxlessThan", "rxlessThanEqualTo", "rxlongitude", "rxlowerCase", "rxmac", "rxmaxDate", "rxmaxLength", "rxmaxNumber", "rxminDate", "rxminLength", "rxminNumber", "rxnumeric", "rxodd", "rxpassword", "rxport", "rxprimeNumber", "rxrequired", "rxrange", "rxrule", "rxstartsWith", "rxtime", "rxupperCase", "rxurl", "rxunique", "rxnotEmpty", "rxcusip", "rxgrid", "rxdate"] }, { kind: "ngmodule", type: EditorModule }, { kind: "component", type: i5.EditorComponent, selector: "editor", inputs: ["cloudChannel", "apiKey", "licenseKey", "init", "id", "initialValue", "outputFormat", "inline", "tagName", "plugins", "toolbar", "modelEvents", "allowedEvents", "ignoreEvents", "disabled"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i6.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i6.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "directive", type: i6.MatExpansionPanelActionRow, selector: "mat-action-row" }, { kind: "component", type: i6.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i6.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i6.MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "directive", type: i7.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i7.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: MatFormFieldEditorDirective, selector: "[tinyMatFormControl]", inputs: ["errorStateMatcher", "disabled", "id", "placeholder", "required", "value"], outputs: ["editorChange"] }, { kind: "component", type: VdLayoutNavComponent, selector: "vd-layout-nav", inputs: ["toolbarTitle", "editMode", "actions", "data", "context", "hideToolbar", "icon", "logo", "color", "hideToggle", "backNavigationRoute", "navigationRoute"], outputs: ["reload"] }, { kind: "component", type: VdLayoutCardOverComponent, selector: "vd-layout-card-over", inputs: ["cardTitle", "cardSubtitle", "cardWidth", "color"] }, { kind: "component", type: VdGenericFormComponent, selector: "vd-generic-form", inputs: ["formGroup", "classType", "formDefinition", "fieldGroups", "groupName", "fieldSets", "context", "debugValue", "readonly", "separatorKeysCodes"], outputs: ["init"] }, { kind: "directive", type: VdEditorDirective, selector: "[vd-editor]ng-template" }, { kind: "component", type: VdAuditComponent, selector: "vd-audit", inputs: ["entity"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
1248
1286
|
}
|
|
1249
1287
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: FaqFormComponent, decorators: [{
|
|
1250
1288
|
type: Component,
|
|
@@ -1261,7 +1299,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1261
1299
|
VdGenericFormComponent,
|
|
1262
1300
|
VdEditorDirective,
|
|
1263
1301
|
VdAuditComponent
|
|
1264
|
-
], template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"FAQ\" i18n-toolbarTitle=\"@@faq\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\r\n <ng-template vd-editor let-field=\"field\" let-formGroup=\"formGroup\">\r\n <mat-form-field
|
|
1302
|
+
], template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"FAQ\" i18n-toolbarTitle=\"@@faq\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\r\n <ng-template vd-editor let-field=\"field\" let-formGroup=\"formGroup\">\r\n <mat-form-field appearance=\"outline\">\r\n <mat-label>{{field.label}}</mat-label>\r\n <editor [formControlName]=\"field.name\" [init]=\"editorConfig\" tinyMatFormControl flex></editor>\r\n @if (field.hint) {\r\n <mat-hint>{{field.hint}}</mat-hint>\r\n }\r\n @for (errorMessage of formGroup.controls[field.name]['errorMessages']; track errorMessage) {\r\n <mat-error>{{errorMessage}}</mat-error>\r\n }\r\n </mat-form-field>\r\n </ng-template>\r\n </vd-generic-form>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode || true) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Audit -->\r\n @if (isEditMode) {\r\n <mat-expansion-panel id=\"audit\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@audit\">Audit</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-audit [entity]=\"item\"> </vd-audit>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"button\" mat-flat-button color=\"accent\" (click)=\"back()\" i18n=\"@@close\">Close</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n }\r\n <!-- #endregion -->\r\n </mat-accordion>\r\n </vd-layout-card-over>\r\n </form>\r\n }\r\n</vd-layout-nav>" }]
|
|
1265
1303
|
}], ctorParameters: () => [{ type: FaqService }, { type: i2.FileService }, { type: i3.HttpClient }] });
|
|
1266
1304
|
|
|
1267
1305
|
var TemplateType;
|
|
@@ -1306,10 +1344,12 @@ class TemplateClient {
|
|
|
1306
1344
|
}
|
|
1307
1345
|
}
|
|
1308
1346
|
__decorate([
|
|
1309
|
-
prop()
|
|
1347
|
+
prop(),
|
|
1348
|
+
__metadata("design:type", Number)
|
|
1310
1349
|
], TemplateClient.prototype, "templateId", void 0);
|
|
1311
1350
|
__decorate([
|
|
1312
|
-
required()
|
|
1351
|
+
required(),
|
|
1352
|
+
__metadata("design:type", Number)
|
|
1313
1353
|
], TemplateClient.prototype, "clientId", void 0);
|
|
1314
1354
|
|
|
1315
1355
|
/**
|
|
@@ -1341,10 +1381,12 @@ class TemplateDepartment {
|
|
|
1341
1381
|
}
|
|
1342
1382
|
}
|
|
1343
1383
|
__decorate([
|
|
1344
|
-
prop()
|
|
1384
|
+
prop(),
|
|
1385
|
+
__metadata("design:type", Number)
|
|
1345
1386
|
], TemplateDepartment.prototype, "templateId", void 0);
|
|
1346
1387
|
__decorate([
|
|
1347
|
-
required()
|
|
1388
|
+
required(),
|
|
1389
|
+
__metadata("design:type", Number)
|
|
1348
1390
|
], TemplateDepartment.prototype, "departmentId", void 0);
|
|
1349
1391
|
|
|
1350
1392
|
let Template = class Template extends AuditEntity {
|
|
@@ -1452,7 +1494,8 @@ __decorate([
|
|
|
1452
1494
|
enumType: TemplateEngine,
|
|
1453
1495
|
fieldSets: ['details']
|
|
1454
1496
|
}),
|
|
1455
|
-
Display($localize `:@@engine:Engine`)
|
|
1497
|
+
Display($localize `:@@engine:Engine`),
|
|
1498
|
+
__metadata("design:type", Number)
|
|
1456
1499
|
], Template.prototype, "engine", void 0);
|
|
1457
1500
|
__decorate([
|
|
1458
1501
|
required(),
|
|
@@ -1461,7 +1504,8 @@ __decorate([
|
|
|
1461
1504
|
enumType: TemplateType,
|
|
1462
1505
|
fieldSets: ['details']
|
|
1463
1506
|
}),
|
|
1464
|
-
Display($localize `:@@type:Type`)
|
|
1507
|
+
Display($localize `:@@type:Type`),
|
|
1508
|
+
__metadata("design:type", Number)
|
|
1465
1509
|
], Template.prototype, "type", void 0);
|
|
1466
1510
|
__decorate([
|
|
1467
1511
|
required(),
|
|
@@ -1470,7 +1514,8 @@ __decorate([
|
|
|
1470
1514
|
row: 10,
|
|
1471
1515
|
fieldSets: ['details']
|
|
1472
1516
|
}),
|
|
1473
|
-
Display($localize `:@@name:Name`)
|
|
1517
|
+
Display($localize `:@@name:Name`),
|
|
1518
|
+
__metadata("design:type", String)
|
|
1474
1519
|
], Template.prototype, "name", void 0);
|
|
1475
1520
|
__decorate([
|
|
1476
1521
|
prop(),
|
|
@@ -1482,7 +1527,8 @@ __decorate([
|
|
|
1482
1527
|
fieldSets: ['details'],
|
|
1483
1528
|
change: (_, __, ___, ctx) => ctx?.loadDraft()
|
|
1484
1529
|
}),
|
|
1485
|
-
Display($localize `:@@draft:Draft`)
|
|
1530
|
+
Display($localize `:@@draft:Draft`),
|
|
1531
|
+
__metadata("design:type", String)
|
|
1486
1532
|
], Template.prototype, "draft", void 0);
|
|
1487
1533
|
__decorate([
|
|
1488
1534
|
prop(),
|
|
@@ -1491,7 +1537,8 @@ __decorate([
|
|
|
1491
1537
|
row: 30,
|
|
1492
1538
|
fieldSets: ['details']
|
|
1493
1539
|
}),
|
|
1494
|
-
Display($localize `:@@subject:Subject`)
|
|
1540
|
+
Display($localize `:@@subject:Subject`),
|
|
1541
|
+
__metadata("design:type", String)
|
|
1495
1542
|
], Template.prototype, "subject", void 0);
|
|
1496
1543
|
__decorate([
|
|
1497
1544
|
required(),
|
|
@@ -1500,7 +1547,8 @@ __decorate([
|
|
|
1500
1547
|
row: 10,
|
|
1501
1548
|
fieldSets: ['details']
|
|
1502
1549
|
}),
|
|
1503
|
-
Display('Key')
|
|
1550
|
+
Display('Key'),
|
|
1551
|
+
__metadata("design:type", String)
|
|
1504
1552
|
], Template.prototype, "key", void 0);
|
|
1505
1553
|
__decorate([
|
|
1506
1554
|
prop(),
|
|
@@ -1509,17 +1557,21 @@ __decorate([
|
|
|
1509
1557
|
type: FormFieldType.TextArea,
|
|
1510
1558
|
fieldSets: ['details']
|
|
1511
1559
|
}),
|
|
1512
|
-
Display($localize `:@@notice:Notice`)
|
|
1560
|
+
Display($localize `:@@notice:Notice`),
|
|
1561
|
+
__metadata("design:type", String)
|
|
1513
1562
|
], Template.prototype, "notice", void 0);
|
|
1514
1563
|
__decorate([
|
|
1515
1564
|
prop(),
|
|
1516
|
-
Display($localize `:@@email:Email`)
|
|
1565
|
+
Display($localize `:@@email:Email`),
|
|
1566
|
+
__metadata("design:type", String)
|
|
1517
1567
|
], Template.prototype, "email", void 0);
|
|
1518
1568
|
__decorate([
|
|
1519
|
-
required()
|
|
1569
|
+
required(),
|
|
1570
|
+
__metadata("design:type", String)
|
|
1520
1571
|
], Template.prototype, "content", void 0);
|
|
1521
1572
|
__decorate([
|
|
1522
|
-
prop()
|
|
1573
|
+
prop(),
|
|
1574
|
+
__metadata("design:type", String)
|
|
1523
1575
|
], Template.prototype, "dummyData", void 0);
|
|
1524
1576
|
__decorate([
|
|
1525
1577
|
required({ conditionalExpression: (x) => true }),
|
|
@@ -1549,7 +1601,8 @@ __decorate([
|
|
|
1549
1601
|
optionTemplate: (x) => x?.clientName,
|
|
1550
1602
|
triggerMapper: (x) => x?.clientName
|
|
1551
1603
|
}),
|
|
1552
|
-
Display($localize `:@@projects:Projects`)
|
|
1604
|
+
Display($localize `:@@projects:Projects`),
|
|
1605
|
+
__metadata("design:type", Array)
|
|
1553
1606
|
], Template.prototype, "clientJoins", void 0);
|
|
1554
1607
|
__decorate([
|
|
1555
1608
|
prop(),
|
|
@@ -1580,7 +1633,8 @@ __decorate([
|
|
|
1580
1633
|
optionTemplate: (x) => x?.departmentName,
|
|
1581
1634
|
triggerMapper: (x) => x?.departmentName
|
|
1582
1635
|
}),
|
|
1583
|
-
Display($localize `:@@departments:Departments`)
|
|
1636
|
+
Display($localize `:@@departments:Departments`),
|
|
1637
|
+
__metadata("design:type", Array)
|
|
1584
1638
|
], Template.prototype, "departmentJoins", void 0);
|
|
1585
1639
|
__decorate([
|
|
1586
1640
|
prop(),
|
|
@@ -1594,7 +1648,8 @@ __decorate([
|
|
|
1594
1648
|
fieldSets: ['details'],
|
|
1595
1649
|
readonly: _ => true
|
|
1596
1650
|
}),
|
|
1597
|
-
Display($localize `:@@reviewed:Reviewed`)
|
|
1651
|
+
Display($localize `:@@reviewed:Reviewed`),
|
|
1652
|
+
__metadata("design:type", Boolean)
|
|
1598
1653
|
], Template.prototype, "reviewed", void 0);
|
|
1599
1654
|
__decorate([
|
|
1600
1655
|
prop(),
|
|
@@ -1603,10 +1658,12 @@ __decorate([
|
|
|
1603
1658
|
row: 100,
|
|
1604
1659
|
fieldSets: ['details']
|
|
1605
1660
|
}),
|
|
1606
|
-
Display($localize `:@@enabled:Enabled`)
|
|
1661
|
+
Display($localize `:@@enabled:Enabled`),
|
|
1662
|
+
__metadata("design:type", Boolean)
|
|
1607
1663
|
], Template.prototype, "enabled", void 0);
|
|
1608
1664
|
__decorate([
|
|
1609
|
-
prop()
|
|
1665
|
+
prop(),
|
|
1666
|
+
__metadata("design:type", Array)
|
|
1610
1667
|
], Template.prototype, "attachments", void 0);
|
|
1611
1668
|
Template = __decorate([
|
|
1612
1669
|
Table({
|
|
@@ -1662,6 +1719,36 @@ class TemplatePreview {
|
|
|
1662
1719
|
}
|
|
1663
1720
|
}
|
|
1664
1721
|
|
|
1722
|
+
class TemplateService extends GenericService {
|
|
1723
|
+
/**
|
|
1724
|
+
* Constructor
|
|
1725
|
+
*/
|
|
1726
|
+
constructor() {
|
|
1727
|
+
super('template');
|
|
1728
|
+
}
|
|
1729
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1730
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, providedIn: 'root' });
|
|
1731
|
+
}
|
|
1732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, decorators: [{
|
|
1733
|
+
type: Injectable,
|
|
1734
|
+
args: [{ providedIn: 'root' }]
|
|
1735
|
+
}], ctorParameters: () => [] });
|
|
1736
|
+
|
|
1737
|
+
class TemplateDocService extends GenericService {
|
|
1738
|
+
/**
|
|
1739
|
+
* Constructor
|
|
1740
|
+
*/
|
|
1741
|
+
constructor() {
|
|
1742
|
+
super('templateDoc');
|
|
1743
|
+
}
|
|
1744
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1745
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, providedIn: 'root' });
|
|
1746
|
+
}
|
|
1747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, decorators: [{
|
|
1748
|
+
type: Injectable,
|
|
1749
|
+
args: [{ providedIn: 'root' }]
|
|
1750
|
+
}], ctorParameters: () => [] });
|
|
1751
|
+
|
|
1665
1752
|
class TemplatePreviewService extends GenericService {
|
|
1666
1753
|
/**
|
|
1667
1754
|
* Constructor
|
|
@@ -1832,13 +1919,16 @@ class TemplatePreviewDialogComponent extends BaseComponent {
|
|
|
1832
1919
|
this.dialogRef.removePanelClass('full-screen');
|
|
1833
1920
|
}
|
|
1834
1921
|
}
|
|
1835
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplatePreviewDialogComponent, deps: [{ token: TemplatePreviewService }, { token:
|
|
1836
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: TemplatePreviewDialogComponent, isStandalone: true, selector: "app-template-preview", viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["iframeRef"], descendants: true }, { propertyName: "emailModel", first: true, predicate: ["email"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div mat-dialog-title>\r\n <span i18n=\"@@templatePreview\">Template preview</span>\r\n <span flex></span>\r\n @if (data.type == TemplateType.Pdf && pdfSrc ||true) {\r\n <div>\r\n <a mat-icon-button (click)=\"download()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">download</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"zoomIn()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">zoom_in</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"zoomOut()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">zoom_out</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"toggleMaximize()\" class=\"maximize-button\">\r\n <mat-icon>{{ isMaximized ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>\r\n </a>\r\n </div>\r\n }\r\n</div>\r\n<form #form=\"ngForm\" novalidate layout=\"column\" flex>\r\n <!-- #region Entity -->\r\n @if (data.endpoint) {\r\n <div layout=\"row\" flex>\r\n <mat-form-field flex layout-margin>\r\n <mat-label>{{data.entityName}}</mat-label>\r\n <vd-chips [(ngModel)]=\"data.entityId\" [endpoint]=\"data.endpoint\" [params]=\"{sortBy: 'id'}\" text=\"displayName\" name=\"entityId\" #entityId=\"ngModel\" [placeholder]=\"data.entityName??''\" required flex>\r\n <ng-template vd-chip let-entity=\"chip\">\r\n <span>{{entity[data.displayName??'']}}</span>\r\n </ng-template>\r\n <ng-template vd-autocomplete-option let-entity=\"option\">\r\n <span>{{entity[data.displayName??'']}}</span>\r\n </ng-template>\r\n </vd-chips>\r\n @if (entityId.errors!['required']) {\r\n <mat-error><span>{{data.entityName}}</span><span i18n=\"@@isRequired\"> is required</span></mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n }\r\n <!-- #endregion -->\r\n\r\n @if (isLoading) {\r\n <div layout=\"column\" layout-gt-sm=\"row\" class=\"push-bottom\" flex>\r\n <div flex layout-margin>\r\n <div class=\"push-bottom-sm\" i18n=\"@@pleaseWait\">Please Wait...</div>\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- #region PDF Content -->\r\n @if (data.type == TemplateType.Pdf) {\r\n <mat-card flex>\r\n @if (data.type == TemplateType.Pdf && pdfSrc) {\r\n <pdf-viewer [src]=\"pdfSrc\" [render-text]=\"true\" [zoom]=\"zoom\" [zoom-scale]=\"zoomScale\" [show-borders]=\"true\" [original-size]=\"false\" [autoresize]=\"true\"></pdf-viewer>\r\n }\r\n </mat-card>\r\n }\r\n <!-- #region Content -->\r\n\r\n @if (data.type != TemplateType.Pdf) {\r\n <div layout=\"column\" class=\"pad-top-none\" layout-padding margin-layout flex>\r\n <!-- #region Content -->\r\n <div class=\"pad-top-none\" layout-padding margin-layout flex>\r\n <iframe #iframeRef frameborder=\"0\"></iframe>\r\n </div>\r\n <!-- #endregion -->\r\n <!-- #region Email-->\r\n <div layout-gt-sm=\"row\" layout=\"column\" class=\"pad-top\">\r\n <mat-form-field flex layout-margin>\r\n <mat-label i18n=\"@@email\">Email</mat-label>\r\n <input matInput type=\"email\" name=\"email\" [(ngModel)]=\"data.email\" #email=\"ngModel\" email placeholder=\"Email\" i18n-placeholder=\"@@email\">\r\n @if (email.errors && email.errors!['required']) {\r\n <mat-error><span i18n=\"@@email\">Email</span><span i18n=\"@@isRequired\"> is required</span></mat-error>\r\n }\r\n @if (!email.errors!['required'] && email.errors!['email']) {\r\n <mat-error><span i18n=\"@@email\">Email</span><span i18n=\"@@isInvalid\"> is invalid</span></mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n <!-- #endregion -->\r\n </div>\r\n }\r\n <mat-divider></mat-divider>\r\n <div mat-dialog-actions class=\"pad-left\">\r\n <button type=\"button\" mat-flat-button color=\"primary\" (click)=\"cancel()\" [autofocus]=\"true\" i18n=\"@@close\">Close</button>\r\n <button type=\"button\" mat-flat-button (click)=\"sendMail()\" [disabled]=\"data.email == undefined || !emailModel?.valid\" i18n=\"@@sendMail\">Send mail</button>\r\n </div>\r\n</form>", styles: [".content{overflow:scroll;min-height:200px;max-height:500px;border:1px solid #e5e5e5;border-radius:4px;padding:8px}iframe{width:100%;height:100%;min-height:200px;border:1px solid #e5e5e5;border-radius:4px}pdf-viewer{display:block;margin-left:-16px;width:calc(100% + 32px);height:calc(100vh - 170px);background:#dbdbdb}.mat-mdc-dialog-title{display:flex;padding:8px 12px;align-items:center}.dialog-content{width:100%;height:100%;box-sizing:border-box}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "directive", type: i7.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i4$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: VdChipsComponent, selector: "vd-chips", inputs: ["classType", "chips", "endpoint", "params", "projection", "paginated", "customValue", "context", "key", "searchField", "searchFields", "filters", "removable", "selectFirst", "debounce", "autocompleteCssClass", "suffixButtons"], outputs: ["initSelect", "selected", "cleared", "launch", "chipFocus"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4.EmailValidator, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: ["email"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PdfViewerModule }, { kind: "component", type: i6$1.PdfViewerComponent, selector: "pdf-viewer", inputs: ["src", "c-maps-url", "page", "render-text", "render-text-mode", "original-size", "show-all", "stick-to-page", "zoom", "zoom-scale", "rotation", "external-link-target", "autoresize", "fit-to-page", "show-borders"], outputs: ["after-load-complete", "page-rendered", "pages-initialized", "text-layer-rendered", "error", "on-progress", "pageChange"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
1922
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplatePreviewDialogComponent, deps: [{ token: TemplatePreviewService }, { token: i2$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
1923
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: TemplatePreviewDialogComponent, isStandalone: true, selector: "app-template-preview", viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["iframeRef"], descendants: true }, { propertyName: "emailModel", first: true, predicate: ["email"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div mat-dialog-title>\r\n <span i18n=\"@@templatePreview\">Template preview</span>\r\n <span flex></span>\r\n @if (data.type == TemplateType.Pdf && pdfSrc ||true) {\r\n <div>\r\n <a mat-icon-button (click)=\"download()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">download</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"zoomIn()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">zoom_in</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"zoomOut()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">zoom_out</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"toggleMaximize()\" class=\"maximize-button\">\r\n <mat-icon>{{ isMaximized ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>\r\n </a>\r\n </div>\r\n }\r\n</div>\r\n<form #form=\"ngForm\" novalidate layout=\"column\" flex>\r\n <!-- #region Entity -->\r\n @if (data.endpoint) {\r\n <div layout=\"row\" flex>\r\n <mat-form-field flex layout-margin>\r\n <mat-label>{{data.entityName}}</mat-label>\r\n <vd-chips [(ngModel)]=\"data.entityId\" [endpoint]=\"data.endpoint\" [params]=\"{sortBy: 'id'}\" text=\"displayName\" name=\"entityId\" #entityId=\"ngModel\" [placeholder]=\"data.entityName??''\" required flex>\r\n <ng-template vd-chip let-entity=\"chip\">\r\n <span>{{entity[data.displayName??'']}}</span>\r\n </ng-template>\r\n <ng-template vd-autocomplete-option let-entity=\"option\">\r\n <span>{{entity[data.displayName??'']}}</span>\r\n </ng-template>\r\n </vd-chips>\r\n @if (entityId.errors!['required']) {\r\n <mat-error><span>{{data.entityName}}</span><span i18n=\"@@isRequired\"> is required</span></mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n }\r\n <!-- #endregion -->\r\n\r\n @if (isLoading) {\r\n <div layout=\"column\" layout-gt-sm=\"row\" class=\"push-bottom\" flex>\r\n <div flex layout-margin>\r\n <div class=\"push-bottom-sm\" i18n=\"@@pleaseWait\">Please Wait...</div>\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- #region PDF Content -->\r\n @if (data.type == TemplateType.Pdf) {\r\n <mat-card flex>\r\n @if (data.type == TemplateType.Pdf && pdfSrc) {\r\n <pdf-viewer [src]=\"pdfSrc\" [render-text]=\"true\" [zoom]=\"zoom\" [zoom-scale]=\"zoomScale\" [show-borders]=\"true\" [original-size]=\"false\" [autoresize]=\"true\"></pdf-viewer>\r\n }\r\n </mat-card>\r\n }\r\n <!-- #region Content -->\r\n\r\n @if (data.type != TemplateType.Pdf) {\r\n <div layout=\"column\" class=\"pad-top-none\" layout-padding margin-layout flex>\r\n <!-- #region Content -->\r\n <div class=\"pad-top-none\" layout-padding margin-layout flex>\r\n <iframe #iframeRef frameborder=\"0\"></iframe>\r\n </div>\r\n <!-- #endregion -->\r\n <!-- #region Email-->\r\n <div layout-gt-sm=\"row\" layout=\"column\" class=\"pad-top\">\r\n <mat-form-field flex layout-margin>\r\n <mat-label i18n=\"@@email\">Email</mat-label>\r\n <input matInput type=\"email\" name=\"email\" [(ngModel)]=\"data.email\" #email=\"ngModel\" email placeholder=\"Email\" i18n-placeholder=\"@@email\">\r\n @if (email.errors && email.errors!['required']) {\r\n <mat-error><span i18n=\"@@email\">Email</span><span i18n=\"@@isRequired\"> is required</span></mat-error>\r\n }\r\n @if (!email.errors!['required'] && email.errors!['email']) {\r\n <mat-error><span i18n=\"@@email\">Email</span><span i18n=\"@@isInvalid\"> is invalid</span></mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n <!-- #endregion -->\r\n </div>\r\n }\r\n <mat-divider></mat-divider>\r\n <div mat-dialog-actions class=\"pad-left\">\r\n <button type=\"button\" mat-flat-button color=\"primary\" (click)=\"cancel()\" [autofocus]=\"true\" i18n=\"@@close\">Close</button>\r\n <button type=\"button\" mat-flat-button (click)=\"sendMail()\" [disabled]=\"data.email == undefined || !emailModel?.valid\" i18n=\"@@sendMail\">Send mail</button>\r\n </div>\r\n</form>", styles: [".content{overflow:scroll;min-height:200px;max-height:500px;border:1px solid #e5e5e5;border-radius:4px;padding:8px}iframe{width:100%;height:100%;min-height:200px;border:1px solid #e5e5e5;border-radius:4px}pdf-viewer{display:block;margin-left:-16px;width:calc(100% + 32px);height:calc(100vh - 170px);background:#dbdbdb}.mat-mdc-dialog-title{display:flex;padding:8px 12px;align-items:center}.dialog-content{width:100%;height:100%;box-sizing:border-box}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i2$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "directive", type: i7.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: VdChipsComponent, selector: "vd-chips", inputs: ["classType", "chips", "endpoint", "params", "projection", "paginated", "customValue", "context", "key", "searchField", "searchFields", "filters", "removable", "selectFirst", "debounce", "autocompleteCssClass", "suffixButtons"], outputs: ["initSelect", "selected", "cleared", "launch", "chipFocus"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i4.EmailValidator, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: ["email"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PdfViewerModule }, { kind: "component", type: i8$1.PdfViewerComponent, selector: "pdf-viewer", inputs: ["src", "c-maps-url", "page", "render-text", "render-text-mode", "original-size", "show-all", "stick-to-page", "zoom", "zoom-scale", "rotation", "external-link-target", "autoresize", "fit-to-page", "show-borders"], outputs: ["after-load-complete", "page-rendered", "pages-initialized", "text-layer-rendered", "error", "on-progress", "pageChange"] }], changeDetection: i0.ChangeDetectionStrategy.Eager });
|
|
1837
1924
|
}
|
|
1838
1925
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplatePreviewDialogComponent, decorators: [{
|
|
1839
1926
|
type: Component,
|
|
1840
1927
|
args: [{ selector: 'app-template-preview', changeDetection: ChangeDetectionStrategy.Eager, imports: [
|
|
1841
1928
|
MatIcon,
|
|
1929
|
+
MatDialogModule,
|
|
1930
|
+
MatButtonModule,
|
|
1931
|
+
MatInputModule,
|
|
1842
1932
|
MatFormFieldModule,
|
|
1843
1933
|
MatProgressBarModule,
|
|
1844
1934
|
MatDivider,
|
|
@@ -1846,8 +1936,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1846
1936
|
VdChipsComponent,
|
|
1847
1937
|
FormsModule,
|
|
1848
1938
|
PdfViewerModule
|
|
1849
|
-
], template: "<div mat-dialog-title>\r\n
|
|
1850
|
-
}], ctorParameters: () => [{ type: TemplatePreviewService }, { type:
|
|
1939
|
+
], template: "<div mat-dialog-title>\r\n <span i18n=\"@@templatePreview\">Template preview</span>\r\n <span flex></span>\r\n @if (data.type == TemplateType.Pdf && pdfSrc ||true) {\r\n <div>\r\n <a mat-icon-button (click)=\"download()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">download</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"zoomIn()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">zoom_in</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"zoomOut()\">\r\n <mat-icon fontSet=\"material-symbols-outlined\">zoom_out</mat-icon>\r\n </a>\r\n <a mat-icon-button (click)=\"toggleMaximize()\" class=\"maximize-button\">\r\n <mat-icon>{{ isMaximized ? 'fullscreen_exit' : 'fullscreen' }}</mat-icon>\r\n </a>\r\n </div>\r\n }\r\n</div>\r\n<form #form=\"ngForm\" novalidate layout=\"column\" flex>\r\n <!-- #region Entity -->\r\n @if (data.endpoint) {\r\n <div layout=\"row\" flex>\r\n <mat-form-field flex layout-margin>\r\n <mat-label>{{data.entityName}}</mat-label>\r\n <vd-chips [(ngModel)]=\"data.entityId\" [endpoint]=\"data.endpoint\" [params]=\"{sortBy: 'id'}\" text=\"displayName\" name=\"entityId\" #entityId=\"ngModel\" [placeholder]=\"data.entityName??''\" required flex>\r\n <ng-template vd-chip let-entity=\"chip\">\r\n <span>{{entity[data.displayName??'']}}</span>\r\n </ng-template>\r\n <ng-template vd-autocomplete-option let-entity=\"option\">\r\n <span>{{entity[data.displayName??'']}}</span>\r\n </ng-template>\r\n </vd-chips>\r\n @if (entityId.errors!['required']) {\r\n <mat-error><span>{{data.entityName}}</span><span i18n=\"@@isRequired\"> is required</span></mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n }\r\n <!-- #endregion -->\r\n\r\n @if (isLoading) {\r\n <div layout=\"column\" layout-gt-sm=\"row\" class=\"push-bottom\" flex>\r\n <div flex layout-margin>\r\n <div class=\"push-bottom-sm\" i18n=\"@@pleaseWait\">Please Wait...</div>\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n </div>\r\n }\r\n\r\n <!-- #region PDF Content -->\r\n @if (data.type == TemplateType.Pdf) {\r\n <mat-card flex>\r\n @if (data.type == TemplateType.Pdf && pdfSrc) {\r\n <pdf-viewer [src]=\"pdfSrc\" [render-text]=\"true\" [zoom]=\"zoom\" [zoom-scale]=\"zoomScale\" [show-borders]=\"true\" [original-size]=\"false\" [autoresize]=\"true\"></pdf-viewer>\r\n }\r\n </mat-card>\r\n }\r\n <!-- #region Content -->\r\n\r\n @if (data.type != TemplateType.Pdf) {\r\n <div layout=\"column\" class=\"pad-top-none\" layout-padding margin-layout flex>\r\n <!-- #region Content -->\r\n <div class=\"pad-top-none\" layout-padding margin-layout flex>\r\n <iframe #iframeRef frameborder=\"0\"></iframe>\r\n </div>\r\n <!-- #endregion -->\r\n <!-- #region Email-->\r\n <div layout-gt-sm=\"row\" layout=\"column\" class=\"pad-top\">\r\n <mat-form-field flex layout-margin>\r\n <mat-label i18n=\"@@email\">Email</mat-label>\r\n <input matInput type=\"email\" name=\"email\" [(ngModel)]=\"data.email\" #email=\"ngModel\" email placeholder=\"Email\" i18n-placeholder=\"@@email\">\r\n @if (email.errors && email.errors!['required']) {\r\n <mat-error><span i18n=\"@@email\">Email</span><span i18n=\"@@isRequired\"> is required</span></mat-error>\r\n }\r\n @if (!email.errors!['required'] && email.errors!['email']) {\r\n <mat-error><span i18n=\"@@email\">Email</span><span i18n=\"@@isInvalid\"> is invalid</span></mat-error>\r\n }\r\n </mat-form-field>\r\n </div>\r\n <!-- #endregion -->\r\n </div>\r\n }\r\n <mat-divider></mat-divider>\r\n <div mat-dialog-actions class=\"pad-left\">\r\n <button type=\"button\" mat-flat-button color=\"primary\" (click)=\"cancel()\" [autofocus]=\"true\" i18n=\"@@close\">Close</button>\r\n <button type=\"button\" mat-flat-button (click)=\"sendMail()\" [disabled]=\"data.email == undefined || !emailModel?.valid\" i18n=\"@@sendMail\">Send mail</button>\r\n </div>\r\n</form>", styles: [".content{overflow:scroll;min-height:200px;max-height:500px;border:1px solid #e5e5e5;border-radius:4px;padding:8px}iframe{width:100%;height:100%;min-height:200px;border:1px solid #e5e5e5;border-radius:4px}pdf-viewer{display:block;margin-left:-16px;width:calc(100% + 32px);height:calc(100vh - 170px);background:#dbdbdb}.mat-mdc-dialog-title{display:flex;padding:8px 12px;align-items:center}.dialog-content{width:100%;height:100%;box-sizing:border-box}\n"] }]
|
|
1940
|
+
}], ctorParameters: () => [{ type: TemplatePreviewService }, { type: i2$1.MatDialogRef }, { type: TemplatePreview, decorators: [{
|
|
1851
1941
|
type: Inject,
|
|
1852
1942
|
args: [MAT_DIALOG_DATA]
|
|
1853
1943
|
}] }], propDecorators: { iframeRef: [{
|
|
@@ -1858,36 +1948,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1858
1948
|
args: ['email']
|
|
1859
1949
|
}] } });
|
|
1860
1950
|
|
|
1861
|
-
class TemplateService extends GenericService {
|
|
1862
|
-
/**
|
|
1863
|
-
* Constructor
|
|
1864
|
-
*/
|
|
1865
|
-
constructor() {
|
|
1866
|
-
super('template');
|
|
1867
|
-
}
|
|
1868
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1869
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, providedIn: 'root' });
|
|
1870
|
-
}
|
|
1871
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, decorators: [{
|
|
1872
|
-
type: Injectable,
|
|
1873
|
-
args: [{ providedIn: 'root' }]
|
|
1874
|
-
}], ctorParameters: () => [] });
|
|
1875
|
-
|
|
1876
|
-
class TemplateDocService extends GenericService {
|
|
1877
|
-
/**
|
|
1878
|
-
* Constructor
|
|
1879
|
-
*/
|
|
1880
|
-
constructor() {
|
|
1881
|
-
super('templateDoc');
|
|
1882
|
-
}
|
|
1883
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1884
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, providedIn: 'root' });
|
|
1885
|
-
}
|
|
1886
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, decorators: [{
|
|
1887
|
-
type: Injectable,
|
|
1888
|
-
args: [{ providedIn: 'root' }]
|
|
1889
|
-
}], ctorParameters: () => [] });
|
|
1890
|
-
|
|
1891
1951
|
class TemplateFormComponent extends GenericReactiveFormComponent {
|
|
1892
1952
|
service;
|
|
1893
1953
|
templateDocService;
|
|
@@ -2033,8 +2093,8 @@ class TemplateFormComponent extends GenericReactiveFormComponent {
|
|
|
2033
2093
|
this.form.markAllAsTouched();
|
|
2034
2094
|
});
|
|
2035
2095
|
}
|
|
2036
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateFormComponent, deps: [{ token: TemplateService }, { token: TemplateDocService }, { token: i2.FileService }, { token:
|
|
2037
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: TemplateFormComponent, isStandalone: true, selector: "app-template-form", usesInheritance: true, ngImport: i0, template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"Template\" i18n-toolbarTitle=\"@@template\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [fieldSets]=\"['details']\" [context]=\"this\"></vd-generic-form>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Content -->\r\n <mat-expansion-panel id=\"content\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@content\">Content</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <div layout-margin>\r\n <ngx-codemirror formControlName=\"content\" rows=\"160\" [options]=\"editorOptions\"></ngx-codemirror>\r\n </div>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"showPreview()\" [disabled]=\"isSaving || !form.pristine\" i18n=\"@@preview\">Preview</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Content -->\r\n <mat-expansion-panel id=\"testData\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@testData\">Test Data</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <div layout-margin>\r\n <ngx-codemirror formControlName=\"dummyData\" rows=\"120\" [options]=\"jsonEditorOptions\"></ngx-codemirror>\r\n </div>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"showPreview()\" [disabled]=\"isSaving || !form.pristine\" i18n=\"@@preview\">Preview</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Audit -->\r\n @if (isEditMode) {\r\n <mat-expansion-panel id=\"audit\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@audit\">Audit</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-audit [entity]=\"item\"> </vd-audit>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"button\" mat-flat-button color=\"accent\" (click)=\"back()\" i18n=\"@@close\">Close</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n }\r\n <!-- #endregion -->\r\n </mat-accordion>\r\n </vd-layout-card-over>\r\n </form>\r\n }\r\n</vd-layout-nav>", styles: ["codemirror{width:100%}.CodeMirror{height:500px}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: RxReactiveFormsModule }, { kind: "directive", type: i2.AsyncValidationDirective, selector: "[ngModel],[formControlName],[formControl]", inputs: ["async"] }, { kind: "directive", type: i2.RxwebFormDirective, selector: "[formGroup],[rxwebForm]", inputs: ["formGroup", "rxwebForm"] }, { kind: "directive", type: i2.RxFormControlDirective, selector: "[ngModel],[formControlName],[formControl]", inputs: ["rxalpha", "rxalphaNumeric", "rxascii", "rxcompare", "rxcompose", "rxcontains", "rxcreditCard", "rxdataUri", "rxdifferent", "rxdigit", "rxemail", "rxendsWith", "rxeven", "rxextension", "rxfactor", "rxfileSize", "rxgreaterThanEqualTo", "rxgreaterThan", "rxhexColor", "rxjson", "rxlatitude", "rxlatLong", "rxleapYear", "rxlessThan", "rxlessThanEqualTo", "rxlongitude", "rxlowerCase", "rxmac", "rxmaxDate", "rxmaxLength", "rxmaxNumber", "rxminDate", "rxminLength", "rxminNumber", "rxnumeric", "rxodd", "rxpassword", "rxport", "rxprimeNumber", "rxrequired", "rxrange", "rxrule", "rxstartsWith", "rxtime", "rxupperCase", "rxurl", "rxunique", "rxnotEmpty", "rxcusip", "rxgrid", "rxdate"] }, { kind: "ngmodule", type: CodemirrorModule }, { kind: "component", type: i6$2.CodemirrorComponent, selector: "ngx-codemirror", inputs: ["className", "name", "autoFocus", "options", "preserveScrollPosition"], outputs: ["cursorActivity", "focusChange", "scroll", "drop", "codeMirrorLoaded"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i6.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i6.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "directive", type: i6.MatExpansionPanelActionRow, selector: "mat-action-row" }, { kind: "component", type: i6.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i6.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i6.MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: VdLayoutNavComponent, selector: "vd-layout-nav", inputs: ["toolbarTitle", "editMode", "actions", "data", "context", "hideToolbar", "icon", "logo", "color", "hideToggle", "backNavigationRoute", "navigationRoute"], outputs: ["reload"] }, { kind: "component", type: VdLayoutCardOverComponent, selector: "vd-layout-card-over", inputs: ["cardTitle", "cardSubtitle", "cardWidth", "color"] }, { kind: "component", type: VdGenericFormComponent, selector: "vd-generic-form", inputs: ["formGroup", "classType", "formDefinition", "fieldGroups", "groupName", "fieldSets", "context", "debugValue", "readonly", "separatorKeysCodes"], outputs: ["init"] }, { kind: "component", type: VdAuditComponent, selector: "vd-audit", inputs: ["entity"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
2096
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateFormComponent, deps: [{ token: TemplateService }, { token: TemplateDocService }, { token: i2.FileService }, { token: i2$1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
2097
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: TemplateFormComponent, isStandalone: true, selector: "app-template-form", usesInheritance: true, ngImport: i0, template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"Template\" i18n-toolbarTitle=\"@@template\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [fieldSets]=\"['details']\" [context]=\"this\"></vd-generic-form>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Content -->\r\n <mat-expansion-panel id=\"content\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@content\">Content</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <div layout-margin>\r\n <ngx-codemirror formControlName=\"content\" rows=\"160\" [options]=\"editorOptions\"></ngx-codemirror>\r\n </div>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n @if (isEditMode) {\r\n <!-- <button type=\"button\" mat-button (click)=\"showPreview()\" [disabled]=\"isSaving || !form.pristine\" i18n=\"@@preview\">Preview</button> -->\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Content -->\r\n <mat-expansion-panel id=\"testData\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@testData\">Test Data</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <div layout-margin>\r\n <ngx-codemirror formControlName=\"dummyData\" rows=\"120\" [options]=\"jsonEditorOptions\"></ngx-codemirror>\r\n </div>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"showPreview()\" [disabled]=\"isSaving || !form.pristine\" i18n=\"@@preview\">Preview</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Audit -->\r\n @if (isEditMode) {\r\n <mat-expansion-panel id=\"audit\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@audit\">Audit</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-audit [entity]=\"item\"> </vd-audit>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"button\" mat-flat-button color=\"accent\" (click)=\"back()\" i18n=\"@@close\">Close</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n }\r\n <!-- #endregion -->\r\n </mat-accordion>\r\n </vd-layout-card-over>\r\n </form>\r\n }\r\n</vd-layout-nav>", styles: ["codemirror{width:100%}.CodeMirror{height:500px}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: RxReactiveFormsModule }, { kind: "directive", type: i2.AsyncValidationDirective, selector: "[ngModel],[formControlName],[formControl]", inputs: ["async"] }, { kind: "directive", type: i2.RxwebFormDirective, selector: "[formGroup],[rxwebForm]", inputs: ["formGroup", "rxwebForm"] }, { kind: "directive", type: i2.RxFormControlDirective, selector: "[ngModel],[formControlName],[formControl]", inputs: ["rxalpha", "rxalphaNumeric", "rxascii", "rxcompare", "rxcompose", "rxcontains", "rxcreditCard", "rxdataUri", "rxdifferent", "rxdigit", "rxemail", "rxendsWith", "rxeven", "rxextension", "rxfactor", "rxfileSize", "rxgreaterThanEqualTo", "rxgreaterThan", "rxhexColor", "rxjson", "rxlatitude", "rxlatLong", "rxleapYear", "rxlessThan", "rxlessThanEqualTo", "rxlongitude", "rxlowerCase", "rxmac", "rxmaxDate", "rxmaxLength", "rxmaxNumber", "rxminDate", "rxminLength", "rxminNumber", "rxnumeric", "rxodd", "rxpassword", "rxport", "rxprimeNumber", "rxrequired", "rxrange", "rxrule", "rxstartsWith", "rxtime", "rxupperCase", "rxurl", "rxunique", "rxnotEmpty", "rxcusip", "rxgrid", "rxdate"] }, { kind: "ngmodule", type: CodemirrorModule }, { kind: "component", type: i6$2.CodemirrorComponent, selector: "ngx-codemirror", inputs: ["className", "name", "autoFocus", "options", "preserveScrollPosition"], outputs: ["cursorActivity", "focusChange", "scroll", "drop", "codeMirrorLoaded"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i6.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i6.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "directive", type: i6.MatExpansionPanelActionRow, selector: "mat-action-row" }, { kind: "component", type: i6.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i6.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i6.MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: VdLayoutNavComponent, selector: "vd-layout-nav", inputs: ["toolbarTitle", "editMode", "actions", "data", "context", "hideToolbar", "icon", "logo", "color", "hideToggle", "backNavigationRoute", "navigationRoute"], outputs: ["reload"] }, { kind: "component", type: VdLayoutCardOverComponent, selector: "vd-layout-card-over", inputs: ["cardTitle", "cardSubtitle", "cardWidth", "color"] }, { kind: "component", type: VdGenericFormComponent, selector: "vd-generic-form", inputs: ["formGroup", "classType", "formDefinition", "fieldGroups", "groupName", "fieldSets", "context", "debugValue", "readonly", "separatorKeysCodes"], outputs: ["init"] }, { kind: "component", type: VdAuditComponent, selector: "vd-audit", inputs: ["entity"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
|
|
2038
2098
|
}
|
|
2039
2099
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateFormComponent, decorators: [{
|
|
2040
2100
|
type: Component,
|
|
@@ -2048,8 +2108,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
2048
2108
|
VdLayoutCardOverComponent,
|
|
2049
2109
|
VdGenericFormComponent,
|
|
2050
2110
|
VdAuditComponent
|
|
2051
|
-
], template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"Template\" i18n-toolbarTitle=\"@@template\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [fieldSets]=\"['details']\" [context]=\"this\"></vd-generic-form>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Content -->\r\n <mat-expansion-panel id=\"content\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@content\">Content</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <div layout-margin>\r\n <ngx-codemirror formControlName=\"content\" rows=\"160\" [options]=\"editorOptions\"></ngx-codemirror>\r\n </div>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"showPreview()\" [disabled]=\"isSaving || !form.pristine\" i18n=\"@@preview\">Preview</button
|
|
2052
|
-
}], ctorParameters: () => [{ type: TemplateService }, { type: TemplateDocService }, { type: i2.FileService }, { type:
|
|
2111
|
+
], template: "<vd-layout-nav color=\"primary\" [backNavigationRoute]=\"listRoute\" toolbarTitle=\"Template\" i18n-toolbarTitle=\"@@template\" [editMode]=\"isEditMode\" [actions]=\"toolbarActions\" [data]=\"item\" [context]=\"this\">\r\n @if (form) {\r\n <form [formGroup]=\"form\" novalidate (ngSubmit)=\"save()\">\r\n <vd-layout-card-over class=\"accordion\" cardWidth=\"70\" color=\"primary\" flex>\r\n <mat-accordion [multi]=\"!isEditMode\">\r\n <!-- #region Details -->\r\n <mat-expansion-panel expanded=\"true\" id=\"details\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title i18n=\"@@details\">Details</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [fieldSets]=\"['details']\" [context]=\"this\"></vd-generic-form>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Content -->\r\n <mat-expansion-panel id=\"content\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@content\">Content</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <div layout-margin>\r\n <ngx-codemirror formControlName=\"content\" rows=\"160\" [options]=\"editorOptions\"></ngx-codemirror>\r\n </div>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n @if (isEditMode) {\r\n <!-- <button type=\"button\" mat-button (click)=\"showPreview()\" [disabled]=\"isSaving || !form.pristine\" i18n=\"@@preview\">Preview</button> -->\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Content -->\r\n <mat-expansion-panel id=\"testData\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@testData\">Test Data</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <div layout-margin>\r\n <ngx-codemirror formControlName=\"dummyData\" rows=\"120\" [options]=\"jsonEditorOptions\"></ngx-codemirror>\r\n </div>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"submit\" mat-flat-button color=\"primary\" [disabled]=\"isSaving\" i18n=\"@@save\">Save</button>\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"apply()\" [disabled]=\"isSaving\" i18n=\"@@apply\">Apply</button>\r\n }\r\n @if (isEditMode) {\r\n <button type=\"button\" mat-button (click)=\"showPreview()\" [disabled]=\"isSaving || !form.pristine\" i18n=\"@@preview\">Preview</button>\r\n }\r\n <button type=\"button\" mat-button (click)=\"back()\" i18n=\"@@cancel\">Cancel</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n <!-- #endregion -->\r\n <!-- #region Audit -->\r\n @if (isEditMode) {\r\n <mat-expansion-panel id=\"audit\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <span i18n=\"@@audit\">Audit</span>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <ng-template matExpansionPanelContent>\r\n <vd-audit [entity]=\"item\"> </vd-audit>\r\n </ng-template>\r\n <mat-action-row>\r\n <button type=\"button\" mat-flat-button color=\"accent\" (click)=\"back()\" i18n=\"@@close\">Close</button>\r\n <span flex></span>\r\n </mat-action-row>\r\n </mat-expansion-panel>\r\n }\r\n <!-- #endregion -->\r\n </mat-accordion>\r\n </vd-layout-card-over>\r\n </form>\r\n }\r\n</vd-layout-nav>", styles: ["codemirror{width:100%}.CodeMirror{height:500px}\n"] }]
|
|
2112
|
+
}], ctorParameters: () => [{ type: TemplateService }, { type: TemplateDocService }, { type: i2.FileService }, { type: i2$1.MatDialog }] });
|
|
2053
2113
|
|
|
2054
2114
|
/**
|
|
2055
2115
|
* @class
|
|
@@ -2080,10 +2140,12 @@ class ContentVariableClient {
|
|
|
2080
2140
|
}
|
|
2081
2141
|
}
|
|
2082
2142
|
__decorate([
|
|
2083
|
-
prop()
|
|
2143
|
+
prop(),
|
|
2144
|
+
__metadata("design:type", Number)
|
|
2084
2145
|
], ContentVariableClient.prototype, "contentVariableId", void 0);
|
|
2085
2146
|
__decorate([
|
|
2086
|
-
required()
|
|
2147
|
+
required(),
|
|
2148
|
+
__metadata("design:type", Number)
|
|
2087
2149
|
], ContentVariableClient.prototype, "clientId", void 0);
|
|
2088
2150
|
|
|
2089
2151
|
/**
|
|
@@ -2115,10 +2177,12 @@ class ContentVariableDepartment {
|
|
|
2115
2177
|
}
|
|
2116
2178
|
}
|
|
2117
2179
|
__decorate([
|
|
2118
|
-
prop()
|
|
2180
|
+
prop(),
|
|
2181
|
+
__metadata("design:type", Number)
|
|
2119
2182
|
], ContentVariableDepartment.prototype, "contentVariableId", void 0);
|
|
2120
2183
|
__decorate([
|
|
2121
|
-
required()
|
|
2184
|
+
required(),
|
|
2185
|
+
__metadata("design:type", Number)
|
|
2122
2186
|
], ContentVariableDepartment.prototype, "departmentId", void 0);
|
|
2123
2187
|
|
|
2124
2188
|
let ContentVariable = class ContentVariable extends AuditEntity {
|
|
@@ -2148,19 +2212,22 @@ let ContentVariable = class ContentVariable extends AuditEntity {
|
|
|
2148
2212
|
enabled;
|
|
2149
2213
|
};
|
|
2150
2214
|
__decorate([
|
|
2151
|
-
prop()
|
|
2215
|
+
prop(),
|
|
2216
|
+
__metadata("design:type", String)
|
|
2152
2217
|
], ContentVariable.prototype, "title", void 0);
|
|
2153
2218
|
__decorate([
|
|
2154
2219
|
required(),
|
|
2155
2220
|
FormField({ row: 10 }),
|
|
2156
2221
|
Column({}),
|
|
2157
|
-
Display($localize `:@@name:Name`)
|
|
2222
|
+
Display($localize `:@@name:Name`),
|
|
2223
|
+
__metadata("design:type", String)
|
|
2158
2224
|
], ContentVariable.prototype, "name", void 0);
|
|
2159
2225
|
__decorate([
|
|
2160
2226
|
required(),
|
|
2161
2227
|
FormField({ row: 11 }),
|
|
2162
2228
|
Column({ display: Grid.Sm }),
|
|
2163
|
-
Display($localize `:@@value:Value`)
|
|
2229
|
+
Display($localize `:@@value:Value`),
|
|
2230
|
+
__metadata("design:type", String)
|
|
2164
2231
|
], ContentVariable.prototype, "value", void 0);
|
|
2165
2232
|
__decorate([
|
|
2166
2233
|
required({ conditionalExpression: (x) => true }),
|
|
@@ -2190,7 +2257,8 @@ __decorate([
|
|
|
2190
2257
|
optionTemplate: (x) => x?.clientName,
|
|
2191
2258
|
triggerMapper: (x) => x?.clientName
|
|
2192
2259
|
}),
|
|
2193
|
-
Display($localize `:@@projects:Projects`)
|
|
2260
|
+
Display($localize `:@@projects:Projects`),
|
|
2261
|
+
__metadata("design:type", Array)
|
|
2194
2262
|
], ContentVariable.prototype, "clientJoins", void 0);
|
|
2195
2263
|
__decorate([
|
|
2196
2264
|
prop(),
|
|
@@ -2221,13 +2289,15 @@ __decorate([
|
|
|
2221
2289
|
optionTemplate: (x) => x?.departmentName,
|
|
2222
2290
|
triggerMapper: (x) => x?.departmentName
|
|
2223
2291
|
}),
|
|
2224
|
-
Display($localize `:@@departments:Departments`)
|
|
2292
|
+
Display($localize `:@@departments:Departments`),
|
|
2293
|
+
__metadata("design:type", Array)
|
|
2225
2294
|
], ContentVariable.prototype, "departmentJoins", void 0);
|
|
2226
2295
|
__decorate([
|
|
2227
2296
|
prop(),
|
|
2228
2297
|
FormField({ row: 21 }),
|
|
2229
2298
|
Column({ event: 'toggle' }),
|
|
2230
|
-
Display($localize `:@@enabled:Enabled`)
|
|
2299
|
+
Display($localize `:@@enabled:Enabled`),
|
|
2300
|
+
__metadata("design:type", Boolean)
|
|
2231
2301
|
], ContentVariable.prototype, "enabled", void 0);
|
|
2232
2302
|
ContentVariable = __decorate([
|
|
2233
2303
|
Api('contentvariable'),
|
|
@@ -2303,18 +2373,21 @@ __decorate([
|
|
|
2303
2373
|
required(),
|
|
2304
2374
|
FormField({ row: 10 }),
|
|
2305
2375
|
Column({}),
|
|
2306
|
-
Display($localize `:@@name:Name`)
|
|
2376
|
+
Display($localize `:@@name:Name`),
|
|
2377
|
+
__metadata("design:type", String)
|
|
2307
2378
|
], Slider.prototype, "name", void 0);
|
|
2308
2379
|
__decorate([
|
|
2309
2380
|
required(),
|
|
2310
2381
|
FormField({ row: 20 }),
|
|
2311
2382
|
Column({ maxWidth: 150, display: Grid.Lg }),
|
|
2312
|
-
Display($localize `:@@group:Group`)
|
|
2383
|
+
Display($localize `:@@group:Group`),
|
|
2384
|
+
__metadata("design:type", String)
|
|
2313
2385
|
], Slider.prototype, "group", void 0);
|
|
2314
2386
|
__decorate([
|
|
2315
2387
|
required(),
|
|
2316
2388
|
FormField({ row: 50, type: FormFieldType.Editor }),
|
|
2317
|
-
Display($localize `:@@content:Content`)
|
|
2389
|
+
Display($localize `:@@content:Content`),
|
|
2390
|
+
__metadata("design:type", String)
|
|
2318
2391
|
], Slider.prototype, "content", void 0);
|
|
2319
2392
|
__decorate([
|
|
2320
2393
|
prop(),
|
|
@@ -2322,10 +2395,12 @@ __decorate([
|
|
|
2322
2395
|
row: 60,
|
|
2323
2396
|
type: FormFieldType.TextArea
|
|
2324
2397
|
}),
|
|
2325
|
-
Display($localize `:@@style:Style`)
|
|
2398
|
+
Display($localize `:@@style:Style`),
|
|
2399
|
+
__metadata("design:type", String)
|
|
2326
2400
|
], Slider.prototype, "styleInline", void 0);
|
|
2327
2401
|
__decorate([
|
|
2328
|
-
prop()
|
|
2402
|
+
prop(),
|
|
2403
|
+
__metadata("design:type", String)
|
|
2329
2404
|
], Slider.prototype, "imagePath", void 0);
|
|
2330
2405
|
__decorate([
|
|
2331
2406
|
FormField({
|
|
@@ -2336,12 +2411,14 @@ __decorate([
|
|
|
2336
2411
|
change: (_, img, __, ctx) => ctx?.upload(img, 'images/sliders', true)
|
|
2337
2412
|
}),
|
|
2338
2413
|
Display($localize `:@@image:Image`),
|
|
2339
|
-
prop()
|
|
2414
|
+
prop(),
|
|
2415
|
+
__metadata("design:type", String)
|
|
2340
2416
|
], Slider.prototype, "image", void 0);
|
|
2341
2417
|
__decorate([
|
|
2342
2418
|
prop(),
|
|
2343
2419
|
FormField({ row: 40 }),
|
|
2344
|
-
Display($localize `:@@cssClass:CSS Class`)
|
|
2420
|
+
Display($localize `:@@cssClass:CSS Class`),
|
|
2421
|
+
__metadata("design:type", String)
|
|
2345
2422
|
], Slider.prototype, "cssClass", void 0);
|
|
2346
2423
|
__decorate([
|
|
2347
2424
|
FormField({
|
|
@@ -2354,18 +2431,21 @@ __decorate([
|
|
|
2354
2431
|
display: Grid.Lg
|
|
2355
2432
|
}),
|
|
2356
2433
|
Display($localize `:@@project:Project`),
|
|
2357
|
-
prop()
|
|
2434
|
+
prop(),
|
|
2435
|
+
__metadata("design:type", Number)
|
|
2358
2436
|
], Slider.prototype, "clientId", void 0);
|
|
2359
2437
|
__decorate([
|
|
2360
2438
|
prop(),
|
|
2361
2439
|
FormField({ row: 20 }),
|
|
2362
|
-
Display($localize `:@@ordering:Ordering`)
|
|
2440
|
+
Display($localize `:@@ordering:Ordering`),
|
|
2441
|
+
__metadata("design:type", Number)
|
|
2363
2442
|
], Slider.prototype, "ordering", void 0);
|
|
2364
2443
|
__decorate([
|
|
2365
2444
|
prop(),
|
|
2366
2445
|
FormField({ row: 100 }),
|
|
2367
2446
|
Column({ event: 'toggle' }),
|
|
2368
|
-
Display($localize `:@@enabled:Enabled`)
|
|
2447
|
+
Display($localize `:@@enabled:Enabled`),
|
|
2448
|
+
__metadata("design:type", Boolean)
|
|
2369
2449
|
], Slider.prototype, "enabled", void 0);
|
|
2370
2450
|
Slider = __decorate([
|
|
2371
2451
|
Api('slider'),
|