@angular/cdk 20.0.0-next.4 → 20.0.0-next.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.
- package/a11y/index.d.ts +12 -11
- package/{a11y-module.d-7d03e079.d.ts → a11y-module.d-9e4162d8.d.ts} +4 -3
- package/accordion/index.d.ts +1 -1
- package/{activedescendant-key-manager.d-11921e3a.d.ts → activedescendant-key-manager.d-8f004111.d.ts} +3 -2
- package/bidi/index.d.ts +1 -1
- package/{bidi-module.d-f8648621.d.ts → bidi-module.d-e02fd94c.d.ts} +8 -4
- package/clipboard/index.d.ts +2 -1
- package/coercion/index.d.ts +3 -2
- package/collections/index.d.ts +9 -8
- package/{data-source.d-7cab2c9d.d.ts → data-source.d-7eda4d9a.d.ts} +2 -1
- package/dialog/index.d.ts +15 -14
- package/drag-drop/index.d.ts +10 -7
- package/fesm2022/{a11y-module-b228dc71.mjs → a11y-module-3f18e5c2.mjs} +30 -30
- package/fesm2022/a11y-module-3f18e5c2.mjs.map +1 -0
- package/fesm2022/a11y.mjs +32 -33
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +12 -12
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/{activedescendant-key-manager-1351a9d3.mjs → activedescendant-key-manager-ca3e95bd.mjs} +2 -2
- package/fesm2022/activedescendant-key-manager-ca3e95bd.mjs.map +1 -0
- package/fesm2022/{array-88e1bec3.mjs → array-88204b72.mjs} +1 -1
- package/fesm2022/array-88204b72.mjs.map +1 -0
- package/fesm2022/{bidi-module-e73b8776.mjs → bidi-module-93941905.mjs} +16 -17
- package/fesm2022/bidi-module-93941905.mjs.map +1 -0
- package/fesm2022/bidi.mjs +2 -2
- package/fesm2022/{breakpoints-observer-9432a91b.mjs → breakpoints-observer-9d296976.mjs} +9 -9
- package/fesm2022/breakpoints-observer-9d296976.mjs.map +1 -0
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -10
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs +1 -1
- package/fesm2022/coercion.mjs +3 -3
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs +5 -5
- package/fesm2022/{css-pixel-value-447bbfe8.mjs → css-pixel-value-5ab12b77.mjs} +1 -1
- package/fesm2022/css-pixel-value-5ab12b77.mjs.map +1 -0
- package/fesm2022/{data-source-5320b6fd.mjs → data-source-a3a3a257.mjs} +1 -1
- package/fesm2022/data-source-a3a3a257.mjs.map +1 -0
- package/fesm2022/dialog.mjs +36 -37
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/{directionality-ea6ab987.mjs → directionality-25132624.mjs} +13 -7
- package/fesm2022/directionality-25132624.mjs.map +1 -0
- package/fesm2022/{dispose-view-repeater-strategy-b11b87ea.mjs → dispose-view-repeater-strategy-0bf96031.mjs} +2 -2
- package/fesm2022/dispose-view-repeater-strategy-0bf96031.mjs.map +1 -0
- package/fesm2022/drag-drop.mjs +70 -58
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/{element-08c51fcd.mjs → element-bed495ef.mjs} +1 -1
- package/fesm2022/element-bed495ef.mjs.map +1 -0
- package/fesm2022/{fake-event-detection-7055b1bd.mjs → fake-event-detection-61bf2988.mjs} +1 -1
- package/fesm2022/fake-event-detection-61bf2988.mjs.map +1 -0
- package/fesm2022/{focus-key-manager-58d29acd.mjs → focus-key-manager-f4cf48e1.mjs} +2 -2
- package/fesm2022/focus-key-manager-f4cf48e1.mjs.map +1 -0
- package/fesm2022/{focus-monitor-69f9c0f9.mjs → focus-monitor-4af46fa6.mjs} +19 -20
- package/fesm2022/focus-monitor-4af46fa6.mjs.map +1 -0
- package/fesm2022/{id-generator-ec45a122.mjs → id-generator-dd03740e.mjs} +4 -4
- package/fesm2022/id-generator-dd03740e.mjs.map +1 -0
- package/fesm2022/{keycodes-107cd3e4.mjs → keycodes-fbdb6e67.mjs} +1 -1
- package/fesm2022/keycodes-fbdb6e67.mjs.map +1 -0
- package/fesm2022/keycodes.mjs +2 -2
- package/fesm2022/layout.mjs +7 -7
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/{list-key-manager-c7b5cefb.mjs → list-key-manager-0ce9d5be.mjs} +4 -4
- package/fesm2022/list-key-manager-0ce9d5be.mjs.map +1 -0
- package/fesm2022/listbox.mjs +20 -20
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +74 -75
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{modifiers-33a5859e.mjs → modifiers-68a3bc3a.mjs} +1 -1
- package/fesm2022/modifiers-68a3bc3a.mjs.map +1 -0
- package/fesm2022/{observable-97c0792c.mjs → observable-36bb5527.mjs} +1 -1
- package/fesm2022/observable-36bb5527.mjs.map +1 -0
- package/fesm2022/{observe-content-459e1d12.mjs → observe-content-85983868.mjs} +15 -15
- package/fesm2022/observe-content-85983868.mjs.map +1 -0
- package/fesm2022/observers/private.mjs +3 -3
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +2 -2
- package/fesm2022/{overlay-module-6e7b742f.mjs → overlay-module-a2bddb9f.mjs} +108 -91
- package/fesm2022/overlay-module-a2bddb9f.mjs.map +1 -0
- package/fesm2022/overlay.mjs +22 -23
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/{passive-listeners-c0bdc49f.mjs → passive-listeners-1189a3bc.mjs} +1 -1
- package/fesm2022/passive-listeners-1189a3bc.mjs.map +1 -0
- package/fesm2022/{platform-2be6a529.mjs → platform-3b280dd2.mjs} +4 -4
- package/fesm2022/platform-3b280dd2.mjs.map +1 -0
- package/fesm2022/platform.mjs +9 -10
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/{portal-directives-9cd98881.mjs → portal-directives-4da94e82.mjs} +17 -17
- package/fesm2022/portal-directives-4da94e82.mjs.map +1 -0
- package/fesm2022/portal.mjs +1 -1
- package/fesm2022/private.mjs +2 -2
- package/fesm2022/{recycle-view-repeater-strategy-c1712813.mjs → recycle-view-repeater-strategy-7fe34ce5.mjs} +2 -2
- package/fesm2022/recycle-view-repeater-strategy-7fe34ce5.mjs.map +1 -0
- package/fesm2022/{scrolling-61955dd1.mjs → scrolling-4b9e82b7.mjs} +1 -1
- package/fesm2022/scrolling-4b9e82b7.mjs.map +1 -0
- package/fesm2022/{scrolling-module-72941c9f.mjs → scrolling-module-2ed090a6.mjs} +43 -43
- package/fesm2022/scrolling-module-2ed090a6.mjs.map +1 -0
- package/fesm2022/scrolling.mjs +8 -8
- package/fesm2022/{selection-model-30243dba.mjs → selection-model-7800ff2c.mjs} +1 -1
- package/fesm2022/selection-model-7800ff2c.mjs.map +1 -0
- package/fesm2022/{shadow-dom-9f403d00.mjs → shadow-dom-09da63d7.mjs} +1 -1
- package/fesm2022/shadow-dom-09da63d7.mjs.map +1 -0
- package/fesm2022/stepper.mjs +31 -31
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/{style-loader-9fc0a4d2.mjs → style-loader-f70e1cd6.mjs} +4 -4
- package/fesm2022/style-loader-f70e1cd6.mjs.map +1 -0
- package/fesm2022/table.mjs +92 -89
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/{test-environment-34eef1ee.mjs → test-environment-75e095b5.mjs} +1 -1
- package/fesm2022/test-environment-75e095b5.mjs.map +1 -0
- package/fesm2022/testing/selenium-webdriver.mjs +1 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs +2 -2
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/text-field.mjs +20 -21
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/{text-filtering-0c6de6d6.mjs → text-filtering-682c2e05.mjs} +1 -1
- package/fesm2022/text-filtering-682c2e05.mjs.map +1 -0
- package/fesm2022/{tree-key-manager-2f20c79c.mjs → tree-key-manager-fb779925.mjs} +3 -3
- package/fesm2022/tree-key-manager-fb779925.mjs.map +1 -0
- package/fesm2022/tree.mjs +32 -32
- package/fesm2022/tree.mjs.map +1 -1
- package/fesm2022/{typeahead-11ae39bd.mjs → typeahead-5b1c5e41.mjs} +2 -2
- package/fesm2022/typeahead-5b1c5e41.mjs.map +1 -0
- package/fesm2022/{unique-selection-dispatcher-d0d5176e.mjs → unique-selection-dispatcher-95d71775.mjs} +4 -4
- package/fesm2022/unique-selection-dispatcher-95d71775.mjs.map +1 -0
- package/fesm2022/{visually-hidden-a6df546a.mjs → visually-hidden-912d0ccc.mjs} +4 -4
- package/fesm2022/visually-hidden-912d0ccc.mjs.map +1 -0
- package/{focus-key-manager.d-415a6958.d.ts → focus-key-manager.d-808a8cfc.d.ts} +4 -3
- package/{focus-monitor.d-810a02e6.d.ts → focus-monitor.d-463f4526.d.ts} +2 -1
- package/{harness-environment.d-4d615248.d.ts → harness-environment.d-ccca6bee.d.ts} +2 -1
- package/keycodes/index.d.ts +2 -1
- package/layout/index.d.ts +2 -1
- package/{list-key-manager.d-72e9a2e7.d.ts → list-key-manager.d-6b8e8454.d.ts} +2 -1
- package/listbox/index.d.ts +5 -4
- package/menu/index.d.ts +14 -13
- package/{number-property.d-ce316715.d.ts → number-property.d-1067cb21.d.ts} +2 -1
- package/{observe-content.d-c08bc882.d.ts → observe-content.d-406532a1.d.ts} +1 -1
- package/observers/index.d.ts +2 -2
- package/overlay/index.d.ts +14 -13
- package/{overlay-module.d-46197115.d.ts → overlay-module.d-bb9fd227.d.ts} +13 -10
- package/package.json +1 -1
- package/platform/index.d.ts +2 -17
- package/portal/index.d.ts +2 -2
- package/{portal-directives.d-fefec9d6.d.ts → portal-directives.d-7048496c.d.ts} +2 -1
- package/private/index.d.ts +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/scrolling/index.d.ts +5 -5
- package/{scrolling-module.d-e4f8e471.d.ts → scrolling-module.d-a309d6c8.d.ts} +5 -4
- package/{selection-model.d-1a70542c.d.ts → selection-model.d-8f93f170.d.ts} +2 -1
- package/stepper/index.d.ts +6 -5
- package/table/index.d.ts +9 -8
- package/testing/index.d.ts +3 -2
- package/testing/selenium-webdriver/index.d.ts +3 -2
- package/testing/testbed/index.d.ts +3 -2
- package/text-field/index.d.ts +3 -2
- package/tree/index.d.ts +5 -4
- package/{unique-selection-dispatcher.d-7993b9f5.d.ts → unique-selection-dispatcher.d-49e3cd5f.d.ts} +2 -1
- package/{view-repeater.d-79039e1f.d.ts → view-repeater.d-bf5e36f0.d.ts} +2 -1
- package/{viewport-ruler.d-f3d3e82f.d.ts → viewport-ruler.d-5b507354.d.ts} +2 -1
- package/fesm2022/a11y-module-b228dc71.mjs.map +0 -1
- package/fesm2022/activedescendant-key-manager-1351a9d3.mjs.map +0 -1
- package/fesm2022/array-88e1bec3.mjs.map +0 -1
- package/fesm2022/backwards-compatibility-bcbe473e.mjs +0 -25
- package/fesm2022/backwards-compatibility-bcbe473e.mjs.map +0 -1
- package/fesm2022/bidi-module-e73b8776.mjs.map +0 -1
- package/fesm2022/breakpoints-observer-9432a91b.mjs.map +0 -1
- package/fesm2022/css-pixel-value-447bbfe8.mjs.map +0 -1
- package/fesm2022/data-source-5320b6fd.mjs.map +0 -1
- package/fesm2022/directionality-ea6ab987.mjs.map +0 -1
- package/fesm2022/dispose-view-repeater-strategy-b11b87ea.mjs.map +0 -1
- package/fesm2022/element-08c51fcd.mjs.map +0 -1
- package/fesm2022/fake-event-detection-7055b1bd.mjs.map +0 -1
- package/fesm2022/focus-key-manager-58d29acd.mjs.map +0 -1
- package/fesm2022/focus-monitor-69f9c0f9.mjs.map +0 -1
- package/fesm2022/id-generator-ec45a122.mjs.map +0 -1
- package/fesm2022/keycodes-107cd3e4.mjs.map +0 -1
- package/fesm2022/list-key-manager-c7b5cefb.mjs.map +0 -1
- package/fesm2022/modifiers-33a5859e.mjs.map +0 -1
- package/fesm2022/observable-97c0792c.mjs.map +0 -1
- package/fesm2022/observe-content-459e1d12.mjs.map +0 -1
- package/fesm2022/overlay-module-6e7b742f.mjs.map +0 -1
- package/fesm2022/passive-listeners-c0bdc49f.mjs.map +0 -1
- package/fesm2022/platform-2be6a529.mjs.map +0 -1
- package/fesm2022/portal-directives-9cd98881.mjs.map +0 -1
- package/fesm2022/recycle-view-repeater-strategy-c1712813.mjs.map +0 -1
- package/fesm2022/scrolling-61955dd1.mjs.map +0 -1
- package/fesm2022/scrolling-module-72941c9f.mjs.map +0 -1
- package/fesm2022/selection-model-30243dba.mjs.map +0 -1
- package/fesm2022/shadow-dom-9f403d00.mjs.map +0 -1
- package/fesm2022/style-loader-9fc0a4d2.mjs.map +0 -1
- package/fesm2022/test-environment-34eef1ee.mjs.map +0 -1
- package/fesm2022/text-filtering-0c6de6d6.mjs.map +0 -1
- package/fesm2022/tree-key-manager-2f20c79c.mjs.map +0 -1
- package/fesm2022/typeahead-11ae39bd.mjs.map +0 -1
- package/fesm2022/unique-selection-dispatcher-d0d5176e.mjs.map +0 -1
- package/fesm2022/visually-hidden-a6df546a.mjs.map +0 -1
- /package/{platform.d-0a5b4792.d.ts → platform.d-54a48c5c.d.ts} +0 -0
- /package/{style-loader.d-19baab84.d.ts → style-loader.d-a4916e34.d.ts} +0 -0
- /package/{tree-key-manager-strategy.d-603161dd.d.ts → tree-key-manager-strategy.d-e1a4bb7c.d.ts} +0 -0
package/fesm2022/drag-drop.mjs
CHANGED
|
@@ -2,22 +2,21 @@ import * as i0 from '@angular/core';
|
|
|
2
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';
|
|
3
3
|
import { DOCUMENT } from '@angular/common';
|
|
4
4
|
import { Subject, Subscription, interval, animationFrameScheduler, Observable, merge, BehaviorSubject } from 'rxjs';
|
|
5
|
-
import { _ as _getEventTarget, a as _getShadowRoot } from './shadow-dom-
|
|
6
|
-
import { a as isFakeTouchstartFromScreenReader, i as isFakeMousedownFromScreenReader } from './fake-event-detection-
|
|
7
|
-
import { c as coerceElement, a as coerceNumberProperty } from './element-
|
|
8
|
-
import { _ as _bindEventWithOptions } from './backwards-compatibility-bcbe473e.mjs';
|
|
5
|
+
import { _ as _getEventTarget, a as _getShadowRoot } from './shadow-dom-09da63d7.mjs';
|
|
6
|
+
import { a as isFakeTouchstartFromScreenReader, i as isFakeMousedownFromScreenReader } from './fake-event-detection-61bf2988.mjs';
|
|
7
|
+
import { c as coerceElement, a as coerceNumberProperty } from './element-bed495ef.mjs';
|
|
9
8
|
import { takeUntil, map, take, tap, switchMap, startWith } from 'rxjs/operators';
|
|
10
|
-
import { _ as _CdkPrivateStyleLoader } from './style-loader-
|
|
11
|
-
import { V as ViewportRuler, S as ScrollDispatcher, C as CdkScrollableModule } from './scrolling-module-
|
|
12
|
-
export { b as ɵɵCdkScrollable } from './scrolling-module-
|
|
13
|
-
import { D as Directionality } from './directionality-
|
|
14
|
-
import { _ as _IdGenerator } from './id-generator-
|
|
15
|
-
import { c as coerceArray } from './array-
|
|
16
|
-
import './platform-
|
|
17
|
-
import './scrolling-
|
|
18
|
-
import './recycle-view-repeater-strategy-
|
|
19
|
-
import './data-source-
|
|
20
|
-
import './bidi-module-
|
|
9
|
+
import { _ as _CdkPrivateStyleLoader } from './style-loader-f70e1cd6.mjs';
|
|
10
|
+
import { V as ViewportRuler, S as ScrollDispatcher, C as CdkScrollableModule } from './scrolling-module-2ed090a6.mjs';
|
|
11
|
+
export { b as ɵɵCdkScrollable } from './scrolling-module-2ed090a6.mjs';
|
|
12
|
+
import { D as Directionality } from './directionality-25132624.mjs';
|
|
13
|
+
import { _ as _IdGenerator } from './id-generator-dd03740e.mjs';
|
|
14
|
+
import { c as coerceArray } from './array-88204b72.mjs';
|
|
15
|
+
import './platform-3b280dd2.mjs';
|
|
16
|
+
import './scrolling-4b9e82b7.mjs';
|
|
17
|
+
import './recycle-view-repeater-strategy-7fe34ce5.mjs';
|
|
18
|
+
import './data-source-a3a3a257.mjs';
|
|
19
|
+
import './bidi-module-93941905.mjs';
|
|
21
20
|
|
|
22
21
|
/** Creates a deep clone of an element. */
|
|
23
22
|
function deepCloneNode(node) {
|
|
@@ -721,10 +720,11 @@ class DragRef {
|
|
|
721
720
|
const element = coerceElement(rootElement);
|
|
722
721
|
if (element !== this._rootElement) {
|
|
723
722
|
this._removeRootElementListeners();
|
|
723
|
+
const renderer = this._renderer;
|
|
724
724
|
this._rootElementCleanups = this._ngZone.runOutsideAngular(() => [
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
725
|
+
renderer.listen(element, 'mousedown', this._pointerDown, activeEventListenerOptions),
|
|
726
|
+
renderer.listen(element, 'touchstart', this._pointerDown, passiveEventListenerOptions),
|
|
727
|
+
renderer.listen(element, 'dragstart', this._nativeDragStart, activeEventListenerOptions),
|
|
728
728
|
]);
|
|
729
729
|
this._initialTransform = undefined;
|
|
730
730
|
this._rootElement = element;
|
|
@@ -1034,7 +1034,7 @@ class DragRef {
|
|
|
1034
1034
|
// In some browsers the global `selectstart` that we maintain in the `DragDropRegistry`
|
|
1035
1035
|
// doesn't cross the shadow boundary so we have to prevent it at the shadow root (see #28792).
|
|
1036
1036
|
this._ngZone.runOutsideAngular(() => {
|
|
1037
|
-
this._cleanupShadowRootSelectStart =
|
|
1037
|
+
this._cleanupShadowRootSelectStart = this._renderer.listen(shadowRoot, 'selectstart', shadowDomSelectStart, activeCapturingEventOptions$1);
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
if (dropContainer) {
|
|
@@ -2972,10 +2972,10 @@ const activeCapturingEventOptions = {
|
|
|
2972
2972
|
* @docs-private
|
|
2973
2973
|
*/
|
|
2974
2974
|
class _ResetsLoader {
|
|
2975
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
2976
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
2975
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2976
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.5", 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 });
|
|
2977
2977
|
}
|
|
2978
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
2978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: _ResetsLoader, decorators: [{
|
|
2979
2979
|
type: Component,
|
|
2980
2980
|
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}"] }]
|
|
2981
2981
|
}] });
|
|
@@ -3038,7 +3038,7 @@ class DragDropRegistry {
|
|
|
3038
3038
|
// The event handler has to be explicitly active,
|
|
3039
3039
|
// because newer browsers make it passive by default.
|
|
3040
3040
|
this._cleanupDocumentTouchmove?.();
|
|
3041
|
-
this._cleanupDocumentTouchmove =
|
|
3041
|
+
this._cleanupDocumentTouchmove = this._renderer.listen(this._document, 'touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);
|
|
3042
3042
|
});
|
|
3043
3043
|
}
|
|
3044
3044
|
}
|
|
@@ -3098,7 +3098,7 @@ class DragDropRegistry {
|
|
|
3098
3098
|
]);
|
|
3099
3099
|
}
|
|
3100
3100
|
this._ngZone.runOutsideAngular(() => {
|
|
3101
|
-
this._globalListeners = toBind.map(([name, handler, options]) =>
|
|
3101
|
+
this._globalListeners = toBind.map(([name, handler, options]) => this._renderer.listen(this._document, name, handler, options));
|
|
3102
3102
|
});
|
|
3103
3103
|
}
|
|
3104
3104
|
}
|
|
@@ -3135,7 +3135,7 @@ class DragDropRegistry {
|
|
|
3135
3135
|
// `fromEvent` it'll only happen if the subscription is outside the `NgZone`.
|
|
3136
3136
|
streams.push(new Observable((observer) => {
|
|
3137
3137
|
return this._ngZone.runOutsideAngular(() => {
|
|
3138
|
-
const cleanup =
|
|
3138
|
+
const cleanup = this._renderer.listen(shadowRoot, 'scroll', (event) => {
|
|
3139
3139
|
if (this._activeDragInstances().length) {
|
|
3140
3140
|
observer.next(event);
|
|
3141
3141
|
}
|
|
@@ -3205,10 +3205,10 @@ class DragDropRegistry {
|
|
|
3205
3205
|
this._globalListeners?.forEach(cleanup => cleanup());
|
|
3206
3206
|
this._globalListeners = undefined;
|
|
3207
3207
|
}
|
|
3208
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3209
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3209
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
|
|
3210
3210
|
}
|
|
3211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
3212
3212
|
type: Injectable,
|
|
3213
3213
|
args: [{ providedIn: 'root' }]
|
|
3214
3214
|
}], ctorParameters: () => [] });
|
|
@@ -3243,10 +3243,10 @@ class DragDrop {
|
|
|
3243
3243
|
createDropList(element) {
|
|
3244
3244
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
3245
3245
|
}
|
|
3246
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3247
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3246
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDrop, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3247
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDrop, providedIn: 'root' });
|
|
3248
3248
|
}
|
|
3249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDrop, decorators: [{
|
|
3250
3250
|
type: Injectable,
|
|
3251
3251
|
args: [{ providedIn: 'root' }]
|
|
3252
3252
|
}], ctorParameters: () => [] });
|
|
@@ -3316,10 +3316,10 @@ class CdkDragHandle {
|
|
|
3316
3316
|
this._parentDrag?._removeHandle(this);
|
|
3317
3317
|
this._stateChanges.complete();
|
|
3318
3318
|
}
|
|
3319
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3320
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.
|
|
3319
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3320
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", 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 });
|
|
3321
3321
|
}
|
|
3322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3323
3323
|
type: Directive,
|
|
3324
3324
|
args: [{
|
|
3325
3325
|
selector: '[cdkDragHandle]',
|
|
@@ -3778,10 +3778,10 @@ class CdkDrag {
|
|
|
3778
3778
|
handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);
|
|
3779
3779
|
});
|
|
3780
3780
|
}
|
|
3781
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3782
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.
|
|
3781
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDrag, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3782
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", 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 });
|
|
3783
3783
|
}
|
|
3784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3785
3785
|
type: Directive,
|
|
3786
3786
|
args: [{
|
|
3787
3787
|
selector: '[cdkDrag]',
|
|
@@ -3869,10 +3869,10 @@ class CdkDropListGroup {
|
|
|
3869
3869
|
ngOnDestroy() {
|
|
3870
3870
|
this._items.clear();
|
|
3871
3871
|
}
|
|
3872
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3873
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.
|
|
3872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3873
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled", booleanAttribute] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
|
|
3874
3874
|
}
|
|
3875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
3876
3876
|
type: Directive,
|
|
3877
3877
|
args: [{
|
|
3878
3878
|
selector: '[cdkDropListGroup]',
|
|
@@ -3894,6 +3894,8 @@ class CdkDropList {
|
|
|
3894
3894
|
optional: true,
|
|
3895
3895
|
skipSelf: true,
|
|
3896
3896
|
});
|
|
3897
|
+
/** Refs that have been synced with the drop ref most recently. */
|
|
3898
|
+
_latestSortedRefs;
|
|
3897
3899
|
/** Emits when the list has been destroyed. */
|
|
3898
3900
|
_destroyed = new Subject();
|
|
3899
3901
|
/** Whether the element's scrollable parents have been resolved. */
|
|
@@ -4010,14 +4012,22 @@ class CdkDropList {
|
|
|
4010
4012
|
// Only sync the items while dragging since this method is
|
|
4011
4013
|
// called when items are being initialized one-by-one.
|
|
4012
4014
|
if (this._dropListRef.isDragging()) {
|
|
4013
|
-
this._syncItemsWithRef();
|
|
4015
|
+
this._syncItemsWithRef(this.getSortedItems().map(item => item._dragRef));
|
|
4014
4016
|
}
|
|
4015
4017
|
}
|
|
4016
4018
|
/** Removes an item from the drop list. */
|
|
4017
4019
|
removeItem(item) {
|
|
4018
4020
|
this._unsortedItems.delete(item);
|
|
4019
4021
|
// This method might be called on destroy so we always want to sync with the ref.
|
|
4020
|
-
|
|
4022
|
+
// Note that we reuse the last set of synced items, rather than re-sorting the whole
|
|
4023
|
+
// list, because it can slow down re-renders of large lists (see #30737).
|
|
4024
|
+
if (this._latestSortedRefs) {
|
|
4025
|
+
const index = this._latestSortedRefs.indexOf(item._dragRef);
|
|
4026
|
+
if (index > -1) {
|
|
4027
|
+
this._latestSortedRefs.splice(index, 1);
|
|
4028
|
+
this._syncItemsWithRef(this._latestSortedRefs);
|
|
4029
|
+
}
|
|
4030
|
+
}
|
|
4021
4031
|
}
|
|
4022
4032
|
/** Gets the registered items in the list, sorted by their position in the DOM. */
|
|
4023
4033
|
getSortedItems() {
|
|
@@ -4039,6 +4049,7 @@ class CdkDropList {
|
|
|
4039
4049
|
if (this._group) {
|
|
4040
4050
|
this._group._items.delete(this);
|
|
4041
4051
|
}
|
|
4052
|
+
this._latestSortedRefs = undefined;
|
|
4042
4053
|
this._unsortedItems.clear();
|
|
4043
4054
|
this._dropListRef.dispose();
|
|
4044
4055
|
this._destroyed.next();
|
|
@@ -4100,7 +4111,7 @@ class CdkDropList {
|
|
|
4100
4111
|
/** Handles events from the underlying DropListRef. */
|
|
4101
4112
|
_handleEvents(ref) {
|
|
4102
4113
|
ref.beforeStarted.subscribe(() => {
|
|
4103
|
-
this._syncItemsWithRef();
|
|
4114
|
+
this._syncItemsWithRef(this.getSortedItems().map(item => item._dragRef));
|
|
4104
4115
|
this._changeDetectorRef.markForCheck();
|
|
4105
4116
|
});
|
|
4106
4117
|
ref.entered.subscribe(event => {
|
|
@@ -4155,17 +4166,18 @@ class CdkDropList {
|
|
|
4155
4166
|
}
|
|
4156
4167
|
}
|
|
4157
4168
|
/** Syncs up the registered drag items with underlying drop list ref. */
|
|
4158
|
-
_syncItemsWithRef() {
|
|
4159
|
-
this.
|
|
4169
|
+
_syncItemsWithRef(items) {
|
|
4170
|
+
this._latestSortedRefs = items;
|
|
4171
|
+
this._dropListRef.withItems(items);
|
|
4160
4172
|
}
|
|
4161
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4162
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.
|
|
4173
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDropList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4174
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", 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: [
|
|
4163
4175
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
4164
4176
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
4165
4177
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
4166
4178
|
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
4167
4179
|
}
|
|
4168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDropList, decorators: [{
|
|
4169
4181
|
type: Directive,
|
|
4170
4182
|
args: [{
|
|
4171
4183
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -4255,10 +4267,10 @@ class CdkDragPreview {
|
|
|
4255
4267
|
ngOnDestroy() {
|
|
4256
4268
|
this._drag?._resetPreviewTemplate(this);
|
|
4257
4269
|
}
|
|
4258
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4259
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.
|
|
4270
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragPreview, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4271
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.0.0-next.5", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: ["matchSize", "matchSize", booleanAttribute] }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 });
|
|
4260
4272
|
}
|
|
4261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
4262
4274
|
type: Directive,
|
|
4263
4275
|
args: [{
|
|
4264
4276
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -4292,10 +4304,10 @@ class CdkDragPlaceholder {
|
|
|
4292
4304
|
ngOnDestroy() {
|
|
4293
4305
|
this._drag?._resetPlaceholderTemplate(this);
|
|
4294
4306
|
}
|
|
4295
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4296
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4308
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.5", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
|
|
4297
4309
|
}
|
|
4298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
4299
4311
|
type: Directive,
|
|
4300
4312
|
args: [{
|
|
4301
4313
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -4314,8 +4326,8 @@ const DRAG_DROP_DIRECTIVES = [
|
|
|
4314
4326
|
CdkDragPlaceholder,
|
|
4315
4327
|
];
|
|
4316
4328
|
class DragDropModule {
|
|
4317
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4318
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4329
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4330
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
|
|
4319
4331
|
CdkDropListGroup,
|
|
4320
4332
|
CdkDrag,
|
|
4321
4333
|
CdkDragHandle,
|
|
@@ -4326,9 +4338,9 @@ class DragDropModule {
|
|
|
4326
4338
|
CdkDragHandle,
|
|
4327
4339
|
CdkDragPreview,
|
|
4328
4340
|
CdkDragPlaceholder] });
|
|
4329
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4341
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
|
|
4330
4342
|
}
|
|
4331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: DragDropModule, decorators: [{
|
|
4332
4344
|
type: NgModule,
|
|
4333
4345
|
args: [{
|
|
4334
4346
|
imports: DRAG_DROP_DIRECTIVES,
|