@angular/cdk 18.1.0-next.2 → 18.1.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 +2 -1
- package/drag-drop/index.d.ts +26 -1
- package/esm2022/a11y/a11y-module.mjs +4 -4
- package/esm2022/a11y/aria-describer/aria-describer.mjs +3 -3
- package/esm2022/a11y/focus-monitor/focus-monitor.mjs +6 -6
- package/esm2022/a11y/focus-trap/configurable-focus-trap-factory.mjs +8 -7
- package/esm2022/a11y/focus-trap/configurable-focus-trap.mjs +3 -3
- package/esm2022/a11y/focus-trap/focus-trap-manager.mjs +3 -3
- package/esm2022/a11y/focus-trap/focus-trap.mjs +11 -29
- package/esm2022/a11y/high-contrast-mode/high-contrast-mode-detector.mjs +3 -3
- package/esm2022/a11y/input-modality/input-modality-detector.mjs +3 -3
- package/esm2022/a11y/interactivity-checker/interactivity-checker.mjs +3 -3
- package/esm2022/a11y/live-announcer/live-announcer.mjs +6 -6
- package/esm2022/accordion/accordion-item.mjs +3 -3
- package/esm2022/accordion/accordion-module.mjs +4 -4
- package/esm2022/accordion/accordion.mjs +3 -3
- package/esm2022/bidi/bidi-module.mjs +4 -4
- package/esm2022/bidi/dir.mjs +3 -3
- package/esm2022/bidi/directionality.mjs +3 -3
- package/esm2022/clipboard/clipboard-module.mjs +4 -4
- package/esm2022/clipboard/clipboard.mjs +3 -3
- package/esm2022/clipboard/copy-to-clipboard.mjs +3 -3
- package/esm2022/collections/unique-selection-dispatcher.mjs +3 -3
- package/esm2022/dialog/dialog-container.mjs +3 -3
- package/esm2022/dialog/dialog-module.mjs +4 -4
- package/esm2022/dialog/dialog.mjs +3 -3
- package/esm2022/drag-drop/directives/drag-handle.mjs +3 -3
- package/esm2022/drag-drop/directives/drag-placeholder.mjs +3 -3
- package/esm2022/drag-drop/directives/drag-preview.mjs +3 -3
- package/esm2022/drag-drop/directives/drag.mjs +3 -3
- package/esm2022/drag-drop/directives/drop-list-group.mjs +3 -3
- package/esm2022/drag-drop/directives/drop-list.mjs +14 -4
- package/esm2022/drag-drop/drag-drop-module.mjs +4 -4
- package/esm2022/drag-drop/drag-drop-registry.mjs +6 -6
- package/esm2022/drag-drop/drag-drop.mjs +3 -3
- package/esm2022/drag-drop/drop-list-ref.mjs +57 -13
- package/esm2022/drag-drop/sorting/drop-list-sort-strategy.mjs +1 -1
- package/esm2022/drag-drop/sorting/mixed-sort-strategy.mjs +8 -3
- package/esm2022/drag-drop/sorting/single-axis-sort-strategy.mjs +6 -4
- package/esm2022/layout/breakpoints-observer.mjs +3 -3
- package/esm2022/layout/layout-module.mjs +4 -4
- package/esm2022/layout/media-matcher.mjs +3 -3
- package/esm2022/listbox/listbox-module.mjs +4 -4
- package/esm2022/listbox/listbox.mjs +6 -6
- package/esm2022/menu/context-menu-trigger.mjs +6 -6
- package/esm2022/menu/menu-aim.mjs +6 -6
- package/esm2022/menu/menu-bar.mjs +3 -3
- package/esm2022/menu/menu-base.mjs +3 -3
- package/esm2022/menu/menu-group.mjs +3 -3
- package/esm2022/menu/menu-item-checkbox.mjs +3 -3
- package/esm2022/menu/menu-item-radio.mjs +3 -3
- package/esm2022/menu/menu-item-selectable.mjs +3 -3
- package/esm2022/menu/menu-item.mjs +3 -3
- package/esm2022/menu/menu-module.mjs +4 -4
- package/esm2022/menu/menu-stack.mjs +3 -3
- package/esm2022/menu/menu-trigger-base.mjs +3 -3
- package/esm2022/menu/menu-trigger.mjs +3 -3
- package/esm2022/menu/menu.mjs +3 -3
- package/esm2022/observers/observe-content.mjs +13 -13
- package/esm2022/observers/private/shared-resize-observer.mjs +3 -3
- package/esm2022/overlay/dispatchers/base-overlay-dispatcher.mjs +3 -3
- package/esm2022/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +3 -3
- package/esm2022/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +19 -6
- package/esm2022/overlay/fullscreen-overlay-container.mjs +3 -3
- package/esm2022/overlay/overlay-container.mjs +3 -3
- package/esm2022/overlay/overlay-directives.mjs +6 -6
- package/esm2022/overlay/overlay-module.mjs +4 -4
- package/esm2022/overlay/overlay.mjs +3 -3
- package/esm2022/overlay/position/overlay-position-builder.mjs +3 -3
- package/esm2022/overlay/scroll/scroll-strategy-options.mjs +3 -3
- package/esm2022/platform/platform-module.mjs +4 -4
- package/esm2022/platform/platform.mjs +3 -3
- package/esm2022/portal/portal-directives.mjs +16 -16
- package/esm2022/scrolling/fixed-size-virtual-scroll.mjs +3 -3
- package/esm2022/scrolling/scroll-dispatcher.mjs +3 -3
- package/esm2022/scrolling/scrollable.mjs +3 -3
- package/esm2022/scrolling/scrolling-module.mjs +8 -8
- package/esm2022/scrolling/viewport-ruler.mjs +3 -3
- package/esm2022/scrolling/virtual-for-of.mjs +3 -3
- package/esm2022/scrolling/virtual-scroll-viewport.mjs +3 -3
- package/esm2022/scrolling/virtual-scrollable-element.mjs +3 -3
- package/esm2022/scrolling/virtual-scrollable-window.mjs +3 -3
- package/esm2022/scrolling/virtual-scrollable.mjs +3 -3
- package/esm2022/stepper/step-header.mjs +3 -3
- package/esm2022/stepper/step-label.mjs +3 -3
- package/esm2022/stepper/stepper-button.mjs +6 -6
- package/esm2022/stepper/stepper-module.mjs +4 -4
- package/esm2022/stepper/stepper.mjs +6 -6
- package/esm2022/table/cell.mjs +21 -21
- package/esm2022/table/coalesced-style-scheduler.mjs +3 -3
- package/esm2022/table/row.mjs +27 -27
- package/esm2022/table/table-module.mjs +4 -4
- package/esm2022/table/table.mjs +18 -18
- package/esm2022/table/text-column.mjs +3 -3
- package/esm2022/text-field/autofill.mjs +6 -6
- package/esm2022/text-field/autosize.mjs +3 -3
- package/esm2022/text-field/text-field-module.mjs +4 -4
- package/esm2022/tree/nested-node.mjs +3 -3
- package/esm2022/tree/node.mjs +3 -3
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.mjs +3 -3
- package/esm2022/tree/toggle.mjs +3 -3
- package/esm2022/tree/tree-module.mjs +4 -4
- package/esm2022/tree/tree.mjs +6 -6
- package/esm2022/version.mjs +1 -1
- package/fesm2022/a11y.mjs +52 -68
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +10 -10
- package/fesm2022/bidi.mjs +10 -10
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -10
- package/fesm2022/collections.mjs +3 -3
- package/fesm2022/dialog.mjs +10 -10
- package/fesm2022/drag-drop.mjs +109 -48
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/layout.mjs +10 -10
- package/fesm2022/listbox.mjs +10 -10
- package/fesm2022/menu.mjs +49 -49
- package/fesm2022/observers/private.mjs +3 -3
- package/fesm2022/observers.mjs +13 -13
- package/fesm2022/overlay.mjs +49 -36
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +7 -7
- package/fesm2022/portal.mjs +16 -16
- package/fesm2022/scrolling.mjs +35 -35
- package/fesm2022/stepper.mjs +22 -22
- package/fesm2022/table.mjs +76 -76
- package/fesm2022/text-field.mjs +13 -13
- package/fesm2022/tree.mjs +25 -25
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
package/fesm2022/drag-drop.mjs
CHANGED
|
@@ -1550,8 +1550,7 @@ function clamp(value, max) {
|
|
|
1550
1550
|
* @docs-private
|
|
1551
1551
|
*/
|
|
1552
1552
|
class SingleAxisSortStrategy {
|
|
1553
|
-
constructor(
|
|
1554
|
-
this._element = _element;
|
|
1553
|
+
constructor(_dragDropRegistry) {
|
|
1555
1554
|
this._dragDropRegistry = _dragDropRegistry;
|
|
1556
1555
|
/** Cache of the dimensions of all the items inside the container. */
|
|
1557
1556
|
this._itemPositions = [];
|
|
@@ -1702,7 +1701,7 @@ class SingleAxisSortStrategy {
|
|
|
1702
1701
|
/** Resets the strategy to its initial state before dragging was started. */
|
|
1703
1702
|
reset() {
|
|
1704
1703
|
// TODO(crisbeto): may have to wait for the animations to finish.
|
|
1705
|
-
this._activeDraggables
|
|
1704
|
+
this._activeDraggables?.forEach(item => {
|
|
1706
1705
|
const rootElement = item.getRootElement();
|
|
1707
1706
|
if (rootElement) {
|
|
1708
1707
|
const initialTransform = this._itemPositions.find(p => p.drag === item)?.initialTransform;
|
|
@@ -1751,6 +1750,9 @@ class SingleAxisSortStrategy {
|
|
|
1751
1750
|
}
|
|
1752
1751
|
});
|
|
1753
1752
|
}
|
|
1753
|
+
withElementContainer(container) {
|
|
1754
|
+
this._element = container;
|
|
1755
|
+
}
|
|
1754
1756
|
/** Refreshes the position cache of the items and sibling containers. */
|
|
1755
1757
|
_cacheItemPositions() {
|
|
1756
1758
|
const isHorizontal = this.orientation === 'horizontal';
|
|
@@ -1880,8 +1882,7 @@ class SingleAxisSortStrategy {
|
|
|
1880
1882
|
* @docs-private
|
|
1881
1883
|
*/
|
|
1882
1884
|
class MixedSortStrategy {
|
|
1883
|
-
constructor(
|
|
1884
|
-
this._element = _element;
|
|
1885
|
+
constructor(_document, _dragDropRegistry) {
|
|
1885
1886
|
this._document = _document;
|
|
1886
1887
|
this._dragDropRegistry = _dragDropRegistry;
|
|
1887
1888
|
/**
|
|
@@ -2047,6 +2048,12 @@ class MixedSortStrategy {
|
|
|
2047
2048
|
}
|
|
2048
2049
|
});
|
|
2049
2050
|
}
|
|
2051
|
+
withElementContainer(container) {
|
|
2052
|
+
if (container !== this._element) {
|
|
2053
|
+
this._element = container;
|
|
2054
|
+
this._rootNode = undefined;
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2050
2057
|
/**
|
|
2051
2058
|
* Gets the index of an item in the drop container, based on the position of the user's pointer.
|
|
2052
2059
|
* @param item Item that is being sorted.
|
|
@@ -2193,6 +2200,8 @@ class DropListRef {
|
|
|
2193
2200
|
this._stopScrollTimers = new Subject();
|
|
2194
2201
|
/** Shadow root of the current element. Necessary for `elementFromPoint` to resolve correctly. */
|
|
2195
2202
|
this._cachedShadowRoot = null;
|
|
2203
|
+
/** Elements that can be scrolled while the user is dragging. */
|
|
2204
|
+
this._scrollableElements = [];
|
|
2196
2205
|
/** Direction of the list's layout. */
|
|
2197
2206
|
this._direction = 'ltr';
|
|
2198
2207
|
/** Starts the interval that'll auto-scroll the element. */
|
|
@@ -2217,9 +2226,9 @@ class DropListRef {
|
|
|
2217
2226
|
}
|
|
2218
2227
|
});
|
|
2219
2228
|
};
|
|
2220
|
-
this.element = coerceElement(element);
|
|
2229
|
+
const coercedElement = (this.element = coerceElement(element));
|
|
2221
2230
|
this._document = _document;
|
|
2222
|
-
this.
|
|
2231
|
+
this.withOrientation('vertical').withElementContainer(coercedElement);
|
|
2223
2232
|
_dragDropRegistry.registerDropContainer(this);
|
|
2224
2233
|
this._parentPositions = new ParentPositionTracker(_document);
|
|
2225
2234
|
}
|
|
@@ -2351,14 +2360,15 @@ class DropListRef {
|
|
|
2351
2360
|
*/
|
|
2352
2361
|
withOrientation(orientation) {
|
|
2353
2362
|
if (orientation === 'mixed') {
|
|
2354
|
-
this._sortStrategy = new MixedSortStrategy(
|
|
2363
|
+
this._sortStrategy = new MixedSortStrategy(this._document, this._dragDropRegistry);
|
|
2355
2364
|
}
|
|
2356
2365
|
else {
|
|
2357
|
-
const strategy = new SingleAxisSortStrategy(
|
|
2366
|
+
const strategy = new SingleAxisSortStrategy(this._dragDropRegistry);
|
|
2358
2367
|
strategy.direction = this._direction;
|
|
2359
2368
|
strategy.orientation = orientation;
|
|
2360
2369
|
this._sortStrategy = strategy;
|
|
2361
2370
|
}
|
|
2371
|
+
this._sortStrategy.withElementContainer(this._container);
|
|
2362
2372
|
this._sortStrategy.withSortPredicate((index, item) => this.sortPredicate(index, item, this));
|
|
2363
2373
|
return this;
|
|
2364
2374
|
}
|
|
@@ -2367,13 +2377,46 @@ class DropListRef {
|
|
|
2367
2377
|
* @param elements Elements that can be scrolled.
|
|
2368
2378
|
*/
|
|
2369
2379
|
withScrollableParents(elements) {
|
|
2370
|
-
const element =
|
|
2380
|
+
const element = this._container;
|
|
2371
2381
|
// We always allow the current element to be scrollable
|
|
2372
2382
|
// so we need to ensure that it's in the array.
|
|
2373
2383
|
this._scrollableElements =
|
|
2374
2384
|
elements.indexOf(element) === -1 ? [element, ...elements] : elements.slice();
|
|
2375
2385
|
return this;
|
|
2376
2386
|
}
|
|
2387
|
+
/**
|
|
2388
|
+
* Configures the drop list so that a different element is used as the container for the
|
|
2389
|
+
* dragged items. This is useful for the cases when one might not have control over the
|
|
2390
|
+
* full DOM that sets up the dragging.
|
|
2391
|
+
* Note that the alternate container needs to be a descendant of the drop list.
|
|
2392
|
+
* @param container New element container to be assigned.
|
|
2393
|
+
*/
|
|
2394
|
+
withElementContainer(container) {
|
|
2395
|
+
if (container === this._container) {
|
|
2396
|
+
return this;
|
|
2397
|
+
}
|
|
2398
|
+
const element = coerceElement(this.element);
|
|
2399
|
+
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
2400
|
+
container !== element &&
|
|
2401
|
+
!element.contains(container)) {
|
|
2402
|
+
throw new Error('Invalid DOM structure for drop list. Alternate container element must be a descendant of the drop list.');
|
|
2403
|
+
}
|
|
2404
|
+
const oldContainerIndex = this._scrollableElements.indexOf(this._container);
|
|
2405
|
+
const newContainerIndex = this._scrollableElements.indexOf(container);
|
|
2406
|
+
if (oldContainerIndex > -1) {
|
|
2407
|
+
this._scrollableElements.splice(oldContainerIndex, 1);
|
|
2408
|
+
}
|
|
2409
|
+
if (newContainerIndex > -1) {
|
|
2410
|
+
this._scrollableElements.splice(newContainerIndex, 1);
|
|
2411
|
+
}
|
|
2412
|
+
if (this._sortStrategy) {
|
|
2413
|
+
this._sortStrategy.withElementContainer(container);
|
|
2414
|
+
}
|
|
2415
|
+
this._cachedShadowRoot = null;
|
|
2416
|
+
this._scrollableElements.unshift(container);
|
|
2417
|
+
this._container = container;
|
|
2418
|
+
return this;
|
|
2419
|
+
}
|
|
2377
2420
|
/** Gets the scrollable parents that are registered with this drop container. */
|
|
2378
2421
|
getScrollableParents() {
|
|
2379
2422
|
return this._scrollableElements;
|
|
@@ -2481,9 +2524,19 @@ class DropListRef {
|
|
|
2481
2524
|
}
|
|
2482
2525
|
/** Starts the dragging sequence within the list. */
|
|
2483
2526
|
_draggingStarted() {
|
|
2484
|
-
const styles =
|
|
2527
|
+
const styles = this._container.style;
|
|
2485
2528
|
this.beforeStarted.next();
|
|
2486
2529
|
this._isDragging = true;
|
|
2530
|
+
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
2531
|
+
// Prevent the check from running on apps not using an alternate container. Ideally we
|
|
2532
|
+
// would always run it, but introducing it at this stage would be a breaking change.
|
|
2533
|
+
this._container !== coerceElement(this.element)) {
|
|
2534
|
+
for (const drag of this._draggables) {
|
|
2535
|
+
if (!drag.isDragging() && drag.getVisibleElement().parentNode !== this._container) {
|
|
2536
|
+
throw new Error('Invalid DOM structure for drop list. All items must be placed directly inside of the element container.');
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2487
2540
|
// We need to disable scroll snapping while the user is dragging, because it breaks automatic
|
|
2488
2541
|
// scrolling. The browser seems to round the value based on the snapping points which means
|
|
2489
2542
|
// that we can't increment/decrement the scroll position.
|
|
@@ -2496,16 +2549,15 @@ class DropListRef {
|
|
|
2496
2549
|
}
|
|
2497
2550
|
/** Caches the positions of the configured scrollable parents. */
|
|
2498
2551
|
_cacheParentPositions() {
|
|
2499
|
-
const element = coerceElement(this.element);
|
|
2500
2552
|
this._parentPositions.cache(this._scrollableElements);
|
|
2501
2553
|
// The list element is always in the `scrollableElements`
|
|
2502
2554
|
// so we can take advantage of the cached `DOMRect`.
|
|
2503
|
-
this._domRect = this._parentPositions.positions.get(
|
|
2555
|
+
this._domRect = this._parentPositions.positions.get(this._container).clientRect;
|
|
2504
2556
|
}
|
|
2505
2557
|
/** Resets the container to its initial state. */
|
|
2506
2558
|
_reset() {
|
|
2507
2559
|
this._isDragging = false;
|
|
2508
|
-
const styles =
|
|
2560
|
+
const styles = this._container.style;
|
|
2509
2561
|
styles.scrollSnapType = styles.msScrollSnapType = this._initialScrollSnap;
|
|
2510
2562
|
this._siblings.forEach(sibling => sibling._stopReceiving(this));
|
|
2511
2563
|
this._sortStrategy.reset();
|
|
@@ -2549,14 +2601,13 @@ class DropListRef {
|
|
|
2549
2601
|
if (!elementFromPoint) {
|
|
2550
2602
|
return false;
|
|
2551
2603
|
}
|
|
2552
|
-
const nativeElement = coerceElement(this.element);
|
|
2553
2604
|
// The `DOMRect`, that we're using to find the container over which the user is
|
|
2554
2605
|
// hovering, doesn't give us any information on whether the element has been scrolled
|
|
2555
2606
|
// out of the view or whether it's overlapping with other containers. This means that
|
|
2556
2607
|
// we could end up transferring the item into a container that's invisible or is positioned
|
|
2557
2608
|
// below another one. We use the result from `elementFromPoint` to get the top-most element
|
|
2558
2609
|
// at the pointer position and to find whether it's one of the intersecting drop containers.
|
|
2559
|
-
return elementFromPoint ===
|
|
2610
|
+
return elementFromPoint === this._container || this._container.contains(elementFromPoint);
|
|
2560
2611
|
}
|
|
2561
2612
|
/**
|
|
2562
2613
|
* Called by one of the connected drop lists when a dragging sequence has started.
|
|
@@ -2618,7 +2669,7 @@ class DropListRef {
|
|
|
2618
2669
|
*/
|
|
2619
2670
|
_getShadowRoot() {
|
|
2620
2671
|
if (!this._cachedShadowRoot) {
|
|
2621
|
-
const shadowRoot = _getShadowRoot(
|
|
2672
|
+
const shadowRoot = _getShadowRoot(this._container);
|
|
2622
2673
|
this._cachedShadowRoot = (shadowRoot || this._document);
|
|
2623
2674
|
}
|
|
2624
2675
|
return this._cachedShadowRoot;
|
|
@@ -2731,10 +2782,10 @@ const activeApps = new Set();
|
|
|
2731
2782
|
* @docs-private
|
|
2732
2783
|
*/
|
|
2733
2784
|
class _ResetsLoader {
|
|
2734
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
2735
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0-next.
|
|
2785
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2786
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.0-next.3", type: _ResetsLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-drag-resets-container": "" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2736
2787
|
}
|
|
2737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
2788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: _ResetsLoader, decorators: [{
|
|
2738
2789
|
type: Component,
|
|
2739
2790
|
args: [{ standalone: true, 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}}"] }]
|
|
2740
2791
|
}] });
|
|
@@ -2964,10 +3015,10 @@ class DragDropRegistry {
|
|
|
2964
3015
|
});
|
|
2965
3016
|
}
|
|
2966
3017
|
}
|
|
2967
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
2968
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3018
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDropRegistry, deps: [{ token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3019
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDropRegistry, providedIn: 'root' }); }
|
|
2969
3020
|
}
|
|
2970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
2971
3022
|
type: Injectable,
|
|
2972
3023
|
args: [{ providedIn: 'root' }]
|
|
2973
3024
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: undefined, decorators: [{
|
|
@@ -3005,10 +3056,10 @@ class DragDrop {
|
|
|
3005
3056
|
createDropList(element) {
|
|
3006
3057
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
3007
3058
|
}
|
|
3008
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3009
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDrop, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i1.ViewportRuler }, { token: DragDropRegistry }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3060
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDrop, providedIn: 'root' }); }
|
|
3010
3061
|
}
|
|
3011
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDrop, decorators: [{
|
|
3012
3063
|
type: Injectable,
|
|
3013
3064
|
args: [{ providedIn: 'root' }]
|
|
3014
3065
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -3066,10 +3117,10 @@ class CdkDragHandle {
|
|
|
3066
3117
|
this._parentDrag?._removeHandle(this);
|
|
3067
3118
|
this._stateChanges.complete();
|
|
3068
3119
|
}
|
|
3069
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3070
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.
|
|
3120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDragHandle, deps: [{ token: i0.ElementRef }, { token: CDK_DRAG_PARENT, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3121
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.3", type: CdkDragHandle, isStandalone: true, selector: "[cdkDragHandle]", inputs: { disabled: ["cdkDragHandleDisabled", "disabled", booleanAttribute] }, host: { classAttribute: "cdk-drag-handle" }, providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }], ngImport: i0 }); }
|
|
3071
3122
|
}
|
|
3072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3073
3124
|
type: Directive,
|
|
3074
3125
|
args: [{
|
|
3075
3126
|
selector: '[cdkDragHandle]',
|
|
@@ -3482,10 +3533,10 @@ class CdkDrag {
|
|
|
3482
3533
|
handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);
|
|
3483
3534
|
});
|
|
3484
3535
|
}
|
|
3485
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3486
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.
|
|
3536
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", 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 }); }
|
|
3537
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.3", type: CdkDrag, isStandalone: true, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled", booleanAttribute], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"] }, 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 }); }
|
|
3487
3538
|
}
|
|
3488
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3489
3540
|
type: Directive,
|
|
3490
3541
|
args: [{
|
|
3491
3542
|
selector: '[cdkDrag]',
|
|
@@ -3604,10 +3655,10 @@ class CdkDropListGroup {
|
|
|
3604
3655
|
ngOnDestroy() {
|
|
3605
3656
|
this._items.clear();
|
|
3606
3657
|
}
|
|
3607
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3608
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.
|
|
3658
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3659
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.3", type: CdkDropListGroup, isStandalone: true, selector: "[cdkDropListGroup]", inputs: { disabled: ["cdkDropListGroupDisabled", "disabled", booleanAttribute] }, providers: [{ provide: CDK_DROP_LIST_GROUP, useExisting: CdkDropListGroup }], exportAs: ["cdkDropListGroup"], ngImport: i0 }); }
|
|
3609
3660
|
}
|
|
3610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
3611
3662
|
type: Directive,
|
|
3612
3663
|
args: [{
|
|
3613
3664
|
selector: '[cdkDropListGroup]',
|
|
@@ -3782,6 +3833,13 @@ class CdkDropList {
|
|
|
3782
3833
|
// shouldn't be able to change without the drop list being destroyed.
|
|
3783
3834
|
this._scrollableParentsResolved = true;
|
|
3784
3835
|
}
|
|
3836
|
+
if (this.elementContainerSelector) {
|
|
3837
|
+
const container = this.element.nativeElement.querySelector(this.elementContainerSelector);
|
|
3838
|
+
if (!container && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
3839
|
+
throw new Error(`CdkDropList could not find an element container matching the selector "${this.elementContainerSelector}"`);
|
|
3840
|
+
}
|
|
3841
|
+
ref.withElementContainer(container);
|
|
3842
|
+
}
|
|
3785
3843
|
ref.disabled = this.disabled;
|
|
3786
3844
|
ref.lockAxis = this.lockAxis;
|
|
3787
3845
|
ref.sortingDisabled = this.sortingDisabled;
|
|
@@ -3853,14 +3911,14 @@ class CdkDropList {
|
|
|
3853
3911
|
_syncItemsWithRef() {
|
|
3854
3912
|
this._dropListRef.withItems(this.getSortedItems().map(item => item._dragRef));
|
|
3855
3913
|
}
|
|
3856
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3857
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.
|
|
3914
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", 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 }); }
|
|
3915
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.3", type: CdkDropList, isStandalone: true, selector: "[cdkDropList], cdk-drop-list", inputs: { connectedTo: ["cdkDropListConnectedTo", "connectedTo"], data: ["cdkDropListData", "data"], orientation: ["cdkDropListOrientation", "orientation"], id: "id", lockAxis: ["cdkDropListLockAxis", "lockAxis"], disabled: ["cdkDropListDisabled", "disabled", booleanAttribute], sortingDisabled: ["cdkDropListSortingDisabled", "sortingDisabled", booleanAttribute], enterPredicate: ["cdkDropListEnterPredicate", "enterPredicate"], sortPredicate: ["cdkDropListSortPredicate", "sortPredicate"], autoScrollDisabled: ["cdkDropListAutoScrollDisabled", "autoScrollDisabled", booleanAttribute], autoScrollStep: ["cdkDropListAutoScrollStep", "autoScrollStep"], elementContainerSelector: ["cdkDropListElementContainer", "elementContainerSelector"] }, outputs: { dropped: "cdkDropListDropped", entered: "cdkDropListEntered", exited: "cdkDropListExited", sorted: "cdkDropListSorted" }, host: { properties: { "attr.id": "id", "class.cdk-drop-list-disabled": "disabled", "class.cdk-drop-list-dragging": "_dropListRef.isDragging()", "class.cdk-drop-list-receiving": "_dropListRef.isReceiving()" }, classAttribute: "cdk-drop-list" }, providers: [
|
|
3858
3916
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
3859
3917
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
3860
3918
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
3861
3919
|
], exportAs: ["cdkDropList"], ngImport: i0 }); }
|
|
3862
3920
|
}
|
|
3863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDropList, decorators: [{
|
|
3864
3922
|
type: Directive,
|
|
3865
3923
|
args: [{
|
|
3866
3924
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -3925,6 +3983,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.1",
|
|
|
3925
3983
|
}], autoScrollStep: [{
|
|
3926
3984
|
type: Input,
|
|
3927
3985
|
args: ['cdkDropListAutoScrollStep']
|
|
3986
|
+
}], elementContainerSelector: [{
|
|
3987
|
+
type: Input,
|
|
3988
|
+
args: ['cdkDropListElementContainer']
|
|
3928
3989
|
}], dropped: [{
|
|
3929
3990
|
type: Output,
|
|
3930
3991
|
args: ['cdkDropListDropped']
|
|
@@ -3960,10 +4021,10 @@ class CdkDragPreview {
|
|
|
3960
4021
|
ngOnDestroy() {
|
|
3961
4022
|
this._drag?._resetPreviewTemplate(this);
|
|
3962
4023
|
}
|
|
3963
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
3964
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.
|
|
4024
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDragPreview, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4025
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.1.0-next.3", type: CdkDragPreview, isStandalone: true, selector: "ng-template[cdkDragPreview]", inputs: { data: "data", matchSize: ["matchSize", "matchSize", booleanAttribute] }, providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }], ngImport: i0 }); }
|
|
3965
4026
|
}
|
|
3966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
4027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
3967
4028
|
type: Directive,
|
|
3968
4029
|
args: [{
|
|
3969
4030
|
selector: 'ng-template[cdkDragPreview]',
|
|
@@ -3996,10 +4057,10 @@ class CdkDragPlaceholder {
|
|
|
3996
4057
|
ngOnDestroy() {
|
|
3997
4058
|
this._drag?._resetPlaceholderTemplate(this);
|
|
3998
4059
|
}
|
|
3999
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
4000
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-next.
|
|
4060
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDragPlaceholder, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4061
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-next.3", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 }); }
|
|
4001
4062
|
}
|
|
4002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
4063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
4003
4064
|
type: Directive,
|
|
4004
4065
|
args: [{
|
|
4005
4066
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
@@ -4019,8 +4080,8 @@ const DRAG_DROP_DIRECTIVES = [
|
|
|
4019
4080
|
CdkDragPlaceholder,
|
|
4020
4081
|
];
|
|
4021
4082
|
class DragDropModule {
|
|
4022
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
4023
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-next.
|
|
4083
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4084
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
|
|
4024
4085
|
CdkDropListGroup,
|
|
4025
4086
|
CdkDrag,
|
|
4026
4087
|
CdkDragHandle,
|
|
@@ -4031,9 +4092,9 @@ class DragDropModule {
|
|
|
4031
4092
|
CdkDragHandle,
|
|
4032
4093
|
CdkDragPreview,
|
|
4033
4094
|
CdkDragPlaceholder] }); }
|
|
4034
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
4095
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] }); }
|
|
4035
4096
|
}
|
|
4036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.
|
|
4097
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3", ngImport: i0, type: DragDropModule, decorators: [{
|
|
4037
4098
|
type: NgModule,
|
|
4038
4099
|
args: [{
|
|
4039
4100
|
imports: DRAG_DROP_DIRECTIVES,
|