@indigina/kendo 2.0.13 → 2.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/indigina-kendo.mjs +15 -14
- package/fesm2022/indigina-kendo.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/package.json +1 -1
|
@@ -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, InjectionToken, Inject,
|
|
4
|
+
import { Input, Directive, Component, NgModule, EventEmitter, Output, ChangeDetectionStrategy, HostListener, Injectable, ViewChildren, ViewChild, inject, InjectionToken, Inject, 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';
|
|
@@ -21,14 +21,14 @@ import { toODataString, distinct, filterBy } from '@progress/kendo-data-query';
|
|
|
21
21
|
import * as i1$1 from 'ngx-toastr';
|
|
22
22
|
import { ToastrModule } from 'ngx-toastr';
|
|
23
23
|
import * as i1$2 from '@angular/router';
|
|
24
|
-
import { NavigationEnd, RouterModule } from '@angular/router';
|
|
24
|
+
import { NavigationEnd, RouterModule, Router } from '@angular/router';
|
|
25
25
|
import XmlBeautify from 'xml-beautify';
|
|
26
26
|
import * as i1$4 from 'ngx-clipboard';
|
|
27
27
|
import { ClipboardModule } from 'ngx-clipboard';
|
|
28
28
|
import { TreeViewModule } from '@progress/kendo-angular-treeview';
|
|
29
|
-
import { InteractionRequiredAuthError, BrowserCacheLocation, PublicClientApplication } from '@azure/msal-browser';
|
|
29
|
+
import { InteractionRequiredAuthError, EventType, BrowserCacheLocation, PublicClientApplication } from '@azure/msal-browser';
|
|
30
30
|
import * as i1$5 from '@azure/msal-angular';
|
|
31
|
-
import { MsalService, MsalModule } from '@azure/msal-angular';
|
|
31
|
+
import { MsalBroadcastService, MsalService, MsalModule } from '@azure/msal-angular';
|
|
32
32
|
import * as signalR from '@microsoft/signalr';
|
|
33
33
|
import * as i3$2 from '@progress/kendo-angular-popup';
|
|
34
34
|
import { PopupModule } from '@progress/kendo-angular-popup';
|
|
@@ -415,7 +415,7 @@ class FieldFileSelectComponent extends FieldComponent {
|
|
|
415
415
|
this.filesSelected = new EventEmitter();
|
|
416
416
|
}
|
|
417
417
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: FieldFileSelectComponent, deps: [{ token: i1.FormGroupDirective }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
418
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", 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-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: [
|
|
418
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", 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
419
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
420
420
|
] }); }
|
|
421
421
|
}
|
|
@@ -423,7 +423,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
423
423
|
type: Component,
|
|
424
424
|
args: [{ selector: 'field-file-select', viewProviders: [
|
|
425
425
|
{ provide: ControlContainer, useExisting: FormGroupDirective },
|
|
426
|
-
], standalone: false, 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-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"] }]
|
|
426
|
+
], standalone: false, 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"] }]
|
|
427
427
|
}], ctorParameters: () => [{ type: i1.FormGroupDirective }, { type: i0.ElementRef }], propDecorators: { labelKey: [{
|
|
428
428
|
type: Input
|
|
429
429
|
}], placeholderKey: [{
|
|
@@ -2055,10 +2055,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
2055
2055
|
|
|
2056
2056
|
const resetPasswordCanceledErrorCode = 'AADB2C90091';
|
|
2057
2057
|
class AzureLoginCallbackComponent {
|
|
2058
|
-
constructor(
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2061
|
-
this.
|
|
2058
|
+
constructor() {
|
|
2059
|
+
this.msalBroadcastService = inject(MsalBroadcastService);
|
|
2060
|
+
this.router = inject(Router);
|
|
2061
|
+
this.settingsService = inject(SettingsService);
|
|
2062
|
+
this.authService = inject(MsalService);
|
|
2062
2063
|
}
|
|
2063
2064
|
ngOnInit() {
|
|
2064
2065
|
this.authService.handleRedirectObservable().subscribe((result) => {
|
|
@@ -2072,21 +2073,21 @@ class AzureLoginCallbackComponent {
|
|
|
2072
2073
|
this.router.navigate(['home']);
|
|
2073
2074
|
}
|
|
2074
2075
|
});
|
|
2076
|
+
this.msalBroadcastService.msalSubject$.pipe(filter(({ eventType }) => eventType === EventType.ACQUIRE_TOKEN_FAILURE || eventType === EventType.LOGIN_FAILURE)).subscribe(() => this.authService.logoutRedirect());
|
|
2075
2077
|
}
|
|
2076
2078
|
logout() {
|
|
2077
2079
|
this.authService.logout();
|
|
2078
2080
|
}
|
|
2079
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AzureLoginCallbackComponent, deps: [
|
|
2080
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: AzureLoginCallbackComponent, isStandalone:
|
|
2081
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AzureLoginCallbackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2082
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.6", type: AzureLoginCallbackComponent, isStandalone: true, selector: "lib-azure-login", ngImport: i0, template: '', isInline: true }); }
|
|
2081
2083
|
}
|
|
2082
2084
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AzureLoginCallbackComponent, decorators: [{
|
|
2083
2085
|
type: Component,
|
|
2084
2086
|
args: [{
|
|
2085
2087
|
selector: 'lib-azure-login',
|
|
2086
2088
|
template: '',
|
|
2087
|
-
standalone: false
|
|
2088
2089
|
}]
|
|
2089
|
-
}]
|
|
2090
|
+
}] });
|
|
2090
2091
|
|
|
2091
2092
|
const isIE = window.navigator.userAgent.includes('MSIE ') ||
|
|
2092
2093
|
window.navigator.userAgent.includes('Trident/');
|