@angular/cdk 17.0.0-next.2 → 17.0.0-next.4
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 +4 -5
- package/accordion/index.d.ts +6 -8
- package/drag-drop/index.d.ts +14 -12
- package/esm2022/a11y/a11y-module.mjs +5 -5
- package/esm2022/a11y/aria-describer/aria-describer.mjs +4 -4
- package/esm2022/a11y/focus-monitor/focus-monitor.mjs +7 -7
- package/esm2022/a11y/focus-trap/configurable-focus-trap-factory.mjs +4 -4
- package/esm2022/a11y/focus-trap/focus-trap-manager.mjs +4 -4
- package/esm2022/a11y/focus-trap/focus-trap.mjs +11 -22
- package/esm2022/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +4 -4
- package/esm2022/a11y/input-modality/input-modality-detector.mjs +4 -4
- package/esm2022/a11y/interactivity-checker/interactivity-checker.mjs +4 -4
- package/esm2022/a11y/live-announcer/live-announcer.mjs +7 -7
- package/esm2022/accordion/accordion-item.mjs +11 -17
- package/esm2022/accordion/accordion-module.mjs +5 -5
- package/esm2022/accordion/accordion.mjs +10 -16
- package/esm2022/bidi/bidi-module.mjs +5 -5
- package/esm2022/bidi/dir.mjs +4 -4
- package/esm2022/bidi/directionality.mjs +4 -4
- package/esm2022/clipboard/clipboard-module.mjs +5 -5
- package/esm2022/clipboard/clipboard.mjs +4 -4
- package/esm2022/clipboard/copy-to-clipboard.mjs +4 -4
- package/esm2022/collections/unique-selection-dispatcher.mjs +4 -4
- package/esm2022/dialog/dialog-container.mjs +4 -4
- package/esm2022/dialog/dialog-module.mjs +5 -5
- package/esm2022/dialog/dialog.mjs +4 -4
- package/esm2022/drag-drop/directives/drag-handle.mjs +7 -8
- package/esm2022/drag-drop/directives/drag-placeholder.mjs +4 -4
- package/esm2022/drag-drop/directives/drag-preview.mjs +9 -15
- package/esm2022/drag-drop/directives/drag.mjs +8 -8
- package/esm2022/drag-drop/directives/drop-list-group.mjs +8 -15
- package/esm2022/drag-drop/directives/drop-list.mjs +12 -12
- package/esm2022/drag-drop/drag-drop-module.mjs +5 -5
- package/esm2022/drag-drop/drag-drop-registry.mjs +4 -4
- package/esm2022/drag-drop/drag-drop.mjs +4 -4
- package/esm2022/drag-drop/drag-ref.mjs +5 -6
- package/esm2022/layout/breakpoints-observer.mjs +4 -4
- package/esm2022/layout/layout-module.mjs +5 -5
- package/esm2022/layout/media-matcher.mjs +4 -4
- package/esm2022/listbox/listbox-module.mjs +5 -5
- package/esm2022/listbox/listbox.mjs +25 -37
- package/esm2022/menu/context-menu-trigger.mjs +11 -18
- package/esm2022/menu/menu-aim.mjs +7 -7
- package/esm2022/menu/menu-bar.mjs +4 -4
- package/esm2022/menu/menu-base.mjs +4 -4
- package/esm2022/menu/menu-group.mjs +4 -4
- package/esm2022/menu/menu-item-checkbox.mjs +4 -4
- package/esm2022/menu/menu-item-radio.mjs +4 -4
- package/esm2022/menu/menu-item-selectable.mjs +8 -15
- package/esm2022/menu/menu-item.mjs +8 -15
- package/esm2022/menu/menu-module.mjs +5 -5
- package/esm2022/menu/menu-stack.mjs +4 -4
- package/esm2022/menu/menu-trigger-base.mjs +4 -4
- package/esm2022/menu/menu-trigger.mjs +4 -4
- package/esm2022/menu/menu.mjs +4 -4
- package/esm2022/observers/observe-content.mjs +18 -18
- package/esm2022/observers/private/shared-resize-observer.mjs +4 -4
- package/esm2022/overlay/dispatchers/base-overlay-dispatcher.mjs +4 -4
- package/esm2022/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +4 -4
- package/esm2022/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +4 -4
- package/esm2022/overlay/fullscreen-overlay-container.mjs +4 -4
- package/esm2022/overlay/overlay-container.mjs +4 -4
- package/esm2022/overlay/overlay-directives.mjs +22 -53
- package/esm2022/overlay/overlay-module.mjs +5 -5
- package/esm2022/overlay/overlay.mjs +4 -4
- package/esm2022/overlay/position/overlay-position-builder.mjs +4 -4
- package/esm2022/overlay/scroll/scroll-strategy-options.mjs +4 -4
- package/esm2022/platform/platform-module.mjs +5 -5
- package/esm2022/platform/platform.mjs +4 -4
- package/esm2022/portal/portal-directives.mjs +17 -17
- package/esm2022/scrolling/fixed-size-virtual-scroll.mjs +4 -4
- package/esm2022/scrolling/scroll-dispatcher.mjs +4 -4
- package/esm2022/scrolling/scrollable.mjs +4 -4
- package/esm2022/scrolling/scrolling-module.mjs +9 -9
- package/esm2022/scrolling/viewport-ruler.mjs +4 -4
- package/esm2022/scrolling/virtual-for-of.mjs +4 -4
- package/esm2022/scrolling/virtual-scroll-viewport.mjs +17 -19
- package/esm2022/scrolling/virtual-scrollable-element.mjs +4 -4
- package/esm2022/scrolling/virtual-scrollable-window.mjs +4 -4
- package/esm2022/scrolling/virtual-scrollable.mjs +4 -4
- package/esm2022/stepper/step-header.mjs +4 -4
- package/esm2022/stepper/step-label.mjs +4 -4
- package/esm2022/stepper/stepper-button.mjs +7 -7
- package/esm2022/stepper/stepper-module.mjs +5 -5
- package/esm2022/stepper/stepper.mjs +35 -49
- package/esm2022/table/cell.mjs +29 -29
- package/esm2022/table/coalesced-style-scheduler.mjs +4 -4
- package/esm2022/table/row.mjs +28 -28
- package/esm2022/table/table-module.mjs +5 -5
- package/esm2022/table/table.mjs +28 -27
- package/esm2022/table/text-column.mjs +4 -4
- package/esm2022/text-field/autofill.mjs +7 -7
- package/esm2022/text-field/autosize.mjs +7 -8
- package/esm2022/text-field/text-field-module.mjs +5 -5
- package/esm2022/tree/nested-node.mjs +4 -4
- package/esm2022/tree/node.mjs +4 -4
- package/esm2022/tree/outlet.mjs +4 -4
- package/esm2022/tree/padding.mjs +4 -4
- package/esm2022/tree/toggle.mjs +4 -4
- package/esm2022/tree/tree-module.mjs +5 -5
- package/esm2022/tree/tree.mjs +7 -7
- package/esm2022/version.mjs +1 -1
- package/fesm2022/a11y.mjs +45 -55
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +22 -33
- 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 +10 -10
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +50 -62
- 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 +28 -40
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +59 -78
- 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 +17 -17
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +50 -80
- 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/scrolling.mjs +49 -50
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +50 -64
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +92 -89
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/text-field.mjs +16 -17
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/listbox/index.d.ts +14 -13
- package/menu/index.d.ts +6 -10
- package/observers/index.d.ts +2 -2
- package/overlay/index.d.ts +10 -16
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/update-tool/component-resource-collector.d.ts +1 -0
- package/schematics/update-tool/component-resource-collector.js +17 -8
- package/schematics/update-tool/component-resource-collector.mjs +17 -8
- package/schematics/utils/project-main-file.js +4 -3
- package/schematics/utils/project-main-file.mjs +4 -3
- package/schematics/utils/project-targets.js +2 -2
- package/schematics/utils/project-targets.mjs +2 -2
- package/scrolling/index.d.ts +2 -4
- package/stepper/index.d.ts +12 -14
- package/table/index.d.ts +6 -4
- package/text-field/index.d.ts +2 -2
package/fesm2022/drag-drop.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Inject, InjectionToken, Directive, Optional, SkipSelf, Input, EventEmitter, Self, ContentChildren, ContentChild, Output, NgModule } from '@angular/core';
|
|
2
|
+
import { Injectable, Inject, InjectionToken, booleanAttribute, Directive, Optional, SkipSelf, Input, EventEmitter, Self, ContentChildren, ContentChild, Output, NgModule } from '@angular/core';
|
|
3
3
|
import { DOCUMENT } from '@angular/common';
|
|
4
4
|
import * as i1 from '@angular/cdk/scrolling';
|
|
5
5
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
6
6
|
import { _getEventTarget, normalizePassiveListenerOptions, _getShadowRoot } from '@angular/cdk/platform';
|
|
7
|
-
import {
|
|
7
|
+
import { coerceElement, coerceNumberProperty, coerceArray } from '@angular/cdk/coercion';
|
|
8
8
|
import { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';
|
|
9
9
|
import { Subject, Subscription, interval, animationFrameScheduler, Observable, merge } from 'rxjs';
|
|
10
10
|
import { takeUntil, map, take, startWith, tap, switchMap } from 'rxjs/operators';
|
|
@@ -308,11 +308,10 @@ class DragRef {
|
|
|
308
308
|
return this._disabled || !!(this._dropContainer && this._dropContainer.disabled);
|
|
309
309
|
}
|
|
310
310
|
set disabled(value) {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
this._disabled = newValue;
|
|
311
|
+
if (value !== this._disabled) {
|
|
312
|
+
this._disabled = value;
|
|
314
313
|
this._toggleNativeDragInteractions();
|
|
315
|
-
this._handles.forEach(handle => toggleNativeDragInteractions(handle,
|
|
314
|
+
this._handles.forEach(handle => toggleNativeDragInteractions(handle, value));
|
|
316
315
|
}
|
|
317
316
|
}
|
|
318
317
|
constructor(element, _config, _document, _ngZone, _viewportRuler, _dragDropRegistry) {
|
|
@@ -2587,10 +2586,10 @@ class DragDropRegistry {
|
|
|
2587
2586
|
});
|
|
2588
2587
|
this._globalListeners.clear();
|
|
2589
2588
|
}
|
|
2590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2591
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2589
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2590
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDropRegistry, providedIn: 'root' }); }
|
|
2592
2591
|
}
|
|
2593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
2594
2593
|
type: Injectable,
|
|
2595
2594
|
args: [{ providedIn: 'root' }]
|
|
2596
2595
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -2628,10 +2627,10 @@ class DragDrop {
|
|
|
2628
2627
|
createDropList(element) {
|
|
2629
2628
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
2630
2629
|
}
|
|
2631
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2632
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2630
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2631
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDrop, providedIn: 'root' }); }
|
|
2633
2632
|
}
|
|
2634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDrop, decorators: [{
|
|
2635
2634
|
type: Injectable,
|
|
2636
2635
|
args: [{ providedIn: 'root' }]
|
|
2637
2636
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -2671,7 +2670,7 @@ class CdkDragHandle {
|
|
|
2671
2670
|
return this._disabled;
|
|
2672
2671
|
}
|
|
2673
2672
|
set disabled(value) {
|
|
2674
|
-
this._disabled =
|
|
2673
|
+
this._disabled = value;
|
|
2675
2674
|
this._stateChanges.next(this);
|
|
2676
2675
|
}
|
|
2677
2676
|
constructor(element, parentDrag) {
|
|
@@ -2687,10 +2686,10 @@ class CdkDragHandle {
|
|
|
2687
2686
|
ngOnDestroy() {
|
|
2688
2687
|
this._stateChanges.complete();
|
|
2689
2688
|
}
|
|
2690
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2691
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
2689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2690
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.4", 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 }); }
|
|
2692
2691
|
}
|
|
2693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
2694
2693
|
type: Directive,
|
|
2695
2694
|
args: [{
|
|
2696
2695
|
selector: '[cdkDragHandle]',
|
|
@@ -2709,7 +2708,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
2709
2708
|
type: SkipSelf
|
|
2710
2709
|
}] }]; }, propDecorators: { disabled: [{
|
|
2711
2710
|
type: Input,
|
|
2712
|
-
args: ['cdkDragHandleDisabled']
|
|
2711
|
+
args: [{ alias: 'cdkDragHandleDisabled', transform: booleanAttribute }]
|
|
2713
2712
|
}] } });
|
|
2714
2713
|
|
|
2715
2714
|
/**
|
|
@@ -2726,10 +2725,10 @@ class CdkDragPlaceholder {
|
|
|
2726
2725
|
constructor(templateRef) {
|
|
2727
2726
|
this.templateRef = templateRef;
|
|
2728
2727
|
}
|
|
2729
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2730
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2729
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.4", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 }); }
|
|
2731
2730
|
}
|
|
2732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
2733
2732
|
type: Directive,
|
|
2734
2733
|
args: [{
|
|
2735
2734
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -2751,21 +2750,15 @@ const CDK_DRAG_PREVIEW = new InjectionToken('CdkDragPreview');
|
|
|
2751
2750
|
* of a CdkDrag when it is being dragged.
|
|
2752
2751
|
*/
|
|
2753
2752
|
class CdkDragPreview {
|
|
2754
|
-
/** Whether the preview should preserve the same size as the item that is being dragged. */
|
|
2755
|
-
get matchSize() {
|
|
2756
|
-
return this._matchSize;
|
|
2757
|
-
}
|
|
2758
|
-
set matchSize(value) {
|
|
2759
|
-
this._matchSize = coerceBooleanProperty(value);
|
|
2760
|
-
}
|
|
2761
2753
|
constructor(templateRef) {
|
|
2762
2754
|
this.templateRef = templateRef;
|
|
2763
|
-
|
|
2755
|
+
/** Whether the preview should preserve the same size as the item that is being dragged. */
|
|
2756
|
+
this.matchSize = false;
|
|
2764
2757
|
}
|
|
2765
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2766
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
2758
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2759
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.4", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: ["matchSize", "matchSize", booleanAttribute] }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 }); }
|
|
2767
2760
|
}
|
|
2768
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
2769
2762
|
type: Directive,
|
|
2770
2763
|
args: [{
|
|
2771
2764
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -2775,7 +2768,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
2775
2768
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { data: [{
|
|
2776
2769
|
type: Input
|
|
2777
2770
|
}], matchSize: [{
|
|
2778
|
-
type: Input
|
|
2771
|
+
type: Input,
|
|
2772
|
+
args: [{ transform: booleanAttribute }]
|
|
2779
2773
|
}] } });
|
|
2780
2774
|
|
|
2781
2775
|
/**
|
|
@@ -2799,7 +2793,7 @@ class CdkDrag {
|
|
|
2799
2793
|
return this._disabled || (this.dropContainer && this.dropContainer.disabled);
|
|
2800
2794
|
}
|
|
2801
2795
|
set disabled(value) {
|
|
2802
|
-
this._disabled =
|
|
2796
|
+
this._disabled = value;
|
|
2803
2797
|
this._dragRef.disabled = this._disabled;
|
|
2804
2798
|
}
|
|
2805
2799
|
constructor(
|
|
@@ -3144,10 +3138,10 @@ class CdkDrag {
|
|
|
3144
3138
|
handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);
|
|
3145
3139
|
});
|
|
3146
3140
|
}
|
|
3147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3148
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
3141
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDrag, deps: [{ token: i0.ElementRef }, { token: CDK_DROP_LIST, optional: true, skipSelf: true }, { token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: CDK_DRAG_CONFIG, optional: true }, { token: i1$1.Directionality, optional: true }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: CDK_DRAG_HANDLE, optional: true, self: true }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3142
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.4", 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"] }, 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 }], queries: [{ propertyName: "_previewTemplate", first: true, predicate: CDK_DRAG_PREVIEW, descendants: true }, { propertyName: "_placeholderTemplate", first: true, predicate: CDK_DRAG_PLACEHOLDER, descendants: true }, { propertyName: "_handles", predicate: CDK_DRAG_HANDLE, descendants: true }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 }); }
|
|
3149
3143
|
}
|
|
3150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3151
3145
|
type: Directive,
|
|
3152
3146
|
args: [{
|
|
3153
3147
|
selector: '[cdkDrag]',
|
|
@@ -3220,7 +3214,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
3220
3214
|
args: ['cdkDragFreeDragPosition']
|
|
3221
3215
|
}], disabled: [{
|
|
3222
3216
|
type: Input,
|
|
3223
|
-
args: ['cdkDragDisabled']
|
|
3217
|
+
args: [{ alias: 'cdkDragDisabled', transform: booleanAttribute }]
|
|
3224
3218
|
}], constrainPosition: [{
|
|
3225
3219
|
type: Input,
|
|
3226
3220
|
args: ['cdkDragConstrainPosition']
|
|
@@ -3269,22 +3263,16 @@ class CdkDropListGroup {
|
|
|
3269
3263
|
constructor() {
|
|
3270
3264
|
/** Drop lists registered inside the group. */
|
|
3271
3265
|
this._items = new Set();
|
|
3272
|
-
this.
|
|
3273
|
-
|
|
3274
|
-
/** Whether starting a dragging sequence from inside this group is disabled. */
|
|
3275
|
-
get disabled() {
|
|
3276
|
-
return this._disabled;
|
|
3277
|
-
}
|
|
3278
|
-
set disabled(value) {
|
|
3279
|
-
this._disabled = coerceBooleanProperty(value);
|
|
3266
|
+
/** Whether starting a dragging sequence from inside this group is disabled. */
|
|
3267
|
+
this.disabled = false;
|
|
3280
3268
|
}
|
|
3281
3269
|
ngOnDestroy() {
|
|
3282
3270
|
this._items.clear();
|
|
3283
3271
|
}
|
|
3284
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3285
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
3272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3273
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.4", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled", booleanAttribute] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 }); }
|
|
3286
3274
|
}
|
|
3287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
3288
3276
|
type: Directive,
|
|
3289
3277
|
args: [{
|
|
3290
3278
|
selector: '[cdkDropListGroup]',
|
|
@@ -3294,7 +3282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
3294
3282
|
}]
|
|
3295
3283
|
}], propDecorators: { disabled: [{
|
|
3296
3284
|
type: Input,
|
|
3297
|
-
args: ['cdkDropListGroupDisabled']
|
|
3285
|
+
args: [{ alias: 'cdkDropListGroupDisabled', transform: booleanAttribute }]
|
|
3298
3286
|
}] } });
|
|
3299
3287
|
|
|
3300
3288
|
/** Counter used to generate unique ids for drop zones. */
|
|
@@ -3312,7 +3300,7 @@ class CdkDropList {
|
|
|
3312
3300
|
// a single point of failure and to avoid having to use setters for everything. `disabled` is
|
|
3313
3301
|
// a special case, because it can prevent the `beforeStarted` event from firing, which can lock
|
|
3314
3302
|
// the user in a disabled state, so we also need to sync it as it's being set.
|
|
3315
|
-
this._dropListRef.disabled = this._disabled =
|
|
3303
|
+
this._dropListRef.disabled = this._disabled = value;
|
|
3316
3304
|
}
|
|
3317
3305
|
constructor(
|
|
3318
3306
|
/** Element that the drop list is attached to. */
|
|
@@ -3461,8 +3449,8 @@ class CdkDropList {
|
|
|
3461
3449
|
}
|
|
3462
3450
|
ref.disabled = this.disabled;
|
|
3463
3451
|
ref.lockAxis = this.lockAxis;
|
|
3464
|
-
ref.sortingDisabled =
|
|
3465
|
-
ref.autoScrollDisabled =
|
|
3452
|
+
ref.sortingDisabled = this.sortingDisabled;
|
|
3453
|
+
ref.autoScrollDisabled = this.autoScrollDisabled;
|
|
3466
3454
|
ref.autoScrollStep = coerceNumberProperty(this.autoScrollStep, 2);
|
|
3467
3455
|
ref
|
|
3468
3456
|
.connectedTo(siblings.filter(drop => drop && drop !== this).map(list => list._dropListRef))
|
|
@@ -3530,14 +3518,14 @@ class CdkDropList {
|
|
|
3530
3518
|
_syncItemsWithRef() {
|
|
3531
3519
|
this._dropListRef.withItems(this.getSortedItems().map(item => item._dragRef));
|
|
3532
3520
|
}
|
|
3533
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3534
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
3521
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDropList, deps: [{ token: i0.ElementRef }, { token: DragDrop }, { token: i0.ChangeDetectorRef }, { token: i1.ScrollDispatcher }, { token: i1$1.Directionality, optional: true }, { token: CDK_DROP_LIST_GROUP, optional: true, skipSelf: true }, { token: CDK_DRAG_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3522
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.4", 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"] }, 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: [
|
|
3535
3523
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
3536
3524
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
3537
3525
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
3538
3526
|
], exportAs: ["cdkDropList"], ngImport: i0 }); }
|
|
3539
3527
|
}
|
|
3540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: CdkDropList, decorators: [{
|
|
3541
3529
|
type: Directive,
|
|
3542
3530
|
args: [{
|
|
3543
3531
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -3586,10 +3574,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
3586
3574
|
args: ['cdkDropListLockAxis']
|
|
3587
3575
|
}], disabled: [{
|
|
3588
3576
|
type: Input,
|
|
3589
|
-
args: ['cdkDropListDisabled']
|
|
3577
|
+
args: [{ alias: 'cdkDropListDisabled', transform: booleanAttribute }]
|
|
3590
3578
|
}], sortingDisabled: [{
|
|
3591
3579
|
type: Input,
|
|
3592
|
-
args: ['cdkDropListSortingDisabled']
|
|
3580
|
+
args: [{ alias: 'cdkDropListSortingDisabled', transform: booleanAttribute }]
|
|
3593
3581
|
}], enterPredicate: [{
|
|
3594
3582
|
type: Input,
|
|
3595
3583
|
args: ['cdkDropListEnterPredicate']
|
|
@@ -3598,7 +3586,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.1", ngImpor
|
|
|
3598
3586
|
args: ['cdkDropListSortPredicate']
|
|
3599
3587
|
}], autoScrollDisabled: [{
|
|
3600
3588
|
type: Input,
|
|
3601
|
-
args: ['cdkDropListAutoScrollDisabled']
|
|
3589
|
+
args: [{ alias: 'cdkDropListAutoScrollDisabled', transform: booleanAttribute }]
|
|
3602
3590
|
}], autoScrollStep: [{
|
|
3603
3591
|
type: Input,
|
|
3604
3592
|
args: ['cdkDropListAutoScrollStep']
|
|
@@ -3625,8 +3613,8 @@ const DRAG_DROP_DIRECTIVES = [
|
|
|
3625
3613
|
CdkDragPlaceholder,
|
|
3626
3614
|
];
|
|
3627
3615
|
class DragDropModule {
|
|
3628
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3629
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3616
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3617
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
|
|
3630
3618
|
CdkDropListGroup,
|
|
3631
3619
|
CdkDrag,
|
|
3632
3620
|
CdkDragHandle,
|
|
@@ -3637,9 +3625,9 @@ class DragDropModule {
|
|
|
3637
3625
|
CdkDragHandle,
|
|
3638
3626
|
CdkDragPreview,
|
|
3639
3627
|
CdkDragPlaceholder] }); }
|
|
3640
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3628
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] }); }
|
|
3641
3629
|
}
|
|
3642
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.4", ngImport: i0, type: DragDropModule, decorators: [{
|
|
3643
3631
|
type: NgModule,
|
|
3644
3632
|
args: [{
|
|
3645
3633
|
imports: DRAG_DROP_DIRECTIVES,
|