@angular/cdk 19.2.13 → 19.2.15
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/_adev_assets/cdk_testing.json +7032 -1
- package/_adev_assets/cdk_testing_protractor.json +1747 -1
- package/_adev_assets/cdk_testing_selenium_webdriver.json +1801 -1
- package/_adev_assets/cdk_testing_testbed.json +1903 -1
- package/dialog/index.d.ts +17 -12
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/dialog.mjs +21 -9
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/testing.mjs +255 -52
- package/fesm2022/testing.mjs.map +1 -1
- package/{harness-environment.d-BatBdODN.d.ts → harness-environment.d-BbFzIFDE.d.ts} +362 -89
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/testing/index.d.ts +6 -2
- package/testing/selenium-webdriver/index.d.ts +1 -1
- package/testing/testbed/index.d.ts +1 -1
- package/npm_package/LICENSE +0 -21
- package/npm_package/README.md +0 -6
- package/npm_package/_adev_assets/cdk_testing.json +0 -1
- package/npm_package/_adev_assets/cdk_testing_protractor.json +0 -1
- package/npm_package/_adev_assets/cdk_testing_selenium_webdriver.json +0 -1
- package/npm_package/_adev_assets/cdk_testing_testbed.json +0 -1
- package/npm_package/_index.scss +0 -8
- package/npm_package/a11y/_index.scss +0 -60
- package/npm_package/a11y/index.d.ts +0 -550
- package/npm_package/a11y-module.d-DBHGyKoh.d.ts +0 -314
- package/npm_package/a11y-prebuilt.css +0 -1
- package/npm_package/accordion/index.d.ts +0 -90
- package/npm_package/activedescendant-key-manager.d-Bjic5obv.d.ts +0 -32
- package/npm_package/bidi/index.d.ts +0 -21
- package/npm_package/bidi-module.d-D-fEBKdS.d.ts +0 -54
- package/npm_package/clipboard/index.d.ts +0 -101
- package/npm_package/coercion/index.d.ts +0 -45
- package/npm_package/coercion/private/index.d.ts +0 -9
- package/npm_package/collections/index.d.ts +0 -99
- package/npm_package/data-source.d-Bblv7Zvh.d.ts +0 -43
- package/npm_package/dialog/index.d.ts +0 -426
- package/npm_package/drag-drop/index.d.ts +0 -1383
- package/npm_package/fesm2022/a11y-module-BYox5gpI.mjs +0 -952
- package/npm_package/fesm2022/a11y-module-BYox5gpI.mjs.map +0 -1
- package/npm_package/fesm2022/a11y.mjs +0 -539
- package/npm_package/fesm2022/a11y.mjs.map +0 -1
- package/npm_package/fesm2022/accordion.mjs +0 -210
- package/npm_package/fesm2022/accordion.mjs.map +0 -1
- package/npm_package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs +0 -16
- package/npm_package/fesm2022/activedescendant-key-manager-DC3-fwQI.mjs.map +0 -1
- package/npm_package/fesm2022/array-I1yfCXUO.mjs +0 -6
- package/npm_package/fesm2022/array-I1yfCXUO.mjs.map +0 -1
- package/npm_package/fesm2022/backwards-compatibility-DHR38MsD.mjs +0 -25
- package/npm_package/fesm2022/backwards-compatibility-DHR38MsD.mjs.map +0 -1
- package/npm_package/fesm2022/bidi.mjs +0 -80
- package/npm_package/fesm2022/bidi.mjs.map +0 -1
- package/npm_package/fesm2022/boolean-property-DaaVhX5A.mjs +0 -7
- package/npm_package/fesm2022/boolean-property-DaaVhX5A.mjs.map +0 -1
- package/npm_package/fesm2022/breakpoints-observer-CljOfYGy.mjs +0 -179
- package/npm_package/fesm2022/breakpoints-observer-CljOfYGy.mjs.map +0 -1
- package/npm_package/fesm2022/cdk.mjs +0 -7
- package/npm_package/fesm2022/cdk.mjs.map +0 -1
- package/npm_package/fesm2022/clipboard.mjs +0 -211
- package/npm_package/fesm2022/clipboard.mjs.map +0 -1
- package/npm_package/fesm2022/coercion/private.mjs +0 -15
- package/npm_package/fesm2022/coercion/private.mjs.map +0 -1
- package/npm_package/fesm2022/coercion.mjs +0 -39
- package/npm_package/fesm2022/coercion.mjs.map +0 -1
- package/npm_package/fesm2022/collections.mjs +0 -8
- package/npm_package/fesm2022/collections.mjs.map +0 -1
- package/npm_package/fesm2022/css-pixel-value-C_HEqLhI.mjs +0 -10
- package/npm_package/fesm2022/css-pixel-value-C_HEqLhI.mjs.map +0 -1
- package/npm_package/fesm2022/data-source-D34wiQZj.mjs +0 -15
- package/npm_package/fesm2022/data-source-D34wiQZj.mjs.map +0 -1
- package/npm_package/fesm2022/dialog.mjs +0 -870
- package/npm_package/fesm2022/dialog.mjs.map +0 -1
- package/npm_package/fesm2022/directionality-CBXD4hga.mjs +0 -72
- package/npm_package/fesm2022/directionality-CBXD4hga.mjs.map +0 -1
- package/npm_package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs +0 -44
- package/npm_package/fesm2022/dispose-view-repeater-strategy-D_JReLI1.mjs.map +0 -1
- package/npm_package/fesm2022/drag-drop.mjs +0 -4359
- package/npm_package/fesm2022/drag-drop.mjs.map +0 -1
- package/npm_package/fesm2022/element-x4z00URv.mjs +0 -29
- package/npm_package/fesm2022/element-x4z00URv.mjs.map +0 -1
- package/npm_package/fesm2022/fake-event-detection-DWOdFTFz.mjs +0 -24
- package/npm_package/fesm2022/fake-event-detection-DWOdFTFz.mjs.map +0 -1
- package/npm_package/fesm2022/focus-key-manager-C1rAQJ5z.mjs +0 -22
- package/npm_package/fesm2022/focus-key-manager-C1rAQJ5z.mjs.map +0 -1
- package/npm_package/fesm2022/focus-monitor-e2l_RpN3.mjs +0 -629
- package/npm_package/fesm2022/focus-monitor-e2l_RpN3.mjs.map +0 -1
- package/npm_package/fesm2022/id-generator-Dw_9dSDu.mjs +0 -37
- package/npm_package/fesm2022/id-generator-Dw_9dSDu.mjs.map +0 -1
- package/npm_package/fesm2022/keycodes-CpHkExLC.mjs +0 -122
- package/npm_package/fesm2022/keycodes-CpHkExLC.mjs.map +0 -1
- package/npm_package/fesm2022/keycodes.mjs +0 -15
- package/npm_package/fesm2022/keycodes.mjs.map +0 -1
- package/npm_package/fesm2022/layout.mjs +0 -43
- package/npm_package/fesm2022/layout.mjs.map +0 -1
- package/npm_package/fesm2022/list-key-manager-CyOIXo8P.mjs +0 -360
- package/npm_package/fesm2022/list-key-manager-CyOIXo8P.mjs.map +0 -1
- package/npm_package/fesm2022/listbox.mjs +0 -925
- package/npm_package/fesm2022/listbox.mjs.map +0 -1
- package/npm_package/fesm2022/menu.mjs +0 -1966
- package/npm_package/fesm2022/menu.mjs.map +0 -1
- package/npm_package/fesm2022/observers/private.mjs +0 -124
- package/npm_package/fesm2022/observers/private.mjs.map +0 -1
- package/npm_package/fesm2022/observers.mjs +0 -210
- package/npm_package/fesm2022/observers.mjs.map +0 -1
- package/npm_package/fesm2022/overlay-module-BUj0D19H.mjs +0 -3029
- package/npm_package/fesm2022/overlay-module-BUj0D19H.mjs.map +0 -1
- package/npm_package/fesm2022/overlay.mjs +0 -102
- package/npm_package/fesm2022/overlay.mjs.map +0 -1
- package/npm_package/fesm2022/passive-listeners-esHZRgIN.mjs +0 -31
- package/npm_package/fesm2022/passive-listeners-esHZRgIN.mjs.map +0 -1
- package/npm_package/fesm2022/platform-DmdVEw_C.mjs +0 -77
- package/npm_package/fesm2022/platform-DmdVEw_C.mjs.map +0 -1
- package/npm_package/fesm2022/platform.mjs +0 -74
- package/npm_package/fesm2022/platform.mjs.map +0 -1
- package/npm_package/fesm2022/portal-directives-Bw5woq8I.mjs +0 -653
- package/npm_package/fesm2022/portal-directives-Bw5woq8I.mjs.map +0 -1
- package/npm_package/fesm2022/portal.mjs +0 -29
- package/npm_package/fesm2022/portal.mjs.map +0 -1
- package/npm_package/fesm2022/private.mjs +0 -19
- package/npm_package/fesm2022/private.mjs.map +0 -1
- package/npm_package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs +0 -156
- package/npm_package/fesm2022/recycle-view-repeater-strategy-DoWdPqVw.mjs.map +0 -1
- package/npm_package/fesm2022/scrolling-BkvA05C8.mjs +0 -99
- package/npm_package/fesm2022/scrolling-BkvA05C8.mjs.map +0 -1
- package/npm_package/fesm2022/scrolling.mjs +0 -1464
- package/npm_package/fesm2022/scrolling.mjs.map +0 -1
- package/npm_package/fesm2022/selection-model-CeeHVIcP.mjs +0 -226
- package/npm_package/fesm2022/selection-model-CeeHVIcP.mjs.map +0 -1
- package/npm_package/fesm2022/shadow-dom-B0oHn41l.mjs +0 -49
- package/npm_package/fesm2022/shadow-dom-B0oHn41l.mjs.map +0 -1
- package/npm_package/fesm2022/stepper.mjs +0 -614
- package/npm_package/fesm2022/stepper.mjs.map +0 -1
- package/npm_package/fesm2022/style-loader-Cu9AvjH9.mjs +0 -47
- package/npm_package/fesm2022/style-loader-Cu9AvjH9.mjs.map +0 -1
- package/npm_package/fesm2022/table.mjs +0 -2602
- package/npm_package/fesm2022/table.mjs.map +0 -1
- package/npm_package/fesm2022/test-environment-CT0XxPyp.mjs +0 -19
- package/npm_package/fesm2022/test-environment-CT0XxPyp.mjs.map +0 -1
- package/npm_package/fesm2022/testing/selenium-webdriver.mjs +0 -353
- package/npm_package/fesm2022/testing/selenium-webdriver.mjs.map +0 -1
- package/npm_package/fesm2022/testing/testbed.mjs +0 -782
- package/npm_package/fesm2022/testing/testbed.mjs.map +0 -1
- package/npm_package/fesm2022/testing.mjs +0 -698
- package/npm_package/fesm2022/testing.mjs.map +0 -1
- package/npm_package/fesm2022/text-field.mjs +0 -437
- package/npm_package/fesm2022/text-field.mjs.map +0 -1
- package/npm_package/fesm2022/tree-key-manager-KnCoIkIC.mjs +0 -360
- package/npm_package/fesm2022/tree-key-manager-KnCoIkIC.mjs.map +0 -1
- package/npm_package/fesm2022/tree.mjs +0 -1795
- package/npm_package/fesm2022/tree.mjs.map +0 -1
- package/npm_package/fesm2022/typeahead-9ZW4Dtsf.mjs +0 -88
- package/npm_package/fesm2022/typeahead-9ZW4Dtsf.mjs.map +0 -1
- package/npm_package/fesm2022/unique-selection-dispatcher-DtHZDqyJ.mjs +0 -49
- package/npm_package/fesm2022/unique-selection-dispatcher-DtHZDqyJ.mjs.map +0 -1
- package/npm_package/focus-key-manager.d-BIKDy8oD.d.ts +0 -34
- package/npm_package/focus-monitor.d-CvvJeQRc.d.ts +0 -210
- package/npm_package/harness-environment.d-BatBdODN.d.ts +0 -620
- package/npm_package/index.d.ts +0 -6
- package/npm_package/keycodes/index.d.ts +0 -129
- package/npm_package/layout/index.d.ts +0 -89
- package/npm_package/list-key-manager.d-BlK3jyRn.d.ts +0 -165
- package/npm_package/listbox/index.d.ts +0 -353
- package/npm_package/menu/index.d.ts +0 -821
- package/npm_package/number-property.d-CJVxXUcb.d.ts +0 -16
- package/npm_package/observers/index.d.ts +0 -84
- package/npm_package/observers/private/index.d.ts +0 -34
- package/npm_package/overlay/_index-deprecated.scss +0 -13
- package/npm_package/overlay/_index.scss +0 -193
- package/npm_package/overlay/index.d.ts +0 -42
- package/npm_package/overlay-module.d-B3qEQtts.d.ts +0 -791
- package/npm_package/overlay-prebuilt.css +0 -1
- package/npm_package/overlay.d-BdoMy0hX.d.ts +0 -296
- package/npm_package/package.json +0 -186
- package/npm_package/platform/index.d.ts +0 -83
- package/npm_package/platform.d-B3vREl3q.d.ts +0 -33
- package/npm_package/portal/index.d.ts +0 -86
- package/npm_package/portal-directives.d-BoG39gYN.d.ts +0 -232
- package/npm_package/private/index.d.ts +0 -13
- package/npm_package/schematics/collection.json +0 -18
- package/npm_package/schematics/index.d.ts +0 -14
- package/npm_package/schematics/index.js +0 -37
- package/npm_package/schematics/index.js.map +0 -1
- package/npm_package/schematics/migration.json +0 -15
- package/npm_package/schematics/ng-add/index.d.ts +0 -17
- package/npm_package/schematics/ng-add/index.js +0 -39
- package/npm_package/schematics/ng-add/index.js.map +0 -1
- package/npm_package/schematics/ng-add/package-config.d.ts +0 -12
- package/npm_package/schematics/ng-add/package-config.js +0 -51
- package/npm_package/schematics/ng-add/package-config.js.map +0 -1
- package/npm_package/schematics/ng-add/schema.d.ts +0 -11
- package/npm_package/schematics/ng-add/schema.js +0 -10
- package/npm_package/schematics/ng-add/schema.js.map +0 -1
- package/npm_package/schematics/ng-add/schema.json +0 -16
- package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__style__.template +0 -53
- package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +0 -21
- package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts.template +0 -25
- package/npm_package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts.template +0 -45
- package/npm_package/schematics/ng-generate/drag-drop/index.d.ts +0 -11
- package/npm_package/schematics/ng-generate/drag-drop/index.js +0 -42
- package/npm_package/schematics/ng-generate/drag-drop/index.js.map +0 -1
- package/npm_package/schematics/ng-generate/drag-drop/schema.d.ts +0 -10
- package/npm_package/schematics/ng-generate/drag-drop/schema.js +0 -10
- package/npm_package/schematics/ng-generate/drag-drop/schema.js.map +0 -1
- package/npm_package/schematics/ng-generate/drag-drop/schema.json +0 -100
- package/npm_package/schematics/ng-update/data/attribute-selectors.d.ts +0 -15
- package/npm_package/schematics/ng-update/data/attribute-selectors.js +0 -12
- package/npm_package/schematics/ng-update/data/attribute-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/data/class-names.d.ts +0 -15
- package/npm_package/schematics/ng-update/data/class-names.js +0 -12
- package/npm_package/schematics/ng-update/data/class-names.js.map +0 -1
- package/npm_package/schematics/ng-update/data/constructor-checks.d.ts +0 -15
- package/npm_package/schematics/ng-update/data/constructor-checks.js +0 -17
- package/npm_package/schematics/ng-update/data/constructor-checks.js.map +0 -1
- package/npm_package/schematics/ng-update/data/css-selectors.d.ts +0 -27
- package/npm_package/schematics/ng-update/data/css-selectors.js +0 -12
- package/npm_package/schematics/ng-update/data/css-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/data/css-tokens.d.ts +0 -27
- package/npm_package/schematics/ng-update/data/css-tokens.js +0 -12
- package/npm_package/schematics/ng-update/data/css-tokens.js.map +0 -1
- package/npm_package/schematics/ng-update/data/element-selectors.d.ts +0 -15
- package/npm_package/schematics/ng-update/data/element-selectors.js +0 -12
- package/npm_package/schematics/ng-update/data/element-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/data/index.d.ts +0 -18
- package/npm_package/schematics/ng-update/data/index.js +0 -35
- package/npm_package/schematics/ng-update/data/index.js.map +0 -1
- package/npm_package/schematics/ng-update/data/input-names.d.ts +0 -22
- package/npm_package/schematics/ng-update/data/input-names.js +0 -12
- package/npm_package/schematics/ng-update/data/input-names.js.map +0 -1
- package/npm_package/schematics/ng-update/data/method-call-checks.d.ts +0 -17
- package/npm_package/schematics/ng-update/data/method-call-checks.js +0 -12
- package/npm_package/schematics/ng-update/data/method-call-checks.js.map +0 -1
- package/npm_package/schematics/ng-update/data/output-names.d.ts +0 -22
- package/npm_package/schematics/ng-update/data/output-names.js +0 -12
- package/npm_package/schematics/ng-update/data/output-names.js.map +0 -1
- package/npm_package/schematics/ng-update/data/property-names.d.ts +0 -20
- package/npm_package/schematics/ng-update/data/property-names.js +0 -12
- package/npm_package/schematics/ng-update/data/property-names.js.map +0 -1
- package/npm_package/schematics/ng-update/data/symbol-removal.d.ts +0 -17
- package/npm_package/schematics/ng-update/data/symbol-removal.js +0 -12
- package/npm_package/schematics/ng-update/data/symbol-removal.js.map +0 -1
- package/npm_package/schematics/ng-update/devkit-file-system.d.ts +0 -30
- package/npm_package/schematics/ng-update/devkit-file-system.js +0 -83
- package/npm_package/schematics/ng-update/devkit-file-system.js.map +0 -1
- package/npm_package/schematics/ng-update/devkit-migration-rule.d.ts +0 -24
- package/npm_package/schematics/ng-update/devkit-migration-rule.js +0 -142
- package/npm_package/schematics/ng-update/devkit-migration-rule.js.map +0 -1
- package/npm_package/schematics/ng-update/devkit-migration.d.ts +0 -35
- package/npm_package/schematics/ng-update/devkit-migration.js +0 -20
- package/npm_package/schematics/ng-update/devkit-migration.js.map +0 -1
- package/npm_package/schematics/ng-update/find-stylesheets.d.ts +0 -16
- package/npm_package/schematics/ng-update/find-stylesheets.js +0 -41
- package/npm_package/schematics/ng-update/find-stylesheets.js.map +0 -1
- package/npm_package/schematics/ng-update/html-parsing/angular.d.ts +0 -15
- package/npm_package/schematics/ng-update/html-parsing/angular.js +0 -51
- package/npm_package/schematics/ng-update/html-parsing/angular.js.map +0 -1
- package/npm_package/schematics/ng-update/html-parsing/elements.d.ts +0 -24
- package/npm_package/schematics/ng-update/html-parsing/elements.js +0 -63
- package/npm_package/schematics/ng-update/html-parsing/elements.js.map +0 -1
- package/npm_package/schematics/ng-update/index.d.ts +0 -10
- package/npm_package/schematics/ng-update/index.js +0 -29
- package/npm_package/schematics/ng-update/index.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/attribute-selectors.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/attribute-selectors.js +0 -71
- package/npm_package/schematics/ng-update/migrations/attribute-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/class-inheritance.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/class-inheritance.js +0 -58
- package/npm_package/schematics/ng-update/migrations/class-inheritance.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/class-names.d.ts +0 -32
- package/npm_package/schematics/ng-update/migrations/class-names.js +0 -91
- package/npm_package/schematics/ng-update/migrations/class-names.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/constructor-signature.d.ts +0 -29
- package/npm_package/schematics/ng-update/migrations/constructor-signature.js +0 -139
- package/npm_package/schematics/ng-update/migrations/constructor-signature.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/css-selectors.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/css-selectors.js +0 -75
- package/npm_package/schematics/ng-update/migrations/css-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/css-tokens.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/css-tokens.js +0 -83
- package/npm_package/schematics/ng-update/migrations/css-tokens.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/element-selectors.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/element-selectors.js +0 -66
- package/npm_package/schematics/ng-update/migrations/element-selectors.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/input-names.d.ts +0 -26
- package/npm_package/schematics/ng-update/migrations/input-names.js +0 -59
- package/npm_package/schematics/ng-update/migrations/input-names.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/method-call-arguments.d.ts +0 -22
- package/npm_package/schematics/ng-update/migrations/method-call-arguments.js +0 -62
- package/npm_package/schematics/ng-update/migrations/method-call-arguments.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/misc-template.d.ts +0 -18
- package/npm_package/schematics/ng-update/migrations/misc-template.js +0 -25
- package/npm_package/schematics/ng-update/migrations/misc-template.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/output-names.d.ts +0 -22
- package/npm_package/schematics/ng-update/migrations/output-names.js +0 -46
- package/npm_package/schematics/ng-update/migrations/output-names.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/property-names.d.ts +0 -22
- package/npm_package/schematics/ng-update/migrations/property-names.js +0 -60
- package/npm_package/schematics/ng-update/migrations/property-names.js.map +0 -1
- package/npm_package/schematics/ng-update/migrations/symbol-removal.d.ts +0 -18
- package/npm_package/schematics/ng-update/migrations/symbol-removal.js +0 -47
- package/npm_package/schematics/ng-update/migrations/symbol-removal.js.map +0 -1
- package/npm_package/schematics/ng-update/public-api.d.ts +0 -19
- package/npm_package/schematics/ng-update/public-api.js +0 -36
- package/npm_package/schematics/ng-update/public-api.js.map +0 -1
- package/npm_package/schematics/ng-update/typescript/base-types.d.ts +0 -10
- package/npm_package/schematics/ng-update/typescript/base-types.js +0 -23
- package/npm_package/schematics/ng-update/typescript/base-types.js.map +0 -1
- package/npm_package/schematics/ng-update/typescript/imports.d.ts +0 -18
- package/npm_package/schematics/ng-update/typescript/imports.js +0 -53
- package/npm_package/schematics/ng-update/typescript/imports.js.map +0 -1
- package/npm_package/schematics/ng-update/typescript/literal.d.ts +0 -18
- package/npm_package/schematics/ng-update/typescript/literal.js +0 -32
- package/npm_package/schematics/ng-update/typescript/literal.js.map +0 -1
- package/npm_package/schematics/ng-update/typescript/module-specifiers.d.ts +0 -16
- package/npm_package/schematics/ng-update/typescript/module-specifiers.js +0 -35
- package/npm_package/schematics/ng-update/typescript/module-specifiers.js.map +0 -1
- package/npm_package/schematics/ng-update/upgrade-data.d.ts +0 -35
- package/npm_package/schematics/ng-update/upgrade-data.js +0 -40
- package/npm_package/schematics/ng-update/upgrade-data.js.map +0 -1
- package/npm_package/schematics/package.json +0 -3
- package/npm_package/schematics/paths.d.ts +0 -11
- package/npm_package/schematics/paths.js +0 -16
- package/npm_package/schematics/paths.js.map +0 -1
- package/npm_package/schematics/update-tool/component-resource-collector.d.ts +0 -44
- package/npm_package/schematics/update-tool/component-resource-collector.js +0 -164
- package/npm_package/schematics/update-tool/component-resource-collector.js.map +0 -1
- package/npm_package/schematics/update-tool/file-system.d.ts +0 -72
- package/npm_package/schematics/update-tool/file-system.js +0 -18
- package/npm_package/schematics/update-tool/file-system.js.map +0 -1
- package/npm_package/schematics/update-tool/index.d.ts +0 -74
- package/npm_package/schematics/update-tool/index.js +0 -172
- package/npm_package/schematics/update-tool/index.js.map +0 -1
- package/npm_package/schematics/update-tool/logger.d.ts +0 -15
- package/npm_package/schematics/update-tool/logger.js +0 -18
- package/npm_package/schematics/update-tool/logger.js.map +0 -1
- package/npm_package/schematics/update-tool/migration.d.ts +0 -87
- package/npm_package/schematics/update-tool/migration.js +0 -70
- package/npm_package/schematics/update-tool/migration.js.map +0 -1
- package/npm_package/schematics/update-tool/public-api.d.ts +0 -16
- package/npm_package/schematics/update-tool/public-api.js +0 -33
- package/npm_package/schematics/update-tool/public-api.js.map +0 -1
- package/npm_package/schematics/update-tool/target-version.d.ts +0 -16
- package/npm_package/schematics/update-tool/target-version.js +0 -27
- package/npm_package/schematics/update-tool/target-version.js.map +0 -1
- package/npm_package/schematics/update-tool/update-recorder.d.ts +0 -13
- package/npm_package/schematics/update-tool/update-recorder.js +0 -10
- package/npm_package/schematics/update-tool/update-recorder.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/decorators.d.ts +0 -22
- package/npm_package/schematics/update-tool/utils/decorators.js +0 -41
- package/npm_package/schematics/update-tool/utils/decorators.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/diagnostics.d.ts +0 -11
- package/npm_package/schematics/update-tool/utils/diagnostics.js +0 -18
- package/npm_package/schematics/update-tool/utils/diagnostics.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/functions.d.ts +0 -14
- package/npm_package/schematics/update-tool/utils/functions.js +0 -20
- package/npm_package/schematics/update-tool/utils/functions.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/imports.d.ts +0 -17
- package/npm_package/schematics/update-tool/utils/imports.js +0 -110
- package/npm_package/schematics/update-tool/utils/imports.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/line-mappings.d.ts +0 -21
- package/npm_package/schematics/update-tool/utils/line-mappings.js +0 -75
- package/npm_package/schematics/update-tool/utils/line-mappings.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/parse-tsconfig.d.ts +0 -18
- package/npm_package/schematics/update-tool/utils/parse-tsconfig.js +0 -45
- package/npm_package/schematics/update-tool/utils/parse-tsconfig.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/property-name.d.ts +0 -18
- package/npm_package/schematics/update-tool/utils/property-name.js +0 -27
- package/npm_package/schematics/update-tool/utils/property-name.js.map +0 -1
- package/npm_package/schematics/update-tool/utils/virtual-host.d.ts +0 -36
- package/npm_package/schematics/update-tool/utils/virtual-host.js +0 -71
- package/npm_package/schematics/update-tool/utils/virtual-host.js.map +0 -1
- package/npm_package/schematics/update-tool/version-changes.d.ts +0 -32
- package/npm_package/schematics/update-tool/version-changes.js +0 -38
- package/npm_package/schematics/update-tool/version-changes.js.map +0 -1
- package/npm_package/schematics/utils/ast/ng-module-imports.d.ts +0 -12
- package/npm_package/schematics/utils/ast/ng-module-imports.js +0 -82
- package/npm_package/schematics/utils/ast/ng-module-imports.js.map +0 -1
- package/npm_package/schematics/utils/ast.d.ts +0 -25
- package/npm_package/schematics/utils/ast.js +0 -79
- package/npm_package/schematics/utils/ast.js.map +0 -1
- package/npm_package/schematics/utils/build-component.d.ts +0 -20
- package/npm_package/schematics/utils/build-component.js +0 -188
- package/npm_package/schematics/utils/build-component.js.map +0 -1
- package/npm_package/schematics/utils/get-project.d.ts +0 -13
- package/npm_package/schematics/utils/get-project.js +0 -28
- package/npm_package/schematics/utils/get-project.js.map +0 -1
- package/npm_package/schematics/utils/html-manipulation.d.ts +0 -15
- package/npm_package/schematics/utils/html-manipulation.js +0 -91
- package/npm_package/schematics/utils/html-manipulation.js.map +0 -1
- package/npm_package/schematics/utils/index.d.ts +0 -19
- package/npm_package/schematics/utils/index.js +0 -36
- package/npm_package/schematics/utils/index.js.map +0 -1
- package/npm_package/schematics/utils/parse5-element.d.ts +0 -12
- package/npm_package/schematics/utils/parse5-element.js +0 -30
- package/npm_package/schematics/utils/parse5-element.js.map +0 -1
- package/npm_package/schematics/utils/project-index-file.d.ts +0 -10
- package/npm_package/schematics/utils/project-index-file.js +0 -20
- package/npm_package/schematics/utils/project-index-file.js.map +0 -1
- package/npm_package/schematics/utils/project-main-file.d.ts +0 -10
- package/npm_package/schematics/utils/project-main-file.js +0 -25
- package/npm_package/schematics/utils/project-main-file.js.map +0 -1
- package/npm_package/schematics/utils/project-style-file.d.ts +0 -13
- package/npm_package/schematics/utils/project-style-file.js +0 -42
- package/npm_package/schematics/utils/project-style-file.js.map +0 -1
- package/npm_package/schematics/utils/project-targets.d.ts +0 -14
- package/npm_package/schematics/utils/project-targets.js +0 -46
- package/npm_package/schematics/utils/project-targets.js.map +0 -1
- package/npm_package/schematics/utils/project-tsconfig-paths.d.ts +0 -14
- package/npm_package/schematics/utils/project-tsconfig-paths.js +0 -46
- package/npm_package/schematics/utils/project-tsconfig-paths.js.map +0 -1
- package/npm_package/schematics/utils/schematic-options.d.ts +0 -20
- package/npm_package/schematics/utils/schematic-options.js +0 -89
- package/npm_package/schematics/utils/schematic-options.js.map +0 -1
- package/npm_package/scrolling/index.d.ts +0 -62
- package/npm_package/scrolling-module.d-ud2XrbF8.d.ts +0 -552
- package/npm_package/selection-model.d-C_vvNGP-.d.ts +0 -117
- package/npm_package/stepper/index.d.ts +0 -228
- package/npm_package/style-loader.d-BXZfQZTF.d.ts +0 -21
- package/npm_package/table/index.d.ts +0 -1100
- package/npm_package/testing/index.d.ts +0 -94
- package/npm_package/testing/selenium-webdriver/index.d.ts +0 -150
- package/npm_package/testing/testbed/index.d.ts +0 -157
- package/npm_package/text-field/_index.scss +0 -89
- package/npm_package/text-field/index.d.ts +0 -156
- package/npm_package/text-field-prebuilt.css +0 -1
- package/npm_package/tree/index.d.ts +0 -720
- package/npm_package/tree-key-manager-strategy.d-XB6M79l-.d.ts +0 -116
- package/npm_package/unique-selection-dispatcher.d-DSFqf1MM.d.ts +0 -33
- package/npm_package/view-repeater.d-BKljR8u8.d.ts +0 -89
|
@@ -1,821 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, Renderer2, QueryList, InjectionToken, Optional, OnDestroy, Injector, ViewContainerRef, EventEmitter, TemplateRef, OnChanges, SimpleChanges, NgZone, AfterContentInit } from '@angular/core';
|
|
3
|
-
import { n as ScrollStrategy, d as ConnectedPosition, b as OverlayRef, o as OverlayModule } from '../overlay-module.d-B3qEQtts.js';
|
|
4
|
-
import * as rxjs from 'rxjs';
|
|
5
|
-
import { Observable, Subject } from 'rxjs';
|
|
6
|
-
import { F as FocusOrigin } from '../focus-monitor.d-CvvJeQRc.js';
|
|
7
|
-
import { F as FocusableOption, a as FocusKeyManager } from '../focus-key-manager.d-BIKDy8oD.js';
|
|
8
|
-
import { D as Directionality } from '../bidi-module.d-D-fEBKdS.js';
|
|
9
|
-
import { T as TemplatePortal } from '../portal-directives.d-BoG39gYN.js';
|
|
10
|
-
import '../scrolling-module.d-ud2XrbF8.js';
|
|
11
|
-
import '../data-source.d-Bblv7Zvh.js';
|
|
12
|
-
import '../number-property.d-CJVxXUcb.js';
|
|
13
|
-
import '@angular/common';
|
|
14
|
-
import '../scrolling/index.js';
|
|
15
|
-
import '../platform.d-B3vREl3q.js';
|
|
16
|
-
import '../style-loader.d-BXZfQZTF.js';
|
|
17
|
-
import '../list-key-manager.d-BlK3jyRn.js';
|
|
18
|
-
|
|
19
|
-
/** Item to track for mouse focus events. */
|
|
20
|
-
interface FocusableElement {
|
|
21
|
-
/** A reference to the element to be tracked. */
|
|
22
|
-
_elementRef: ElementRef<HTMLElement>;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* PointerFocusTracker keeps track of the currently active item under mouse focus. It also has
|
|
26
|
-
* observables which emit when the users mouse enters and leaves a tracked element.
|
|
27
|
-
*/
|
|
28
|
-
declare class PointerFocusTracker<T extends FocusableElement> {
|
|
29
|
-
private _renderer;
|
|
30
|
-
private readonly _items;
|
|
31
|
-
private _eventCleanups;
|
|
32
|
-
private _itemsSubscription;
|
|
33
|
-
/** Emits when an element is moused into. */
|
|
34
|
-
readonly entered: Observable<T>;
|
|
35
|
-
/** Emits when an element is moused out. */
|
|
36
|
-
readonly exited: Observable<T>;
|
|
37
|
-
/** The element currently under mouse focus. */
|
|
38
|
-
activeElement?: T;
|
|
39
|
-
/** The element previously under mouse focus. */
|
|
40
|
-
previousElement?: T;
|
|
41
|
-
constructor(_renderer: Renderer2, _items: QueryList<T>);
|
|
42
|
-
/** Stop the managers listeners. */
|
|
43
|
-
destroy(): void;
|
|
44
|
-
/** Binds the enter/exit events on all the items. */
|
|
45
|
-
private _bindEvents;
|
|
46
|
-
/** Cleans up the currently-bound events. */
|
|
47
|
-
private _cleanupEvents;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/** The relative item in the inline menu to focus after closing all popup menus. */
|
|
51
|
-
declare enum FocusNext {
|
|
52
|
-
nextItem = 0,
|
|
53
|
-
previousItem = 1,
|
|
54
|
-
currentItem = 2
|
|
55
|
-
}
|
|
56
|
-
/** A single item (menu) in the menu stack. */
|
|
57
|
-
interface MenuStackItem {
|
|
58
|
-
/** A reference to the menu stack this menu stack item belongs to. */
|
|
59
|
-
menuStack?: MenuStack;
|
|
60
|
-
}
|
|
61
|
-
/** Injection token used for an implementation of MenuStack. */
|
|
62
|
-
declare const MENU_STACK: InjectionToken<MenuStack>;
|
|
63
|
-
/** Provider that provides the parent menu stack, or a new menu stack if there is no parent one. */
|
|
64
|
-
declare const PARENT_OR_NEW_MENU_STACK_PROVIDER: {
|
|
65
|
-
provide: InjectionToken<MenuStack>;
|
|
66
|
-
deps: Optional[][];
|
|
67
|
-
useFactory: (parentMenuStack?: MenuStack) => MenuStack;
|
|
68
|
-
};
|
|
69
|
-
/** Provider that provides the parent menu stack, or a new inline menu stack if there is no parent one. */
|
|
70
|
-
declare const PARENT_OR_NEW_INLINE_MENU_STACK_PROVIDER: (orientation: "vertical" | "horizontal") => {
|
|
71
|
-
provide: InjectionToken<MenuStack>;
|
|
72
|
-
deps: Optional[][];
|
|
73
|
-
useFactory: (parentMenuStack?: MenuStack) => MenuStack;
|
|
74
|
-
};
|
|
75
|
-
/** Options that can be provided to the close or closeAll methods. */
|
|
76
|
-
interface CloseOptions {
|
|
77
|
-
/** The element to focus next if the close operation causes the menu stack to become empty. */
|
|
78
|
-
focusNextOnEmpty?: FocusNext;
|
|
79
|
-
/** Whether to focus the parent trigger after closing the menu. */
|
|
80
|
-
focusParentTrigger?: boolean;
|
|
81
|
-
}
|
|
82
|
-
/** Event dispatched when a menu is closed. */
|
|
83
|
-
interface MenuStackCloseEvent {
|
|
84
|
-
/** The menu being closed. */
|
|
85
|
-
item: MenuStackItem;
|
|
86
|
-
/** Whether to focus the parent trigger after closing the menu. */
|
|
87
|
-
focusParentTrigger?: boolean;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* MenuStack allows subscribers to listen for close events (when a MenuStackItem is popped off
|
|
91
|
-
* of the stack) in order to perform closing actions. Upon the MenuStack being empty it emits
|
|
92
|
-
* from the `empty` observable specifying the next focus action which the listener should perform
|
|
93
|
-
* as requested by the closer.
|
|
94
|
-
*/
|
|
95
|
-
declare class MenuStack {
|
|
96
|
-
/** The ID of this menu stack. */
|
|
97
|
-
readonly id: string;
|
|
98
|
-
/** All MenuStackItems tracked by this MenuStack. */
|
|
99
|
-
private readonly _elements;
|
|
100
|
-
/** Emits the element which was popped off of the stack when requested by a closer. */
|
|
101
|
-
private readonly _close;
|
|
102
|
-
/** Emits once the MenuStack has become empty after popping off elements. */
|
|
103
|
-
private readonly _empty;
|
|
104
|
-
/** Emits whether any menu in the menu stack has focus. */
|
|
105
|
-
private readonly _hasFocus;
|
|
106
|
-
/** Observable which emits the MenuStackItem which has been requested to close. */
|
|
107
|
-
readonly closed: Observable<MenuStackCloseEvent>;
|
|
108
|
-
/** Observable which emits whether any menu in the menu stack has focus. */
|
|
109
|
-
readonly hasFocus: Observable<boolean>;
|
|
110
|
-
/**
|
|
111
|
-
* Observable which emits when the MenuStack is empty after popping off the last element. It
|
|
112
|
-
* emits a FocusNext event which specifies the action the closer has requested the listener
|
|
113
|
-
* perform.
|
|
114
|
-
*/
|
|
115
|
-
readonly emptied: Observable<FocusNext | undefined>;
|
|
116
|
-
/**
|
|
117
|
-
* Whether the inline menu associated with this menu stack is vertical or horizontal.
|
|
118
|
-
* `null` indicates there is no inline menu associated with this menu stack.
|
|
119
|
-
*/
|
|
120
|
-
private _inlineMenuOrientation;
|
|
121
|
-
/** Creates a menu stack that originates from an inline menu. */
|
|
122
|
-
static inline(orientation: 'vertical' | 'horizontal'): MenuStack;
|
|
123
|
-
/**
|
|
124
|
-
* Adds an item to the menu stack.
|
|
125
|
-
* @param menu the MenuStackItem to put on the stack.
|
|
126
|
-
*/
|
|
127
|
-
push(menu: MenuStackItem): void;
|
|
128
|
-
/**
|
|
129
|
-
* Pop items off of the stack up to and including `lastItem` and emit each on the close
|
|
130
|
-
* observable. If the stack is empty or `lastItem` is not on the stack it does nothing.
|
|
131
|
-
* @param lastItem the last item to pop off the stack.
|
|
132
|
-
* @param options Options that configure behavior on close.
|
|
133
|
-
*/
|
|
134
|
-
close(lastItem: MenuStackItem, options?: CloseOptions): void;
|
|
135
|
-
/**
|
|
136
|
-
* Pop items off of the stack up to but excluding `lastItem` and emit each on the close
|
|
137
|
-
* observable. If the stack is empty or `lastItem` is not on the stack it does nothing.
|
|
138
|
-
* @param lastItem the element which should be left on the stack
|
|
139
|
-
* @return whether or not an item was removed from the stack
|
|
140
|
-
*/
|
|
141
|
-
closeSubMenuOf(lastItem: MenuStackItem): boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Pop off all MenuStackItems and emit each one on the `close` observable one by one.
|
|
144
|
-
* @param options Options that configure behavior on close.
|
|
145
|
-
*/
|
|
146
|
-
closeAll(options?: CloseOptions): void;
|
|
147
|
-
/** Return true if this stack is empty. */
|
|
148
|
-
isEmpty(): boolean;
|
|
149
|
-
/** Return the length of the stack. */
|
|
150
|
-
length(): number;
|
|
151
|
-
/** Get the top most element on the stack. */
|
|
152
|
-
peek(): MenuStackItem | undefined;
|
|
153
|
-
/** Whether the menu stack is associated with an inline menu. */
|
|
154
|
-
hasInlineMenu(): boolean;
|
|
155
|
-
/** The orientation of the associated inline menu. */
|
|
156
|
-
inlineMenuOrientation(): "vertical" | "horizontal" | null;
|
|
157
|
-
/** Sets whether the menu stack contains the focused element. */
|
|
158
|
-
setHasFocus(hasFocus: boolean): void;
|
|
159
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuStack, never>;
|
|
160
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MenuStack>;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/** Injection token used to return classes implementing the Menu interface */
|
|
164
|
-
declare const CDK_MENU: InjectionToken<Menu>;
|
|
165
|
-
/** Interface which specifies Menu operations and used to break circular dependency issues */
|
|
166
|
-
interface Menu extends MenuStackItem {
|
|
167
|
-
/** The id of the menu's host element. */
|
|
168
|
-
id: string;
|
|
169
|
-
/** The menu's native DOM host element. */
|
|
170
|
-
nativeElement: HTMLElement;
|
|
171
|
-
/** The direction items in the menu flow. */
|
|
172
|
-
readonly orientation: 'horizontal' | 'vertical';
|
|
173
|
-
/** Place focus on the first MenuItem in the menu. */
|
|
174
|
-
focusFirstItem(focusOrigin: FocusOrigin): void;
|
|
175
|
-
/** Place focus on the last MenuItem in the menu. */
|
|
176
|
-
focusLastItem(focusOrigin: FocusOrigin): void;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* MenuAim is responsible for determining if a sibling menuitem's menu should be closed when a
|
|
181
|
-
* Toggler item is hovered into. It is up to the hovered in item to call the MenuAim service in
|
|
182
|
-
* order to determine if it may perform its close actions.
|
|
183
|
-
*/
|
|
184
|
-
interface MenuAim {
|
|
185
|
-
/**
|
|
186
|
-
* Set the Menu and its PointerFocusTracker.
|
|
187
|
-
* @param menu The menu that this menu aim service controls.
|
|
188
|
-
* @param pointerTracker The `PointerFocusTracker` for the given menu.
|
|
189
|
-
*/
|
|
190
|
-
initialize(menu: Menu, pointerTracker: PointerFocusTracker<FocusableElement & Toggler>): void;
|
|
191
|
-
/**
|
|
192
|
-
* Calls the `doToggle` callback when it is deemed that the user is not moving towards
|
|
193
|
-
* the submenu.
|
|
194
|
-
* @param doToggle the function called when the user is not moving towards the submenu.
|
|
195
|
-
*/
|
|
196
|
-
toggle(doToggle: () => void): void;
|
|
197
|
-
}
|
|
198
|
-
/** Injection token used for an implementation of MenuAim. */
|
|
199
|
-
declare const MENU_AIM: InjectionToken<MenuAim>;
|
|
200
|
-
/** An element which when hovered over may open or close a menu. */
|
|
201
|
-
interface Toggler {
|
|
202
|
-
/** Gets the open menu, or undefined if no menu is open. */
|
|
203
|
-
getMenu(): Menu | undefined;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* TargetMenuAim predicts if a user is moving into a submenu. It calculates the
|
|
207
|
-
* trajectory of the user's mouse movement in the current menu to determine if the
|
|
208
|
-
* mouse is moving towards an open submenu.
|
|
209
|
-
*
|
|
210
|
-
* The determination is made by calculating the slope of the users last NUM_POINTS moves where each
|
|
211
|
-
* pair of points determines if the trajectory line points into the submenu. It uses consensus
|
|
212
|
-
* approach by checking if at least NUM_POINTS / 2 pairs determine that the user is moving towards
|
|
213
|
-
* to submenu.
|
|
214
|
-
*/
|
|
215
|
-
declare class TargetMenuAim implements MenuAim, OnDestroy {
|
|
216
|
-
private readonly _ngZone;
|
|
217
|
-
private readonly _renderer;
|
|
218
|
-
private _cleanupMousemove;
|
|
219
|
-
/** The last NUM_POINTS mouse move events. */
|
|
220
|
-
private readonly _points;
|
|
221
|
-
/** Reference to the root menu in which we are tracking mouse moves. */
|
|
222
|
-
private _menu;
|
|
223
|
-
/** Reference to the root menu's mouse manager. */
|
|
224
|
-
private _pointerTracker;
|
|
225
|
-
/** The id associated with the current timeout call waiting to resolve. */
|
|
226
|
-
private _timeoutId;
|
|
227
|
-
/** Emits when this service is destroyed. */
|
|
228
|
-
private readonly _destroyed;
|
|
229
|
-
ngOnDestroy(): void;
|
|
230
|
-
/**
|
|
231
|
-
* Set the Menu and its PointerFocusTracker.
|
|
232
|
-
* @param menu The menu that this menu aim service controls.
|
|
233
|
-
* @param pointerTracker The `PointerFocusTracker` for the given menu.
|
|
234
|
-
*/
|
|
235
|
-
initialize(menu: Menu, pointerTracker: PointerFocusTracker<FocusableElement & Toggler>): void;
|
|
236
|
-
/**
|
|
237
|
-
* Calls the `doToggle` callback when it is deemed that the user is not moving towards
|
|
238
|
-
* the submenu.
|
|
239
|
-
* @param doToggle the function called when the user is not moving towards the submenu.
|
|
240
|
-
*/
|
|
241
|
-
toggle(doToggle: () => void): void;
|
|
242
|
-
/**
|
|
243
|
-
* Start the delayed toggle handler if one isn't running already.
|
|
244
|
-
*
|
|
245
|
-
* The delayed toggle handler executes the `doToggle` callback after some period of time iff the
|
|
246
|
-
* users mouse is on an item in the current menu.
|
|
247
|
-
*
|
|
248
|
-
* @param doToggle the function called when the user is not moving towards the submenu.
|
|
249
|
-
*/
|
|
250
|
-
private _startTimeout;
|
|
251
|
-
/** Whether the user is heading towards the open submenu. */
|
|
252
|
-
private _isMovingToSubmenu;
|
|
253
|
-
/** Get the bounding DOMRect for the open submenu. */
|
|
254
|
-
private _getSubmenuBounds;
|
|
255
|
-
/**
|
|
256
|
-
* Check if a reference to the PointerFocusTracker and menu element is provided.
|
|
257
|
-
* @throws an error if neither reference is provided.
|
|
258
|
-
*/
|
|
259
|
-
private _checkConfigured;
|
|
260
|
-
/** Subscribe to the root menus mouse move events and update the tracked mouse points. */
|
|
261
|
-
private _subscribeToMouseMoves;
|
|
262
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TargetMenuAim, never>;
|
|
263
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TargetMenuAim>;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* CdkTargetMenuAim is a provider for the TargetMenuAim service. It can be added to an
|
|
267
|
-
* element with either the `cdkMenu` or `cdkMenuBar` directive and child menu items.
|
|
268
|
-
*/
|
|
269
|
-
declare class CdkTargetMenuAim {
|
|
270
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkTargetMenuAim, never>;
|
|
271
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkTargetMenuAim, "[cdkTargetMenuAim]", ["cdkTargetMenuAim"], {}, {}, never, never, true, never>;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* A grouping container for `CdkMenuItemRadio` instances, similar to a `role="radiogroup"` element.
|
|
276
|
-
*/
|
|
277
|
-
declare class CdkMenuGroup {
|
|
278
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuGroup, never>;
|
|
279
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuGroup, "[cdkMenuGroup]", ["cdkMenuGroup"], {}, {}, never, never, true, never>;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/** Injection token used for an implementation of MenuStack. */
|
|
283
|
-
declare const MENU_TRIGGER: InjectionToken<CdkMenuTriggerBase>;
|
|
284
|
-
/** Injection token used to configure the behavior of the menu when the page is scrolled. */
|
|
285
|
-
declare const MENU_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
286
|
-
/**
|
|
287
|
-
* Abstract directive that implements shared logic common to all menu triggers.
|
|
288
|
-
* This class can be extended to create custom menu trigger types.
|
|
289
|
-
*/
|
|
290
|
-
declare abstract class CdkMenuTriggerBase implements OnDestroy {
|
|
291
|
-
/** The DI injector for this component. */
|
|
292
|
-
readonly injector: Injector;
|
|
293
|
-
/** The view container ref for this component */
|
|
294
|
-
protected readonly viewContainerRef: ViewContainerRef;
|
|
295
|
-
/** The menu stack in which this menu resides. */
|
|
296
|
-
protected readonly menuStack: MenuStack;
|
|
297
|
-
/** Function used to configure the scroll strategy for the menu. */
|
|
298
|
-
protected readonly menuScrollStrategy: () => ScrollStrategy;
|
|
299
|
-
/**
|
|
300
|
-
* A list of preferred menu positions to be used when constructing the
|
|
301
|
-
* `FlexibleConnectedPositionStrategy` for this trigger's menu.
|
|
302
|
-
*/
|
|
303
|
-
menuPosition: ConnectedPosition[];
|
|
304
|
-
/** Emits when the attached menu is requested to open */
|
|
305
|
-
readonly opened: EventEmitter<void>;
|
|
306
|
-
/** Emits when the attached menu is requested to close */
|
|
307
|
-
readonly closed: EventEmitter<void>;
|
|
308
|
-
/** Template reference variable to the menu this trigger opens */
|
|
309
|
-
menuTemplateRef: TemplateRef<unknown> | null;
|
|
310
|
-
/** Context data to be passed along to the menu template */
|
|
311
|
-
menuData: unknown;
|
|
312
|
-
/** A reference to the overlay which manages the triggered menu */
|
|
313
|
-
protected overlayRef: OverlayRef | null;
|
|
314
|
-
/** Emits when this trigger is destroyed. */
|
|
315
|
-
protected readonly destroyed: Subject<void>;
|
|
316
|
-
/** Emits when the outside pointer events listener on the overlay should be stopped. */
|
|
317
|
-
protected readonly stopOutsideClicksListener: rxjs.Observable<void>;
|
|
318
|
-
/** The child menu opened by this trigger. */
|
|
319
|
-
protected childMenu?: Menu;
|
|
320
|
-
/** The content of the menu panel opened by this trigger. */
|
|
321
|
-
private _menuPortal;
|
|
322
|
-
/** The injector to use for the child menu opened by this trigger. */
|
|
323
|
-
private _childMenuInjector?;
|
|
324
|
-
ngOnDestroy(): void;
|
|
325
|
-
/** Whether the attached menu is open. */
|
|
326
|
-
isOpen(): boolean;
|
|
327
|
-
/** Registers a child menu as having been opened by this trigger. */
|
|
328
|
-
registerChildMenu(child: Menu): void;
|
|
329
|
-
/**
|
|
330
|
-
* Get the portal to be attached to the overlay which contains the menu. Allows for the menu
|
|
331
|
-
* content to change dynamically and be reflected in the application.
|
|
332
|
-
*/
|
|
333
|
-
protected getMenuContentPortal(): TemplatePortal<any>;
|
|
334
|
-
/**
|
|
335
|
-
* Whether the given element is inside the scope of this trigger's menu stack.
|
|
336
|
-
* @param element The element to check.
|
|
337
|
-
* @return Whether the element is inside the scope of this trigger's menu stack.
|
|
338
|
-
*/
|
|
339
|
-
protected isElementInsideMenuStack(element: Element): boolean;
|
|
340
|
-
/** Destroy and unset the overlay reference it if exists */
|
|
341
|
-
private _destroyOverlay;
|
|
342
|
-
/** Gets the injector to use when creating a child menu. */
|
|
343
|
-
private _getChildMenuInjector;
|
|
344
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuTriggerBase, never>;
|
|
345
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuTriggerBase, never, never, {}, {}, never, never, true, never>;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* A directive that turns its host element into a trigger for a popup menu.
|
|
350
|
-
* It can be combined with cdkMenuItem to create sub-menus. If the element is in a top level
|
|
351
|
-
* MenuBar it will open the menu on click, or if a sibling is already opened it will open on hover.
|
|
352
|
-
* If it is inside of a Menu it will open the attached Submenu on hover regardless of its sibling
|
|
353
|
-
* state.
|
|
354
|
-
*/
|
|
355
|
-
declare class CdkMenuTrigger extends CdkMenuTriggerBase implements OnChanges, OnDestroy {
|
|
356
|
-
private readonly _elementRef;
|
|
357
|
-
private readonly _overlay;
|
|
358
|
-
private readonly _ngZone;
|
|
359
|
-
private readonly _changeDetectorRef;
|
|
360
|
-
private readonly _inputModalityDetector;
|
|
361
|
-
private readonly _directionality;
|
|
362
|
-
private readonly _renderer;
|
|
363
|
-
private _cleanupMouseenter;
|
|
364
|
-
/** The parent menu this trigger belongs to. */
|
|
365
|
-
private readonly _parentMenu;
|
|
366
|
-
/** The menu aim service used by this menu. */
|
|
367
|
-
private readonly _menuAim;
|
|
368
|
-
constructor();
|
|
369
|
-
/** Toggle the attached menu. */
|
|
370
|
-
toggle(): void;
|
|
371
|
-
/** Open the attached menu. */
|
|
372
|
-
open(): void;
|
|
373
|
-
/** Close the opened menu. */
|
|
374
|
-
close(): void;
|
|
375
|
-
/**
|
|
376
|
-
* Get a reference to the rendered Menu if the Menu is open and rendered in the DOM.
|
|
377
|
-
*/
|
|
378
|
-
getMenu(): Menu | undefined;
|
|
379
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
380
|
-
ngOnDestroy(): void;
|
|
381
|
-
/**
|
|
382
|
-
* Handles keyboard events for the menu item.
|
|
383
|
-
* @param event The keyboard event to handle
|
|
384
|
-
*/
|
|
385
|
-
_toggleOnKeydown(event: KeyboardEvent): void;
|
|
386
|
-
/** Handles clicks on the menu trigger. */
|
|
387
|
-
_handleClick(): void;
|
|
388
|
-
/**
|
|
389
|
-
* Sets whether the trigger's menu stack has focus.
|
|
390
|
-
* @param hasFocus Whether the menu stack has focus.
|
|
391
|
-
*/
|
|
392
|
-
_setHasFocus(hasFocus: boolean): void;
|
|
393
|
-
/**
|
|
394
|
-
* Subscribe to the mouseenter events and close any sibling menu items if this element is moused
|
|
395
|
-
* into.
|
|
396
|
-
*/
|
|
397
|
-
private _subscribeToMouseEnter;
|
|
398
|
-
/** Close out any sibling menu trigger menus. */
|
|
399
|
-
private _closeSiblingTriggers;
|
|
400
|
-
/** Get the configuration object used to create the overlay. */
|
|
401
|
-
private _getOverlayConfig;
|
|
402
|
-
/** Build the position strategy for the overlay which specifies where to place the menu. */
|
|
403
|
-
private _getOverlayPositionStrategy;
|
|
404
|
-
/** Get the preferred positions for the opened menu relative to the menu item. */
|
|
405
|
-
private _getOverlayPositions;
|
|
406
|
-
/**
|
|
407
|
-
* Subscribe to the MenuStack close events if this is a standalone trigger and close out the menu
|
|
408
|
-
* this triggers when requested.
|
|
409
|
-
*/
|
|
410
|
-
private _registerCloseHandler;
|
|
411
|
-
/**
|
|
412
|
-
* Subscribe to the overlays outside pointer events stream and handle closing out the stack if a
|
|
413
|
-
* click occurs outside the menus.
|
|
414
|
-
*/
|
|
415
|
-
private _subscribeToOutsideClicks;
|
|
416
|
-
/** Subscribe to the MenuStack hasFocus events. */
|
|
417
|
-
private _subscribeToMenuStackHasFocus;
|
|
418
|
-
/** Subscribe to the MenuStack closed events. */
|
|
419
|
-
private _subscribeToMenuStackClosed;
|
|
420
|
-
/** Sets the role attribute for this trigger if needed. */
|
|
421
|
-
private _setRole;
|
|
422
|
-
/** Sets thte `type` attribute of the trigger. */
|
|
423
|
-
private _setType;
|
|
424
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuTrigger, never>;
|
|
425
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuTrigger, "[cdkMenuTriggerFor]", ["cdkMenuTriggerFor"], { "menuTemplateRef": { "alias": "cdkMenuTriggerFor"; "required": false; }; "menuPosition": { "alias": "cdkMenuPosition"; "required": false; }; "menuData": { "alias": "cdkMenuTriggerData"; "required": false; }; }, { "opened": "cdkMenuOpened"; "closed": "cdkMenuClosed"; }, never, never, true, never>;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Directive which provides the ability for an element to be focused and navigated to using the
|
|
430
|
-
* keyboard when residing in a CdkMenu, CdkMenuBar, or CdkMenuGroup. It performs user defined
|
|
431
|
-
* behavior when clicked.
|
|
432
|
-
*/
|
|
433
|
-
declare class CdkMenuItem implements FocusableOption, FocusableElement, Toggler, OnDestroy {
|
|
434
|
-
protected readonly _dir: Directionality | null;
|
|
435
|
-
readonly _elementRef: ElementRef<HTMLElement>;
|
|
436
|
-
protected _ngZone: NgZone;
|
|
437
|
-
private readonly _inputModalityDetector;
|
|
438
|
-
private readonly _renderer;
|
|
439
|
-
private _cleanupMouseEnter;
|
|
440
|
-
/** The menu aim service used by this menu. */
|
|
441
|
-
private readonly _menuAim;
|
|
442
|
-
/** The stack of menus this menu belongs to. */
|
|
443
|
-
private readonly _menuStack;
|
|
444
|
-
/** The parent menu in which this menuitem resides. */
|
|
445
|
-
private readonly _parentMenu;
|
|
446
|
-
/** Reference to the CdkMenuItemTrigger directive if one is added to the same element */
|
|
447
|
-
private readonly _menuTrigger;
|
|
448
|
-
/** Whether the CdkMenuItem is disabled - defaults to false */
|
|
449
|
-
disabled: boolean;
|
|
450
|
-
/**
|
|
451
|
-
* The text used to locate this item during menu typeahead. If not specified,
|
|
452
|
-
* the `textContent` of the item will be used.
|
|
453
|
-
*/
|
|
454
|
-
typeaheadLabel: string | null;
|
|
455
|
-
/**
|
|
456
|
-
* If this MenuItem is a regular MenuItem, outputs when it is triggered by a keyboard or mouse
|
|
457
|
-
* event.
|
|
458
|
-
*/
|
|
459
|
-
readonly triggered: EventEmitter<void>;
|
|
460
|
-
/** Whether the menu item opens a menu. */
|
|
461
|
-
get hasMenu(): boolean;
|
|
462
|
-
/**
|
|
463
|
-
* The tabindex for this menu item managed internally and used for implementing roving a
|
|
464
|
-
* tab index.
|
|
465
|
-
*/
|
|
466
|
-
_tabindex: 0 | -1;
|
|
467
|
-
/** Whether the item should close the menu if triggered by the spacebar. */
|
|
468
|
-
protected closeOnSpacebarTrigger: boolean;
|
|
469
|
-
/** Emits when the menu item is destroyed. */
|
|
470
|
-
protected readonly destroyed: Subject<void>;
|
|
471
|
-
constructor();
|
|
472
|
-
ngOnDestroy(): void;
|
|
473
|
-
/** Place focus on the element. */
|
|
474
|
-
focus(): void;
|
|
475
|
-
/**
|
|
476
|
-
* If the menu item is not disabled and the element does not have a menu trigger attached, emit
|
|
477
|
-
* on the cdkMenuItemTriggered emitter and close all open menus.
|
|
478
|
-
* @param options Options the configure how the item is triggered
|
|
479
|
-
* - keepOpen: specifies that the menu should be kept open after triggering the item.
|
|
480
|
-
*/
|
|
481
|
-
trigger(options?: {
|
|
482
|
-
keepOpen: boolean;
|
|
483
|
-
}): void;
|
|
484
|
-
/** Return true if this MenuItem has an attached menu and it is open. */
|
|
485
|
-
isMenuOpen(): boolean;
|
|
486
|
-
/**
|
|
487
|
-
* Get a reference to the rendered Menu if the Menu is open and it is visible in the DOM.
|
|
488
|
-
* @return the menu if it is open, otherwise undefined.
|
|
489
|
-
*/
|
|
490
|
-
getMenu(): Menu | undefined;
|
|
491
|
-
/** Get the CdkMenuTrigger associated with this element. */
|
|
492
|
-
getMenuTrigger(): CdkMenuTrigger | null;
|
|
493
|
-
/** Get the label for this element which is required by the FocusableOption interface. */
|
|
494
|
-
getLabel(): string;
|
|
495
|
-
/** Reset the tabindex to -1. */
|
|
496
|
-
_resetTabIndex(): void;
|
|
497
|
-
/**
|
|
498
|
-
* Set the tab index to 0 if not disabled and it's a focus event, or a mouse enter if this element
|
|
499
|
-
* is not in a menu bar.
|
|
500
|
-
*/
|
|
501
|
-
_setTabIndex(event?: MouseEvent): void;
|
|
502
|
-
/**
|
|
503
|
-
* Handles keyboard events for the menu item, specifically either triggering the user defined
|
|
504
|
-
* callback or opening/closing the current menu based on whether the left or right arrow key was
|
|
505
|
-
* pressed.
|
|
506
|
-
* @param event the keyboard event to handle
|
|
507
|
-
*/
|
|
508
|
-
_onKeydown(event: KeyboardEvent): void;
|
|
509
|
-
/** Whether this menu item is standalone or within a menu or menu bar. */
|
|
510
|
-
private _isStandaloneItem;
|
|
511
|
-
/**
|
|
512
|
-
* Handles the user pressing the back arrow key.
|
|
513
|
-
* @param event The keyboard event.
|
|
514
|
-
*/
|
|
515
|
-
private _backArrowPressed;
|
|
516
|
-
/**
|
|
517
|
-
* Handles the user pressing the forward arrow key.
|
|
518
|
-
* @param event The keyboard event.
|
|
519
|
-
*/
|
|
520
|
-
private _forwardArrowPressed;
|
|
521
|
-
/**
|
|
522
|
-
* Subscribe to the mouseenter events and close any sibling menu items if this element is moused
|
|
523
|
-
* into.
|
|
524
|
-
*/
|
|
525
|
-
private _setupMouseEnter;
|
|
526
|
-
/**
|
|
527
|
-
* Return true if the enclosing parent menu is configured in a horizontal orientation, false
|
|
528
|
-
* otherwise or if no parent.
|
|
529
|
-
*/
|
|
530
|
-
private _isParentVertical;
|
|
531
|
-
/** Sets the `type` attribute of the menu item. */
|
|
532
|
-
private _setType;
|
|
533
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItem, never>;
|
|
534
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItem, "[cdkMenuItem]", ["cdkMenuItem"], { "disabled": { "alias": "cdkMenuItemDisabled"; "required": false; }; "typeaheadLabel": { "alias": "cdkMenuitemTypeaheadLabel"; "required": false; }; }, { "triggered": "cdkMenuItemTriggered"; }, never, never, true, never>;
|
|
535
|
-
static ngAcceptInputType_disabled: unknown;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* Abstract directive that implements shared logic common to all menus.
|
|
540
|
-
* This class can be extended to create custom menu types.
|
|
541
|
-
*/
|
|
542
|
-
declare abstract class CdkMenuBase extends CdkMenuGroup implements Menu, AfterContentInit, OnDestroy {
|
|
543
|
-
private _focusMonitor;
|
|
544
|
-
protected ngZone: NgZone;
|
|
545
|
-
private _renderer;
|
|
546
|
-
/** The menu's native DOM host element. */
|
|
547
|
-
readonly nativeElement: HTMLElement;
|
|
548
|
-
/** The stack of menus this menu belongs to. */
|
|
549
|
-
readonly menuStack: MenuStack;
|
|
550
|
-
/** The menu aim service used by this menu. */
|
|
551
|
-
protected readonly menuAim: MenuAim | null;
|
|
552
|
-
/** The directionality (text direction) of the current page. */
|
|
553
|
-
protected readonly dir: Directionality | null;
|
|
554
|
-
/** The id of the menu's host element. */
|
|
555
|
-
id: string;
|
|
556
|
-
/** All child MenuItem elements nested in this Menu. */
|
|
557
|
-
readonly items: QueryList<CdkMenuItem>;
|
|
558
|
-
/** The direction items in the menu flow. */
|
|
559
|
-
orientation: 'horizontal' | 'vertical';
|
|
560
|
-
/**
|
|
561
|
-
* Whether the menu is displayed inline (i.e. always present vs a conditional popup that the
|
|
562
|
-
* user triggers with a trigger element).
|
|
563
|
-
*/
|
|
564
|
-
isInline: boolean;
|
|
565
|
-
/** Handles keyboard events for the menu. */
|
|
566
|
-
protected keyManager: FocusKeyManager<CdkMenuItem>;
|
|
567
|
-
/** Emits when the MenuBar is destroyed. */
|
|
568
|
-
protected readonly destroyed: Subject<void>;
|
|
569
|
-
/** The Menu Item which triggered the open submenu. */
|
|
570
|
-
protected triggerItem?: CdkMenuItem;
|
|
571
|
-
/** Tracks the users mouse movements over the menu. */
|
|
572
|
-
protected pointerTracker?: PointerFocusTracker<CdkMenuItem>;
|
|
573
|
-
/** Whether this menu's menu stack has focus. */
|
|
574
|
-
private _menuStackHasFocus;
|
|
575
|
-
private _tabIndexSignal;
|
|
576
|
-
ngAfterContentInit(): void;
|
|
577
|
-
ngOnDestroy(): void;
|
|
578
|
-
/**
|
|
579
|
-
* Place focus on the first MenuItem in the menu and set the focus origin.
|
|
580
|
-
* @param focusOrigin The origin input mode of the focus event.
|
|
581
|
-
*/
|
|
582
|
-
focusFirstItem(focusOrigin?: FocusOrigin): void;
|
|
583
|
-
/**
|
|
584
|
-
* Place focus on the last MenuItem in the menu and set the focus origin.
|
|
585
|
-
* @param focusOrigin The origin input mode of the focus event.
|
|
586
|
-
*/
|
|
587
|
-
focusLastItem(focusOrigin?: FocusOrigin): void;
|
|
588
|
-
/** Gets the tabindex for this menu. */
|
|
589
|
-
_getTabIndex(): 0 | -1 | null;
|
|
590
|
-
/**
|
|
591
|
-
* Close the open menu if the current active item opened the requested MenuStackItem.
|
|
592
|
-
* @param menu The menu requested to be closed.
|
|
593
|
-
* @param options Options to configure the behavior on close.
|
|
594
|
-
* - `focusParentTrigger` Whether to focus the parent trigger after closing the menu.
|
|
595
|
-
*/
|
|
596
|
-
protected closeOpenMenu(menu: MenuStackItem, options?: {
|
|
597
|
-
focusParentTrigger?: boolean;
|
|
598
|
-
}): void;
|
|
599
|
-
/** Setup the FocusKeyManager with the correct orientation for the menu. */
|
|
600
|
-
private _setKeyManager;
|
|
601
|
-
/**
|
|
602
|
-
* Subscribe to the menu trigger's open events in order to track the trigger which opened the menu
|
|
603
|
-
* and stop tracking it when the menu is closed.
|
|
604
|
-
*/
|
|
605
|
-
private _subscribeToMenuOpen;
|
|
606
|
-
/** Subscribe to the MenuStack close events. */
|
|
607
|
-
private _subscribeToMenuStackClosed;
|
|
608
|
-
/** Subscribe to the MenuStack hasFocus events. */
|
|
609
|
-
private _subscribeToMenuStackHasFocus;
|
|
610
|
-
/**
|
|
611
|
-
* Set the PointerFocusTracker and ensure that when mouse focus changes the key manager is updated
|
|
612
|
-
* with the latest menu item under mouse focus.
|
|
613
|
-
*/
|
|
614
|
-
private _setUpPointerTracker;
|
|
615
|
-
/** Handles focus landing on the host element of the menu. */
|
|
616
|
-
private _handleFocus;
|
|
617
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuBase, never>;
|
|
618
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuBase, never, never, { "id": { "alias": "id"; "required": false; }; }, {}, ["items"], never, true, never>;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
/**
|
|
622
|
-
* Directive applied to an element which configures it as a MenuBar by setting the appropriate
|
|
623
|
-
* role, aria attributes, and accessible keyboard and mouse handling logic. The component that
|
|
624
|
-
* this directive is applied to should contain components marked with CdkMenuItem.
|
|
625
|
-
*
|
|
626
|
-
*/
|
|
627
|
-
declare class CdkMenuBar extends CdkMenuBase implements AfterContentInit {
|
|
628
|
-
/** The direction items in the menu flow. */
|
|
629
|
-
readonly orientation = "horizontal";
|
|
630
|
-
/** Whether the menu is displayed inline (i.e. always present vs a conditional popup that the user triggers with a trigger element). */
|
|
631
|
-
readonly isInline = true;
|
|
632
|
-
ngAfterContentInit(): void;
|
|
633
|
-
/**
|
|
634
|
-
* Handle keyboard events for the Menu.
|
|
635
|
-
* @param event The keyboard event to be handled.
|
|
636
|
-
*/
|
|
637
|
-
_handleKeyEvent(event: KeyboardEvent): void;
|
|
638
|
-
/**
|
|
639
|
-
* Set focus to either the current, previous or next item based on the FocusNext event, then
|
|
640
|
-
* open the previous or next item.
|
|
641
|
-
* @param focusNext The element to focus.
|
|
642
|
-
*/
|
|
643
|
-
private _toggleOpenMenu;
|
|
644
|
-
/** Subscribe to the MenuStack emptied events. */
|
|
645
|
-
private _subscribeToMenuStackEmptied;
|
|
646
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuBar, never>;
|
|
647
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuBar, "[cdkMenuBar]", ["cdkMenuBar"], {}, {}, never, never, true, never>;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
/**
|
|
651
|
-
* Directive which configures the element as a Menu which should contain child elements marked as
|
|
652
|
-
* CdkMenuItem or CdkMenuGroup. Sets the appropriate role and aria-attributes for a menu and
|
|
653
|
-
* contains accessible keyboard and mouse handling logic.
|
|
654
|
-
*
|
|
655
|
-
* It also acts as a RadioGroup for elements marked with role `menuitemradio`.
|
|
656
|
-
*/
|
|
657
|
-
declare class CdkMenu extends CdkMenuBase implements AfterContentInit, OnDestroy {
|
|
658
|
-
private _parentTrigger;
|
|
659
|
-
/** Event emitted when the menu is closed. */
|
|
660
|
-
readonly closed: EventEmitter<void>;
|
|
661
|
-
/** The direction items in the menu flow. */
|
|
662
|
-
readonly orientation = "vertical";
|
|
663
|
-
/** Whether the menu is displayed inline (i.e. always present vs a conditional popup that the user triggers with a trigger element). */
|
|
664
|
-
readonly isInline: boolean;
|
|
665
|
-
constructor();
|
|
666
|
-
ngAfterContentInit(): void;
|
|
667
|
-
ngOnDestroy(): void;
|
|
668
|
-
/**
|
|
669
|
-
* Handle keyboard events for the Menu.
|
|
670
|
-
* @param event The keyboard event to be handled.
|
|
671
|
-
*/
|
|
672
|
-
_handleKeyEvent(event: KeyboardEvent): void;
|
|
673
|
-
/**
|
|
674
|
-
* Set focus the either the current, previous or next item based on the FocusNext event.
|
|
675
|
-
* @param focusNext The element to focus.
|
|
676
|
-
*/
|
|
677
|
-
private _toggleMenuFocus;
|
|
678
|
-
/** Subscribe to the MenuStack emptied events. */
|
|
679
|
-
private _subscribeToMenuStackEmptied;
|
|
680
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenu, never>;
|
|
681
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenu, "[cdkMenu]", ["cdkMenu"], {}, { "closed": "closed"; }, never, never, true, never>;
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
/** Base class providing checked state for selectable MenuItems. */
|
|
685
|
-
declare abstract class CdkMenuItemSelectable extends CdkMenuItem {
|
|
686
|
-
/** Whether the element is checked */
|
|
687
|
-
checked: boolean;
|
|
688
|
-
/** Whether the item should close the menu if triggered by the spacebar. */
|
|
689
|
-
protected closeOnSpacebarTrigger: boolean;
|
|
690
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemSelectable, never>;
|
|
691
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemSelectable, never, never, { "checked": { "alias": "cdkMenuItemChecked"; "required": false; }; }, {}, never, never, true, never>;
|
|
692
|
-
static ngAcceptInputType_checked: unknown;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* A directive providing behavior for the "menuitemradio" ARIA role, which behaves similarly to
|
|
697
|
-
* a conventional radio-button. Any sibling `CdkMenuItemRadio` instances within the same `CdkMenu`
|
|
698
|
-
* or `CdkMenuGroup` comprise a radio group with unique selection enforced.
|
|
699
|
-
*/
|
|
700
|
-
declare class CdkMenuItemRadio extends CdkMenuItemSelectable implements OnDestroy {
|
|
701
|
-
/** The unique selection dispatcher for this radio's `CdkMenuGroup`. */
|
|
702
|
-
private readonly _selectionDispatcher;
|
|
703
|
-
/** An ID to identify this radio item to the `UniqueSelectionDispatcher`. */
|
|
704
|
-
private _id;
|
|
705
|
-
/** Function to unregister the selection dispatcher */
|
|
706
|
-
private _removeDispatcherListener;
|
|
707
|
-
constructor();
|
|
708
|
-
ngOnDestroy(): void;
|
|
709
|
-
/**
|
|
710
|
-
* Toggles the checked state of the radio-button.
|
|
711
|
-
* @param options Options the configure how the item is triggered
|
|
712
|
-
* - keepOpen: specifies that the menu should be kept open after triggering the item.
|
|
713
|
-
*/
|
|
714
|
-
trigger(options?: {
|
|
715
|
-
keepOpen: boolean;
|
|
716
|
-
}): void;
|
|
717
|
-
/** Configure the unique selection dispatcher listener in order to toggle the checked state */
|
|
718
|
-
private _registerDispatcherListener;
|
|
719
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemRadio, never>;
|
|
720
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemRadio, "[cdkMenuItemRadio]", ["cdkMenuItemRadio"], {}, {}, never, never, true, never>;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* A directive providing behavior for the "menuitemcheckbox" ARIA role, which behaves similarly to a
|
|
725
|
-
* conventional checkbox.
|
|
726
|
-
*/
|
|
727
|
-
declare class CdkMenuItemCheckbox extends CdkMenuItemSelectable {
|
|
728
|
-
/**
|
|
729
|
-
* Toggle the checked state of the checkbox.
|
|
730
|
-
* @param options Options the configure how the item is triggered
|
|
731
|
-
* - keepOpen: specifies that the menu should be kept open after triggering the item.
|
|
732
|
-
*/
|
|
733
|
-
trigger(options?: {
|
|
734
|
-
keepOpen: boolean;
|
|
735
|
-
}): void;
|
|
736
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuItemCheckbox, never>;
|
|
737
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkMenuItemCheckbox, "[cdkMenuItemCheckbox]", ["cdkMenuItemCheckbox"], {}, {}, never, never, true, never>;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/** Tracks the last open context menu trigger across the entire application. */
|
|
741
|
-
declare class ContextMenuTracker {
|
|
742
|
-
/** The last open context menu trigger. */
|
|
743
|
-
private static _openContextMenuTrigger?;
|
|
744
|
-
/**
|
|
745
|
-
* Close the previous open context menu and set the given one as being open.
|
|
746
|
-
* @param trigger The trigger for the currently open Context Menu.
|
|
747
|
-
*/
|
|
748
|
-
update(trigger: CdkContextMenuTrigger): void;
|
|
749
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextMenuTracker, never>;
|
|
750
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ContextMenuTracker>;
|
|
751
|
-
}
|
|
752
|
-
/** The coordinates where the context menu should open. */
|
|
753
|
-
type ContextMenuCoordinates = {
|
|
754
|
-
x: number;
|
|
755
|
-
y: number;
|
|
756
|
-
};
|
|
757
|
-
/**
|
|
758
|
-
* A directive that opens a menu when a user right-clicks within its host element.
|
|
759
|
-
* It is aware of nested context menus and will trigger only the lowest level non-disabled context menu.
|
|
760
|
-
*/
|
|
761
|
-
declare class CdkContextMenuTrigger extends CdkMenuTriggerBase implements OnDestroy {
|
|
762
|
-
/** The CDK overlay service. */
|
|
763
|
-
private readonly _overlay;
|
|
764
|
-
/** The directionality of the page. */
|
|
765
|
-
private readonly _directionality;
|
|
766
|
-
/** The app's context menu tracking registry */
|
|
767
|
-
private readonly _contextMenuTracker;
|
|
768
|
-
private readonly _changeDetectorRef;
|
|
769
|
-
/** Whether the context menu is disabled. */
|
|
770
|
-
disabled: boolean;
|
|
771
|
-
constructor();
|
|
772
|
-
/**
|
|
773
|
-
* Open the attached menu at the specified location.
|
|
774
|
-
* @param coordinates where to open the context menu
|
|
775
|
-
*/
|
|
776
|
-
open(coordinates: ContextMenuCoordinates): void;
|
|
777
|
-
/** Close the currently opened context menu. */
|
|
778
|
-
close(): void;
|
|
779
|
-
/**
|
|
780
|
-
* Open the context menu and closes any previously open menus.
|
|
781
|
-
* @param event the mouse event which opens the context menu.
|
|
782
|
-
*/
|
|
783
|
-
_openOnContextMenu(event: MouseEvent): void;
|
|
784
|
-
/**
|
|
785
|
-
* Get the configuration object used to create the overlay.
|
|
786
|
-
* @param coordinates the location to place the opened menu
|
|
787
|
-
*/
|
|
788
|
-
private _getOverlayConfig;
|
|
789
|
-
/**
|
|
790
|
-
* Get the position strategy for the overlay which specifies where to place the menu.
|
|
791
|
-
* @param coordinates the location to place the opened menu
|
|
792
|
-
*/
|
|
793
|
-
private _getOverlayPositionStrategy;
|
|
794
|
-
/** Subscribe to the menu stack close events and close this menu when requested. */
|
|
795
|
-
private _setMenuStackCloseListener;
|
|
796
|
-
/**
|
|
797
|
-
* Subscribe to the overlays outside pointer events stream and handle closing out the stack if a
|
|
798
|
-
* click occurs outside the menus.
|
|
799
|
-
* @param userEvent User-generated event that opened the menu.
|
|
800
|
-
*/
|
|
801
|
-
private _subscribeToOutsideClicks;
|
|
802
|
-
/**
|
|
803
|
-
* Open the attached menu at the specified location.
|
|
804
|
-
* @param userEvent User-generated event that opened the menu
|
|
805
|
-
* @param coordinates where to open the context menu
|
|
806
|
-
*/
|
|
807
|
-
private _open;
|
|
808
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkContextMenuTrigger, never>;
|
|
809
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkContextMenuTrigger, "[cdkContextMenuTriggerFor]", ["cdkContextMenuTriggerFor"], { "menuTemplateRef": { "alias": "cdkContextMenuTriggerFor"; "required": false; }; "menuPosition": { "alias": "cdkContextMenuPosition"; "required": false; }; "menuData": { "alias": "cdkContextMenuTriggerData"; "required": false; }; "disabled": { "alias": "cdkContextMenuDisabled"; "required": false; }; }, { "opened": "cdkContextMenuOpened"; "closed": "cdkContextMenuClosed"; }, never, never, true, never>;
|
|
810
|
-
static ngAcceptInputType_disabled: unknown;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
/** Module that declares components and directives for the CDK menu. */
|
|
814
|
-
declare class CdkMenuModule {
|
|
815
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkMenuModule, never>;
|
|
816
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CdkMenuModule, never, [typeof OverlayModule, typeof CdkMenuBar, typeof CdkMenu, typeof CdkMenuItem, typeof CdkMenuItemRadio, typeof CdkMenuItemCheckbox, typeof CdkMenuTrigger, typeof CdkMenuGroup, typeof CdkContextMenuTrigger, typeof CdkTargetMenuAim], [typeof CdkMenuBar, typeof CdkMenu, typeof CdkMenuItem, typeof CdkMenuItemRadio, typeof CdkMenuItemCheckbox, typeof CdkMenuTrigger, typeof CdkMenuGroup, typeof CdkContextMenuTrigger, typeof CdkTargetMenuAim]>;
|
|
817
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CdkMenuModule>;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
export { CDK_MENU, CdkContextMenuTrigger, CdkMenu, CdkMenuBar, CdkMenuBase, CdkMenuGroup, CdkMenuItem, CdkMenuItemCheckbox, CdkMenuItemRadio, CdkMenuItemSelectable, CdkMenuModule, CdkMenuTrigger, CdkMenuTriggerBase, CdkTargetMenuAim, ContextMenuTracker, FocusNext, MENU_AIM, MENU_SCROLL_STRATEGY, MENU_STACK, MENU_TRIGGER, MenuStack, PARENT_OR_NEW_INLINE_MENU_STACK_PROVIDER, PARENT_OR_NEW_MENU_STACK_PROVIDER, PointerFocusTracker, TargetMenuAim };
|
|
821
|
-
export type { CloseOptions, ContextMenuCoordinates, FocusableElement, Menu, MenuAim, MenuStackCloseEvent, MenuStackItem, Toggler };
|