@progress/kendo-angular-popup 24.0.0-develop.3 → 24.0.0-develop.31

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.
@@ -153,7 +153,17 @@ const zIndex = (anchor, container) => {
153
153
  const result = [anchor].concat(parents(anchor, sibling)).reduce((index, p) => {
154
154
  const zIndexStyle = p.style.zIndex || window.getComputedStyle(p).zIndex;
155
155
  const current = parseInt(zIndexStyle, 10);
156
- return current > index ? current : index;
156
+ const updatedIndex = isNaN(current) ? index : Math.max(current, index);
157
+ if (!p.parentElement) {
158
+ return updatedIndex;
159
+ }
160
+ // Also check siblings of each ancestor to account for sibling stacking contexts
161
+ // that may have a higher z-index than the anchor's ancestors (e.g., pinned row containers)
162
+ return Array.from(p.parentElement.children).reduce((sibMax, sibl) => {
163
+ const sibZIndex = sibl.style.zIndex || window.getComputedStyle(sibl).zIndex;
164
+ const sibCurrent = parseInt(sibZIndex, 10);
165
+ return isNaN(sibCurrent) ? sibMax : Math.max(sibCurrent, sibMax);
166
+ }, updatedIndex);
157
167
  }, 0);
158
168
  return result ? (result + 1) : null;
159
169
  };
@@ -683,8 +693,8 @@ const packageMetadata = {
683
693
  productName: 'Kendo UI for Angular',
684
694
  productCode: 'KENDOUIANGULAR',
685
695
  productCodes: ['KENDOUIANGULAR'],
686
- publishDate: 1776940353,
687
- version: '24.0.0-develop.3',
696
+ publishDate: 1778841538,
697
+ version: '24.0.0-develop.31',
688
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'
689
699
  };
690
700
 
@@ -891,6 +901,7 @@ class PopupComponent {
891
901
  set currentOffset(offset) {
892
902
  this.setContainerStyle('left', `${offset.left}px`);
893
903
  this.setContainerStyle('top', `${offset.top}px`);
904
+ this.setContainerStyle('margin', this.hasCustomOffset ? '0' : null);
894
905
  this._currentOffset = offset;
895
906
  }
896
907
  setZIndex() {
@@ -957,6 +968,10 @@ class PopupComponent {
957
968
  this._renderer[action](this.container.nativeElement, ANIMATION_CONTAINER_FIXED);
958
969
  }
959
970
  setContainerStyle(name, value) {
971
+ if (value === null) {
972
+ this._renderer.removeStyle(this.container.nativeElement, name);
973
+ return;
974
+ }
960
975
  this._renderer.setStyle(this.container.nativeElement, name, value);
961
976
  }
962
977
  unsubscribeReposition() {
@@ -964,6 +979,9 @@ class PopupComponent {
964
979
  this.repositionSubscription.unsubscribe();
965
980
  }
966
981
  }
982
+ get hasCustomOffset() {
983
+ return this.offset.left !== DEFAULT_OFFSET.left || this.offset.top !== DEFAULT_OFFSET.top;
984
+ }
967
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 });
968
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: `
969
987
  <div class="k-child-animation-container">
@@ -7,7 +7,7 @@ export const packageMetadata = {
7
7
  "productCodes": [
8
8
  "KENDOUIANGULAR"
9
9
  ],
10
- "publishDate": 1776940353,
11
- "version": "24.0.0-develop.3",
10
+ "publishDate": 1778841538,
11
+ "version": "24.0.0-develop.31",
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.3",
3
+ "version": "24.0.0-develop.31",
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": 1776940353,
37
+ "publishDate": 1778841538,
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.3",
46
+ "@progress/kendo-angular-common": "24.0.0-develop.31",
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.3"
53
+ "@progress/kendo-angular-schematics": "24.0.0-develop.31"
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
  }