@angular/cdk 21.0.3 → 21.0.6

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.
Files changed (44) hide show
  1. package/LICENSE +1 -1
  2. package/fesm2022/_a11y-module-chunk.mjs +22 -22
  3. package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
  4. package/fesm2022/_directionality-chunk.mjs +3 -3
  5. package/fesm2022/_focus-monitor-chunk.mjs +9 -9
  6. package/fesm2022/_id-generator-chunk.mjs +3 -3
  7. package/fesm2022/_list-key-manager-chunk.mjs +5 -5
  8. package/fesm2022/_list-key-manager-chunk.mjs.map +1 -1
  9. package/fesm2022/_overlay-module-chunk.mjs +49 -38
  10. package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
  11. package/fesm2022/_platform-chunk.mjs +3 -3
  12. package/fesm2022/_style-loader-chunk.mjs +3 -3
  13. package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
  14. package/fesm2022/_visually-hidden-chunk.mjs +3 -3
  15. package/fesm2022/a11y.mjs +9 -9
  16. package/fesm2022/accordion.mjs +10 -10
  17. package/fesm2022/bidi.mjs +7 -7
  18. package/fesm2022/cdk.mjs +1 -1
  19. package/fesm2022/cdk.mjs.map +1 -1
  20. package/fesm2022/clipboard.mjs +10 -10
  21. package/fesm2022/dialog.mjs +10 -10
  22. package/fesm2022/drag-drop.mjs +269 -266
  23. package/fesm2022/drag-drop.mjs.map +1 -1
  24. package/fesm2022/layout.mjs +4 -4
  25. package/fesm2022/listbox.mjs +10 -10
  26. package/fesm2022/menu.mjs +49 -49
  27. package/fesm2022/observers-private.mjs +3 -3
  28. package/fesm2022/observers.mjs +13 -13
  29. package/fesm2022/overlay.mjs +3 -3
  30. package/fesm2022/platform.mjs +4 -4
  31. package/fesm2022/portal.mjs +10 -10
  32. package/fesm2022/scrolling.mjs +40 -40
  33. package/fesm2022/scrolling.mjs.map +1 -1
  34. package/fesm2022/stepper.mjs +22 -22
  35. package/fesm2022/table.mjs +73 -73
  36. package/fesm2022/testing-testbed.mjs +7 -1
  37. package/fesm2022/testing-testbed.mjs.map +1 -1
  38. package/fesm2022/text-field.mjs +16 -16
  39. package/fesm2022/tree.mjs +25 -25
  40. package/package.json +1 -1
  41. package/schematics/ng-add/index.js +1 -1
  42. package/types/_overlay-module-chunk.d.ts +2 -0
  43. package/types/drag-drop.d.ts +23 -7
  44. package/types/testing-testbed.d.ts +3 -0
@@ -245,7 +245,7 @@ class ScrollStrategyOptions {
245
245
  reposition = config => createRepositionScrollStrategy(this._injector, config);
246
246
  static ɵfac = i0.ɵɵngDeclareFactory({
247
247
  minVersion: "12.0.0",
248
- version: "21.0.0",
248
+ version: "21.0.3",
249
249
  ngImport: i0,
250
250
  type: ScrollStrategyOptions,
251
251
  deps: [],
@@ -253,7 +253,7 @@ class ScrollStrategyOptions {
253
253
  });
254
254
  static ɵprov = i0.ɵɵngDeclareInjectable({
255
255
  minVersion: "12.0.0",
256
- version: "21.0.0",
256
+ version: "21.0.3",
257
257
  ngImport: i0,
258
258
  type: ScrollStrategyOptions,
259
259
  providedIn: 'root'
@@ -261,7 +261,7 @@ class ScrollStrategyOptions {
261
261
  }
262
262
  i0.ɵɵngDeclareClassMetadata({
263
263
  minVersion: "12.0.0",
264
- version: "21.0.0",
264
+ version: "21.0.3",
265
265
  ngImport: i0,
266
266
  type: ScrollStrategyOptions,
267
267
  decorators: [{
@@ -367,7 +367,7 @@ class BaseOverlayDispatcher {
367
367
  }
368
368
  static ɵfac = i0.ɵɵngDeclareFactory({
369
369
  minVersion: "12.0.0",
370
- version: "21.0.0",
370
+ version: "21.0.3",
371
371
  ngImport: i0,
372
372
  type: BaseOverlayDispatcher,
373
373
  deps: [],
@@ -375,7 +375,7 @@ class BaseOverlayDispatcher {
375
375
  });
376
376
  static ɵprov = i0.ɵɵngDeclareInjectable({
377
377
  minVersion: "12.0.0",
378
- version: "21.0.0",
378
+ version: "21.0.3",
379
379
  ngImport: i0,
380
380
  type: BaseOverlayDispatcher,
381
381
  providedIn: 'root'
@@ -383,7 +383,7 @@ class BaseOverlayDispatcher {
383
383
  }
384
384
  i0.ɵɵngDeclareClassMetadata({
385
385
  minVersion: "12.0.0",
386
- version: "21.0.0",
386
+ version: "21.0.3",
387
387
  ngImport: i0,
388
388
  type: BaseOverlayDispatcher,
389
389
  decorators: [{
@@ -425,7 +425,7 @@ class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
425
425
  };
426
426
  static ɵfac = i0.ɵɵngDeclareFactory({
427
427
  minVersion: "12.0.0",
428
- version: "21.0.0",
428
+ version: "21.0.3",
429
429
  ngImport: i0,
430
430
  type: OverlayKeyboardDispatcher,
431
431
  deps: null,
@@ -433,7 +433,7 @@ class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
433
433
  });
434
434
  static ɵprov = i0.ɵɵngDeclareInjectable({
435
435
  minVersion: "12.0.0",
436
- version: "21.0.0",
436
+ version: "21.0.3",
437
437
  ngImport: i0,
438
438
  type: OverlayKeyboardDispatcher,
439
439
  providedIn: 'root'
@@ -441,7 +441,7 @@ class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
441
441
  }
442
442
  i0.ɵɵngDeclareClassMetadata({
443
443
  minVersion: "12.0.0",
444
- version: "21.0.0",
444
+ version: "21.0.3",
445
445
  ngImport: i0,
446
446
  type: OverlayKeyboardDispatcher,
447
447
  decorators: [{
@@ -514,7 +514,7 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
514
514
  };
515
515
  static ɵfac = i0.ɵɵngDeclareFactory({
516
516
  minVersion: "12.0.0",
517
- version: "21.0.0",
517
+ version: "21.0.3",
518
518
  ngImport: i0,
519
519
  type: OverlayOutsideClickDispatcher,
520
520
  deps: null,
@@ -522,7 +522,7 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
522
522
  });
523
523
  static ɵprov = i0.ɵɵngDeclareInjectable({
524
524
  minVersion: "12.0.0",
525
- version: "21.0.0",
525
+ version: "21.0.3",
526
526
  ngImport: i0,
527
527
  type: OverlayOutsideClickDispatcher,
528
528
  providedIn: 'root'
@@ -530,7 +530,7 @@ class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
530
530
  }
531
531
  i0.ɵɵngDeclareClassMetadata({
532
532
  minVersion: "12.0.0",
533
- version: "21.0.0",
533
+ version: "21.0.3",
534
534
  ngImport: i0,
535
535
  type: OverlayOutsideClickDispatcher,
536
536
  decorators: [{
@@ -555,7 +555,7 @@ function containsPierceShadowDom(parent, child) {
555
555
  class _CdkOverlayStyleLoader {
556
556
  static ɵfac = i0.ɵɵngDeclareFactory({
557
557
  minVersion: "12.0.0",
558
- version: "21.0.0",
558
+ version: "21.0.3",
559
559
  ngImport: i0,
560
560
  type: _CdkOverlayStyleLoader,
561
561
  deps: [],
@@ -563,7 +563,7 @@ class _CdkOverlayStyleLoader {
563
563
  });
564
564
  static ɵcmp = i0.ɵɵngDeclareComponent({
565
565
  minVersion: "14.0.0",
566
- version: "21.0.0",
566
+ version: "21.0.3",
567
567
  type: _CdkOverlayStyleLoader,
568
568
  isStandalone: true,
569
569
  selector: "ng-component",
@@ -582,7 +582,7 @@ class _CdkOverlayStyleLoader {
582
582
  }
583
583
  i0.ɵɵngDeclareClassMetadata({
584
584
  minVersion: "12.0.0",
585
- version: "21.0.0",
585
+ version: "21.0.3",
586
586
  ngImport: i0,
587
587
  type: _CdkOverlayStyleLoader,
588
588
  decorators: [{
@@ -637,7 +637,7 @@ class OverlayContainer {
637
637
  }
638
638
  static ɵfac = i0.ɵɵngDeclareFactory({
639
639
  minVersion: "12.0.0",
640
- version: "21.0.0",
640
+ version: "21.0.3",
641
641
  ngImport: i0,
642
642
  type: OverlayContainer,
643
643
  deps: [],
@@ -645,7 +645,7 @@ class OverlayContainer {
645
645
  });
646
646
  static ɵprov = i0.ɵɵngDeclareInjectable({
647
647
  minVersion: "12.0.0",
648
- version: "21.0.0",
648
+ version: "21.0.3",
649
649
  ngImport: i0,
650
650
  type: OverlayContainer,
651
651
  providedIn: 'root'
@@ -653,7 +653,7 @@ class OverlayContainer {
653
653
  }
654
654
  i0.ɵɵngDeclareClassMetadata({
655
655
  minVersion: "12.0.0",
656
- version: "21.0.0",
656
+ version: "21.0.3",
657
657
  ngImport: i0,
658
658
  type: OverlayContainer,
659
659
  decorators: [{
@@ -1143,7 +1143,7 @@ class FlexibleConnectedPositionStrategy {
1143
1143
  this._viewportRect = this._getNarrowedViewportRect();
1144
1144
  this._originRect = this._getOriginRect();
1145
1145
  this._overlayRect = this._pane.getBoundingClientRect();
1146
- this._containerRect = this._overlayContainer.getContainerElement().getBoundingClientRect();
1146
+ this._containerRect = this._getContainerRect();
1147
1147
  const originRect = this._originRect;
1148
1148
  const overlayRect = this._overlayRect;
1149
1149
  const viewportRect = this._viewportRect;
@@ -1241,9 +1241,8 @@ class FlexibleConnectedPositionStrategy {
1241
1241
  this._originRect = this._getOriginRect();
1242
1242
  this._overlayRect = this._pane.getBoundingClientRect();
1243
1243
  this._viewportRect = this._getNarrowedViewportRect();
1244
- this._containerRect = this._overlayContainer.getContainerElement().getBoundingClientRect();
1245
- const originPoint = this._getOriginPoint(this._originRect, this._containerRect, lastPosition);
1246
- this._applyPosition(lastPosition, originPoint);
1244
+ this._containerRect = this._getContainerRect();
1245
+ this._applyPosition(lastPosition, this._getOriginPoint(this._originRect, this._containerRect, lastPosition));
1247
1246
  } else {
1248
1247
  this.apply();
1249
1248
  }
@@ -1766,6 +1765,18 @@ class FlexibleConnectedPositionStrategy {
1766
1765
  width
1767
1766
  };
1768
1767
  }
1768
+ _getContainerRect() {
1769
+ const isInlinePopover = this._overlayRef.getConfig().usePopover && this._popoverLocation !== 'global';
1770
+ const element = this._overlayContainer.getContainerElement();
1771
+ if (isInlinePopover) {
1772
+ element.style.display = 'block';
1773
+ }
1774
+ const dimensions = element.getBoundingClientRect();
1775
+ if (isInlinePopover) {
1776
+ element.style.display = '';
1777
+ }
1778
+ return dimensions;
1779
+ }
1769
1780
  }
1770
1781
  function extendStyles(destination, source) {
1771
1782
  for (let key in source) {
@@ -2012,7 +2023,7 @@ class OverlayPositionBuilder {
2012
2023
  }
2013
2024
  static ɵfac = i0.ɵɵngDeclareFactory({
2014
2025
  minVersion: "12.0.0",
2015
- version: "21.0.0",
2026
+ version: "21.0.3",
2016
2027
  ngImport: i0,
2017
2028
  type: OverlayPositionBuilder,
2018
2029
  deps: [],
@@ -2020,7 +2031,7 @@ class OverlayPositionBuilder {
2020
2031
  });
2021
2032
  static ɵprov = i0.ɵɵngDeclareInjectable({
2022
2033
  minVersion: "12.0.0",
2023
- version: "21.0.0",
2034
+ version: "21.0.3",
2024
2035
  ngImport: i0,
2025
2036
  type: OverlayPositionBuilder,
2026
2037
  providedIn: 'root'
@@ -2028,7 +2039,7 @@ class OverlayPositionBuilder {
2028
2039
  }
2029
2040
  i0.ɵɵngDeclareClassMetadata({
2030
2041
  minVersion: "12.0.0",
2031
- version: "21.0.0",
2042
+ version: "21.0.3",
2032
2043
  ngImport: i0,
2033
2044
  type: OverlayPositionBuilder,
2034
2045
  decorators: [{
@@ -2094,7 +2105,7 @@ class Overlay {
2094
2105
  }
2095
2106
  static ɵfac = i0.ɵɵngDeclareFactory({
2096
2107
  minVersion: "12.0.0",
2097
- version: "21.0.0",
2108
+ version: "21.0.3",
2098
2109
  ngImport: i0,
2099
2110
  type: Overlay,
2100
2111
  deps: [],
@@ -2102,7 +2113,7 @@ class Overlay {
2102
2113
  });
2103
2114
  static ɵprov = i0.ɵɵngDeclareInjectable({
2104
2115
  minVersion: "12.0.0",
2105
- version: "21.0.0",
2116
+ version: "21.0.3",
2106
2117
  ngImport: i0,
2107
2118
  type: Overlay,
2108
2119
  providedIn: 'root'
@@ -2110,7 +2121,7 @@ class Overlay {
2110
2121
  }
2111
2122
  i0.ɵɵngDeclareClassMetadata({
2112
2123
  minVersion: "12.0.0",
2113
- version: "21.0.0",
2124
+ version: "21.0.3",
2114
2125
  ngImport: i0,
2115
2126
  type: Overlay,
2116
2127
  decorators: [{
@@ -2155,7 +2166,7 @@ class CdkOverlayOrigin {
2155
2166
  constructor() {}
2156
2167
  static ɵfac = i0.ɵɵngDeclareFactory({
2157
2168
  minVersion: "12.0.0",
2158
- version: "21.0.0",
2169
+ version: "21.0.3",
2159
2170
  ngImport: i0,
2160
2171
  type: CdkOverlayOrigin,
2161
2172
  deps: [],
@@ -2163,7 +2174,7 @@ class CdkOverlayOrigin {
2163
2174
  });
2164
2175
  static ɵdir = i0.ɵɵngDeclareDirective({
2165
2176
  minVersion: "14.0.0",
2166
- version: "21.0.0",
2177
+ version: "21.0.3",
2167
2178
  type: CdkOverlayOrigin,
2168
2179
  isStandalone: true,
2169
2180
  selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]",
@@ -2173,7 +2184,7 @@ class CdkOverlayOrigin {
2173
2184
  }
2174
2185
  i0.ɵɵngDeclareClassMetadata({
2175
2186
  minVersion: "12.0.0",
2176
- version: "21.0.0",
2187
+ version: "21.0.3",
2177
2188
  ngImport: i0,
2178
2189
  type: CdkOverlayOrigin,
2179
2190
  decorators: [{
@@ -2451,7 +2462,7 @@ class CdkConnectedOverlay {
2451
2462
  }
2452
2463
  static ɵfac = i0.ɵɵngDeclareFactory({
2453
2464
  minVersion: "12.0.0",
2454
- version: "21.0.0",
2465
+ version: "21.0.3",
2455
2466
  ngImport: i0,
2456
2467
  type: CdkConnectedOverlay,
2457
2468
  deps: [],
@@ -2459,7 +2470,7 @@ class CdkConnectedOverlay {
2459
2470
  });
2460
2471
  static ɵdir = i0.ɵɵngDeclareDirective({
2461
2472
  minVersion: "16.1.0",
2462
- version: "21.0.0",
2473
+ version: "21.0.3",
2463
2474
  type: CdkConnectedOverlay,
2464
2475
  isStandalone: true,
2465
2476
  selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",
@@ -2505,7 +2516,7 @@ class CdkConnectedOverlay {
2505
2516
  }
2506
2517
  i0.ɵɵngDeclareClassMetadata({
2507
2518
  minVersion: "12.0.0",
2508
- version: "21.0.0",
2519
+ version: "21.0.3",
2509
2520
  ngImport: i0,
2510
2521
  type: CdkConnectedOverlay,
2511
2522
  decorators: [{
@@ -2664,7 +2675,7 @@ i0.ɵɵngDeclareClassMetadata({
2664
2675
  class OverlayModule {
2665
2676
  static ɵfac = i0.ɵɵngDeclareFactory({
2666
2677
  minVersion: "12.0.0",
2667
- version: "21.0.0",
2678
+ version: "21.0.3",
2668
2679
  ngImport: i0,
2669
2680
  type: OverlayModule,
2670
2681
  deps: [],
@@ -2672,7 +2683,7 @@ class OverlayModule {
2672
2683
  });
2673
2684
  static ɵmod = i0.ɵɵngDeclareNgModule({
2674
2685
  minVersion: "14.0.0",
2675
- version: "21.0.0",
2686
+ version: "21.0.3",
2676
2687
  ngImport: i0,
2677
2688
  type: OverlayModule,
2678
2689
  imports: [BidiModule, PortalModule, ScrollingModule, CdkConnectedOverlay, CdkOverlayOrigin],
@@ -2680,7 +2691,7 @@ class OverlayModule {
2680
2691
  });
2681
2692
  static ɵinj = i0.ɵɵngDeclareInjector({
2682
2693
  minVersion: "12.0.0",
2683
- version: "21.0.0",
2694
+ version: "21.0.3",
2684
2695
  ngImport: i0,
2685
2696
  type: OverlayModule,
2686
2697
  providers: [Overlay],
@@ -2689,7 +2700,7 @@ class OverlayModule {
2689
2700
  }
2690
2701
  i0.ɵɵngDeclareClassMetadata({
2691
2702
  minVersion: "12.0.0",
2692
- version: "21.0.0",
2703
+ version: "21.0.3",
2693
2704
  ngImport: i0,
2694
2705
  type: OverlayModule,
2695
2706
  decorators: [{