@indigina/kendo 2.0.27 → 2.0.29
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.
|
@@ -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, Inject, provideAppInitializer } from '@angular/core';
|
|
4
|
+
import { Input, Directive, Component, NgModule, EventEmitter, Output, ChangeDetectionStrategy, HostListener, Injectable, ViewChildren, ViewChild, inject, InjectionToken, Inject, 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';
|
|
@@ -10,7 +10,7 @@ import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
|
10
10
|
import * as i3 from '@progress/kendo-angular-upload';
|
|
11
11
|
import { UploadsModule } from '@progress/kendo-angular-upload';
|
|
12
12
|
import * as i2$2 from '@angular/common/http';
|
|
13
|
-
import { HttpClientModule, HttpClient, HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
13
|
+
import { HttpClientModule, HttpContextToken, HttpClient, HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
14
14
|
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';
|
|
@@ -3884,26 +3884,29 @@ class ModalWindowComponent {
|
|
|
3884
3884
|
constructor(route, router) {
|
|
3885
3885
|
this.route = route;
|
|
3886
3886
|
this.router = router;
|
|
3887
|
+
this.callbackPath = input(...(ngDevMode ? [undefined, { debugName: "callbackPath" }] : []));
|
|
3888
|
+
this.closed = output();
|
|
3887
3889
|
this.opened = true;
|
|
3888
3890
|
}
|
|
3889
3891
|
close() {
|
|
3890
3892
|
this.opened = false;
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3893
|
+
if (this.callbackPath()) {
|
|
3894
|
+
this.router.navigate([this.callbackPath()], {
|
|
3895
|
+
relativeTo: this.route,
|
|
3896
|
+
fragment: this.route.snapshot?.fragment,
|
|
3897
|
+
});
|
|
3898
|
+
}
|
|
3899
|
+
this.closed.emit();
|
|
3895
3900
|
}
|
|
3896
3901
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ModalWindowComponent, deps: [{ token: i1$2.ActivatedRoute }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3897
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: ModalWindowComponent, isStandalone: false, selector: "modal-window", inputs: { callbackPath: "callbackPath", title: "title" }, 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", "themeColor", "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"] }] }); }
|
|
3902
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", 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", "themeColor", "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"] }] }); }
|
|
3898
3903
|
}
|
|
3899
3904
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ModalWindowComponent, decorators: [{
|
|
3900
3905
|
type: Component,
|
|
3901
3906
|
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"] }]
|
|
3902
|
-
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: i1$2.Router }], propDecorators: { callbackPath: [{
|
|
3907
|
+
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: i1$2.Router }], propDecorators: { callbackPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "callbackPath", required: false }] }], title: [{
|
|
3903
3908
|
type: Input
|
|
3904
|
-
}],
|
|
3905
|
-
type: Input
|
|
3906
|
-
}] } });
|
|
3909
|
+
}], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
3907
3910
|
|
|
3908
3911
|
class ModalWindowModule {
|
|
3909
3912
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ModalWindowModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -4137,12 +4140,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
4137
4140
|
}]
|
|
4138
4141
|
}] });
|
|
4139
4142
|
|
|
4143
|
+
const SKIP_AUTH_TOKEN = new HttpContextToken(() => false);
|
|
4144
|
+
|
|
4140
4145
|
class AuthHeadersInterceptor {
|
|
4141
4146
|
constructor() {
|
|
4142
4147
|
this.msalService = inject(MsalService);
|
|
4143
4148
|
}
|
|
4144
4149
|
intercept(req, next) {
|
|
4145
|
-
|
|
4150
|
+
if (req.context.get(SKIP_AUTH_TOKEN)) {
|
|
4151
|
+
return next.handle(req);
|
|
4152
|
+
}
|
|
4153
|
+
return this.msalService.acquireTokenSilent({ scopes: [] }).pipe(switchMap((result) => next.handle(this.addAuthHeader(req, result.idToken))));
|
|
4146
4154
|
}
|
|
4147
4155
|
addAuthHeader(req, token) {
|
|
4148
4156
|
return req.clone({
|
|
@@ -4306,5 +4314,5 @@ function AppSettingsFactory(configuration) {
|
|
|
4306
4314
|
* Generated bundle index. Do not edit.
|
|
4307
4315
|
*/
|
|
4308
4316
|
|
|
4309
|
-
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, SettingsService, SideMenuComponent, SideMenuModule, SignalRService, TopBarModule, TopMenuComponent, TreeViewComponent, TreeViewNodeComponent, UserListAdminComponent, buildActivityEndpoints, buildEntityEndpoints, endpoints, getValueFromFilterByField, urlDeserialize, urlSerialize };
|
|
4317
|
+
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 };
|
|
4310
4318
|
//# sourceMappingURL=indigina-kendo.mjs.map
|