Skip to content

Commit 17188ec

Browse files
committed
main - 34bcffb fix(material/timepicker): make it easier to style timepicker panel (#32711)
1 parent b268535 commit 17188ec

4 files changed

Lines changed: 30 additions & 17 deletions

File tree

docs-content/api-docs/material-timepicker.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,19 @@ <h4 id="MatTimepicker" class="docs-header-link docs-api-h4 docs-api-class-name">
189189

190190

191191

192+
<tr class="docs-api-properties-row">
193+
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
194+
<code>panelClass: <code class="docs-api-property-type">input&lt;string | string[]&gt;()</code></code>
195+
</p>
196+
</td>
197+
<td class="docs-api-property-description"><p>Classes to be passed to the timepicker panel.</p>
198+
</td>
199+
</tr>
200+
201+
202+
203+
204+
192205
<tr class="docs-api-properties-row">
193206
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
194207
<code>panelId: <code class="docs-api-property-type">string</code></code>

fesm2022/material-timepicker.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class TimepickerOverviewExample {
6868
kind: "component",
6969
type: i3.MatTimepicker,
7070
selector: "mat-timepicker",
71-
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"],
71+
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"],
7272
outputs: ["selected", "opened", "closed"],
7373
exportAs: ["matTimepicker"]
7474
}, {
@@ -163,7 +163,7 @@ class TimepickerFormsExample {
163163
kind: "component",
164164
type: i3.MatTimepicker,
165165
selector: "mat-timepicker",
166-
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"],
166+
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"],
167167
outputs: ["selected", "opened", "closed"],
168168
exportAs: ["matTimepicker"]
169169
}, {
@@ -273,7 +273,7 @@ class TimepickerDatepickerIntegrationExample {
273273
kind: "component",
274274
type: i3.MatTimepicker,
275275
selector: "mat-timepicker",
276-
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"],
276+
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"],
277277
outputs: ["selected", "opened", "closed"],
278278
exportAs: ["matTimepicker"]
279279
}, {
@@ -408,7 +408,7 @@ class TimepickerValidationExample {
408408
kind: "component",
409409
type: i3.MatTimepicker,
410410
selector: "mat-timepicker",
411-
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"],
411+
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"],
412412
outputs: ["selected", "opened", "closed"],
413413
exportAs: ["matTimepicker"]
414414
}, {
@@ -530,7 +530,7 @@ class TimepickerOptionsExample {
530530
kind: "component",
531531
type: i3.MatTimepicker,
532532
selector: "mat-timepicker",
533-
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"],
533+
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"],
534534
outputs: ["selected", "opened", "closed"],
535535
exportAs: ["matTimepicker"]
536536
}, {
@@ -619,7 +619,7 @@ class TimepickerCustomIconExample {
619619
kind: "component",
620620
type: i3.MatTimepicker,
621621
selector: "mat-timepicker",
622-
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"],
622+
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"],
623623
outputs: ["selected", "opened", "closed"],
624624
exportAs: ["matTimepicker"]
625625
}, {
@@ -719,7 +719,7 @@ class TimepickerLocaleExample {
719719
kind: "component",
720720
type: i3.MatTimepicker,
721721
selector: "mat-timepicker",
722-
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"],
722+
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"],
723723
outputs: ["selected", "opened", "closed"],
724724
exportAs: ["matTimepicker"]
725725
}, {
@@ -815,7 +815,7 @@ class TimepickerHarnessExample {
815815
kind: "component",
816816
type: i3.MatTimepicker,
817817
selector: "mat-timepicker",
818-
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby"],
818+
inputs: ["interval", "options", "disableRipple", "aria-label", "aria-labelledby", "panelClass"],
819819
outputs: ["selected", "opened", "closed"],
820820
exportAs: ["matTimepicker"]
821821
}, {

fesm2022/material-timepicker.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/components-examples",
3-
"version": "21.2.0-next.1+sha-0395ca2",
3+
"version": "21.2.0-next.1+sha-34bcffb",
44
"description": "Angular Components Examples",
55
"private": true,
66
"repository": {
@@ -255,15 +255,15 @@
255255
},
256256
"homepage": "https://github.com/angular/components#readme",
257257
"peerDependencies": {
258-
"@angular/aria": "21.2.0-next.1+sha-0395ca2",
259-
"@angular/cdk": "21.2.0-next.1+sha-0395ca2",
260-
"@angular/cdk-experimental": "21.2.0-next.1+sha-0395ca2",
258+
"@angular/aria": "21.2.0-next.1+sha-34bcffb",
259+
"@angular/cdk": "21.2.0-next.1+sha-34bcffb",
260+
"@angular/cdk-experimental": "21.2.0-next.1+sha-34bcffb",
261261
"@angular/core": "^21.0.0-0 || ^21.1.0-0 || ^21.2.0-0 || ^21.3.0-0 || ^22.0.0-0",
262262
"@angular/common": "^21.0.0-0 || ^21.1.0-0 || ^21.2.0-0 || ^21.3.0-0 || ^22.0.0-0",
263-
"@angular/material": "21.2.0-next.1+sha-0395ca2",
264-
"@angular/material-experimental": "21.2.0-next.1+sha-0395ca2",
265-
"@angular/material-luxon-adapter": "21.2.0-next.1+sha-0395ca2",
266-
"@angular/material-date-fns-adapter": "21.2.0-next.1+sha-0395ca2"
263+
"@angular/material": "21.2.0-next.1+sha-34bcffb",
264+
"@angular/material-experimental": "21.2.0-next.1+sha-34bcffb",
265+
"@angular/material-luxon-adapter": "21.2.0-next.1+sha-34bcffb",
266+
"@angular/material-date-fns-adapter": "21.2.0-next.1+sha-34bcffb"
267267
},
268268
"devDependencies": {
269269
"@angular/aria": "workspace:*",

0 commit comments

Comments
 (0)