@angular/cdk 20.0.0-next.6 → 20.0.0-next.8
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 +10 -11
- package/{a11y-module.d-9e4162d8.d.ts → a11y-module.d-DrV0SO0k.d.ts} +4 -4
- package/a11y-prebuilt.css +1 -1
- package/accordion/index.d.ts +2 -2
- package/{activedescendant-key-manager.d-8f004111.d.ts → activedescendant-key-manager.d-DSYvyoT0.d.ts} +3 -3
- package/bidi/index.d.ts +1 -1
- package/{bidi-module.d-e02fd94c.d.ts → bidi-module.d-bsVYOt0R.d.ts} +2 -2
- package/clipboard/index.d.ts +1 -1
- package/coercion/index.d.ts +1 -1
- package/collections/index.d.ts +8 -8
- package/{data-source.d-7eda4d9a.d.ts → data-source.d-DAIyaEMO.d.ts} +2 -2
- package/dialog/index.d.ts +16 -16
- package/drag-drop/index.d.ts +10 -6
- package/fesm2022/{a11y-module-3f18e5c2.mjs → a11y-module-CEBjqXuv.mjs} +10 -11
- package/fesm2022/a11y-module-CEBjqXuv.mjs.map +1 -0
- package/fesm2022/a11y.mjs +26 -26
- package/fesm2022/a11y.mjs.map +1 -1
- package/fesm2022/accordion.mjs +3 -3
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/{activedescendant-key-manager-ca3e95bd.mjs → activedescendant-key-manager-BYiHZAZc.mjs} +3 -3
- package/fesm2022/activedescendant-key-manager-BYiHZAZc.mjs.map +1 -0
- package/fesm2022/{array-88204b72.mjs → array-Hg8isvLj.mjs} +2 -2
- package/fesm2022/array-Hg8isvLj.mjs.map +1 -0
- package/fesm2022/bidi.mjs +77 -4
- package/fesm2022/bidi.mjs.map +1 -1
- package/fesm2022/{breakpoints-observer-9d296976.mjs → breakpoints-observer-CsCzbYlX.mjs} +4 -4
- package/fesm2022/breakpoints-observer-CsCzbYlX.mjs.map +1 -0
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +1 -2
- package/fesm2022/clipboard.mjs.map +1 -1
- package/fesm2022/coercion/private.mjs +14 -2
- package/fesm2022/coercion/private.mjs.map +1 -1
- package/fesm2022/coercion.mjs +3 -3
- package/fesm2022/coercion.mjs.map +1 -1
- package/fesm2022/collections.mjs +5 -5
- package/fesm2022/{css-pixel-value-5ab12b77.mjs → css-pixel-value-C1yoKJ7R.mjs} +2 -2
- package/fesm2022/css-pixel-value-C1yoKJ7R.mjs.map +1 -0
- package/fesm2022/{data-source-a3a3a257.mjs → data-source-CL6Fasig.mjs} +2 -2
- package/fesm2022/data-source-CL6Fasig.mjs.map +1 -0
- package/fesm2022/dialog.mjs +55 -41
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/{directionality-25132624.mjs → directionality-kM9GX3mp.mjs} +3 -4
- package/fesm2022/directionality-kM9GX3mp.mjs.map +1 -0
- package/fesm2022/{dispose-view-repeater-strategy-0bf96031.mjs → dispose-view-repeater-strategy-BLw1RSwm.mjs} +3 -3
- package/fesm2022/dispose-view-repeater-strategy-BLw1RSwm.mjs.map +1 -0
- package/fesm2022/drag-drop.mjs +70 -18
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/{element-bed495ef.mjs → element-CpqV8p-X.mjs} +2 -2
- package/fesm2022/element-CpqV8p-X.mjs.map +1 -0
- package/fesm2022/{fake-event-detection-61bf2988.mjs → fake-event-detection-D0_6qVp2.mjs} +2 -2
- package/fesm2022/fake-event-detection-D0_6qVp2.mjs.map +1 -0
- package/fesm2022/{focus-key-manager-f4cf48e1.mjs → focus-key-manager-DgyxYbV2.mjs} +3 -3
- package/fesm2022/focus-key-manager-DgyxYbV2.mjs.map +1 -0
- package/fesm2022/{focus-monitor-4af46fa6.mjs → focus-monitor-jX8r4DY-.mjs} +9 -10
- package/fesm2022/focus-monitor-jX8r4DY-.mjs.map +1 -0
- package/fesm2022/{id-generator-dd03740e.mjs → id-generator-B33AfkWd.mjs} +2 -2
- package/fesm2022/id-generator-B33AfkWd.mjs.map +1 -0
- package/fesm2022/{keycodes-fbdb6e67.mjs → keycodes-DPWmI2Ix.mjs} +2 -2
- package/fesm2022/keycodes-DPWmI2Ix.mjs.map +1 -0
- package/fesm2022/keycodes.mjs +14 -2
- package/fesm2022/keycodes.mjs.map +1 -1
- package/fesm2022/layout.mjs +3 -3
- package/fesm2022/layout.mjs.map +1 -1
- package/fesm2022/{list-key-manager-0ce9d5be.mjs → list-key-manager-CYBoL_nN.mjs} +5 -5
- package/fesm2022/list-key-manager-CYBoL_nN.mjs.map +1 -0
- package/fesm2022/listbox.mjs +11 -11
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +26 -26
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/observers.mjs +209 -5
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/{overlay-module-a2bddb9f.mjs → overlay-module-BcjSxQND.mjs} +104 -90
- package/fesm2022/overlay-module-BcjSxQND.mjs.map +1 -0
- package/fesm2022/overlay.mjs +20 -20
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/{passive-listeners-1189a3bc.mjs → passive-listeners-ZmZRMx8D.mjs} +2 -2
- package/fesm2022/passive-listeners-ZmZRMx8D.mjs.map +1 -0
- package/fesm2022/{platform-3b280dd2.mjs → platform-BInyKIh1.mjs} +2 -2
- package/fesm2022/platform-BInyKIh1.mjs.map +1 -0
- package/fesm2022/platform.mjs +5 -5
- package/fesm2022/platform.mjs.map +1 -1
- package/fesm2022/portal.mjs +613 -3
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +18 -3
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/{recycle-view-repeater-strategy-7fe34ce5.mjs → recycle-view-repeater-strategy-Ce0p4WhD.mjs} +4 -4
- package/fesm2022/recycle-view-repeater-strategy-Ce0p4WhD.mjs.map +1 -0
- package/fesm2022/{scrolling-4b9e82b7.mjs → scrolling-BXVcIfjZ.mjs} +2 -2
- package/fesm2022/scrolling-BXVcIfjZ.mjs.map +1 -0
- package/fesm2022/scrolling.mjs +1462 -11
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/{selection-model-7800ff2c.mjs → selection-model-88BErm4w.mjs} +2 -2
- package/fesm2022/selection-model-88BErm4w.mjs.map +1 -0
- package/fesm2022/{shadow-dom-09da63d7.mjs → shadow-dom-DFvX9W95.mjs} +2 -2
- package/fesm2022/shadow-dom-DFvX9W95.mjs.map +1 -0
- package/fesm2022/stepper.mjs +10 -11
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/{style-loader-f70e1cd6.mjs → style-loader-DpEDdstc.mjs} +2 -2
- package/fesm2022/style-loader-DpEDdstc.mjs.map +1 -0
- package/fesm2022/table.mjs +14 -14
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/{test-environment-75e095b5.mjs → test-environment-BgaaXvCA.mjs} +2 -2
- package/fesm2022/test-environment-BgaaXvCA.mjs.map +1 -0
- package/fesm2022/testing/selenium-webdriver.mjs +1 -1
- package/fesm2022/testing/selenium-webdriver.mjs.map +1 -1
- package/fesm2022/testing/testbed.mjs +2 -2
- package/fesm2022/testing/testbed.mjs.map +1 -1
- package/fesm2022/testing.mjs +697 -2
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/text-field.mjs +7 -7
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/{tree-key-manager-fb779925.mjs → tree-key-manager-DIhQ-v4R.mjs} +5 -5
- package/fesm2022/tree-key-manager-DIhQ-v4R.mjs.map +1 -0
- package/fesm2022/tree.mjs +8 -9
- package/fesm2022/tree.mjs.map +1 -1
- package/fesm2022/{typeahead-5b1c5e41.mjs → typeahead-BAa3HZoh.mjs} +3 -3
- package/fesm2022/typeahead-BAa3HZoh.mjs.map +1 -0
- package/fesm2022/{unique-selection-dispatcher-95d71775.mjs → unique-selection-dispatcher-SqPM2COI.mjs} +2 -2
- package/fesm2022/unique-selection-dispatcher-SqPM2COI.mjs.map +1 -0
- package/{focus-key-manager.d-808a8cfc.d.ts → focus-key-manager.d-DCiEwxN7.d.ts} +4 -4
- package/{focus-monitor.d-463f4526.d.ts → focus-monitor.d-BBkiOKUH.d.ts} +2 -2
- package/{harness-environment.d-ccca6bee.d.ts → harness-environment.d-ByFLvxZh.d.ts} +2 -2
- package/{list-key-manager.d-6b8e8454.d.ts → list-key-manager.d-CylnKWfo.d.ts} +2 -2
- package/listbox/index.d.ts +3 -3
- package/menu/index.d.ts +12 -12
- package/{number-property.d-1067cb21.d.ts → number-property.d-BzBQchZ2.d.ts} +2 -2
- package/observers/index.d.ts +84 -4
- package/overlay/_index.scss +4 -1
- package/overlay/index.d.ts +76 -80
- package/{overlay-module.d-bb9fd227.d.ts → overlay-module.d-CXZs2tcX.d.ts} +15 -9
- package/overlay-prebuilt.css +1 -1
- package/package.json +1 -1
- package/platform/index.d.ts +1 -1
- package/{platform.d-54a48c5c.d.ts → platform.d-cnFZCLss.d.ts} +1 -1
- package/portal/index.d.ts +3 -3
- package/{portal-directives.d-7048496c.d.ts → portal-directives.d-D9c4J36c.d.ts} +2 -2
- package/private/index.d.ts +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/utils/project-targets.js +11 -5
- package/schematics/utils/project-targets.js.map +1 -1
- package/scrolling/index.d.ts +62 -7
- package/{scrolling-module.d-a309d6c8.d.ts → scrolling-module.d-CuNwYGVM.d.ts} +6 -6
- package/{selection-model.d-8f93f170.d.ts → selection-model.d-CHuTS0tw.d.ts} +2 -2
- package/stepper/index.d.ts +5 -5
- package/{style-loader.d-a4916e34.d.ts → style-loader.d-DbvWk0ty.d.ts} +1 -1
- package/table/index.d.ts +6 -7
- package/testing/index.d.ts +1 -1
- package/testing/selenium-webdriver/index.d.ts +1 -1
- package/testing/testbed/index.d.ts +1 -1
- package/text-field/index.d.ts +1 -1
- package/text-field-prebuilt.css +1 -1
- package/tree/index.d.ts +4 -4
- package/{tree-key-manager-strategy.d-e1a4bb7c.d.ts → tree-key-manager-strategy.d-DipnXoCr.d.ts} +1 -1
- package/{unique-selection-dispatcher.d-49e3cd5f.d.ts → unique-selection-dispatcher.d-BgWACqWn.d.ts} +2 -2
- package/{view-repeater.d-bf5e36f0.d.ts → view-repeater.d-CJ9e48MX.d.ts} +3 -3
- package/fesm2022/a11y-module-3f18e5c2.mjs.map +0 -1
- package/fesm2022/activedescendant-key-manager-ca3e95bd.mjs.map +0 -1
- package/fesm2022/array-88204b72.mjs.map +0 -1
- package/fesm2022/bidi-module-93941905.mjs +0 -77
- package/fesm2022/bidi-module-93941905.mjs.map +0 -1
- package/fesm2022/breakpoints-observer-9d296976.mjs.map +0 -1
- package/fesm2022/css-pixel-value-5ab12b77.mjs.map +0 -1
- package/fesm2022/data-source-a3a3a257.mjs.map +0 -1
- package/fesm2022/directionality-25132624.mjs.map +0 -1
- package/fesm2022/dispose-view-repeater-strategy-0bf96031.mjs.map +0 -1
- package/fesm2022/element-bed495ef.mjs.map +0 -1
- package/fesm2022/fake-event-detection-61bf2988.mjs.map +0 -1
- package/fesm2022/focus-key-manager-f4cf48e1.mjs.map +0 -1
- package/fesm2022/focus-monitor-4af46fa6.mjs.map +0 -1
- package/fesm2022/id-generator-dd03740e.mjs.map +0 -1
- package/fesm2022/keycodes-fbdb6e67.mjs.map +0 -1
- package/fesm2022/list-key-manager-0ce9d5be.mjs.map +0 -1
- package/fesm2022/modifiers-68a3bc3a.mjs +0 -13
- package/fesm2022/modifiers-68a3bc3a.mjs.map +0 -1
- package/fesm2022/observable-36bb5527.mjs +0 -15
- package/fesm2022/observable-36bb5527.mjs.map +0 -1
- package/fesm2022/observe-content-85983868.mjs +0 -210
- package/fesm2022/observe-content-85983868.mjs.map +0 -1
- package/fesm2022/overlay-module-a2bddb9f.mjs.map +0 -1
- package/fesm2022/passive-listeners-1189a3bc.mjs.map +0 -1
- package/fesm2022/platform-3b280dd2.mjs.map +0 -1
- package/fesm2022/portal-directives-4da94e82.mjs +0 -615
- package/fesm2022/portal-directives-4da94e82.mjs.map +0 -1
- package/fesm2022/recycle-view-repeater-strategy-7fe34ce5.mjs.map +0 -1
- package/fesm2022/scrolling-4b9e82b7.mjs.map +0 -1
- package/fesm2022/scrolling-module-2ed090a6.mjs +0 -1463
- package/fesm2022/scrolling-module-2ed090a6.mjs.map +0 -1
- package/fesm2022/selection-model-7800ff2c.mjs.map +0 -1
- package/fesm2022/shadow-dom-09da63d7.mjs.map +0 -1
- package/fesm2022/style-loader-f70e1cd6.mjs.map +0 -1
- package/fesm2022/test-environment-75e095b5.mjs.map +0 -1
- package/fesm2022/text-filtering-682c2e05.mjs +0 -698
- package/fesm2022/text-filtering-682c2e05.mjs.map +0 -1
- package/fesm2022/tree-key-manager-fb779925.mjs.map +0 -1
- package/fesm2022/typeahead-5b1c5e41.mjs.map +0 -1
- package/fesm2022/unique-selection-dispatcher-95d71775.mjs.map +0 -1
- package/fesm2022/visually-hidden-912d0ccc.mjs +0 -18
- package/fesm2022/visually-hidden-912d0ccc.mjs.map +0 -1
- package/observe-content.d-406532a1.d.ts +0 -84
- package/viewport-ruler.d-5b507354.d.ts +0 -58
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ViewRepeaterOperation } from './recycle-view-repeater-strategy-Ce0p4WhD.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A repeater that destroys views when they are removed from a
|
|
@@ -40,5 +40,5 @@ class _DisposeViewRepeaterStrategy {
|
|
|
40
40
|
detach() { }
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
export { _DisposeViewRepeaterStrategy
|
|
44
|
-
//# sourceMappingURL=dispose-view-repeater-strategy-
|
|
43
|
+
export { _DisposeViewRepeaterStrategy };
|
|
44
|
+
//# sourceMappingURL=dispose-view-repeater-strategy-BLw1RSwm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispose-view-repeater-strategy-BLw1RSwm.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/collections/dispose-view-repeater-strategy.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n EmbeddedViewRef,\n IterableChangeRecord,\n IterableChanges,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n _ViewRepeater,\n _ViewRepeaterItemChanged,\n _ViewRepeaterItemContext,\n _ViewRepeaterItemContextFactory,\n _ViewRepeaterItemValueResolver,\n _ViewRepeaterOperation,\n} from './view-repeater';\n\n/**\n * A repeater that destroys views when they are removed from a\n * {@link ViewContainerRef}. When new items are inserted into the container,\n * the repeater will always construct a new embedded view for each item.\n *\n * @template T The type for the embedded view's $implicit property.\n * @template R The type for the item in each IterableDiffer change record.\n * @template C The type for the context passed to each embedded view.\n */\nexport class _DisposeViewRepeaterStrategy<T, R, C extends _ViewRepeaterItemContext<T>>\n implements _ViewRepeater<T, R, C>\n{\n applyChanges(\n changes: IterableChanges<R>,\n viewContainerRef: ViewContainerRef,\n itemContextFactory: _ViewRepeaterItemContextFactory<T, R, C>,\n itemValueResolver: _ViewRepeaterItemValueResolver<T, R>,\n itemViewChanged?: _ViewRepeaterItemChanged<R, C>,\n ) {\n changes.forEachOperation(\n (\n record: IterableChangeRecord<R>,\n adjustedPreviousIndex: number | null,\n currentIndex: number | null,\n ) => {\n let view: EmbeddedViewRef<C> | undefined;\n let operation: _ViewRepeaterOperation;\n if (record.previousIndex == null) {\n const insertContext = itemContextFactory(record, adjustedPreviousIndex, currentIndex);\n view = viewContainerRef.createEmbeddedView(\n insertContext.templateRef,\n insertContext.context,\n insertContext.index,\n );\n operation = _ViewRepeaterOperation.INSERTED;\n } else if (currentIndex == null) {\n viewContainerRef.remove(adjustedPreviousIndex!);\n operation = _ViewRepeaterOperation.REMOVED;\n } else {\n view = viewContainerRef.get(adjustedPreviousIndex!) as EmbeddedViewRef<C>;\n viewContainerRef.move(view!, currentIndex);\n operation = _ViewRepeaterOperation.MOVED;\n }\n\n if (itemViewChanged) {\n itemViewChanged({\n context: view?.context,\n operation,\n record,\n });\n }\n },\n );\n }\n\n detach() {}\n}\n"],"names":[],"mappings":";;AAuBA;;;;;;;;AAQG;MACU,4BAA4B,CAAA;IAGvC,YAAY,CACV,OAA2B,EAC3B,gBAAkC,EAClC,kBAA4D,EAC5D,iBAAuD,EACvD,eAAgD,EAAA;QAEhD,OAAO,CAAC,gBAAgB,CACtB,CACE,MAA+B,EAC/B,qBAAoC,EACpC,YAA2B,KACzB;AACF,YAAA,IAAI,IAAoC;AACxC,YAAA,IAAI,SAAiC;AACrC,YAAA,IAAI,MAAM,CAAC,aAAa,IAAI,IAAI,EAAE;gBAChC,MAAM,aAAa,GAAG,kBAAkB,CAAC,MAAM,EAAE,qBAAqB,EAAE,YAAY,CAAC;AACrF,gBAAA,IAAI,GAAG,gBAAgB,CAAC,kBAAkB,CACxC,aAAa,CAAC,WAAW,EACzB,aAAa,CAAC,OAAO,EACrB,aAAa,CAAC,KAAK,CACpB;AACD,gBAAA,SAAS,GAAG,sBAAsB,CAAC,QAAQ;;AACtC,iBAAA,IAAI,YAAY,IAAI,IAAI,EAAE;AAC/B,gBAAA,gBAAgB,CAAC,MAAM,CAAC,qBAAsB,CAAC;AAC/C,gBAAA,SAAS,GAAG,sBAAsB,CAAC,OAAO;;iBACrC;AACL,gBAAA,IAAI,GAAG,gBAAgB,CAAC,GAAG,CAAC,qBAAsB,CAAuB;AACzE,gBAAA,gBAAgB,CAAC,IAAI,CAAC,IAAK,EAAE,YAAY,CAAC;AAC1C,gBAAA,SAAS,GAAG,sBAAsB,CAAC,KAAK;;YAG1C,IAAI,eAAe,EAAE;AACnB,gBAAA,eAAe,CAAC;oBACd,OAAO,EAAE,IAAI,EAAE,OAAO;oBACtB,SAAS;oBACT,MAAM;AACP,iBAAA,CAAC;;AAEN,SAAC,CACF;;AAGH,IAAA,MAAM;AACP;;;;"}
|
package/fesm2022/drag-drop.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal,
|
|
3
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { signal, inject, NgZone, DOCUMENT, RendererFactory2, ChangeDetectionStrategy, ViewEncapsulation, Component, Injectable, InjectionToken, ElementRef, booleanAttribute, Input, Directive, ViewContainerRef, ChangeDetectorRef, EventEmitter, Injector, afterNextRender, numberAttribute, Output, TemplateRef, NgModule } from '@angular/core';
|
|
4
3
|
import { Subject, Subscription, interval, animationFrameScheduler, Observable, merge, BehaviorSubject } from 'rxjs';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { _getEventTarget, _getShadowRoot } from './shadow-dom-DFvX9W95.mjs';
|
|
5
|
+
import { isFakeTouchstartFromScreenReader, isFakeMousedownFromScreenReader } from './fake-event-detection-D0_6qVp2.mjs';
|
|
6
|
+
import { coerceElement, coerceNumberProperty } from './element-CpqV8p-X.mjs';
|
|
8
7
|
import { takeUntil, map, take, tap, switchMap, startWith } from 'rxjs/operators';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import './platform-
|
|
16
|
-
import '
|
|
17
|
-
import './
|
|
18
|
-
import './
|
|
19
|
-
import './
|
|
8
|
+
import { _CdkPrivateStyleLoader } from './style-loader-DpEDdstc.mjs';
|
|
9
|
+
import { ViewportRuler, ScrollDispatcher, CdkScrollableModule } from './scrolling.mjs';
|
|
10
|
+
export { CdkScrollable as ɵɵCdkScrollable } from './scrolling.mjs';
|
|
11
|
+
import { Directionality } from './directionality-kM9GX3mp.mjs';
|
|
12
|
+
import { _IdGenerator } from './id-generator-B33AfkWd.mjs';
|
|
13
|
+
import { coerceArray } from './array-Hg8isvLj.mjs';
|
|
14
|
+
import './platform-BInyKIh1.mjs';
|
|
15
|
+
import '@angular/common';
|
|
16
|
+
import './scrolling-BXVcIfjZ.mjs';
|
|
17
|
+
import './bidi.mjs';
|
|
18
|
+
import './recycle-view-repeater-strategy-Ce0p4WhD.mjs';
|
|
19
|
+
import './data-source-CL6Fasig.mjs';
|
|
20
20
|
|
|
21
21
|
/** Creates a deep clone of an element. */
|
|
22
22
|
function deepCloneNode(node) {
|
|
@@ -104,6 +104,20 @@ function isInsideClientRect(clientRect, x, y) {
|
|
|
104
104
|
const { top, bottom, left, right } = clientRect;
|
|
105
105
|
return y >= top && y <= bottom && x >= left && x <= right;
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Checks if the child element is overflowing from its parent.
|
|
109
|
+
* @param parentRect - The bounding rect of the parent element.
|
|
110
|
+
* @param childRect - The bounding rect of the child element.
|
|
111
|
+
*/
|
|
112
|
+
function isOverflowingParent(parentRect, childRect) {
|
|
113
|
+
// check for horizontal overflow (left and right)
|
|
114
|
+
const isLeftOverflowing = childRect.left < parentRect.left;
|
|
115
|
+
const isRightOverflowing = childRect.left + childRect.width > parentRect.right;
|
|
116
|
+
// check for vertical overflow (top and bottom)
|
|
117
|
+
const isTopOverflowing = childRect.top < parentRect.top;
|
|
118
|
+
const isBottomOverflowing = childRect.top + childRect.height > parentRect.bottom;
|
|
119
|
+
return isLeftOverflowing || isRightOverflowing || isTopOverflowing || isBottomOverflowing;
|
|
120
|
+
}
|
|
107
121
|
/**
|
|
108
122
|
* Updates the top/left positions of a `DOMRect`, as well as their bottom/right counterparts.
|
|
109
123
|
* @param domRect `DOMRect` that should be updated.
|
|
@@ -799,6 +813,40 @@ class DragRef {
|
|
|
799
813
|
this._activeTransform = { x: 0, y: 0 };
|
|
800
814
|
this._passiveTransform = { x: 0, y: 0 };
|
|
801
815
|
}
|
|
816
|
+
/** Resets drag item to end of boundary element. */
|
|
817
|
+
resetToBoundary() {
|
|
818
|
+
if (
|
|
819
|
+
// can be null if the drag item was never dragged.
|
|
820
|
+
this._boundaryElement &&
|
|
821
|
+
this._rootElement &&
|
|
822
|
+
// check if we are overflowing off our boundary element
|
|
823
|
+
isOverflowingParent(this._boundaryElement.getBoundingClientRect(), this._rootElement.getBoundingClientRect())) {
|
|
824
|
+
const parentRect = this._boundaryElement.getBoundingClientRect();
|
|
825
|
+
const childRect = this._rootElement.getBoundingClientRect();
|
|
826
|
+
let offsetX = 0;
|
|
827
|
+
let offsetY = 0;
|
|
828
|
+
// check if we are overflowing from left or right
|
|
829
|
+
if (childRect.left < parentRect.left) {
|
|
830
|
+
offsetX = parentRect.left - childRect.left;
|
|
831
|
+
}
|
|
832
|
+
else if (childRect.right > parentRect.right) {
|
|
833
|
+
offsetX = parentRect.right - childRect.right;
|
|
834
|
+
}
|
|
835
|
+
// check if we are overflowing from top or bottom
|
|
836
|
+
if (childRect.top < parentRect.top) {
|
|
837
|
+
offsetY = parentRect.top - childRect.top;
|
|
838
|
+
}
|
|
839
|
+
else if (childRect.bottom > parentRect.bottom) {
|
|
840
|
+
offsetY = parentRect.bottom - childRect.bottom;
|
|
841
|
+
}
|
|
842
|
+
const currentLeft = this._activeTransform.x;
|
|
843
|
+
const currentTop = this._activeTransform.y;
|
|
844
|
+
let x = currentLeft + offsetX, y = currentTop + offsetY;
|
|
845
|
+
this._rootElement.style.transform = getTransform(x, y);
|
|
846
|
+
this._activeTransform = { x, y };
|
|
847
|
+
this._passiveTransform = { x, y };
|
|
848
|
+
}
|
|
849
|
+
}
|
|
802
850
|
/**
|
|
803
851
|
* Sets a handle as disabled. While a handle is disabled, it'll capture and interrupt dragging.
|
|
804
852
|
* @param handle Handle element that should be disabled.
|
|
@@ -2973,11 +3021,11 @@ const activeCapturingEventOptions = {
|
|
|
2973
3021
|
*/
|
|
2974
3022
|
class _ResetsLoader {
|
|
2975
3023
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: _ResetsLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2976
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.5", type: _ResetsLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-drag-resets-container": "" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3024
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.5", type: _ResetsLoader, isStandalone: true, selector: "ng-component", host: { attributes: { "cdk-drag-resets-container": "" } }, ngImport: i0, template: '', isInline: true, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2977
3025
|
}
|
|
2978
3026
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5", ngImport: i0, type: _ResetsLoader, decorators: [{
|
|
2979
3027
|
type: Component,
|
|
2980
|
-
args: [{ encapsulation: ViewEncapsulation.None, template: '', changeDetection: ChangeDetectionStrategy.OnPush, host: { 'cdk-drag-resets-container': '' }, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"] }]
|
|
3028
|
+
args: [{ encapsulation: ViewEncapsulation.None, template: '', changeDetection: ChangeDetectionStrategy.OnPush, host: { 'cdk-drag-resets-container': '' }, styles: ["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"] }]
|
|
2981
3029
|
}] });
|
|
2982
3030
|
/**
|
|
2983
3031
|
* Service that keeps track of all the drag item and drop container
|
|
@@ -3506,6 +3554,10 @@ class CdkDrag {
|
|
|
3506
3554
|
reset() {
|
|
3507
3555
|
this._dragRef.reset();
|
|
3508
3556
|
}
|
|
3557
|
+
/** Resets drag item to end of boundary element. */
|
|
3558
|
+
resetToBoundary() {
|
|
3559
|
+
this._dragRef.resetToBoundary();
|
|
3560
|
+
}
|
|
3509
3561
|
/**
|
|
3510
3562
|
* Gets the pixel coordinates of the draggable outside of a drop container.
|
|
3511
3563
|
*/
|