@angular/cdk 19.0.0-next.3 → 19.0.0-next.5
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 +19 -37
- package/accordion/index.d.ts +5 -4
- package/bidi/index.d.ts +2 -2
- package/clipboard/index.d.ts +3 -4
- package/dialog/index.d.ts +6 -9
- package/drag-drop/index.d.ts +16 -33
- package/fesm2022/a11y.mjs +109 -167
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +20 -25
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +14 -18
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +19 -26
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs.map +1 -1
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs +3 -3
- package/fesm2022/collections.mjs.map +1 -1
- package/fesm2022/dialog.mjs +33 -53
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +90 -149
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +21 -26
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/listbox.mjs +17 -11
- 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 +21 -21
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +105 -148
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/platform.mjs +7 -7
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +59 -58
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +3 -3
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +86 -126
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +47 -56
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +170 -228
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +33 -40
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +68 -71
- package/fesm2022/tree.mjs.map +1 -1
- package/layout/index.d.ts +5 -7
- package/observers/index.d.ts +2 -2
- package/overlay/_index.scss +44 -11
- package/overlay/index.d.ts +18 -34
- package/overlay-prebuilt.css +1 -1
- package/package.json +1 -1
- package/portal/index.d.ts +21 -18
- package/schematics/index.d.ts +1 -1
- package/schematics/index.js +2 -2
- package/schematics/index.mjs +2 -2
- package/schematics/ng-add/index.d.ts +1 -1
- package/schematics/ng-add/index.js +3 -3
- package/schematics/ng-add/index.mjs +3 -3
- package/schematics/ng-add/package-config.d.ts +1 -1
- package/schematics/ng-add/package-config.js +2 -2
- package/schematics/ng-add/package-config.mjs +2 -2
- package/schematics/ng-add/schema.d.ts +1 -1
- package/schematics/ng-add/schema.js +2 -2
- package/schematics/ng-add/schema.mjs +2 -2
- package/schematics/ng-generate/drag-drop/index.d.ts +1 -1
- package/schematics/ng-generate/drag-drop/index.js +2 -2
- package/schematics/ng-generate/drag-drop/index.mjs +2 -2
- package/schematics/ng-generate/drag-drop/schema.d.ts +1 -1
- package/schematics/ng-generate/drag-drop/schema.js +2 -2
- package/schematics/ng-generate/drag-drop/schema.mjs +2 -2
- package/schematics/ng-update/data/attribute-selectors.d.ts +1 -1
- package/schematics/ng-update/data/attribute-selectors.js +2 -2
- package/schematics/ng-update/data/attribute-selectors.mjs +2 -2
- package/schematics/ng-update/data/class-names.d.ts +1 -1
- package/schematics/ng-update/data/class-names.js +2 -2
- package/schematics/ng-update/data/class-names.mjs +2 -2
- package/schematics/ng-update/data/constructor-checks.d.ts +1 -1
- package/schematics/ng-update/data/constructor-checks.js +2 -2
- package/schematics/ng-update/data/constructor-checks.mjs +2 -2
- package/schematics/ng-update/data/css-selectors.d.ts +1 -1
- package/schematics/ng-update/data/css-selectors.js +2 -2
- package/schematics/ng-update/data/css-selectors.mjs +2 -2
- package/schematics/ng-update/data/css-tokens.d.ts +1 -1
- package/schematics/ng-update/data/css-tokens.js +2 -2
- package/schematics/ng-update/data/css-tokens.mjs +2 -2
- package/schematics/ng-update/data/element-selectors.d.ts +1 -1
- package/schematics/ng-update/data/element-selectors.js +2 -2
- package/schematics/ng-update/data/element-selectors.mjs +2 -2
- package/schematics/ng-update/data/index.d.ts +1 -1
- package/schematics/ng-update/data/index.js +2 -2
- package/schematics/ng-update/data/index.mjs +2 -2
- package/schematics/ng-update/data/input-names.d.ts +1 -1
- package/schematics/ng-update/data/input-names.js +2 -2
- package/schematics/ng-update/data/input-names.mjs +2 -2
- package/schematics/ng-update/data/method-call-checks.d.ts +1 -1
- package/schematics/ng-update/data/method-call-checks.js +2 -2
- package/schematics/ng-update/data/method-call-checks.mjs +2 -2
- package/schematics/ng-update/data/output-names.d.ts +1 -1
- package/schematics/ng-update/data/output-names.js +2 -2
- package/schematics/ng-update/data/output-names.mjs +2 -2
- package/schematics/ng-update/data/property-names.d.ts +1 -1
- package/schematics/ng-update/data/property-names.js +2 -2
- package/schematics/ng-update/data/property-names.mjs +2 -2
- package/schematics/ng-update/data/symbol-removal.d.ts +1 -1
- package/schematics/ng-update/data/symbol-removal.js +2 -2
- package/schematics/ng-update/data/symbol-removal.mjs +2 -2
- package/schematics/ng-update/devkit-file-system.d.ts +1 -1
- package/schematics/ng-update/devkit-file-system.js +2 -2
- package/schematics/ng-update/devkit-file-system.mjs +2 -2
- package/schematics/ng-update/devkit-migration-rule.d.ts +1 -1
- package/schematics/ng-update/devkit-migration-rule.js +2 -2
- package/schematics/ng-update/devkit-migration-rule.mjs +2 -2
- package/schematics/ng-update/devkit-migration.d.ts +1 -1
- package/schematics/ng-update/devkit-migration.js +2 -2
- package/schematics/ng-update/devkit-migration.mjs +2 -2
- package/schematics/ng-update/find-stylesheets.d.ts +1 -1
- package/schematics/ng-update/find-stylesheets.js +2 -2
- package/schematics/ng-update/find-stylesheets.mjs +2 -2
- package/schematics/ng-update/html-parsing/angular.d.ts +1 -1
- package/schematics/ng-update/html-parsing/angular.js +2 -2
- package/schematics/ng-update/html-parsing/angular.mjs +2 -2
- package/schematics/ng-update/html-parsing/elements.d.ts +1 -1
- package/schematics/ng-update/html-parsing/elements.js +2 -2
- package/schematics/ng-update/html-parsing/elements.mjs +2 -2
- package/schematics/ng-update/index.d.ts +1 -1
- package/schematics/ng-update/index.js +2 -2
- package/schematics/ng-update/index.mjs +2 -2
- package/schematics/ng-update/migrations/attribute-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/attribute-selectors.js +2 -2
- package/schematics/ng-update/migrations/attribute-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/class-inheritance.d.ts +1 -1
- package/schematics/ng-update/migrations/class-inheritance.js +2 -2
- package/schematics/ng-update/migrations/class-inheritance.mjs +2 -2
- package/schematics/ng-update/migrations/class-names.d.ts +1 -1
- package/schematics/ng-update/migrations/class-names.js +2 -2
- package/schematics/ng-update/migrations/class-names.mjs +2 -2
- package/schematics/ng-update/migrations/constructor-signature.d.ts +1 -1
- package/schematics/ng-update/migrations/constructor-signature.js +2 -2
- package/schematics/ng-update/migrations/constructor-signature.mjs +2 -2
- package/schematics/ng-update/migrations/css-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/css-selectors.js +2 -2
- package/schematics/ng-update/migrations/css-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/css-tokens.d.ts +1 -1
- package/schematics/ng-update/migrations/css-tokens.js +2 -2
- package/schematics/ng-update/migrations/css-tokens.mjs +2 -2
- package/schematics/ng-update/migrations/element-selectors.d.ts +1 -1
- package/schematics/ng-update/migrations/element-selectors.js +2 -2
- package/schematics/ng-update/migrations/element-selectors.mjs +2 -2
- package/schematics/ng-update/migrations/input-names.d.ts +1 -1
- package/schematics/ng-update/migrations/input-names.js +2 -2
- package/schematics/ng-update/migrations/input-names.mjs +2 -2
- package/schematics/ng-update/migrations/method-call-arguments.d.ts +1 -1
- package/schematics/ng-update/migrations/method-call-arguments.js +2 -2
- package/schematics/ng-update/migrations/method-call-arguments.mjs +2 -2
- package/schematics/ng-update/migrations/misc-template.d.ts +1 -1
- package/schematics/ng-update/migrations/misc-template.js +2 -2
- package/schematics/ng-update/migrations/misc-template.mjs +2 -2
- package/schematics/ng-update/migrations/output-names.d.ts +1 -1
- package/schematics/ng-update/migrations/output-names.js +2 -2
- package/schematics/ng-update/migrations/output-names.mjs +2 -2
- package/schematics/ng-update/migrations/property-names.d.ts +1 -1
- package/schematics/ng-update/migrations/property-names.js +2 -2
- package/schematics/ng-update/migrations/property-names.mjs +2 -2
- package/schematics/ng-update/migrations/symbol-removal.d.ts +1 -1
- package/schematics/ng-update/migrations/symbol-removal.js +2 -2
- package/schematics/ng-update/migrations/symbol-removal.mjs +2 -2
- package/schematics/ng-update/public-api.d.ts +1 -1
- package/schematics/ng-update/public-api.js +2 -2
- package/schematics/ng-update/public-api.mjs +2 -2
- package/schematics/ng-update/typescript/base-types.d.ts +1 -1
- package/schematics/ng-update/typescript/base-types.js +2 -2
- package/schematics/ng-update/typescript/base-types.mjs +2 -2
- package/schematics/ng-update/typescript/imports.d.ts +1 -1
- package/schematics/ng-update/typescript/imports.js +2 -2
- package/schematics/ng-update/typescript/imports.mjs +2 -2
- package/schematics/ng-update/typescript/literal.d.ts +1 -1
- package/schematics/ng-update/typescript/literal.js +2 -2
- package/schematics/ng-update/typescript/literal.mjs +2 -2
- package/schematics/ng-update/typescript/module-specifiers.d.ts +1 -1
- package/schematics/ng-update/typescript/module-specifiers.js +2 -2
- package/schematics/ng-update/typescript/module-specifiers.mjs +2 -2
- package/schematics/ng-update/upgrade-data.d.ts +1 -1
- package/schematics/ng-update/upgrade-data.js +2 -2
- package/schematics/ng-update/upgrade-data.mjs +2 -2
- package/schematics/paths.d.ts +1 -1
- package/schematics/paths.js +2 -2
- package/schematics/paths.mjs +2 -2
- package/schematics/update-tool/component-resource-collector.d.ts +1 -1
- package/schematics/update-tool/component-resource-collector.js +2 -2
- package/schematics/update-tool/component-resource-collector.mjs +2 -2
- package/schematics/update-tool/file-system.d.ts +1 -1
- package/schematics/update-tool/file-system.js +2 -2
- package/schematics/update-tool/file-system.mjs +2 -2
- package/schematics/update-tool/index.d.ts +1 -1
- package/schematics/update-tool/index.js +2 -2
- package/schematics/update-tool/index.mjs +2 -2
- package/schematics/update-tool/logger.d.ts +1 -1
- package/schematics/update-tool/logger.js +2 -2
- package/schematics/update-tool/logger.mjs +2 -2
- package/schematics/update-tool/migration.d.ts +1 -1
- package/schematics/update-tool/migration.js +2 -2
- package/schematics/update-tool/migration.mjs +2 -2
- package/schematics/update-tool/public-api.d.ts +1 -1
- package/schematics/update-tool/public-api.js +2 -2
- package/schematics/update-tool/public-api.mjs +2 -2
- package/schematics/update-tool/target-version.d.ts +1 -1
- package/schematics/update-tool/target-version.js +2 -2
- package/schematics/update-tool/target-version.mjs +2 -2
- package/schematics/update-tool/update-recorder.d.ts +1 -1
- package/schematics/update-tool/update-recorder.js +2 -2
- package/schematics/update-tool/update-recorder.mjs +2 -2
- package/schematics/update-tool/utils/decorators.d.ts +1 -1
- package/schematics/update-tool/utils/decorators.js +2 -2
- package/schematics/update-tool/utils/decorators.mjs +2 -2
- package/schematics/update-tool/utils/diagnostics.d.ts +1 -1
- package/schematics/update-tool/utils/diagnostics.js +2 -2
- package/schematics/update-tool/utils/diagnostics.mjs +2 -2
- package/schematics/update-tool/utils/functions.d.ts +1 -1
- package/schematics/update-tool/utils/functions.js +2 -2
- package/schematics/update-tool/utils/functions.mjs +2 -2
- package/schematics/update-tool/utils/imports.d.ts +1 -1
- package/schematics/update-tool/utils/imports.js +2 -2
- package/schematics/update-tool/utils/imports.mjs +2 -2
- package/schematics/update-tool/utils/line-mappings.d.ts +1 -1
- package/schematics/update-tool/utils/line-mappings.js +2 -2
- package/schematics/update-tool/utils/line-mappings.mjs +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.d.ts +1 -1
- package/schematics/update-tool/utils/parse-tsconfig.js +2 -2
- package/schematics/update-tool/utils/parse-tsconfig.mjs +2 -2
- package/schematics/update-tool/utils/property-name.d.ts +1 -1
- package/schematics/update-tool/utils/property-name.js +2 -2
- package/schematics/update-tool/utils/property-name.mjs +2 -2
- package/schematics/update-tool/utils/virtual-host.d.ts +1 -1
- package/schematics/update-tool/utils/virtual-host.js +2 -2
- package/schematics/update-tool/utils/virtual-host.mjs +2 -2
- package/schematics/update-tool/version-changes.d.ts +1 -1
- package/schematics/update-tool/version-changes.js +2 -2
- package/schematics/update-tool/version-changes.mjs +2 -2
- package/schematics/utils/ast/ng-module-imports.d.ts +1 -1
- package/schematics/utils/ast/ng-module-imports.js +2 -2
- package/schematics/utils/ast/ng-module-imports.mjs +2 -2
- package/schematics/utils/ast.d.ts +1 -1
- package/schematics/utils/ast.js +2 -2
- package/schematics/utils/ast.mjs +2 -2
- package/schematics/utils/build-component.d.ts +1 -1
- package/schematics/utils/build-component.js +2 -2
- package/schematics/utils/build-component.mjs +2 -2
- package/schematics/utils/get-project.d.ts +1 -1
- package/schematics/utils/get-project.js +2 -2
- package/schematics/utils/get-project.mjs +2 -2
- package/schematics/utils/html-manipulation.d.ts +1 -1
- package/schematics/utils/html-manipulation.js +2 -2
- package/schematics/utils/html-manipulation.mjs +2 -2
- package/schematics/utils/index.d.ts +1 -1
- package/schematics/utils/index.js +2 -2
- package/schematics/utils/index.mjs +2 -2
- package/schematics/utils/parse5-element.d.ts +1 -1
- package/schematics/utils/parse5-element.js +2 -2
- package/schematics/utils/parse5-element.mjs +2 -2
- package/schematics/utils/project-index-file.d.ts +1 -1
- package/schematics/utils/project-index-file.js +2 -2
- package/schematics/utils/project-index-file.mjs +2 -2
- package/schematics/utils/project-main-file.d.ts +1 -1
- package/schematics/utils/project-main-file.js +2 -2
- package/schematics/utils/project-main-file.mjs +2 -2
- package/schematics/utils/project-style-file.d.ts +1 -1
- package/schematics/utils/project-style-file.js +2 -2
- package/schematics/utils/project-style-file.mjs +2 -2
- package/schematics/utils/project-targets.d.ts +1 -1
- package/schematics/utils/project-targets.js +2 -2
- package/schematics/utils/project-targets.mjs +2 -2
- package/schematics/utils/project-tsconfig-paths.d.ts +1 -1
- package/schematics/utils/project-tsconfig-paths.js +2 -2
- package/schematics/utils/project-tsconfig-paths.mjs +2 -2
- package/schematics/utils/schematic-options.d.ts +1 -1
- package/schematics/utils/schematic-options.js +2 -2
- package/schematics/utils/schematic-options.mjs +2 -2
- package/scrolling/index.d.ts +17 -37
- package/stepper/index.d.ts +9 -11
- package/table/index.d.ts +36 -51
- package/text-field/index.d.ts +5 -9
- package/tree/index.d.ts +11 -13
package/fesm2022/drag-drop.mjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, Component, ViewEncapsulation, ChangeDetectionStrategy, inject,
|
|
2
|
+
import { signal, Component, ViewEncapsulation, ChangeDetectionStrategy, inject, NgZone, 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
|
-
import
|
|
5
|
-
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
4
|
+
import { ViewportRuler, ScrollDispatcher, CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
6
5
|
import { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from '@angular/cdk/a11y';
|
|
7
6
|
import { coerceElement, coerceNumberProperty, coerceArray } from '@angular/cdk/coercion';
|
|
8
7
|
import { _getEventTarget, normalizePassiveListenerOptions, _getShadowRoot } from '@angular/cdk/platform';
|
|
9
8
|
import { Subject, Subscription, interval, animationFrameScheduler, Observable, merge, BehaviorSubject } from 'rxjs';
|
|
10
9
|
import { takeUntil, map, take, tap, switchMap, startWith } from 'rxjs/operators';
|
|
11
10
|
import { _CdkPrivateStyleLoader } from '@angular/cdk/private';
|
|
12
|
-
import
|
|
11
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
13
12
|
|
|
14
13
|
/** Creates a deep clone of an element. */
|
|
15
14
|
function deepCloneNode(node) {
|
|
@@ -2802,10 +2801,10 @@ const activeCapturingEventOptions = normalizePassiveListenerOptions({
|
|
|
2802
2801
|
* @docs-private
|
|
2803
2802
|
*/
|
|
2804
2803
|
class _ResetsLoader {
|
|
2805
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
2806
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
2804
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2805
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.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}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2807
2806
|
}
|
|
2808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
2807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: _ResetsLoader, decorators: [{
|
|
2809
2808
|
type: Component,
|
|
2810
2809
|
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}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"] }]
|
|
2811
2810
|
}] });
|
|
@@ -2816,8 +2815,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
2816
2815
|
* @docs-private
|
|
2817
2816
|
*/
|
|
2818
2817
|
class DragDropRegistry {
|
|
2819
|
-
constructor(
|
|
2820
|
-
this._ngZone =
|
|
2818
|
+
constructor() {
|
|
2819
|
+
this._ngZone = inject(NgZone);
|
|
2820
|
+
this._document = inject(DOCUMENT);
|
|
2821
2821
|
this._styleLoader = inject(_CdkPrivateStyleLoader);
|
|
2822
2822
|
/** Registered drop container instances. */
|
|
2823
2823
|
this._dropInstances = new Set();
|
|
@@ -2869,7 +2869,6 @@ class DragDropRegistry {
|
|
|
2869
2869
|
this.pointerMove.next(event);
|
|
2870
2870
|
}
|
|
2871
2871
|
};
|
|
2872
|
-
this._document = _document;
|
|
2873
2872
|
}
|
|
2874
2873
|
/** Adds a drop container to the registry. */
|
|
2875
2874
|
registerDropContainer(drop) {
|
|
@@ -3016,16 +3015,13 @@ class DragDropRegistry {
|
|
|
3016
3015
|
});
|
|
3017
3016
|
this._globalListeners.clear();
|
|
3018
3017
|
}
|
|
3019
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3020
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3018
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDropRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3019
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDropRegistry, providedIn: 'root' }); }
|
|
3021
3020
|
}
|
|
3022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDropRegistry, decorators: [{
|
|
3023
3022
|
type: Injectable,
|
|
3024
3023
|
args: [{ providedIn: 'root' }]
|
|
3025
|
-
}], ctorParameters: () => [
|
|
3026
|
-
type: Inject,
|
|
3027
|
-
args: [DOCUMENT]
|
|
3028
|
-
}] }] });
|
|
3024
|
+
}], ctorParameters: () => [] });
|
|
3029
3025
|
|
|
3030
3026
|
/** Default configuration to be used when creating a `DragRef`. */
|
|
3031
3027
|
const DEFAULT_CONFIG = {
|
|
@@ -3036,11 +3032,11 @@ const DEFAULT_CONFIG = {
|
|
|
3036
3032
|
* Service that allows for drag-and-drop functionality to be attached to DOM elements.
|
|
3037
3033
|
*/
|
|
3038
3034
|
class DragDrop {
|
|
3039
|
-
constructor(
|
|
3040
|
-
this._document =
|
|
3041
|
-
this._ngZone =
|
|
3042
|
-
this._viewportRuler =
|
|
3043
|
-
this._dragDropRegistry =
|
|
3035
|
+
constructor() {
|
|
3036
|
+
this._document = inject(DOCUMENT);
|
|
3037
|
+
this._ngZone = inject(NgZone);
|
|
3038
|
+
this._viewportRuler = inject(ViewportRuler);
|
|
3039
|
+
this._dragDropRegistry = inject(DragDropRegistry);
|
|
3044
3040
|
}
|
|
3045
3041
|
/**
|
|
3046
3042
|
* Turns an element into a draggable item.
|
|
@@ -3057,16 +3053,13 @@ class DragDrop {
|
|
|
3057
3053
|
createDropList(element) {
|
|
3058
3054
|
return new DropListRef(element, this._dragDropRegistry, this._document, this._ngZone, this._viewportRuler);
|
|
3059
3055
|
}
|
|
3060
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3061
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3056
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDrop, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3057
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDrop, providedIn: 'root' }); }
|
|
3062
3058
|
}
|
|
3063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDrop, decorators: [{
|
|
3064
3060
|
type: Injectable,
|
|
3065
3061
|
args: [{ providedIn: 'root' }]
|
|
3066
|
-
}], ctorParameters: () => [
|
|
3067
|
-
type: Inject,
|
|
3068
|
-
args: [DOCUMENT]
|
|
3069
|
-
}] }, { type: i0.NgZone }, { type: i1.ViewportRuler }, { type: DragDropRegistry }] });
|
|
3062
|
+
}], ctorParameters: () => [] });
|
|
3070
3063
|
|
|
3071
3064
|
/**
|
|
3072
3065
|
* Injection token that can be used for a `CdkDrag` to provide itself as a parent to the
|
|
@@ -3103,25 +3096,25 @@ class CdkDragHandle {
|
|
|
3103
3096
|
this._disabled = value;
|
|
3104
3097
|
this._stateChanges.next(this);
|
|
3105
3098
|
}
|
|
3106
|
-
constructor(
|
|
3107
|
-
this.element =
|
|
3108
|
-
this._parentDrag =
|
|
3099
|
+
constructor() {
|
|
3100
|
+
this.element = inject(ElementRef);
|
|
3101
|
+
this._parentDrag = inject(CDK_DRAG_PARENT, { optional: true, skipSelf: true });
|
|
3109
3102
|
/** Emits when the state of the handle has changed. */
|
|
3110
3103
|
this._stateChanges = new Subject();
|
|
3111
3104
|
this._disabled = false;
|
|
3112
3105
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
3113
|
-
assertElementNode(element.nativeElement, 'cdkDragHandle');
|
|
3106
|
+
assertElementNode(this.element.nativeElement, 'cdkDragHandle');
|
|
3114
3107
|
}
|
|
3115
|
-
_parentDrag?._addHandle(this);
|
|
3108
|
+
this._parentDrag?._addHandle(this);
|
|
3116
3109
|
}
|
|
3117
3110
|
ngOnDestroy() {
|
|
3118
3111
|
this._parentDrag?._removeHandle(this);
|
|
3119
3112
|
this._stateChanges.complete();
|
|
3120
3113
|
}
|
|
3121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3122
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
3114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDragHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3115
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.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 }); }
|
|
3123
3116
|
}
|
|
3124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDragHandle, decorators: [{
|
|
3125
3118
|
type: Directive,
|
|
3126
3119
|
args: [{
|
|
3127
3120
|
selector: '[cdkDragHandle]',
|
|
@@ -3131,14 +3124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
3131
3124
|
},
|
|
3132
3125
|
providers: [{ provide: CDK_DRAG_HANDLE, useExisting: CdkDragHandle }],
|
|
3133
3126
|
}]
|
|
3134
|
-
}], ctorParameters: () => [
|
|
3135
|
-
type: Inject,
|
|
3136
|
-
args: [CDK_DRAG_PARENT]
|
|
3137
|
-
}, {
|
|
3138
|
-
type: Optional
|
|
3139
|
-
}, {
|
|
3140
|
-
type: SkipSelf
|
|
3141
|
-
}] }], propDecorators: { disabled: [{
|
|
3127
|
+
}], ctorParameters: () => [], propDecorators: { disabled: [{
|
|
3142
3128
|
type: Input,
|
|
3143
3129
|
args: [{ alias: 'cdkDragHandleDisabled', transform: booleanAttribute }]
|
|
3144
3130
|
}] } });
|
|
@@ -3161,30 +3147,21 @@ class CdkDrag {
|
|
|
3161
3147
|
static { this._dragInstances = []; }
|
|
3162
3148
|
/** Whether starting to drag this element is disabled. */
|
|
3163
3149
|
get disabled() {
|
|
3164
|
-
return this._disabled || (this.dropContainer && this.dropContainer.disabled);
|
|
3150
|
+
return this._disabled || !!(this.dropContainer && this.dropContainer.disabled);
|
|
3165
3151
|
}
|
|
3166
3152
|
set disabled(value) {
|
|
3167
3153
|
this._disabled = value;
|
|
3168
3154
|
this._dragRef.disabled = this._disabled;
|
|
3169
3155
|
}
|
|
3170
|
-
constructor(
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
_document, _ngZone, _viewContainerRef, config, _dir, dragDrop, _changeDetectorRef, _selfHandle, _parentDrag) {
|
|
3180
|
-
this.element = element;
|
|
3181
|
-
this.dropContainer = dropContainer;
|
|
3182
|
-
this._ngZone = _ngZone;
|
|
3183
|
-
this._viewContainerRef = _viewContainerRef;
|
|
3184
|
-
this._dir = _dir;
|
|
3185
|
-
this._changeDetectorRef = _changeDetectorRef;
|
|
3186
|
-
this._selfHandle = _selfHandle;
|
|
3187
|
-
this._parentDrag = _parentDrag;
|
|
3156
|
+
constructor() {
|
|
3157
|
+
this.element = inject(ElementRef);
|
|
3158
|
+
this.dropContainer = inject(CDK_DROP_LIST, { optional: true, skipSelf: true });
|
|
3159
|
+
this._ngZone = inject(NgZone);
|
|
3160
|
+
this._viewContainerRef = inject(ViewContainerRef);
|
|
3161
|
+
this._dir = inject(Directionality, { optional: true });
|
|
3162
|
+
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
3163
|
+
this._selfHandle = inject(CDK_DRAG_HANDLE, { optional: true, self: true });
|
|
3164
|
+
this._parentDrag = inject(CDK_DRAG_PARENT, { optional: true, skipSelf: true });
|
|
3188
3165
|
this._destroyed = new Subject();
|
|
3189
3166
|
this._handles = new BehaviorSubject([]);
|
|
3190
3167
|
/**
|
|
@@ -3223,7 +3200,10 @@ class CdkDrag {
|
|
|
3223
3200
|
};
|
|
3224
3201
|
});
|
|
3225
3202
|
this._injector = inject(Injector);
|
|
3226
|
-
|
|
3203
|
+
const dropContainer = this.dropContainer;
|
|
3204
|
+
const config = inject(CDK_DRAG_CONFIG, { optional: true });
|
|
3205
|
+
const dragDrop = inject(DragDrop);
|
|
3206
|
+
this._dragRef = dragDrop.createDrag(this.element, {
|
|
3227
3207
|
dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5,
|
|
3228
3208
|
pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null
|
|
3229
3209
|
? config.pointerDirectionChangeThreshold
|
|
@@ -3292,6 +3272,7 @@ class CdkDrag {
|
|
|
3292
3272
|
afterNextRender(() => {
|
|
3293
3273
|
this._updateRootElement();
|
|
3294
3274
|
this._setupHandlesListener();
|
|
3275
|
+
this._dragRef.scale = this.scale;
|
|
3295
3276
|
if (this.freeDragPosition) {
|
|
3296
3277
|
this._dragRef.setFreeDragPosition(this.freeDragPosition);
|
|
3297
3278
|
}
|
|
@@ -3305,6 +3286,8 @@ class CdkDrag {
|
|
|
3305
3286
|
if (rootSelectorChange && !rootSelectorChange.firstChange) {
|
|
3306
3287
|
this._updateRootElement();
|
|
3307
3288
|
}
|
|
3289
|
+
// Scale affects the free drag position so we need to sync it up here.
|
|
3290
|
+
this._dragRef.scale = this.scale;
|
|
3308
3291
|
// Skip the first change since it's being handled in the `afterNextRender` queued up in the
|
|
3309
3292
|
// constructor.
|
|
3310
3293
|
if (positionChange && !positionChange.firstChange && this.freeDragPosition) {
|
|
@@ -3544,10 +3527,10 @@ class CdkDrag {
|
|
|
3544
3527
|
handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle);
|
|
3545
3528
|
});
|
|
3546
3529
|
}
|
|
3547
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3548
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
3530
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDrag, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3531
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.3", type: CdkDrag, isStandalone: true, selector: "[cdkDrag]", inputs: { data: ["cdkDragData", "data"], lockAxis: ["cdkDragLockAxis", "lockAxis"], rootElementSelector: ["cdkDragRootElement", "rootElementSelector"], boundaryElement: ["cdkDragBoundary", "boundaryElement"], dragStartDelay: ["cdkDragStartDelay", "dragStartDelay"], freeDragPosition: ["cdkDragFreeDragPosition", "freeDragPosition"], disabled: ["cdkDragDisabled", "disabled", booleanAttribute], constrainPosition: ["cdkDragConstrainPosition", "constrainPosition"], previewClass: ["cdkDragPreviewClass", "previewClass"], previewContainer: ["cdkDragPreviewContainer", "previewContainer"], scale: ["cdkDragScale", "scale", numberAttribute] }, outputs: { started: "cdkDragStarted", released: "cdkDragReleased", ended: "cdkDragEnded", entered: "cdkDragEntered", exited: "cdkDragExited", dropped: "cdkDragDropped", moved: "cdkDragMoved" }, host: { properties: { "class.cdk-drag-disabled": "disabled", "class.cdk-drag-dragging": "_dragRef.isDragging()" }, classAttribute: "cdk-drag" }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }], exportAs: ["cdkDrag"], usesOnChanges: true, ngImport: i0 }); }
|
|
3549
3532
|
}
|
|
3550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDrag, decorators: [{
|
|
3551
3534
|
type: Directive,
|
|
3552
3535
|
args: [{
|
|
3553
3536
|
selector: '[cdkDrag]',
|
|
@@ -3560,38 +3543,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
3560
3543
|
},
|
|
3561
3544
|
providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }],
|
|
3562
3545
|
}]
|
|
3563
|
-
}], ctorParameters: () => [
|
|
3564
|
-
type: Inject,
|
|
3565
|
-
args: [CDK_DROP_LIST]
|
|
3566
|
-
}, {
|
|
3567
|
-
type: Optional
|
|
3568
|
-
}, {
|
|
3569
|
-
type: SkipSelf
|
|
3570
|
-
}] }, { type: undefined, decorators: [{
|
|
3571
|
-
type: Inject,
|
|
3572
|
-
args: [DOCUMENT]
|
|
3573
|
-
}] }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
|
3574
|
-
type: Optional
|
|
3575
|
-
}, {
|
|
3576
|
-
type: Inject,
|
|
3577
|
-
args: [CDK_DRAG_CONFIG]
|
|
3578
|
-
}] }, { type: i1$1.Directionality, decorators: [{
|
|
3579
|
-
type: Optional
|
|
3580
|
-
}] }, { type: DragDrop }, { type: i0.ChangeDetectorRef }, { type: CdkDragHandle, decorators: [{
|
|
3581
|
-
type: Optional
|
|
3582
|
-
}, {
|
|
3583
|
-
type: Self
|
|
3584
|
-
}, {
|
|
3585
|
-
type: Inject,
|
|
3586
|
-
args: [CDK_DRAG_HANDLE]
|
|
3587
|
-
}] }, { type: CdkDrag, decorators: [{
|
|
3588
|
-
type: Optional
|
|
3589
|
-
}, {
|
|
3590
|
-
type: SkipSelf
|
|
3591
|
-
}, {
|
|
3592
|
-
type: Inject,
|
|
3593
|
-
args: [CDK_DRAG_PARENT]
|
|
3594
|
-
}] }], propDecorators: { data: [{
|
|
3546
|
+
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
3595
3547
|
type: Input,
|
|
3596
3548
|
args: ['cdkDragData']
|
|
3597
3549
|
}], lockAxis: [{
|
|
@@ -3669,10 +3621,10 @@ class CdkDropListGroup {
|
|
|
3669
3621
|
ngOnDestroy() {
|
|
3670
3622
|
this._items.clear();
|
|
3671
3623
|
}
|
|
3672
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3673
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
3624
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDropListGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3625
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.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 }); }
|
|
3674
3626
|
}
|
|
3675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDropListGroup, decorators: [{
|
|
3676
3628
|
type: Directive,
|
|
3677
3629
|
args: [{
|
|
3678
3630
|
selector: '[cdkDropListGroup]',
|
|
@@ -3702,14 +3654,15 @@ class CdkDropList {
|
|
|
3702
3654
|
// the user in a disabled state, so we also need to sync it as it's being set.
|
|
3703
3655
|
this._dropListRef.disabled = this._disabled = value;
|
|
3704
3656
|
}
|
|
3705
|
-
constructor(
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
this.
|
|
3709
|
-
this.
|
|
3710
|
-
this.
|
|
3711
|
-
|
|
3712
|
-
|
|
3657
|
+
constructor() {
|
|
3658
|
+
this.element = inject(ElementRef);
|
|
3659
|
+
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
3660
|
+
this._scrollDispatcher = inject(ScrollDispatcher);
|
|
3661
|
+
this._dir = inject(Directionality, { optional: true });
|
|
3662
|
+
this._group = inject(CDK_DROP_LIST_GROUP, {
|
|
3663
|
+
optional: true,
|
|
3664
|
+
skipSelf: true,
|
|
3665
|
+
});
|
|
3713
3666
|
/** Emits when the list has been destroyed. */
|
|
3714
3667
|
this._destroyed = new Subject();
|
|
3715
3668
|
/**
|
|
@@ -3751,10 +3704,12 @@ class CdkDropList {
|
|
|
3751
3704
|
* and then we sort them based on their position in the DOM.
|
|
3752
3705
|
*/
|
|
3753
3706
|
this._unsortedItems = new Set();
|
|
3707
|
+
const dragDrop = inject(DragDrop);
|
|
3708
|
+
const config = inject(CDK_DRAG_CONFIG, { optional: true });
|
|
3754
3709
|
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
3755
|
-
assertElementNode(element.nativeElement, 'cdkDropList');
|
|
3710
|
+
assertElementNode(this.element.nativeElement, 'cdkDropList');
|
|
3756
3711
|
}
|
|
3757
|
-
this._dropListRef = dragDrop.createDropList(element);
|
|
3712
|
+
this._dropListRef = dragDrop.createDropList(this.element);
|
|
3758
3713
|
this._dropListRef.data = this;
|
|
3759
3714
|
if (config) {
|
|
3760
3715
|
this._assignDefaults(config);
|
|
@@ -3768,8 +3723,8 @@ class CdkDropList {
|
|
|
3768
3723
|
this._setupInputSyncSubscription(this._dropListRef);
|
|
3769
3724
|
this._handleEvents(this._dropListRef);
|
|
3770
3725
|
CdkDropList._dropLists.push(this);
|
|
3771
|
-
if (_group) {
|
|
3772
|
-
_group._items.add(this);
|
|
3726
|
+
if (this._group) {
|
|
3727
|
+
this._group._items.add(this);
|
|
3773
3728
|
}
|
|
3774
3729
|
}
|
|
3775
3730
|
/** Registers an items with the drop list. */
|
|
@@ -3925,14 +3880,14 @@ class CdkDropList {
|
|
|
3925
3880
|
_syncItemsWithRef() {
|
|
3926
3881
|
this._dropListRef.withItems(this.getSortedItems().map(item => item._dragRef));
|
|
3927
3882
|
}
|
|
3928
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3929
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
3883
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDropList, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3884
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.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: [
|
|
3930
3885
|
// Prevent child drop lists from picking up the same group as their parent.
|
|
3931
3886
|
{ provide: CDK_DROP_LIST_GROUP, useValue: undefined },
|
|
3932
3887
|
{ provide: CDK_DROP_LIST, useExisting: CdkDropList },
|
|
3933
3888
|
], exportAs: ["cdkDropList"], ngImport: i0 }); }
|
|
3934
3889
|
}
|
|
3935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDropList, decorators: [{
|
|
3936
3891
|
type: Directive,
|
|
3937
3892
|
args: [{
|
|
3938
3893
|
selector: '[cdkDropList], cdk-drop-list',
|
|
@@ -3951,21 +3906,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.2",
|
|
|
3951
3906
|
'[class.cdk-drop-list-receiving]': '_dropListRef.isReceiving()',
|
|
3952
3907
|
},
|
|
3953
3908
|
}]
|
|
3954
|
-
}], ctorParameters: () => [
|
|
3955
|
-
type: Optional
|
|
3956
|
-
}] }, { type: CdkDropListGroup, decorators: [{
|
|
3957
|
-
type: Optional
|
|
3958
|
-
}, {
|
|
3959
|
-
type: Inject,
|
|
3960
|
-
args: [CDK_DROP_LIST_GROUP]
|
|
3961
|
-
}, {
|
|
3962
|
-
type: SkipSelf
|
|
3963
|
-
}] }, { type: undefined, decorators: [{
|
|
3964
|
-
type: Optional
|
|
3965
|
-
}, {
|
|
3966
|
-
type: Inject,
|
|
3967
|
-
args: [CDK_DRAG_CONFIG]
|
|
3968
|
-
}] }], propDecorators: { connectedTo: [{
|
|
3909
|
+
}], ctorParameters: () => [], propDecorators: { connectedTo: [{
|
|
3969
3910
|
type: Input,
|
|
3970
3911
|
args: ['cdkDropListConnectedTo']
|
|
3971
3912
|
}], data: [{
|
|
@@ -4025,8 +3966,8 @@ const CDK_DRAG_PREVIEW = new InjectionToken('CdkDragPreview');
|
|
|
4025
3966
|
* of a CdkDrag when it is being dragged.
|
|
4026
3967
|
*/
|
|
4027
3968
|
class CdkDragPreview {
|
|
4028
|
-
constructor(
|
|
4029
|
-
this.templateRef =
|
|
3969
|
+
constructor() {
|
|
3970
|
+
this.templateRef = inject(TemplateRef);
|
|
4030
3971
|
this._drag = inject(CDK_DRAG_PARENT, { optional: true });
|
|
4031
3972
|
/** Whether the preview should preserve the same size as the item that is being dragged. */
|
|
4032
3973
|
this.matchSize = false;
|
|
@@ -4035,17 +3976,17 @@ class CdkDragPreview {
|
|
|
4035
3976
|
ngOnDestroy() {
|
|
4036
3977
|
this._drag?._resetPreviewTemplate(this);
|
|
4037
3978
|
}
|
|
4038
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
4039
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.0-next.
|
|
3979
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDragPreview, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3980
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.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 }); }
|
|
4040
3981
|
}
|
|
4041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
3982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDragPreview, decorators: [{
|
|
4042
3983
|
type: Directive,
|
|
4043
3984
|
args: [{
|
|
4044
3985
|
selector: 'ng-template[cdkDragPreview]',
|
|
4045
3986
|
standalone: true,
|
|
4046
3987
|
providers: [{ provide: CDK_DRAG_PREVIEW, useExisting: CdkDragPreview }],
|
|
4047
3988
|
}]
|
|
4048
|
-
}], ctorParameters: () => [
|
|
3989
|
+
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
4049
3990
|
type: Input
|
|
4050
3991
|
}], matchSize: [{
|
|
4051
3992
|
type: Input,
|
|
@@ -4063,25 +4004,25 @@ const CDK_DRAG_PLACEHOLDER = new InjectionToken('CdkDragPlaceholder');
|
|
|
4063
4004
|
* it is being dragged. The placeholder is displayed in place of the element being dragged.
|
|
4064
4005
|
*/
|
|
4065
4006
|
class CdkDragPlaceholder {
|
|
4066
|
-
constructor(
|
|
4067
|
-
this.templateRef =
|
|
4007
|
+
constructor() {
|
|
4008
|
+
this.templateRef = inject(TemplateRef);
|
|
4068
4009
|
this._drag = inject(CDK_DRAG_PARENT, { optional: true });
|
|
4069
4010
|
this._drag?._setPlaceholderTemplate(this);
|
|
4070
4011
|
}
|
|
4071
4012
|
ngOnDestroy() {
|
|
4072
4013
|
this._drag?._resetPlaceholderTemplate(this);
|
|
4073
4014
|
}
|
|
4074
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
4075
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
4015
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDragPlaceholder, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4016
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.0-next.3", type: CdkDragPlaceholder, isStandalone: true, selector: "ng-template[cdkDragPlaceholder]", inputs: { data: "data" }, providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }], ngImport: i0 }); }
|
|
4076
4017
|
}
|
|
4077
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
4018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: CdkDragPlaceholder, decorators: [{
|
|
4078
4019
|
type: Directive,
|
|
4079
4020
|
args: [{
|
|
4080
4021
|
selector: 'ng-template[cdkDragPlaceholder]',
|
|
4081
4022
|
standalone: true,
|
|
4082
4023
|
providers: [{ provide: CDK_DRAG_PLACEHOLDER, useExisting: CdkDragPlaceholder }],
|
|
4083
4024
|
}]
|
|
4084
|
-
}], ctorParameters: () => [
|
|
4025
|
+
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
4085
4026
|
type: Input
|
|
4086
4027
|
}] } });
|
|
4087
4028
|
|
|
@@ -4094,8 +4035,8 @@ const DRAG_DROP_DIRECTIVES = [
|
|
|
4094
4035
|
CdkDragPlaceholder,
|
|
4095
4036
|
];
|
|
4096
4037
|
class DragDropModule {
|
|
4097
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
4098
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.
|
|
4038
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4039
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDropModule, imports: [CdkDropList,
|
|
4099
4040
|
CdkDropListGroup,
|
|
4100
4041
|
CdkDrag,
|
|
4101
4042
|
CdkDragHandle,
|
|
@@ -4106,9 +4047,9 @@ class DragDropModule {
|
|
|
4106
4047
|
CdkDragHandle,
|
|
4107
4048
|
CdkDragPreview,
|
|
4108
4049
|
CdkDragPlaceholder] }); }
|
|
4109
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
4050
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDropModule, providers: [DragDrop], imports: [CdkScrollableModule] }); }
|
|
4110
4051
|
}
|
|
4111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.
|
|
4052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.3", ngImport: i0, type: DragDropModule, decorators: [{
|
|
4112
4053
|
type: NgModule,
|
|
4113
4054
|
args: [{
|
|
4114
4055
|
imports: DRAG_DROP_DIRECTIVES,
|