Skip to content

feat(cdk-experimental/menu): Add menu skeleton and build scripts - #19583

Merged
andrewseguin merged 24 commits into
angular:masterfrom
andy9775:cdk-menu-setup
Jun 12, 2020
Merged

feat(cdk-experimental/menu): Add menu skeleton and build scripts#19583
andrewseguin merged 24 commits into
angular:masterfrom
andy9775:cdk-menu-setup

Conversation

@andy9775

@andy9775 andy9775 commented Jun 9, 2020

Copy link
Copy Markdown
Contributor

Add a skeleton for a new set of directives which implement the Menu and MenuBar pattern in cdk-experimental along with configuring the dev-app for it.

andy9775 added 2 commits June 9, 2020 19:48
Configure bazel scripts for a cdk menu feature along with the general
structure identifying the set of directives which make it up
Configure dev-app for cdk-experimental/menu
@andy9775
andy9775 requested a review from a team June 9, 2020 23:58
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 9, 2020
A CdkMenuItem opens a CdkMenuPanel and therefore must reference it.
A CdkMenuPanel contains a CdkMenu and therefore must reference it.
A CdkMenu contains CdkMenuItem's and therefore must reference it.
Comment thread src/cdk-experimental/menu/menu-bar.ts
Comment thread src/cdk-experimental/menu/menu-bar.ts Outdated
Comment thread src/cdk-experimental/menu/menu-bar.ts Outdated
Comment thread src/cdk-experimental/menu/menu-group.ts Outdated
Comment thread src/cdk-experimental/menu/menu-group.ts Outdated
Comment thread src/cdk-experimental/menu/menu-group.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread goldens/ts-circular-deps.json
Comment thread src/cdk-experimental/menu/BUILD.bazel Outdated
Comment thread src/cdk-experimental/menu/menu-bar.ts
Comment thread src/cdk-experimental/menu/menu-bar.ts Outdated
Comment thread .github/CODEOWNERS Outdated
Comment thread goldens/ts-circular-deps.json
Move from material-experimental section to cdk-experimental
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu-bar.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu-panel.ts
Comment thread src/cdk-experimental/menu/menu.ts Outdated
Comment thread .github/CODEOWNERS Outdated
Comment thread goldens/ts-circular-deps.json
Comment thread src/cdk-experimental/menu/menu-bar.ts Outdated
Comment thread src/cdk-experimental/menu/menu-group.ts Outdated
Comment thread src/cdk-experimental/menu/menu-group.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
Comment thread src/cdk-experimental/menu/menu.md Outdated
@@ -0,0 +1,23 @@
<ul cdkMenuBar class="example-menu-bar">
<li role="none"><button id="file_button" [cdkMenuTriggerFor]="file">File</button></li>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this PR, but at some point I want to sit down and think about the way we're using lists with the menu and see if we could do something simpler

andy9775 added 3 commits June 11, 2020 11:36
hasSubmenu specifies that it refers  to the menu it opens and not its
parent
@andy9775

Copy link
Copy Markdown
Contributor Author

@jelbourn all feedback should be addressed now

@jelbourn jelbourn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM aside from one small comment

Comment thread src/cdk-experimental/menu/menu-item.ts Outdated
@jelbourn jelbourn added lgtm target: patch This PR is targeted for the next patch release labels Jun 11, 2020
@jelbourn jelbourn added action: merge The PR is ready for merge by the caretaker merge safe labels Jun 11, 2020
@andrewseguin
andrewseguin merged commit c7cadc3 into angular:master Jun 12, 2020
andrewseguin pushed a commit that referenced this pull request Jun 12, 2020
)

* feat(cdk-experimental/menu): Add menu skeleton and build scripts

Configure bazel scripts for a cdk menu feature along with the general
structure identifying the set of directives which make it up

* feat(cdk-experimental/menu): Configure dev-app

Configure dev-app for cdk-experimental/menu

* build: Allow indirect  circular dependency between menu and menu-item

A CdkMenuItem opens a CdkMenuPanel and therefore must reference it.
A CdkMenuPanel contains a CdkMenu and therefore must reference it.
A CdkMenu contains CdkMenuItem's and therefore must reference it.

* feat(cdk-experimental/menu): Quote all host keys

* feat(cdk-experimental/menu): Add missing aria-attributes

* feat(cdk-experimental/menu): Clear up CdkMenuItem comment

* feat(cdk-experimental/menu): Remove unused build dep

* feat(cdk-experimental/menu): Fix codeowners

Move from material-experimental section to cdk-experimental

* feat(cdk-experimental/menu): Grammer fix

* feat(cdk-experimental/menu): explicitly specify the return when null and boolean

* feat(cdk-experimental/menu): Clear up documentation/comments

* feat(cdk-experimental/menu): Make cdkMenuOrientation comment more clear

* feat(cdk-experimental/menu): Make orientation attribute public for consistency

* feat(cdk-experimental/menu): Remove unnecessary comment for role binding

* feat(cdk-experimental/menu): Fix orientation attribute on host binding typo

* feat(cdk-experimental/menu): Refactor `orientation` property comment for clarity

* feat(cdk-experimental/menu): Refactor event emitter types

Emitters self complete when used with @output

* feat(cdk-experimental/menu): Remove documentation to be added once feature is complete

* feat(cdk-experimental/menu): Rename opensMenu method

hasSubmenu specifies that it refers  to the menu it opens and not its
parent

* feat(cdk-experimental/menu): Use getter function not property for
aria-checked

Getter property generates more code than a getter function - prefer to
use a function.

* feat(cdk-experimental/menu): refactor MenuGroup doc for clarity

* feat(cdk-experimental/menu): add @jelbourn to CODEOWNERS for cdk-experimental/menu

* feat(cdk-experimental/menu): coerce MenuItem checked state to boolean

* feat(cdk-experimental/menu): nit: rename val to value
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jul 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants