@aurodesignsystem-dev/auro-formkit 0.0.0-pr1422.0 → 0.0.0-pr1422.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.
Files changed (231) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +66 -0
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
  4. package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
  5. package/components/bibtemplate/dist/index.d.ts +2 -0
  6. package/components/bibtemplate/dist/index.js +395 -0
  7. package/components/bibtemplate/dist/registered.js +395 -0
  8. package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
  9. package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
  10. package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
  11. package/components/checkbox/demo/api.md +489 -0
  12. package/components/checkbox/demo/api.min.js +2133 -0
  13. package/components/checkbox/demo/index.md +55 -0
  14. package/components/checkbox/demo/index.min.js +2108 -0
  15. package/components/checkbox/demo/keyboardBehavior.md +0 -0
  16. package/components/checkbox/demo/readme.md +142 -0
  17. package/components/checkbox/dist/auro-checkbox-group.d.ts +176 -0
  18. package/components/checkbox/dist/auro-checkbox.d.ts +209 -0
  19. package/components/checkbox/dist/index.d.ts +3 -0
  20. package/components/checkbox/dist/index.js +2057 -0
  21. package/components/checkbox/dist/registered.js +2058 -0
  22. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
  23. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
  24. package/components/checkbox/dist/styles/color-css.d.ts +2 -0
  25. package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
  26. package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
  27. package/components/combobox/demo/api.md +2287 -0
  28. package/components/combobox/demo/api.min.js +18025 -0
  29. package/components/combobox/demo/index.md +196 -0
  30. package/components/combobox/demo/index.min.js +17930 -0
  31. package/components/combobox/demo/keyboardBehavior.md +281 -0
  32. package/components/combobox/demo/readme.md +158 -0
  33. package/components/combobox/dist/auro-combobox.d.ts +578 -0
  34. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +9 -0
  35. package/components/combobox/dist/index.d.ts +2 -0
  36. package/components/combobox/dist/index.js +15845 -0
  37. package/components/combobox/dist/registered.js +15847 -0
  38. package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
  39. package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
  40. package/components/combobox/dist/styles/style-css.d.ts +2 -0
  41. package/components/counter/demo/api.md +1285 -0
  42. package/components/counter/demo/api.min.js +8237 -0
  43. package/components/counter/demo/index.md +92 -0
  44. package/components/counter/demo/index.min.js +8218 -0
  45. package/components/counter/demo/keyboardBehavior.md +127 -0
  46. package/components/counter/demo/readme.md +161 -0
  47. package/components/counter/dist/auro-counter-button.d.ts +14 -0
  48. package/components/counter/dist/auro-counter-group.d.ts +390 -0
  49. package/components/counter/dist/auro-counter-wrapper.d.ts +17 -0
  50. package/components/counter/dist/auro-counter.d.ts +136 -0
  51. package/components/counter/dist/buttonVersion.d.ts +2 -0
  52. package/components/counter/dist/iconVersion.d.ts +2 -0
  53. package/components/counter/dist/index.d.ts +3 -0
  54. package/components/counter/dist/index.js +8140 -0
  55. package/components/counter/dist/keyboardStrategy.d.ts +4 -0
  56. package/components/counter/dist/registered.js +8141 -0
  57. package/components/counter/dist/styles/color-css.d.ts +2 -0
  58. package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
  59. package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
  60. package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
  61. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
  62. package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
  63. package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
  64. package/components/counter/dist/styles/style-css.d.ts +2 -0
  65. package/components/counter/dist/styles/tokens-css.d.ts +2 -0
  66. package/components/datepicker/demo/api.md +1824 -0
  67. package/components/datepicker/demo/api.min.js +24654 -0
  68. package/components/datepicker/demo/index.md +158 -0
  69. package/components/datepicker/demo/index.min.js +24375 -0
  70. package/components/datepicker/demo/keyboardBehavior.md +19 -0
  71. package/components/datepicker/demo/readme.md +137 -0
  72. package/components/datepicker/dist/auro-calendar-cell.d.ts +169 -0
  73. package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
  74. package/components/datepicker/dist/auro-calendar.d.ts +173 -0
  75. package/components/datepicker/dist/auro-datepicker.d.ts +716 -0
  76. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  77. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +1 -0
  78. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  79. package/components/datepicker/dist/index.d.ts +2 -0
  80. package/components/datepicker/dist/index.js +24290 -0
  81. package/components/datepicker/dist/popoverVersion.d.ts +2 -0
  82. package/components/datepicker/dist/registered.js +24290 -0
  83. package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
  84. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  85. package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
  86. package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
  87. package/components/datepicker/dist/styles/color-css.d.ts +2 -0
  88. package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
  89. package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
  90. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
  91. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
  92. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
  93. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
  94. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
  95. package/components/datepicker/dist/styles/style-css.d.ts +2 -0
  96. package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
  97. package/components/datepicker/dist/utilities.d.ts +78 -0
  98. package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
  99. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
  100. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
  101. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
  104. package/components/dropdown/demo/api.md +1358 -0
  105. package/components/dropdown/demo/api.min.js +5019 -0
  106. package/components/dropdown/demo/index.md +283 -0
  107. package/components/dropdown/demo/index.min.js +4954 -0
  108. package/components/dropdown/demo/keyboardBehavior.md +77 -0
  109. package/components/dropdown/demo/readme.md +160 -0
  110. package/components/dropdown/dist/auro-dropdown.d.ts +482 -0
  111. package/components/dropdown/dist/auro-dropdownBib.d.ts +128 -0
  112. package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +7 -0
  113. package/components/dropdown/dist/iconVersion.d.ts +2 -0
  114. package/components/dropdown/dist/index.d.ts +2 -0
  115. package/components/dropdown/dist/index.js +4847 -0
  116. package/components/dropdown/dist/registered.js +4847 -0
  117. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
  118. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
  119. package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
  120. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  121. package/components/dropdown/dist/styles/color-css.d.ts +2 -0
  122. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  123. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  124. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  125. package/components/dropdown/dist/styles/style-css.d.ts +2 -0
  126. package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
  127. package/components/form/demo/api.md +319 -0
  128. package/components/form/demo/api.min.js +71170 -0
  129. package/components/form/demo/index.md +128 -0
  130. package/components/form/demo/index.min.js +71170 -0
  131. package/components/form/demo/keyboardBehavior.md +0 -0
  132. package/components/form/demo/readme.md +145 -0
  133. package/components/form/dist/auro-form.d.ts +280 -0
  134. package/components/form/dist/index.d.ts +2 -0
  135. package/components/form/dist/index.js +718 -0
  136. package/components/form/dist/registered.d.ts +1 -0
  137. package/components/form/dist/registered.js +718 -0
  138. package/components/form/dist/styles/style-css.d.ts +2 -0
  139. package/components/helptext/dist/auro-helptext.d.ts +69 -0
  140. package/components/helptext/dist/index.d.ts +2 -0
  141. package/components/helptext/dist/index.js +231 -0
  142. package/components/helptext/dist/registered.js +231 -0
  143. package/components/helptext/dist/styles/color-css.d.ts +2 -0
  144. package/components/helptext/dist/styles/style-css.d.ts +2 -0
  145. package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
  146. package/components/input/demo/api.md +1397 -0
  147. package/components/input/demo/api.min.js +7473 -0
  148. package/components/input/demo/index.md +161 -0
  149. package/components/input/demo/index.min.js +7393 -0
  150. package/components/input/demo/keyboardBehavior.md +0 -0
  151. package/components/input/demo/readme.md +134 -0
  152. package/components/input/dist/auro-input.d.ts +207 -0
  153. package/components/input/dist/base-input.d.ts +628 -0
  154. package/components/input/dist/buttonVersion.d.ts +2 -0
  155. package/components/input/dist/i18n.d.ts +18 -0
  156. package/components/input/dist/iconVersion.d.ts +2 -0
  157. package/components/input/dist/index.d.ts +2 -0
  158. package/components/input/dist/index.js +7305 -0
  159. package/components/input/dist/registered.js +7305 -0
  160. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  161. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  162. package/components/input/dist/styles/color-css.d.ts +2 -0
  163. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  164. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  165. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  166. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  167. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  168. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  169. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  170. package/components/input/dist/styles/mixins-css.d.ts +2 -0
  171. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  172. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  173. package/components/input/dist/styles/style-css.d.ts +2 -0
  174. package/components/input/dist/styles/tokens-css.d.ts +2 -0
  175. package/components/input/dist/utilities.d.ts +25 -0
  176. package/components/layoutElement/dist/auroElement.d.ts +40 -0
  177. package/components/layoutElement/dist/index.d.ts +2 -0
  178. package/components/layoutElement/dist/index.js +107 -0
  179. package/components/layoutElement/dist/registered.js +107 -0
  180. package/components/menu/demo/api.md +1201 -0
  181. package/components/menu/demo/api.min.js +2397 -0
  182. package/components/menu/demo/index.md +72 -0
  183. package/components/menu/demo/index.min.js +2290 -0
  184. package/components/menu/demo/keyboardBehavior.md +0 -0
  185. package/components/menu/demo/readme.md +145 -0
  186. package/components/menu/dist/auro-menu-utils.d.ts +34 -0
  187. package/components/menu/dist/auro-menu.context.d.ts +239 -0
  188. package/components/menu/dist/auro-menu.d.ts +317 -0
  189. package/components/menu/dist/auro-menuoption.d.ts +210 -0
  190. package/components/menu/dist/iconVersion.d.ts +2 -0
  191. package/components/menu/dist/index.d.ts +4 -0
  192. package/components/menu/dist/index.js +2253 -0
  193. package/components/menu/dist/registered.js +2201 -0
  194. package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
  195. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  196. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  197. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  198. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  199. package/components/radio/demo/api.md +675 -0
  200. package/components/radio/demo/api.min.js +2210 -0
  201. package/components/radio/demo/index.md +73 -0
  202. package/components/radio/demo/index.min.js +2167 -0
  203. package/components/radio/demo/keyboardBehavior.md +0 -0
  204. package/components/radio/demo/readme.md +141 -0
  205. package/components/radio/dist/auro-radio-group.d.ts +250 -0
  206. package/components/radio/dist/auro-radio.d.ts +180 -0
  207. package/components/radio/dist/index.d.ts +3 -0
  208. package/components/radio/dist/index.js +2116 -0
  209. package/components/radio/dist/registered.js +2117 -0
  210. package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
  211. package/components/radio/dist/styles/color-css.d.ts +2 -0
  212. package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
  213. package/components/radio/dist/styles/style-css.d.ts +2 -0
  214. package/components/radio/dist/styles/tokens-css.d.ts +2 -0
  215. package/components/select/demo/api.md +2378 -0
  216. package/components/select/demo/api.min.js +10542 -0
  217. package/components/select/demo/index.md +355 -0
  218. package/components/select/demo/index.min.js +10449 -0
  219. package/components/select/demo/keyboardBehavior.md +245 -0
  220. package/components/select/demo/readme.md +148 -0
  221. package/components/select/dist/auro-select.d.ts +553 -0
  222. package/components/select/dist/index.d.ts +2 -0
  223. package/components/select/dist/index.js +8376 -0
  224. package/components/select/dist/registered.js +8376 -0
  225. package/components/select/dist/selectKeyboardStrategy.d.ts +11 -0
  226. package/components/select/dist/styles/emphasized/color-css.d.ts +2 -0
  227. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  228. package/components/select/dist/styles/style-css.d.ts +2 -0
  229. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  230. package/custom-elements.json +18806 -0
  231. package/package.json +2 -2
@@ -0,0 +1,716 @@
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
+ /**
435
+ * Handles click on the clear button.
436
+ * @private
437
+ * @param {MouseEvent} event
438
+ * @returns {void}
439
+ */
440
+ private handleClearClick;
441
+ layout: string;
442
+ shape: string;
443
+ size: string;
444
+ /**
445
+ * A convenience wrapper for `value` and `valueEnd`, uses the new Auro "array value pattern".
446
+ * @returns {string[]}
447
+ */
448
+ get values(): string[];
449
+ /**
450
+ * Whether the label is being hidden currently based on state.
451
+ * @returns {boolean} - Returns true if the label is hidden.
452
+ * @private
453
+ */
454
+ private get labelHidden();
455
+ /**
456
+ * Whether the displayValue container is being hidden currently based on state.
457
+ * @returns {boolean} - Returns true if the label is hidden.
458
+ * @private
459
+ */
460
+ private get dvHidden();
461
+ /**
462
+ * Returns the input font class based on layout and visibility state.
463
+ * @private
464
+ * @returns {string} - The font class for the input.
465
+ */
466
+ private get displayValueFontClass();
467
+ /**
468
+ * @private
469
+ * Common display value wrapper classes.
470
+ */
471
+ private get commonDisplayValueWrapperClasses();
472
+ /**
473
+ * Function to determine if there is any displayValue content to render.
474
+ * @private
475
+ * @returns {void}
476
+ */
477
+ private checkDisplayValueSlotChange;
478
+ /**
479
+ * Force the calendar view to the focus date when it changes.
480
+ * @private
481
+ * @returns {void}
482
+ */
483
+ private handleFocusDateChange;
484
+ /**
485
+ * @private
486
+ * @param {Number} length - Number of characters for the returned random string.
487
+ * @returns {string}
488
+ */
489
+ private generateRandomString;
490
+ /**
491
+ * Focuses the datepicker trigger input.
492
+ * @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
493
+ * @returns {void}
494
+ */
495
+ focus(focusInput?: string): void;
496
+ /**
497
+ * Converts valid time number to format used by wc-date-range API.
498
+ * @private
499
+ * @param {Date} date - Date to be converted.
500
+ * @returns {Number} Simplified number.
501
+ */
502
+ private convertToWcValidTime;
503
+ /**
504
+ * Converts date object into a string.
505
+ * @private
506
+ * @param {String} time - Unix timestamp to be converted to a date object.
507
+ * @returns {Date} Date formatted as a string.
508
+ */
509
+ private convertWcTimeToDate;
510
+ /**
511
+ * Sends event notifying that the input has changed it's value.
512
+ * @private
513
+ * @returns {void}
514
+ */
515
+ private notifyValueChanged;
516
+ /**
517
+ * Changes the calendar's visibility to reflect the value of the central date attribute.
518
+ * @private
519
+ * @returns {void}
520
+ */
521
+ private handleCentralDateChange;
522
+ /**
523
+ * Sends event notifying that the calendar popover has been opened.
524
+ * @private
525
+ * @returns {void}
526
+ */
527
+ private notifyDatepickerToggled;
528
+ /**
529
+ * Sends event notifying that the calendar's visible month has changed.
530
+ * @param {Object} event - Event passed in from auro-calendar when the event triggered this function.
531
+ * @private
532
+ * @returns {void}
533
+ */
534
+ private notifyMonthChanged;
535
+ /**
536
+ * Binds all behavior needed to the dropdown after rendering.
537
+ * @private
538
+ * @returns {void}
539
+ */
540
+ private configureDropdown;
541
+ dropdown: any;
542
+ /**
543
+ * Binds all behavior needed to the input after rendering.
544
+ * @private
545
+ * @returns {void}
546
+ */
547
+ private configureInput;
548
+ triggerInput: any;
549
+ inputList: any[];
550
+ errorMessage: any;
551
+ /**
552
+ * Binds all behavior needed to the dropdown after rendering.
553
+ * @private
554
+ * @returns {void}
555
+ */
556
+ private configureCalendar;
557
+ calendar: Element;
558
+ /**
559
+ * Binds all behavior needed to the datepicker after rendering.
560
+ * @private
561
+ * @returns {void}
562
+ */
563
+ private configureDatepicker;
564
+ /**
565
+ * Hides the dropdown bib if its open.
566
+ * @returns {void}
567
+ */
568
+ hideBib(): void;
569
+ /**
570
+ * Shows the dropdown bib if there are options to show.
571
+ * @returns {void}
572
+ */
573
+ showBib(): void;
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
+ * Resets values without resetting validation.
597
+ */
598
+ resetInputs(): void;
599
+ /**
600
+ * Resets component to initial state.
601
+ * @returns {void}
602
+ */
603
+ reset(): void;
604
+ /**
605
+ * Clears the current value(s) of the datepicker.
606
+ * @returns {void}
607
+ */
608
+ clear(): void;
609
+ /**
610
+ * Validates value.
611
+ * @param {boolean} [force=false] - Whether to force validation.
612
+ */
613
+ validate(force?: boolean): void;
614
+ /**
615
+ * Private method for interacting with the `hasValue` property.
616
+ * @private
617
+ */
618
+ private setHasValue;
619
+ get hasError(): boolean;
620
+ updated(changedProperties: any): void;
621
+ monthFirst: boolean;
622
+ previousTabIndex: string;
623
+ formattedFocusDate: boolean;
624
+ formattedEndDate: boolean;
625
+ formattedValue: boolean;
626
+ formattedValueEnd: boolean;
627
+ formattedMinDate: boolean;
628
+ formattedMaxDate: boolean;
629
+ /**
630
+ * Handles the transfer of content between slots in the component.
631
+ *
632
+ * @private
633
+ * @method handleSlotToSlot
634
+ * @param {Event} event - The event object containing information about the slot transfer.
635
+ * @throws {Error} Throws an error if the slot cannot be found or injected.
636
+ */
637
+ private handleSlotToSlot;
638
+ /**
639
+ * Set up click handling for the datepicker.
640
+ * @private
641
+ * @returns {void}
642
+ */
643
+ private configureClickHandler;
644
+ firstUpdated(): void;
645
+ /**
646
+ * Renders the snowflake layout for the datepicker.
647
+ * @private
648
+ * @returns {import("lit").TemplateResult}
649
+ */
650
+ private renderSnowflakeLayout;
651
+ /**
652
+ * Renders the snowflake layout for the datepicker.
653
+ * @private
654
+ * @returns {import("lit").TemplateResult}
655
+ */
656
+ private renderClassicLayout;
657
+ /**
658
+ * Renders the layout based on the `layout` attribute.
659
+ * @private
660
+ * @returns {import('lit').TemplateResult}
661
+ */
662
+ private renderLayoutFromAttributes;
663
+ /**
664
+ * Simple formatter that ONLY WORKS FOR US DATES.
665
+ * Returns formatted date like Apr 21 or Dec 25.
666
+ * @private
667
+ * @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
668
+ * @returns {string}
669
+ */
670
+ private formatShortDate;
671
+ /**
672
+ * Format and render the provided date value.
673
+ * @private
674
+ * @param {string} dateValue - The date value to format and render.
675
+ * @returns {import('lit').TemplateResult}
676
+ */
677
+ private renderDisplayTextDate;
678
+ /**
679
+ * Renders the HTML inputs for the datepicker.
680
+ * @private
681
+ * @returns {import('lit').TemplateResult}
682
+ */
683
+ private renderHtmlInputs;
684
+ /**
685
+ * Renders the clear action button.
686
+ * @private
687
+ * @returns {import('lit').TemplateResult}
688
+ */
689
+ private renderHtmlActionClear;
690
+ /**
691
+ * Renders the error icon.
692
+ * @private
693
+ * @returns {import('lit').TemplateResult}
694
+ */
695
+ private renderHtmlIconError;
696
+ /**
697
+ * Renders the calendar icon.
698
+ * @private
699
+ * @returns {import('lit').TemplateResult}
700
+ */
701
+ private renderHtmlIconCalendar;
702
+ /**
703
+ * Returns HTML for the help text and error message.
704
+ * @private
705
+ * @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
706
+ */
707
+ private renderHtmlHelpText;
708
+ /**
709
+ * Separate method for rendering the calendar.
710
+ * @private
711
+ * @returns {import('lit').TemplateResult}
712
+ */
713
+ private renderCalendar;
714
+ render(): import("lit-html").TemplateResult;
715
+ }
716
+ import { AuroElement } from "@aurodesignsystem/auro-layout-element";
@@ -0,0 +1,2 @@
1
+ declare const _default: "12.3.2";
2
+ export default _default;