@aurodesignsystem-dev/auro-formkit 0.0.0-pr1379.0 → 0.0.0-pr1379.10

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