@angular/cdk 19.2.0-next.0 → 19.2.0-next.2
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 +3 -4
- package/dialog/index.d.ts +5 -1
- package/drag-drop/index.d.ts +4 -0
- package/fesm2022/a11y.mjs +56 -56
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +10 -10
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +10 -10
- package/fesm2022/bidi.mjs.map +1 -1
- 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/collections.mjs +3 -3
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/dialog.mjs +16 -12
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +86 -93
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/layout.mjs +10 -10
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +10 -10
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +49 -49
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs +3 -3
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +13 -13
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +62 -71
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +7 -7
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +16 -16
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +6 -6
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +35 -35
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +22 -22
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +77 -77
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/text-field.mjs +47 -43
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/overlay/index.d.ts +6 -5
- package/package.json +1 -1
- package/platform/index.d.ts +8 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/text-field/index.d.ts +2 -1
package/fesm2022/drag-drop.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, Component, ViewEncapsulation, ChangeDetectionStrategy, inject, NgZone,
|
|
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 { 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,
|
|
7
|
+
import { _getEventTarget, _bindEventWithOptions, _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 =
|
|
448
|
+
const passiveEventListenerOptions = { passive: true };
|
|
449
449
|
/** Options that can be used to bind an active event listener. */
|
|
450
|
-
const activeEventListenerOptions =
|
|
450
|
+
const activeEventListenerOptions = { passive: false };
|
|
451
451
|
/** Event options that can be used to bind an active, capturing event. */
|
|
452
|
-
const activeCapturingEventOptions$1 =
|
|
452
|
+
const activeCapturingEventOptions$1 = {
|
|
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,6 +475,8 @@ class DragRef {
|
|
|
475
475
|
_viewportRuler;
|
|
476
476
|
_dragDropRegistry;
|
|
477
477
|
_renderer;
|
|
478
|
+
_rootElementCleanups;
|
|
479
|
+
_cleanupShadowRootSelectStart;
|
|
478
480
|
/** Element displayed next to the user's pointer while the element is dragged. */
|
|
479
481
|
_preview;
|
|
480
482
|
/** Container into which to insert the preview. */
|
|
@@ -709,14 +711,12 @@ class DragRef {
|
|
|
709
711
|
withRootElement(rootElement) {
|
|
710
712
|
const element = coerceElement(rootElement);
|
|
711
713
|
if (element !== this._rootElement) {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
element
|
|
717
|
-
|
|
718
|
-
element.addEventListener('dragstart', this._nativeDragStart, activeEventListenerOptions);
|
|
719
|
-
});
|
|
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
|
+
]);
|
|
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();
|
|
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,7 +859,8 @@ class DragRef {
|
|
|
859
859
|
this._pointerMoveSubscription.unsubscribe();
|
|
860
860
|
this._pointerUpSubscription.unsubscribe();
|
|
861
861
|
this._scrollSubscription.unsubscribe();
|
|
862
|
-
this.
|
|
862
|
+
this._cleanupShadowRootSelectStart?.();
|
|
863
|
+
this._cleanupShadowRootSelectStart = undefined;
|
|
863
864
|
}
|
|
864
865
|
/** Destroys the preview element and its ViewRef. */
|
|
865
866
|
_destroyPreview() {
|
|
@@ -1024,7 +1025,7 @@ class DragRef {
|
|
|
1024
1025
|
// In some browsers the global `selectstart` that we maintain in the `DragDropRegistry`
|
|
1025
1026
|
// doesn't cross the shadow boundary so we have to prevent it at the shadow root (see #28792).
|
|
1026
1027
|
this._ngZone.runOutsideAngular(() => {
|
|
1027
|
-
|
|
1028
|
+
this._cleanupShadowRootSelectStart = _bindEventWithOptions(this._renderer, shadowRoot, 'selectstart', shadowDomSelectStart, activeCapturingEventOptions$1);
|
|
1028
1029
|
});
|
|
1029
1030
|
}
|
|
1030
1031
|
if (dropContainer) {
|
|
@@ -1394,10 +1395,9 @@ class DragRef {
|
|
|
1394
1395
|
}
|
|
1395
1396
|
}
|
|
1396
1397
|
/** Removes the manually-added event listeners from the root element. */
|
|
1397
|
-
_removeRootElementListeners(
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
element.removeEventListener('dragstart', this._nativeDragStart, activeEventListenerOptions);
|
|
1398
|
+
_removeRootElementListeners() {
|
|
1399
|
+
this._rootElementCleanups?.forEach(cleanup => cleanup());
|
|
1400
|
+
this._rootElementCleanups = undefined;
|
|
1401
1401
|
}
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Applies a `transform` to the root element, taking into account any existing transforms on it.
|
|
@@ -2949,20 +2949,24 @@ 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
|
+
};
|
|
2952
2956
|
/** Event options that can be used to bind an active, capturing event. */
|
|
2953
|
-
const activeCapturingEventOptions =
|
|
2957
|
+
const activeCapturingEventOptions = {
|
|
2954
2958
|
passive: false,
|
|
2955
2959
|
capture: true,
|
|
2956
|
-
}
|
|
2960
|
+
};
|
|
2957
2961
|
/**
|
|
2958
2962
|
* Component used to load the drag&drop reset styles.
|
|
2959
2963
|
* @docs-private
|
|
2960
2964
|
*/
|
|
2961
2965
|
class _ResetsLoader {
|
|
2962
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
2963
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.
|
|
2966
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2967
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.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 });
|
|
2964
2968
|
}
|
|
2965
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
2969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: _ResetsLoader, decorators: [{
|
|
2966
2970
|
type: Component,
|
|
2967
2971
|
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}"] }]
|
|
2968
2972
|
}] });
|
|
@@ -2976,6 +2980,8 @@ class DragDropRegistry {
|
|
|
2976
2980
|
_ngZone = inject(NgZone);
|
|
2977
2981
|
_document = inject(DOCUMENT);
|
|
2978
2982
|
_styleLoader = inject(_CdkPrivateStyleLoader);
|
|
2983
|
+
_renderer = inject(RendererFactory2).createRenderer(null, null);
|
|
2984
|
+
_cleanupDocumentTouchmove;
|
|
2979
2985
|
/** Registered drop container instances. */
|
|
2980
2986
|
_dropInstances = new Set();
|
|
2981
2987
|
/** Registered drag item instances. */
|
|
@@ -2983,7 +2989,7 @@ class DragDropRegistry {
|
|
|
2983
2989
|
/** Drag item instances that are currently being dragged. */
|
|
2984
2990
|
_activeDragInstances = signal([]);
|
|
2985
2991
|
/** Keeps track of the event listeners that we've bound to the `document`. */
|
|
2986
|
-
_globalListeners
|
|
2992
|
+
_globalListeners;
|
|
2987
2993
|
/**
|
|
2988
2994
|
* Predicate function to check if an item is being dragged. Moved out into a property,
|
|
2989
2995
|
* because it'll be called a lot and we don't want to create a new function every time.
|
|
@@ -3028,7 +3034,8 @@ class DragDropRegistry {
|
|
|
3028
3034
|
this._ngZone.runOutsideAngular(() => {
|
|
3029
3035
|
// The event handler has to be explicitly active,
|
|
3030
3036
|
// because newer browsers make it passive by default.
|
|
3031
|
-
this.
|
|
3037
|
+
this._cleanupDocumentTouchmove?.();
|
|
3038
|
+
this._cleanupDocumentTouchmove = _bindEventWithOptions(this._renderer, this._document, 'touchmove', this._persistentTouchmoveListener, activeCapturingEventOptions);
|
|
3032
3039
|
});
|
|
3033
3040
|
}
|
|
3034
3041
|
}
|
|
@@ -3041,7 +3048,7 @@ class DragDropRegistry {
|
|
|
3041
3048
|
this._dragInstances.delete(drag);
|
|
3042
3049
|
this.stopDragging(drag);
|
|
3043
3050
|
if (this._dragInstances.size === 0) {
|
|
3044
|
-
this.
|
|
3051
|
+
this._cleanupDocumentTouchmove?.();
|
|
3045
3052
|
}
|
|
3046
3053
|
}
|
|
3047
3054
|
/**
|
|
@@ -3061,44 +3068,34 @@ class DragDropRegistry {
|
|
|
3061
3068
|
// passive ones for `mousemove` and `touchmove`. The events need to be active, because we
|
|
3062
3069
|
// use `preventDefault` to prevent the page from scrolling while the user is dragging.
|
|
3063
3070
|
const isTouchEvent = event.type.startsWith('touch');
|
|
3064
|
-
const endEventHandler =
|
|
3065
|
-
|
|
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),
|
|
3071
|
+
const endEventHandler = (e) => this.pointerUp.next(e);
|
|
3072
|
+
const toBind = [
|
|
3078
3073
|
// Use capturing so that we pick up scroll changes in any scrollable nodes that aren't
|
|
3079
3074
|
// the document. See https://github.com/angular/components/issues/17144.
|
|
3080
|
-
|
|
3081
|
-
})
|
|
3075
|
+
['scroll', (e) => this.scroll.next(e), capturingEventOptions],
|
|
3082
3076
|
// Preventing the default action on `mousemove` isn't enough to disable text selection
|
|
3083
3077
|
// on Safari so we need to prevent the selection event as well. Alternatively this can
|
|
3084
3078
|
// be done by setting `user-select: none` on the `body`, however it has causes a style
|
|
3085
3079
|
// recalculation which can be expensive on pages with a lot of elements.
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
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
|
+
}
|
|
3090
3088
|
// We don't have to bind a move event for touch drag sequences, because
|
|
3091
3089
|
// we already have a persistent global one bound from `registerDragItem`.
|
|
3092
3090
|
if (!isTouchEvent) {
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3091
|
+
toBind.push([
|
|
3092
|
+
'mousemove',
|
|
3093
|
+
(e) => this.pointerMove.next(e),
|
|
3094
|
+
activeCapturingEventOptions,
|
|
3095
|
+
]);
|
|
3097
3096
|
}
|
|
3098
3097
|
this._ngZone.runOutsideAngular(() => {
|
|
3099
|
-
this._globalListeners.
|
|
3100
|
-
this._document.addEventListener(name, config.handler, config.options);
|
|
3101
|
-
});
|
|
3098
|
+
this._globalListeners = toBind.map(([name, handler, options]) => _bindEventWithOptions(this._renderer, this._document, name, handler, options));
|
|
3102
3099
|
});
|
|
3103
3100
|
}
|
|
3104
3101
|
}
|
|
@@ -3135,15 +3132,13 @@ class DragDropRegistry {
|
|
|
3135
3132
|
// `fromEvent` it'll only happen if the subscription is outside the `NgZone`.
|
|
3136
3133
|
streams.push(new Observable((observer) => {
|
|
3137
3134
|
return this._ngZone.runOutsideAngular(() => {
|
|
3138
|
-
const
|
|
3139
|
-
const callback = (event) => {
|
|
3135
|
+
const cleanup = _bindEventWithOptions(this._renderer, shadowRoot, 'scroll', (event) => {
|
|
3140
3136
|
if (this._activeDragInstances().length) {
|
|
3141
3137
|
observer.next(event);
|
|
3142
3138
|
}
|
|
3143
|
-
};
|
|
3144
|
-
shadowRoot.addEventListener('scroll', callback, eventOptions);
|
|
3139
|
+
}, capturingEventOptions);
|
|
3145
3140
|
return () => {
|
|
3146
|
-
|
|
3141
|
+
cleanup();
|
|
3147
3142
|
};
|
|
3148
3143
|
});
|
|
3149
3144
|
}));
|
|
@@ -3204,15 +3199,13 @@ class DragDropRegistry {
|
|
|
3204
3199
|
};
|
|
3205
3200
|
/** Clears out the global event listeners from the `document`. */
|
|
3206
3201
|
_clearGlobalListeners() {
|
|
3207
|
-
this._globalListeners
|
|
3208
|
-
|
|
3209
|
-
});
|
|
3210
|
-
this._globalListeners.clear();
|
|
3202
|
+
this._globalListeners?.forEach(cleanup => cleanup());
|
|
3203
|
+
this._globalListeners = undefined;
|
|
3211
3204
|
}
|
|
3212
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
3213
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.
|
|
3205
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDropRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3206
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDropRegistry, providedIn: 'root' });
|
|
3214
3207
|
}
|
|
3215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
3208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
3216
3209
|
type: Injectable,
|
|
3217
3210
|
args: [{ providedIn: 'root' }]
|
|
3218
3211
|
}], ctorParameters: () => [] });
|
|
@@ -3247,10 +3240,10 @@ class DragDrop {
|
|
|
3247
3240
|
createDropList(element) {
|
|
3248
3241
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
3249
3242
|
}
|
|
3250
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
3251
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.
|
|
3243
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDrop, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3244
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDrop, providedIn: 'root' });
|
|
3252
3245
|
}
|
|
3253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
3246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDrop, decorators: [{
|
|
3254
3247
|
type: Injectable,
|
|
3255
3248
|
args: [{ providedIn: 'root' }]
|
|
3256
3249
|
}], ctorParameters: () => [] });
|
|
@@ -3320,10 +3313,10 @@ class CdkDragHandle {
|
|
|
3320
3313
|
this._parentDrag?._removeHandle(this);
|
|
3321
3314
|
this._stateChanges.complete();
|
|
3322
3315
|
}
|
|
3323
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
3324
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.
|
|
3316
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDragHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3317
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.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 });
|
|
3325
3318
|
}
|
|
3326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
3319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3327
3320
|
type: Directive,
|
|
3328
3321
|
args: [{
|
|
3329
3322
|
selector: '[cdkDragHandle]',
|
|
@@ -3782,10 +3775,10 @@ class CdkDrag {
|
|
|
3782
3775
|
handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);
|
|
3783
3776
|
});
|
|
3784
3777
|
}
|
|
3785
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
3786
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.
|
|
3778
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDrag, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3779
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.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 });
|
|
3787
3780
|
}
|
|
3788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
3781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3789
3782
|
type: Directive,
|
|
3790
3783
|
args: [{
|
|
3791
3784
|
selector: '[cdkDrag]',
|
|
@@ -3873,10 +3866,10 @@ class CdkDropListGroup {
|
|
|
3873
3866
|
ngOnDestroy() {
|
|
3874
3867
|
this._items.clear();
|
|
3875
3868
|
}
|
|
3876
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
3877
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.
|
|
3869
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3870
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.3", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled", booleanAttribute] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 });
|
|
3878
3871
|
}
|
|
3879
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
3872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
3880
3873
|
type: Directive,
|
|
3881
3874
|
args: [{
|
|
3882
3875
|
selector: '[cdkDropListGroup]',
|
|
@@ -4161,14 +4154,14 @@ class CdkDropList {
|
|
|
4161
4154
|
_syncItemsWithRef() {
|
|
4162
4155
|
this._dropListRef.withItems(this.getSortedItems().map(item => item._dragRef));
|
|
4163
4156
|
}
|
|
4164
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
4165
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.
|
|
4157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDropList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4158
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.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: [
|
|
4166
4159
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
4167
4160
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
4168
4161
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
4169
4162
|
], exportAs: ["cdkDropList"], ngImport: i0 });
|
|
4170
4163
|
}
|
|
4171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
4164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDropList, decorators: [{
|
|
4172
4165
|
type: Directive,
|
|
4173
4166
|
args: [{
|
|
4174
4167
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -4258,10 +4251,10 @@ class CdkDragPreview {
|
|
|
4258
4251
|
ngOnDestroy() {
|
|
4259
4252
|
this._drag?._resetPreviewTemplate(this);
|
|
4260
4253
|
}
|
|
4261
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
4262
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.
|
|
4254
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDragPreview, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4255
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.1.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 });
|
|
4263
4256
|
}
|
|
4264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
4257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
4265
4258
|
type: Directive,
|
|
4266
4259
|
args: [{
|
|
4267
4260
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -4295,10 +4288,10 @@ class CdkDragPlaceholder {
|
|
|
4295
4288
|
ngOnDestroy() {
|
|
4296
4289
|
this._drag?._resetPlaceholderTemplate(this);
|
|
4297
4290
|
}
|
|
4298
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
4299
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.
|
|
4291
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDragPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4292
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.3", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 });
|
|
4300
4293
|
}
|
|
4301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
4294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
4302
4295
|
type: Directive,
|
|
4303
4296
|
args: [{
|
|
4304
4297
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -4317,8 +4310,8 @@ const DRAG_DROP_DIRECTIVES = [
|
|
|
4317
4310
|
CdkDragPlaceholder,
|
|
4318
4311
|
];
|
|
4319
4312
|
class DragDropModule {
|
|
4320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
4321
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.
|
|
4313
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4314
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
|
|
4322
4315
|
CdkDropListGroup,
|
|
4323
4316
|
CdkDrag,
|
|
4324
4317
|
CdkDragHandle,
|
|
@@ -4329,9 +4322,9 @@ class DragDropModule {
|
|
|
4329
4322
|
CdkDragHandle,
|
|
4330
4323
|
CdkDragPreview,
|
|
4331
4324
|
CdkDragPlaceholder] });
|
|
4332
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.
|
|
4325
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] });
|
|
4333
4326
|
}
|
|
4334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
4327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DragDropModule, decorators: [{
|
|
4335
4328
|
type: NgModule,
|
|
4336
4329
|
args: [{
|
|
4337
4330
|
imports: DRAG_DROP_DIRECTIVES,
|