@aurodesignsystem-dev/auro-formkit 0.0.0-pr1413.2 → 0.0.0-pr1420.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.
Files changed (231) hide show
  1. package/package.json +32 -31
  2. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -66
  3. package/components/bibtemplate/dist/buttonVersion.d.ts +0 -2
  4. package/components/bibtemplate/dist/headerVersion.d.ts +0 -2
  5. package/components/bibtemplate/dist/iconVersion.d.ts +0 -2
  6. package/components/bibtemplate/dist/index.d.ts +0 -2
  7. package/components/bibtemplate/dist/index.js +0 -395
  8. package/components/bibtemplate/dist/registered.js +0 -395
  9. package/components/bibtemplate/dist/styles/color-css.d.ts +0 -2
  10. package/components/bibtemplate/dist/styles/style-css.d.ts +0 -2
  11. package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -2
  12. package/components/checkbox/demo/api.md +0 -489
  13. package/components/checkbox/demo/api.min.js +0 -2133
  14. package/components/checkbox/demo/index.md +0 -55
  15. package/components/checkbox/demo/index.min.js +0 -2108
  16. package/components/checkbox/demo/keyboardBehavior.md +0 -0
  17. package/components/checkbox/demo/readme.md +0 -142
  18. package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -176
  19. package/components/checkbox/dist/auro-checkbox.d.ts +0 -209
  20. package/components/checkbox/dist/index.d.ts +0 -3
  21. package/components/checkbox/dist/index.js +0 -2057
  22. package/components/checkbox/dist/registered.js +0 -2058
  23. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -2
  24. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -2
  25. package/components/checkbox/dist/styles/color-css.d.ts +0 -2
  26. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -2
  27. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -2
  28. package/components/combobox/demo/api.md +0 -2287
  29. package/components/combobox/demo/api.min.js +0 -17800
  30. package/components/combobox/demo/index.md +0 -196
  31. package/components/combobox/demo/index.min.js +0 -17705
  32. package/components/combobox/demo/keyboardBehavior.md +0 -281
  33. package/components/combobox/demo/readme.md +0 -158
  34. package/components/combobox/dist/auro-combobox.d.ts +0 -566
  35. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +0 -8
  36. package/components/combobox/dist/index.d.ts +0 -2
  37. package/components/combobox/dist/index.js +0 -15604
  38. package/components/combobox/dist/registered.js +0 -15606
  39. package/components/combobox/dist/styles/emphasized/style-css.d.ts +0 -2
  40. package/components/combobox/dist/styles/snowflake/style-css.d.ts +0 -2
  41. package/components/combobox/dist/styles/style-css.d.ts +0 -2
  42. package/components/counter/demo/api.md +0 -1285
  43. package/components/counter/demo/api.min.js +0 -8112
  44. package/components/counter/demo/index.md +0 -92
  45. package/components/counter/demo/index.min.js +0 -8093
  46. package/components/counter/demo/keyboardBehavior.md +0 -127
  47. package/components/counter/demo/readme.md +0 -161
  48. package/components/counter/dist/auro-counter-button.d.ts +0 -14
  49. package/components/counter/dist/auro-counter-group.d.ts +0 -390
  50. package/components/counter/dist/auro-counter-wrapper.d.ts +0 -17
  51. package/components/counter/dist/auro-counter.d.ts +0 -136
  52. package/components/counter/dist/buttonVersion.d.ts +0 -2
  53. package/components/counter/dist/iconVersion.d.ts +0 -2
  54. package/components/counter/dist/index.d.ts +0 -3
  55. package/components/counter/dist/index.js +0 -8015
  56. package/components/counter/dist/keyboardStrategy.d.ts +0 -4
  57. package/components/counter/dist/registered.js +0 -8016
  58. package/components/counter/dist/styles/color-css.d.ts +0 -2
  59. package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -2
  60. package/components/counter/dist/styles/counter-button-css.d.ts +0 -2
  61. package/components/counter/dist/styles/counter-group-css.d.ts +0 -2
  62. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -2
  63. package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -2
  64. package/components/counter/dist/styles/shapeSize-css.d.ts +0 -2
  65. package/components/counter/dist/styles/style-css.d.ts +0 -2
  66. package/components/counter/dist/styles/tokens-css.d.ts +0 -2
  67. package/components/datepicker/demo/api.md +0 -1824
  68. package/components/datepicker/demo/api.min.js +0 -24510
  69. package/components/datepicker/demo/index.md +0 -158
  70. package/components/datepicker/demo/index.min.js +0 -24231
  71. package/components/datepicker/demo/keyboardBehavior.md +0 -24
  72. package/components/datepicker/demo/readme.md +0 -137
  73. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -169
  74. package/components/datepicker/dist/auro-calendar-month.d.ts +0 -20
  75. package/components/datepicker/dist/auro-calendar.d.ts +0 -173
  76. package/components/datepicker/dist/auro-datepicker.d.ts +0 -715
  77. package/components/datepicker/dist/buttonVersion.d.ts +0 -2
  78. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +0 -1
  79. package/components/datepicker/dist/iconVersion.d.ts +0 -2
  80. package/components/datepicker/dist/index.d.ts +0 -2
  81. package/components/datepicker/dist/index.js +0 -24146
  82. package/components/datepicker/dist/popoverVersion.d.ts +0 -2
  83. package/components/datepicker/dist/registered.js +0 -24146
  84. package/components/datepicker/dist/styles/classic/color-css.d.ts +0 -2
  85. package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
  86. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -2
  87. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -2
  88. package/components/datepicker/dist/styles/color-css.d.ts +0 -2
  89. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -2
  90. package/components/datepicker/dist/styles/shapeSize-css.d.ts +0 -2
  91. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +0 -2
  92. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +0 -2
  93. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -2
  94. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -2
  95. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -2
  96. package/components/datepicker/dist/styles/style-css.d.ts +0 -2
  97. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -2
  98. package/components/datepicker/dist/utilities.d.ts +0 -78
  99. package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -38
  100. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -50
  101. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -5
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -60
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  104. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -57
  105. package/components/dropdown/demo/api.md +0 -1358
  106. package/components/dropdown/demo/api.min.js +0 -4894
  107. package/components/dropdown/demo/index.md +0 -283
  108. package/components/dropdown/demo/index.min.js +0 -4829
  109. package/components/dropdown/demo/keyboardBehavior.md +0 -77
  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 -128
  113. package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +0 -7
  114. package/components/dropdown/dist/iconVersion.d.ts +0 -2
  115. package/components/dropdown/dist/index.d.ts +0 -2
  116. package/components/dropdown/dist/index.js +0 -4722
  117. package/components/dropdown/dist/registered.js +0 -4722
  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 -70505
  130. package/components/form/demo/index.md +0 -128
  131. package/components/form/demo/index.min.js +0 -70505
  132. package/components/form/demo/keyboardBehavior.md +0 -0
  133. package/components/form/demo/readme.md +0 -145
  134. package/components/form/dist/auro-form.d.ts +0 -280
  135. package/components/form/dist/index.d.ts +0 -2
  136. package/components/form/dist/index.js +0 -718
  137. package/components/form/dist/registered.d.ts +0 -1
  138. package/components/form/dist/registered.js +0 -718
  139. package/components/form/dist/styles/style-css.d.ts +0 -2
  140. package/components/helptext/dist/auro-helptext.d.ts +0 -69
  141. package/components/helptext/dist/index.d.ts +0 -2
  142. package/components/helptext/dist/index.js +0 -231
  143. package/components/helptext/dist/registered.js +0 -231
  144. package/components/helptext/dist/styles/color-css.d.ts +0 -2
  145. package/components/helptext/dist/styles/style-css.d.ts +0 -2
  146. package/components/helptext/dist/styles/tokens-css.d.ts +0 -2
  147. package/components/input/demo/api.md +0 -1397
  148. package/components/input/demo/api.min.js +0 -7460
  149. package/components/input/demo/index.md +0 -161
  150. package/components/input/demo/index.min.js +0 -7380
  151. package/components/input/demo/keyboardBehavior.md +0 -0
  152. package/components/input/demo/readme.md +0 -134
  153. package/components/input/dist/auro-input.d.ts +0 -206
  154. package/components/input/dist/base-input.d.ts +0 -629
  155. package/components/input/dist/buttonVersion.d.ts +0 -2
  156. package/components/input/dist/i18n.d.ts +0 -18
  157. package/components/input/dist/iconVersion.d.ts +0 -2
  158. package/components/input/dist/index.d.ts +0 -2
  159. package/components/input/dist/index.js +0 -7292
  160. package/components/input/dist/registered.js +0 -7292
  161. package/components/input/dist/styles/classic/color-css.d.ts +0 -2
  162. package/components/input/dist/styles/classic/style-css.d.ts +0 -2
  163. package/components/input/dist/styles/color-css.d.ts +0 -2
  164. package/components/input/dist/styles/default/borders-css.d.ts +0 -2
  165. package/components/input/dist/styles/default/color-css.d.ts +0 -2
  166. package/components/input/dist/styles/default/mixins-css.d.ts +0 -2
  167. package/components/input/dist/styles/default/notificationIcons-css.d.ts +0 -2
  168. package/components/input/dist/styles/default/style-css.d.ts +0 -2
  169. package/components/input/dist/styles/emphasized/color-css.d.ts +0 -2
  170. package/components/input/dist/styles/emphasized/style-css.d.ts +0 -2
  171. package/components/input/dist/styles/mixins-css.d.ts +0 -2
  172. package/components/input/dist/styles/shapeSize-css.d.ts +0 -2
  173. package/components/input/dist/styles/snowflake/style-css.d.ts +0 -2
  174. package/components/input/dist/styles/style-css.d.ts +0 -2
  175. package/components/input/dist/styles/tokens-css.d.ts +0 -2
  176. package/components/input/dist/utilities.d.ts +0 -25
  177. package/components/layoutElement/dist/auroElement.d.ts +0 -40
  178. package/components/layoutElement/dist/index.d.ts +0 -2
  179. package/components/layoutElement/dist/index.js +0 -107
  180. package/components/layoutElement/dist/registered.js +0 -107
  181. package/components/menu/demo/api.md +0 -1200
  182. package/components/menu/demo/api.min.js +0 -2413
  183. package/components/menu/demo/index.md +0 -72
  184. package/components/menu/demo/index.min.js +0 -2306
  185. package/components/menu/demo/keyboardBehavior.md +0 -0
  186. package/components/menu/demo/readme.md +0 -145
  187. package/components/menu/dist/auro-menu-utils.d.ts +0 -34
  188. package/components/menu/dist/auro-menu.context.d.ts +0 -239
  189. package/components/menu/dist/auro-menu.d.ts +0 -316
  190. package/components/menu/dist/auro-menuoption.d.ts +0 -210
  191. package/components/menu/dist/iconVersion.d.ts +0 -2
  192. package/components/menu/dist/index.d.ts +0 -4
  193. package/components/menu/dist/index.js +0 -2269
  194. package/components/menu/dist/registered.js +0 -2217
  195. package/components/menu/dist/styles/default/color-menu-css.d.ts +0 -2
  196. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +0 -2
  197. package/components/menu/dist/styles/default/style-menu-css.d.ts +0 -2
  198. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +0 -2
  199. package/components/menu/dist/styles/default/tokens-css.d.ts +0 -2
  200. package/components/radio/demo/api.md +0 -675
  201. package/components/radio/demo/api.min.js +0 -2210
  202. package/components/radio/demo/index.md +0 -73
  203. package/components/radio/demo/index.min.js +0 -2167
  204. package/components/radio/demo/keyboardBehavior.md +0 -0
  205. package/components/radio/demo/readme.md +0 -141
  206. package/components/radio/dist/auro-radio-group.d.ts +0 -250
  207. package/components/radio/dist/auro-radio.d.ts +0 -180
  208. package/components/radio/dist/index.d.ts +0 -3
  209. package/components/radio/dist/index.js +0 -2116
  210. package/components/radio/dist/registered.js +0 -2117
  211. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -2
  212. package/components/radio/dist/styles/color-css.d.ts +0 -2
  213. package/components/radio/dist/styles/groupColor-css.d.ts +0 -2
  214. package/components/radio/dist/styles/style-css.d.ts +0 -2
  215. package/components/radio/dist/styles/tokens-css.d.ts +0 -2
  216. package/components/select/demo/api.md +0 -2378
  217. package/components/select/demo/api.min.js +0 -10400
  218. package/components/select/demo/index.md +0 -355
  219. package/components/select/demo/index.min.js +0 -10307
  220. package/components/select/demo/keyboardBehavior.md +0 -246
  221. package/components/select/demo/readme.md +0 -148
  222. package/components/select/dist/auro-select.d.ts +0 -545
  223. package/components/select/dist/index.d.ts +0 -2
  224. package/components/select/dist/index.js +0 -8218
  225. package/components/select/dist/registered.js +0 -8218
  226. package/components/select/dist/selectKeyboardStrategy.d.ts +0 -11
  227. package/components/select/dist/styles/emphasized/color-css.d.ts +0 -2
  228. package/components/select/dist/styles/shapeSize-css.d.ts +0 -2
  229. package/components/select/dist/styles/style-css.d.ts +0 -2
  230. package/components/select/dist/styles/tokens-css.d.ts +0 -2
  231. package/custom-elements.json +0 -18768
@@ -1,715 +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
- * Keep the datepicker in sync with the calendar's central date.
569
- * @private
570
- * @param {Number} event - Event received from calendar with the new central date.
571
- * @returns {void}
572
- */
573
- private handleCalendarCentralDateChange;
574
- /**
575
- * Sets the datepicker's values to the auro-calendar-cell that was clicked.
576
- * @private
577
- * @param {Number} time - Unix timestamp to be converted to a date.
578
- * @returns {void}
579
- */
580
- private handleCellClick;
581
- cellClickActive: boolean;
582
- /**
583
- * Emits an event to notify the calendar cells to fetch their slot content.
584
- * @private
585
- * @returns {void}
586
- */
587
- private pushSlotContent;
588
- /**
589
- * Handle enter/space keydown on the reset button.
590
- * @private
591
- * @param {KeyboardEvent} event - The keydown event.
592
- */
593
- private handleKeydownReset;
594
- /**
595
- * Resets values without resetting validation.
596
- */
597
- resetInputs(): void;
598
- /**
599
- * Resets component to initial state.
600
- * @returns {void}
601
- */
602
- reset(): void;
603
- /**
604
- * Clears the current value(s) of the datepicker.
605
- * @returns {void}
606
- */
607
- clear(): void;
608
- /**
609
- * Validates value.
610
- * @param {boolean} [force=false] - Whether to force validation.
611
- */
612
- validate(force?: boolean): void;
613
- /**
614
- * Private method for interacting with the `hasValue` property.
615
- * @private
616
- */
617
- private setHasValue;
618
- get hasError(): boolean;
619
- updated(changedProperties: any): void;
620
- monthFirst: boolean;
621
- previousTabIndex: string;
622
- formattedFocusDate: boolean;
623
- formattedEndDate: boolean;
624
- formattedValue: boolean;
625
- formattedValueEnd: boolean;
626
- formattedMinDate: boolean;
627
- formattedMaxDate: boolean;
628
- /**
629
- * Handles the transfer of content between slots in the component.
630
- *
631
- * @private
632
- * @method handleSlotToSlot
633
- * @param {Event} event - The event object containing information about the slot transfer.
634
- * @throws {Error} Throws an error if the slot cannot be found or injected.
635
- */
636
- private handleSlotToSlot;
637
- /**
638
- * Set up click handling for the datepicker.
639
- * @private
640
- * @returns {void}
641
- */
642
- private configureClickHandler;
643
- firstUpdated(): void;
644
- /**
645
- * Renders the snowflake layout for the datepicker.
646
- * @private
647
- * @returns {import("lit").TemplateResult}
648
- */
649
- private renderSnowflakeLayout;
650
- /**
651
- * Renders the snowflake layout for the datepicker.
652
- * @private
653
- * @returns {import("lit").TemplateResult}
654
- */
655
- private renderClassicLayout;
656
- /**
657
- * Renders the layout based on the `layout` attribute.
658
- * @private
659
- * @returns {import('lit').TemplateResult}
660
- */
661
- private renderLayoutFromAttributes;
662
- /**
663
- * Simple formatter that ONLY WORKS FOR US DATES.
664
- * Returns formatted date like Apr 21 or Dec 25.
665
- * @private
666
- * @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
667
- * @returns {string}
668
- */
669
- private formatShortDate;
670
- /**
671
- * Format and render the provided date value.
672
- * @private
673
- * @param {string} dateValue - The date value to format and render.
674
- * @returns {import('lit').TemplateResult}
675
- */
676
- private renderDisplayTextDate;
677
- /**
678
- * Renders the HTML inputs for the datepicker.
679
- * @private
680
- * @returns {import('lit').TemplateResult}
681
- */
682
- private renderHtmlInputs;
683
- /**
684
- * Renders the clear action button.
685
- * @private
686
- * @returns {import('lit').TemplateResult}
687
- */
688
- private renderHtmlActionClear;
689
- /**
690
- * Renders the error icon.
691
- * @private
692
- * @returns {import('lit').TemplateResult}
693
- */
694
- private renderHtmlIconError;
695
- /**
696
- * Renders the calendar icon.
697
- * @private
698
- * @returns {import('lit').TemplateResult}
699
- */
700
- private renderHtmlIconCalendar;
701
- /**
702
- * Returns HTML for the help text and error message.
703
- * @private
704
- * @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
705
- */
706
- private renderHtmlHelpText;
707
- /**
708
- * Separate method for rendering the calendar.
709
- * @private
710
- * @returns {import('lit').TemplateResult}
711
- */
712
- private renderCalendar;
713
- render(): import("lit-html").TemplateResult;
714
- }
715
- import { AuroElement } from "@aurodesignsystem/auro-layout-element";
@@ -1,2 +0,0 @@
1
- declare const _default: "12.3.2";
2
- export default _default;