-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(material/legacy-datepicker): add legacy datepicker
Adds a legacy version of the datepicker that uses the legacy versions of components internally.
- Loading branch information
Showing
48 changed files
with
1,938 additions
and
195 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
load("//tools:defaults.bzl", "ng_module", "sass_binary") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
ng_module( | ||
name = "legacy-datepicker", | ||
srcs = glob(["**/*.ts"]), | ||
assets = [ | ||
"legacy-datepicker-demo.html", | ||
"custom-header.html", | ||
":legacy-datepicker_demo_scss", | ||
":custom_header_scss", | ||
], | ||
deps = [ | ||
"//src/material/icon", | ||
"//src/material/legacy-button", | ||
"//src/material/legacy-checkbox", | ||
"//src/material/legacy-core", | ||
"//src/material/legacy-datepicker", | ||
"//src/material/legacy-form-field", | ||
"//src/material/legacy-input", | ||
"//src/material/legacy-select", | ||
], | ||
) | ||
|
||
sass_binary( | ||
name = "legacy-datepicker_demo_scss", | ||
src = "legacy-datepicker-demo.scss", | ||
deps = [ | ||
"//:mdc_sass_lib", | ||
"//src/material:sass_lib", | ||
], | ||
) | ||
|
||
sass_binary( | ||
name = "custom_header_scss", | ||
src = "custom-header.scss", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="demo-calendar-header"> | ||
<button mat-icon-button (click)="previousClicked('year')"> | ||
<mat-icon>keyboard_double_arrow_left</mat-icon> | ||
</button> | ||
<button mat-icon-button (click)="previousClicked('month')"> | ||
<mat-icon>keyboard_arrow_left</mat-icon> | ||
</button> | ||
<span class="demo-calendar-header-label">{{periodLabel}}</span> | ||
<button mat-icon-button (click)="nextClicked('month')"> | ||
<mat-icon>keyboard_arrow_right</mat-icon> | ||
</button> | ||
<button mat-icon-button (click)="nextClicked('year')"> | ||
<mat-icon>keyboard_double_arrow_right</mat-icon> | ||
</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.demo-calendar-header { | ||
display: flex; | ||
align-items: center; | ||
padding: 0.5em; | ||
} | ||
|
||
.demo-calendar-header-label { | ||
flex: 1; | ||
height: 1em; | ||
font-weight: bold; | ||
text-align: center; | ||
} |
Oops, something went wrong.