@progress/kendo-angular-popup 24.0.0-develop.20 → 24.0.0-develop.21

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.
@@ -693,8 +693,8 @@ const packageMetadata = {
693
693
  productName: 'Kendo UI for Angular',
694
694
  productCode: 'KENDOUIANGULAR',
695
695
  productCodes: ['KENDOUIANGULAR'],
696
- publishDate: 1778149308,
697
- version: '24.0.0-develop.20',
696
+ publishDate: 1778160869,
697
+ version: '24.0.0-develop.21',
698
698
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
699
699
  };
700
700
 
@@ -901,6 +901,7 @@ class PopupComponent {
901
901
  set currentOffset(offset) {
902
902
  this.setContainerStyle('left', `${offset.left}px`);
903
903
  this.setContainerStyle('top', `${offset.top}px`);
904
+ this.setContainerStyle('margin', this.hasCustomOffset ? '0' : null);
904
905
  this._currentOffset = offset;
905
906
  }
906
907
  setZIndex() {
@@ -967,6 +968,10 @@ class PopupComponent {
967
968
  this._renderer[action](this.container.nativeElement, ANIMATION_CONTAINER_FIXED);
968
969
  }
969
970
  setContainerStyle(name, value) {
971
+ if (value === null) {
972
+ this._renderer.removeStyle(this.container.nativeElement, name);
973
+ return;
974
+ }
970
975
  this._renderer.setStyle(this.container.nativeElement, name, value);
971
976
  }
972
977
  unsubscribeReposition() {
@@ -974,6 +979,9 @@ class PopupComponent {
974
979
  this.repositionSubscription.unsubscribe();
975
980
  }
976
981
  }
982
+ get hasCustomOffset() {
983
+ return this.offset.left !== DEFAULT_OFFSET.left || this.offset.top !== DEFAULT_OFFSET.top;
984
+ }
977
985
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: PopupComponent, deps: [{ token: i0.ElementRef }, { token: AlignService }, { token: DOMService }, { token: PositionService }, { token: ResizeService }, { token: ScrollableService }, { token: AnimationService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
978
986
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: PopupComponent, isStandalone: true, selector: "kendo-popup", inputs: { animate: "animate", anchor: "anchor", anchorAlign: "anchorAlign", collision: "collision", popupAlign: "popupAlign", copyAnchorStyles: "copyAnchorStyles", popupClass: "popupClass", positionMode: "positionMode", offset: "offset", margin: "margin" }, outputs: { anchorViewportLeave: "anchorViewportLeave", close: "close", open: "open", positionChange: "positionChange" }, providers: [AlignService, AnimationService, DOMService, PositionService, ResizeService, ScrollableService], viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "resizeSensor", first: true, predicate: ResizeSensorComponent, descendants: true, static: true }], exportAs: ["kendo-popup"], usesOnChanges: true, ngImport: i0, template: `
979
987
  <div class="k-child-animation-container">
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1778149308,
11
- "version": "24.0.0-develop.20",
10
+ "publishDate": 1778160869,
11
+ "version": "24.0.0-develop.21",
12
12
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-popup",
3
- "version": "24.0.0-develop.20",
3
+ "version": "24.0.0-develop.21",
4
4
  "description": "Kendo UI Angular Popup component - an easily customized popup from the most trusted provider of professional Angular components.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -34,7 +34,7 @@
34
34
  "package": {
35
35
  "productName": "Kendo UI for Angular",
36
36
  "productCode": "KENDOUIANGULAR",
37
- "publishDate": 1778149308,
37
+ "publishDate": 1778160869,
38
38
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
39
39
  }
40
40
  },
@@ -43,14 +43,14 @@
43
43
  "@angular/common": "19 - 21",
44
44
  "@angular/core": "19 - 21",
45
45
  "@angular/platform-browser": "19 - 21",
46
- "@progress/kendo-angular-common": "24.0.0-develop.20",
46
+ "@progress/kendo-angular-common": "24.0.0-develop.21",
47
47
  "@progress/kendo-licensing": "^1.11.0",
48
48
  "rxjs": "^6.5.3 || ^7.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "@progress/kendo-popup-common": "1.9.5",
52
52
  "tslib": "^2.3.1",
53
- "@progress/kendo-angular-schematics": "24.0.0-develop.20"
53
+ "@progress/kendo-angular-schematics": "24.0.0-develop.21"
54
54
  },
55
55
  "schematics": "./schematics/collection.json",
56
56
  "module": "fesm2022/progress-kendo-angular-popup.mjs",
@@ -151,6 +151,7 @@ export declare class PopupComponent implements AfterViewInit, OnInit, OnChanges,
151
151
  private updateFixedClass;
152
152
  private setContainerStyle;
153
153
  private unsubscribeReposition;
154
+ private get hasCustomOffset();
154
155
  static ɵfac: i0.ɵɵFactoryDeclaration<PopupComponent, never>;
155
156
  static ɵcmp: i0.ɵɵComponentDeclaration<PopupComponent, "kendo-popup", ["kendo-popup"], { "animate": { "alias": "animate"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; "anchorAlign": { "alias": "anchorAlign"; "required": false; }; "collision": { "alias": "collision"; "required": false; }; "popupAlign": { "alias": "popupAlign"; "required": false; }; "copyAnchorStyles": { "alias": "copyAnchorStyles"; "required": false; }; "popupClass": { "alias": "popupClass"; "required": false; }; "positionMode": { "alias": "positionMode"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "margin": { "alias": "margin"; "required": false; }; }, { "anchorViewportLeave": "anchorViewportLeave"; "close": "close"; "open": "open"; "positionChange": "positionChange"; }, never, ["*"], true, never>;
156
157
  }