@aurodesignsystem-dev/auro-formkit 0.0.0-pr1001.0
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/CHANGELOG.md +5 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +314 -0
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +50 -0
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
- package/components/bibtemplate/dist/index.d.ts +2 -0
- package/components/bibtemplate/dist/index.js +1940 -0
- package/components/bibtemplate/dist/registered.js +1940 -0
- package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
- package/components/checkbox/README.md +142 -0
- package/components/checkbox/demo/api.html +61 -0
- package/components/checkbox/demo/api.js +17 -0
- package/components/checkbox/demo/api.md +436 -0
- package/components/checkbox/demo/api.min.js +1870 -0
- package/components/checkbox/demo/index.html +57 -0
- package/components/checkbox/demo/index.js +8 -0
- package/components/checkbox/demo/index.md +327 -0
- package/components/checkbox/demo/index.min.js +1845 -0
- package/components/checkbox/demo/readme.html +57 -0
- package/components/checkbox/demo/readme.md +142 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +166 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +136 -0
- package/components/checkbox/dist/helptextVersion.d.ts +2 -0
- package/components/checkbox/dist/index.d.ts +3 -0
- package/components/checkbox/dist/index.js +1794 -0
- package/components/checkbox/dist/registered.js +1795 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
- package/components/checkbox/dist/styles/color-css.d.ts +2 -0
- package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
- package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
- package/components/combobox/README.md +154 -0
- package/components/combobox/demo/api.html +63 -0
- package/components/combobox/demo/api.js +36 -0
- package/components/combobox/demo/api.md +1326 -0
- package/components/combobox/demo/api.min.js +18691 -0
- package/components/combobox/demo/index.html +63 -0
- package/components/combobox/demo/index.js +26 -0
- package/components/combobox/demo/index.md +725 -0
- package/components/combobox/demo/index.min.js +18545 -0
- package/components/combobox/demo/readme.html +57 -0
- package/components/combobox/demo/readme.md +154 -0
- package/components/combobox/dist/auro-combobox.d.ts +434 -0
- package/components/combobox/dist/bibtemplateVersion.d.ts +2 -0
- package/components/combobox/dist/dropdownVersion.d.ts +2 -0
- package/components/combobox/dist/index.d.ts +2 -0
- package/components/combobox/dist/index.js +16999 -0
- package/components/combobox/dist/inputVersion.d.ts +2 -0
- package/components/combobox/dist/registered.js +17001 -0
- package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/combobox/dist/styles/style-css.d.ts +2 -0
- package/components/counter/README.md +146 -0
- package/components/counter/demo/api.html +61 -0
- package/components/counter/demo/api.js +20 -0
- package/components/counter/demo/api.md +730 -0
- package/components/counter/demo/api.min.js +10406 -0
- package/components/counter/demo/index.html +61 -0
- package/components/counter/demo/index.js +21 -0
- package/components/counter/demo/index.md +401 -0
- package/components/counter/demo/index.min.js +10370 -0
- package/components/counter/demo/readme.html +57 -0
- package/components/counter/demo/readme.md +146 -0
- package/components/counter/dist/auro-counter-button.d.ts +14 -0
- package/components/counter/dist/auro-counter-group.d.ts +386 -0
- package/components/counter/dist/auro-counter-wrapper.d.ts +22 -0
- package/components/counter/dist/auro-counter.d.ts +113 -0
- package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
- package/components/counter/dist/dropdownVersion.d.ts +2 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +2 -0
- package/components/counter/dist/index.d.ts +3 -0
- package/components/counter/dist/index.js +10313 -0
- package/components/counter/dist/registered.js +10314 -0
- package/components/counter/dist/styles/color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
- package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/counter/dist/styles/style-css.d.ts +2 -0
- package/components/counter/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/README.md +141 -0
- package/components/datepicker/demo/api.html +63 -0
- package/components/datepicker/demo/api.js +35 -0
- package/components/datepicker/demo/api.md +1529 -0
- package/components/datepicker/demo/api.min.js +29755 -0
- package/components/datepicker/demo/index.html +62 -0
- package/components/datepicker/demo/index.js +19 -0
- package/components/datepicker/demo/index.md +204 -0
- package/components/datepicker/demo/index.min.js +29476 -0
- package/components/datepicker/demo/readme.html +57 -0
- package/components/datepicker/demo/readme.md +141 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts +163 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
- package/components/datepicker/dist/auro-calendar.d.ts +133 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +625 -0
- package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.d.ts +2 -0
- package/components/datepicker/dist/index.js +29406 -0
- package/components/datepicker/dist/inputVersion.d.ts +2 -0
- package/components/datepicker/dist/popoverVersion.d.ts +2 -0
- package/components/datepicker/dist/registered.js +29406 -0
- package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
- package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/dist/utilities.d.ts +78 -0
- package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
- package/components/dropdown/README.md +144 -0
- package/components/dropdown/demo/api.html +63 -0
- package/components/dropdown/demo/api.js +21 -0
- package/components/dropdown/demo/api.md +1266 -0
- package/components/dropdown/demo/api.min.js +4442 -0
- package/components/dropdown/demo/index.html +61 -0
- package/components/dropdown/demo/index.js +19 -0
- package/components/dropdown/demo/index.md +337 -0
- package/components/dropdown/demo/index.min.js +4405 -0
- package/components/dropdown/demo/readme.html +57 -0
- package/components/dropdown/demo/readme.md +144 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +425 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +68 -0
- package/components/dropdown/dist/dropdownVersion.d.ts +2 -0
- package/components/dropdown/dist/helptextVersion.d.ts +2 -0
- package/components/dropdown/dist/iconVersion.d.ts +2 -0
- package/components/dropdown/dist/index.d.ts +2 -0
- package/components/dropdown/dist/index.js +4350 -0
- package/components/dropdown/dist/registered.js +4350 -0
- package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
- package/components/form/README.md +142 -0
- package/components/form/demo/api.html +56 -0
- package/components/form/demo/api.js +3 -0
- package/components/form/demo/api.md +51 -0
- package/components/form/demo/api.min.js +638 -0
- package/components/form/demo/autocomplete.html +31 -0
- package/components/form/demo/index.html +57 -0
- package/components/form/demo/index.js +4 -0
- package/components/form/demo/index.md +403 -0
- package/components/form/demo/index.min.js +639 -0
- package/components/form/demo/readme.html +57 -0
- package/components/form/demo/readme.md +142 -0
- package/components/form/demo/registerDemoDeps.js +23 -0
- package/components/form/demo/working.html +124 -0
- package/components/form/dist/auro-form.d.ts +223 -0
- package/components/form/dist/index.d.ts +2 -0
- package/components/form/dist/index.js +614 -0
- package/components/form/dist/registered.d.ts +1 -0
- package/components/form/dist/registered.js +614 -0
- package/components/form/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/auro-helptext.d.ts +59 -0
- package/components/helptext/dist/index.d.ts +2 -0
- package/components/helptext/dist/index.js +207 -0
- package/components/helptext/dist/registered.js +207 -0
- package/components/helptext/dist/styles/color-css.d.ts +2 -0
- package/components/helptext/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/README.md +139 -0
- package/components/input/demo/api.html +48 -0
- package/components/input/demo/api.js +29 -0
- package/components/input/demo/api.md +1366 -0
- package/components/input/demo/api.min.js +8542 -0
- package/components/input/demo/index.html +49 -0
- package/components/input/demo/index.js +20 -0
- package/components/input/demo/index.md +270 -0
- package/components/input/demo/index.min.js +8461 -0
- package/components/input/demo/readme.html +57 -0
- package/components/input/demo/readme.md +139 -0
- package/components/input/dist/auro-input.d.ts +167 -0
- package/components/input/dist/base-input.d.ts +566 -0
- package/components/input/dist/buttonVersion.d.ts +2 -0
- package/components/input/dist/helptextVersion.d.ts +2 -0
- package/components/input/dist/i18n.d.ts +18 -0
- package/components/input/dist/iconVersion.d.ts +2 -0
- package/components/input/dist/index.d.ts +2 -0
- package/components/input/dist/index.js +8367 -0
- package/components/input/dist/registered.js +8367 -0
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/input/dist/styles/style-css.d.ts +2 -0
- package/components/input/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/dist/utilities.d.ts +25 -0
- package/components/layoutElement/dist/auroElement.d.ts +34 -0
- package/components/layoutElement/dist/index.d.ts +2 -0
- package/components/layoutElement/dist/index.js +98 -0
- package/components/layoutElement/dist/registered.js +98 -0
- package/components/menu/README.md +145 -0
- package/components/menu/demo/api.html +62 -0
- package/components/menu/demo/api.js +27 -0
- package/components/menu/demo/api.md +1011 -0
- package/components/menu/demo/api.min.js +1762 -0
- package/components/menu/demo/index.html +58 -0
- package/components/menu/demo/index.js +28 -0
- package/components/menu/demo/index.md +61 -0
- package/components/menu/demo/index.min.js +1708 -0
- package/components/menu/demo/readme.html +57 -0
- package/components/menu/demo/readme.md +145 -0
- package/components/menu/dist/auro-menu-utils.d.ts +34 -0
- package/components/menu/dist/auro-menu.d.ts +246 -0
- package/components/menu/dist/auro-menuoption.d.ts +81 -0
- package/components/menu/dist/dropdownVersion.d.ts +2 -0
- package/components/menu/dist/iconVersion.d.ts +2 -0
- package/components/menu/dist/index.d.ts +4 -0
- package/components/menu/dist/index.js +1691 -0
- package/components/menu/dist/registered.js +1651 -0
- package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/README.md +137 -0
- package/components/radio/demo/api.html +59 -0
- package/components/radio/demo/api.js +19 -0
- package/components/radio/demo/api.md +602 -0
- package/components/radio/demo/api.min.js +1951 -0
- package/components/radio/demo/index.html +56 -0
- package/components/radio/demo/index.js +8 -0
- package/components/radio/demo/index.md +150 -0
- package/components/radio/demo/index.min.js +1908 -0
- package/components/radio/demo/readme.html +57 -0
- package/components/radio/demo/readme.md +137 -0
- package/components/radio/dist/auro-radio-group.d.ts +194 -0
- package/components/radio/dist/auro-radio.d.ts +147 -0
- package/components/radio/dist/helptextVersion.d.ts +2 -0
- package/components/radio/dist/index.d.ts +3 -0
- package/components/radio/dist/index.js +1857 -0
- package/components/radio/dist/registered.js +1858 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
- package/components/radio/dist/styles/color-css.d.ts +2 -0
- package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
- package/components/radio/dist/styles/style-css.d.ts +2 -0
- package/components/radio/dist/styles/tokens-css.d.ts +2 -0
- package/components/select/README.md +145 -0
- package/components/select/demo/api.html +77 -0
- package/components/select/demo/api.js +35 -0
- package/components/select/demo/api.md +1413 -0
- package/components/select/demo/api.min.js +10502 -0
- package/components/select/demo/index.html +73 -0
- package/components/select/demo/index.js +9 -0
- package/components/select/demo/index.md +1151 -0
- package/components/select/demo/index.min.js +10390 -0
- package/components/select/demo/readme.html +57 -0
- package/components/select/demo/readme.md +145 -0
- package/components/select/dist/auro-select.d.ts +512 -0
- package/components/select/dist/bibtemplateVersion.d.ts +2 -0
- package/components/select/dist/dropdownVersion.d.ts +2 -0
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.d.ts +2 -0
- package/components/select/dist/index.js +8898 -0
- package/components/select/dist/registered.js +8898 -0
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/style-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +218 -0
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot helpText - Defines the content of the helpText.
|
|
3
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
4
|
+
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
5
|
+
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
6
|
+
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
7
|
+
* @slot fromLabel - Defines the label content for the first input.
|
|
8
|
+
* @slot 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.
|
|
9
|
+
* @slot popover_MM_DD_YYYY - Defines the content to display in the auro-calendar-cell popover for the specified date.
|
|
10
|
+
* @csspart dropdown - Use for customizing the style of the dropdown.
|
|
11
|
+
* @csspart trigger - Use for customizing the style of the datepicker trigger.
|
|
12
|
+
* @csspart input - Use for customizing the style of the datepicker inputs.
|
|
13
|
+
* @csspart calendarWrapper - Use for customizing the style of the calendar container.
|
|
14
|
+
* @csspart calendar - Use for customizing the style of the calendar.
|
|
15
|
+
* @csspart helpTextSpan - Use for customizing the style of the datepicker help text span.
|
|
16
|
+
* @csspart helpText - Use for customizing the style of the datepicker help text.
|
|
17
|
+
* @event auroDatePicker-valueSet - Notifies that the component has a new value set.
|
|
18
|
+
* @event auroDatePicker-toggled - Notifies that the calendar dropdown has been opened/closed.
|
|
19
|
+
* @event auroDatePicker-monthChanged - Notifies that the visible calendar month(s) have changed.
|
|
20
|
+
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
21
|
+
* @event auroDatePicker-newSlotContent - Notifies that new slot content has been added to the datepicker.
|
|
22
|
+
*/
|
|
23
|
+
export class AuroDatePicker extends AuroElement {
|
|
24
|
+
static get properties(): {
|
|
25
|
+
/**
|
|
26
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
autoPlacement: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
reflect: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The last date that may be displayed in the calendar.
|
|
35
|
+
*/
|
|
36
|
+
calendarEndDate: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
reflect: boolean;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The date that will first be visually rendered to the user in the calendar.
|
|
42
|
+
*/
|
|
43
|
+
calendarFocusDate: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
reflect: boolean;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The first date that may be displayed in the calendar.
|
|
49
|
+
*/
|
|
50
|
+
calendarStartDate: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
reflect: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* The date that determines the currently visible month.
|
|
56
|
+
*/
|
|
57
|
+
centralDate: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* If set, disables the datepicker.
|
|
62
|
+
*/
|
|
63
|
+
disabled: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
reflect: boolean;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
69
|
+
*/
|
|
70
|
+
error: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
reflect: boolean;
|
|
73
|
+
};
|
|
74
|
+
hasFocus: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
reflect: boolean;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
81
|
+
hasValue: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
reflect: boolean;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Specifies the date format. The default is `mm/dd/yyyy`.
|
|
87
|
+
*/
|
|
88
|
+
format: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
reflect: boolean;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
94
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
95
|
+
*
|
|
96
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
97
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
98
|
+
* @default sm
|
|
99
|
+
*/
|
|
100
|
+
fullscreenBreakpoint: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
reflect: boolean;
|
|
103
|
+
};
|
|
104
|
+
/** Exposes inputmode attribute for input. */
|
|
105
|
+
inputmode: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
attribute: boolean;
|
|
108
|
+
reflect: boolean;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
112
|
+
* Otherwise, Heading 600.
|
|
113
|
+
*/
|
|
114
|
+
largeFullscreenHeadline: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
reflect: boolean;
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Maximum date. All dates after will be disabled.
|
|
120
|
+
*/
|
|
121
|
+
maxDate: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
reflect: boolean;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Minimum date. All dates before will be disabled.
|
|
127
|
+
*/
|
|
128
|
+
minDate: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
reflect: boolean;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Names of all 12 months to render in the calendar, used for localization of date string in mobile layout.
|
|
134
|
+
*/
|
|
135
|
+
monthNames: {
|
|
136
|
+
type: ArrayConstructor;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* @private
|
|
140
|
+
*/
|
|
141
|
+
monthFirst: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* If declared, the bib will NOT flip to an alternate position
|
|
146
|
+
* when there isn't enough space in the specified `placement`.
|
|
147
|
+
* @default false
|
|
148
|
+
*/
|
|
149
|
+
noFlip: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
reflect: boolean;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* If set, disables auto-validation on blur.
|
|
155
|
+
*/
|
|
156
|
+
noValidate: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
reflect: boolean;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Gap between the trigger element and bib.
|
|
162
|
+
* @default 0
|
|
163
|
+
*/
|
|
164
|
+
offset: {
|
|
165
|
+
type: NumberConstructor;
|
|
166
|
+
reflect: boolean;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* If declared, onDark styles will be applied to the trigger.
|
|
170
|
+
*/
|
|
171
|
+
onDark: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
reflect: boolean;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Placeholder text to display in the input(s) when no value is set.
|
|
177
|
+
*/
|
|
178
|
+
placeholder: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
reflect: boolean;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Optional placeholder text to display in the second input when using date range.
|
|
184
|
+
* By default, datepicker will use `placeholder` for both inputs if placeholder is
|
|
185
|
+
* specified, but placeholderendDate is not.
|
|
186
|
+
*/
|
|
187
|
+
placeholderEndDate: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
reflect: boolean;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Position where the bib should appear relative to the trigger.
|
|
193
|
+
* Accepted values:
|
|
194
|
+
* "top" | "right" | "bottom" | "left" |
|
|
195
|
+
* "bottom-start" | "top-start" | "top-end" |
|
|
196
|
+
* "right-start" | "right-end" | "bottom-end" |
|
|
197
|
+
* "left-start" | "left-end"
|
|
198
|
+
* @default bottom-start
|
|
199
|
+
*/
|
|
200
|
+
placement: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
reflect: boolean;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* If set, turns on date range functionality in auro-calendar.
|
|
206
|
+
*/
|
|
207
|
+
range: {
|
|
208
|
+
type: BooleanConstructor;
|
|
209
|
+
reflect: boolean;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
213
|
+
*/
|
|
214
|
+
required: {
|
|
215
|
+
type: BooleanConstructor;
|
|
216
|
+
reflect: boolean;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Sets a custom help text message to display for all validityStates.
|
|
220
|
+
*/
|
|
221
|
+
setCustomValidity: {
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Custom help text message to display when validity = `customError`.
|
|
226
|
+
*/
|
|
227
|
+
setCustomValidityCustomError: {
|
|
228
|
+
type: StringConstructor;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
232
|
+
*/
|
|
233
|
+
setCustomValidityRangeOverflow: {
|
|
234
|
+
type: StringConstructor;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
238
|
+
*/
|
|
239
|
+
setCustomValidityRangeUnderflow: {
|
|
240
|
+
type: StringConstructor;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
244
|
+
*/
|
|
245
|
+
setCustomValidityValueMissing: {
|
|
246
|
+
type: StringConstructor;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Set true to make datepicker stacked style.
|
|
250
|
+
*/
|
|
251
|
+
stacked: {
|
|
252
|
+
type: BooleanConstructor;
|
|
253
|
+
reflect: boolean;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Specifies the `validityState` this element is in.
|
|
257
|
+
*/
|
|
258
|
+
validity: {
|
|
259
|
+
type: StringConstructor;
|
|
260
|
+
reflect: boolean;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Value selected for the datepicker.
|
|
264
|
+
*/
|
|
265
|
+
value: {
|
|
266
|
+
type: StringConstructor;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Value selected for the second datepicker when using date range.
|
|
270
|
+
*/
|
|
271
|
+
valueEnd: {
|
|
272
|
+
type: StringConstructor;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Indicates whether the datepicker is in a dirty state (has been interacted with).
|
|
276
|
+
* @type {boolean}
|
|
277
|
+
* @default false
|
|
278
|
+
* @private
|
|
279
|
+
*/
|
|
280
|
+
touched: boolean;
|
|
281
|
+
};
|
|
282
|
+
static get styles(): import("lit").CSSResult[];
|
|
283
|
+
/**
|
|
284
|
+
* This will register this element with the browser.
|
|
285
|
+
* @param {string} [name="auro-datepicker"] - The name of element that you want to register to.
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
* AuroDatePicker.register("custom-datepicker") // this will register this element to <custom-datepicker/>
|
|
289
|
+
*
|
|
290
|
+
*/
|
|
291
|
+
static register(name?: string): void;
|
|
292
|
+
/**
|
|
293
|
+
* @private
|
|
294
|
+
*/
|
|
295
|
+
private util;
|
|
296
|
+
/**
|
|
297
|
+
* @private
|
|
298
|
+
*/
|
|
299
|
+
private calendarRenderUtil;
|
|
300
|
+
formattedStartDate: boolean;
|
|
301
|
+
touched: boolean;
|
|
302
|
+
disabled: boolean;
|
|
303
|
+
required: boolean;
|
|
304
|
+
onDark: boolean;
|
|
305
|
+
range: boolean;
|
|
306
|
+
stacked: boolean;
|
|
307
|
+
noValidate: boolean;
|
|
308
|
+
validity: any;
|
|
309
|
+
value: any;
|
|
310
|
+
valueEnd: any;
|
|
311
|
+
calendarStartDate: any;
|
|
312
|
+
calendarEndDate: any;
|
|
313
|
+
calendarFocusDate: any;
|
|
314
|
+
format: string;
|
|
315
|
+
fullscreenBreakpoint: string;
|
|
316
|
+
monthNames: string[];
|
|
317
|
+
placement: string;
|
|
318
|
+
offset: number;
|
|
319
|
+
noFlip: boolean;
|
|
320
|
+
autoPlacement: boolean;
|
|
321
|
+
largeFullscreenHeadline: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* @private
|
|
324
|
+
*/
|
|
325
|
+
private dateSlotContent;
|
|
326
|
+
/**
|
|
327
|
+
* @private
|
|
328
|
+
*/
|
|
329
|
+
private validation;
|
|
330
|
+
/**
|
|
331
|
+
* @private
|
|
332
|
+
*/
|
|
333
|
+
private runtimeUtils;
|
|
334
|
+
/**
|
|
335
|
+
* @private
|
|
336
|
+
*/
|
|
337
|
+
private forceScrollOnNextMobileCalendarRender;
|
|
338
|
+
/**
|
|
339
|
+
* @private
|
|
340
|
+
*/
|
|
341
|
+
private dropdownTag;
|
|
342
|
+
/**
|
|
343
|
+
* @private
|
|
344
|
+
*/
|
|
345
|
+
private buttonTag;
|
|
346
|
+
/**
|
|
347
|
+
* @private
|
|
348
|
+
*/
|
|
349
|
+
private iconTag;
|
|
350
|
+
/**
|
|
351
|
+
* @private
|
|
352
|
+
*/
|
|
353
|
+
private inputTag;
|
|
354
|
+
/**
|
|
355
|
+
* @private
|
|
356
|
+
*/
|
|
357
|
+
private helpTextTag;
|
|
358
|
+
/**
|
|
359
|
+
* Handles click events on the datepicker.
|
|
360
|
+
* @param {PointerEvent} event - The pointer event object.
|
|
361
|
+
* @private
|
|
362
|
+
* @returns {void}
|
|
363
|
+
*/
|
|
364
|
+
private handleClick;
|
|
365
|
+
layout: string;
|
|
366
|
+
shape: string;
|
|
367
|
+
size: string;
|
|
368
|
+
/**
|
|
369
|
+
* A convenience wrapper for `value` and `valueEnd`, uses the new Auro "array value pattern".
|
|
370
|
+
* @returns {string[]}
|
|
371
|
+
*/
|
|
372
|
+
get values(): string[];
|
|
373
|
+
/**
|
|
374
|
+
* Force the calendar view to the focus date when it changes.
|
|
375
|
+
* @private
|
|
376
|
+
* @returns {void}
|
|
377
|
+
*/
|
|
378
|
+
private handleFocusDateChange;
|
|
379
|
+
/**
|
|
380
|
+
* @private
|
|
381
|
+
* @param {Number} length - Number of characters for the returned random string.
|
|
382
|
+
* @returns {string}
|
|
383
|
+
*/
|
|
384
|
+
private generateRandomString;
|
|
385
|
+
/**
|
|
386
|
+
* Focuses the datepicker trigger input.
|
|
387
|
+
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
388
|
+
* @returns {void}
|
|
389
|
+
*/
|
|
390
|
+
focus(focusInput?: string): void;
|
|
391
|
+
hasFocus: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Converts valid time number to format used by wc-date-range API.
|
|
394
|
+
* @private
|
|
395
|
+
* @param {Date} date - Date to be converted.
|
|
396
|
+
* @returns {Number} Simplified number.
|
|
397
|
+
*/
|
|
398
|
+
private convertToWcValidTime;
|
|
399
|
+
/**
|
|
400
|
+
* Converts date object into a string.
|
|
401
|
+
* @private
|
|
402
|
+
* @param {String} time - Unix timestamp to be converted to a date object.
|
|
403
|
+
* @returns {Date} Date formatted as a string.
|
|
404
|
+
*/
|
|
405
|
+
private convertWcTimeToDate;
|
|
406
|
+
/**
|
|
407
|
+
* Sends event notifying that the input has changed it's value.
|
|
408
|
+
* @private
|
|
409
|
+
* @returns {void}
|
|
410
|
+
*/
|
|
411
|
+
private notifyValueChanged;
|
|
412
|
+
/**
|
|
413
|
+
* Changes the calendar's visibility to reflect the value of the central date attribute.
|
|
414
|
+
* @private
|
|
415
|
+
* @returns {void}
|
|
416
|
+
*/
|
|
417
|
+
private handleCentralDateChange;
|
|
418
|
+
/**
|
|
419
|
+
* Sends event notifying that the calendar popover has been opened.
|
|
420
|
+
* @private
|
|
421
|
+
* @returns {void}
|
|
422
|
+
*/
|
|
423
|
+
private notifyDatepickerToggled;
|
|
424
|
+
/**
|
|
425
|
+
* Sends event notifying that the calendar's visible month has changed.
|
|
426
|
+
* @param {Object} event - Event passed in from auro-calendar when the event triggered this function.
|
|
427
|
+
* @private
|
|
428
|
+
* @returns {void}
|
|
429
|
+
*/
|
|
430
|
+
private notifyMonthChanged;
|
|
431
|
+
/**
|
|
432
|
+
* Binds all behavior needed to the dropdown after rendering.
|
|
433
|
+
* @private
|
|
434
|
+
* @returns {void}
|
|
435
|
+
*/
|
|
436
|
+
private configureDropdown;
|
|
437
|
+
dropdown: any;
|
|
438
|
+
/**
|
|
439
|
+
* Binds all behavior needed to the input after rendering.
|
|
440
|
+
* @private
|
|
441
|
+
* @returns {void}
|
|
442
|
+
*/
|
|
443
|
+
private configureInput;
|
|
444
|
+
triggerInput: any;
|
|
445
|
+
inputList: any[];
|
|
446
|
+
errorMessage: any;
|
|
447
|
+
/**
|
|
448
|
+
* Binds all behavior needed to the dropdown after rendering.
|
|
449
|
+
* @private
|
|
450
|
+
* @returns {void}
|
|
451
|
+
*/
|
|
452
|
+
private configureCalendar;
|
|
453
|
+
calendar: Element;
|
|
454
|
+
/**
|
|
455
|
+
* Binds all behavior needed to the datepicker after rendering.
|
|
456
|
+
* @private
|
|
457
|
+
* @returns {void}
|
|
458
|
+
*/
|
|
459
|
+
private configureDatepicker;
|
|
460
|
+
/**
|
|
461
|
+
* Hides the dropdown bib if its open.
|
|
462
|
+
* @returns {void}
|
|
463
|
+
*/
|
|
464
|
+
hideBib(): void;
|
|
465
|
+
/**
|
|
466
|
+
* Shows the dropdown bib if there are options to show.
|
|
467
|
+
* @returns {void}
|
|
468
|
+
*/
|
|
469
|
+
showBib(): void;
|
|
470
|
+
/**
|
|
471
|
+
* Sets the readonly attribute on the inputs based on the window width.
|
|
472
|
+
* @private
|
|
473
|
+
* @returns {void}
|
|
474
|
+
*/
|
|
475
|
+
private handleReadOnly;
|
|
476
|
+
/**
|
|
477
|
+
* Keep the datepicker in sync with the calendar's central date.
|
|
478
|
+
* @private
|
|
479
|
+
* @param {Number} event - Event received from calendar with the new central date.
|
|
480
|
+
* @returns {void}
|
|
481
|
+
*/
|
|
482
|
+
private handleCalendarCentralDateChange;
|
|
483
|
+
/**
|
|
484
|
+
* Sets the datepicker's values to the auro-calendar-cell that was clicked.
|
|
485
|
+
* @private
|
|
486
|
+
* @param {Number} time - Unix timestamp to be converted to a date.
|
|
487
|
+
* @returns {void}
|
|
488
|
+
*/
|
|
489
|
+
private handleCellClick;
|
|
490
|
+
cellClickActive: boolean;
|
|
491
|
+
/**
|
|
492
|
+
* Emits an event to notify the calendar cells to fetch their slot content.
|
|
493
|
+
* @private
|
|
494
|
+
* @returns {void}
|
|
495
|
+
*/
|
|
496
|
+
private pushSlotContent;
|
|
497
|
+
/**
|
|
498
|
+
* Handle enter/space keydown on the reset button.
|
|
499
|
+
* @private
|
|
500
|
+
* @param {KeyboardEvent} event - The keydown event.
|
|
501
|
+
*/
|
|
502
|
+
private handleKeydownReset;
|
|
503
|
+
/**
|
|
504
|
+
* Resets values without resetting validation.
|
|
505
|
+
*/
|
|
506
|
+
resetInputs(): void;
|
|
507
|
+
/**
|
|
508
|
+
* Resets component to initial state.
|
|
509
|
+
* @returns {void}
|
|
510
|
+
*/
|
|
511
|
+
reset(): void;
|
|
512
|
+
/**
|
|
513
|
+
* Clears the current value(s) of the datepicker.
|
|
514
|
+
* @returns {void}
|
|
515
|
+
*/
|
|
516
|
+
clear(): void;
|
|
517
|
+
/**
|
|
518
|
+
* Validates value.
|
|
519
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
520
|
+
*/
|
|
521
|
+
validate(force?: boolean): void;
|
|
522
|
+
/**
|
|
523
|
+
* Private method for interacting with the `hasValue` property.
|
|
524
|
+
* @private
|
|
525
|
+
*/
|
|
526
|
+
private setHasValue;
|
|
527
|
+
hasValue: boolean;
|
|
528
|
+
get hasError(): boolean;
|
|
529
|
+
updated(changedProperties: any): void;
|
|
530
|
+
monthFirst: boolean;
|
|
531
|
+
previousTabIndex: string;
|
|
532
|
+
formattedFocusDate: boolean;
|
|
533
|
+
formattedEndDate: boolean;
|
|
534
|
+
formattedValue: boolean;
|
|
535
|
+
formattedValueEnd: boolean;
|
|
536
|
+
formattedMinDate: boolean;
|
|
537
|
+
formattedMaxDate: boolean;
|
|
538
|
+
/**
|
|
539
|
+
* Handles the transfer of content between slots in the component.
|
|
540
|
+
*
|
|
541
|
+
* @private
|
|
542
|
+
* @method handleSlotToSlot
|
|
543
|
+
* @param {Event} event - The event object containing information about the slot transfer.
|
|
544
|
+
* @throws {Error} Throws an error if the slot cannot be found or injected.
|
|
545
|
+
*/
|
|
546
|
+
private handleSlotToSlot;
|
|
547
|
+
/**
|
|
548
|
+
* Set up click handling for the datepicker.
|
|
549
|
+
* @private
|
|
550
|
+
* @returns {void}
|
|
551
|
+
*/
|
|
552
|
+
private configureClickHandler;
|
|
553
|
+
firstUpdated(): void;
|
|
554
|
+
/**
|
|
555
|
+
* Renders the snowflake layout for the datepicker.
|
|
556
|
+
* @private
|
|
557
|
+
* @returns {import("lit").TemplateResult}
|
|
558
|
+
*/
|
|
559
|
+
private renderSnowflakeLayout;
|
|
560
|
+
/**
|
|
561
|
+
* Renders the snowflake layout for the datepicker.
|
|
562
|
+
* @private
|
|
563
|
+
* @returns {import("lit").TemplateResult}
|
|
564
|
+
*/
|
|
565
|
+
private renderClassicLayout;
|
|
566
|
+
/**
|
|
567
|
+
* Renders the layout based on the `layout` attribute.
|
|
568
|
+
* @private
|
|
569
|
+
* @returns {import('lit').TemplateResult}
|
|
570
|
+
*/
|
|
571
|
+
private renderLayoutFromAttributes;
|
|
572
|
+
/**
|
|
573
|
+
* Simple formatter that ONLY WORKS FOR US DATES.
|
|
574
|
+
* Returns formatted date like Apr 21 or Dec 25.
|
|
575
|
+
* @private
|
|
576
|
+
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
577
|
+
* @returns {string}
|
|
578
|
+
*/
|
|
579
|
+
private formatShortDate;
|
|
580
|
+
/**
|
|
581
|
+
* Format and render the provided date value.
|
|
582
|
+
* @private
|
|
583
|
+
* @param {string} dateValue - The date value to format and render.
|
|
584
|
+
* @returns {import('lit').TemplateResult}
|
|
585
|
+
*/
|
|
586
|
+
private renderDisplayTextDate;
|
|
587
|
+
/**
|
|
588
|
+
* Renders the HTML inputs for the datepicker.
|
|
589
|
+
* @private
|
|
590
|
+
* @returns {import('lit').TemplateResult}
|
|
591
|
+
*/
|
|
592
|
+
private renderHtmlInputs;
|
|
593
|
+
/**
|
|
594
|
+
* Renders the clear action button.
|
|
595
|
+
* @private
|
|
596
|
+
* @returns {import('lit').TemplateResult}
|
|
597
|
+
*/
|
|
598
|
+
private renderHtmlActionClear;
|
|
599
|
+
/**
|
|
600
|
+
* Renders the error icon.
|
|
601
|
+
* @private
|
|
602
|
+
* @returns {import('lit').TemplateResult}
|
|
603
|
+
*/
|
|
604
|
+
private renderHtmlIconError;
|
|
605
|
+
/**
|
|
606
|
+
* Renders the calendar icon.
|
|
607
|
+
* @private
|
|
608
|
+
* @returns {import('lit').TemplateResult}
|
|
609
|
+
*/
|
|
610
|
+
private renderHtmlIconCalendar;
|
|
611
|
+
/**
|
|
612
|
+
* Returns HTML for the help text and error message.
|
|
613
|
+
* @private
|
|
614
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
615
|
+
*/
|
|
616
|
+
private renderHtmlHelpText;
|
|
617
|
+
/**
|
|
618
|
+
* Separate method for rendering the calendar.
|
|
619
|
+
* @private
|
|
620
|
+
* @returns {import('lit').TemplateResult}
|
|
621
|
+
*/
|
|
622
|
+
private renderCalendar;
|
|
623
|
+
render(): import("lit-html").TemplateResult;
|
|
624
|
+
}
|
|
625
|
+
import { AuroElement } from "@aurodesignsystem/auro-layout-element";
|