@indigina/kendo 2.0.34 → 2.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/assets/indigina-theme.scss +3 -4
- package/assets/styles/Site.scss +16 -132
- package/assets/styles/kendooveride.scss +69 -30
- package/assets/styles/tabstrip.scss +34 -0
- package/fesm2022/indigina-kendo.mjs +597 -394
- package/fesm2022/indigina-kendo.mjs.map +1 -1
- package/package.json +32 -33
- package/types/indigina-kendo.d.ts +37 -32
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i1$3 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Input, Directive, Component, NgModule, EventEmitter, Output, ChangeDetectionStrategy, HostListener, Injectable, ViewChildren, ViewChild, inject, InjectionToken,
|
|
4
|
+
import { Input, Directive, Component, NgModule, EventEmitter, Output, ChangeDetectionStrategy, HostListener, Injectable, ViewChildren, Optional, Inject, ViewChild, inject, InjectionToken, input, output, provideAppInitializer } from '@angular/core';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
6
6
|
import { UntypedFormControl, Validators, FormGroupDirective, ControlContainer, ReactiveFormsModule, FormsModule, UntypedFormGroup } from '@angular/forms';
|
|
7
7
|
import * as i2 from '@ngx-translate/core';
|
|
@@ -15,20 +15,18 @@ import * as i2$1 from '@progress/kendo-angular-inputs';
|
|
|
15
15
|
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
16
16
|
import * as i3$1 from '@progress/kendo-angular-label';
|
|
17
17
|
import { LabelModule } from '@progress/kendo-angular-label';
|
|
18
|
-
import { BehaviorSubject, Subject, of, throwError, map as map$1,
|
|
19
|
-
import { map, mergeMap, debounceTime, catchError, tap, filter, take, finalize } from 'rxjs/operators';
|
|
18
|
+
import { BehaviorSubject, Subject, of, throwError, defer, EMPTY, firstValueFrom, map as map$1, share, take as take$1, tap as tap$1, switchMap as switchMap$1, takeUntil, catchError as catchError$1 } from 'rxjs';
|
|
19
|
+
import { map, mergeMap, debounceTime, catchError, tap, switchMap, filter, take, finalize } from 'rxjs/operators';
|
|
20
20
|
import { toODataString, distinct, filterBy } from '@progress/kendo-data-query';
|
|
21
|
-
import * as i1$1 from '
|
|
22
|
-
import { ToastrModule } from 'ngx-toastr';
|
|
21
|
+
import * as i1$1 from '@progress/kendo-angular-notification';
|
|
23
22
|
import * as i1$2 from '@angular/router';
|
|
24
23
|
import { NavigationEnd, RouterModule, Router } from '@angular/router';
|
|
25
24
|
import XmlBeautify from 'xml-beautify';
|
|
26
25
|
import * as i1$4 from 'ngx-clipboard';
|
|
27
26
|
import { ClipboardModule } from 'ngx-clipboard';
|
|
28
27
|
import { TreeViewModule } from '@progress/kendo-angular-treeview';
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import { MsalBroadcastService, MsalService, MsalModule } from '@azure/msal-angular';
|
|
28
|
+
import { MsalService, MsalBroadcastService, MsalModule } from '@azure/msal-angular';
|
|
29
|
+
import { InteractionRequiredAuthError, InteractionStatus, EventType, BrowserCacheLocation, PublicClientApplication } from '@azure/msal-browser';
|
|
32
30
|
import * as signalR from '@microsoft/signalr';
|
|
33
31
|
import * as i3$2 from '@progress/kendo-angular-popup';
|
|
34
32
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
@@ -104,10 +102,10 @@ class FieldComponent {
|
|
|
104
102
|
control.enable();
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
108
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
106
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: FieldComponent, isStandalone: true, inputs: { labelKey: "labelKey", fieldName: "fieldName", disabled: "disabled" }, usesOnChanges: true, ngImport: i0 }); }
|
|
109
107
|
}
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldComponent, decorators: [{
|
|
111
109
|
type: Directive
|
|
112
110
|
}], ctorParameters: () => [{ type: i1.FormGroupDirective }, { type: i0.ElementRef }, { type: undefined }], propDecorators: { labelKey: [{
|
|
113
111
|
type: Input
|
|
@@ -133,12 +131,12 @@ class FieldInputComponent extends FieldComponent {
|
|
|
133
131
|
}
|
|
134
132
|
return super.setAttribute(name, value);
|
|
135
133
|
}
|
|
136
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
137
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldInputComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: FieldInputComponent, isStandalone: false, selector: "field-input", inputs: { labelKey: "labelKey", fieldName: "fieldName" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n />\n <ng-content></ng-content>\n @if (parent.form.get(fieldName) &&\n parent.form.get(fieldName)?.invalid &&\n parent.form.get(fieldName)?.touched) {\n <div class=\"bg-danger\">\n @if (parent.form.get(fieldName)?.errors?.['required']) {\n <span>{{ \"Required\" | translate : { param0: labelKey | translate } }}</span>\n }\n @if (parent.form.get(fieldName)?.errors?.['email']) {\n <span>{{ \"ValidEmail\" | translate }}</span>\n }\n @if (parent.form.get(fieldName)?.errors?.['serverErrorMsg']) {\n <span>{{ parent.form.get(fieldName)?.errors?.[\"serverErrorMsg\"] }}</span>\n }\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], viewProviders: [
|
|
138
136
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
139
137
|
] }); }
|
|
140
138
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldInputComponent, decorators: [{
|
|
142
140
|
type: Component,
|
|
143
141
|
args: [{ selector: 'field-input', viewProviders: [
|
|
144
142
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -208,12 +206,12 @@ class NumberInputComponent extends FieldInputComponent {
|
|
|
208
206
|
return notValid ? { forbiddenName: { value: control.value } } : null;
|
|
209
207
|
};
|
|
210
208
|
}
|
|
211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
212
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
209
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: NumberInputComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
210
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: NumberInputComponent, isStandalone: false, selector: "number-input", inputs: { isPositive: "isPositive" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ id }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <input\n [formControlName]=\"fieldName\"\n id=\"{{ id }}\"\n [type]=\"type\"\n class=\"k-input\"\n autocomplete=\"new-{{ fieldName }}\"\n placeholder=\"{{ labelKey | translate }}\"\n />\n <ng-content></ng-content>\n @if (parent.form.get(fieldName) &&\n parent.form.get(fieldName)?.invalid &&\n parent.form.get(fieldName)?.touched) {\n <div class=\"bg-danger\">\n @if (parent.form.get(fieldName)?.errors?.['required']) {\n <span>{{ \"Required\" | translate : { param0: labelKey | translate } }}</span>\n }\n @if (parent.form.get(fieldName)?.errors?.['email']) {\n <span>{{ \"ValidEmail\" | translate }}</span>\n }\n @if (parent.form.get(fieldName)?.errors?.['serverErrorMsg']) {\n <span>{{ parent.form.get(fieldName)?.errors?.[\"serverErrorMsg\"] }}</span>\n }\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], viewProviders: [
|
|
213
211
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
214
212
|
] }); }
|
|
215
213
|
}
|
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
217
215
|
type: Component,
|
|
218
216
|
args: [{ selector: 'number-input', viewProviders: [
|
|
219
217
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -223,19 +221,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
223
221
|
}] } });
|
|
224
222
|
|
|
225
223
|
class FieldInputModule {
|
|
226
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
227
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
224
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
225
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldInputModule, declarations: [FieldInputComponent, NumberInputComponent], imports: [ButtonsModule,
|
|
228
226
|
ReactiveFormsModule,
|
|
229
227
|
FormsModule,
|
|
230
228
|
TranslateModule,
|
|
231
229
|
CommonModule], exports: [FieldInputComponent, NumberInputComponent] }); }
|
|
232
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
230
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldInputModule, imports: [ButtonsModule,
|
|
233
231
|
ReactiveFormsModule,
|
|
234
232
|
FormsModule,
|
|
235
233
|
TranslateModule,
|
|
236
234
|
CommonModule] }); }
|
|
237
235
|
}
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldInputModule, decorators: [{
|
|
239
237
|
type: NgModule,
|
|
240
238
|
args: [{
|
|
241
239
|
declarations: [FieldInputComponent, NumberInputComponent],
|
|
@@ -264,12 +262,12 @@ class FieldFileUploadComponent extends FieldComponent {
|
|
|
264
262
|
this.disabled = false;
|
|
265
263
|
this.restrictions = this.defaultFileRestrictions;
|
|
266
264
|
}
|
|
267
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
268
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileUploadComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
266
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: FieldFileUploadComponent, isStandalone: false, selector: "field-file-upload", inputs: { labelKey: "labelKey", placeholderKey: "placeholderKey", fieldName: "fieldName", multiple: "multiple", showFileList: "showFileList", autoUpload: "autoUpload", disabled: "disabled", saveUrl: "saveUrl", removeUrl: "removeUrl", restrictions: "restrictions" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <kendo-upload\n id=\"{{ '_' + fieldName }}\"\n [formControlName]=\"fieldName\"\n [autoUpload]=\"autoUpload\"\n [saveUrl]=\"saveUrl\"\n [removeUrl]=\"removeUrl\"\n [multiple]=\"multiple\"\n [showFileList]=\"showFileList\"\n [restrictions]=\"restrictions\"\n [attr.disabled]=\"disabled\"\n >\n <kendo-upload-messages\n select=\"{{ placeholderKey | translate }}\"\n ></kendo-upload-messages>\n </kendo-upload>\n <ng-content></ng-content>\n @if (parent.form.get(fieldName) &&\n parent.form.get(fieldName).invalid &&\n parent.form.get(fieldName).touched) {\n <div class=\"bg-danger\">\n @if (parent.form.get(fieldName).errors['required']) {\n <span>{{ \"Required\" | translate : { param0: labelKey | translate } }}</span>\n }\n @if (parent.form.get(fieldName).errors['serverErrorMsg']) {\n <span>{{ parent.form.get(fieldName).errors[\"serverErrorMsg\"] }}</span>\n }\n </div>\n }\n </div>\n</div>\n", styles: [".k-upload.ng-invalid{border-color:#00000014}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: i3.CustomMessagesComponent, selector: "kendo-upload-messages, kendo-fileselect-messages, kendo-uploaddropzone-messages" }, { kind: "component", type: i3.UploadComponent, selector: "kendo-upload", inputs: ["autoUpload", "batch", "withCredentials", "saveField", "saveHeaders", "saveMethod", "saveUrl", "responseType", "removeField", "removeHeaders", "removeMethod", "removeUrl", "chunkable", "concurrent", "showFileList", "tabIndex", "actionsLayout"], outputs: ["cancel", "clear", "complete", "error", "pause", "resume", "success", "upload", "uploadProgress", "valueChange"], exportAs: ["kendoUpload"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], viewProviders: [
|
|
269
267
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
270
268
|
] }); }
|
|
271
269
|
}
|
|
272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileUploadComponent, decorators: [{
|
|
273
271
|
type: Component,
|
|
274
272
|
args: [{ selector: 'field-file-upload', viewProviders: [
|
|
275
273
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -297,8 +295,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
297
295
|
}] } });
|
|
298
296
|
|
|
299
297
|
class FieldFileUploadModule {
|
|
300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
301
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
299
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldFileUploadModule, declarations: [FieldFileUploadComponent], imports: [ReactiveFormsModule,
|
|
302
300
|
FormsModule,
|
|
303
301
|
TranslateModule,
|
|
304
302
|
CommonModule,
|
|
@@ -307,7 +305,7 @@ class FieldFileUploadModule {
|
|
|
307
305
|
UploadsModule,
|
|
308
306
|
InputsModule,
|
|
309
307
|
ButtonsModule], exports: [FieldFileUploadComponent] }); }
|
|
310
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
308
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileUploadModule, imports: [ReactiveFormsModule,
|
|
311
309
|
FormsModule,
|
|
312
310
|
TranslateModule,
|
|
313
311
|
CommonModule,
|
|
@@ -317,7 +315,7 @@ class FieldFileUploadModule {
|
|
|
317
315
|
InputsModule,
|
|
318
316
|
ButtonsModule] }); }
|
|
319
317
|
}
|
|
320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileUploadModule, decorators: [{
|
|
321
319
|
type: NgModule,
|
|
322
320
|
args: [{
|
|
323
321
|
declarations: [FieldFileUploadComponent],
|
|
@@ -344,12 +342,12 @@ class FieldTextAreaComponent extends FieldComponent {
|
|
|
344
342
|
this.readonly = false;
|
|
345
343
|
this.height = 200;
|
|
346
344
|
}
|
|
347
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
348
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldTextAreaComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
346
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: FieldTextAreaComponent, isStandalone: false, selector: "field-textarea", inputs: { labelKey: "labelKey", placeholderKey: "placeholderKey", fieldName: "fieldName", readonly: "readonly", height: "height", rebind: "rebind" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <textarea\n id=\"{{ '_' + fieldName }}\"\n class=\"k-input textarea-with-scroll\"\n [formControlName]=\"fieldName\"\n [readonly]=\"readonly\"\n [style.height.px]=\"height\"\n placeholder=\"{{ placeholderKey | translate }}\"\n ></textarea>\n <ng-content></ng-content>\n @if (parent.form.get(fieldName) &&\n parent.form.get(fieldName).invalid &&\n parent.form.get(fieldName).touched) {\n <div class=\"bg-danger\">\n @if (parent.form.get(fieldName).errors['required']) {\n <span>{{ \"Required\" | translate : { param0: labelKey | translate } }}</span>\n }\n @if (parent.form.get(fieldName).errors['serverErrorMsg']) {\n <span>{{ parent.form.get(fieldName).errors[\"serverErrorMsg\"] }}</span>\n }\n </div>\n }\n </div>\n</div>\n", styles: [".textarea-with-scroll{overflow:auto}\n"], dependencies: [{ kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], viewProviders: [
|
|
349
347
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
350
348
|
] }); }
|
|
351
349
|
}
|
|
352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldTextAreaComponent, decorators: [{
|
|
353
351
|
type: Component,
|
|
354
352
|
args: [{ selector: 'field-textarea', viewProviders: [
|
|
355
353
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -369,19 +367,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
369
367
|
}] } });
|
|
370
368
|
|
|
371
369
|
class FieldTextAreaModule {
|
|
372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
373
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
371
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldTextAreaModule, declarations: [FieldTextAreaComponent], imports: [ReactiveFormsModule,
|
|
374
372
|
FormsModule,
|
|
375
373
|
TranslateModule,
|
|
376
374
|
CommonModule,
|
|
377
375
|
HttpClientModule], exports: [FieldTextAreaComponent] }); }
|
|
378
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
376
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldTextAreaModule, imports: [ReactiveFormsModule,
|
|
379
377
|
FormsModule,
|
|
380
378
|
TranslateModule,
|
|
381
379
|
CommonModule,
|
|
382
380
|
HttpClientModule] }); }
|
|
383
381
|
}
|
|
384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldTextAreaModule, decorators: [{
|
|
385
383
|
type: NgModule,
|
|
386
384
|
args: [{
|
|
387
385
|
declarations: [FieldTextAreaComponent],
|
|
@@ -414,12 +412,12 @@ class FieldFileSelectComponent extends FieldComponent {
|
|
|
414
412
|
this.restrictions = this.defaultFileRestrictions;
|
|
415
413
|
this.filesSelected = new EventEmitter();
|
|
416
414
|
}
|
|
417
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
418
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileSelectComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
416
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: FieldFileSelectComponent, isStandalone: false, selector: "field-file-select", inputs: { labelKey: "labelKey", placeholderKey: "placeholderKey", fieldName: "fieldName", multiple: "multiple", showFileList: "showFileList", disabled: "disabled", restrictions: "restrictions" }, outputs: { filesSelected: "filesSelected" }, usesInheritance: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n translate=\"{{ labelKey }}\"\n ></label>\n <div class=\"col-md-9\">\n <kendo-fileselect\n id=\"{{ '_' + fieldName }}\"\n [formControlName]=\"fieldName\"\n [multiple]=\"multiple\"\n [showFileList]=\"showFileList\"\n [restrictions]=\"restrictions\"\n [attr.disabled]=\"disabled\"\n (select)=\"onFilesSelected($event)\"\n >\n <kendo-fileselect-messages\n dropFilesHere=\"{{ 'FileSelect.DropFilesHere' | translate }}\"\n ></kendo-fileselect-messages>\n <kendo-upload-messages\n select=\"{{ placeholderKey | translate }}\"\n ></kendo-upload-messages>\n </kendo-fileselect>\n <ng-content></ng-content>\n @if (parent.form.get(fieldName) &&\n parent.form.get(fieldName).invalid &&\n parent.form.get(fieldName).touched) {\n <div class=\"bg-danger\">\n @if (parent.form.get(fieldName).errors['required']) {\n <span>{{ \"Required\" | translate : { param0: labelKey | translate } }}</span>\n }\n @if (parent.form.get(fieldName).errors['serverErrorMsg']) {\n <span>{{ parent.form.get(fieldName).errors[\"serverErrorMsg\"] }}</span>\n }\n </div>\n }\n </div>\n</div>\n", styles: [".k-upload.ng-invalid{border-color:#00000014}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: i3.FileSelectComponent, selector: "kendo-fileselect", inputs: ["name"], outputs: ["valueChange"], exportAs: ["kendoFileSelect"] }, { kind: "component", type: i3.CustomMessagesComponent, selector: "kendo-upload-messages, kendo-fileselect-messages, kendo-uploaddropzone-messages" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], viewProviders: [
|
|
419
417
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
420
418
|
] }); }
|
|
421
419
|
}
|
|
422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileSelectComponent, decorators: [{
|
|
423
421
|
type: Component,
|
|
424
422
|
args: [{ selector: 'field-file-select', viewProviders: [
|
|
425
423
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -443,15 +441,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
443
441
|
}] } });
|
|
444
442
|
|
|
445
443
|
class FieldFileSelectModule {
|
|
446
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
447
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
444
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
445
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldFileSelectModule, declarations: [FieldFileSelectComponent], imports: [ReactiveFormsModule,
|
|
448
446
|
FormsModule,
|
|
449
447
|
TranslateModule,
|
|
450
448
|
CommonModule,
|
|
451
449
|
FieldInputModule,
|
|
452
450
|
HttpClientModule,
|
|
453
451
|
UploadsModule], exports: [FieldFileSelectComponent] }); }
|
|
454
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
452
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileSelectModule, imports: [ReactiveFormsModule,
|
|
455
453
|
FormsModule,
|
|
456
454
|
TranslateModule,
|
|
457
455
|
CommonModule,
|
|
@@ -459,7 +457,7 @@ class FieldFileSelectModule {
|
|
|
459
457
|
HttpClientModule,
|
|
460
458
|
UploadsModule] }); }
|
|
461
459
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldFileSelectModule, decorators: [{
|
|
463
461
|
type: NgModule,
|
|
464
462
|
args: [{
|
|
465
463
|
declarations: [FieldFileSelectComponent],
|
|
@@ -518,12 +516,12 @@ class FieldNumericTextBoxInputComponent extends FieldComponent {
|
|
|
518
516
|
this.control?.setValue(value);
|
|
519
517
|
}
|
|
520
518
|
}
|
|
521
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
522
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
519
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldNumericTextBoxInputComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
520
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: FieldNumericTextBoxInputComponent, isStandalone: false, selector: "field-numerictextbox-input", inputs: { min: "min", max: "max", step: "step", format: "format", selectedValue: "selectedValue", placeholder: "placeholder" }, outputs: { selectedChange: "selectedChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n >\n {{ labelKey | translate }}\n </label>\n\n <div class=\"col-md-9\">\n <kendo-numerictextbox\n id=\"{{ '_' + fieldName }}\"\n [format]=\"format\"\n [step]=\"step\"\n [min]=\"min\"\n [max]=\"max\"\n [placeholder]=\"placeholder\"\n formControlName=\"{{ fieldName }}\"\n (valueChange)=\"onValueChange($event)\"\n >\n </kendo-numerictextbox>\n <ng-content></ng-content>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2$1.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }, { kind: "directive", type: i3$1.LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], viewProviders: [
|
|
523
521
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
524
522
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
525
523
|
}
|
|
526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldNumericTextBoxInputComponent, decorators: [{
|
|
527
525
|
type: Component,
|
|
528
526
|
args: [{ selector: 'field-numerictextbox-input', viewProviders: [
|
|
529
527
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -545,19 +543,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
545
543
|
}] } });
|
|
546
544
|
|
|
547
545
|
class FieldNumericTextBoxInputModule {
|
|
548
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
549
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
546
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldNumericTextBoxInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
547
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldNumericTextBoxInputModule, declarations: [FieldNumericTextBoxInputComponent], imports: [CommonModule,
|
|
550
548
|
ReactiveFormsModule,
|
|
551
549
|
TranslateModule,
|
|
552
550
|
InputsModule,
|
|
553
551
|
LabelModule], exports: [FieldNumericTextBoxInputComponent] }); }
|
|
554
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
552
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldNumericTextBoxInputModule, imports: [CommonModule,
|
|
555
553
|
ReactiveFormsModule,
|
|
556
554
|
TranslateModule,
|
|
557
555
|
InputsModule,
|
|
558
556
|
LabelModule] }); }
|
|
559
557
|
}
|
|
560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldNumericTextBoxInputModule, decorators: [{
|
|
561
559
|
type: NgModule,
|
|
562
560
|
args: [{
|
|
563
561
|
declarations: [FieldNumericTextBoxInputComponent],
|
|
@@ -614,12 +612,12 @@ class FieldCheckBoxInputComponent extends FieldComponent {
|
|
|
614
612
|
emitSelectedEntity(entity) {
|
|
615
613
|
this.selectedChange.emit(entity);
|
|
616
614
|
}
|
|
617
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
618
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
615
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldCheckBoxInputComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
616
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: FieldCheckBoxInputComponent, isStandalone: false, selector: "field-checkbox-input", inputs: { selectedValue: "selectedValue" }, outputs: { selectedChange: "selectedChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <label\n for=\"{{ '_' + fieldName }}\"\n class=\"col-md-3 control-label\"\n >{{ labelKey | translate }}</label\n >\n\n @if (control) {\n <div class=\"col-md-9\">\n <input\n id=\"{{ '_' + fieldName }}\"\n type=\"checkbox\"\n kendoCheckBox\n [formControlName]=\"fieldName\"\n (ngModelChange)=\"onValueChange($event)\"\n #selectedValue\n />\n <ng-content></ng-content>\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2$1.CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { kind: "directive", type: i3$1.LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], viewProviders: [
|
|
619
617
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
620
618
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
621
619
|
}
|
|
622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldCheckBoxInputComponent, decorators: [{
|
|
623
621
|
type: Component,
|
|
624
622
|
args: [{ selector: 'field-checkbox-input', viewProviders: [
|
|
625
623
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -631,19 +629,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
631
629
|
}] } });
|
|
632
630
|
|
|
633
631
|
class FieldCheckBoxInputModule {
|
|
634
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
635
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldCheckBoxInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
633
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldCheckBoxInputModule, declarations: [FieldCheckBoxInputComponent], imports: [CommonModule,
|
|
636
634
|
ReactiveFormsModule,
|
|
637
635
|
TranslateModule,
|
|
638
636
|
InputsModule,
|
|
639
637
|
LabelModule], exports: [FieldCheckBoxInputComponent] }); }
|
|
640
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
638
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldCheckBoxInputModule, imports: [CommonModule,
|
|
641
639
|
ReactiveFormsModule,
|
|
642
640
|
TranslateModule,
|
|
643
641
|
InputsModule,
|
|
644
642
|
LabelModule] }); }
|
|
645
643
|
}
|
|
646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldCheckBoxInputModule, decorators: [{
|
|
647
645
|
type: NgModule,
|
|
648
646
|
args: [{
|
|
649
647
|
declarations: [FieldCheckBoxInputComponent],
|
|
@@ -768,34 +766,50 @@ class BaseAccountService {
|
|
|
768
766
|
.subscribe();
|
|
769
767
|
}
|
|
770
768
|
initialize(provider) {
|
|
771
|
-
this.getCurrentUser().subscribe(
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
this.signalRService.
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
769
|
+
this.getCurrentUser().subscribe({
|
|
770
|
+
next: (user) => {
|
|
771
|
+
if (!user) {
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
const path = this.settingsService.getCallbackPath();
|
|
775
|
+
if (path) {
|
|
776
|
+
this.settingsService.clearCallbackPath();
|
|
777
|
+
window.location.href = window.location.origin + path;
|
|
778
|
+
return;
|
|
779
|
+
}
|
|
780
|
+
if (this.isAdmin(user) &&
|
|
781
|
+
!window.location.pathname.startsWith(adminUriPart)) {
|
|
782
|
+
window.location.href = `${window.location.origin}${adminUriPart}`;
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
785
|
+
provider.getAccessToken().subscribe({
|
|
786
|
+
next: (token) => {
|
|
787
|
+
if (!token) {
|
|
788
|
+
return;
|
|
789
|
+
}
|
|
790
|
+
this.signalRService.startConnection(token);
|
|
791
|
+
this.signalRService
|
|
792
|
+
.on(EventNames.UserUpdated)
|
|
793
|
+
.subscribe(async () => {
|
|
794
|
+
provider.getAccessToken().subscribe({
|
|
795
|
+
next: (nextToken) => {
|
|
796
|
+
if (nextToken) {
|
|
797
|
+
this.signalRService.reconnect(nextToken);
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
error: () => undefined,
|
|
801
|
+
});
|
|
802
|
+
this.httpService
|
|
803
|
+
.get(endpoints.members.me)
|
|
804
|
+
.subscribe((user) => this.user.next(user));
|
|
805
|
+
});
|
|
806
|
+
},
|
|
807
|
+
error: () => undefined,
|
|
797
808
|
});
|
|
798
|
-
}
|
|
809
|
+
},
|
|
810
|
+
error: (error) => {
|
|
811
|
+
console.error(error);
|
|
812
|
+
},
|
|
799
813
|
});
|
|
800
814
|
}
|
|
801
815
|
getCurrentUser() {
|
|
@@ -803,7 +817,10 @@ class BaseAccountService {
|
|
|
803
817
|
if (this.user.getValue() || !provider.isUserLoggedIn()) {
|
|
804
818
|
return this.user;
|
|
805
819
|
}
|
|
806
|
-
return provider.getAccessToken().pipe(mergeMap(() => {
|
|
820
|
+
return provider.getAccessToken().pipe(mergeMap((token) => {
|
|
821
|
+
if (!token) {
|
|
822
|
+
return this.user;
|
|
823
|
+
}
|
|
807
824
|
return this.httpService.get(endpoints.members.me).pipe(map((user) => {
|
|
808
825
|
this.user.next(user);
|
|
809
826
|
return user;
|
|
@@ -853,10 +870,10 @@ class DebounceDirective {
|
|
|
853
870
|
event.stopPropagation();
|
|
854
871
|
this.keyUp.next(event);
|
|
855
872
|
}
|
|
856
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
857
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
873
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DebounceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
874
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: DebounceDirective, isStandalone: false, selector: "[appDebounce]", inputs: { debounceTime: "debounceTime" }, outputs: { debounceKeyup: "debounceKeyup" }, host: { listeners: { "keyup": "keyUpEvent($event)" } }, ngImport: i0 }); }
|
|
858
875
|
}
|
|
859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DebounceDirective, decorators: [{
|
|
860
877
|
type: Directive,
|
|
861
878
|
args: [{
|
|
862
879
|
selector: '[appDebounce]',
|
|
@@ -872,11 +889,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
872
889
|
}] } });
|
|
873
890
|
|
|
874
891
|
class DebounceModule {
|
|
875
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
876
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
877
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
892
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DebounceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
893
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: DebounceModule, declarations: [DebounceDirective], imports: [CommonModule], exports: [DebounceDirective] }); }
|
|
894
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DebounceModule, imports: [CommonModule] }); }
|
|
878
895
|
}
|
|
879
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DebounceModule, decorators: [{
|
|
880
897
|
type: NgModule,
|
|
881
898
|
args: [{
|
|
882
899
|
declarations: [DebounceDirective],
|
|
@@ -923,10 +940,10 @@ class GeneralErrorsComponent {
|
|
|
923
940
|
ngOnChanges() {
|
|
924
941
|
this.form?.setErrors({ _general_errors_: this.errors });
|
|
925
942
|
}
|
|
926
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
927
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
943
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: GeneralErrorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
944
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: GeneralErrorsComponent, isStandalone: false, selector: "app-general-errors", inputs: { form: "form", errors: "errors" }, usesOnChanges: true, ngImport: i0, template: "@if (form) {\n <div [formGroup]=\"form\">\n @if (form.invalid && errors.length) {\n <div class=\"bg-danger\">\n <ul class=\"custom-error\">\n @for (error of errors; track error) {\n <li>{{ error }}</li>\n }\n </ul>\n </div>\n }\n </div>\n}\n", dependencies: [{ kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
928
945
|
}
|
|
929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: GeneralErrorsComponent, decorators: [{
|
|
930
947
|
type: Component,
|
|
931
948
|
args: [{ selector: 'app-general-errors', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (form) {\n <div [formGroup]=\"form\">\n @if (form.invalid && errors.length) {\n <div class=\"bg-danger\">\n <ul class=\"custom-error\">\n @for (error of errors; track error) {\n <li>{{ error }}</li>\n }\n </ul>\n </div>\n }\n </div>\n}\n" }]
|
|
932
949
|
}], propDecorators: { form: [{
|
|
@@ -936,15 +953,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
936
953
|
}] } });
|
|
937
954
|
|
|
938
955
|
class GeneralErrorsModule {
|
|
939
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
940
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
956
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: GeneralErrorsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
957
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: GeneralErrorsModule, declarations: [GeneralErrorsComponent], imports: [CommonModule,
|
|
941
958
|
ReactiveFormsModule,
|
|
942
959
|
FormsModule], exports: [GeneralErrorsComponent] }); }
|
|
943
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
960
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: GeneralErrorsModule, imports: [CommonModule,
|
|
944
961
|
ReactiveFormsModule,
|
|
945
962
|
FormsModule] }); }
|
|
946
963
|
}
|
|
947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
964
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: GeneralErrorsModule, decorators: [{
|
|
948
965
|
type: NgModule,
|
|
949
966
|
args: [{
|
|
950
967
|
declarations: [GeneralErrorsComponent],
|
|
@@ -958,10 +975,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
958
975
|
}] });
|
|
959
976
|
|
|
960
977
|
class AppSettings {
|
|
961
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
962
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppSettings, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
979
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppSettings, providedIn: 'root' }); }
|
|
963
980
|
}
|
|
964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppSettings, decorators: [{
|
|
965
982
|
type: Injectable,
|
|
966
983
|
args: [{
|
|
967
984
|
providedIn: 'root',
|
|
@@ -986,35 +1003,47 @@ const HttpMethods = [
|
|
|
986
1003
|
];
|
|
987
1004
|
|
|
988
1005
|
class IndiginaConfiguration {
|
|
989
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
990
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1006
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: IndiginaConfiguration, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1007
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: IndiginaConfiguration, providedIn: 'root' }); }
|
|
991
1008
|
}
|
|
992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: IndiginaConfiguration, decorators: [{
|
|
993
1010
|
type: Injectable,
|
|
994
1011
|
args: [{ providedIn: 'root' }]
|
|
995
1012
|
}] });
|
|
996
1013
|
|
|
997
1014
|
class AppToastrService {
|
|
998
|
-
constructor(
|
|
999
|
-
this.
|
|
1015
|
+
constructor(notificationService, appSettings) {
|
|
1016
|
+
this.notificationService = notificationService;
|
|
1000
1017
|
this.appSettings = appSettings;
|
|
1001
1018
|
this.timeout = this.appSettings.toastrTimeOut;
|
|
1002
1019
|
}
|
|
1003
|
-
showError(message, title = 'Error') {
|
|
1004
|
-
this.
|
|
1020
|
+
showError(message, title = 'Error', closable = false) {
|
|
1021
|
+
this.notificationService.show({
|
|
1022
|
+
content: title ? `${title}: ${message}` : message,
|
|
1023
|
+
hideAfter: this.timeout,
|
|
1024
|
+
closable,
|
|
1025
|
+
position: { horizontal: 'right', vertical: 'top' },
|
|
1026
|
+
type: { style: 'error', icon: true },
|
|
1027
|
+
});
|
|
1005
1028
|
}
|
|
1006
|
-
showSuccess(message, title = '') {
|
|
1007
|
-
this.
|
|
1029
|
+
showSuccess(message, title = '', closable = false) {
|
|
1030
|
+
this.notificationService.show({
|
|
1031
|
+
content: title ? `${title}: ${message}` : message,
|
|
1032
|
+
hideAfter: this.timeout,
|
|
1033
|
+
closable,
|
|
1034
|
+
position: { horizontal: 'right', vertical: 'top' },
|
|
1035
|
+
type: { style: 'success', icon: true },
|
|
1036
|
+
});
|
|
1008
1037
|
}
|
|
1009
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1010
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1038
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppToastrService, deps: [{ token: i1$1.NotificationService }, { token: AppSettings }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1039
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppToastrService, providedIn: 'root' }); }
|
|
1011
1040
|
}
|
|
1012
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppToastrService, decorators: [{
|
|
1013
1042
|
type: Injectable,
|
|
1014
1043
|
args: [{
|
|
1015
1044
|
providedIn: 'root',
|
|
1016
1045
|
}]
|
|
1017
|
-
}], ctorParameters: () => [{ type: i1$1.
|
|
1046
|
+
}], ctorParameters: () => [{ type: i1$1.NotificationService }, { type: AppSettings }] });
|
|
1018
1047
|
|
|
1019
1048
|
const callbackPathKey = 'callbackPath';
|
|
1020
1049
|
const homePath = '/home';
|
|
@@ -1053,10 +1082,10 @@ class SettingsService {
|
|
|
1053
1082
|
getToken() {
|
|
1054
1083
|
return localStorage.getItem(tokenKey);
|
|
1055
1084
|
}
|
|
1056
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1057
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1085
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1086
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SettingsService, providedIn: 'root' }); }
|
|
1058
1087
|
}
|
|
1059
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SettingsService, decorators: [{
|
|
1060
1089
|
type: Injectable,
|
|
1061
1090
|
args: [{ providedIn: 'root' }]
|
|
1062
1091
|
}] });
|
|
@@ -1144,10 +1173,10 @@ class HttpService {
|
|
|
1144
1173
|
showSuccessMessage(message) {
|
|
1145
1174
|
this.appToastrService.showSuccess(this.translate.instant(message));
|
|
1146
1175
|
}
|
|
1147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1148
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: HttpService, deps: [{ token: AppToastrService }, { token: i2$2.HttpClient }, { token: AppSettings }, { token: i2.TranslateService }, { token: i1$2.Router }, { token: SettingsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1177
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: HttpService, providedIn: 'root' }); }
|
|
1149
1178
|
}
|
|
1150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: HttpService, decorators: [{
|
|
1151
1180
|
type: Injectable,
|
|
1152
1181
|
args: [{ providedIn: 'root' }]
|
|
1153
1182
|
}], ctorParameters: () => [{ type: AppToastrService }, { type: i2$2.HttpClient }, { type: AppSettings }, { type: i2.TranslateService }, { type: i1$2.Router }, { type: SettingsService }] });
|
|
@@ -1184,10 +1213,10 @@ class LocaleSettingsService {
|
|
|
1184
1213
|
localStorage.setItem(languageKey, locale);
|
|
1185
1214
|
}
|
|
1186
1215
|
}
|
|
1187
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1188
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1216
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LocaleSettingsService, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1217
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LocaleSettingsService, providedIn: 'root' }); }
|
|
1189
1218
|
}
|
|
1190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LocaleSettingsService, decorators: [{
|
|
1191
1220
|
type: Injectable,
|
|
1192
1221
|
args: [{
|
|
1193
1222
|
providedIn: 'root',
|
|
@@ -1203,22 +1232,22 @@ class LiveUpdatesControlComponent {
|
|
|
1203
1232
|
? this.subscription.pause()
|
|
1204
1233
|
: this.subscription.resume();
|
|
1205
1234
|
}
|
|
1206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1207
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1235
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LiveUpdatesControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1236
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: LiveUpdatesControlComponent, isStandalone: false, selector: "live-updates-control", inputs: { subscription: "subscription" }, ngImport: i0, template: "<button (click)=\"toggle()\" class=\"k-button\">\n <em [ngClass]=\"subscription.connected ? 'fa fa-pause' : 'fa fa-play'\"></em>\n {{\n (subscription.connected ? 'LiveFeed.Pause' : 'LiveFeed.Resume') | translate\n }}\n</button>\n", styles: [":host .fa{margin-right:5px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
1208
1237
|
}
|
|
1209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LiveUpdatesControlComponent, decorators: [{
|
|
1210
1239
|
type: Component,
|
|
1211
|
-
args: [{ selector: 'live-updates-control', standalone: false, template: "<button (click)=\"toggle()\" class=\"k-button\">\n <em [ngClass]=\"subscription.connected ? 'fa fa-pause' : 'fa fa-play'\"></em>\n {{\n (subscription.connected ? 'LiveFeed.Pause' : 'LiveFeed.Resume') | translate\n }}\n</button>\n", styles: [":host .fa{margin-right:5px}\n"] }]
|
|
1240
|
+
args: [{ selector: 'live-updates-control', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<button (click)=\"toggle()\" class=\"k-button\">\n <em [ngClass]=\"subscription.connected ? 'fa fa-pause' : 'fa fa-play'\"></em>\n {{\n (subscription.connected ? 'LiveFeed.Pause' : 'LiveFeed.Resume') | translate\n }}\n</button>\n", styles: [":host .fa{margin-right:5px}\n"] }]
|
|
1212
1241
|
}], propDecorators: { subscription: [{
|
|
1213
1242
|
type: Input
|
|
1214
1243
|
}] } });
|
|
1215
1244
|
|
|
1216
1245
|
class LiveUpdatesControlModule {
|
|
1217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1218
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1219
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LiveUpdatesControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1247
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: LiveUpdatesControlModule, declarations: [LiveUpdatesControlComponent], imports: [CommonModule, TranslateModule], exports: [LiveUpdatesControlComponent] }); }
|
|
1248
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LiveUpdatesControlModule, imports: [CommonModule, TranslateModule] }); }
|
|
1220
1249
|
}
|
|
1221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LiveUpdatesControlModule, decorators: [{
|
|
1222
1251
|
type: NgModule,
|
|
1223
1252
|
args: [{
|
|
1224
1253
|
declarations: [LiveUpdatesControlComponent],
|
|
@@ -1274,10 +1303,10 @@ class MenuItemGroupComponent {
|
|
|
1274
1303
|
this.setItemExpand();
|
|
1275
1304
|
}
|
|
1276
1305
|
}
|
|
1277
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1278
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1306
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MenuItemGroupComponent, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1307
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: MenuItemGroupComponent, isStandalone: false, selector: "[menu-item-group]", inputs: { item: "item" }, usesOnChanges: true, ngImport: i0, template: "@if (item.items && item.items.length) {\n <a (click)=\"collapseChild(item, $event)\">\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n <ul\n [ngClass]=\"\n item.expanded\n ? 'nav nav-second-level collapse in'\n : 'nav nav-second-level collapse'\n \"\n >\n @for (item of item.items; track item) {\n <li\n ngClass=\"nav nav-third-level collapse\"\n menu-item-group\n [item]=\"item\"\n ></li>\n }\n </ul>\n}\n@if (!item.items || !item.items.length) {\n @if (item.link) {\n <a\n routerLink=\"{{ item.link }}\"\n routerLinkActive=\"active-route\"\n class=\"sub-menu-link\"\n (click)=\"collapseChild(item, $event)\"\n >\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n }\n @if (item.url) {\n <a\n class=\"sub-menu-link\"\n href=\"{{ item.url }}\"\n target=\"_blank\"\n (click)=\"collapseChild(item, $event)\"\n >\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n }\n}\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: MenuItemGroupComponent, selector: "[menu-item-group]", inputs: ["item"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
|
1279
1308
|
}
|
|
1280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MenuItemGroupComponent, decorators: [{
|
|
1281
1310
|
type: Component,
|
|
1282
1311
|
args: [{ selector: '[menu-item-group]', standalone: false, template: "@if (item.items && item.items.length) {\n <a (click)=\"collapseChild(item, $event)\">\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n <ul\n [ngClass]=\"\n item.expanded\n ? 'nav nav-second-level collapse in'\n : 'nav nav-second-level collapse'\n \"\n >\n @for (item of item.items; track item) {\n <li\n ngClass=\"nav nav-third-level collapse\"\n menu-item-group\n [item]=\"item\"\n ></li>\n }\n </ul>\n}\n@if (!item.items || !item.items.length) {\n @if (item.link) {\n <a\n routerLink=\"{{ item.link }}\"\n routerLinkActive=\"active-route\"\n class=\"sub-menu-link\"\n (click)=\"collapseChild(item, $event)\"\n >\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n }\n @if (item.url) {\n <a\n class=\"sub-menu-link\"\n href=\"{{ item.url }}\"\n target=\"_blank\"\n (click)=\"collapseChild(item, $event)\"\n >\n @if (!item.iconClass) {\n {{ item.text | translate }}\n } @else {\n <i class=\"menu-icon fa {{ item.iconClass }}\"></i>\n <span class=\"nav-label\">{{ item.text | translate }}</span>\n }\n </a>\n }\n}\n" }]
|
|
1283
1312
|
}], ctorParameters: () => [{ type: i1$2.Router }], propDecorators: { item: [{
|
|
@@ -1305,10 +1334,10 @@ class SideMenuComponent {
|
|
|
1305
1334
|
itemComponent.collapsed = false;
|
|
1306
1335
|
}
|
|
1307
1336
|
}
|
|
1308
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1309
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1337
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SideMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1338
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: SideMenuComponent, isStandalone: false, selector: "side-menu", inputs: { items: "items" }, outputs: { logoClick: "logoClick" }, ngImport: i0, template: "<nav\n id=\"menu-left\"\n class=\"navbar-default navbar-main navbar-static-side open\"\n role=\"navigation\"\n >\n <div class=\"sidebar-collapse\">\n <ul id=\"side-menu\" class=\"nav\">\n <li class=\"nav-header\">\n <div class=\"profile-element\">\n <a [routerLink]=\"['/']\" class=\"img-supply\">\n <img alt=\"Supply Stream logo\" />\n </a>\n </div>\n <div class=\"logo-element\" (click)=\"onLogoClick()\">\n <i class=\"fa fa-exchange\"></i>\n </div>\n </li>\n </ul>\n\n <div class=\"sidebar-collapse\">\n <ul class=\"nav\">\n @for (item of items; track item) {\n <li\n #itemComponent\n menu-item-group\n [item]=\"item\"\n [ngClass]=\"{\n menu: true,\n active: item.expanded ? item.expanded : false,\n collapsed: itemComponent.collapsed\n }\"\n (click)=\"collapse(itemComponent, item, $event)\"\n ></li>\n }\n </ul>\n </div>\n </div>\n</nav>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: MenuItemGroupComponent, selector: "[menu-item-group]", inputs: ["item"] }] }); }
|
|
1310
1339
|
}
|
|
1311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SideMenuComponent, decorators: [{
|
|
1312
1341
|
type: Component,
|
|
1313
1342
|
args: [{ selector: 'side-menu', standalone: false, template: "<nav\n id=\"menu-left\"\n class=\"navbar-default navbar-main navbar-static-side open\"\n role=\"navigation\"\n >\n <div class=\"sidebar-collapse\">\n <ul id=\"side-menu\" class=\"nav\">\n <li class=\"nav-header\">\n <div class=\"profile-element\">\n <a [routerLink]=\"['/']\" class=\"img-supply\">\n <img alt=\"Supply Stream logo\" />\n </a>\n </div>\n <div class=\"logo-element\" (click)=\"onLogoClick()\">\n <i class=\"fa fa-exchange\"></i>\n </div>\n </li>\n </ul>\n\n <div class=\"sidebar-collapse\">\n <ul class=\"nav\">\n @for (item of items; track item) {\n <li\n #itemComponent\n menu-item-group\n [item]=\"item\"\n [ngClass]=\"{\n menu: true,\n active: item.expanded ? item.expanded : false,\n collapsed: itemComponent.collapsed\n }\"\n (click)=\"collapse(itemComponent, item, $event)\"\n ></li>\n }\n </ul>\n </div>\n </div>\n</nav>\n" }]
|
|
1314
1343
|
}], propDecorators: { items: [{
|
|
@@ -1339,10 +1368,10 @@ class TreeViewNodeComponent {
|
|
|
1339
1368
|
}
|
|
1340
1369
|
this.treeViewProps.forEach((x) => x.collapseAll());
|
|
1341
1370
|
}
|
|
1342
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1343
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1371
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1372
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TreeViewNodeComponent, isStandalone: false, selector: "tree-view-node", inputs: { node: "node", hasExpand: "hasExpand" }, viewQueries: [{ propertyName: "treeViewProps", predicate: ["node"], descendants: true }], ngImport: i0, template: "<span class=\"tree-view-node\">\n <span class=\"bracket\">{{ node.brackets?.inside }}</span>\n @if (node.isPrimitive) {\n <span class=\"tree-view-prop\">\n {{ node.startTag }}\n <span [ngClass]=\"node.nodeType\">\n {{ node.value }}\n </span>\n {{ node.endTag }}\n </span>\n } @else {\n <span>\n @if (hasExpand) {\n <em\n [ngClass]=\"\n expanded\n ? 'fa fa-caret-down node-toggler'\n : 'fa fa-caret-right node-toggler'\n \"\n (click)=\"toggleExpand()\"\n ></em>\n }\n @if (!expanded && !node.startTag) {\n <span class=\"ellipsis\">...</span>\n }\n <ul [ngClass]=\"!expanded ? 'hidden' : ''\">\n @for (child of node.children; track child) {\n <li class=\"tree-view-prop\">\n <span class=\"prop-name\">{{ child.startTag }}</span>\n @if (child.isPrimitive) {\n <span [ngClass]=\"child.nodeType\">{{\n child.value\n }}</span>\n }\n @if (child.isComplex) {\n <tree-view-node\n [node]=\"child\"\n [hasExpand]=\"true\"\n #node\n ></tree-view-node>\n }\n <span class=\"prop-name\">{{ child.endTag }}</span>\n </li>\n }\n </ul>\n </span>\n }\n <span class=\"bracket\">{{ node.brackets?.outside }}</span>\n</span>\n", styles: ["*{font-size:14px}li{position:relative}.prop-name{color:#555;font-weight:700}.tree-view-prop{list-style-type:none;margin:4px 0;word-wrap:break-word}.tree-view-prop{position:relative;padding-left:20px}.tree-view-prop .number{color:#00f}.tree-view-prop .string{color:green}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: TreeViewNodeComponent, selector: "tree-view-node", inputs: ["node", "hasExpand"] }] }); }
|
|
1344
1373
|
}
|
|
1345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewNodeComponent, decorators: [{
|
|
1346
1375
|
type: Component,
|
|
1347
1376
|
args: [{ selector: 'tree-view-node', standalone: false, template: "<span class=\"tree-view-node\">\n <span class=\"bracket\">{{ node.brackets?.inside }}</span>\n @if (node.isPrimitive) {\n <span class=\"tree-view-prop\">\n {{ node.startTag }}\n <span [ngClass]=\"node.nodeType\">\n {{ node.value }}\n </span>\n {{ node.endTag }}\n </span>\n } @else {\n <span>\n @if (hasExpand) {\n <em\n [ngClass]=\"\n expanded\n ? 'fa fa-caret-down node-toggler'\n : 'fa fa-caret-right node-toggler'\n \"\n (click)=\"toggleExpand()\"\n ></em>\n }\n @if (!expanded && !node.startTag) {\n <span class=\"ellipsis\">...</span>\n }\n <ul [ngClass]=\"!expanded ? 'hidden' : ''\">\n @for (child of node.children; track child) {\n <li class=\"tree-view-prop\">\n <span class=\"prop-name\">{{ child.startTag }}</span>\n @if (child.isPrimitive) {\n <span [ngClass]=\"child.nodeType\">{{\n child.value\n }}</span>\n }\n @if (child.isComplex) {\n <tree-view-node\n [node]=\"child\"\n [hasExpand]=\"true\"\n #node\n ></tree-view-node>\n }\n <span class=\"prop-name\">{{ child.endTag }}</span>\n </li>\n }\n </ul>\n </span>\n }\n <span class=\"bracket\">{{ node.brackets?.outside }}</span>\n</span>\n", styles: ["*{font-size:14px}li{position:relative}.prop-name{color:#555;font-weight:700}.tree-view-prop{list-style-type:none;margin:4px 0;word-wrap:break-word}.tree-view-prop{position:relative;padding-left:20px}.tree-view-prop .number{color:#00f}.tree-view-prop .string{color:green}\n"] }]
|
|
1348
1377
|
}], propDecorators: { treeViewProps: [{
|
|
@@ -1736,10 +1765,10 @@ class TreeViewComponent {
|
|
|
1736
1765
|
}
|
|
1737
1766
|
return false;
|
|
1738
1767
|
}
|
|
1739
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1740
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1768
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewComponent, deps: [{ token: i1$4.ClipboardService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1769
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TreeViewComponent, isStandalone: false, selector: "tree-view", inputs: { data: "data", maxTextLength: "maxTextLength", maxRootItems: "maxRootItems", customButtons: "customButtons" }, viewQueries: [{ propertyName: "treeViewNodes", predicate: ["node"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "@if (data) {\n <div\n class=\"tree-view\"\n [ngClass]=\"collapsed ? 'collapsed' : 'expanded'\"\n [class]=\"format\"\n >\n @if (format != ContentTypesFormat.Text) {\n <div>\n <ng-container *ngTemplateOutlet=\"defaultActions\"></ng-container>\n </div>\n <div class=\"tree-view-main-content\">\n @if (isShowingCustomContent) {\n <div class=\"custom-content-container\">\n <div class=\"custom-content-body\">\n <ng-content select=\"[slot=custom-content]\"></ng-content>\n </div>\n </div>\n } @else {\n <div\n [ngClass]=\"allShow ? 'show-all tree-view-body' : 'tree-view-body'\"\n >\n @if (IsArray) {\n @for (node of getArrayData(); track node) {\n <tree-view-node\n class=\"array-node\"\n [node]=\"node\"\n [hasExpand]=\"true\"\n #node\n >\n </tree-view-node>\n }\n } @else {\n <tree-view-node\n [node]=\"getSingleNodeData()\"\n #node\n >\n </tree-view-node>\n }\n </div>\n }\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"defaultActions\"> </ng-container>\n <pre class=\"text-view tree-view-body\">{{ data }}</pre>\n }\n <ng-template #defaultActions>\n @if (resolved.format !== ContentTypesFormat.Text) {\n <button\n class=\"tree-view-action\"\n title=\"{{\n (collapsed\n ? 'TreeViewMessages.Expand'\n : 'TreeViewMessages.Collapse'\n ) | translate\n }}\"\n [disabled]=\"rawView || isShowingCustomContent\"\n (click)=\"toggleExpandAll()\"\n >\n <i [ngClass]=\"allShow ? 'fa fa-minus' : 'fa fa-plus'\"></i>\n </button>\n }\n <button\n class=\"tree-view-action\"\n title=\"{{ 'TreeViewMessages.CopyToClipboard' | translate }}\"\n (click)=\"copyToClipboard()\"\n >\n <i class=\"fa fa-clipboard\"></i>\n </button>\n <button\n class=\"tree-view-action\"\n title=\"{{ 'TreeViewMessages.PrettyCopyToClipboard' | translate }}\"\n (click)=\"prettyCopyToClipboard()\"\n >\n <i class=\"fa fa-magic\"></i>\n </button>\n @if (resolved.format !== ContentTypesFormat.Text) {\n <button\n class=\"tree-view-action\"\n title=\"{{\n (rawView\n ? 'TreeViewMessages.ToJsonView'\n : 'TreeViewMessages.ToFormattedView'\n ) | translate\n }}\"\n [ngClass]=\"rawView ? 'pressed' : ''\"\n (click)=\"toggleRawView()\"\n >\n <i class=\"fa fa-file-text-o\"></i>\n </button>\n }\n @for (button of customButtons; track button) {\n <button\n [disabled]=\"button.disabled\"\n [style.display]=\"\n isCustomButtonVisible(button) ? 'inline-block' : 'none'\n \"\n [ngClass]=\"[\n 'tree-view-action',\n isCustomButtonActive(button) ? 'pressed' : '',\n ]\"\n [title]=\"button.title\"\n (click)=\"onCustomButtonClick(button)\"\n >\n <i [class]=\"button.icon\"></i>\n </button>\n }\n </ng-template>\n @if (hasCollapse) {\n <div>\n <button\n class=\"expand-toggler\"\n (click)=\"expandToggle()\"\n >\n <i\n class=\"fa\"\n [ngClass]=\"\n collapsed ? 'fa-chevron-circle-down' : 'fa-chevron-circle-up'\n \"\n ></i>\n </button>\n </div>\n }\n </div>\n}\n", styles: [":host ::ng-deep .tree-view ul{padding-left:20px;margin:0}:host ::ng-deep .node-toggler{position:absolute;left:3px;color:#222;font-size:14px;font-weight:700;padding:1px;cursor:pointer;width:20px}:host .tree-view{position:relative}:host ::ng-deep .hidden{display:none}:host .tree-view-action{margin:3px}:host .tree-view-body{position:relative;margin:5px;padding:0 20px;font-family:monospace;overflow:hidden}:host .collapsed .tree-view-body{max-height:200px}:host .expand-toggler{width:100%;height:30px;background:none;border:none;outline:none;cursor:pointer;position:relative;background:linear-gradient(#fff0,#fff 45%);max-width:100%;padding:0;left:0;transition:all ease-in-out .1s;margin-top:15px}:host .expand-toggler .fa{font-size:16px;color:#444;transition:all ease-in-out .3s}:host .collapsed .expand-toggler{height:60px;margin-top:-40px;padding-top:20px;position:absolute}:host .expand-toggler:hover .fa{color:#36517e;transform:scale(1.7) rotate(-90deg)}:host .collapsed{padding-bottom:20px}:host .text-view{white-space:pre-wrap}:host .tree-view-action:disabled{opacity:.65}:host .tree-view-action.pressed{box-shadow:1px 1px 3px #0004 inset}::ng-deep .json .array-node{display:block}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TreeViewNodeComponent, selector: "tree-view-node", inputs: ["node", "hasExpand"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
|
1741
1770
|
}
|
|
1742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TreeViewComponent, decorators: [{
|
|
1743
1772
|
type: Component,
|
|
1744
1773
|
args: [{ selector: 'tree-view', standalone: false, template: "@if (data) {\n <div\n class=\"tree-view\"\n [ngClass]=\"collapsed ? 'collapsed' : 'expanded'\"\n [class]=\"format\"\n >\n @if (format != ContentTypesFormat.Text) {\n <div>\n <ng-container *ngTemplateOutlet=\"defaultActions\"></ng-container>\n </div>\n <div class=\"tree-view-main-content\">\n @if (isShowingCustomContent) {\n <div class=\"custom-content-container\">\n <div class=\"custom-content-body\">\n <ng-content select=\"[slot=custom-content]\"></ng-content>\n </div>\n </div>\n } @else {\n <div\n [ngClass]=\"allShow ? 'show-all tree-view-body' : 'tree-view-body'\"\n >\n @if (IsArray) {\n @for (node of getArrayData(); track node) {\n <tree-view-node\n class=\"array-node\"\n [node]=\"node\"\n [hasExpand]=\"true\"\n #node\n >\n </tree-view-node>\n }\n } @else {\n <tree-view-node\n [node]=\"getSingleNodeData()\"\n #node\n >\n </tree-view-node>\n }\n </div>\n }\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"defaultActions\"> </ng-container>\n <pre class=\"text-view tree-view-body\">{{ data }}</pre>\n }\n <ng-template #defaultActions>\n @if (resolved.format !== ContentTypesFormat.Text) {\n <button\n class=\"tree-view-action\"\n title=\"{{\n (collapsed\n ? 'TreeViewMessages.Expand'\n : 'TreeViewMessages.Collapse'\n ) | translate\n }}\"\n [disabled]=\"rawView || isShowingCustomContent\"\n (click)=\"toggleExpandAll()\"\n >\n <i [ngClass]=\"allShow ? 'fa fa-minus' : 'fa fa-plus'\"></i>\n </button>\n }\n <button\n class=\"tree-view-action\"\n title=\"{{ 'TreeViewMessages.CopyToClipboard' | translate }}\"\n (click)=\"copyToClipboard()\"\n >\n <i class=\"fa fa-clipboard\"></i>\n </button>\n <button\n class=\"tree-view-action\"\n title=\"{{ 'TreeViewMessages.PrettyCopyToClipboard' | translate }}\"\n (click)=\"prettyCopyToClipboard()\"\n >\n <i class=\"fa fa-magic\"></i>\n </button>\n @if (resolved.format !== ContentTypesFormat.Text) {\n <button\n class=\"tree-view-action\"\n title=\"{{\n (rawView\n ? 'TreeViewMessages.ToJsonView'\n : 'TreeViewMessages.ToFormattedView'\n ) | translate\n }}\"\n [ngClass]=\"rawView ? 'pressed' : ''\"\n (click)=\"toggleRawView()\"\n >\n <i class=\"fa fa-file-text-o\"></i>\n </button>\n }\n @for (button of customButtons; track button) {\n <button\n [disabled]=\"button.disabled\"\n [style.display]=\"\n isCustomButtonVisible(button) ? 'inline-block' : 'none'\n \"\n [ngClass]=\"[\n 'tree-view-action',\n isCustomButtonActive(button) ? 'pressed' : '',\n ]\"\n [title]=\"button.title\"\n (click)=\"onCustomButtonClick(button)\"\n >\n <i [class]=\"button.icon\"></i>\n </button>\n }\n </ng-template>\n @if (hasCollapse) {\n <div>\n <button\n class=\"expand-toggler\"\n (click)=\"expandToggle()\"\n >\n <i\n class=\"fa\"\n [ngClass]=\"\n collapsed ? 'fa-chevron-circle-down' : 'fa-chevron-circle-up'\n \"\n ></i>\n </button>\n </div>\n }\n </div>\n}\n", styles: [":host ::ng-deep .tree-view ul{padding-left:20px;margin:0}:host ::ng-deep .node-toggler{position:absolute;left:3px;color:#222;font-size:14px;font-weight:700;padding:1px;cursor:pointer;width:20px}:host .tree-view{position:relative}:host ::ng-deep .hidden{display:none}:host .tree-view-action{margin:3px}:host .tree-view-body{position:relative;margin:5px;padding:0 20px;font-family:monospace;overflow:hidden}:host .collapsed .tree-view-body{max-height:200px}:host .expand-toggler{width:100%;height:30px;background:none;border:none;outline:none;cursor:pointer;position:relative;background:linear-gradient(#fff0,#fff 45%);max-width:100%;padding:0;left:0;transition:all ease-in-out .1s;margin-top:15px}:host .expand-toggler .fa{font-size:16px;color:#444;transition:all ease-in-out .3s}:host .collapsed .expand-toggler{height:60px;margin-top:-40px;padding-top:20px;position:absolute}:host .expand-toggler:hover .fa{color:#36517e;transform:scale(1.7) rotate(-90deg)}:host .collapsed{padding-bottom:20px}:host .text-view{white-space:pre-wrap}:host .tree-view-action:disabled{opacity:.65}:host .tree-view-action.pressed{box-shadow:1px 1px 3px #0004 inset}::ng-deep .json .array-node{display:block}\n"] }]
|
|
1745
1774
|
}], ctorParameters: () => [{ type: i1$4.ClipboardService }], propDecorators: { treeViewNodes: [{
|
|
@@ -1756,11 +1785,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1756
1785
|
}] } });
|
|
1757
1786
|
|
|
1758
1787
|
class IndiginaTreeViewModule {
|
|
1759
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1760
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1761
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1788
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: IndiginaTreeViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1789
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: IndiginaTreeViewModule, declarations: [TreeViewComponent, TreeViewNodeComponent], imports: [CommonModule, TranslateModule, TreeViewModule], exports: [TreeViewComponent] }); }
|
|
1790
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: IndiginaTreeViewModule, imports: [CommonModule, TranslateModule, TreeViewModule] }); }
|
|
1762
1791
|
}
|
|
1763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: IndiginaTreeViewModule, decorators: [{
|
|
1764
1793
|
type: NgModule,
|
|
1765
1794
|
args: [{
|
|
1766
1795
|
declarations: [TreeViewComponent, TreeViewNodeComponent],
|
|
@@ -1770,30 +1799,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1770
1799
|
}] });
|
|
1771
1800
|
|
|
1772
1801
|
class AuthProvider {
|
|
1802
|
+
reauthenticate() {
|
|
1803
|
+
return defer(() => {
|
|
1804
|
+
this.login();
|
|
1805
|
+
return EMPTY;
|
|
1806
|
+
});
|
|
1807
|
+
}
|
|
1773
1808
|
}
|
|
1774
1809
|
|
|
1810
|
+
const userCanceledErrorCode = 'AADB2C90091';
|
|
1775
1811
|
class AzureB2CProvider extends AuthProvider {
|
|
1776
|
-
constructor(authService, settingsService, indiginaConfiguration) {
|
|
1812
|
+
constructor(authService, settingsService, indiginaConfiguration, broadcastService) {
|
|
1777
1813
|
super();
|
|
1778
1814
|
this.authService = authService;
|
|
1779
1815
|
this.settingsService = settingsService;
|
|
1780
1816
|
this.indiginaConfiguration = indiginaConfiguration;
|
|
1817
|
+
this.broadcastService = broadcastService;
|
|
1818
|
+
this.logoutInProgress = false;
|
|
1819
|
+
this.login$ = null;
|
|
1781
1820
|
this.isUserLoggedIn = () => !!this.authService.instance.getActiveAccount()?.localAccountId;
|
|
1782
1821
|
}
|
|
1783
1822
|
async initialize() {
|
|
1784
1823
|
await this.authService.instance.initialize();
|
|
1824
|
+
await firstValueFrom(defer(() => this.authService.handleRedirectObservable()).pipe(tap((result) => this.activateAccount(result)), switchMap(() => this.waitForIdle()), catchError((error) => this.handleRedirectError(error))));
|
|
1825
|
+
this.restoreCachedAccount();
|
|
1785
1826
|
return of(true);
|
|
1786
1827
|
}
|
|
1787
1828
|
login() {
|
|
1788
|
-
this.
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1829
|
+
this.startLogin(false).subscribe();
|
|
1830
|
+
}
|
|
1831
|
+
reauthenticate() {
|
|
1832
|
+
return this.startLogin(true);
|
|
1792
1833
|
}
|
|
1793
1834
|
logout() {
|
|
1794
|
-
this.
|
|
1795
|
-
|
|
1835
|
+
if (this.logoutInProgress) {
|
|
1836
|
+
return;
|
|
1837
|
+
}
|
|
1838
|
+
this.logoutInProgress = true;
|
|
1839
|
+
this.waitForIdle().pipe(switchMap(() => this.authService.logoutRedirect({
|
|
1796
1840
|
postLogoutRedirectUri: this.indiginaConfiguration.appSettings.azureB2C.logoutRedirectUri,
|
|
1841
|
+
}))).subscribe({
|
|
1842
|
+
next: () => this.settingsService.clearToken(),
|
|
1843
|
+
error: (error) => {
|
|
1844
|
+
this.logoutInProgress = false;
|
|
1845
|
+
console.error(error);
|
|
1846
|
+
},
|
|
1797
1847
|
});
|
|
1798
1848
|
}
|
|
1799
1849
|
getAccessToken() {
|
|
@@ -1806,31 +1856,107 @@ class AzureB2CProvider extends AuthProvider {
|
|
|
1806
1856
|
return token;
|
|
1807
1857
|
}), catchError((error) => {
|
|
1808
1858
|
if (error instanceof InteractionRequiredAuthError) {
|
|
1809
|
-
this.
|
|
1859
|
+
this.reauthenticate().subscribe();
|
|
1810
1860
|
}
|
|
1811
1861
|
return throwError(() => error);
|
|
1812
1862
|
}));
|
|
1813
1863
|
}
|
|
1864
|
+
waitForIdle() {
|
|
1865
|
+
return this.broadcastService.inProgress$.pipe(filter((status) => status === InteractionStatus.None), take(1));
|
|
1866
|
+
}
|
|
1867
|
+
activateAccount(result) {
|
|
1868
|
+
if (!result?.account) {
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1871
|
+
this.authService.instance.setActiveAccount(result.account);
|
|
1872
|
+
if (result.idToken) {
|
|
1873
|
+
this.settingsService.setToken(result.idToken);
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
handleRedirectError(error) {
|
|
1877
|
+
if (this.isUserCanceled(error)) {
|
|
1878
|
+
return this.waitForIdle();
|
|
1879
|
+
}
|
|
1880
|
+
console.error(error);
|
|
1881
|
+
return throwError(() => error);
|
|
1882
|
+
}
|
|
1883
|
+
isUserCanceled(error) {
|
|
1884
|
+
const authError = error;
|
|
1885
|
+
return `${authError?.errorMessage ?? ''} ${authError?.message ?? ''}`.includes(userCanceledErrorCode);
|
|
1886
|
+
}
|
|
1887
|
+
restoreCachedAccount() {
|
|
1888
|
+
if (this.authService.instance.getActiveAccount()) {
|
|
1889
|
+
return;
|
|
1890
|
+
}
|
|
1891
|
+
const [account] = this.authService.instance.getAllAccounts();
|
|
1892
|
+
if (account) {
|
|
1893
|
+
this.authService.instance.setActiveAccount(account);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
startLogin(force) {
|
|
1897
|
+
if (this.logoutInProgress) {
|
|
1898
|
+
return EMPTY;
|
|
1899
|
+
}
|
|
1900
|
+
if (this.login$) {
|
|
1901
|
+
return this.login$;
|
|
1902
|
+
}
|
|
1903
|
+
this.login$ = this.waitForIdle().pipe(switchMap(() => {
|
|
1904
|
+
if (!force && this.isUserLoggedIn()) {
|
|
1905
|
+
return EMPTY;
|
|
1906
|
+
}
|
|
1907
|
+
return this.authService.loginRedirect({
|
|
1908
|
+
scopes: ['openid', 'offline_access', 'profile'],
|
|
1909
|
+
});
|
|
1910
|
+
}), map$1(() => undefined), catchError((error) => {
|
|
1911
|
+
console.error(error);
|
|
1912
|
+
return EMPTY;
|
|
1913
|
+
}), finalize(() => {
|
|
1914
|
+
this.login$ = null;
|
|
1915
|
+
}), share());
|
|
1916
|
+
return this.login$;
|
|
1917
|
+
}
|
|
1814
1918
|
}
|
|
1815
1919
|
|
|
1816
1920
|
class AuthProviderResolver {
|
|
1817
|
-
constructor(
|
|
1921
|
+
constructor(injector, customProvider) {
|
|
1818
1922
|
this.AuthProvider$ = new BehaviorSubject(null);
|
|
1819
|
-
this.
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
this.AuthProvider$.
|
|
1923
|
+
this.initializationStarted = false;
|
|
1924
|
+
this.getProvider = () => {
|
|
1925
|
+
this.ensureInitialized();
|
|
1926
|
+
return this.AuthProvider$.pipe(filter((x) => !!x));
|
|
1927
|
+
};
|
|
1928
|
+
this.provider =
|
|
1929
|
+
customProvider ?? new AzureB2CProvider(injector.get(MsalService), injector.get(SettingsService), injector.get(IndiginaConfiguration), injector.get(MsalBroadcastService));
|
|
1930
|
+
}
|
|
1931
|
+
ensureInitialized() {
|
|
1932
|
+
if (this.initializationStarted) {
|
|
1933
|
+
return;
|
|
1934
|
+
}
|
|
1935
|
+
this.initializationStarted = true;
|
|
1936
|
+
defer(() => this.provider.initialize()).subscribe({
|
|
1937
|
+
next: () => {
|
|
1938
|
+
this.AuthProvider$.next(this.provider);
|
|
1939
|
+
},
|
|
1940
|
+
error: (error) => {
|
|
1941
|
+
console.error(error);
|
|
1942
|
+
this.AuthProvider$.error(error);
|
|
1943
|
+
},
|
|
1823
1944
|
});
|
|
1824
1945
|
}
|
|
1825
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1826
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1946
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthProviderResolver, deps: [{ token: i0.Injector }, { token: AuthProvider, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1947
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthProviderResolver, providedIn: 'root' }); }
|
|
1827
1948
|
}
|
|
1828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthProviderResolver, decorators: [{
|
|
1829
1950
|
type: Injectable,
|
|
1830
1951
|
args: [{
|
|
1831
1952
|
providedIn: 'root',
|
|
1832
1953
|
}]
|
|
1833
|
-
}], ctorParameters: () => [{ type:
|
|
1954
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: AuthProvider, decorators: [{
|
|
1955
|
+
type: Optional
|
|
1956
|
+
}, {
|
|
1957
|
+
type: Inject,
|
|
1958
|
+
args: [AuthProvider]
|
|
1959
|
+
}] }] });
|
|
1834
1960
|
|
|
1835
1961
|
class SignalRService {
|
|
1836
1962
|
constructor(appSettings) {
|
|
@@ -1892,10 +2018,10 @@ class SignalRService {
|
|
|
1892
2018
|
}
|
|
1893
2019
|
return this.eventEmitters[eventName];
|
|
1894
2020
|
}
|
|
1895
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1896
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2021
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SignalRService, deps: [{ token: AppSettings }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2022
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SignalRService, providedIn: 'root' }); }
|
|
1897
2023
|
}
|
|
1898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SignalRService, decorators: [{
|
|
1899
2025
|
type: Injectable,
|
|
1900
2026
|
args: [{ providedIn: 'root' }]
|
|
1901
2027
|
}], ctorParameters: () => [{ type: AppSettings }] });
|
|
@@ -1907,10 +2033,10 @@ class AccountService extends BaseAccountService {
|
|
|
1907
2033
|
this.resolver = resolver;
|
|
1908
2034
|
this.isAdmin = (member) => member?.type === adminKey || false;
|
|
1909
2035
|
}
|
|
1910
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1911
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2036
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AccountService, deps: [{ token: AuthProviderResolver }, { token: HttpService }, { token: SettingsService }, { token: SignalRService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2037
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AccountService, providedIn: 'root' }); }
|
|
1912
2038
|
}
|
|
1913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AccountService, decorators: [{
|
|
1914
2040
|
type: Injectable,
|
|
1915
2041
|
args: [{
|
|
1916
2042
|
providedIn: 'root',
|
|
@@ -1940,10 +2066,10 @@ class LanguageSelectorComponent {
|
|
|
1940
2066
|
this.close();
|
|
1941
2067
|
}
|
|
1942
2068
|
}
|
|
1943
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1944
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2069
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LanguageSelectorComponent, deps: [{ token: i0.ElementRef }, { token: LocaleSettingsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2070
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: LanguageSelectorComponent, isStandalone: false, selector: "language-selector", inputs: { visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "document:click": "clickedOutside($event)" } }, ngImport: i0, template: "@if (visible) {\n <kendo-window\n class=\"language-selector\"\n [draggable]=\"false\"\n [resizable]=\"false\">\n <kendo-window-titlebar>\n <div>{{ \"ChangeLanguage\" | translate }}</div>\n <button kendoWindowCloseAction (click)=\"close()\"></button>\n </kendo-window-titlebar>\n @if (languages) {\n <div class=\"languages\">\n @for (language of languages; track language) {\n <div class=\"language-change-action\">\n <button class=\"btn\" (click)=\"changeLanguage(language.code)\">\n @if (currentLanguageCode === language.code) {\n <span\n class=\"fa fa-check\" aria-hidden=\"true\"\n ></span>\n }\n {{ language.name }}\n </button>\n </div>\n }\n </div>\n }\n </kendo-window>\n}\n", styles: [".language-selector{right:40px;top:52px!important;left:auto}.language-selector kendo-window-titlebar{padding:5px 8px}.language-selector kendo-window-titlebar div{width:100%}.language-selector .btn{width:95%}.language-selector .fa{margin-right:5px}.language-change-action{padding:5px}\n"], dependencies: [{ kind: "component", type: i2$3.WindowComponent, selector: "kendo-window", inputs: ["autoFocusedElement", "title", "draggable", "resizable", "keepContent", "state", "minWidth", "minHeight", "width", "height", "top", "left"], outputs: ["dragStart", "dragEnd", "resizeStart", "resizeEnd", "close", "widthChange", "heightChange", "topChange", "leftChange", "stateChange"], exportAs: ["kendoWindow"] }, { kind: "component", type: i2$3.WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { kind: "component", type: i2$3.WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1945
2071
|
}
|
|
1946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LanguageSelectorComponent, decorators: [{
|
|
1947
2073
|
type: Component,
|
|
1948
2074
|
args: [{ selector: 'language-selector', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (visible) {\n <kendo-window\n class=\"language-selector\"\n [draggable]=\"false\"\n [resizable]=\"false\">\n <kendo-window-titlebar>\n <div>{{ \"ChangeLanguage\" | translate }}</div>\n <button kendoWindowCloseAction (click)=\"close()\"></button>\n </kendo-window-titlebar>\n @if (languages) {\n <div class=\"languages\">\n @for (language of languages; track language) {\n <div class=\"language-change-action\">\n <button class=\"btn\" (click)=\"changeLanguage(language.code)\">\n @if (currentLanguageCode === language.code) {\n <span\n class=\"fa fa-check\" aria-hidden=\"true\"\n ></span>\n }\n {{ language.name }}\n </button>\n </div>\n }\n </div>\n }\n </kendo-window>\n}\n", styles: [".language-selector{right:40px;top:52px!important;left:auto}.language-selector kendo-window-titlebar{padding:5px 8px}.language-selector kendo-window-titlebar div{width:100%}.language-selector .btn{width:95%}.language-selector .fa{margin-right:5px}.language-change-action{padding:5px}\n"] }]
|
|
1949
2075
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: LocaleSettingsService }], propDecorators: { visible: [{
|
|
@@ -1985,10 +2111,10 @@ class AccountMenuComponent {
|
|
|
1985
2111
|
this.toggle();
|
|
1986
2112
|
}
|
|
1987
2113
|
}
|
|
1988
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1989
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AccountMenuComponent, deps: [{ token: i0.ElementRef }, { token: AccountService }, { token: AppSettings }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2115
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: AccountMenuComponent, isStandalone: false, selector: "account-menu", inputs: { user: "user", menuItems: "menuItems" }, host: { listeners: { "document:click": "clickedOutside($event)" } }, viewQueries: [{ propertyName: "accountMenu", first: true, predicate: ["accountMenuElement"], descendants: true }], ngImport: i0, template: "<div class=\"profile-img left\" id=\"accountMenu\">\n <div #accountMenuElement title=\"User Account\" (click)=\"toggle()\">\n <div class=\"img-circle top-bar-profile left\"></div>\n </div>\n @if (expand) {\n <kendo-popup\n [anchor]=\"accountMenu\"\n popupClass=\"k-widget dropdown open\">\n <ul class=\"dropdown-menu top-bar-dropdown animated fadeInLeft\">\n <li class=\"top-bar-header-row media\">\n <div class=\"media-left\">\n <div class=\"img-circle\"></div>\n </div>\n <div class=\"media-body\">\n <span class=\"left fa fa-user\" aria-hidden=\"true\"></span>\n <span class=\"left pad5left\">{{ fullName }}</span>\n </div>\n </li>\n <li class=\"pad5top\">\n <a data-icon=\"globe\" (click)=\"openLanguageSelector($event)\">\n {{ \"ChangeLanguage\" | translate }}</a>\n </li>\n <li>\n <a data-icon=\"desktop\" translate=\"Account\" [href]=\"accountUrl\"></a>\n </li>\n @for (menuItem of menuItems; track menuItem) {\n <li>\n @if (menuItem.useRouter) {\n <a\n [routerLink]=\"menuItem.link\"\n [attr.data-icon]=\"menuItem.iconClass\">\n {{ menuItem.text | translate }}\n </a>\n } @else {\n <a [href]=\"menuItem.link\" [attr.data-icon]=\"menuItem.iconClass\">\n {{ menuItem.text | translate }}\n </a>\n }\n </li>\n }\n <li>\n <a translate=\"Logout\" data-icon=\"sign-out\" (click)=\"logout()\"></a>\n </li>\n </ul>\n </kendo-popup>\n }\n\n <language-selector [(visible)]=\"languageSelectorVisible\"\n ></language-selector>\n</div>\n", styles: [".top-bar-dropdown{right:-24px;top:42px}.top-bar-profile{cursor:pointer}\n"], dependencies: [{ kind: "component", type: i3$2.PopupComponent, selector: "kendo-popup", inputs: ["animate", "anchor", "anchorAlign", "collision", "popupAlign", "copyAnchorStyles", "popupClass", "positionMode", "offset", "margin"], outputs: ["anchorViewportLeave", "close", "open", "positionChange"], exportAs: ["kendo-popup"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: LanguageSelectorComponent, selector: "language-selector", inputs: ["visible"], outputs: ["visibleChange"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1990
2116
|
}
|
|
1991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AccountMenuComponent, decorators: [{
|
|
1992
2118
|
type: Component,
|
|
1993
2119
|
args: [{ selector: 'account-menu', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"profile-img left\" id=\"accountMenu\">\n <div #accountMenuElement title=\"User Account\" (click)=\"toggle()\">\n <div class=\"img-circle top-bar-profile left\"></div>\n </div>\n @if (expand) {\n <kendo-popup\n [anchor]=\"accountMenu\"\n popupClass=\"k-widget dropdown open\">\n <ul class=\"dropdown-menu top-bar-dropdown animated fadeInLeft\">\n <li class=\"top-bar-header-row media\">\n <div class=\"media-left\">\n <div class=\"img-circle\"></div>\n </div>\n <div class=\"media-body\">\n <span class=\"left fa fa-user\" aria-hidden=\"true\"></span>\n <span class=\"left pad5left\">{{ fullName }}</span>\n </div>\n </li>\n <li class=\"pad5top\">\n <a data-icon=\"globe\" (click)=\"openLanguageSelector($event)\">\n {{ \"ChangeLanguage\" | translate }}</a>\n </li>\n <li>\n <a data-icon=\"desktop\" translate=\"Account\" [href]=\"accountUrl\"></a>\n </li>\n @for (menuItem of menuItems; track menuItem) {\n <li>\n @if (menuItem.useRouter) {\n <a\n [routerLink]=\"menuItem.link\"\n [attr.data-icon]=\"menuItem.iconClass\">\n {{ menuItem.text | translate }}\n </a>\n } @else {\n <a [href]=\"menuItem.link\" [attr.data-icon]=\"menuItem.iconClass\">\n {{ menuItem.text | translate }}\n </a>\n }\n </li>\n }\n <li>\n <a translate=\"Logout\" data-icon=\"sign-out\" (click)=\"logout()\"></a>\n </li>\n </ul>\n </kendo-popup>\n }\n\n <language-selector [(visible)]=\"languageSelectorVisible\"\n ></language-selector>\n</div>\n", styles: [".top-bar-dropdown{right:-24px;top:42px}.top-bar-profile{cursor:pointer}\n"] }]
|
|
1994
2120
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: AccountService }, { type: AppSettings }], propDecorators: { accountMenu: [{
|
|
@@ -2004,15 +2130,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2004
2130
|
}] } });
|
|
2005
2131
|
|
|
2006
2132
|
class LanguageSelectorModule {
|
|
2007
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2008
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LanguageSelectorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2134
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: LanguageSelectorModule, declarations: [LanguageSelectorComponent], imports: [CommonModule,
|
|
2009
2135
|
WindowModule,
|
|
2010
2136
|
TranslateModule], exports: [LanguageSelectorComponent] }); }
|
|
2011
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2137
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LanguageSelectorModule, imports: [CommonModule,
|
|
2012
2138
|
WindowModule,
|
|
2013
2139
|
TranslateModule] }); }
|
|
2014
2140
|
}
|
|
2015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LanguageSelectorModule, decorators: [{
|
|
2016
2142
|
type: NgModule,
|
|
2017
2143
|
args: [{
|
|
2018
2144
|
declarations: [
|
|
@@ -2030,19 +2156,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2030
2156
|
}] });
|
|
2031
2157
|
|
|
2032
2158
|
class AccountMenuModule {
|
|
2033
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2034
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2159
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AccountMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2160
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: AccountMenuModule, declarations: [AccountMenuComponent], imports: [CommonModule,
|
|
2035
2161
|
PopupModule,
|
|
2036
2162
|
TranslateModule,
|
|
2037
2163
|
RouterModule,
|
|
2038
2164
|
LanguageSelectorModule], exports: [AccountMenuComponent] }); }
|
|
2039
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2165
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AccountMenuModule, imports: [CommonModule,
|
|
2040
2166
|
PopupModule,
|
|
2041
2167
|
TranslateModule,
|
|
2042
2168
|
RouterModule,
|
|
2043
2169
|
LanguageSelectorModule] }); }
|
|
2044
2170
|
}
|
|
2045
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AccountMenuModule, decorators: [{
|
|
2046
2172
|
type: NgModule,
|
|
2047
2173
|
args: [{
|
|
2048
2174
|
declarations: [
|
|
@@ -2061,35 +2187,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2061
2187
|
}]
|
|
2062
2188
|
}] });
|
|
2063
2189
|
|
|
2064
|
-
const resetPasswordCanceledErrorCode = 'AADB2C90091';
|
|
2065
2190
|
class AzureLoginCallbackComponent {
|
|
2066
2191
|
constructor() {
|
|
2067
2192
|
this.msalBroadcastService = inject(MsalBroadcastService);
|
|
2068
2193
|
this.router = inject(Router);
|
|
2069
|
-
this.settingsService = inject(SettingsService);
|
|
2070
2194
|
this.authService = inject(MsalService);
|
|
2195
|
+
this.resolver = inject(AuthProviderResolver);
|
|
2071
2196
|
}
|
|
2072
2197
|
ngOnInit() {
|
|
2073
|
-
this.
|
|
2074
|
-
|
|
2075
|
-
this.settingsService.setToken(result.idToken);
|
|
2076
|
-
this.authService.instance.setActiveAccount(result.account);
|
|
2077
|
-
}
|
|
2078
|
-
this.router.navigate(['home']);
|
|
2079
|
-
}, (error) => {
|
|
2080
|
-
if (error.errorMessage.includes(resetPasswordCanceledErrorCode)) {
|
|
2198
|
+
this.resolver.getProvider().pipe(take$1(1)).subscribe({
|
|
2199
|
+
next: () => {
|
|
2081
2200
|
this.router.navigate(['home']);
|
|
2082
|
-
}
|
|
2201
|
+
},
|
|
2202
|
+
error: () => {
|
|
2203
|
+
this.router.navigate(['home']);
|
|
2204
|
+
},
|
|
2083
2205
|
});
|
|
2084
2206
|
this.msalBroadcastService.msalSubject$.pipe(filter(({ eventType }) => eventType === EventType.ACQUIRE_TOKEN_FAILURE)).subscribe(() => this.authService.logoutRedirect());
|
|
2085
2207
|
}
|
|
2086
2208
|
logout() {
|
|
2087
2209
|
this.authService.logoutRedirect();
|
|
2088
2210
|
}
|
|
2089
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2090
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2211
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AzureLoginCallbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2212
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: AzureLoginCallbackComponent, isStandalone: true, selector: "lib-azure-login", ngImport: i0, template: '', isInline: true }); }
|
|
2091
2213
|
}
|
|
2092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AzureLoginCallbackComponent, decorators: [{
|
|
2093
2215
|
type: Component,
|
|
2094
2216
|
args: [{
|
|
2095
2217
|
selector: 'lib-azure-login',
|
|
@@ -2097,14 +2219,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2097
2219
|
}]
|
|
2098
2220
|
}] });
|
|
2099
2221
|
|
|
2222
|
+
const defaultAzureB2CRedirectPath = '/azure/login/callback';
|
|
2223
|
+
const getAzureB2CRedirectUri = (config) => resolveConfiguredRedirectUri(config) || `${window.location.origin}${defaultAzureB2CRedirectPath}`;
|
|
2224
|
+
const isAzureB2CRedirect = (config) => {
|
|
2225
|
+
const expected = new URL(getAzureB2CRedirectUri(config), window.location.origin);
|
|
2226
|
+
return window.location.origin === expected.origin
|
|
2227
|
+
&& normalizePath(window.location.pathname) === normalizePath(expected.pathname);
|
|
2228
|
+
};
|
|
2229
|
+
const azureB2CRedirectBridge = {
|
|
2230
|
+
load: async () => {
|
|
2231
|
+
const { broadcastResponseToMainFrame } = await import('@azure/msal-browser/redirect-bridge');
|
|
2232
|
+
return broadcastResponseToMainFrame;
|
|
2233
|
+
},
|
|
2234
|
+
};
|
|
2235
|
+
const handleAzureB2CRedirectBridge = async (config) => {
|
|
2236
|
+
if (!isAzureB2CRedirect(config)) {
|
|
2237
|
+
return false;
|
|
2238
|
+
}
|
|
2239
|
+
const broadcastResponseToMainFrame = await azureB2CRedirectBridge.load();
|
|
2240
|
+
await broadcastResponseToMainFrame();
|
|
2241
|
+
return true;
|
|
2242
|
+
};
|
|
2243
|
+
const resolveConfiguredRedirectUri = (config) => {
|
|
2244
|
+
if (typeof config === 'string') {
|
|
2245
|
+
return config;
|
|
2246
|
+
}
|
|
2247
|
+
if (!config) {
|
|
2248
|
+
return undefined;
|
|
2249
|
+
}
|
|
2250
|
+
const value = config;
|
|
2251
|
+
return value.appSettings?.azureB2C?.redirectUri
|
|
2252
|
+
?? value.azureB2C?.redirectUri
|
|
2253
|
+
?? value.redirectUri;
|
|
2254
|
+
};
|
|
2255
|
+
const normalizePath = (path) => {
|
|
2256
|
+
let normalized = path;
|
|
2257
|
+
while (normalized.endsWith('/')) {
|
|
2258
|
+
normalized = normalized.slice(0, -1);
|
|
2259
|
+
}
|
|
2260
|
+
return normalized || '/';
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2100
2263
|
const MSALInstanceFactory = (config) => {
|
|
2101
|
-
const defaultRedirectUri = `${window.location.origin}/azure/login/callback`;
|
|
2102
2264
|
const msalConfig = {
|
|
2103
2265
|
auth: {
|
|
2104
2266
|
clientId: config.appSettings.azureB2C.clientId,
|
|
2105
2267
|
authority: config.appSettings.azureB2C.authority,
|
|
2106
2268
|
knownAuthorities: config.appSettings.azureB2C.knownAuthorities,
|
|
2107
|
-
redirectUri: config
|
|
2269
|
+
redirectUri: getAzureB2CRedirectUri(config),
|
|
2108
2270
|
postLogoutRedirectUri: config.appSettings.azureB2C.logoutRedirectUri || window.location.origin,
|
|
2109
2271
|
},
|
|
2110
2272
|
cache: {
|
|
@@ -2160,10 +2322,10 @@ class PermissionsService {
|
|
|
2160
2322
|
return permissions;
|
|
2161
2323
|
}));
|
|
2162
2324
|
}
|
|
2163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2164
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2325
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PermissionsService, deps: [{ token: HttpService }, { token: AccountService }, { token: SignalRService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2326
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PermissionsService }); }
|
|
2165
2327
|
}
|
|
2166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PermissionsService, decorators: [{
|
|
2167
2329
|
type: Injectable
|
|
2168
2330
|
}], ctorParameters: () => [{ type: HttpService }, { type: AccountService }, { type: SignalRService }] });
|
|
2169
2331
|
|
|
@@ -2215,10 +2377,10 @@ class RequirePermissionDirective {
|
|
|
2215
2377
|
}
|
|
2216
2378
|
return null;
|
|
2217
2379
|
}
|
|
2218
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2219
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2380
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: RequirePermissionDirective, deps: [{ token: i0.ElementRef }, { token: i1$2.ActivatedRoute }, { token: PermissionsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2381
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: RequirePermissionDirective, isStandalone: false, selector: "[requirePermission]", inputs: { permissionType: "permissionType", permissionCategory: "permissionCategory" }, ngImport: i0 }); }
|
|
2220
2382
|
}
|
|
2221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: RequirePermissionDirective, decorators: [{
|
|
2222
2384
|
type: Directive,
|
|
2223
2385
|
args: [{
|
|
2224
2386
|
selector: '[requirePermission]',
|
|
@@ -2231,11 +2393,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2231
2393
|
}] } });
|
|
2232
2394
|
|
|
2233
2395
|
class RequirePermissionModule {
|
|
2234
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2235
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2236
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2396
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: RequirePermissionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2397
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: RequirePermissionModule, declarations: [RequirePermissionDirective], exports: [RequirePermissionDirective] }); }
|
|
2398
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: RequirePermissionModule }); }
|
|
2237
2399
|
}
|
|
2238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: RequirePermissionModule, decorators: [{
|
|
2239
2401
|
type: NgModule,
|
|
2240
2402
|
args: [{
|
|
2241
2403
|
declarations: [RequirePermissionDirective],
|
|
@@ -2621,10 +2783,10 @@ class ActivityFilterService {
|
|
|
2621
2783
|
this.currentFilter.customFilters.push(filter);
|
|
2622
2784
|
}
|
|
2623
2785
|
}
|
|
2624
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2625
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2786
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterService, deps: [{ token: i1$2.ActivatedRoute }, { token: i1$2.Router }, { token: dateFilterParameter }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2787
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterService }); }
|
|
2626
2788
|
}
|
|
2627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterService, decorators: [{
|
|
2628
2790
|
type: Injectable
|
|
2629
2791
|
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: undefined, decorators: [{
|
|
2630
2792
|
type: Inject,
|
|
@@ -2672,12 +2834,12 @@ class CurrentTimezoneComponent {
|
|
|
2672
2834
|
const timeZone = momentModule.tz.guess();
|
|
2673
2835
|
this.timeZoneAndOffset = timeZone + ' ' + moment().format('Z');
|
|
2674
2836
|
}
|
|
2675
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2676
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2837
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CurrentTimezoneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2838
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: CurrentTimezoneComponent, isStandalone: false, selector: "current-timezone", ngImport: i0, template: "<div class=\"divide-line\"></div>\n<div class=\"time-zone\">\n {{ 'CurrentTimeZone' | translate }}: {{ timeZoneAndOffset }}\n</div>\n", styles: [""], dependencies: [{ kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
2677
2839
|
}
|
|
2678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CurrentTimezoneComponent, decorators: [{
|
|
2679
2841
|
type: Component,
|
|
2680
|
-
args: [{ selector: 'current-timezone', standalone: false, template: "<div class=\"divide-line\"></div>\n<div class=\"time-zone\">\n {{ 'CurrentTimeZone' | translate }}: {{ timeZoneAndOffset }}\n</div>\n" }]
|
|
2842
|
+
args: [{ selector: 'current-timezone', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<div class=\"divide-line\"></div>\n<div class=\"time-zone\">\n {{ 'CurrentTimeZone' | translate }}: {{ timeZoneAndOffset }}\n</div>\n" }]
|
|
2681
2843
|
}] });
|
|
2682
2844
|
|
|
2683
2845
|
const allKey = 'All';
|
|
@@ -2781,10 +2943,10 @@ class ActivityFilterComponent {
|
|
|
2781
2943
|
}
|
|
2782
2944
|
});
|
|
2783
2945
|
}
|
|
2784
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2785
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2946
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterComponent, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2947
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: ActivityFilterComponent, isStandalone: false, selector: "activity-filter", inputs: { showArchiveSwitcher: "showArchiveSwitcher", showSearhText: "showSearhText", customFilterElements: "customFilterElements", filterService: "filterService", onClearCallback: "onClearCallback" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"header-selection-field activity-filter\">\n <div class=\"filter-row\">\n <div>\n <label for=\"datefrom\" class=\"title-field\">\n <span>{{ 'ActivitiesFilter.DateFrom' | translate }}:</span>\n <div>\n <kendo-datetimepicker\n format=\"dd/MM/yyyy HH:mm\"\n [(value)]=\"filter.dateFrom\"\n ></kendo-datetimepicker>\n </div>\n </label>\n </div>\n <div>\n <label for=\"dateto\" class=\"title-field\">\n <span>{{ 'ActivitiesFilter.DateTo' | translate }}:</span>\n <div>\n <kendo-datetimepicker\n format=\"dd/MM/yyyy HH:mm\"\n [(value)]=\"filter.dateTo\"\n ></kendo-datetimepicker>\n </div>\n </label>\n </div>\n <div>\n <label class=\"title-field\">\n <span class=\"link-button\" (click)=\"setTodayFilter()\">\n {{ 'ActivitiesFilter.FilterToday' | translate }}\n </span>\n </label>\n </div>\n <div class=\"filter-row\">\n @if (showArchiveSwitcher) {\n <div class=\"flag\">\n <div class=\"checkbox\">\n <label>\n <input [(ngModel)]=\"filter.switchToArchive\" type=\"checkbox\" />\n {{ 'ActivitiesFilter.SwitchToArchiveLabel' | translate }}\n </label>\n </div>\n </div>\n }\n @if (showSearhText) {\n <div>\n <label class=\"title-field\">\n <span>{{ 'ActivitiesFilter.SearchLabel' | translate }}:</span>\n </label>\n <input\n type=\"text\"\n k-input\n class=\"input k-input searchtext-input\"\n [(ngModel)]=\"filter.searchText\"\n (keyup.enter)=\"applyFilter()\"\n [disabled]=\"filter.switchToArchive\"\n />\n </div>\n }\n </div>\n </div>\n <div class=\"filter-row\">\n @for (field of customFilterElements; track field) {\n @switch (field.fieldType) {\n @case (FieldTypes.Text) {\n <div>\n <label class=\"title-field\">\n <span>{{ field.title | translate }}:</span>\n <div>\n <input\n type=\"text\"\n class=\"input k-input\"\n [(ngModel)]=\"field.filter.value\"\n [placeholder]=\"field.placeholder | translate\"\n />\n </div>\n </label>\n </div>\n }\n @case (FieldTypes.Dropdown) {\n <div>\n <label class=\"title-field\">\n <span>{{ field.title | translate }}:</span>\n <div>\n <kendo-dropdownlist\n [data]=\"field.data\"\n textField=\"name\"\n [valueField]=\"field.valueField\"\n [defaultItem]=\"defaultNamedModel\"\n [(ngModel)]=\"field.filter.value\"\n [valuePrimitive]=\"true\"\n (valueChange)=\"fieldChange($event, field)\"\n ></kendo-dropdownlist>\n </div>\n </label>\n </div>\n }\n @case (FieldTypes.Checkbox) {\n <div class=\"flag\">\n <div class=\"checkbox\">\n <label>\n <input [(ngModel)]=\"field.filter.value\" type=\"checkbox\" />\n {{ field.title | translate }}\n </label>\n </div>\n </div>\n }\n @case (FieldTypes.Multiselect) {\n <div>\n <label class=\"title-field\">\n <span>{{ field.title | translate }}:</span>\n <div>\n <kendo-multiselect\n kendoMultiSelectSummaryTag\n [autoClose]=\"false\"\n [data]=\"field.data\"\n [(ngModel)]=\"field.filter.values\"\n textField=\"name\"\n [valueField]=\"field.valueField\"\n [valuePrimitive]=\"true\"\n [placeholder]=\"field.placeholder | translate\"\n (valueChange)=\"fieldChange($event, field)\"\n ></kendo-multiselect>\n </div>\n </label>\n </div>\n }\n }\n }\n <ng-content></ng-content>\n </div>\n <div class=\"row\">\n <div class=\"col-md-12\">\n <button class=\"btn btn-inverse\" (click)=\"applyFilter()\">\n {{ 'Buttons.Apply' | translate }}\n </button>\n <button class=\"btn btn-inverse\" (click)=\"clearFilter()\">\n {{ 'Buttons.Clear' | translate }}\n </button>\n </div>\n </div>\n</div>\n<current-timezone></current-timezone>\n", styles: ["::ng-deep .filter-row{display:flex;flex-flow:row wrap;margin-bottom:20px}::ng-deep .filter-row>div{margin:0 10px 30px 5px;min-width:100px}::ng-deep .filter-row .title-field{margin:0;width:100%}::ng-deep .filter-row .flag{margin-top:10px!important}\n"], dependencies: [{ kind: "directive", type: i1.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: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$3.DateTimePickerComponent, selector: "kendo-datetimepicker", inputs: ["focusableId", "weekDaysFormat", "showOtherMonthDays", "value", "format", "twoDigitYearMax", "tabindex", "disabledDates", "popupSettings", "adaptiveTitle", "adaptiveSubtitle", "disabled", "readonly", "readOnlyInput", "cancelButton", "formatPlaceholder", "placeholder", "steps", "focusedDate", "calendarType", "animateCalendarNavigation", "weekNumber", "min", "max", "rangeValidation", "disabledDatesValidation", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "clearButton", "autoFill", "adaptiveMode", "inputAttributes", "defaultTab", "size", "rounded", "fillMode", "headerTemplate", "footerTemplate", "footer"], outputs: ["valueChange", "open", "close", "focus", "blur", "escape"], exportAs: ["kendo-datetimepicker"] }, { kind: "component", type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "component", type: i4.MultiSelectComponent, selector: "kendo-multiselect", inputs: ["showStickyHeader", "focusableId", "autoClose", "loading", "data", "value", "valueField", "textField", "tabindex", "tabIndex", "size", "rounded", "fillMode", "placeholder", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "disabled", "itemDisabled", "checkboxes", "readonly", "filterable", "virtual", "popupSettings", "listHeight", "valuePrimitive", "clearButton", "tagMapper", "allowCustom", "valueNormalizer", "inputAttributes"], outputs: ["filterChange", "valueChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "removeTag"], exportAs: ["kendoMultiSelect"] }, { kind: "directive", type: i4.SummaryTagDirective, selector: "[kendoMultiSelectSummaryTag]", inputs: ["kendoMultiSelectSummaryTag"] }, { kind: "component", type: CurrentTimezoneComponent, selector: "current-timezone" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
|
2786
2948
|
}
|
|
2787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterComponent, decorators: [{
|
|
2788
2950
|
type: Component,
|
|
2789
2951
|
args: [{ selector: 'activity-filter', standalone: false, template: "<div class=\"header-selection-field activity-filter\">\n <div class=\"filter-row\">\n <div>\n <label for=\"datefrom\" class=\"title-field\">\n <span>{{ 'ActivitiesFilter.DateFrom' | translate }}:</span>\n <div>\n <kendo-datetimepicker\n format=\"dd/MM/yyyy HH:mm\"\n [(value)]=\"filter.dateFrom\"\n ></kendo-datetimepicker>\n </div>\n </label>\n </div>\n <div>\n <label for=\"dateto\" class=\"title-field\">\n <span>{{ 'ActivitiesFilter.DateTo' | translate }}:</span>\n <div>\n <kendo-datetimepicker\n format=\"dd/MM/yyyy HH:mm\"\n [(value)]=\"filter.dateTo\"\n ></kendo-datetimepicker>\n </div>\n </label>\n </div>\n <div>\n <label class=\"title-field\">\n <span class=\"link-button\" (click)=\"setTodayFilter()\">\n {{ 'ActivitiesFilter.FilterToday' | translate }}\n </span>\n </label>\n </div>\n <div class=\"filter-row\">\n @if (showArchiveSwitcher) {\n <div class=\"flag\">\n <div class=\"checkbox\">\n <label>\n <input [(ngModel)]=\"filter.switchToArchive\" type=\"checkbox\" />\n {{ 'ActivitiesFilter.SwitchToArchiveLabel' | translate }}\n </label>\n </div>\n </div>\n }\n @if (showSearhText) {\n <div>\n <label class=\"title-field\">\n <span>{{ 'ActivitiesFilter.SearchLabel' | translate }}:</span>\n </label>\n <input\n type=\"text\"\n k-input\n class=\"input k-input searchtext-input\"\n [(ngModel)]=\"filter.searchText\"\n (keyup.enter)=\"applyFilter()\"\n [disabled]=\"filter.switchToArchive\"\n />\n </div>\n }\n </div>\n </div>\n <div class=\"filter-row\">\n @for (field of customFilterElements; track field) {\n @switch (field.fieldType) {\n @case (FieldTypes.Text) {\n <div>\n <label class=\"title-field\">\n <span>{{ field.title | translate }}:</span>\n <div>\n <input\n type=\"text\"\n class=\"input k-input\"\n [(ngModel)]=\"field.filter.value\"\n [placeholder]=\"field.placeholder | translate\"\n />\n </div>\n </label>\n </div>\n }\n @case (FieldTypes.Dropdown) {\n <div>\n <label class=\"title-field\">\n <span>{{ field.title | translate }}:</span>\n <div>\n <kendo-dropdownlist\n [data]=\"field.data\"\n textField=\"name\"\n [valueField]=\"field.valueField\"\n [defaultItem]=\"defaultNamedModel\"\n [(ngModel)]=\"field.filter.value\"\n [valuePrimitive]=\"true\"\n (valueChange)=\"fieldChange($event, field)\"\n ></kendo-dropdownlist>\n </div>\n </label>\n </div>\n }\n @case (FieldTypes.Checkbox) {\n <div class=\"flag\">\n <div class=\"checkbox\">\n <label>\n <input [(ngModel)]=\"field.filter.value\" type=\"checkbox\" />\n {{ field.title | translate }}\n </label>\n </div>\n </div>\n }\n @case (FieldTypes.Multiselect) {\n <div>\n <label class=\"title-field\">\n <span>{{ field.title | translate }}:</span>\n <div>\n <kendo-multiselect\n kendoMultiSelectSummaryTag\n [autoClose]=\"false\"\n [data]=\"field.data\"\n [(ngModel)]=\"field.filter.values\"\n textField=\"name\"\n [valueField]=\"field.valueField\"\n [valuePrimitive]=\"true\"\n [placeholder]=\"field.placeholder | translate\"\n (valueChange)=\"fieldChange($event, field)\"\n ></kendo-multiselect>\n </div>\n </label>\n </div>\n }\n }\n }\n <ng-content></ng-content>\n </div>\n <div class=\"row\">\n <div class=\"col-md-12\">\n <button class=\"btn btn-inverse\" (click)=\"applyFilter()\">\n {{ 'Buttons.Apply' | translate }}\n </button>\n <button class=\"btn btn-inverse\" (click)=\"clearFilter()\">\n {{ 'Buttons.Clear' | translate }}\n </button>\n </div>\n </div>\n</div>\n<current-timezone></current-timezone>\n", styles: ["::ng-deep .filter-row{display:flex;flex-flow:row wrap;margin-bottom:20px}::ng-deep .filter-row>div{margin:0 10px 30px 5px;min-width:100px}::ng-deep .filter-row .title-field{margin:0;width:100%}::ng-deep .filter-row .flag{margin-top:10px!important}\n"] }]
|
|
2790
2952
|
}], ctorParameters: () => [{ type: i2.TranslateService }], propDecorators: { showArchiveSwitcher: [{
|
|
@@ -2800,11 +2962,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2800
2962
|
}] } });
|
|
2801
2963
|
|
|
2802
2964
|
class CurrentTimeZoneModule {
|
|
2803
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2804
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2805
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2965
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CurrentTimeZoneModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2966
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: CurrentTimeZoneModule, declarations: [CurrentTimezoneComponent], imports: [TranslateModule], exports: [CurrentTimezoneComponent] }); }
|
|
2967
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CurrentTimeZoneModule, imports: [TranslateModule] }); }
|
|
2806
2968
|
}
|
|
2807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CurrentTimeZoneModule, decorators: [{
|
|
2808
2970
|
type: NgModule,
|
|
2809
2971
|
args: [{
|
|
2810
2972
|
declarations: [CurrentTimezoneComponent],
|
|
@@ -2825,15 +2987,15 @@ class ActivityFilterModule {
|
|
|
2825
2987
|
],
|
|
2826
2988
|
};
|
|
2827
2989
|
}
|
|
2828
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2829
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2991
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterModule, declarations: [ActivityFilterComponent], imports: [CommonModule,
|
|
2830
2992
|
ReactiveFormsModule,
|
|
2831
2993
|
FormsModule,
|
|
2832
2994
|
TranslateModule,
|
|
2833
2995
|
DateInputsModule,
|
|
2834
2996
|
DropDownsModule,
|
|
2835
2997
|
CurrentTimeZoneModule], exports: [ActivityFilterComponent] }); }
|
|
2836
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2998
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterModule, imports: [CommonModule,
|
|
2837
2999
|
ReactiveFormsModule,
|
|
2838
3000
|
FormsModule,
|
|
2839
3001
|
TranslateModule,
|
|
@@ -2841,7 +3003,7 @@ class ActivityFilterModule {
|
|
|
2841
3003
|
DropDownsModule,
|
|
2842
3004
|
CurrentTimeZoneModule] }); }
|
|
2843
3005
|
}
|
|
2844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ActivityFilterModule, decorators: [{
|
|
2845
3007
|
type: NgModule,
|
|
2846
3008
|
args: [{
|
|
2847
3009
|
declarations: [ActivityFilterComponent],
|
|
@@ -2879,10 +3041,10 @@ class ConfirmDialogComponent {
|
|
|
2879
3041
|
appendTo: this.viewContainerRef,
|
|
2880
3042
|
});
|
|
2881
3043
|
}
|
|
2882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2883
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3044
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i2$3.DialogService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3045
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: ConfirmDialogComponent, isStandalone: false, selector: "confirm-dialog", viewQueries: [{ propertyName: "dialogActions", first: true, predicate: ["dialogActions"], descendants: true, static: true }], ngImport: i0, template: "<ng-template #dialogActions>\n <button kendoButton (click)=\"cancel()\" translate=\"Cancel\"></button>\n <button kendoButton (click)=\"confirm()\" translate=\"Confirm\"></button>\n</ng-template>\n<div kendoDialogContainer></div>\n", dependencies: [{ kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "directive", type: i2$3.DialogContainerDirective, selector: "[kendoDialogContainer]" }] }); }
|
|
2884
3046
|
}
|
|
2885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
|
|
2886
3048
|
type: Component,
|
|
2887
3049
|
args: [{ selector: 'confirm-dialog', standalone: false, template: "<ng-template #dialogActions>\n <button kendoButton (click)=\"cancel()\" translate=\"Cancel\"></button>\n <button kendoButton (click)=\"confirm()\" translate=\"Confirm\"></button>\n</ng-template>\n<div kendoDialogContainer></div>\n" }]
|
|
2888
3050
|
}], ctorParameters: () => [{ type: i2$3.DialogService }, { type: i0.ViewContainerRef }], propDecorators: { dialogActions: [{
|
|
@@ -2891,11 +3053,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2891
3053
|
}] } });
|
|
2892
3054
|
|
|
2893
3055
|
class ConfirmDialogModule {
|
|
2894
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2895
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2896
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3056
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3057
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogModule, declarations: [ConfirmDialogComponent], imports: [TranslateModule, DialogModule], exports: [ConfirmDialogComponent] }); }
|
|
3058
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogModule, imports: [TranslateModule, DialogModule] }); }
|
|
2897
3059
|
}
|
|
2898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogModule, decorators: [{
|
|
2899
3061
|
type: NgModule,
|
|
2900
3062
|
args: [{
|
|
2901
3063
|
declarations: [ConfirmDialogComponent],
|
|
@@ -2909,12 +3071,12 @@ class EntityEditButtonsBarComponent {
|
|
|
2909
3071
|
this.save = new EventEmitter();
|
|
2910
3072
|
this.permissionTypes = [PermissionTypes.Create];
|
|
2911
3073
|
}
|
|
2912
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2913
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3074
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditButtonsBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3075
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: EntityEditButtonsBarComponent, isStandalone: false, selector: "entity-edit-buttons-bar", inputs: { valid: "valid", defaultCreateButtonText: "defaultCreateButtonText" }, outputs: { save: "save" }, ngImport: i0, template: "<div class=\"form-group buttons-panel\">\n <div class=\"col-md-4 left-buttons\">\n <a\n [routerLink]=\"['../new']\"\n preserveFragment\n class=\"btn btn-succes\"\n translate=\"{{ defaultCreateButtonText ?? 'CreateNew' }}\"\n requirePermission\n [permissionType]=\"permissionTypes\"\n ></a>\n <div class=\"custom-buttons-wrapper\">\n <ng-content select=\"[custom-buttons]\"></ng-content>\n </div>\n </div>\n <div class=\"col-md-8 text-right\">\n <a\n [routerLink]=\"['../']\"\n preserveFragment\n class=\"btn btn-inverse\"\n translate=\"Cancel\"\n ></a>\n <button\n type=\"submit\"\n class=\"btn btn-success\"\n (click)=\"save.emit()\"\n translate=\"Save\"\n [disabled]=\"!valid\"\n requirePermission\n [permissionType]=\"['Edit', 'Create', 'Set']\"\n ></button>\n </div>\n</div>\n", styles: [".left-buttons{display:flex;gap:5px}.custom-buttons-wrapper{display:flex;gap:5px;position:relative;z-index:10}\n"], dependencies: [{ kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: RequirePermissionDirective, selector: "[requirePermission]", inputs: ["permissionType", "permissionCategory"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
2914
3076
|
}
|
|
2915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditButtonsBarComponent, decorators: [{
|
|
2916
3078
|
type: Component,
|
|
2917
|
-
args: [{ selector: 'entity-edit-buttons-bar', standalone: false, template: "<div class=\"form-group buttons-panel\">\n <div class=\"col-md-4 left-buttons\">\n <a\n [routerLink]=\"['../new']\"\n preserveFragment\n class=\"btn btn-succes\"\n translate=\"{{ defaultCreateButtonText ?? 'CreateNew' }}\"\n requirePermission\n [permissionType]=\"permissionTypes\"\n ></a>\n <div class=\"custom-buttons-wrapper\">\n <ng-content select=\"[custom-buttons]\"></ng-content>\n </div>\n </div>\n <div class=\"col-md-8 text-right\">\n <a\n [routerLink]=\"['../']\"\n preserveFragment\n class=\"btn btn-inverse\"\n translate=\"Cancel\"\n ></a>\n <button\n type=\"submit\"\n class=\"btn btn-success\"\n (click)=\"save.emit()\"\n translate=\"Save\"\n [disabled]=\"!valid\"\n requirePermission\n [permissionType]=\"['Edit', 'Create', 'Set']\"\n ></button>\n </div>\n</div>\n", styles: [".left-buttons{display:flex;gap:5px}.custom-buttons-wrapper{display:flex;gap:5px;position:relative;z-index:10}\n"] }]
|
|
3079
|
+
args: [{ selector: 'entity-edit-buttons-bar', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<div class=\"form-group buttons-panel\">\n <div class=\"col-md-4 left-buttons\">\n <a\n [routerLink]=\"['../new']\"\n preserveFragment\n class=\"btn btn-succes\"\n translate=\"{{ defaultCreateButtonText ?? 'CreateNew' }}\"\n requirePermission\n [permissionType]=\"permissionTypes\"\n ></a>\n <div class=\"custom-buttons-wrapper\">\n <ng-content select=\"[custom-buttons]\"></ng-content>\n </div>\n </div>\n <div class=\"col-md-8 text-right\">\n <a\n [routerLink]=\"['../']\"\n preserveFragment\n class=\"btn btn-inverse\"\n translate=\"Cancel\"\n ></a>\n <button\n type=\"submit\"\n class=\"btn btn-success\"\n (click)=\"save.emit()\"\n translate=\"Save\"\n [disabled]=\"!valid\"\n requirePermission\n [permissionType]=\"['Edit', 'Create', 'Set']\"\n ></button>\n </div>\n</div>\n", styles: [".left-buttons{display:flex;gap:5px}.custom-buttons-wrapper{display:flex;gap:5px;position:relative;z-index:10}\n"] }]
|
|
2918
3080
|
}], propDecorators: { valid: [{
|
|
2919
3081
|
type: Input
|
|
2920
3082
|
}], defaultCreateButtonText: [{
|
|
@@ -2924,11 +3086,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2924
3086
|
}] } });
|
|
2925
3087
|
|
|
2926
3088
|
class EntityEditButtonsBarModule {
|
|
2927
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2928
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2929
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3089
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditButtonsBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3090
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: EntityEditButtonsBarModule, declarations: [EntityEditButtonsBarComponent], imports: [RouterModule, RequirePermissionModule, TranslateModule], exports: [EntityEditButtonsBarComponent] }); }
|
|
3091
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditButtonsBarModule, imports: [RouterModule, RequirePermissionModule, TranslateModule] }); }
|
|
2930
3092
|
}
|
|
2931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditButtonsBarModule, decorators: [{
|
|
2932
3094
|
type: NgModule,
|
|
2933
3095
|
args: [{
|
|
2934
3096
|
declarations: [EntityEditButtonsBarComponent],
|
|
@@ -2946,17 +3108,19 @@ class EntityEditFormComponent {
|
|
|
2946
3108
|
this.createButtonText = createButtonTextFromRoute;
|
|
2947
3109
|
}
|
|
2948
3110
|
ngOnChanges() {
|
|
2949
|
-
if (this.entityId) {
|
|
2950
|
-
this.loadEntity(this.entityId);
|
|
3111
|
+
if (this.entityId !== undefined) {
|
|
3112
|
+
this.loadEntity(this.entityId ?? undefined);
|
|
2951
3113
|
}
|
|
2952
3114
|
}
|
|
2953
3115
|
ngOnDestroy() {
|
|
2954
3116
|
this.routeService?.unsubscribe();
|
|
2955
3117
|
}
|
|
2956
3118
|
ngOnInit() {
|
|
2957
|
-
if (
|
|
3119
|
+
if (this.entityId === undefined) {
|
|
2958
3120
|
this.routeService = this.route.params.subscribe((params) => {
|
|
2959
|
-
this.
|
|
3121
|
+
if (this.entityId === undefined) {
|
|
3122
|
+
this.loadEntity(params.id);
|
|
3123
|
+
}
|
|
2960
3124
|
});
|
|
2961
3125
|
}
|
|
2962
3126
|
}
|
|
@@ -2998,10 +3162,10 @@ class EntityEditFormComponent {
|
|
|
2998
3162
|
},
|
|
2999
3163
|
});
|
|
3000
3164
|
}
|
|
3001
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3002
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditFormComponent, deps: [{ token: i1$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3166
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: EntityEditFormComponent, isStandalone: false, selector: "entity-edit-form", inputs: { title: "title", entityId: "entityId", adapter: "adapter" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"col-md-8\">\n <header class=\"header-page-bg\">\n <h4>{{ title | translate }}</h4>\n </header>\n <div class=\"panel editor-area hero-unit\">\n @if (formGroup | async; as form) {\n <form\n class=\"form-horizontal\"\n [formGroup]=\"form\"\n novalidate\n autocomplete=\"off\"\n >\n <div class=\"col-md-3\"></div>\n <div class=\"col-md-9\">\n <app-general-errors\n [form]=\"form\"\n [errors]=\"form.generalErrors\"\n ></app-general-errors>\n </div>\n <ng-content></ng-content>\n <entity-edit-buttons-bar\n (save)=\"save()\"\n [valid]=\"form.valid && form.dirty && !saveInProgress\"\n [defaultCreateButtonText]=\"createButtonText\"\n >\n </entity-edit-buttons-bar>\n </form>\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: GeneralErrorsComponent, selector: "app-general-errors", inputs: ["form", "errors"] }, { kind: "component", type: EntityEditButtonsBarComponent, selector: "entity-edit-buttons-bar", inputs: ["valid", "defaultCreateButtonText"], outputs: ["save"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
|
3003
3167
|
}
|
|
3004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditFormComponent, decorators: [{
|
|
3005
3169
|
type: Component,
|
|
3006
3170
|
args: [{ selector: 'entity-edit-form', standalone: false, template: "<div class=\"col-md-8\">\n <header class=\"header-page-bg\">\n <h4>{{ title | translate }}</h4>\n </header>\n <div class=\"panel editor-area hero-unit\">\n @if (formGroup | async; as form) {\n <form\n class=\"form-horizontal\"\n [formGroup]=\"form\"\n novalidate\n autocomplete=\"off\"\n >\n <div class=\"col-md-3\"></div>\n <div class=\"col-md-9\">\n <app-general-errors\n [form]=\"form\"\n [errors]=\"form.generalErrors\"\n ></app-general-errors>\n </div>\n <ng-content></ng-content>\n <entity-edit-buttons-bar\n (save)=\"save()\"\n [valid]=\"form.valid && form.dirty && !saveInProgress\"\n [defaultCreateButtonText]=\"createButtonText\"\n >\n </entity-edit-buttons-bar>\n </form>\n }\n </div>\n</div>\n" }]
|
|
3007
3171
|
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }], propDecorators: { title: [{
|
|
@@ -3013,21 +3177,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3013
3177
|
}] } });
|
|
3014
3178
|
|
|
3015
3179
|
class EntityEditFormModule {
|
|
3016
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3017
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3181
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: EntityEditFormModule, declarations: [EntityEditFormComponent], imports: [CommonModule,
|
|
3018
3182
|
TranslateModule,
|
|
3019
3183
|
GeneralErrorsModule,
|
|
3020
3184
|
EntityEditButtonsBarModule,
|
|
3021
3185
|
FormsModule,
|
|
3022
3186
|
ReactiveFormsModule], exports: [EntityEditFormComponent] }); }
|
|
3023
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3187
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditFormModule, imports: [CommonModule,
|
|
3024
3188
|
TranslateModule,
|
|
3025
3189
|
GeneralErrorsModule,
|
|
3026
3190
|
EntityEditButtonsBarModule,
|
|
3027
3191
|
FormsModule,
|
|
3028
3192
|
ReactiveFormsModule] }); }
|
|
3029
3193
|
}
|
|
3030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityEditFormModule, decorators: [{
|
|
3031
3195
|
type: NgModule,
|
|
3032
3196
|
args: [{
|
|
3033
3197
|
declarations: [EntityEditFormComponent],
|
|
@@ -3068,6 +3232,26 @@ class EntityEditComponent {
|
|
|
3068
3232
|
}
|
|
3069
3233
|
}
|
|
3070
3234
|
|
|
3235
|
+
class CreateNewComponent {
|
|
3236
|
+
constructor(route) {
|
|
3237
|
+
this.route = route;
|
|
3238
|
+
this.defaultLabelKey = 'CreateNew';
|
|
3239
|
+
this.permissionTypes = [
|
|
3240
|
+
PermissionTypes.Create,
|
|
3241
|
+
];
|
|
3242
|
+
let labelKeyFromRoute = this.route.snapshot.data?.labelKey;
|
|
3243
|
+
if (labelKeyFromRoute) {
|
|
3244
|
+
this.defaultLabelKey = labelKeyFromRoute;
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CreateNewComponent, deps: [{ token: i1$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3248
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: CreateNewComponent, isStandalone: false, selector: "create-new", ngImport: i0, template: "<div class=\"col-md-8\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel editor-area hero-unit\">\n <div class=\"form-horizontal\">\n <div class=\"form-group buttons-panel\">\n <div class=\"col-md-4\">\n <a\n [routerLink]=\"['new']\"\n preserveFragment\n class=\"btn btn-succes\"\n requirePermission\n translate=\"{{ defaultLabelKey }}\"\n [permissionType]=\"permissionTypes\"\n >\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: RequirePermissionDirective, selector: "[requirePermission]", inputs: ["permissionType", "permissionCategory"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3249
|
+
}
|
|
3250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CreateNewComponent, decorators: [{
|
|
3251
|
+
type: Component,
|
|
3252
|
+
args: [{ selector: 'create-new', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"col-md-8\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel editor-area hero-unit\">\n <div class=\"form-horizontal\">\n <div class=\"form-group buttons-panel\">\n <div class=\"col-md-4\">\n <a\n [routerLink]=\"['new']\"\n preserveFragment\n class=\"btn btn-succes\"\n requirePermission\n translate=\"{{ defaultLabelKey }}\"\n [permissionType]=\"permissionTypes\"\n >\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
3253
|
+
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }] });
|
|
3254
|
+
|
|
3071
3255
|
const SelectValue$1 = 'Select value';
|
|
3072
3256
|
const defaultFieldName = 'name';
|
|
3073
3257
|
const defaultValueField = 'id';
|
|
@@ -3173,12 +3357,12 @@ class FieldDropdownComponent extends FieldComponent {
|
|
|
3173
3357
|
writeSelectedEntityValue(value) {
|
|
3174
3358
|
this.kendoDropDown?.writeValue(value);
|
|
3175
3359
|
}
|
|
3176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3177
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3360
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3361
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: FieldDropdownComponent, isStandalone: false, selector: "field-dropdown", inputs: { service: "service", rebind: "rebind", filter: "filter", sort: "sort", defaultName: "defaultName", selectedItem: "selectedItem", data: "data", textField: "textField", valueField: "valueField" }, outputs: { selectedChange: "selectedChange" }, viewQueries: [{ propertyName: "kendoDropDown", first: true, predicate: ["inputElement"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <label for=\"{{ '_' + fieldName }}\" class=\"col-md-3 control-label\">{{\n labelKey | translate\n }}</label>\n @if (control) {\n <div class=\"col-md-9\">\n <kendo-dropdownlist\n id=\"{{ '_' + fieldName }}\"\n [formControl]=\"control\"\n [data]=\"data$ | async\"\n [textField]=\"textField\"\n [valueField]=\"valueField\"\n [valuePrimitive]=\"true\"\n [defaultItem]=\"defaultItem\"\n (valueChange)=\"onValueChange($event)\"\n #inputElement\n >\n </kendo-dropdownlist>\n @if (control.invalid && control.touched) {\n <div class=\"bg-danger\">\n @if (control.errors['required']) {\n <span>{{\n \"Required\" | translate : { param0: labelKey | translate }\n }}</span>\n }\n @if (control.errors['serverErrorMsg']) {\n <span>{{\n control.errors[\"serverErrorMsg\"]\n }}</span>\n }\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], viewProviders: [
|
|
3178
3362
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
3179
3363
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3180
3364
|
}
|
|
3181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownComponent, decorators: [{
|
|
3182
3366
|
type: Component,
|
|
3183
3367
|
args: [{ selector: 'field-dropdown', viewProviders: [
|
|
3184
3368
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -3264,12 +3448,12 @@ class ObjectDropdownComponent extends FieldComponent {
|
|
|
3264
3448
|
setControlValue(value) {
|
|
3265
3449
|
this.control.setValue(value);
|
|
3266
3450
|
}
|
|
3267
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3268
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3451
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ObjectDropdownComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3452
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: ObjectDropdownComponent, isStandalone: false, selector: "object-dropdown", inputs: { fieldName: "fieldName", labelKey: "labelKey", data: "data", selectedItem: "selectedItem", defaultName: "defaultName", rebind: "rebind" }, outputs: { selectedChange: "selectedChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <label for=\"{{ '_' + fieldName }}\" class=\"col-md-3 control-label\">{{\n labelKey | translate\n }}</label>\n @if (control) {\n <div class=\"col-md-9\">\n <kendo-dropdownlist\n id=\"{{ '_' + fieldName }}\"\n [formControl]=\"control\"\n [data]=\"data$ | async\"\n [textField]=\"'description'\"\n [valueField]=\"'value'\"\n [valuePrimitive]=\"true\"\n [defaultItem]=\"defaultItem\"\n (valueChange)=\"onValueChange($event)\"\n >\n </kendo-dropdownlist>\n @if (control.invalid && control.touched) {\n <div class=\"bg-danger\">\n @if (control.errors['required']) {\n <span>{{\n \"Required\" | translate : { param0: labelKey | translate }\n }}</span>\n }\n @if (control.errors['serverErrorMsg']) {\n <span>{{\n control.errors[\"serverErrorMsg\"]\n }}</span>\n }\n </div>\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "component", type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], viewProviders: [
|
|
3269
3453
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
3270
3454
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3271
3455
|
}
|
|
3272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ObjectDropdownComponent, decorators: [{
|
|
3273
3457
|
type: Component,
|
|
3274
3458
|
args: [{ selector: 'object-dropdown', viewProviders: [
|
|
3275
3459
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
@@ -3308,7 +3492,7 @@ class FieldMultiSelectComponent extends FieldComponent {
|
|
|
3308
3492
|
}
|
|
3309
3493
|
ngOnInit() {
|
|
3310
3494
|
super.ngOnInit();
|
|
3311
|
-
this.data$ = this.reload$.pipe(switchMap(() => this.loadData()), takeUntil(this.destroy$));
|
|
3495
|
+
this.data$ = this.reload$.pipe(switchMap$1(() => this.loadData()), takeUntil(this.destroy$));
|
|
3312
3496
|
}
|
|
3313
3497
|
loadData() {
|
|
3314
3498
|
if (this.data) {
|
|
@@ -3347,15 +3531,15 @@ class FieldMultiSelectComponent extends FieldComponent {
|
|
|
3347
3531
|
getData() {
|
|
3348
3532
|
return this.service.getPage(this.filter ? { filter: this.filter } : {});
|
|
3349
3533
|
}
|
|
3350
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3351
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3534
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldMultiSelectComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3535
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: FieldMultiSelectComponent, isStandalone: false, selector: "field-multiselect", inputs: { service: "service", rebind: "rebind", filter: "filter", textField: "textField", valueField: "valueField", data: "data", singleMode: "singleMode", autoClose: "autoClose" }, outputs: { changed: "changed" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"form-group\">\n <label class=\"col-md-3 control-label\" [for]=\"'_' + fieldName\">{{\n labelKey | translate\n }}</label>\n @if (control) {\n <div class=\"col-md-9\">\n <kendo-multiselect\n [id]=\"'_' + fieldName\"\n [formControl]=\"control\"\n [data]=\"data$ | async\"\n [autoClose]=\"autoClose\"\n [textField]=\"textField\"\n [valueField]=\"valueField\"\n [valuePrimitive]=\"true\"\n (open)=\"onPopupOpen($event)\"\n (valueChange)=\"onValueChange($event)\"\n ></kendo-multiselect>\n @if (control.invalid && control.touched) {\n <div class=\"bg-danger\">\n @if (control.errors['required']) {\n <span>\n {{ \"Required\" | translate : { param0: labelKey | translate } }}\n </span>\n }\n @if (control.errors['serverErrorMsg']) {\n <span>\n {{ control.errors[\"serverErrorMsg\"] }}\n </span>\n }\n </div>\n }\n </div>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i4.MultiSelectComponent, selector: "kendo-multiselect", inputs: ["showStickyHeader", "focusableId", "autoClose", "loading", "data", "value", "valueField", "textField", "tabindex", "tabIndex", "size", "rounded", "fillMode", "placeholder", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "disabled", "itemDisabled", "checkboxes", "readonly", "filterable", "virtual", "popupSettings", "listHeight", "valuePrimitive", "clearButton", "tagMapper", "allowCustom", "valueNormalizer", "inputAttributes"], outputs: ["filterChange", "valueChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "removeTag"], exportAs: ["kendoMultiSelect"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], viewProviders: [
|
|
3352
3536
|
{
|
|
3353
3537
|
provide: ControlContainer,
|
|
3354
3538
|
useExisting: FormGroupDirective,
|
|
3355
3539
|
},
|
|
3356
3540
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3357
3541
|
}
|
|
3358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldMultiSelectComponent, decorators: [{
|
|
3359
3543
|
type: Component,
|
|
3360
3544
|
args: [{ selector: 'field-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [
|
|
3361
3545
|
{
|
|
@@ -3384,17 +3568,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3384
3568
|
}] } });
|
|
3385
3569
|
|
|
3386
3570
|
class FieldMultiselectModule {
|
|
3387
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3388
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3571
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldMultiselectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3572
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldMultiselectModule, declarations: [FieldMultiSelectComponent], imports: [ReactiveFormsModule,
|
|
3389
3573
|
MultiSelectModule,
|
|
3390
3574
|
TranslateModule,
|
|
3391
3575
|
CommonModule], exports: [FieldMultiSelectComponent] }); }
|
|
3392
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3576
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldMultiselectModule, imports: [ReactiveFormsModule,
|
|
3393
3577
|
MultiSelectModule,
|
|
3394
3578
|
TranslateModule,
|
|
3395
3579
|
CommonModule] }); }
|
|
3396
3580
|
}
|
|
3397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldMultiselectModule, decorators: [{
|
|
3398
3582
|
type: NgModule,
|
|
3399
3583
|
args: [{
|
|
3400
3584
|
declarations: [
|
|
@@ -3416,20 +3600,20 @@ class PartnerService extends EntityService {
|
|
|
3416
3600
|
constructor(httpService) {
|
|
3417
3601
|
super(httpService, endpoints.partners);
|
|
3418
3602
|
}
|
|
3419
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3420
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3603
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PartnerService, deps: [{ token: HttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3604
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PartnerService }); }
|
|
3421
3605
|
}
|
|
3422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: PartnerService, decorators: [{
|
|
3423
3607
|
type: Injectable
|
|
3424
3608
|
}], ctorParameters: () => [{ type: HttpService }] });
|
|
3425
3609
|
|
|
3426
3610
|
class ExcelExportButtonComponent {
|
|
3427
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3428
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ExcelExportButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3612
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: ExcelExportButtonComponent, isStandalone: false, selector: "excel-export-button", ngImport: i0, template: "<button type=\"button\" kendoGridExcelCommand>\n <em ngClass=\"fa fa-file-excel-o\"></em>\n {{ 'Buttons.ExcelExport' | translate }}\n</button>\n", styles: [""], dependencies: [{ kind: "component", type: i5.ExcelCommandDirective, selector: "[kendoGridExcelCommand]" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
3429
3613
|
}
|
|
3430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ExcelExportButtonComponent, decorators: [{
|
|
3431
3615
|
type: Component,
|
|
3432
|
-
args: [{ selector: 'excel-export-button', standalone: false, template: "<button type=\"button\" kendoGridExcelCommand>\n <em ngClass=\"fa fa-file-excel-o\"></em>\n {{ 'Buttons.ExcelExport' | translate }}\n</button>\n" }]
|
|
3616
|
+
args: [{ selector: 'excel-export-button', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<button type=\"button\" kendoGridExcelCommand>\n <em ngClass=\"fa fa-file-excel-o\"></em>\n {{ 'Buttons.ExcelExport' | translate }}\n</button>\n" }]
|
|
3433
3617
|
}] });
|
|
3434
3618
|
|
|
3435
3619
|
const nameField = 'name';
|
|
@@ -3628,10 +3812,10 @@ class EntityListComponent {
|
|
|
3628
3812
|
this.onFilterChange();
|
|
3629
3813
|
this.getData();
|
|
3630
3814
|
}
|
|
3631
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3632
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3815
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityListComponent, deps: [{ token: i2.TranslateService }, { token: i1$2.ActivatedRoute }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3816
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: EntityListComponent, isStandalone: false, selector: "entity-list", inputs: { service: "service", filters: "filters", fields: "fields", commands: "commands", rowClass: "rowClass", defaultSort: "defaultSort", mapItemFn: "mapItemFn", pageButtonsCount: "pageButtonsCount" }, outputs: { filterChange: "filterChange" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["confirmDialog"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"row\">\n <div class=\"col-md-4\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel search-panel hero-unit\">\n <div class=\"header-selection-field\">\n <label for=\"searchinput\" class=\"title-field\">{{\n \"Search\" | translate\n }}</label>\n <input\n kendoTextBox\n class=\"quick-filter input input-field\"\n title=\"\"\n id=\"searchinput\"\n type=\"text\"\n appDebounce\n (debounceKeyup)=\"onSearch($event.target.value)\"\n [ngModel]=\"searchTerm\"\n [debounceTime]=\"600\"\n />\n </div>\n <ng-content></ng-content>\n <div class=\"divide-line\"></div>\n\n <kendo-grid\n [data]=\"page | async\"\n [pageSize]=\"gridState.take\"\n [skip]=\"gridState.skip\"\n [sort]=\"gridState.sort\"\n [pageable]=\"true\"\n [sortable]=\"true\"\n [style.maxHeight.px]=\"480\"\n (remove)=\"removeHandler($event)\"\n (dataStateChange)=\"dataStateChange($event)\"\n [loading]=\"loadings > 0\"\n (cellClick)=\"selectItem($event)\"\n culture\n class=\"rows-pointable\"\n kendoGridSelectBy\n [selectedKeys]=\"selected\"\n [rowClass]=\"getRowClass\"\n >\n <ng-template kendoGridToolbarTemplate>\n <excel-export-button></excel-export-button>\n </ng-template>\n <kendo-grid-excel\n [fileName]=\"generateDateBasedExcelFileName()\"\n [fetchData]=\"getAllData\"\n ></kendo-grid-excel>\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @if (!dataItem.suppressDeletion) {\n <button\n kendoGridRemoveCommand\n requirePermission\n permissionType=\"Delete\"\n >\n <em class=\"k-icon glyphicon glyphicon-trash\"></em>\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n @for (field of gridFields; track field) {\n <kendo-grid-column\n field=\"{{ field.name }}\"\n title=\"{{ field.label | translate }}\"\n [sortable]=\"field.sortable !== false\"\n >\n </kendo-grid-column>\n }\n @if (commands.length > 0) {\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @for (command of commands; track command) {\n <button\n (click)=\"command.handler(dataItem)\"\n title=\"{{ command.title | translate }}\"\n class=\"k-button\"\n >\n @if (command.iconClass) {\n <em\n class=\"{{ command.iconClass }}\"\n ></em>\n }\n {{ command.name | translate }}\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n }\n <ng-template kendoGridNoRecordsTemplate>\n {{ \"Messages.NoRecords\" | translate }}\n </ng-template>\n <ng-template kendoPagerTemplate>\n <div class=\"pager\">\n <kendo-grid-spacer></kendo-grid-spacer>\n <kendo-pager-prev-buttons></kendo-pager-prev-buttons>\n <kendo-pager-numeric-buttons\n [buttonCount]=\"pageButtonsCount\"\n ></kendo-pager-numeric-buttons>\n <kendo-pager-next-buttons></kendo-pager-next-buttons>\n <kendo-pager-info></kendo-pager-info>\n </div>\n </ng-template>\n </kendo-grid>\n </div>\n </div>\n <router-outlet\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n ></router-outlet>\n</div>\n<confirm-dialog #confirmDialog></confirm-dialog>\n", styles: [".pager{display:flex;justify-content:center;align-items:center;width:100%}\n"], dependencies: [{ kind: "component", type: ConfirmDialogComponent, selector: "confirm-dialog" }, { kind: "directive", type: i1$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i4$1.PagerInfoComponent, selector: "kendo-datapager-info, kendo-pager-info" }, { kind: "component", type: i4$1.PagerNextButtonsComponent, selector: "kendo-datapager-next-buttons, kendo-pager-next-buttons", inputs: ["size"] }, { kind: "component", type: i4$1.PagerNumericButtonsComponent, selector: "kendo-datapager-numeric-buttons, kendo-pager-numeric-buttons", inputs: ["buttonCount", "size"] }, { kind: "component", type: i4$1.PagerPrevButtonsComponent, selector: "kendo-datapager-prev-buttons, kendo-pager-prev-buttons", inputs: ["size"] }, { kind: "directive", type: i4$1.PagerTemplateDirective, selector: "[kendoDataPagerTemplate], [kendoPagerTemplate]" }, { kind: "component", type: i5.GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "adaptiveMode", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "gridResizable", "rowReorderable", "navigable", "autoSize", "rowClass", "rowSticky", "rowSelected", "isRowSelectable", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "showInactiveTools", "isDetailExpanded", "isGroupExpanded", "dataLayoutMode", "pinnable", "pinnedTopRows", "pinnedBottomRows", "isRowPinnable"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "rowPinChange", "dataStateChange", "gridStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "csvExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: i5.ToolbarTemplateDirective, selector: "[kendoGridToolbarTemplate]", inputs: ["position"] }, { kind: "component", type: i5.GridSpacerComponent, selector: "kendo-grid-spacer", inputs: ["width"] }, { kind: "directive", type: i5.SelectionDirective, selector: "[kendoGridSelectBy]" }, { kind: "directive", type: i5.GridToolbarFocusableDirective, selector: " [kendoGridToolbarFocusable], [kendoGridAddCommand], [kendoGridCancelCommand], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridExcelCommand], [kendoGridPDFCommand] " }, { kind: "component", type: i5.ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterVariant", "filterable", "editable"] }, { kind: "directive", type: i5.FocusableDirective, selector: "[kendoGridFocusable], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridCancelCommand], [kendoGridSelectionCheckbox] ", inputs: ["kendoGridFocusable"] }, { kind: "component", type: i5.CommandColumnComponent, selector: "kendo-grid-command-column" }, { kind: "directive", type: i5.CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "directive", type: i5.NoRecordsTemplateDirective, selector: "[kendoGridNoRecordsTemplate]" }, { kind: "component", type: i5.RemoveCommandDirective, selector: "[kendoGridRemoveCommand]" }, { kind: "component", type: i5.ExcelComponent, selector: "kendo-grid-excel", inputs: ["fileName", "filterable", "creator", "date", "forceProxy", "proxyURL", "fetchData", "paddingCellOptions", "headerPaddingCellOptions", "collapsible"], outputs: ["fileCreated"] }, { kind: "directive", type: DebounceDirective, selector: "[appDebounce]", inputs: ["debounceTime"], outputs: ["debounceKeyup"] }, { kind: "component", type: ExcelExportButtonComponent, selector: "excel-export-button" }, { kind: "directive", type: RequirePermissionDirective, selector: "[requirePermission]", inputs: ["permissionType", "permissionCategory"] }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$1.TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
|
3633
3817
|
}
|
|
3634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityListComponent, decorators: [{
|
|
3635
3819
|
type: Component,
|
|
3636
3820
|
args: [{ selector: 'entity-list', standalone: false, template: "<div class=\"row\">\n <div class=\"col-md-4\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel search-panel hero-unit\">\n <div class=\"header-selection-field\">\n <label for=\"searchinput\" class=\"title-field\">{{\n \"Search\" | translate\n }}</label>\n <input\n kendoTextBox\n class=\"quick-filter input input-field\"\n title=\"\"\n id=\"searchinput\"\n type=\"text\"\n appDebounce\n (debounceKeyup)=\"onSearch($event.target.value)\"\n [ngModel]=\"searchTerm\"\n [debounceTime]=\"600\"\n />\n </div>\n <ng-content></ng-content>\n <div class=\"divide-line\"></div>\n\n <kendo-grid\n [data]=\"page | async\"\n [pageSize]=\"gridState.take\"\n [skip]=\"gridState.skip\"\n [sort]=\"gridState.sort\"\n [pageable]=\"true\"\n [sortable]=\"true\"\n [style.maxHeight.px]=\"480\"\n (remove)=\"removeHandler($event)\"\n (dataStateChange)=\"dataStateChange($event)\"\n [loading]=\"loadings > 0\"\n (cellClick)=\"selectItem($event)\"\n culture\n class=\"rows-pointable\"\n kendoGridSelectBy\n [selectedKeys]=\"selected\"\n [rowClass]=\"getRowClass\"\n >\n <ng-template kendoGridToolbarTemplate>\n <excel-export-button></excel-export-button>\n </ng-template>\n <kendo-grid-excel\n [fileName]=\"generateDateBasedExcelFileName()\"\n [fetchData]=\"getAllData\"\n ></kendo-grid-excel>\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @if (!dataItem.suppressDeletion) {\n <button\n kendoGridRemoveCommand\n requirePermission\n permissionType=\"Delete\"\n >\n <em class=\"k-icon glyphicon glyphicon-trash\"></em>\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n @for (field of gridFields; track field) {\n <kendo-grid-column\n field=\"{{ field.name }}\"\n title=\"{{ field.label | translate }}\"\n [sortable]=\"field.sortable !== false\"\n >\n </kendo-grid-column>\n }\n @if (commands.length > 0) {\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @for (command of commands; track command) {\n <button\n (click)=\"command.handler(dataItem)\"\n title=\"{{ command.title | translate }}\"\n class=\"k-button\"\n >\n @if (command.iconClass) {\n <em\n class=\"{{ command.iconClass }}\"\n ></em>\n }\n {{ command.name | translate }}\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n }\n <ng-template kendoGridNoRecordsTemplate>\n {{ \"Messages.NoRecords\" | translate }}\n </ng-template>\n <ng-template kendoPagerTemplate>\n <div class=\"pager\">\n <kendo-grid-spacer></kendo-grid-spacer>\n <kendo-pager-prev-buttons></kendo-pager-prev-buttons>\n <kendo-pager-numeric-buttons\n [buttonCount]=\"pageButtonsCount\"\n ></kendo-pager-numeric-buttons>\n <kendo-pager-next-buttons></kendo-pager-next-buttons>\n <kendo-pager-info></kendo-pager-info>\n </div>\n </ng-template>\n </kendo-grid>\n </div>\n </div>\n <router-outlet\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n ></router-outlet>\n</div>\n<confirm-dialog #confirmDialog></confirm-dialog>\n", styles: [".pager{display:flex;justify-content:center;align-items:center;width:100%}\n"] }]
|
|
3637
3821
|
}], ctorParameters: () => [{ type: i2.TranslateService }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }], propDecorators: { service: [{
|
|
@@ -3672,20 +3856,20 @@ class UserListAdminComponent extends EntityListComponent {
|
|
|
3672
3856
|
}));
|
|
3673
3857
|
}
|
|
3674
3858
|
}
|
|
3675
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3676
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3859
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UserListAdminComponent, deps: [{ token: i2.TranslateService }, { token: i1$2.ActivatedRoute }, { token: i1$2.Router }, { token: PartnerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3860
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UserListAdminComponent, isStandalone: false, selector: "lib-user-list-admin", providers: [PartnerService], usesInheritance: true, ngImport: i0, template: "<div class=\"row\">\n <div class=\"col-md-4\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel search-panel hero-unit\">\n <div class=\"header-selection-field\">\n <label for=\"searchinput\" class=\"title-field\">{{\n \"Search\" | translate\n }}</label>\n <input\n kendoTextBox\n class=\"quick-filter input input-field\"\n title=\"\"\n id=\"searchinput\"\n type=\"text\"\n appDebounce\n (debounceKeyup)=\"onSearch($event.target.value)\"\n [ngModel]=\"searchTerm\"\n [debounceTime]=\"600\"\n />\n </div>\n <ng-content></ng-content>\n <div class=\"divide-line\"></div>\n\n <kendo-grid\n [data]=\"page | async\"\n [pageSize]=\"gridState.take\"\n [skip]=\"gridState.skip\"\n [sort]=\"gridState.sort\"\n [pageable]=\"true\"\n [sortable]=\"true\"\n [style.maxHeight.px]=\"480\"\n (remove)=\"removeHandler($event)\"\n (dataStateChange)=\"dataStateChange($event)\"\n [loading]=\"loadings > 0\"\n (cellClick)=\"selectItem($event)\"\n culture\n class=\"rows-pointable\"\n kendoGridSelectBy\n [selectedKeys]=\"selected\"\n [rowClass]=\"getRowClass\"\n >\n <ng-template kendoGridToolbarTemplate>\n <excel-export-button></excel-export-button>\n </ng-template>\n <kendo-grid-excel\n [fileName]=\"generateDateBasedExcelFileName()\"\n [fetchData]=\"getAllData\"\n ></kendo-grid-excel>\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @if (!dataItem.suppressDeletion) {\n <button\n kendoGridRemoveCommand\n requirePermission\n permissionType=\"Delete\"\n >\n <em class=\"k-icon glyphicon glyphicon-trash\"></em>\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n @for (field of gridFields; track field) {\n <kendo-grid-column\n field=\"{{ field.name }}\"\n title=\"{{ field.label | translate }}\"\n [sortable]=\"field.sortable !== false\"\n >\n </kendo-grid-column>\n }\n @if (commands.length > 0) {\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @for (command of commands; track command) {\n <button\n (click)=\"command.handler(dataItem)\"\n title=\"{{ command.title | translate }}\"\n class=\"k-button\"\n >\n @if (command.iconClass) {\n <em\n class=\"{{ command.iconClass }}\"\n ></em>\n }\n {{ command.name | translate }}\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n }\n <ng-template kendoGridNoRecordsTemplate>\n {{ \"Messages.NoRecords\" | translate }}\n </ng-template>\n <ng-template kendoPagerTemplate>\n <div class=\"pager\">\n <kendo-grid-spacer></kendo-grid-spacer>\n <kendo-pager-prev-buttons></kendo-pager-prev-buttons>\n <kendo-pager-numeric-buttons\n [buttonCount]=\"pageButtonsCount\"\n ></kendo-pager-numeric-buttons>\n <kendo-pager-next-buttons></kendo-pager-next-buttons>\n <kendo-pager-info></kendo-pager-info>\n </div>\n </ng-template>\n </kendo-grid>\n </div>\n </div>\n <router-outlet\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n ></router-outlet>\n</div>\n<confirm-dialog #confirmDialog></confirm-dialog>\n", dependencies: [{ kind: "component", type: ConfirmDialogComponent, selector: "confirm-dialog" }, { kind: "directive", type: i1$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: i4$1.PagerInfoComponent, selector: "kendo-datapager-info, kendo-pager-info" }, { kind: "component", type: i4$1.PagerNextButtonsComponent, selector: "kendo-datapager-next-buttons, kendo-pager-next-buttons", inputs: ["size"] }, { kind: "component", type: i4$1.PagerNumericButtonsComponent, selector: "kendo-datapager-numeric-buttons, kendo-pager-numeric-buttons", inputs: ["buttonCount", "size"] }, { kind: "component", type: i4$1.PagerPrevButtonsComponent, selector: "kendo-datapager-prev-buttons, kendo-pager-prev-buttons", inputs: ["size"] }, { kind: "directive", type: i4$1.PagerTemplateDirective, selector: "[kendoDataPagerTemplate], [kendoPagerTemplate]" }, { kind: "component", type: i5.GridComponent, selector: "kendo-grid", inputs: ["data", "pageSize", "height", "rowHeight", "adaptiveMode", "detailRowHeight", "skip", "scrollable", "selectable", "sort", "size", "trackBy", "filter", "group", "virtualColumns", "filterable", "sortable", "pageable", "groupable", "gridResizable", "rowReorderable", "navigable", "autoSize", "rowClass", "rowSticky", "rowSelected", "isRowSelectable", "cellSelected", "resizable", "reorderable", "loading", "columnMenu", "hideHeader", "showInactiveTools", "isDetailExpanded", "isGroupExpanded", "dataLayoutMode", "pinnable", "pinnedTopRows", "pinnedBottomRows", "isRowPinnable"], outputs: ["filterChange", "pageChange", "groupChange", "sortChange", "selectionChange", "rowReorder", "rowPinChange", "dataStateChange", "gridStateChange", "groupExpand", "groupCollapse", "detailExpand", "detailCollapse", "edit", "cancel", "save", "remove", "add", "cellClose", "cellClick", "pdfExport", "excelExport", "csvExport", "columnResize", "columnReorder", "columnVisibilityChange", "columnLockedChange", "columnStickyChange", "scrollBottom", "contentScroll"], exportAs: ["kendoGrid"] }, { kind: "directive", type: i5.ToolbarTemplateDirective, selector: "[kendoGridToolbarTemplate]", inputs: ["position"] }, { kind: "component", type: i5.GridSpacerComponent, selector: "kendo-grid-spacer", inputs: ["width"] }, { kind: "directive", type: i5.SelectionDirective, selector: "[kendoGridSelectBy]" }, { kind: "directive", type: i5.GridToolbarFocusableDirective, selector: " [kendoGridToolbarFocusable], [kendoGridAddCommand], [kendoGridCancelCommand], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridExcelCommand], [kendoGridPDFCommand] " }, { kind: "component", type: i5.ColumnComponent, selector: "kendo-grid-column", inputs: ["field", "format", "sortable", "groupable", "editor", "filter", "filterVariant", "filterable", "editable"] }, { kind: "directive", type: i5.FocusableDirective, selector: "[kendoGridFocusable], [kendoGridEditCommand], [kendoGridRemoveCommand], [kendoGridSaveCommand], [kendoGridCancelCommand], [kendoGridSelectionCheckbox] ", inputs: ["kendoGridFocusable"] }, { kind: "component", type: i5.CommandColumnComponent, selector: "kendo-grid-command-column" }, { kind: "directive", type: i5.CellTemplateDirective, selector: "[kendoGridCellTemplate]" }, { kind: "directive", type: i5.NoRecordsTemplateDirective, selector: "[kendoGridNoRecordsTemplate]" }, { kind: "component", type: i5.RemoveCommandDirective, selector: "[kendoGridRemoveCommand]" }, { kind: "component", type: i5.ExcelComponent, selector: "kendo-grid-excel", inputs: ["fileName", "filterable", "creator", "date", "forceProxy", "proxyURL", "fetchData", "paddingCellOptions", "headerPaddingCellOptions", "collapsible"], outputs: ["fileCreated"] }, { kind: "directive", type: DebounceDirective, selector: "[appDebounce]", inputs: ["debounceTime"], outputs: ["debounceKeyup"] }, { kind: "component", type: ExcelExportButtonComponent, selector: "excel-export-button" }, { kind: "directive", type: RequirePermissionDirective, selector: "[requirePermission]", inputs: ["permissionType", "permissionCategory"] }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$1.TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
3677
3861
|
}
|
|
3678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UserListAdminComponent, decorators: [{
|
|
3679
3863
|
type: Component,
|
|
3680
|
-
args: [{ selector: 'lib-user-list-admin', providers: [PartnerService], standalone: false, template: "<div class=\"row\">\n <div class=\"col-md-4\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel search-panel hero-unit\">\n <div class=\"header-selection-field\">\n <label for=\"searchinput\" class=\"title-field\">{{\n \"Search\" | translate\n }}</label>\n <input\n kendoTextBox\n class=\"quick-filter input input-field\"\n title=\"\"\n id=\"searchinput\"\n type=\"text\"\n appDebounce\n (debounceKeyup)=\"onSearch($event.target.value)\"\n [ngModel]=\"searchTerm\"\n [debounceTime]=\"600\"\n />\n </div>\n <ng-content></ng-content>\n <div class=\"divide-line\"></div>\n\n <kendo-grid\n [data]=\"page | async\"\n [pageSize]=\"gridState.take\"\n [skip]=\"gridState.skip\"\n [sort]=\"gridState.sort\"\n [pageable]=\"true\"\n [sortable]=\"true\"\n [style.maxHeight.px]=\"480\"\n (remove)=\"removeHandler($event)\"\n (dataStateChange)=\"dataStateChange($event)\"\n [loading]=\"loadings > 0\"\n (cellClick)=\"selectItem($event)\"\n culture\n class=\"rows-pointable\"\n kendoGridSelectBy\n [selectedKeys]=\"selected\"\n [rowClass]=\"getRowClass\"\n >\n <ng-template kendoGridToolbarTemplate>\n <excel-export-button></excel-export-button>\n </ng-template>\n <kendo-grid-excel\n [fileName]=\"generateDateBasedExcelFileName()\"\n [fetchData]=\"getAllData\"\n ></kendo-grid-excel>\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @if (!dataItem.suppressDeletion) {\n <button\n kendoGridRemoveCommand\n requirePermission\n permissionType=\"Delete\"\n >\n <em class=\"k-icon glyphicon glyphicon-trash\"></em>\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n @for (field of gridFields; track field) {\n <kendo-grid-column\n field=\"{{ field.name }}\"\n title=\"{{ field.label | translate }}\"\n [sortable]=\"field.sortable !== false\"\n >\n </kendo-grid-column>\n }\n @if (commands.length > 0) {\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @for (command of commands; track command) {\n <button\n (click)=\"command.handler(dataItem)\"\n title=\"{{ command.title | translate }}\"\n class=\"k-button\"\n >\n @if (command.iconClass) {\n <em\n class=\"{{ command.iconClass }}\"\n ></em>\n }\n {{ command.name | translate }}\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n }\n <ng-template kendoGridNoRecordsTemplate>\n {{ \"Messages.NoRecords\" | translate }}\n </ng-template>\n <ng-template kendoPagerTemplate>\n <div class=\"pager\">\n <kendo-grid-spacer></kendo-grid-spacer>\n <kendo-pager-prev-buttons></kendo-pager-prev-buttons>\n <kendo-pager-numeric-buttons\n [buttonCount]=\"pageButtonsCount\"\n ></kendo-pager-numeric-buttons>\n <kendo-pager-next-buttons></kendo-pager-next-buttons>\n <kendo-pager-info></kendo-pager-info>\n </div>\n </ng-template>\n </kendo-grid>\n </div>\n </div>\n <router-outlet\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n ></router-outlet>\n</div>\n<confirm-dialog #confirmDialog></confirm-dialog>\n" }]
|
|
3864
|
+
args: [{ selector: 'lib-user-list-admin', providers: [PartnerService], changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<div class=\"row\">\n <div class=\"col-md-4\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel search-panel hero-unit\">\n <div class=\"header-selection-field\">\n <label for=\"searchinput\" class=\"title-field\">{{\n \"Search\" | translate\n }}</label>\n <input\n kendoTextBox\n class=\"quick-filter input input-field\"\n title=\"\"\n id=\"searchinput\"\n type=\"text\"\n appDebounce\n (debounceKeyup)=\"onSearch($event.target.value)\"\n [ngModel]=\"searchTerm\"\n [debounceTime]=\"600\"\n />\n </div>\n <ng-content></ng-content>\n <div class=\"divide-line\"></div>\n\n <kendo-grid\n [data]=\"page | async\"\n [pageSize]=\"gridState.take\"\n [skip]=\"gridState.skip\"\n [sort]=\"gridState.sort\"\n [pageable]=\"true\"\n [sortable]=\"true\"\n [style.maxHeight.px]=\"480\"\n (remove)=\"removeHandler($event)\"\n (dataStateChange)=\"dataStateChange($event)\"\n [loading]=\"loadings > 0\"\n (cellClick)=\"selectItem($event)\"\n culture\n class=\"rows-pointable\"\n kendoGridSelectBy\n [selectedKeys]=\"selected\"\n [rowClass]=\"getRowClass\"\n >\n <ng-template kendoGridToolbarTemplate>\n <excel-export-button></excel-export-button>\n </ng-template>\n <kendo-grid-excel\n [fileName]=\"generateDateBasedExcelFileName()\"\n [fetchData]=\"getAllData\"\n ></kendo-grid-excel>\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @if (!dataItem.suppressDeletion) {\n <button\n kendoGridRemoveCommand\n requirePermission\n permissionType=\"Delete\"\n >\n <em class=\"k-icon glyphicon glyphicon-trash\"></em>\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n @for (field of gridFields; track field) {\n <kendo-grid-column\n field=\"{{ field.name }}\"\n title=\"{{ field.label | translate }}\"\n [sortable]=\"field.sortable !== false\"\n >\n </kendo-grid-column>\n }\n @if (commands.length > 0) {\n <kendo-grid-command-column width=\"65\">\n <ng-template kendoGridCellTemplate let-dataItem>\n @for (command of commands; track command) {\n <button\n (click)=\"command.handler(dataItem)\"\n title=\"{{ command.title | translate }}\"\n class=\"k-button\"\n >\n @if (command.iconClass) {\n <em\n class=\"{{ command.iconClass }}\"\n ></em>\n }\n {{ command.name | translate }}\n </button>\n }\n </ng-template>\n </kendo-grid-command-column>\n }\n <ng-template kendoGridNoRecordsTemplate>\n {{ \"Messages.NoRecords\" | translate }}\n </ng-template>\n <ng-template kendoPagerTemplate>\n <div class=\"pager\">\n <kendo-grid-spacer></kendo-grid-spacer>\n <kendo-pager-prev-buttons></kendo-pager-prev-buttons>\n <kendo-pager-numeric-buttons\n [buttonCount]=\"pageButtonsCount\"\n ></kendo-pager-numeric-buttons>\n <kendo-pager-next-buttons></kendo-pager-next-buttons>\n <kendo-pager-info></kendo-pager-info>\n </div>\n </ng-template>\n </kendo-grid>\n </div>\n </div>\n <router-outlet\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n ></router-outlet>\n</div>\n<confirm-dialog #confirmDialog></confirm-dialog>\n" }]
|
|
3681
3865
|
}], ctorParameters: () => [{ type: i2.TranslateService }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: PartnerService }] });
|
|
3682
3866
|
|
|
3683
3867
|
class ExcelExportButtonModule {
|
|
3684
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3685
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3686
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3868
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ExcelExportButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3869
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ExcelExportButtonModule, declarations: [ExcelExportButtonComponent], imports: [TranslateModule, ExcelModule], exports: [ExcelExportButtonComponent] }); }
|
|
3870
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ExcelExportButtonModule, imports: [TranslateModule, ExcelModule] }); }
|
|
3687
3871
|
}
|
|
3688
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ExcelExportButtonModule, decorators: [{
|
|
3689
3873
|
type: NgModule,
|
|
3690
3874
|
args: [{
|
|
3691
3875
|
declarations: [ExcelExportButtonComponent],
|
|
@@ -3694,36 +3878,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3694
3878
|
}]
|
|
3695
3879
|
}] });
|
|
3696
3880
|
|
|
3697
|
-
class CreateNewComponent {
|
|
3698
|
-
constructor(route) {
|
|
3699
|
-
this.route = route;
|
|
3700
|
-
this.defaultLabelKey = 'CreateNew';
|
|
3701
|
-
this.permissionTypes = [
|
|
3702
|
-
PermissionTypes.Create,
|
|
3703
|
-
];
|
|
3704
|
-
let labelKeyFromRoute = this.route.snapshot.data?.labelKey;
|
|
3705
|
-
if (labelKeyFromRoute) {
|
|
3706
|
-
this.defaultLabelKey = labelKeyFromRoute;
|
|
3707
|
-
}
|
|
3708
|
-
}
|
|
3709
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CreateNewComponent, deps: [{ token: i1$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3710
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: CreateNewComponent, isStandalone: false, selector: "create-new", ngImport: i0, template: "<div class=\"col-md-8\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel editor-area hero-unit\">\n <div class=\"form-horizontal\">\n <div class=\"form-group buttons-panel\">\n <div class=\"col-md-4\">\n <a\n [routerLink]=\"['new']\"\n preserveFragment\n class=\"btn btn-succes\"\n requirePermission\n translate=\"{{ defaultLabelKey }}\"\n [permissionType]=\"permissionTypes\"\n >\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RequirePermissionDirective, selector: "[requirePermission]", inputs: ["permissionType", "permissionCategory"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3711
|
-
}
|
|
3712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CreateNewComponent, decorators: [{
|
|
3713
|
-
type: Component,
|
|
3714
|
-
args: [{ selector: 'create-new', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"col-md-8\">\n <header class=\"header-page-bg\"></header>\n <div class=\"panel editor-area hero-unit\">\n <div class=\"form-horizontal\">\n <div class=\"form-group buttons-panel\">\n <div class=\"col-md-4\">\n <a\n [routerLink]=\"['new']\"\n preserveFragment\n class=\"btn btn-succes\"\n requirePermission\n translate=\"{{ defaultLabelKey }}\"\n [permissionType]=\"permissionTypes\"\n >\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
3715
|
-
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }] });
|
|
3716
|
-
|
|
3717
3881
|
class CreateNewModule {
|
|
3718
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3719
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3882
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CreateNewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3883
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: CreateNewModule, declarations: [CreateNewComponent], imports: [RouterModule,
|
|
3720
3884
|
RequirePermissionModule,
|
|
3721
3885
|
TranslateModule], exports: [CreateNewComponent] }); }
|
|
3722
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3886
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CreateNewModule, imports: [RouterModule,
|
|
3723
3887
|
RequirePermissionModule,
|
|
3724
3888
|
TranslateModule] }); }
|
|
3725
3889
|
}
|
|
3726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CreateNewModule, decorators: [{
|
|
3727
3891
|
type: NgModule,
|
|
3728
3892
|
args: [{
|
|
3729
3893
|
declarations: [CreateNewComponent],
|
|
@@ -3737,8 +3901,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3737
3901
|
}] });
|
|
3738
3902
|
|
|
3739
3903
|
class EntityListModule {
|
|
3740
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3741
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3904
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3905
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: EntityListModule, declarations: [EntityListComponent, UserListAdminComponent], imports: [CommonModule,
|
|
3742
3906
|
TranslateModule,
|
|
3743
3907
|
ConfirmDialogModule,
|
|
3744
3908
|
RouterModule,
|
|
@@ -3752,7 +3916,7 @@ class EntityListModule {
|
|
|
3752
3916
|
RequirePermissionModule,
|
|
3753
3917
|
FormsModule,
|
|
3754
3918
|
InputsModule], exports: [EntityListComponent, UserListAdminComponent] }); }
|
|
3755
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3919
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityListModule, imports: [CommonModule,
|
|
3756
3920
|
TranslateModule,
|
|
3757
3921
|
ConfirmDialogModule,
|
|
3758
3922
|
RouterModule,
|
|
@@ -3767,7 +3931,7 @@ class EntityListModule {
|
|
|
3767
3931
|
FormsModule,
|
|
3768
3932
|
InputsModule] }); }
|
|
3769
3933
|
}
|
|
3770
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: EntityListModule, decorators: [{
|
|
3771
3935
|
type: NgModule,
|
|
3772
3936
|
args: [{
|
|
3773
3937
|
declarations: [EntityListComponent, UserListAdminComponent],
|
|
@@ -3823,12 +3987,12 @@ class FieldDropdownlistComponent {
|
|
|
3823
3987
|
initSelectedId(id) {
|
|
3824
3988
|
this.initialSelectedId = id;
|
|
3825
3989
|
}
|
|
3826
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3827
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownlistComponent, deps: [{ token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3991
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: FieldDropdownlistComponent, isStandalone: false, selector: "field-dropdownlist", inputs: { service: "service", label: "label", sort: "sort", filter: "filter", initialSelectedId: "initialSelectedId" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "kendoDropDown", first: true, predicate: ["inputElement"], descendants: true }], ngImport: i0, template: "<div class=\"header-selection-field\">\n <label\n for=\"{{ '_' + label }}\"\n class=\"title-field\"\n translate=\"{{ label }}\"\n ></label>\n <kendo-dropdownlist\n [data]=\"data\"\n textField=\"name\"\n valueField=\"id\"\n id=\"{{ '_' + label }}\"\n (valueChange)=\"onValueChange($event)\"\n [defaultItem]=\"defaultItem\"\n #inputElement\n >\n </kendo-dropdownlist>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i4.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
3828
3992
|
}
|
|
3829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownlistComponent, decorators: [{
|
|
3830
3994
|
type: Component,
|
|
3831
|
-
args: [{ selector: 'field-dropdownlist', standalone: false, template: "<div class=\"header-selection-field\">\n <label\n for=\"{{ '_' + label }}\"\n class=\"title-field\"\n translate=\"{{ label }}\"\n ></label>\n <kendo-dropdownlist\n [data]=\"data\"\n textField=\"name\"\n valueField=\"id\"\n id=\"{{ '_' + label }}\"\n (valueChange)=\"onValueChange($event)\"\n [defaultItem]=\"defaultItem\"\n #inputElement\n >\n </kendo-dropdownlist>\n</div>\n" }]
|
|
3995
|
+
args: [{ selector: 'field-dropdownlist', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<div class=\"header-selection-field\">\n <label\n for=\"{{ '_' + label }}\"\n class=\"title-field\"\n translate=\"{{ label }}\"\n ></label>\n <kendo-dropdownlist\n [data]=\"data\"\n textField=\"name\"\n valueField=\"id\"\n id=\"{{ '_' + label }}\"\n (valueChange)=\"onValueChange($event)\"\n [defaultItem]=\"defaultItem\"\n #inputElement\n >\n </kendo-dropdownlist>\n</div>\n" }]
|
|
3832
3996
|
}], ctorParameters: () => [{ type: i2.TranslateService }], propDecorators: { service: [{
|
|
3833
3997
|
type: Input
|
|
3834
3998
|
}], label: [{
|
|
@@ -3847,11 +4011,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3847
4011
|
}] } });
|
|
3848
4012
|
|
|
3849
4013
|
class FieldDropdownlistModule {
|
|
3850
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3851
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3852
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4014
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownlistModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4015
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownlistModule, declarations: [FieldDropdownlistComponent], imports: [DropDownListModule], exports: [FieldDropdownlistComponent] }); }
|
|
4016
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownlistModule, imports: [DropDownListModule] }); }
|
|
3853
4017
|
}
|
|
3854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownlistModule, decorators: [{
|
|
3855
4019
|
type: NgModule,
|
|
3856
4020
|
args: [{
|
|
3857
4021
|
declarations: [FieldDropdownlistComponent],
|
|
@@ -3861,20 +4025,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3861
4025
|
}] });
|
|
3862
4026
|
|
|
3863
4027
|
class FooterBarComponent {
|
|
3864
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3865
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4028
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FooterBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4029
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: FooterBarComponent, isStandalone: false, selector: "footer-bar", ngImport: i0, template: "<nav class=\"footer navbar navbar-default navbar-fixed-bottom\">\n <div class=\"container\">\n <a class=\"navbar-brand pull-right\" href=\"http://www.indigina.com/\">\n <ng-content></ng-content>\n </a>\n </div>\n</nav>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3866
4030
|
}
|
|
3867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FooterBarComponent, decorators: [{
|
|
3868
4032
|
type: Component,
|
|
3869
4033
|
args: [{ selector: 'footer-bar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<nav class=\"footer navbar navbar-default navbar-fixed-bottom\">\n <div class=\"container\">\n <a class=\"navbar-brand pull-right\" href=\"http://www.indigina.com/\">\n <ng-content></ng-content>\n </a>\n </div>\n</nav>\n" }]
|
|
3870
4034
|
}] });
|
|
3871
4035
|
|
|
3872
4036
|
class FooterBarModule {
|
|
3873
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3874
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3875
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4037
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FooterBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4038
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FooterBarModule, declarations: [FooterBarComponent], exports: [FooterBarComponent] }); }
|
|
4039
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FooterBarModule }); }
|
|
3876
4040
|
}
|
|
3877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FooterBarModule, decorators: [{
|
|
3878
4042
|
type: NgModule,
|
|
3879
4043
|
args: [{
|
|
3880
4044
|
declarations: [
|
|
@@ -3890,7 +4054,8 @@ class ModalWindowComponent {
|
|
|
3890
4054
|
constructor(route, router) {
|
|
3891
4055
|
this.route = route;
|
|
3892
4056
|
this.router = router;
|
|
3893
|
-
this.callbackPath = input(
|
|
4057
|
+
this.callbackPath = input(/* @ts-ignore */
|
|
4058
|
+
...(ngDevMode ? [undefined, { debugName: "callbackPath" }] : /* istanbul ignore next */ []));
|
|
3894
4059
|
this.closed = output();
|
|
3895
4060
|
this.opened = true;
|
|
3896
4061
|
}
|
|
@@ -3904,10 +4069,10 @@ class ModalWindowComponent {
|
|
|
3904
4069
|
}
|
|
3905
4070
|
this.closed.emit();
|
|
3906
4071
|
}
|
|
3907
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3908
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4072
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ModalWindowComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4073
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: ModalWindowComponent, isStandalone: false, selector: "modal-window", inputs: { callbackPath: { classPropertyName: "callbackPath", publicName: "callbackPath", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, ngImport: i0, template: "<div class=\"modal-window window-wrapper\">\n @if (opened) {\n <div class=\"k-overlay\" (click)=\"close()\"></div>\n }\n @if (opened) {\n <kendo-window (close)=\"close()\" [height]=\"830\" [width]=\"800\">\n <kendo-window-titlebar>\n <div class=\"k-window-title\" [translate]=\"title\"></div>\n <button kendoWindowCloseAction></button>\n </kendo-window-titlebar>\n <ng-content></ng-content>\n </kendo-window>\n }\n</div>\n", styles: [".modal-window{z-index:11002}\n"], dependencies: [{ kind: "component", type: i2$3.WindowComponent, selector: "kendo-window", inputs: ["autoFocusedElement", "title", "draggable", "resizable", "keepContent", "state", "minWidth", "minHeight", "width", "height", "top", "left"], outputs: ["dragStart", "dragEnd", "resizeStart", "resizeEnd", "close", "widthChange", "heightChange", "topChange", "leftChange", "stateChange"], exportAs: ["kendoWindow"] }, { kind: "component", type: i2$3.WindowCloseActionDirective, selector: "button[kendoWindowCloseAction]", inputs: ["window"], exportAs: ["kendoWindowCloseAction"] }, { kind: "component", type: i2$3.WindowTitleBarComponent, selector: "kendo-window-titlebar", inputs: ["template", "id"] }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }] }); }
|
|
3909
4074
|
}
|
|
3910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ModalWindowComponent, decorators: [{
|
|
3911
4076
|
type: Component,
|
|
3912
4077
|
args: [{ selector: 'modal-window', standalone: false, template: "<div class=\"modal-window window-wrapper\">\n @if (opened) {\n <div class=\"k-overlay\" (click)=\"close()\"></div>\n }\n @if (opened) {\n <kendo-window (close)=\"close()\" [height]=\"830\" [width]=\"800\">\n <kendo-window-titlebar>\n <div class=\"k-window-title\" [translate]=\"title\"></div>\n <button kendoWindowCloseAction></button>\n </kendo-window-titlebar>\n <ng-content></ng-content>\n </kendo-window>\n }\n</div>\n", styles: [".modal-window{z-index:11002}\n"] }]
|
|
3913
4078
|
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: i1$2.Router }], propDecorators: { callbackPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "callbackPath", required: false }] }], title: [{
|
|
@@ -3915,11 +4080,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
3915
4080
|
}], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
3916
4081
|
|
|
3917
4082
|
class ModalWindowModule {
|
|
3918
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3919
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3920
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4083
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ModalWindowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4084
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ModalWindowModule, declarations: [ModalWindowComponent], imports: [CommonModule, RouterModule, WindowModule, TranslateModule], exports: [ModalWindowComponent] }); }
|
|
4085
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ModalWindowModule, imports: [CommonModule, RouterModule, WindowModule, TranslateModule] }); }
|
|
3921
4086
|
}
|
|
3922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ModalWindowModule, decorators: [{
|
|
3923
4088
|
type: NgModule,
|
|
3924
4089
|
args: [{
|
|
3925
4090
|
declarations: [ModalWindowComponent],
|
|
@@ -3989,10 +4154,10 @@ class MulticheckFilterComponent {
|
|
|
3989
4154
|
}),
|
|
3990
4155
|
], 'name');
|
|
3991
4156
|
}
|
|
3992
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3993
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MulticheckFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4158
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: MulticheckFilterComponent, isStandalone: false, selector: "multicheck-filter", inputs: { currentFilter: "currentFilter", data: "data", filterService: "filterService", field: "field", valueField: "valueField", operator: "operator" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<ul>\n @if (showFilter) {\n <li>\n <input class=\"k-textbox\" (input)=\"onInput($event)\" />\n </li>\n }\n @for (item of currentData; track item) {\n <li\n (click)=\"onSelectionChange(item)\"\n [ngClass]=\"{ 'k-state-selected': isItemSelected(item) }\"\n >\n <input\n type=\"checkbox\"\n style=\"margin-right: 5px\"\n id=\"chk-{{ item.id }}\"\n class=\"k-checkbox\"\n [checked]=\"isItemSelected(item)\"\n />\n <label\n class=\"k-multiselect-checkbox k-checkbox-label\"\n for=\"chk-{{ item.id }}\"\n >\n {{ item.name }}\n </label>\n </li>\n }\n</ul>\n", styles: ["ul{list-style-type:none;height:200px;overflow-y:scroll;padding-left:0;padding-right:12px}ul>li{padding:8px 12px;border:1px solid rgba(0,0,0,.08);border-bottom:none}ul>li:last-of-type{border-bottom:1px solid rgba(0,0,0,.08)}.k-multiselect-checkbox{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
3994
4159
|
}
|
|
3995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MulticheckFilterComponent, decorators: [{
|
|
3996
4161
|
type: Component,
|
|
3997
4162
|
args: [{ selector: 'multicheck-filter', standalone: false, template: "<ul>\n @if (showFilter) {\n <li>\n <input class=\"k-textbox\" (input)=\"onInput($event)\" />\n </li>\n }\n @for (item of currentData; track item) {\n <li\n (click)=\"onSelectionChange(item)\"\n [ngClass]=\"{ 'k-state-selected': isItemSelected(item) }\"\n >\n <input\n type=\"checkbox\"\n style=\"margin-right: 5px\"\n id=\"chk-{{ item.id }}\"\n class=\"k-checkbox\"\n [checked]=\"isItemSelected(item)\"\n />\n <label\n class=\"k-multiselect-checkbox k-checkbox-label\"\n for=\"chk-{{ item.id }}\"\n >\n {{ item.name }}\n </label>\n </li>\n }\n</ul>\n", styles: ["ul{list-style-type:none;height:200px;overflow-y:scroll;padding-left:0;padding-right:12px}ul>li{padding:8px 12px;border:1px solid rgba(0,0,0,.08);border-bottom:none}ul>li:last-of-type{border-bottom:1px solid rgba(0,0,0,.08)}.k-multiselect-checkbox{pointer-events:none}\n"] }]
|
|
3998
4163
|
}], propDecorators: { currentFilter: [{
|
|
@@ -4012,11 +4177,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4012
4177
|
}] } });
|
|
4013
4178
|
|
|
4014
4179
|
class MulticheckFilterModule {
|
|
4015
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4016
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4017
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MulticheckFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4181
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: MulticheckFilterModule, declarations: [MulticheckFilterComponent], imports: [CommonModule], exports: [MulticheckFilterComponent] }); }
|
|
4182
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MulticheckFilterModule, imports: [CommonModule] }); }
|
|
4018
4183
|
}
|
|
4019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: MulticheckFilterModule, decorators: [{
|
|
4020
4185
|
type: NgModule,
|
|
4021
4186
|
args: [{
|
|
4022
4187
|
declarations: [MulticheckFilterComponent],
|
|
@@ -4029,10 +4194,10 @@ class TopMenuComponent {
|
|
|
4029
4194
|
toggleButtonClick() {
|
|
4030
4195
|
document.body.classList.toggle('mini-navbar');
|
|
4031
4196
|
}
|
|
4032
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4033
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TopMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4198
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TopMenuComponent, isStandalone: false, selector: "top-bar", inputs: { currentUser: "currentUser", menuItems: "menuItems" }, ngImport: i0, template: "<div id=\"supply-top-navbar\" class=\"top-bar supply-nav-margin\">\n <nav class=\"navbar navbar-static-top white-bg\">\n <div class=\"navbar-header\" [style.display]=\"currentUser != null\">\n <button\n type=\"button\"\n class=\"navbar-minimalize minimalize-style-2 btn btn-primary\"\n (click)=\"toggleButtonClick()\">\n <i class=\"fa fa-bars\"></i>\n </button>\n </div>\n <ng-content></ng-content>\n @if (currentUser != null) {\n <div id=\"topBarIcons\" class=\"clearfix top-bar-user\">\n <a class=\"message-icons left container-login\"\n [routerLink]=\"['/security/admins', currentUser.id]\">\n <span class=\"fa fa-user\" aria-hidden=\"true\"></span>\n <span class=\"pad5left\">\n {{ currentUser.userName }}\n </span>\n <ng-content select=\".pad5left\"></ng-content>\n </a>\n <account-menu [user]=\"currentUser\"\n [menuItems]=\"menuItems\"\n ></account-menu>\n </div>\n }\n </nav>\n</div>\n", styles: [".top-bar-user{display:flex;align-items:center}.top-bar .container-login{padding-top:0}\n"], dependencies: [{ kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: AccountMenuComponent, selector: "account-menu", inputs: ["user", "menuItems"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4034
4199
|
}
|
|
4035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TopMenuComponent, decorators: [{
|
|
4036
4201
|
type: Component,
|
|
4037
4202
|
args: [{ selector: 'top-bar', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div id=\"supply-top-navbar\" class=\"top-bar supply-nav-margin\">\n <nav class=\"navbar navbar-static-top white-bg\">\n <div class=\"navbar-header\" [style.display]=\"currentUser != null\">\n <button\n type=\"button\"\n class=\"navbar-minimalize minimalize-style-2 btn btn-primary\"\n (click)=\"toggleButtonClick()\">\n <i class=\"fa fa-bars\"></i>\n </button>\n </div>\n <ng-content></ng-content>\n @if (currentUser != null) {\n <div id=\"topBarIcons\" class=\"clearfix top-bar-user\">\n <a class=\"message-icons left container-login\"\n [routerLink]=\"['/security/admins', currentUser.id]\">\n <span class=\"fa fa-user\" aria-hidden=\"true\"></span>\n <span class=\"pad5left\">\n {{ currentUser.userName }}\n </span>\n <ng-content select=\".pad5left\"></ng-content>\n </a>\n <account-menu [user]=\"currentUser\"\n [menuItems]=\"menuItems\"\n ></account-menu>\n </div>\n }\n </nav>\n</div>\n", styles: [".top-bar-user{display:flex;align-items:center}.top-bar .container-login{padding-top:0}\n"] }]
|
|
4038
4203
|
}], propDecorators: { currentUser: [{
|
|
@@ -4042,15 +4207,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4042
4207
|
}] } });
|
|
4043
4208
|
|
|
4044
4209
|
class TopBarModule {
|
|
4045
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4046
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TopBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4211
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TopBarModule, declarations: [TopMenuComponent], imports: [CommonModule,
|
|
4047
4212
|
RouterModule,
|
|
4048
4213
|
AccountMenuModule], exports: [TopMenuComponent] }); }
|
|
4049
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4214
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TopBarModule, imports: [CommonModule,
|
|
4050
4215
|
RouterModule,
|
|
4051
4216
|
AccountMenuModule] }); }
|
|
4052
4217
|
}
|
|
4053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TopBarModule, decorators: [{
|
|
4054
4219
|
type: NgModule,
|
|
4055
4220
|
args: [{
|
|
4056
4221
|
declarations: [
|
|
@@ -4068,17 +4233,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4068
4233
|
}] });
|
|
4069
4234
|
|
|
4070
4235
|
class FieldDropdownModule {
|
|
4071
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4072
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4237
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownModule, declarations: [FieldDropdownComponent], imports: [TranslateModule,
|
|
4073
4238
|
DropDownsModule,
|
|
4074
4239
|
ReactiveFormsModule,
|
|
4075
4240
|
CommonModule], exports: [FieldDropdownComponent] }); }
|
|
4076
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4241
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownModule, imports: [TranslateModule,
|
|
4077
4242
|
DropDownsModule,
|
|
4078
4243
|
ReactiveFormsModule,
|
|
4079
4244
|
CommonModule] }); }
|
|
4080
4245
|
}
|
|
4081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: FieldDropdownModule, decorators: [{
|
|
4082
4247
|
type: NgModule,
|
|
4083
4248
|
args: [{
|
|
4084
4249
|
declarations: [FieldDropdownComponent],
|
|
@@ -4093,17 +4258,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4093
4258
|
}] });
|
|
4094
4259
|
|
|
4095
4260
|
class ObjectDropdownModule {
|
|
4096
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4097
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4261
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ObjectDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4262
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ObjectDropdownModule, declarations: [ObjectDropdownComponent], imports: [CommonModule,
|
|
4098
4263
|
TranslateModule,
|
|
4099
4264
|
DropDownsModule,
|
|
4100
4265
|
ReactiveFormsModule], exports: [ObjectDropdownComponent] }); }
|
|
4101
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4266
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ObjectDropdownModule, imports: [CommonModule,
|
|
4102
4267
|
TranslateModule,
|
|
4103
4268
|
DropDownsModule,
|
|
4104
4269
|
ReactiveFormsModule] }); }
|
|
4105
4270
|
}
|
|
4106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ObjectDropdownModule, decorators: [{
|
|
4107
4272
|
type: NgModule,
|
|
4108
4273
|
args: [{
|
|
4109
4274
|
declarations: [ObjectDropdownComponent],
|
|
@@ -4124,20 +4289,20 @@ class ForbiddenComponent {
|
|
|
4124
4289
|
logout() {
|
|
4125
4290
|
this.accountService.logout();
|
|
4126
4291
|
}
|
|
4127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4128
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ForbiddenComponent, deps: [{ token: AccountService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4293
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: ForbiddenComponent, isStandalone: false, selector: "app-forbidden", ngImport: i0, template: "<div class=\"container body-content\">\n <h2>Forbidden</h2>\n <h4>\n You do not have permission to view this page. Please contact your\n administrator.\n </h4>\n <h4>\n <button\n class=\"btn btn-success\"\n (click)=\"logout()\"\n translate=\"Logout\"\n data-icon=\"sign-out\"\n ></button>\n </h4>\n</div>\n", styles: ["::ng-deep #preloader{display:none!important}\n"], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
4129
4294
|
}
|
|
4130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ForbiddenComponent, decorators: [{
|
|
4131
4296
|
type: Component,
|
|
4132
|
-
args: [{ selector: 'app-forbidden', standalone: false, template: "<div class=\"container body-content\">\n <h2>Forbidden</h2>\n <h4>\n You do not have permission to view this page. Please contact your\n administrator.\n </h4>\n <h4>\n <button\n class=\"btn btn-success\"\n (click)=\"logout()\"\n translate=\"Logout\"\n data-icon=\"sign-out\"\n ></button>\n </h4>\n</div>\n", styles: ["::ng-deep #preloader{display:none!important}\n"] }]
|
|
4297
|
+
args: [{ selector: 'app-forbidden', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<div class=\"container body-content\">\n <h2>Forbidden</h2>\n <h4>\n You do not have permission to view this page. Please contact your\n administrator.\n </h4>\n <h4>\n <button\n class=\"btn btn-success\"\n (click)=\"logout()\"\n translate=\"Logout\"\n data-icon=\"sign-out\"\n ></button>\n </h4>\n</div>\n", styles: ["::ng-deep #preloader{display:none!important}\n"] }]
|
|
4133
4298
|
}], ctorParameters: () => [{ type: AccountService }] });
|
|
4134
4299
|
|
|
4135
4300
|
class SideMenuModule {
|
|
4136
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4137
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4138
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4301
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SideMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4302
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: SideMenuModule, declarations: [SideMenuComponent, MenuItemGroupComponent], imports: [CommonModule, TranslateModule, RouterModule, FormsModule, LoadingBarHttpClientModule], exports: [SideMenuComponent, MenuItemGroupComponent] }); }
|
|
4303
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SideMenuModule, imports: [CommonModule, TranslateModule, RouterModule, FormsModule, LoadingBarHttpClientModule] }); }
|
|
4139
4304
|
}
|
|
4140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SideMenuModule, decorators: [{
|
|
4141
4306
|
type: NgModule,
|
|
4142
4307
|
args: [{
|
|
4143
4308
|
declarations: [SideMenuComponent, MenuItemGroupComponent],
|
|
@@ -4150,36 +4315,78 @@ const SKIP_AUTH_TOKEN = new HttpContextToken(() => false);
|
|
|
4150
4315
|
|
|
4151
4316
|
class AuthHeadersInterceptor {
|
|
4152
4317
|
constructor() {
|
|
4153
|
-
this.
|
|
4318
|
+
this.resolver = inject(AuthProviderResolver);
|
|
4154
4319
|
this.settingsService = inject(SettingsService);
|
|
4320
|
+
this.appSettings = inject(AppSettings);
|
|
4155
4321
|
this.isRedirecting = false;
|
|
4156
4322
|
}
|
|
4157
4323
|
intercept(req, next) {
|
|
4158
|
-
if (req.context.get(SKIP_AUTH_TOKEN)
|
|
4324
|
+
if (req.context.get(SKIP_AUTH_TOKEN) ||
|
|
4325
|
+
req.headers.has('Authorization') ||
|
|
4326
|
+
!this.isAuthApiRequest(req.url)) {
|
|
4159
4327
|
return next.handle(req);
|
|
4160
4328
|
}
|
|
4161
|
-
return this.
|
|
4162
|
-
if (
|
|
4163
|
-
this.
|
|
4329
|
+
return this.resolver.getProvider().pipe(take$1(1), switchMap$1((provider) => {
|
|
4330
|
+
if (!provider.isUserLoggedIn()) {
|
|
4331
|
+
return this.handleRequest(req, next, provider);
|
|
4164
4332
|
}
|
|
4165
|
-
return
|
|
4333
|
+
return provider.getAccessToken().pipe(switchMap$1((token) => {
|
|
4334
|
+
if (!token) {
|
|
4335
|
+
this.redirectToLogin(provider);
|
|
4336
|
+
return EMPTY;
|
|
4337
|
+
}
|
|
4338
|
+
return this.handleRequest(this.addAuthHeader(req, token), next, provider);
|
|
4339
|
+
}));
|
|
4166
4340
|
}));
|
|
4167
4341
|
}
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4342
|
+
isAuthApiRequest(requestUrl) {
|
|
4343
|
+
const apiUrl = this.appSettings.apiUrl;
|
|
4344
|
+
if (!apiUrl) {
|
|
4345
|
+
return false;
|
|
4346
|
+
}
|
|
4347
|
+
try {
|
|
4348
|
+
const request = new URL(requestUrl, window.location.origin);
|
|
4349
|
+
const api = new URL(apiUrl, window.location.origin);
|
|
4350
|
+
let apiPath = api.pathname;
|
|
4351
|
+
while (apiPath.endsWith('/')) {
|
|
4352
|
+
apiPath = apiPath.slice(0, -1);
|
|
4353
|
+
}
|
|
4354
|
+
if (!apiPath) {
|
|
4355
|
+
apiPath = '/';
|
|
4356
|
+
}
|
|
4357
|
+
const matchesPath = apiPath === '/' ||
|
|
4358
|
+
request.pathname === apiPath ||
|
|
4359
|
+
request.pathname.startsWith(`${apiPath}/`);
|
|
4360
|
+
return request.origin === api.origin && matchesPath;
|
|
4361
|
+
}
|
|
4362
|
+
catch {
|
|
4363
|
+
return false;
|
|
4364
|
+
}
|
|
4172
4365
|
}
|
|
4173
|
-
|
|
4366
|
+
handleRequest(request, next, provider) {
|
|
4367
|
+
return next.handle(request).pipe(catchError$1((error) => {
|
|
4368
|
+
if (error instanceof HttpErrorResponse &&
|
|
4369
|
+
error.status === HttpStatusCode.Unauthorized) {
|
|
4370
|
+
this.redirectToLogin(provider);
|
|
4371
|
+
}
|
|
4372
|
+
return throwError(() => error);
|
|
4373
|
+
}));
|
|
4374
|
+
}
|
|
4375
|
+
redirectToLogin(provider) {
|
|
4174
4376
|
if (this.isRedirecting) {
|
|
4175
4377
|
return;
|
|
4176
4378
|
}
|
|
4177
4379
|
this.isRedirecting = true;
|
|
4178
4380
|
this.settingsService.putCurrentCallbackPath();
|
|
4179
|
-
|
|
4381
|
+
defer(() => provider.reauthenticate() ?? EMPTY).subscribe({
|
|
4180
4382
|
error: () => {
|
|
4181
4383
|
this.isRedirecting = false;
|
|
4182
4384
|
},
|
|
4385
|
+
complete: () => {
|
|
4386
|
+
queueMicrotask(() => {
|
|
4387
|
+
this.isRedirecting = false;
|
|
4388
|
+
});
|
|
4389
|
+
},
|
|
4183
4390
|
});
|
|
4184
4391
|
}
|
|
4185
4392
|
addAuthHeader(req, token) {
|
|
@@ -4189,10 +4396,10 @@ class AuthHeadersInterceptor {
|
|
|
4189
4396
|
},
|
|
4190
4397
|
});
|
|
4191
4398
|
}
|
|
4192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4193
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4399
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthHeadersInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4400
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthHeadersInterceptor }); }
|
|
4194
4401
|
}
|
|
4195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthHeadersInterceptor, decorators: [{
|
|
4196
4403
|
type: Injectable
|
|
4197
4404
|
}] });
|
|
4198
4405
|
|
|
@@ -4229,12 +4436,12 @@ class AppCoreModule {
|
|
|
4229
4436
|
],
|
|
4230
4437
|
};
|
|
4231
4438
|
}
|
|
4232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4233
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4439
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4440
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: AppCoreModule, imports: [i2.TranslateModule, LoadingBarHttpClientModule,
|
|
4441
|
+
MsalModule], exports: [TranslateModule,
|
|
4234
4442
|
ClipboardModule,
|
|
4235
|
-
LoadingBarHttpClientModule
|
|
4236
|
-
|
|
4237
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: AppCoreModule, providers: [
|
|
4443
|
+
LoadingBarHttpClientModule] }); }
|
|
4444
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppCoreModule, providers: [
|
|
4238
4445
|
provideAppInitializer(() => {
|
|
4239
4446
|
const initializerFn = (LocaleServiceSettingsFactory)(inject(LocaleSettingsService));
|
|
4240
4447
|
return initializerFn();
|
|
@@ -4270,20 +4477,17 @@ class AppCoreModule {
|
|
|
4270
4477
|
},
|
|
4271
4478
|
}),
|
|
4272
4479
|
LoadingBarHttpClientModule,
|
|
4273
|
-
ToastrModule.forRoot(),
|
|
4274
4480
|
MsalModule, TranslateModule,
|
|
4275
4481
|
ClipboardModule,
|
|
4276
|
-
LoadingBarHttpClientModule
|
|
4277
|
-
ToastrModule] }); }
|
|
4482
|
+
LoadingBarHttpClientModule] }); }
|
|
4278
4483
|
}
|
|
4279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AppCoreModule, decorators: [{
|
|
4280
4485
|
type: NgModule,
|
|
4281
4486
|
args: [{
|
|
4282
4487
|
exports: [
|
|
4283
4488
|
TranslateModule,
|
|
4284
4489
|
ClipboardModule,
|
|
4285
4490
|
LoadingBarHttpClientModule,
|
|
4286
|
-
ToastrModule,
|
|
4287
4491
|
],
|
|
4288
4492
|
imports: [
|
|
4289
4493
|
TranslateModule.forRoot({
|
|
@@ -4297,7 +4501,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
4297
4501
|
},
|
|
4298
4502
|
}),
|
|
4299
4503
|
LoadingBarHttpClientModule,
|
|
4300
|
-
ToastrModule.forRoot(),
|
|
4301
4504
|
MsalModule,
|
|
4302
4505
|
],
|
|
4303
4506
|
providers: [
|
|
@@ -4344,5 +4547,5 @@ function AppSettingsFactory(configuration) {
|
|
|
4344
4547
|
* Generated bundle index. Do not edit.
|
|
4345
4548
|
*/
|
|
4346
4549
|
|
|
4347
|
-
export { AccountMenuComponent, AccountMenuModule, AccountService, ActivityFilterComponent, ActivityFilterModule, ActivityFilterService, AppCoreModule, AppSettings, AppToastrService, AuthProvider, AuthProviderResolver, AzureLoginCallbackComponent, BaseAccountService, ConfirmDialogComponent, ConfirmDialogModule, ContentTypesFormat, CurrentTimeZoneModule, CurrentTimezoneComponent, DebounceDirective, DebounceModule, EntityEditButtonsBarComponent, EntityEditButtonsBarModule, EntityEditComponent, EntityEditFormComponent, EntityEditFormModule, EntityListComponent, EntityListModule, EntityService, EventNames, ExcelExportButtonComponent, ExcelExportButtonModule, FieldCheckBoxInputComponent, FieldCheckBoxInputModule, FieldComponent, FieldDropdownComponent, FieldDropdownModule, FieldDropdownlistComponent, FieldDropdownlistModule, FieldFileSelectComponent, FieldFileSelectModule, FieldFileUploadComponent, FieldFileUploadModule, FieldInputComponent, FieldInputModule, FieldMultiSelectComponent, FieldMultiselectModule, FieldNumericTextBoxInputComponent, FieldNumericTextBoxInputModule, FieldTextAreaComponent, FieldTextAreaModule, FieldTypes, FilterTargets, FooterBarComponent, FooterBarModule, ForbiddenComponent, FormGroupWithErrors, GeneralErrorsComponent, GeneralErrorsModule, HttpCodes, HttpMethods, HttpService, IndiginaConfiguration, IndiginaTreeViewModule, LanguageSelectorComponent, LanguageSelectorModule, LiveUpdatesControlComponent, LiveUpdatesControlModule, LocaleSettingsService, MSALInstanceFactory, MemberTypes, MenuItemGroupComponent, ModalWindowComponent, ModalWindowModule, MulticheckFilterComponent, MulticheckFilterModule, NumberInputComponent, ObjectDropdownComponent, ObjectDropdownModule, Operators, PermissionTypes, PermissionsService, PrettifierFactory, ReEntrySubscription, RequirePermissionDirective, RequirePermissionModule, SKIP_AUTH_TOKEN, SettingsService, SideMenuComponent, SideMenuModule, SignalRService, TopBarModule, TopMenuComponent, TreeViewComponent, TreeViewNodeComponent, UserListAdminComponent, buildActivityEndpoints, buildEntityEndpoints, endpoints, getValueFromFilterByField, urlDeserialize, urlSerialize };
|
|
4550
|
+
export { AccountMenuComponent, AccountMenuModule, AccountService, ActivityFilterComponent, ActivityFilterModule, ActivityFilterService, AppCoreModule, AppSettings, AppToastrService, AuthProvider, AuthProviderResolver, AzureLoginCallbackComponent, BaseAccountService, ConfirmDialogComponent, ConfirmDialogModule, ContentTypesFormat, CreateNewComponent, CurrentTimeZoneModule, CurrentTimezoneComponent, DebounceDirective, DebounceModule, EntityEditButtonsBarComponent, EntityEditButtonsBarModule, EntityEditComponent, EntityEditFormComponent, EntityEditFormModule, EntityListComponent, EntityListModule, EntityService, EventNames, ExcelExportButtonComponent, ExcelExportButtonModule, FieldCheckBoxInputComponent, FieldCheckBoxInputModule, FieldComponent, FieldDropdownComponent, FieldDropdownModule, FieldDropdownlistComponent, FieldDropdownlistModule, FieldFileSelectComponent, FieldFileSelectModule, FieldFileUploadComponent, FieldFileUploadModule, FieldInputComponent, FieldInputModule, FieldMultiSelectComponent, FieldMultiselectModule, FieldNumericTextBoxInputComponent, FieldNumericTextBoxInputModule, FieldTextAreaComponent, FieldTextAreaModule, FieldTypes, FilterTargets, FooterBarComponent, FooterBarModule, ForbiddenComponent, FormGroupWithErrors, GeneralErrorsComponent, GeneralErrorsModule, HttpCodes, HttpMethods, HttpService, IndiginaConfiguration, IndiginaTreeViewModule, LanguageSelectorComponent, LanguageSelectorModule, LiveUpdatesControlComponent, LiveUpdatesControlModule, LocaleSettingsService, MSALInstanceFactory, MemberTypes, MenuItemGroupComponent, ModalWindowComponent, ModalWindowModule, MulticheckFilterComponent, MulticheckFilterModule, NumberInputComponent, ObjectDropdownComponent, ObjectDropdownModule, Operators, PermissionTypes, PermissionsService, PrettifierFactory, ReEntrySubscription, RequirePermissionDirective, RequirePermissionModule, SKIP_AUTH_TOKEN, SettingsService, SideMenuComponent, SideMenuModule, SignalRService, TopBarModule, TopMenuComponent, TreeViewComponent, TreeViewNodeComponent, UserListAdminComponent, buildActivityEndpoints, buildEntityEndpoints, endpoints, getValueFromFilterByField, handleAzureB2CRedirectBridge, urlDeserialize, urlSerialize };
|
|
4348
4551
|
//# sourceMappingURL=indigina-kendo.mjs.map
|