* @class * * ### Overview * * The `ui5-date-picker` component provides an input field with assigned calendar which opens on user action. * The `ui5-date-picker` allows users to select a localized date using touch, * mouse, or keyboard input. It consists of two parts: the date input field and t
| 181 | */ |
| 182 | |
| 183 | @customElement({ |
| 184 | tag: "ui5-date-picker", |
| 185 | languageAware: true, |
| 186 | formAssociated: true, |
| 187 | template: DatePickerTemplate, |
| 188 | styles: [ |
| 189 | datePickerCss, |
| 190 | ResponsivePopoverCommonCss, |
| 191 | datePickerPopoverCss, |
| 192 | ValueStateMessageCss, |
| 193 | ], |
| 194 | }) |
| 195 | /** |
| 196 | * Fired when the input operation has finished by pressing Enter or on focusout. |
| 197 | * @public |
| 198 | * @param {string} value The submitted value. |
| 199 | * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range. |
| 200 | */ |
| 201 | @event("change", { |
| 202 | bubbles: true, |
| 203 | cancelable: true, |
| 204 | }) |
| 205 | /** |
| 206 | * Fired when the value of the component is changed at each key stroke. |
| 207 | * @public |
| 208 | * @param {string} value The submitted value. |
| 209 | * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range. |
| 210 | */ |
| 211 | @event("input", { |
| 212 | bubbles: true, |
| 213 | cancelable: true, |
| 214 | }) |
| 215 | /** |
| 216 | * Fired before the value state of the component is updated internally. |
| 217 | * The event is preventable, meaning that if it's default action is |
| 218 | * prevented, the component will not update the value state. |
| 219 | * @public |
| 220 | * @param {string} valueState The new `valueState` that will be set. |
| 221 | * @param {boolean} valid Indicator if the value is in correct format pattern and in valid range. |
| 222 | */ |
| 223 | @event("value-state-change", { |
| 224 | bubbles: true, |
| 225 | cancelable: true, |
| 226 | }) |
| 227 | /** |
| 228 | * Fired after the component's picker is opened. |
| 229 | * @since 2.4.0 |
| 230 | * @public |
| 231 | */ |
| 232 | @event("open") |
| 233 | /** |
| 234 | * Fired after the component's picker is closed. |
| 235 | * @since 2.4.0 |
| 236 | * @public |
| 237 | */ |
| 238 | @event("close") |
| 239 | class DatePicker extends DateComponentBase implements IFormInputElement { |
| 240 | eventDetails!: DateComponentBase["eventDetails"] & { |