@indigina/kendo 2.0.12 → 2.0.14

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.
@@ -15,7 +15,7 @@ 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, from, tap as tap$1, map as map$1, takeUntil, switchMap } from 'rxjs';
18
+ import { BehaviorSubject, Subject, of, throwError, map as map$1, from, tap as tap$1, takeUntil, switchMap } from 'rxjs';
19
19
  import { map, mergeMap, debounceTime, catchError, tap, filter, take, finalize } from 'rxjs/operators';
20
20
  import { toODataString, distinct, filterBy } from '@progress/kendo-data-query';
21
21
  import * as i1$1 from 'ngx-toastr';
@@ -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: [{
@@ -1792,18 +1792,15 @@ class AzureB2CProvider extends AuthProvider {
1792
1792
  const request = {
1793
1793
  scopes: ['openid', 'offline_access', 'profile'],
1794
1794
  };
1795
- return from(this.authService.instance
1796
- .acquireTokenSilent(request)
1797
- .then((authenticationResult) => {
1795
+ return this.authService.acquireTokenSilent(request).pipe(map$1((authenticationResult) => {
1798
1796
  const token = authenticationResult.idToken;
1799
1797
  this.settingsService.setToken(token);
1800
1798
  return token;
1801
- })
1802
- .catch(async (error) => {
1799
+ }), catchError((error) => {
1803
1800
  if (error instanceof InteractionRequiredAuthError) {
1804
- await this.authService.instance.acquireTokenRedirect(request);
1805
- return this.settingsService.getToken();
1801
+ this.authService.loginRedirect(request).subscribe();
1806
1802
  }
1803
+ return throwError(() => error);
1807
1804
  }));
1808
1805
  }
1809
1806
  }