@aurodesignsystem/auro-formkit 5.9.0 → 5.9.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 (136) hide show
  1. package/CHANGELOG.md +13 -4
  2. package/README.md +4 -4
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +2 -2
  5. package/components/bibtemplate/dist/registered.js +2 -2
  6. package/components/checkbox/README.md +62 -62
  7. package/components/checkbox/demo/api.js +1 -1
  8. package/components/checkbox/demo/api.md +127 -84
  9. package/components/checkbox/demo/api.min.js +125 -42
  10. package/components/checkbox/demo/index.md +9 -281
  11. package/components/checkbox/demo/index.min.js +125 -42
  12. package/components/checkbox/demo/readme.html +3 -4
  13. package/components/checkbox/demo/readme.md +62 -62
  14. package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
  15. package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
  16. package/components/checkbox/dist/index.js +125 -42
  17. package/components/checkbox/dist/registered.js +125 -42
  18. package/components/combobox/README.md +76 -74
  19. package/components/combobox/demo/api.html +1 -0
  20. package/components/combobox/demo/api.js +11 -12
  21. package/components/combobox/demo/api.md +1302 -875
  22. package/components/combobox/demo/api.min.js +416 -492
  23. package/components/combobox/demo/index.html +1 -7
  24. package/components/combobox/demo/index.js +0 -19
  25. package/components/combobox/demo/index.md +43 -723
  26. package/components/combobox/demo/index.min.js +369 -302
  27. package/components/combobox/demo/readme.html +3 -4
  28. package/components/combobox/demo/readme.md +76 -74
  29. package/components/combobox/dist/auro-combobox.d.ts +42 -42
  30. package/components/combobox/dist/index.js +204 -210
  31. package/components/combobox/dist/registered.js +204 -210
  32. package/components/counter/README.md +81 -66
  33. package/components/counter/demo/api.html +1 -2
  34. package/components/counter/demo/api.js +2 -2
  35. package/components/counter/demo/api.md +777 -259
  36. package/components/counter/demo/api.min.js +119 -171
  37. package/components/counter/demo/index.html +0 -2
  38. package/components/counter/demo/index.md +20 -329
  39. package/components/counter/demo/index.min.js +117 -152
  40. package/components/counter/demo/readme.html +3 -4
  41. package/components/counter/demo/readme.md +81 -66
  42. package/components/counter/dist/auro-counter-group.d.ts +21 -36
  43. package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
  44. package/components/counter/dist/auro-counter.d.ts +5 -8
  45. package/components/counter/dist/index.js +117 -152
  46. package/components/counter/dist/registered.js +117 -152
  47. package/components/datepicker/README.md +57 -61
  48. package/components/datepicker/demo/api.js +8 -8
  49. package/components/datepicker/demo/api.md +720 -561
  50. package/components/datepicker/demo/api.min.js +678 -2769
  51. package/components/datepicker/demo/index.md +65 -117
  52. package/components/datepicker/demo/index.min.js +678 -2769
  53. package/components/datepicker/demo/readme.html +3 -4
  54. package/components/datepicker/demo/readme.md +57 -61
  55. package/components/datepicker/dist/auro-calendar.d.ts +60 -34
  56. package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
  57. package/components/datepicker/dist/iconVersion.d.ts +1 -1
  58. package/components/datepicker/dist/index.js +505 -2596
  59. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  60. package/components/datepicker/dist/registered.js +505 -2596
  61. package/components/dropdown/README.md +78 -62
  62. package/components/dropdown/demo/api.js +4 -4
  63. package/components/dropdown/demo/api.md +520 -478
  64. package/components/dropdown/demo/api.min.js +80 -95
  65. package/components/dropdown/demo/index.md +65 -119
  66. package/components/dropdown/demo/index.min.js +70 -85
  67. package/components/dropdown/demo/readme.html +3 -4
  68. package/components/dropdown/demo/readme.md +78 -62
  69. package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
  70. package/components/dropdown/dist/iconVersion.d.ts +1 -1
  71. package/components/dropdown/dist/index.js +70 -85
  72. package/components/dropdown/dist/registered.js +70 -85
  73. package/components/form/README.md +16 -58
  74. package/components/form/demo/api.md +16 -21
  75. package/components/form/demo/api.min.js +13 -8
  76. package/components/form/demo/index.md +38 -39
  77. package/components/form/demo/index.min.js +13 -8
  78. package/components/form/demo/readme.md +16 -58
  79. package/components/form/demo/working.html +1 -1
  80. package/components/form/dist/auro-form.d.ts +15 -3
  81. package/components/form/dist/index.js +13 -8
  82. package/components/form/dist/registered.js +13 -8
  83. package/components/input/README.md +55 -60
  84. package/components/input/demo/api.js +3 -5
  85. package/components/input/demo/api.md +558 -537
  86. package/components/input/demo/api.min.js +102 -115
  87. package/components/input/demo/index.js +0 -1
  88. package/components/input/demo/index.md +90 -203
  89. package/components/input/demo/index.min.js +87 -99
  90. package/components/input/demo/readme.html +3 -4
  91. package/components/input/demo/readme.md +55 -60
  92. package/components/input/dist/auro-input.d.ts +6 -5
  93. package/components/input/dist/base-input.d.ts +68 -69
  94. package/components/input/dist/iconVersion.d.ts +1 -1
  95. package/components/input/dist/index.js +87 -82
  96. package/components/input/dist/registered.js +87 -82
  97. package/components/menu/README.md +61 -61
  98. package/components/menu/demo/api.js +6 -8
  99. package/components/menu/demo/api.md +520 -577
  100. package/components/menu/demo/api.min.js +199 -97
  101. package/components/menu/demo/index.js +0 -5
  102. package/components/menu/demo/index.md +36 -119
  103. package/components/menu/demo/index.min.js +164 -101
  104. package/components/menu/demo/readme.html +3 -4
  105. package/components/menu/demo/readme.md +61 -61
  106. package/components/menu/dist/auro-menu.context.d.ts +5 -0
  107. package/components/menu/dist/auro-menu.d.ts +75 -37
  108. package/components/menu/dist/auro-menuoption.d.ts +38 -13
  109. package/components/menu/dist/index.js +164 -50
  110. package/components/menu/dist/registered.js +164 -50
  111. package/components/radio/README.md +61 -57
  112. package/components/radio/demo/api.js +2 -2
  113. package/components/radio/demo/api.md +241 -170
  114. package/components/radio/demo/api.min.js +154 -77
  115. package/components/radio/demo/index.md +22 -99
  116. package/components/radio/demo/index.min.js +145 -68
  117. package/components/radio/demo/readme.html +3 -4
  118. package/components/radio/demo/readme.md +61 -57
  119. package/components/radio/dist/auro-radio-group.d.ts +67 -35
  120. package/components/radio/dist/auro-radio.d.ts +56 -33
  121. package/components/radio/dist/index.js +145 -68
  122. package/components/radio/dist/registered.js +145 -68
  123. package/components/select/README.md +68 -65
  124. package/components/select/demo/api.html +1 -0
  125. package/components/select/demo/api.js +7 -7
  126. package/components/select/demo/api.md +1305 -625
  127. package/components/select/demo/api.min.js +357 -262
  128. package/components/select/demo/index.html +0 -2
  129. package/components/select/demo/index.md +25 -833
  130. package/components/select/demo/index.min.js +356 -230
  131. package/components/select/demo/readme.html +3 -4
  132. package/components/select/demo/readme.md +68 -65
  133. package/components/select/dist/auro-select.d.ts +99 -90
  134. package/components/select/dist/index.js +192 -180
  135. package/components/select/dist/registered.js +192 -180
  136. package/package.json +9 -4
@@ -48,10 +48,9 @@
48
48
  Prism.highlightAll();
49
49
  })
50
50
  </script>
51
- <script type="module">
52
- import { initExamples } from "./index.min.js";
51
+ <script src="./index.min.js" data-demo-script="true" type="module"></script>
53
52
 
54
- initExamples();
55
- </script>
53
+ <!-- If additional elements are needed for the demo, add them here. -->
54
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
56
55
  </body>
57
56
  </html>
@@ -18,6 +18,7 @@ The following sections are editable by making changes to the following files:
18
18
  -->
19
19
 
20
20
  # Datepicker
21
+
21
22
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
22
23
  <!-- The below content is automatically added from ./docs/partials/description.md -->
23
24
  The `<auro-datepicker>` element allows users to select a date, or a pair of dates identifying a range, either with text input or by making a section in a calendar. The `<auro-datepicker>` element is the combination of [auro-dropdown](http://auro.alaskaair.com/components/auro/dropdown), [auro-input](http://auro.alaskaair.com/components/auro/input), and Auro's extension of [wc-range-datepicker](https://www.npmjs.com/package/wc-range-datepicker).
@@ -27,7 +28,18 @@ The `<auro-datepicker>` element allows users to select a date, or a pair of date
27
28
  <!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
28
29
  <!-- AURO-GENERATED-CONTENT:END -->
29
30
 
31
+ ## Datepicker Use Cases
32
+
33
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
34
+ <!-- The below content is automatically added from ./docs/partials/useCases.md -->
35
+ The `<auro-datepicker>` element should be used in situations where users may:
36
+
37
+ * select a single date
38
+ * select a pair of dates which identify a calendar range
39
+ <!-- AURO-GENERATED-CONTENT:END -->
40
+
30
41
  ## Getting Started
42
+
31
43
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
32
44
  <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
33
45
 
@@ -40,30 +52,7 @@ $ npm i @aurodesignsystem/auro-formkit
40
52
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
41
53
  <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
42
54
 
43
- ### Import Options
44
-
45
- #### Automatic Registration
46
-
47
- For automatic registration, simply import the component:
48
-
49
- ```javascript
50
- // Registers <auro-datepicker> automatically
51
- import '@aurodesignsystem/auro-formkit/auro-datepicker';
52
- ```
53
-
54
- #### Custom Registration
55
-
56
- To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroDatepicker.register('custom-datepicker')` method on the component class and pass in a unique name.
57
-
58
- ```javascript
59
- // Import the class only
60
- import { AuroDatepicker } from '@aurodesignsystem/auro-formkit/auro-datepicker/class';
61
-
62
- // Register with a custom name if desired
63
- AuroDatepicker.register('custom-datepicker');
64
- ```
65
-
66
- #### TypeScript Module Resolution
55
+ ### TypeScript Module Resolution
67
56
 
68
57
  When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
69
58
 
@@ -76,30 +65,10 @@ When using TypeScript set `moduleResolution` to `bundler`, add the following to
76
65
  ```
77
66
 
78
67
  This configuration enables proper module resolution for the component's TypeScript files.
79
- <!-- AURO-GENERATED-CONTENT:END -->
80
- **Reference component in HTML**
81
-
82
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
83
- <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
84
-
85
- ```html
86
- <auro-datepicker required="">
87
- <span slot="ariaLabel.bib.close">Close Calendar</span>
88
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
89
- <span slot="fromLabel">Choose a date</span>
90
- <span slot="bib.fullscreen.dateLabel">Choose a date</span>
91
- </auro-datepicker>
92
- ```
93
- <!-- AURO-GENERATED-CONTENT:END -->
94
-
95
- ### Design Token CSS Custom Property dependency
96
-
97
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
98
- The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
99
-
100
68
  <!-- AURO-GENERATED-CONTENT:END -->
101
69
 
102
70
  ## Install from CDN
71
+
103
72
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
104
73
  <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
105
74
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
@@ -109,22 +78,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
109
78
  ```
110
79
  <!-- AURO-GENERATED-CONTENT:END -->
111
80
 
112
- ## UI development browser support
113
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
114
- For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
115
-
116
- <!-- AURO-GENERATED-CONTENT:END -->
117
-
118
- ## auro-datepicker use cases
119
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
120
- <!-- The below content is automatically added from ./docs/partials/useCases.md -->
121
- The `<auro-datepicker>` element should be used in situations where users may:
122
-
123
- * select a single date
124
- * select a pair of dates which identify a calendar range
125
- <!-- AURO-GENERATED-CONTENT:END -->
126
-
127
- ## Formkit development
81
+ ## Formkit Development
128
82
 
129
83
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
130
84
  <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
@@ -138,4 +92,46 @@ To only develop a single component, use the `--filter` flag:
138
92
  ```shell
139
93
  npx turbo dev --filter=@aurodesignsystem/auro-input
140
94
  ```
95
+ <!-- AURO-GENERATED-CONTENT:END -->
96
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
97
+ <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
98
+
99
+ ## Custom Component Registration for Version Management
100
+
101
+ There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
102
+
103
+ When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
104
+
105
+ However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
106
+
107
+ You can do this by importing only the component class and using the `register(name)` method with a unique name:
108
+
109
+ ```js
110
+ // Import the class only
111
+ import { AuroDatepicker } from '@aurodesignsystem/auro-formkit/auro-datepicker/class';
112
+
113
+ // Register with a custom name if desired
114
+ AuroDatepicker.register('custom-datepicker');
115
+ ```
116
+
117
+ This will create a new custom element `<custom-datepicker>` that behaves exactly like `<auro-datepicker>`, allowing both to coexist on the same page without interfering with each other.
118
+
119
+ <div class="exampleWrapper exampleWrapper--flex">
120
+ <custom-datepicker>
121
+ <span slot="bib.fullscreen.headline">custom-datepicker Example</span>
122
+ <span slot="fromLabel">Choose a date</span>
123
+ <span slot="bib.fullscreen.dateLabel">Choose a date</span>
124
+ </custom-datepicker>
125
+ </div>
126
+ <auro-accordion alignRight>
127
+ <span slot="trigger">See code</span>
128
+
129
+ ```html
130
+ <custom-datepicker>
131
+ <span slot="bib.fullscreen.headline">custom-datepicker Example</span>
132
+ <span slot="fromLabel">Choose a date</span>
133
+ <span slot="bib.fullscreen.dateLabel">Choose a date</span>
134
+ </custom-datepicker>
135
+ ```
136
+ </auro-accordion>
141
137
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1,66 +1,78 @@
1
1
  /**
2
- * @prop {Object} firstDayOfWeek - Weekday that will be displayed in first column of month grid.
3
- * 0: sunday, 1: monday, 2: tuesday, 3: wednesday , 4: thursday, 5: friday, 6: saturday
4
- * Default is 0.
5
- * @prop {Date | null} focusedDate - The currently focused date (if any).
6
- * @prop {Date} maxDate - Maximum date. All dates after will be disabled.
7
- * @prop {Date} minDate - Minimum date. All dates before will be disabled.
8
- * @prop {Date | undefined} selectedDate - The selected date, usually synchronized with datepicker-input.
9
- * Not to be confused with the focused date (therefore not necessarily in active month view).
10
- * @prop {string} weekdayHeaderNotation - Weekday header notation, based on Intl DatetimeFormat:.
11
- * @prop {Boolean} visible - Flag indicating if the calendar is visible.
12
- * - 'short' (e.g., Thu)
13
- * - 'narrow' (e.g., T).
14
- * Default is 'short'.
15
2
  * @event auroCalendar-dateSelected - Notifies that a date has been selected in the calendar.
16
3
  * @event auroCalendar-monthChanged - Notifies that the visible calendar month(s) have changed.
17
4
  */
18
5
  export class AuroCalendar extends RangeDatepicker {
19
6
  static get styles(): import("lit").CSSResult[];
20
7
  static get properties(): {
21
- numCalendars: {
22
- type: NumberConstructor;
23
- };
24
- dateFrom: {
25
- type: StringConstructor;
26
- };
27
- dateTo: {
28
- type: StringConstructor;
29
- };
30
- maxDate: {
8
+ /**
9
+ * The last month that may be displayed in the calendar.
10
+ */
11
+ calendarEndMonth: {
31
12
  type: StringConstructor;
32
13
  reflect: boolean;
33
14
  };
34
- minDate: {
15
+ /**
16
+ * The first month that may be displayed in the calendar.
17
+ */
18
+ calendarStartMonth: {
35
19
  type: StringConstructor;
36
20
  reflect: boolean;
37
21
  };
38
- calendarStartMonth: {
22
+ /**
23
+ * The date that determines the currently visible month.
24
+ */
25
+ centralDate: {
39
26
  type: StringConstructor;
40
27
  reflect: boolean;
41
28
  };
42
- calendarEndMonth: {
29
+ /**
30
+ * The starting date of the selected range.
31
+ */
32
+ dateFrom: {
43
33
  type: StringConstructor;
44
- reflect: boolean;
45
34
  };
46
- centralDate: {
35
+ /**
36
+ * The ending date of the selected range.
37
+ */
38
+ dateTo: {
47
39
  type: StringConstructor;
48
- reflect: boolean;
49
40
  };
50
- visible: {
41
+ /**
42
+ * Dropdown element that contains the calendar.
43
+ * @private
44
+ */
45
+ dropdown: {
46
+ type: ObjectConstructor;
47
+ };
48
+ /**
49
+ * Flag indicating if the calendar is in fullscreen mode.
50
+ */
51
+ isFullscreen: {
51
52
  type: BooleanConstructor;
52
53
  reflect: boolean;
53
54
  };
55
+ /**
56
+ * If declared, make bib.fullscreen.headline in HeadingDisplay.
57
+ * Otherwise, Heading 600.
58
+ */
54
59
  largeFullscreenHeadline: {
55
60
  type: BooleanConstructor;
56
61
  reflect: boolean;
57
62
  };
58
- isFullscreen: {
59
- type: BooleanConstructor;
63
+ /**
64
+ * Maximum date. All dates after will be disabled.
65
+ */
66
+ maxDate: {
67
+ type: StringConstructor;
60
68
  reflect: boolean;
61
69
  };
62
- dropdown: {
63
- type: ObjectConstructor;
70
+ /**
71
+ * Minimum date. All dates before will be disabled.
72
+ */
73
+ minDate: {
74
+ type: StringConstructor;
75
+ reflect: boolean;
64
76
  };
65
77
  /**
66
78
  * Mobile breakpoint for responsive design.
@@ -76,6 +88,20 @@ export class AuroCalendar extends RangeDatepicker {
76
88
  monthFirst: {
77
89
  type: BooleanConstructor;
78
90
  };
91
+ /**
92
+ * Number of calendars to render.
93
+ * @private
94
+ */
95
+ numCalendars: {
96
+ type: NumberConstructor;
97
+ };
98
+ /**
99
+ * Flag indicating if the calendar is visible.
100
+ */
101
+ visible: {
102
+ type: BooleanConstructor;
103
+ reflect: boolean;
104
+ };
79
105
  };
80
106
  /**
81
107
  * @private
@@ -1,9 +1,13 @@
1
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
+ *
2
5
  * @slot helpText - Defines the content of the helpText.
3
6
  * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
4
7
  * @slot ariaLabel.input.clear - Sets aria-label on clear button
5
8
  * @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
6
9
  * @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
10
+ * @slot label - Defines the label content for the entire datepicker when `layout="snowflake"`.
7
11
  * @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
8
12
  * @slot fromLabel - Defines the label content for the first input.
9
13
  * @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.
@@ -114,18 +118,15 @@ export class AuroDatePicker extends AuroElement {
114
118
  reflect: boolean;
115
119
  };
116
120
  /**
117
- * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
118
- * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
121
+ * Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
119
122
  *
120
123
  * When expanded, the dropdown will automatically display in fullscreen mode
121
124
  * if the screen size is equal to or smaller than the selected breakpoint.
122
- * @default sm
125
+ * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
126
+ * @default 'sm'
123
127
  */
124
- fullscreenBreakpoint: {
125
- type: StringConstructor;
126
- reflect: boolean;
127
- };
128
- /** Exposes inputmode attribute for input. */
128
+ fullscreenBreakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "disabled";
129
+ /** Exposes inputmode attribute for input. */
129
130
  inputmode: {
130
131
  type: StringConstructor;
131
132
  attribute: boolean;
@@ -139,6 +140,12 @@ export class AuroDatePicker extends AuroElement {
139
140
  type: BooleanConstructor;
140
141
  reflect: boolean;
141
142
  };
143
+ /**
144
+ * Sets the layout of the datepicker.
145
+ * @type {'classic' | 'snowflake'}
146
+ * @default 'classic'
147
+ */
148
+ layout: "classic" | "snowflake";
142
149
  /**
143
150
  * Maximum date. All dates after will be disabled.
144
151
  */
@@ -168,7 +175,6 @@ export class AuroDatePicker extends AuroElement {
168
175
  /**
169
176
  * If declared, the bib will NOT flip to an alternate position
170
177
  * when there isn't enough space in the specified `placement`.
171
- * @default false
172
178
  */
173
179
  noFlip: {
174
180
  type: BooleanConstructor;
@@ -176,7 +182,6 @@ export class AuroDatePicker extends AuroElement {
176
182
  };
177
183
  /**
178
184
  * If declared, the dropdown will shift its position to avoid being cut off by the viewport.
179
- * @default false
180
185
  */
181
186
  shift: {
182
187
  type: BooleanConstructor;
@@ -198,7 +203,7 @@ export class AuroDatePicker extends AuroElement {
198
203
  reflect: boolean;
199
204
  };
200
205
  /**
201
- * DEPRECATED - use `appearance` instead.
206
+ * DEPRECATED - use `appearance="inverse"` instead.
202
207
  */
203
208
  onDark: {
204
209
  type: BooleanConstructor;
@@ -222,17 +227,10 @@ export class AuroDatePicker extends AuroElement {
222
227
  };
223
228
  /**
224
229
  * Position where the bib should appear relative to the trigger.
225
- * Accepted values:
226
- * "top" | "right" | "bottom" | "left" |
227
- * "bottom-start" | "top-start" | "top-end" |
228
- * "right-start" | "right-end" | "bottom-end" |
229
- * "left-start" | "left-end"
230
- * @default bottom-start
231
- */
232
- placement: {
233
- type: StringConstructor;
234
- reflect: boolean;
235
- };
230
+ * @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
231
+ * @default 'bottom-start'
232
+ */
233
+ placement: "top" | "right" | "bottom" | "left" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
236
234
  /**
237
235
  * If set, turns on date range functionality in auro-calendar.
238
236
  */
@@ -313,16 +311,18 @@ export class AuroDatePicker extends AuroElement {
313
311
  };
314
312
  /**
315
313
  * Indicates whether the datepicker is in a dirty state (has been interacted with).
316
- * @type {boolean}
317
- * @default false
318
314
  * @private
319
315
  */
320
- touched: boolean;
316
+ touched: {
317
+ type: BooleanConstructor;
318
+ reflect: boolean;
319
+ attribute: boolean;
320
+ };
321
321
  };
322
322
  static get styles(): import("lit").CSSResult[];
323
323
  /**
324
324
  * This will register this element with the browser.
325
- * @param {string} [name="auro-datepicker"] - The name of element that you want to register to.
325
+ * @param {string} [name="auro-datepicker"] - The name of the element that you want to register.
326
326
  *
327
327
  * @example
328
328
  * AuroDatePicker.register("custom-datepicker") // this will register this element to <custom-datepicker/>
@@ -447,11 +447,11 @@ export class AuroDatePicker extends AuroElement {
447
447
  * @returns {string} - The font class for the input.
448
448
  */
449
449
  private get displayValueFontClass();
450
- get commonDisplayValueWrapperClasses(): {
451
- [x: string]: boolean;
452
- displayValueWrapper: boolean;
453
- util_displayHiddenVisually: boolean;
454
- };
450
+ /**
451
+ * @private
452
+ * Common display value wrapper classes.
453
+ */
454
+ private get commonDisplayValueWrapperClasses();
455
455
  /**
456
456
  * Function to determine if there is any displayValue content to render.
457
457
  * @private
@@ -613,7 +613,7 @@ export class AuroDatePicker extends AuroElement {
613
613
  */
614
614
  private setHasValue;
615
615
  get hasError(): boolean;
616
- updated(changedProperties: any): void;
616
+ updated(changedProperties: any): Promise<void>;
617
617
  monthFirst: boolean;
618
618
  previousTabIndex: string;
619
619
  formattedFocusDate: boolean;
@@ -1,2 +1,2 @@
1
- declare const _default: "9.1.0";
1
+ declare const _default: "9.1.1";
2
2
  export default _default;