@aurodesignsystem-dev/auro-formkit 0.0.0-pr1167.1 → 0.0.0-pr1167.2
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/components/datepicker/demo/api.md +11 -49
- package/components/datepicker/demo/api.min.js +1 -3
- package/components/datepicker/demo/index.min.js +1 -3
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -1
- package/components/datepicker/dist/index.js +1 -3
- package/components/datepicker/dist/registered.js +1 -3
- package/package.json +1 -1
|
@@ -75,18 +75,17 @@
|
|
|
75
75
|
|
|
76
76
|
## Slots
|
|
77
77
|
|
|
78
|
-
| Name
|
|
79
|
-
|
|
80
|
-
| `ariaLabel.bib.close`
|
|
81
|
-
| `ariaLabel.input.clear`
|
|
82
|
-
| `
|
|
83
|
-
| `bib.fullscreen.
|
|
84
|
-
| `
|
|
85
|
-
|
|
|
86
|
-
| [
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
| [toLabel](#toLabel) | Defines the label content for the second input when the `range` attribute is used. |
|
|
78
|
+
| Name | Description |
|
|
79
|
+
|----------------------------|--------------------------------------------------|
|
|
80
|
+
| `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
|
|
81
|
+
| `ariaLabel.input.clear` | Sets aria-label on clear button |
|
|
82
|
+
| `bib.fullscreen.dateLabel` | Defines the content to display above selected dates in the mobile layout. |
|
|
83
|
+
| `bib.fullscreen.headline` | Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout. |
|
|
84
|
+
| `date_MM_DD_YYYY` | Defines the content to display in the auro-calendar-cell for the specified date. The content text is colored using the success state token when the `highlight` attribute is applied to the slot. |
|
|
85
|
+
| [fromLabel](#fromLabel) | Defines the label content for the first input. |
|
|
86
|
+
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
87
|
+
| `popover_MM_DD_YYYY` | Defines the content to display in the auro-calendar-cell popover for the specified date. |
|
|
88
|
+
| [toLabel](#toLabel) | Defines the label content for the second input when the `range` attribute is used. |
|
|
90
89
|
|
|
91
90
|
## CSS Shadow Parts
|
|
92
91
|
|
|
@@ -1106,43 +1105,6 @@ Use the `ariaLabel.input.clear` slot to set the `aria-label` for the clear butto
|
|
|
1106
1105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1107
1106
|
</auro-accordion>
|
|
1108
1107
|
|
|
1109
|
-
#### ariaLabel.input.clear.range
|
|
1110
|
-
|
|
1111
|
-
In the `classic` layout with the `range` attribute, use the `ariaLabel.input.clear.range` slot to set the `aria-label` for the clear button in the return date input. This slot is ignored in all other configurations. Otherwise, the `ariaLabel.input.clear` slot is used for both clear buttons.
|
|
1112
|
-
|
|
1113
|
-
<div class="exampleWrapper">
|
|
1114
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/ariaLabelInputClearRange.html) -->
|
|
1115
|
-
<!-- The below content is automatically added from ./../apiExamples/ariaLabelInputClearRange.html -->
|
|
1116
|
-
<auro-datepicker range>
|
|
1117
|
-
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
1118
|
-
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
1119
|
-
<span slot="fromLabel">Choose a date</span>
|
|
1120
|
-
<span slot="toLabel">Choose a return date</span>
|
|
1121
|
-
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
1122
|
-
<span slot="ariaLabel.input.clear">Custom Clear Input Button</span>
|
|
1123
|
-
<span slot="ariaLabel.input.clear.range">Return Date Clear Input Button</span>
|
|
1124
|
-
</auro-datepicker>
|
|
1125
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1126
|
-
</div>
|
|
1127
|
-
<auro-accordion alignRight>
|
|
1128
|
-
<span slot="trigger">See code</span>
|
|
1129
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/ariaLabelInputClearRange.html) -->
|
|
1130
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/ariaLabelInputClearRange.html -->
|
|
1131
|
-
|
|
1132
|
-
```html
|
|
1133
|
-
<auro-datepicker range>
|
|
1134
|
-
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
1135
|
-
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
1136
|
-
<span slot="fromLabel">Choose a date</span>
|
|
1137
|
-
<span slot="toLabel">Choose a return date</span>
|
|
1138
|
-
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
1139
|
-
<span slot="ariaLabel.input.clear">Custom Clear Input Button</span>
|
|
1140
|
-
<span slot="ariaLabel.input.clear.range">Return Date Clear Input Button</span>
|
|
1141
|
-
</auro-datepicker>
|
|
1142
|
-
```
|
|
1143
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1144
|
-
</auro-accordion>
|
|
1145
|
-
|
|
1146
1108
|
#### Date Slot
|
|
1147
1109
|
|
|
1148
1110
|
Custom content can be added to any day in the calendar using a `slot` named following the pattern `date_{MM}_{DD}_{YYYY}` (e.g. `date_01_08_2024`).
|
|
@@ -25377,7 +25377,6 @@ var iconVersion = '8.0.1';
|
|
|
25377
25377
|
* @slot helpText - Defines the content of the helpText.
|
|
25378
25378
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
25379
25379
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
25380
|
-
* @slot ariaLabel.input.clear.range - Sets aria-label on clear button for return date input in `layout="classic"` ONLY.
|
|
25381
25380
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
25382
25381
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
25383
25382
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -26990,7 +26989,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
26990
26989
|
`
|
|
26991
26990
|
: undefined
|
|
26992
26991
|
}
|
|
26993
|
-
<span slot="ariaLabel.clear">${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear
|
|
26992
|
+
<span slot="ariaLabel.clear">${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || i18n(this.lang, 'clearInput')}</span>
|
|
26994
26993
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
26995
26994
|
</${this.inputTag}>
|
|
26996
26995
|
</div>
|
|
@@ -27142,7 +27141,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27142
27141
|
return u$6`
|
|
27143
27142
|
<!-- Hidden slot for clear button aria-label -->
|
|
27144
27143
|
<slot name="ariaLabel.input.clear" hidden @slotchange=${this.requestUpdate}></slot>
|
|
27145
|
-
<slot name="ariaLabel.input.clear.range" hidden @slotchange=${this.requestUpdate}></slot>
|
|
27146
27144
|
|
|
27147
27145
|
<${this.dropdownTag}
|
|
27148
27146
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -25118,7 +25118,6 @@ var iconVersion = '8.0.1';
|
|
|
25118
25118
|
* @slot helpText - Defines the content of the helpText.
|
|
25119
25119
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
25120
25120
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
25121
|
-
* @slot ariaLabel.input.clear.range - Sets aria-label on clear button for return date input in `layout="classic"` ONLY.
|
|
25122
25121
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
25123
25122
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
25124
25123
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -26731,7 +26730,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
26731
26730
|
`
|
|
26732
26731
|
: undefined
|
|
26733
26732
|
}
|
|
26734
|
-
<span slot="ariaLabel.clear">${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear
|
|
26733
|
+
<span slot="ariaLabel.clear">${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || i18n(this.lang, 'clearInput')}</span>
|
|
26735
26734
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
26736
26735
|
</${this.inputTag}>
|
|
26737
26736
|
</div>
|
|
@@ -26883,7 +26882,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
26883
26882
|
return u$6`
|
|
26884
26883
|
<!-- Hidden slot for clear button aria-label -->
|
|
26885
26884
|
<slot name="ariaLabel.input.clear" hidden @slotchange=${this.requestUpdate}></slot>
|
|
26886
|
-
<slot name="ariaLabel.input.clear.range" hidden @slotchange=${this.requestUpdate}></slot>
|
|
26887
26885
|
|
|
26888
26886
|
<${this.dropdownTag}
|
|
26889
26887
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
* @slot helpText - Defines the content of the helpText.
|
|
3
3
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
4
4
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
5
|
-
* @slot ariaLabel.input.clear.range - Sets aria-label on clear button for return date input in `layout="classic"` ONLY.
|
|
6
5
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
7
6
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
8
7
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -25043,7 +25043,6 @@ var iconVersion = '8.0.1';
|
|
|
25043
25043
|
* @slot helpText - Defines the content of the helpText.
|
|
25044
25044
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
25045
25045
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
25046
|
-
* @slot ariaLabel.input.clear.range - Sets aria-label on clear button for return date input in `layout="classic"` ONLY.
|
|
25047
25046
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
25048
25047
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
25049
25048
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -26656,7 +26655,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
26656
26655
|
`
|
|
26657
26656
|
: undefined
|
|
26658
26657
|
}
|
|
26659
|
-
<span slot="ariaLabel.clear">${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear
|
|
26658
|
+
<span slot="ariaLabel.clear">${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || i18n(this.lang, 'clearInput')}</span>
|
|
26660
26659
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
26661
26660
|
</${this.inputTag}>
|
|
26662
26661
|
</div>
|
|
@@ -26808,7 +26807,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
26808
26807
|
return html$1`
|
|
26809
26808
|
<!-- Hidden slot for clear button aria-label -->
|
|
26810
26809
|
<slot name="ariaLabel.input.clear" hidden @slotchange=${this.requestUpdate}></slot>
|
|
26811
|
-
<slot name="ariaLabel.input.clear.range" hidden @slotchange=${this.requestUpdate}></slot>
|
|
26812
26810
|
|
|
26813
26811
|
<${this.dropdownTag}
|
|
26814
26812
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -25043,7 +25043,6 @@ var iconVersion = '8.0.1';
|
|
|
25043
25043
|
* @slot helpText - Defines the content of the helpText.
|
|
25044
25044
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
25045
25045
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
25046
|
-
* @slot ariaLabel.input.clear.range - Sets aria-label on clear button for return date input in `layout="classic"` ONLY.
|
|
25047
25046
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
25048
25047
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
25049
25048
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -26656,7 +26655,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
26656
26655
|
`
|
|
26657
26656
|
: undefined
|
|
26658
26657
|
}
|
|
26659
|
-
<span slot="ariaLabel.clear">${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear
|
|
26658
|
+
<span slot="ariaLabel.clear">${this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || this.runtimeUtils.getSlotText(this, 'ariaLabel.input.clear') || i18n(this.lang, 'clearInput')}</span>
|
|
26660
26659
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
26661
26660
|
</${this.inputTag}>
|
|
26662
26661
|
</div>
|
|
@@ -26808,7 +26807,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
26808
26807
|
return html$1`
|
|
26809
26808
|
<!-- Hidden slot for clear button aria-label -->
|
|
26810
26809
|
<slot name="ariaLabel.input.clear" hidden @slotchange=${this.requestUpdate}></slot>
|
|
26811
|
-
<slot name="ariaLabel.input.clear.range" hidden @slotchange=${this.requestUpdate}></slot>
|
|
26812
26810
|
|
|
26813
26811
|
<${this.dropdownTag}
|
|
26814
26812
|
?autoPlacement="${this.autoPlacement}"
|
package/package.json
CHANGED