@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,6 +1,6 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
2
|
import { tap, debounceTime, filter, map } from 'rxjs/operators';
|
|
3
|
-
import {
|
|
3
|
+
import { A, Z, ZERO, NINE } from './keycodes-DPWmI2Ix.mjs';
|
|
4
4
|
|
|
5
5
|
const DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL_MS = 200;
|
|
6
6
|
/**
|
|
@@ -84,5 +84,5 @@ class Typeahead {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
export { Typeahead
|
|
88
|
-
//# sourceMappingURL=typeahead-
|
|
87
|
+
export { Typeahead };
|
|
88
|
+
//# sourceMappingURL=typeahead-BAa3HZoh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeahead-BAa3HZoh.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/a11y/key-manager/typeahead.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 {A, NINE, Z, ZERO} from '../../keycodes';\nimport {Subject, Observable} from 'rxjs';\nimport {debounceTime, filter, map, tap} from 'rxjs/operators';\n\nconst DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL_MS = 200;\n\ninterface TypeaheadItem {\n getLabel?(): string;\n}\n\ninterface TypeaheadConfig<T> {\n debounceInterval?: number;\n skipPredicate?: (item: T) => boolean | undefined;\n}\n\n/**\n * Selects items based on keyboard inputs. Implements the typeahead functionality of\n * `role=\"listbox\"` or `role=\"tree\"` and other related roles.\n */\nexport class Typeahead<T extends TypeaheadItem> {\n private readonly _letterKeyStream = new Subject<string>();\n private _items: readonly T[] = [];\n private _selectedItemIndex = -1;\n\n /** Buffer for the letters that the user has pressed */\n private _pressedLetters: string[] = [];\n\n private _skipPredicateFn?: (item: T) => boolean | undefined;\n\n private readonly _selectedItem = new Subject<T>();\n readonly selectedItem: Observable<T> = this._selectedItem;\n\n constructor(initialItems: readonly T[], config?: TypeaheadConfig<T>) {\n const typeAheadInterval =\n typeof config?.debounceInterval === 'number'\n ? config.debounceInterval\n : DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL_MS;\n\n if (config?.skipPredicate) {\n this._skipPredicateFn = config.skipPredicate;\n }\n\n if (\n (typeof ngDevMode === 'undefined' || ngDevMode) &&\n initialItems.length &&\n initialItems.some(item => typeof item.getLabel !== 'function')\n ) {\n throw new Error('KeyManager items in typeahead mode must implement the `getLabel` method.');\n }\n\n this.setItems(initialItems);\n this._setupKeyHandler(typeAheadInterval);\n }\n\n destroy() {\n this._pressedLetters = [];\n this._letterKeyStream.complete();\n this._selectedItem.complete();\n }\n\n setCurrentSelectedItemIndex(index: number) {\n this._selectedItemIndex = index;\n }\n\n setItems(items: readonly T[]) {\n this._items = items;\n }\n\n handleKey(event: KeyboardEvent): void {\n const keyCode = event.keyCode;\n\n // Attempt to use the `event.key` which also maps it to the user's keyboard language,\n // otherwise fall back to resolving alphanumeric characters via the keyCode.\n if (event.key && event.key.length === 1) {\n this._letterKeyStream.next(event.key.toLocaleUpperCase());\n } else if ((keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE)) {\n this._letterKeyStream.next(String.fromCharCode(keyCode));\n }\n }\n\n /** Gets whether the user is currently typing into the manager using the typeahead feature. */\n isTyping(): boolean {\n return this._pressedLetters.length > 0;\n }\n\n /** Resets the currently stored sequence of typed letters. */\n reset(): void {\n this._pressedLetters = [];\n }\n\n private _setupKeyHandler(typeAheadInterval: number) {\n // Debounce the presses of non-navigational keys, collect the ones that correspond to letters\n // and convert those letters back into a string. Afterwards find the first item that starts\n // with that string and select it.\n this._letterKeyStream\n .pipe(\n tap(letter => this._pressedLetters.push(letter)),\n debounceTime(typeAheadInterval),\n filter(() => this._pressedLetters.length > 0),\n map(() => this._pressedLetters.join('').toLocaleUpperCase()),\n )\n .subscribe(inputString => {\n // Start at 1 because we want to start searching at the item immediately\n // following the current active item.\n for (let i = 1; i < this._items.length + 1; i++) {\n const index = (this._selectedItemIndex + i) % this._items.length;\n const item = this._items[index];\n\n if (\n !this._skipPredicateFn?.(item) &&\n item.getLabel?.().toLocaleUpperCase().trim().indexOf(inputString) === 0\n ) {\n this._selectedItem.next(item);\n break;\n }\n }\n\n this._pressedLetters = [];\n });\n }\n}\n"],"names":[],"mappings":";;;;AAYA,MAAM,sCAAsC,GAAG,GAAG;AAWlD;;;AAGG;MACU,SAAS,CAAA;AACH,IAAA,gBAAgB,GAAG,IAAI,OAAO,EAAU;IACjD,MAAM,GAAiB,EAAE;IACzB,kBAAkB,GAAG,EAAE;;IAGvB,eAAe,GAAa,EAAE;AAE9B,IAAA,gBAAgB;AAEP,IAAA,aAAa,GAAG,IAAI,OAAO,EAAK;AACxC,IAAA,YAAY,GAAkB,IAAI,CAAC,aAAa;IAEzD,WAAY,CAAA,YAA0B,EAAE,MAA2B,EAAA;AACjE,QAAA,MAAM,iBAAiB,GACrB,OAAO,MAAM,EAAE,gBAAgB,KAAK;cAChC,MAAM,CAAC;cACP,sCAAsC;AAE5C,QAAA,IAAI,MAAM,EAAE,aAAa,EAAE;AACzB,YAAA,IAAI,CAAC,gBAAgB,GAAG,MAAM,CAAC,aAAa;;AAG9C,QAAA,IACE,CAAC,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS;AAC9C,YAAA,YAAY,CAAC,MAAM;AACnB,YAAA,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,CAAC,QAAQ,KAAK,UAAU,CAAC,EAC9D;AACA,YAAA,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC;;AAG7F,QAAA,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;AAC3B,QAAA,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC;;IAG1C,OAAO,GAAA;AACL,QAAA,IAAI,CAAC,eAAe,GAAG,EAAE;AACzB,QAAA,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE;AAChC,QAAA,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE;;AAG/B,IAAA,2BAA2B,CAAC,KAAa,EAAA;AACvC,QAAA,IAAI,CAAC,kBAAkB,GAAG,KAAK;;AAGjC,IAAA,QAAQ,CAAC,KAAmB,EAAA;AAC1B,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK;;AAGrB,IAAA,SAAS,CAAC,KAAoB,EAAA;AAC5B,QAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO;;;AAI7B,QAAA,IAAI,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;AACvC,YAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;;aACpD,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,MAAM,OAAO,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,CAAC,EAAE;AACjF,YAAA,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;;;;IAK5D,QAAQ,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC;;;IAIxC,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,eAAe,GAAG,EAAE;;AAGnB,IAAA,gBAAgB,CAAC,iBAAyB,EAAA;;;;AAIhD,QAAA,IAAI,CAAC;aACF,IAAI,CACH,GAAG,CAAC,MAAM,IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAChD,YAAY,CAAC,iBAAiB,CAAC,EAC/B,MAAM,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,EAC7C,GAAG,CAAC,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC;aAE7D,SAAS,CAAC,WAAW,IAAG;;;AAGvB,YAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC/C,gBAAA,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,kBAAkB,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM;gBAChE,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;AAE/B,gBAAA,IACE,CAAC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;AAC9B,oBAAA,IAAI,CAAC,QAAQ,IAAI,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,EACvE;AACA,oBAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;oBAC7B;;;AAIJ,YAAA,IAAI,CAAC,eAAe,GAAG,EAAE;AAC3B,SAAC,CAAC;;AAEP;;;;"}
|
|
@@ -45,5 +45,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.5",
|
|
|
45
45
|
args: [{ providedIn: 'root' }]
|
|
46
46
|
}] });
|
|
47
47
|
|
|
48
|
-
export { UniqueSelectionDispatcher
|
|
49
|
-
//# sourceMappingURL=unique-selection-dispatcher-
|
|
48
|
+
export { UniqueSelectionDispatcher };
|
|
49
|
+
//# sourceMappingURL=unique-selection-dispatcher-SqPM2COI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unique-selection-dispatcher-SqPM2COI.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/cdk/collections/unique-selection-dispatcher.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 {Injectable, OnDestroy} from '@angular/core';\n\n// Users of the Dispatcher never need to see this type, but TypeScript requires it to be exported.\nexport type UniqueSelectionDispatcherListener = (id: string, name: string) => void;\n\n/**\n * Class to coordinate unique selection based on name.\n * Intended to be consumed as an Angular service.\n * This service is needed because native radio change events are only fired on the item currently\n * being selected, and we still need to uncheck the previous selection.\n *\n * This service does not *store* any IDs and names because they may change at any time, so it is\n * less error-prone if they are simply passed through when the events occur.\n */\n@Injectable({providedIn: 'root'})\nexport class UniqueSelectionDispatcher implements OnDestroy {\n private _listeners: UniqueSelectionDispatcherListener[] = [];\n\n /**\n * Notify other items that selection for the given name has been set.\n * @param id ID of the item.\n * @param name Name of the item.\n */\n notify(id: string, name: string) {\n for (let listener of this._listeners) {\n listener(id, name);\n }\n }\n\n /**\n * Listen for future changes to item selection.\n * @return Function used to deregister listener\n */\n listen(listener: UniqueSelectionDispatcherListener): () => void {\n this._listeners.push(listener);\n return () => {\n this._listeners = this._listeners.filter((registered: UniqueSelectionDispatcherListener) => {\n return listener !== registered;\n });\n };\n }\n\n ngOnDestroy() {\n this._listeners = [];\n }\n}\n"],"names":[],"mappings":";;;AAaA;;;;;;;;AAQG;MAEU,yBAAyB,CAAA;IAC5B,UAAU,GAAwC,EAAE;AAE5D;;;;AAIG;IACH,MAAM,CAAC,EAAU,EAAE,IAAY,EAAA;AAC7B,QAAA,KAAK,IAAI,QAAQ,IAAI,IAAI,CAAC,UAAU,EAAE;AACpC,YAAA,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;;;AAItB;;;AAGG;AACH,IAAA,MAAM,CAAC,QAA2C,EAAA;AAChD,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC9B,QAAA,OAAO,MAAK;AACV,YAAA,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,UAA6C,KAAI;gBACzF,OAAO,QAAQ,KAAK,UAAU;AAChC,aAAC,CAAC;AACJ,SAAC;;IAGH,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,UAAU,GAAG,EAAE;;8GA5BX,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAzB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,cADb,MAAM,EAAA,CAAA;;kGAClB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBADrC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ListKeyManagerOption, ListKeyManager } from './list-key-manager.d-CylnKWfo.js';
|
|
2
|
+
import { FocusOrigin } from './focus-monitor.d-BBkiOKUH.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This is the interface for focusable items (used by the FocusKeyManager).
|
|
@@ -30,5 +30,5 @@ declare class FocusKeyManager<T> extends ListKeyManager<FocusableOption & T> {
|
|
|
30
30
|
setActiveItem(item: T): void;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export { FocusKeyManager
|
|
34
|
-
export type { FocusableOption
|
|
33
|
+
export { FocusKeyManager };
|
|
34
|
+
export type { FocusableOption };
|
|
@@ -206,5 +206,5 @@ declare class CdkMonitorFocus implements AfterViewInit, OnDestroy {
|
|
|
206
206
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMonitorFocus, "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", ["cdkMonitorFocus"], {}, { "cdkFocusChange": "cdkFocusChange"; }, never, never, true, never>;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
export { CdkMonitorFocus
|
|
210
|
-
export type {
|
|
209
|
+
export { CdkMonitorFocus, FOCUS_MONITOR_DEFAULT_OPTIONS, FocusMonitor, FocusMonitorDetectionMode };
|
|
210
|
+
export type { FocusMonitorOptions, FocusOptions, FocusOrigin };
|
|
@@ -616,5 +616,5 @@ declare abstract class HarnessEnvironment<E> implements HarnessLoader, LocatorFa
|
|
|
616
616
|
private _getQueryResultForElement;
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
-
export { ComponentHarness
|
|
620
|
-
export type { AsyncFactoryFn
|
|
619
|
+
export { ComponentHarness, ContentContainerComponentHarness, HarnessEnvironment, HarnessPredicate, TestKey };
|
|
620
|
+
export type { AsyncFactoryFn, AsyncOptionPredicate, AsyncPredicate, BaseHarnessFilters, ComponentHarnessConstructor, ElementDimensions, EventData, HarnessLoader, HarnessQuery, LocatorFactory, LocatorFnResult, ModifierKeys, TestElement, TextOptions };
|
|
@@ -161,5 +161,5 @@ declare class ListKeyManager<T extends ListKeyManagerOption> {
|
|
|
161
161
|
private _itemsChanged;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export { ListKeyManager
|
|
165
|
-
export type {
|
|
164
|
+
export { ListKeyManager };
|
|
165
|
+
export type { ListKeyManagerModifierKey, ListKeyManagerOption };
|
package/listbox/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnDestroy, AfterContentInit, QueryList, NgZone, ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Highlightable, ActiveDescendantKeyManager } from '../activedescendant-key-manager.d-DSYvyoT0.js';
|
|
4
|
+
import { ListKeyManagerOption } from '../list-key-manager.d-CylnKWfo.js';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
|
-
import {
|
|
6
|
+
import { SelectionModel } from '../selection-model.d-CHuTS0tw.js';
|
|
7
7
|
import { ControlValueAccessor } from '@angular/forms';
|
|
8
8
|
|
|
9
9
|
/**
|
package/menu/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ElementRef, Renderer2, QueryList, InjectionToken, Optional, OnDestroy, Injector, ViewContainerRef, EventEmitter, TemplateRef, OnChanges, SimpleChanges, NgZone, AfterContentInit } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { ScrollStrategy, ConnectedPosition, OverlayRef, OverlayModule } from '../overlay-module.d-CXZs2tcX.js';
|
|
4
4
|
import * as rxjs from 'rxjs';
|
|
5
5
|
import { Observable, Subject } from 'rxjs';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import '../scrolling-module.d-
|
|
11
|
-
import '../data-source.d-
|
|
12
|
-
import '../number-property.d-
|
|
6
|
+
import { FocusOrigin } from '../focus-monitor.d-BBkiOKUH.js';
|
|
7
|
+
import { FocusableOption, FocusKeyManager } from '../focus-key-manager.d-DCiEwxN7.js';
|
|
8
|
+
import { Directionality } from '../bidi-module.d-bsVYOt0R.js';
|
|
9
|
+
import { TemplatePortal } from '../portal-directives.d-D9c4J36c.js';
|
|
10
|
+
import '../scrolling-module.d-CuNwYGVM.js';
|
|
11
|
+
import '../data-source.d-DAIyaEMO.js';
|
|
12
|
+
import '../number-property.d-BzBQchZ2.js';
|
|
13
13
|
import '@angular/common';
|
|
14
|
-
import '../
|
|
15
|
-
import '../platform.d-
|
|
16
|
-
import '../style-loader.d-
|
|
17
|
-
import '../list-key-manager.d-
|
|
14
|
+
import '../scrolling/index.js';
|
|
15
|
+
import '../platform.d-cnFZCLss.js';
|
|
16
|
+
import '../style-loader.d-DbvWk0ty.js';
|
|
17
|
+
import '../list-key-manager.d-CylnKWfo.js';
|
|
18
18
|
|
|
19
19
|
/** Item to track for mouse focus events. */
|
|
20
20
|
interface FocusableElement {
|
|
@@ -12,5 +12,5 @@ declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
|
|
|
12
12
|
*/
|
|
13
13
|
declare function _isNumberValue(value: any): boolean;
|
|
14
14
|
|
|
15
|
-
export { _isNumberValue
|
|
16
|
-
export type { NumberInput
|
|
15
|
+
export { _isNumberValue, coerceNumberProperty };
|
|
16
|
+
export type { NumberInput };
|
package/observers/index.d.ts
CHANGED
|
@@ -1,4 +1,84 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import '@angular/core';
|
|
4
|
-
import 'rxjs';
|
|
1
|
+
import { NumberInput } from '../number-property.d-BzBQchZ2.js';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { AfterContentInit, OnDestroy, EventEmitter, ElementRef } from '@angular/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
|
|
8
|
+
* @docs-private
|
|
9
|
+
*/
|
|
10
|
+
declare class MutationObserverFactory {
|
|
11
|
+
create(callback: MutationCallback): MutationObserver | null;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MutationObserverFactory, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MutationObserverFactory>;
|
|
14
|
+
}
|
|
15
|
+
/** An injectable service that allows watching elements for changes to their content. */
|
|
16
|
+
declare class ContentObserver implements OnDestroy {
|
|
17
|
+
private _mutationObserverFactory;
|
|
18
|
+
/** Keeps track of the existing MutationObservers so they can be reused. */
|
|
19
|
+
private _observedElements;
|
|
20
|
+
private _ngZone;
|
|
21
|
+
constructor(...args: unknown[]);
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Observe content changes on an element.
|
|
25
|
+
* @param element The element to observe for content changes.
|
|
26
|
+
*/
|
|
27
|
+
observe(element: Element): Observable<MutationRecord[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Observe content changes on an element.
|
|
30
|
+
* @param element The element to observe for content changes.
|
|
31
|
+
*/
|
|
32
|
+
observe(element: ElementRef<Element>): Observable<MutationRecord[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Observes the given element by using the existing MutationObserver if available, or creating a
|
|
35
|
+
* new one if not.
|
|
36
|
+
*/
|
|
37
|
+
private _observeElement;
|
|
38
|
+
/**
|
|
39
|
+
* Un-observes the given element and cleans up the underlying MutationObserver if nobody else is
|
|
40
|
+
* observing this element.
|
|
41
|
+
*/
|
|
42
|
+
private _unobserveElement;
|
|
43
|
+
/** Clean up the underlying MutationObserver for the specified element. */
|
|
44
|
+
private _cleanupObserver;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentObserver, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContentObserver>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Directive that triggers a callback whenever the content of
|
|
50
|
+
* its associated element has changed.
|
|
51
|
+
*/
|
|
52
|
+
declare class CdkObserveContent implements AfterContentInit, OnDestroy {
|
|
53
|
+
private _contentObserver;
|
|
54
|
+
private _elementRef;
|
|
55
|
+
/** Event emitted for each change in the element's content. */
|
|
56
|
+
readonly event: EventEmitter<MutationRecord[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether observing content is disabled. This option can be used
|
|
59
|
+
* to disconnect the underlying MutationObserver until it is needed.
|
|
60
|
+
*/
|
|
61
|
+
get disabled(): boolean;
|
|
62
|
+
set disabled(value: boolean);
|
|
63
|
+
private _disabled;
|
|
64
|
+
/** Debounce interval for emitting the changes. */
|
|
65
|
+
get debounce(): number;
|
|
66
|
+
set debounce(value: NumberInput);
|
|
67
|
+
private _debounce;
|
|
68
|
+
private _currentSubscription;
|
|
69
|
+
constructor(...args: unknown[]);
|
|
70
|
+
ngAfterContentInit(): void;
|
|
71
|
+
ngOnDestroy(): void;
|
|
72
|
+
private _subscribe;
|
|
73
|
+
private _unsubscribe;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkObserveContent, never>;
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkObserveContent, "[cdkObserveContent]", ["cdkObserveContent"], { "disabled": { "alias": "cdkObserveContentDisabled"; "required": false; }; "debounce": { "alias": "debounce"; "required": false; }; }, { "event": "cdkObserveContent"; }, never, never, true, never>;
|
|
76
|
+
static ngAcceptInputType_disabled: unknown;
|
|
77
|
+
}
|
|
78
|
+
declare class ObserversModule {
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObserversModule, never>;
|
|
80
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ObserversModule, never, [typeof CdkObserveContent], [typeof CdkObserveContent]>;
|
|
81
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ObserversModule>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { CdkObserveContent, ContentObserver, MutationObserverFactory, ObserversModule };
|
package/overlay/_index.scss
CHANGED
|
@@ -85,7 +85,6 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.cdk-overlay-backdrop {
|
|
88
|
-
// TODO(jelbourn): reuse sidenav fullscreen mixin.
|
|
89
88
|
position: absolute;
|
|
90
89
|
top: 0;
|
|
91
90
|
bottom: 0;
|
|
@@ -100,6 +99,10 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
|
|
|
100
99
|
z-index: $overlay-backdrop-z-index;
|
|
101
100
|
transition: opacity $backdrop-animation-duration $backdrop-animation-timing-function;
|
|
102
101
|
}
|
|
102
|
+
|
|
103
|
+
@media (prefers-reduced-motion) {
|
|
104
|
+
transition-duration: 1ms;
|
|
105
|
+
}
|
|
103
106
|
}
|
|
104
107
|
|
|
105
108
|
.cdk-overlay-backdrop-showing {
|
package/overlay/index.d.ts
CHANGED
|
@@ -1,20 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import {
|
|
6
|
-
export { V as ViewportRuler } from '../viewport-ruler.d-5b507354.js';
|
|
1
|
+
import { ScrollStrategy, OverlayRef, PositionStrategy, FlexibleConnectedPositionStrategyOrigin, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayContainer } from '../overlay-module.d-CXZs2tcX.js';
|
|
2
|
+
export { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectedPosition, ConnectionPositionPair, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlaySizeConfig, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, VerticalConnectionPos, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition } from '../overlay-module.d-CXZs2tcX.js';
|
|
3
|
+
import { ScrollDispatcher } from '../scrolling-module.d-CuNwYGVM.js';
|
|
4
|
+
export { CdkScrollable, CdkFixedSizeVirtualScroll as ɵɵCdkFixedSizeVirtualScroll, CdkScrollableModule as ɵɵCdkScrollableModule, CdkVirtualForOf as ɵɵCdkVirtualForOf, CdkVirtualScrollViewport as ɵɵCdkVirtualScrollViewport, CdkVirtualScrollableElement as ɵɵCdkVirtualScrollableElement, CdkVirtualScrollableWindow as ɵɵCdkVirtualScrollableWindow } from '../scrolling-module.d-CuNwYGVM.js';
|
|
5
|
+
import { ViewportRuler } from '../scrolling/index.js';
|
|
7
6
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { NgZone, OnDestroy } from '@angular/core';
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
7
|
+
import { NgZone, Injector, OnDestroy } from '@angular/core';
|
|
8
|
+
export { ComponentType } from '../portal-directives.d-D9c4J36c.js';
|
|
9
|
+
export { Dir as ɵɵDir } from '../bidi-module.d-bsVYOt0R.js';
|
|
11
10
|
import '@angular/common';
|
|
12
11
|
import 'rxjs';
|
|
13
|
-
import '../platform.d-
|
|
14
|
-
import '../style-loader.d-
|
|
15
|
-
import '../data-source.d-
|
|
16
|
-
import '../number-property.d-
|
|
12
|
+
import '../platform.d-cnFZCLss.js';
|
|
13
|
+
import '../style-loader.d-DbvWk0ty.js';
|
|
14
|
+
import '../data-source.d-DAIyaEMO.js';
|
|
15
|
+
import '../number-property.d-BzBQchZ2.js';
|
|
17
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Config options for the RepositionScrollStrategy.
|
|
19
|
+
*/
|
|
20
|
+
interface RepositionScrollStrategyConfig {
|
|
21
|
+
/** Time in milliseconds to throttle the scroll events. */
|
|
22
|
+
scrollThrottle?: number;
|
|
23
|
+
/** Whether to close the overlay once the user has scrolled away completely. */
|
|
24
|
+
autoClose?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Creates a scroll strategy that updates the overlay's position when the user scrolls.
|
|
28
|
+
* @param injector Injector used to resolve dependencies of the scroll strategy.
|
|
29
|
+
* @param config Configuration options for the scroll strategy.
|
|
30
|
+
*/
|
|
31
|
+
declare function createRepositionScrollStrategy(injector: Injector, config?: RepositionScrollStrategyConfig): RepositionScrollStrategy;
|
|
32
|
+
/**
|
|
33
|
+
* Strategy that will update the element position as the user is scrolling.
|
|
34
|
+
*/
|
|
35
|
+
declare class RepositionScrollStrategy implements ScrollStrategy {
|
|
36
|
+
private _scrollDispatcher;
|
|
37
|
+
private _viewportRuler;
|
|
38
|
+
private _ngZone;
|
|
39
|
+
private _config?;
|
|
40
|
+
private _scrollSubscription;
|
|
41
|
+
private _overlayRef;
|
|
42
|
+
constructor(_scrollDispatcher: ScrollDispatcher, _viewportRuler: ViewportRuler, _ngZone: NgZone, _config?: RepositionScrollStrategyConfig | undefined);
|
|
43
|
+
/** Attaches this scroll strategy to an overlay. */
|
|
44
|
+
attach(overlayRef: OverlayRef): void;
|
|
45
|
+
/** Enables repositioning of the attached overlay on scroll. */
|
|
46
|
+
enable(): void;
|
|
47
|
+
/** Disables repositioning of the attached overlay on scroll. */
|
|
48
|
+
disable(): void;
|
|
49
|
+
detach(): void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Creates a scroll strategy that prevents the user from scrolling while the overlay is open.
|
|
54
|
+
* @param injector Injector used to resolve dependencies of the scroll strategy.
|
|
55
|
+
* @param config Configuration options for the scroll strategy.
|
|
56
|
+
*/
|
|
57
|
+
declare function createBlockScrollStrategy(injector: Injector): BlockScrollStrategy;
|
|
18
58
|
/**
|
|
19
59
|
* Strategy that will prevent the user from scrolling while the overlay is visible.
|
|
20
60
|
*/
|
|
@@ -41,6 +81,12 @@ interface CloseScrollStrategyConfig {
|
|
|
41
81
|
/** Amount of pixels the user has to scroll before the overlay is closed. */
|
|
42
82
|
threshold?: number;
|
|
43
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Creates a scroll strategy that closes the overlay when the user starts to scroll.
|
|
86
|
+
* @param injector Injector used to resolve dependencies of the scroll strategy.
|
|
87
|
+
* @param config Configuration options for the scroll strategy.
|
|
88
|
+
*/
|
|
89
|
+
declare function createCloseScrollStrategy(injector: Injector, config?: CloseScrollStrategyConfig): CloseScrollStrategy;
|
|
44
90
|
/**
|
|
45
91
|
* Strategy that will close the overlay as soon as the user starts scrolling.
|
|
46
92
|
*/
|
|
@@ -64,6 +110,8 @@ declare class CloseScrollStrategy implements ScrollStrategy {
|
|
|
64
110
|
private _detach;
|
|
65
111
|
}
|
|
66
112
|
|
|
113
|
+
/** Creates a scroll strategy that does nothing. */
|
|
114
|
+
declare function createNoopScrollStrategy(): NoopScrollStrategy;
|
|
67
115
|
/** Scroll strategy that doesn't do anything. */
|
|
68
116
|
declare class NoopScrollStrategy implements ScrollStrategy {
|
|
69
117
|
/** Does nothing, as this scroll strategy is a no-op. */
|
|
@@ -74,35 +122,6 @@ declare class NoopScrollStrategy implements ScrollStrategy {
|
|
|
74
122
|
attach(): void;
|
|
75
123
|
}
|
|
76
124
|
|
|
77
|
-
/**
|
|
78
|
-
* Config options for the RepositionScrollStrategy.
|
|
79
|
-
*/
|
|
80
|
-
interface RepositionScrollStrategyConfig {
|
|
81
|
-
/** Time in milliseconds to throttle the scroll events. */
|
|
82
|
-
scrollThrottle?: number;
|
|
83
|
-
/** Whether to close the overlay once the user has scrolled away completely. */
|
|
84
|
-
autoClose?: boolean;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Strategy that will update the element position as the user is scrolling.
|
|
88
|
-
*/
|
|
89
|
-
declare class RepositionScrollStrategy implements ScrollStrategy {
|
|
90
|
-
private _scrollDispatcher;
|
|
91
|
-
private _viewportRuler;
|
|
92
|
-
private _ngZone;
|
|
93
|
-
private _config?;
|
|
94
|
-
private _scrollSubscription;
|
|
95
|
-
private _overlayRef;
|
|
96
|
-
constructor(_scrollDispatcher: ScrollDispatcher, _viewportRuler: ViewportRuler, _ngZone: NgZone, _config?: RepositionScrollStrategyConfig | undefined);
|
|
97
|
-
/** Attaches this scroll strategy to an overlay. */
|
|
98
|
-
attach(overlayRef: OverlayRef): void;
|
|
99
|
-
/** Enables repositioning of the attached overlay on scroll. */
|
|
100
|
-
enable(): void;
|
|
101
|
-
/** Disables repositioning of the attached overlay on scroll. */
|
|
102
|
-
disable(): void;
|
|
103
|
-
detach(): void;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
125
|
/**
|
|
107
126
|
* Options for how an overlay will handle scrolling.
|
|
108
127
|
*
|
|
@@ -110,10 +129,7 @@ declare class RepositionScrollStrategy implements ScrollStrategy {
|
|
|
110
129
|
* behaviors. This class primarily acts as a factory for ScrollStrategy instances.
|
|
111
130
|
*/
|
|
112
131
|
declare class ScrollStrategyOptions {
|
|
113
|
-
private
|
|
114
|
-
private _viewportRuler;
|
|
115
|
-
private _ngZone;
|
|
116
|
-
private _document;
|
|
132
|
+
private _injector;
|
|
117
133
|
constructor(...args: unknown[]);
|
|
118
134
|
/** Do nothing on scroll. */
|
|
119
135
|
noop: () => NoopScrollStrategy;
|
|
@@ -134,6 +150,11 @@ declare class ScrollStrategyOptions {
|
|
|
134
150
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollStrategyOptions>;
|
|
135
151
|
}
|
|
136
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Creates a global position strategy.
|
|
155
|
+
* @param injector Injector used to resolve dependencies for the strategy.
|
|
156
|
+
*/
|
|
157
|
+
declare function createGlobalPositionStrategy(_injector: Injector): GlobalPositionStrategy;
|
|
137
158
|
/**
|
|
138
159
|
* A strategy for positioning overlays. Using this strategy, an overlay is given an
|
|
139
160
|
* explicit position relative to the browser's viewport. We use flexbox, instead of
|
|
@@ -227,10 +248,7 @@ declare class GlobalPositionStrategy implements PositionStrategy {
|
|
|
227
248
|
|
|
228
249
|
/** Builder for overlay position strategy. */
|
|
229
250
|
declare class OverlayPositionBuilder {
|
|
230
|
-
private
|
|
231
|
-
private _document;
|
|
232
|
-
private _platform;
|
|
233
|
-
private _overlayContainer;
|
|
251
|
+
private _injector;
|
|
234
252
|
constructor(...args: unknown[]);
|
|
235
253
|
/**
|
|
236
254
|
* Creates a global position strategy.
|
|
@@ -245,6 +263,13 @@ declare class OverlayPositionBuilder {
|
|
|
245
263
|
static ɵprov: i0.ɵɵInjectableDeclaration<OverlayPositionBuilder>;
|
|
246
264
|
}
|
|
247
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Creates an overlay.
|
|
268
|
+
* @param injector Injector to use when resolving the overlay's dependencies.
|
|
269
|
+
* @param config Configuration applied to the overlay.
|
|
270
|
+
* @returns Reference to the created overlay.
|
|
271
|
+
*/
|
|
272
|
+
declare function createOverlayRef(injector: Injector, config?: OverlayConfig): OverlayRef;
|
|
248
273
|
/**
|
|
249
274
|
* Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be
|
|
250
275
|
* used as a low-level building block for other components. Dialogs, tooltips, menus,
|
|
@@ -255,20 +280,8 @@ declare class OverlayPositionBuilder {
|
|
|
255
280
|
*/
|
|
256
281
|
declare class Overlay {
|
|
257
282
|
scrollStrategies: ScrollStrategyOptions;
|
|
258
|
-
private _overlayContainer;
|
|
259
283
|
private _positionBuilder;
|
|
260
|
-
private _keyboardDispatcher;
|
|
261
284
|
private _injector;
|
|
262
|
-
private _ngZone;
|
|
263
|
-
private _document;
|
|
264
|
-
private _directionality;
|
|
265
|
-
private _location;
|
|
266
|
-
private _outsideClickDispatcher;
|
|
267
|
-
private _animationsModuleType;
|
|
268
|
-
private _idGenerator;
|
|
269
|
-
private _renderer;
|
|
270
|
-
private _appRef;
|
|
271
|
-
private _styleLoader;
|
|
272
285
|
constructor(...args: unknown[]);
|
|
273
286
|
/**
|
|
274
287
|
* Creates an overlay.
|
|
@@ -282,23 +295,6 @@ declare class Overlay {
|
|
|
282
295
|
* @returns An overlay position builder.
|
|
283
296
|
*/
|
|
284
297
|
position(): OverlayPositionBuilder;
|
|
285
|
-
/**
|
|
286
|
-
* Creates the DOM element for an overlay and appends it to the overlay container.
|
|
287
|
-
* @returns Newly-created pane element
|
|
288
|
-
*/
|
|
289
|
-
private _createPaneElement;
|
|
290
|
-
/**
|
|
291
|
-
* Creates the host element that wraps around an overlay
|
|
292
|
-
* and can be used for advanced positioning.
|
|
293
|
-
* @returns Newly-create host element.
|
|
294
|
-
*/
|
|
295
|
-
private _createHostElement;
|
|
296
|
-
/**
|
|
297
|
-
* Create a DomPortalOutlet into which the overlay content can be loaded.
|
|
298
|
-
* @param pane The DOM element to turn into a portal outlet.
|
|
299
|
-
* @returns A portal outlet for the given DOM element.
|
|
300
|
-
*/
|
|
301
|
-
private _createPortalOutlet;
|
|
302
298
|
static ɵfac: i0.ɵɵFactoryDeclaration<Overlay, never>;
|
|
303
299
|
static ɵprov: i0.ɵɵInjectableDeclaration<Overlay>;
|
|
304
300
|
}
|
|
@@ -328,5 +324,5 @@ declare class FullscreenOverlayContainer extends OverlayContainer implements OnD
|
|
|
328
324
|
static ɵprov: i0.ɵɵInjectableDeclaration<FullscreenOverlayContainer>;
|
|
329
325
|
}
|
|
330
326
|
|
|
331
|
-
export { BlockScrollStrategy, CloseScrollStrategy, FullscreenOverlayContainer, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayPositionBuilder, RepositionScrollStrategy, ScrollStrategyOptions };
|
|
327
|
+
export { BlockScrollStrategy, CloseScrollStrategy, FlexibleConnectedPositionStrategy, FlexibleConnectedPositionStrategyOrigin, FullscreenOverlayContainer, GlobalPositionStrategy, NoopScrollStrategy, Overlay, OverlayConfig, OverlayContainer, OverlayPositionBuilder, OverlayRef, PositionStrategy, RepositionScrollStrategy, ScrollDispatcher, ScrollStrategy, ScrollStrategyOptions, ViewportRuler, createBlockScrollStrategy, createCloseScrollStrategy, createGlobalPositionStrategy, createNoopScrollStrategy, createOverlayRef, createRepositionScrollStrategy };
|
|
332
328
|
export type { RepositionScrollStrategyConfig };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy, NgZone, EnvironmentInjector, Renderer2, ComponentRef, EmbeddedViewRef, ElementRef, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { OnDestroy, NgZone, EnvironmentInjector, Renderer2, ComponentRef, EmbeddedViewRef, ElementRef, Injector, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { Direction, Directionality, BidiModule } from './bidi-module.d-bsVYOt0R.js';
|
|
4
|
+
import { PortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from './portal-directives.d-D9c4J36c.js';
|
|
5
|
+
import { CdkScrollable, ScrollingModule } from './scrolling-module.d-CuNwYGVM.js';
|
|
6
6
|
import { Location } from '@angular/common';
|
|
7
7
|
import { Subject, Observable } from 'rxjs';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { ViewportRuler } from './scrolling/index.js';
|
|
9
|
+
import { Platform } from './platform.d-cnFZCLss.js';
|
|
10
|
+
import { _CdkPrivateStyleLoader } from './style-loader.d-DbvWk0ty.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Service for dispatching events that land on the body to appropriate overlay ref,
|
|
@@ -399,6 +399,12 @@ type FlexibleConnectedPositionStrategyOrigin = ElementRef | Element | (Point & {
|
|
|
399
399
|
width?: number;
|
|
400
400
|
height?: number;
|
|
401
401
|
});
|
|
402
|
+
/**
|
|
403
|
+
* Creates a flexible position strategy.
|
|
404
|
+
* @param injector Injector used to resolve dependnecies for the position strategy.
|
|
405
|
+
* @param origin Origin relative to which to position the overlay.
|
|
406
|
+
*/
|
|
407
|
+
declare function createFlexibleConnectedPositionStrategy(injector: Injector, origin: FlexibleConnectedPositionStrategyOrigin): FlexibleConnectedPositionStrategy;
|
|
402
408
|
/**
|
|
403
409
|
* A strategy for positioning overlays. Using this strategy, an overlay is given an
|
|
404
410
|
* implicit position relative some origin element. The relative position is defined in terms of
|
|
@@ -791,5 +797,5 @@ declare class OverlayModule {
|
|
|
791
797
|
static ɵinj: i0.ɵɵInjectorDeclaration<OverlayModule>;
|
|
792
798
|
}
|
|
793
799
|
|
|
794
|
-
export {
|
|
795
|
-
export type { ConnectedPosition
|
|
800
|
+
export { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectionPositionPair, FlexibleConnectedPositionStrategy, OverlayConfig, OverlayContainer, OverlayKeyboardDispatcher, OverlayModule, OverlayOutsideClickDispatcher, OverlayRef, STANDARD_DROPDOWN_ADJACENT_POSITIONS, STANDARD_DROPDOWN_BELOW_POSITIONS, ScrollingVisibility, createFlexibleConnectedPositionStrategy, validateHorizontalPosition, validateVerticalPosition };
|
|
801
|
+
export type { ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, HorizontalConnectionPos, OriginConnectionPosition, OverlayConnectionPosition, OverlaySizeConfig, PositionStrategy, ScrollStrategy, VerticalConnectionPos };
|
package/overlay-prebuilt.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
|
|
1
|
+
.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
|
package/package.json
CHANGED
package/platform/index.d.ts
CHANGED
package/portal/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { BasePortalOutlet, ComponentPortal, TemplatePortal, DomPortal } from '../portal-directives.d-D9c4J36c.js';
|
|
2
|
+
export { CdkPortal, CdkPortalOutlet, CdkPortalOutletAttachedRef, ComponentType, Portal, PortalHostDirective, PortalModule, PortalOutlet, TemplatePortalDirective } from '../portal-directives.d-D9c4J36c.js';
|
|
3
3
|
import { ApplicationRef, Injector, ComponentRef, EmbeddedViewRef } from '@angular/core';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -48,4 +48,4 @@ declare class DomPortalOutlet extends BasePortalOutlet {
|
|
|
48
48
|
private _getComponentRootNode;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export { DomPortalOutlet };
|
|
51
|
+
export { BasePortalOutlet, ComponentPortal, DomPortal, DomPortalOutlet, TemplatePortal };
|
|
@@ -207,5 +207,5 @@ declare class PortalModule {
|
|
|
207
207
|
static ɵinj: i0.ɵɵInjectorDeclaration<PortalModule>;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
export { BasePortalOutlet
|
|
211
|
-
export type { ComponentType
|
|
210
|
+
export { BasePortalOutlet, CdkPortal, CdkPortalOutlet, ComponentPortal, DomPortal, Portal, PortalHostDirective, PortalModule, TemplatePortal, TemplatePortalDirective };
|
|
211
|
+
export type { CdkPortalOutletAttachedRef, ComponentType, PortalOutlet };
|
package/private/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ function default_1() {
|
|
|
29
29
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
30
30
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
31
31
|
// dependencies in new CLI projects.
|
|
32
|
-
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~
|
|
32
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~{STABLE_PROJECT_VERSION}`);
|
|
33
33
|
// Add a task to run the package manager. This is necessary because we updated the
|
|
34
34
|
// workspace "package.json" file and we want lock files to reflect the new version range.
|
|
35
35
|
context.addTask(new tasks_1.NodePackageInstallTask());
|