@angular/cdk 19.1.0-next.3 → 19.1.0

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 (55) hide show
  1. package/LICENSE +1 -1
  2. package/a11y/index.d.ts +3 -4
  3. package/drag-drop/index.d.ts +0 -4
  4. package/fesm2022/a11y.mjs +81 -82
  5. package/fesm2022/a11y.mjs.map +1 -1
  6. package/fesm2022/accordion.mjs +10 -10
  7. package/fesm2022/accordion.mjs.map +1 -1
  8. package/fesm2022/bidi.mjs +10 -10
  9. package/fesm2022/bidi.mjs.map +1 -1
  10. package/fesm2022/cdk.mjs +1 -1
  11. package/fesm2022/cdk.mjs.map +1 -1
  12. package/fesm2022/clipboard.mjs +10 -10
  13. package/fesm2022/clipboard.mjs.map +1 -1
  14. package/fesm2022/collections.mjs +3 -3
  15. package/fesm2022/collections.mjs.map +1 -1
  16. package/fesm2022/dialog.mjs +10 -10
  17. package/fesm2022/dialog.mjs.map +1 -1
  18. package/fesm2022/drag-drop.mjs +93 -86
  19. package/fesm2022/drag-drop.mjs.map +1 -1
  20. package/fesm2022/layout.mjs +10 -10
  21. package/fesm2022/layout.mjs.map +1 -1
  22. package/fesm2022/listbox.mjs +10 -10
  23. package/fesm2022/listbox.mjs.map +1 -1
  24. package/fesm2022/menu.mjs +78 -52
  25. package/fesm2022/menu.mjs.map +1 -1
  26. package/fesm2022/observers/private.mjs +3 -3
  27. package/fesm2022/observers/private.mjs.map +1 -1
  28. package/fesm2022/observers.mjs +13 -13
  29. package/fesm2022/observers.mjs.map +1 -1
  30. package/fesm2022/overlay.mjs +58 -51
  31. package/fesm2022/overlay.mjs.map +1 -1
  32. package/fesm2022/platform.mjs +7 -7
  33. package/fesm2022/platform.mjs.map +1 -1
  34. package/fesm2022/portal.mjs +16 -16
  35. package/fesm2022/portal.mjs.map +1 -1
  36. package/fesm2022/private.mjs +6 -6
  37. package/fesm2022/private.mjs.map +1 -1
  38. package/fesm2022/scrolling.mjs +36 -35
  39. package/fesm2022/scrolling.mjs.map +1 -1
  40. package/fesm2022/stepper.mjs +22 -22
  41. package/fesm2022/stepper.mjs.map +1 -1
  42. package/fesm2022/table.mjs +226 -182
  43. package/fesm2022/table.mjs.map +1 -1
  44. package/fesm2022/text-field.mjs +33 -29
  45. package/fesm2022/text-field.mjs.map +1 -1
  46. package/fesm2022/tree.mjs +47 -29
  47. package/fesm2022/tree.mjs.map +1 -1
  48. package/menu/index.d.ts +7 -1
  49. package/overlay/index.d.ts +1 -2
  50. package/package.json +3 -3
  51. package/schematics/ng-add/index.js +1 -1
  52. package/schematics/ng-add/index.mjs +1 -1
  53. package/table/index.d.ts +12 -1
  54. package/text-field/index.d.ts +0 -1
  55. package/tree/index.d.ts +2 -0
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, Component, ViewEncapsulation, ChangeDetectionStrategy, inject, NgZone, RendererFactory2, Injectable, InjectionToken, ElementRef, booleanAttribute, Directive, Input, ViewContainerRef, ChangeDetectorRef, EventEmitter, Injector, afterNextRender, numberAttribute, Output, TemplateRef, NgModule } from '@angular/core';
2
+ import { signal, Component, ViewEncapsulation, ChangeDetectionStrategy, inject, NgZone, Injectable, RendererFactory2, InjectionToken, ElementRef, booleanAttribute, Directive, Input, ViewContainerRef, ChangeDetectorRef, EventEmitter, Injector, afterNextRender, numberAttribute, Output, TemplateRef, NgModule } from '@angular/core';
3
3
  import { DOCUMENT } from '@angular/common';
4
4
  import { ViewportRuler, ScrollDispatcher, CdkScrollableModule } from '@angular/cdk/scrolling';
5
5
  import { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader, _IdGenerator } from '@angular/cdk/a11y';
6
6
  import { coerceElement, coerceNumberProperty, coerceArray } from '@angular/cdk/coercion';
7
- import { _getEventTarget, _bindEventWithOptions, _getShadowRoot } from '@angular/cdk/platform';
7
+ import { _getEventTarget, normalizePassiveListenerOptions, _getShadowRoot } from '@angular/cdk/platform';
8
8
  import { Subject, Subscription, interval, animationFrameScheduler, Observable, merge, BehaviorSubject } from 'rxjs';
9
9
  import { takeUntil, map, take, tap, switchMap, startWith } from 'rxjs/operators';
10
10
  import { _CdkPrivateStyleLoader } from '@angular/cdk/private';
@@ -445,14 +445,14 @@ function supportsPopover(element) {
445
445
  }
446
446
 
447
447
  /** Options that can be used to bind a passive event listener. */
448
- const passiveEventListenerOptions = { passive: true };
448
+ const passiveEventListenerOptions = normalizePassiveListenerOptions({ passive: true });
449
449
  /** Options that can be used to bind an active event listener. */
450
- const activeEventListenerOptions = { passive: false };
450
+ const activeEventListenerOptions = normalizePassiveListenerOptions({ passive: false });
451
451
  /** Event options that can be used to bind an active, capturing event. */
452
- const activeCapturingEventOptions$1 = {
452
+ const activeCapturingEventOptions$1 = normalizePassiveListenerOptions({
453
453
  passive: false,
454
454
  capture: true,
455
- };
455
+ });
456
456
  /**
457
457
  * Time in milliseconds for which to ignore mouse events, after
458
458
  * receiving a touch event. Used to avoid doing double work for
@@ -475,8 +475,6 @@ class DragRef {
475
475
  _viewportRuler;
476
476
  _dragDropRegistry;
477
477
  _renderer;
478
- _rootElementCleanups;
479
- _cleanupShadowRootSelectStart;
480
478
  /** Element displayed next to the user's pointer while the element is dragged. */
481
479
  _preview;
482
480
  /** Container into which to insert the preview. */
@@ -711,12 +709,14 @@ class DragRef {
711
709
  withRootElement(rootElement) {
712
710
  const element = coerceElement(rootElement);
713
711
  if (element !== this._rootElement) {
714
- this._removeRootElementListeners();
715
- this._rootElementCleanups = this._ngZone.runOutsideAngular(() => [
716
- _bindEventWithOptions(this._renderer, element, 'mousedown', this._pointerDown, activeEventListenerOptions),
717
- _bindEventWithOptions(this._renderer, element, 'touchstart', this._pointerDown, passiveEventListenerOptions),
718
- _bindEventWithOptions(this._renderer, element, 'dragstart', this._nativeDragStart, activeEventListenerOptions),
719
- ]);
712
+ if (this._rootElement) {
713
+ this._removeRootElementListeners(this._rootElement);
714
+ }
715
+ this._ngZone.runOutsideAngular(() => {
716
+ element.addEventListener('mousedown', this._pointerDown, activeEventListenerOptions);
717
+ element.addEventListener('touchstart', this._pointerDown, passiveEventListenerOptions);
718
+ element.addEventListener('dragstart', this._nativeDragStart, activeEventListenerOptions);
719
+ });
720
720
  this._initialTransform = undefined;
721
721
  this._rootElement = element;
722
722
  }
@@ -745,7 +745,7 @@ class DragRef {
745
745
  }
746
746
  /** Removes the dragging functionality from the DOM element. */
747
747
  dispose() {
748
- this._removeRootElementListeners();
748
+ this._removeRootElementListeners(this._rootElement);
749
749
  // Do this check before removing from the registry since it'll
750
750
  // stop being considered as dragged once it is removed.
751
751
  if (this.isDragging()) {
@@ -859,8 +859,7 @@ class DragRef {
859
859
  this._pointerMoveSubscription.unsubscribe();
860
860
  this._pointerUpSubscription.unsubscribe();
861
861
  this._scrollSubscription.unsubscribe();
862
- this._cleanupShadowRootSelectStart?.();
863
- this._cleanupShadowRootSelectStart = undefined;
862
+ this._getShadowRoot()?.removeEventListener('selectstart', shadowDomSelectStart, activeCapturingEventOptions$1);
864
863
  }
865
864
  /** Destroys the preview element and its ViewRef. */
866
865
  _destroyPreview() {
@@ -1025,7 +1024,7 @@ class DragRef {
1025
1024
  // In some browsers the global `selectstart` that we maintain in the `DragDropRegistry`
1026
1025
  // doesn't cross the shadow boundary so we have to prevent it at the shadow root (see #28792).
1027
1026
  this._ngZone.runOutsideAngular(() => {
1028
- this._cleanupShadowRootSelectStart = _bindEventWithOptions(this._renderer, shadowRoot, 'selectstart', shadowDomSelectStart, activeCapturingEventOptions$1);
1027
+ shadowRoot.addEventListener('selectstart', shadowDomSelectStart, activeCapturingEventOptions$1);
1029
1028
  });
1030
1029
  }
1031
1030
  if (dropContainer) {
@@ -1395,9 +1394,10 @@ class DragRef {
1395
1394
  }
1396
1395
  }
1397
1396
  /** Removes the manually-added event listeners from the root element. */
1398
- _removeRootElementListeners() {
1399
- this._rootElementCleanups?.forEach(cleanup => cleanup());
1400
- this._rootElementCleanups = undefined;
1397
+ _removeRootElementListeners(element) {
1398
+ element.removeEventListener('mousedown', this._pointerDown, activeEventListenerOptions);
1399
+ element.removeEventListener('touchstart', this._pointerDown, passiveEventListenerOptions);
1400
+ element.removeEventListener('dragstart', this._nativeDragStart, activeEventListenerOptions);
1401
1401
  }
1402
1402
  /**
1403
1403
  * Applies a `transform` to the root element, taking into account any existing transforms on it.
@@ -2949,24 +2949,20 @@ function getElementScrollDirections(element, clientRect, direction, pointerX, po
2949
2949
  return [verticalScrollDirection, horizontalScrollDirection];
2950
2950
  }
2951
2951
 
2952
- /** Event options that can be used to bind a capturing event. */
2953
- const capturingEventOptions = {
2954
- capture: true,
2955
- };
2956
2952
  /** Event options that can be used to bind an active, capturing event. */
2957
- const activeCapturingEventOptions = {
2953
+ const activeCapturingEventOptions = normalizePassiveListenerOptions({
2958
2954
  passive: false,
2959
2955
  capture: true,
2960
- };
2956
+ });
2961
2957
  /**
2962
2958
  * Component used to load the drag&drop reset styles.
2963
2959
  * @docs-private
2964
2960
  */
2965
2961
  class _ResetsLoader {
2966
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
2967
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0-next.3", type: _ResetsLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-drag-resets-container": "" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2962
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
2963
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.0-rc.0", type: _ResetsLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-drag-resets-container": "" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2968
2964
  }
2969
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: _ResetsLoader, decorators: [{
2965
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: _ResetsLoader, decorators: [{
2970
2966
  type: Component,
2971
2967
  args: [{ encapsulation: ViewEncapsulation.None, template: '', changeDetection: ChangeDetectionStrategy.OnPush, host: { 'cdk-drag-resets-container': '' }, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"] }]
2972
2968
  }] });
@@ -2980,8 +2976,6 @@ class DragDropRegistry {
2980
2976
  _ngZone = inject(NgZone);
2981
2977
  _document = inject(DOCUMENT);
2982
2978
  _styleLoader = inject(_CdkPrivateStyleLoader);
2983
- _renderer = inject(RendererFactory2).createRenderer(null, null);
2984
- _cleanupDocumentTouchmove;
2985
2979
  /** Registered drop container instances. */
2986
2980
  _dropInstances = new Set();
2987
2981
  /** Registered drag item instances. */
@@ -2989,7 +2983,7 @@ class DragDropRegistry {
2989
2983
  /** Drag item instances that are currently being dragged. */
2990
2984
  _activeDragInstances = signal([]);
2991
2985
  /** Keeps track of the event listeners that we've bound to the `document`. */
2992
- _globalListeners;
2986
+ _globalListeners = new Map();
2993
2987
  /**
2994
2988
  * Predicate function to check if an item is being dragged. Moved out into a property,
2995
2989
  * because it'll be called a lot and we don't want to create a new function every time.
@@ -3034,8 +3028,7 @@ class DragDropRegistry {
3034
3028
  this._ngZone.runOutsideAngular(() => {
3035
3029
  // The event handler has to be explicitly active,
3036
3030
  // because newer browsers make it passive by default.
3037
- this._cleanupDocumentTouchmove?.();
3038
- this._cleanupDocumentTouchmove = _bindEventWithOptions(this._renderer, this._document, 'touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);
3031
+ this._document.addEventListener('touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);
3039
3032
  });
3040
3033
  }
3041
3034
  }
@@ -3048,7 +3041,7 @@ class DragDropRegistry {
3048
3041
  this._dragInstances.delete(drag);
3049
3042
  this.stopDragging(drag);
3050
3043
  if (this._dragInstances.size === 0) {
3051
- this._cleanupDocumentTouchmove?.();
3044
+ this._document.removeEventListener('touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);
3052
3045
  }
3053
3046
  }
3054
3047
  /**
@@ -3068,34 +3061,44 @@ class DragDropRegistry {
3068
3061
  // passive ones for `mousemove` and `touchmove`. The events need to be active, because we
3069
3062
  // use `preventDefault` to prevent the page from scrolling while the user is dragging.
3070
3063
  const isTouchEvent = event.type.startsWith('touch');
3071
- const endEventHandler = (e) => this.pointerUp.next(e);
3072
- const toBind = [
3064
+ const endEventHandler = {
3065
+ handler: (e) => this.pointerUp.next(e),
3066
+ options: true,
3067
+ };
3068
+ if (isTouchEvent) {
3069
+ this._globalListeners.set('touchend', endEventHandler);
3070
+ this._globalListeners.set('touchcancel', endEventHandler);
3071
+ }
3072
+ else {
3073
+ this._globalListeners.set('mouseup', endEventHandler);
3074
+ }
3075
+ this._globalListeners
3076
+ .set('scroll', {
3077
+ handler: (e) => this.scroll.next(e),
3073
3078
  // Use capturing so that we pick up scroll changes in any scrollable nodes that aren't
3074
3079
  // the document. See https://github.com/angular/components/issues/17144.
3075
- ['scroll', (e) => this.scroll.next(e), capturingEventOptions],
3080
+ options: true,
3081
+ })
3076
3082
  // Preventing the default action on `mousemove` isn't enough to disable text selection
3077
3083
  // on Safari so we need to prevent the selection event as well. Alternatively this can
3078
3084
  // be done by setting `user-select: none` on the `body`, however it has causes a style
3079
3085
  // recalculation which can be expensive on pages with a lot of elements.
3080
- ['selectstart', this._preventDefaultWhileDragging, activeCapturingEventOptions],
3081
- ];
3082
- if (isTouchEvent) {
3083
- toBind.push(['touchend', endEventHandler, capturingEventOptions], ['touchcancel', endEventHandler, capturingEventOptions]);
3084
- }
3085
- else {
3086
- toBind.push(['mouseup', endEventHandler, capturingEventOptions]);
3087
- }
3086
+ .set('selectstart', {
3087
+ handler: this._preventDefaultWhileDragging,
3088
+ options: activeCapturingEventOptions,
3089
+ });
3088
3090
  // We don't have to bind a move event for touch drag sequences, because
3089
3091
  // we already have a persistent global one bound from `registerDragItem`.
3090
3092
  if (!isTouchEvent) {
3091
- toBind.push([
3092
- 'mousemove',
3093
- (e) => this.pointerMove.next(e),
3094
- activeCapturingEventOptions,
3095
- ]);
3093
+ this._globalListeners.set('mousemove', {
3094
+ handler: (e) => this.pointerMove.next(e),
3095
+ options: activeCapturingEventOptions,
3096
+ });
3096
3097
  }
3097
3098
  this._ngZone.runOutsideAngular(() => {
3098
- this._globalListeners = toBind.map(([name, handler, options]) => _bindEventWithOptions(this._renderer, this._document, name, handler, options));
3099
+ this._globalListeners.forEach((config, name) => {
3100
+ this._document.addEventListener(name, config.handler, config.options);
3101
+ });
3099
3102
  });
3100
3103
  }
3101
3104
  }
@@ -3132,13 +3135,15 @@ class DragDropRegistry {
3132
3135
  // `fromEvent` it'll only happen if the subscription is outside the `NgZone`.
3133
3136
  streams.push(new Observable((observer) => {
3134
3137
  return this._ngZone.runOutsideAngular(() => {
3135
- const cleanup = _bindEventWithOptions(this._renderer, shadowRoot, 'scroll', (event) => {
3138
+ const eventOptions = true;
3139
+ const callback = (event) => {
3136
3140
  if (this._activeDragInstances().length) {
3137
3141
  observer.next(event);
3138
3142
  }
3139
- }, capturingEventOptions);
3143
+ };
3144
+ shadowRoot.addEventListener('scroll', callback, eventOptions);
3140
3145
  return () => {
3141
- cleanup();
3146
+ shadowRoot.removeEventListener('scroll', callback, eventOptions);
3142
3147
  };
3143
3148
  });
3144
3149
  }));
@@ -3199,13 +3204,15 @@ class DragDropRegistry {
3199
3204
  };
3200
3205
  /** Clears out the global event listeners from the `document`. */
3201
3206
  _clearGlobalListeners() {
3202
- this._globalListeners?.forEach(cleanup => cleanup());
3203
- this._globalListeners = undefined;
3207
+ this._globalListeners.forEach((config, name) => {
3208
+ this._document.removeEventListener(name, config.handler, config.options);
3209
+ });
3210
+ this._globalListeners.clear();
3204
3211
  }
3205
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDropRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3206
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
3212
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDropRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3213
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
3207
3214
  }
3208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDropRegistry, decorators: [{
3215
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDropRegistry, decorators: [{
3209
3216
  type: Injectable,
3210
3217
  args: [{ providedIn: 'root' }]
3211
3218
  }], ctorParameters: () => [] });
@@ -3240,10 +3247,10 @@ class DragDrop {
3240
3247
  createDropList(element) {
3241
3248
  return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
3242
3249
  }
3243
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDrop, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3244
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDrop, providedIn: 'root' });
3250
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDrop, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3251
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDrop, providedIn: 'root' });
3245
3252
  }
3246
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDrop, decorators: [{
3253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDrop, decorators: [{
3247
3254
  type: Injectable,
3248
3255
  args: [{ providedIn: 'root' }]
3249
3256
  }], ctorParameters: () => [] });
@@ -3313,10 +3320,10 @@ class CdkDragHandle {
3313
3320
  this._parentDrag?._removeHandle(this);
3314
3321
  this._stateChanges.complete();
3315
3322
  }
3316
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDragHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3317
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-next.3", type: CdkDragHandle, isStandalone: true, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled", booleanAttribute] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3323
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDragHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3324
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-rc.0", type: CdkDragHandle, isStandalone: true, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled", booleanAttribute] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 });
3318
3325
  }
3319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDragHandle, decorators: [{
3326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDragHandle, decorators: [{
3320
3327
  type: Directive,
3321
3328
  args: [{
3322
3329
  selector: '[cdkDragHandle]',
@@ -3775,10 +3782,10 @@ class CdkDrag {
3775
3782
  handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);
3776
3783
  });
3777
3784
  }
3778
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDrag, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3779
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-next.3", type: CdkDrag, isStandalone: true, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled", booleanAttribute], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"], scale: ["cdkDragScale", "scale", numberAttribute] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 });
3785
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDrag, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3786
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-rc.0", type: CdkDrag, isStandalone: true, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled", booleanAttribute], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"], scale: ["cdkDragScale", "scale", numberAttribute] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 });
3780
3787
  }
3781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDrag, decorators: [{
3788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDrag, decorators: [{
3782
3789
  type: Directive,
3783
3790
  args: [{
3784
3791
  selector: '[cdkDrag]',
@@ -3866,10 +3873,10 @@ class CdkDropListGroup {
3866
3873
  ngOnDestroy() {
3867
3874
  this._items.clear();
3868
3875
  }
3869
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3870
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-next.3", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled", booleanAttribute] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
3876
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3877
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-rc.0", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled", booleanAttribute] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
3871
3878
  }
3872
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDropListGroup, decorators: [{
3879
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDropListGroup, decorators: [{
3873
3880
  type: Directive,
3874
3881
  args: [{
3875
3882
  selector: '[cdkDropListGroup]',
@@ -4154,14 +4161,14 @@ class CdkDropList {
4154
4161
  _syncItemsWithRef() {
4155
4162
  this._dropListRef.withItems(this.getSortedItems().map(item => item._dragRef));
4156
4163
  }
4157
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDropList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4158
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-next.3", type: CdkDropList, isStandalone: true, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled", booleanAttribute], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled", booleanAttribute], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled", booleanAttribute], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"], elementContainerSelector: ["cdkDropListElementContainer", "elementContainerSelector"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
4164
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDropList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4165
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-rc.0", type: CdkDropList, isStandalone: true, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled", booleanAttribute], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled", booleanAttribute], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled", booleanAttribute], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"], elementContainerSelector: ["cdkDropListElementContainer", "elementContainerSelector"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
4159
4166
  // Prevent child drop lists from picking up the same group as their parent.
4160
4167
  { provide: CDK_DROP_LIST_GROUP, useValue: undefined },
4161
4168
  { provide: CDK_DROP_LIST, useExisting: CdkDropList },
4162
4169
  ], exportAs: ["cdkDropList"], ngImport: i0 });
4163
4170
  }
4164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDropList, decorators: [{
4171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDropList, decorators: [{
4165
4172
  type: Directive,
4166
4173
  args: [{
4167
4174
  selector: '[cdkDropList], cdk-drop-list',
@@ -4251,10 +4258,10 @@ class CdkDragPreview {
4251
4258
  ngOnDestroy() {
4252
4259
  this._drag?._resetPreviewTemplate(this);
4253
4260
  }
4254
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDragPreview, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4255
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-next.3", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: ["matchSize", "matchSize", booleanAttribute] }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
4261
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDragPreview, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4262
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.0-rc.0", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: ["matchSize", "matchSize", booleanAttribute] }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
4256
4263
  }
4257
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDragPreview, decorators: [{
4264
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDragPreview, decorators: [{
4258
4265
  type: Directive,
4259
4266
  args: [{
4260
4267
  selector: 'ng-template[cdkDragPreview]',
@@ -4288,10 +4295,10 @@ class CdkDragPlaceholder {
4288
4295
  ngOnDestroy() {
4289
4296
  this._drag?._resetPlaceholderTemplate(this);
4290
4297
  }
4291
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDragPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4292
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0-next.3", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
4298
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDragPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive });
4299
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.0-rc.0", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
4293
4300
  }
4294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
4301
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
4295
4302
  type: Directive,
4296
4303
  args: [{
4297
4304
  selector: 'ng-template[cdkDragPlaceholder]',
@@ -4310,8 +4317,8 @@ const DRAG_DROP_DIRECTIVES = [
4310
4317
  CdkDragPlaceholder,
4311
4318
  ];
4312
4319
  class DragDropModule {
4313
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4314
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
4320
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4321
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
4315
4322
  CdkDropListGroup,
4316
4323
  CdkDrag,
4317
4324
  CdkDragHandle,
@@ -4322,9 +4329,9 @@ class DragDropModule {
4322
4329
  CdkDragHandle,
4323
4330
  CdkDragPreview,
4324
4331
  CdkDragPlaceholder] });
4325
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
4332
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
4326
4333
  }
4327
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.3", ngImport: i0, type: DragDropModule, decorators: [{
4334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-rc.0", ngImport: i0, type: DragDropModule, decorators: [{
4328
4335
  type: NgModule,
4329
4336
  args: [{
4330
4337
  imports: DRAG_DROP_DIRECTIVES,