@indigina/kendo 2.0.26 → 2.0.28

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';
@@ -1080,7 +1080,7 @@ class HttpService {
1080
1080
  delete(path) {
1081
1081
  return this.httpClient.delete(this.createUrl(path)).pipe(tap(() => this.showSuccessMessage('ToastrMessages.RemovedSuccessfully')), catchError((err) => this.handleServerError(err)));
1082
1082
  }
1083
- post(path, data, showSuccessMessage = true, successTranslateMessage = null) {
1083
+ post(path, data, successTranslateMessage = null, showSuccessMessage = true) {
1084
1084
  return this.httpClient.post(this.createUrl(path), data).pipe(tap(() => {
1085
1085
  if (showSuccessMessage) {
1086
1086
  this.showSuccessMessage(successTranslateMessage ?? 'ToastrMessages.SavedSuccessfully');
@@ -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
- this.router.navigate([this.callbackPath], {
3892
- relativeTo: this.route,
3893
- fragment: this.route.snapshot?.fragment,
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: [{
3903
- type: Input
3904
- }], title: [{
3907
+ }], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: i1$2.Router }], propDecorators: { callbackPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "callbackPath", required: false }] }], title: [{
3905
3908
  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 }); }