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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +87 -113
  3. package/components/combobox/demo/keyboardBehavior.html +81 -0
  4. package/components/counter/demo/keyboardBehavior.html +81 -0
  5. package/components/datepicker/demo/keyboard-behavior.html +81 -0
  6. package/components/dropdown/demo/keyboardBehavior.html +81 -0
  7. package/components/select/demo/keyboardBehavior.html +81 -0
  8. package/package.json +64 -53
  9. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +0 -66
  10. package/components/bibtemplate/dist/buttonVersion.d.ts +0 -2
  11. package/components/bibtemplate/dist/headerVersion.d.ts +0 -2
  12. package/components/bibtemplate/dist/iconVersion.d.ts +0 -2
  13. package/components/bibtemplate/dist/index.d.ts +0 -2
  14. package/components/bibtemplate/dist/index.js +0 -395
  15. package/components/bibtemplate/dist/registered.js +0 -395
  16. package/components/bibtemplate/dist/styles/color-css.d.ts +0 -2
  17. package/components/bibtemplate/dist/styles/style-css.d.ts +0 -2
  18. package/components/bibtemplate/dist/styles/tokens-css.d.ts +0 -2
  19. package/components/checkbox/demo/api.md +0 -489
  20. package/components/checkbox/demo/api.min.js +0 -2133
  21. package/components/checkbox/demo/index.md +0 -55
  22. package/components/checkbox/demo/index.min.js +0 -2108
  23. package/components/checkbox/demo/readme.md +0 -142
  24. package/components/checkbox/dist/auro-checkbox-group.d.ts +0 -176
  25. package/components/checkbox/dist/auro-checkbox.d.ts +0 -209
  26. package/components/checkbox/dist/index.d.ts +0 -3
  27. package/components/checkbox/dist/index.js +0 -2057
  28. package/components/checkbox/dist/registered.js +0 -2058
  29. package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +0 -2
  30. package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +0 -2
  31. package/components/checkbox/dist/styles/color-css.d.ts +0 -2
  32. package/components/checkbox/dist/styles/colorGroup-css.d.ts +0 -2
  33. package/components/checkbox/dist/styles/tokens-css.d.ts +0 -2
  34. package/components/combobox/demo/api.md +0 -2287
  35. package/components/combobox/demo/api.min.js +0 -17549
  36. package/components/combobox/demo/index.md +0 -196
  37. package/components/combobox/demo/index.min.js +0 -17454
  38. package/components/combobox/demo/readme.md +0 -158
  39. package/components/combobox/dist/auro-combobox.d.ts +0 -552
  40. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +0 -6
  41. package/components/combobox/dist/index.d.ts +0 -2
  42. package/components/combobox/dist/index.js +0 -15474
  43. package/components/combobox/dist/registered.js +0 -15476
  44. package/components/combobox/dist/styles/emphasized/style-css.d.ts +0 -2
  45. package/components/combobox/dist/styles/snowflake/style-css.d.ts +0 -2
  46. package/components/combobox/dist/styles/style-css.d.ts +0 -2
  47. package/components/counter/demo/api.md +0 -1285
  48. package/components/counter/demo/api.min.js +0 -7993
  49. package/components/counter/demo/index.md +0 -92
  50. package/components/counter/demo/index.min.js +0 -7974
  51. package/components/counter/demo/readme.md +0 -161
  52. package/components/counter/dist/auro-counter-button.d.ts +0 -14
  53. package/components/counter/dist/auro-counter-group.d.ts +0 -390
  54. package/components/counter/dist/auro-counter-wrapper.d.ts +0 -17
  55. package/components/counter/dist/auro-counter.d.ts +0 -126
  56. package/components/counter/dist/buttonVersion.d.ts +0 -2
  57. package/components/counter/dist/iconVersion.d.ts +0 -2
  58. package/components/counter/dist/index.d.ts +0 -3
  59. package/components/counter/dist/index.js +0 -7896
  60. package/components/counter/dist/registered.js +0 -7897
  61. package/components/counter/dist/styles/color-css.d.ts +0 -2
  62. package/components/counter/dist/styles/counter-button-color-css.d.ts +0 -2
  63. package/components/counter/dist/styles/counter-button-css.d.ts +0 -2
  64. package/components/counter/dist/styles/counter-group-css.d.ts +0 -2
  65. package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +0 -2
  66. package/components/counter/dist/styles/counter-wrapper-css.d.ts +0 -2
  67. package/components/counter/dist/styles/shapeSize-css.d.ts +0 -2
  68. package/components/counter/dist/styles/style-css.d.ts +0 -2
  69. package/components/counter/dist/styles/tokens-css.d.ts +0 -2
  70. package/components/datepicker/demo/api.md +0 -1824
  71. package/components/datepicker/demo/api.min.js +0 -24530
  72. package/components/datepicker/demo/index.md +0 -158
  73. package/components/datepicker/demo/index.min.js +0 -24251
  74. package/components/datepicker/demo/readme.md +0 -137
  75. package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -169
  76. package/components/datepicker/dist/auro-calendar-month.d.ts +0 -20
  77. package/components/datepicker/dist/auro-calendar.d.ts +0 -173
  78. package/components/datepicker/dist/auro-datepicker.d.ts +0 -722
  79. package/components/datepicker/dist/buttonVersion.d.ts +0 -2
  80. package/components/datepicker/dist/iconVersion.d.ts +0 -2
  81. package/components/datepicker/dist/index.d.ts +0 -2
  82. package/components/datepicker/dist/index.js +0 -24166
  83. package/components/datepicker/dist/popoverVersion.d.ts +0 -2
  84. package/components/datepicker/dist/registered.js +0 -24166
  85. package/components/datepicker/dist/styles/classic/color-css.d.ts +0 -2
  86. package/components/datepicker/dist/styles/classic/style-css.d.ts +0 -2
  87. package/components/datepicker/dist/styles/color-calendar-css.d.ts +0 -2
  88. package/components/datepicker/dist/styles/color-cell-css.d.ts +0 -2
  89. package/components/datepicker/dist/styles/color-css.d.ts +0 -2
  90. package/components/datepicker/dist/styles/color-month-css.d.ts +0 -2
  91. package/components/datepicker/dist/styles/shapeSize-css.d.ts +0 -2
  92. package/components/datepicker/dist/styles/snowflake/color-css.d.ts +0 -2
  93. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +0 -2
  94. package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +0 -2
  95. package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +0 -2
  96. package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +0 -2
  97. package/components/datepicker/dist/styles/style-css.d.ts +0 -2
  98. package/components/datepicker/dist/styles/tokens-css.d.ts +0 -2
  99. package/components/datepicker/dist/utilities.d.ts +0 -78
  100. package/components/datepicker/dist/utilitiesCalendar.d.ts +0 -38
  101. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +0 -50
  102. package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +0 -5
  103. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -60
  104. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +0 -1
  105. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +0 -57
  106. package/components/dropdown/demo/api.md +0 -1358
  107. package/components/dropdown/demo/api.min.js +0 -4853
  108. package/components/dropdown/demo/index.md +0 -283
  109. package/components/dropdown/demo/index.min.js +0 -4788
  110. package/components/dropdown/demo/readme.md +0 -160
  111. package/components/dropdown/dist/auro-dropdown.d.ts +0 -482
  112. package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -155
  113. package/components/dropdown/dist/iconVersion.d.ts +0 -2
  114. package/components/dropdown/dist/index.d.ts +0 -2
  115. package/components/dropdown/dist/index.js +0 -4685
  116. package/components/dropdown/dist/keyboardUtils.d.ts +0 -18
  117. package/components/dropdown/dist/registered.js +0 -4685
  118. package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +0 -2
  119. package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +0 -2
  120. package/components/dropdown/dist/styles/classic/color-css.d.ts +0 -2
  121. package/components/dropdown/dist/styles/classic/style-css.d.ts +0 -2
  122. package/components/dropdown/dist/styles/color-css.d.ts +0 -2
  123. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +0 -2
  124. package/components/dropdown/dist/styles/shapeSize-css.d.ts +0 -2
  125. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +0 -2
  126. package/components/dropdown/dist/styles/style-css.d.ts +0 -2
  127. package/components/dropdown/dist/styles/tokens-css.d.ts +0 -2
  128. package/components/form/demo/api.md +0 -319
  129. package/components/form/demo/api.min.js +0 -69996
  130. package/components/form/demo/index.md +0 -128
  131. package/components/form/demo/index.min.js +0 -69996
  132. package/components/form/demo/readme.md +0 -145
  133. package/components/form/dist/auro-form.d.ts +0 -280
  134. package/components/form/dist/index.d.ts +0 -2
  135. package/components/form/dist/index.js +0 -718
  136. package/components/form/dist/registered.d.ts +0 -1
  137. package/components/form/dist/registered.js +0 -718
  138. package/components/form/dist/styles/style-css.d.ts +0 -2
  139. package/components/helptext/dist/auro-helptext.d.ts +0 -69
  140. package/components/helptext/dist/index.d.ts +0 -2
  141. package/components/helptext/dist/index.js +0 -231
  142. package/components/helptext/dist/registered.js +0 -231
  143. package/components/helptext/dist/styles/color-css.d.ts +0 -2
  144. package/components/helptext/dist/styles/style-css.d.ts +0 -2
  145. package/components/helptext/dist/styles/tokens-css.d.ts +0 -2
  146. package/components/input/demo/api.md +0 -1397
  147. package/components/input/demo/api.min.js +0 -7435
  148. package/components/input/demo/index.md +0 -161
  149. package/components/input/demo/index.min.js +0 -7355
  150. package/components/input/demo/readme.md +0 -134
  151. package/components/input/dist/auro-input.d.ts +0 -195
  152. package/components/input/dist/base-input.d.ts +0 -628
  153. package/components/input/dist/buttonVersion.d.ts +0 -2
  154. package/components/input/dist/i18n.d.ts +0 -18
  155. package/components/input/dist/iconVersion.d.ts +0 -2
  156. package/components/input/dist/index.d.ts +0 -2
  157. package/components/input/dist/index.js +0 -7278
  158. package/components/input/dist/registered.js +0 -7278
  159. package/components/input/dist/styles/classic/color-css.d.ts +0 -2
  160. package/components/input/dist/styles/classic/style-css.d.ts +0 -2
  161. package/components/input/dist/styles/color-css.d.ts +0 -2
  162. package/components/input/dist/styles/default/borders-css.d.ts +0 -2
  163. package/components/input/dist/styles/default/color-css.d.ts +0 -2
  164. package/components/input/dist/styles/default/mixins-css.d.ts +0 -2
  165. package/components/input/dist/styles/default/notificationIcons-css.d.ts +0 -2
  166. package/components/input/dist/styles/default/style-css.d.ts +0 -2
  167. package/components/input/dist/styles/emphasized/color-css.d.ts +0 -2
  168. package/components/input/dist/styles/emphasized/style-css.d.ts +0 -2
  169. package/components/input/dist/styles/mixins-css.d.ts +0 -2
  170. package/components/input/dist/styles/shapeSize-css.d.ts +0 -2
  171. package/components/input/dist/styles/snowflake/style-css.d.ts +0 -2
  172. package/components/input/dist/styles/style-css.d.ts +0 -2
  173. package/components/input/dist/styles/tokens-css.d.ts +0 -2
  174. package/components/input/dist/utilities.d.ts +0 -25
  175. package/components/layoutElement/dist/auroElement.d.ts +0 -40
  176. package/components/layoutElement/dist/index.d.ts +0 -2
  177. package/components/layoutElement/dist/index.js +0 -107
  178. package/components/layoutElement/dist/registered.js +0 -107
  179. package/components/menu/demo/api.md +0 -1200
  180. package/components/menu/demo/api.min.js +0 -2292
  181. package/components/menu/demo/index.md +0 -72
  182. package/components/menu/demo/index.min.js +0 -2185
  183. package/components/menu/demo/readme.md +0 -145
  184. package/components/menu/dist/auro-menu-utils.d.ts +0 -34
  185. package/components/menu/dist/auro-menu.context.d.ts +0 -227
  186. package/components/menu/dist/auro-menu.d.ts +0 -324
  187. package/components/menu/dist/auro-menuoption.d.ts +0 -210
  188. package/components/menu/dist/iconVersion.d.ts +0 -2
  189. package/components/menu/dist/index.d.ts +0 -4
  190. package/components/menu/dist/index.js +0 -2148
  191. package/components/menu/dist/registered.js +0 -2096
  192. package/components/menu/dist/styles/default/color-menu-css.d.ts +0 -2
  193. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +0 -2
  194. package/components/menu/dist/styles/default/style-menu-css.d.ts +0 -2
  195. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +0 -2
  196. package/components/menu/dist/styles/default/tokens-css.d.ts +0 -2
  197. package/components/radio/demo/api.md +0 -675
  198. package/components/radio/demo/api.min.js +0 -2210
  199. package/components/radio/demo/index.md +0 -73
  200. package/components/radio/demo/index.min.js +0 -2167
  201. package/components/radio/demo/readme.md +0 -141
  202. package/components/radio/dist/auro-radio-group.d.ts +0 -250
  203. package/components/radio/dist/auro-radio.d.ts +0 -180
  204. package/components/radio/dist/index.d.ts +0 -3
  205. package/components/radio/dist/index.js +0 -2116
  206. package/components/radio/dist/registered.js +0 -2117
  207. package/components/radio/dist/styles/auro-radio-group-css.d.ts +0 -2
  208. package/components/radio/dist/styles/color-css.d.ts +0 -2
  209. package/components/radio/dist/styles/groupColor-css.d.ts +0 -2
  210. package/components/radio/dist/styles/style-css.d.ts +0 -2
  211. package/components/radio/dist/styles/tokens-css.d.ts +0 -2
  212. package/components/select/demo/api.md +0 -2378
  213. package/components/select/demo/api.min.js +0 -10133
  214. package/components/select/demo/index.md +0 -355
  215. package/components/select/demo/index.min.js +0 -10040
  216. package/components/select/demo/readme.md +0 -148
  217. package/components/select/dist/auro-select.d.ts +0 -545
  218. package/components/select/dist/index.d.ts +0 -2
  219. package/components/select/dist/index.js +0 -8072
  220. package/components/select/dist/registered.js +0 -8072
  221. package/components/select/dist/selectKeyboardStrategy.d.ts +0 -8
  222. package/components/select/dist/styles/emphasized/color-css.d.ts +0 -2
  223. package/components/select/dist/styles/shapeSize-css.d.ts +0 -2
  224. package/components/select/dist/styles/style-css.d.ts +0 -2
  225. package/components/select/dist/styles/tokens-css.d.ts +0 -2
  226. package/custom-elements.json +0 -18656
@@ -1,137 +0,0 @@
1
- <!--
2
- The README.md file is a compiled document. No edits should be made directly to this file.
3
-
4
- README.md is created by running `npm run build:docs`.
5
-
6
- This file is generated based on a template fetched from
7
- `../../docs/templates/componentReadmeTemplate.md`
8
- and copied to `./componentDocs/README.md` each time the docs are compiled.
9
-
10
- The following sections are editable by making changes to the following files:
11
-
12
- | SECTION | DESCRIPTION | FILE LOCATION |
13
- |------------------------|---------------------------------------------------|-------------------------------------|
14
- | Description | Description of the component | `./docs/partials/description.md` |
15
- | Use Cases | Examples for when to use this component | `./docs/partials/useCases.md` |
16
- | Additional Information | For use to add any component specific information | `./docs/partials/readmeAddlInfo.md` |
17
- | Component Example Code | HTML sample code of the components use | `./apiExamples/basic.html` |
18
- -->
19
-
20
- # Datepicker
21
-
22
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
23
- <!-- The below content is automatically added from ./docs/partials/description.md -->
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).
25
- <!-- AURO-GENERATED-CONTENT:END -->
26
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
27
- <!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
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. -->
29
- <!-- AURO-GENERATED-CONTENT:END -->
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
-
41
- ## Getting Started
42
-
43
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
44
- <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
45
-
46
- #### NPM Installation
47
-
48
- ```shell
49
- $ npm i @aurodesignsystem/auro-formkit
50
- ```
51
- <!-- AURO-GENERATED-CONTENT:END -->
52
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
53
- <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
54
-
55
- ### TypeScript Module Resolution
56
-
57
- When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
58
-
59
- ```json
60
- {
61
- "compilerOptions": {
62
- "moduleResolution": "bundler"
63
- }
64
- }
65
- ```
66
-
67
- This configuration enables proper module resolution for the component's TypeScript files.
68
- <!-- AURO-GENERATED-CONTENT:END -->
69
-
70
- ## Install from CDN
71
-
72
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
73
- <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
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.
75
-
76
- ```html
77
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-datepicker/+esm"></script>
78
- ```
79
- <!-- AURO-GENERATED-CONTENT:END -->
80
-
81
- ## Formkit Development
82
-
83
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
84
- <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
85
-
86
- ### Filtering
87
-
88
- Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
89
-
90
- To only develop a single component, use the `--filter` flag:
91
-
92
- ```shell
93
- npx turbo dev --filter=@aurodesignsystem/auro-input
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>
137
- <!-- AURO-GENERATED-CONTENT:END -->
@@ -1,169 +0,0 @@
1
- export class AuroCalendarCell extends LitElement {
2
- static get properties(): {
3
- day: {
4
- type: ObjectConstructor;
5
- };
6
- selected: {
7
- type: BooleanConstructor;
8
- };
9
- hovered: {
10
- type: BooleanConstructor;
11
- };
12
- dateTo: {
13
- type: StringConstructor;
14
- };
15
- dateFrom: {
16
- type: StringConstructor;
17
- };
18
- month: {
19
- type: StringConstructor;
20
- };
21
- min: {
22
- type: NumberConstructor;
23
- };
24
- max: {
25
- type: NumberConstructor;
26
- };
27
- disabled: {
28
- type: BooleanConstructor;
29
- reflect: boolean;
30
- };
31
- disabledDays: {
32
- type: ArrayConstructor;
33
- };
34
- hoveredDate: {
35
- type: StringConstructor;
36
- };
37
- isCurrentDate: {
38
- type: BooleanConstructor;
39
- };
40
- locale: {
41
- type: ObjectConstructor;
42
- };
43
- dateStr: {
44
- type: StringConstructor;
45
- };
46
- renderForDateSlot: {
47
- type: BooleanConstructor;
48
- };
49
- };
50
- static get styles(): import("lit").CSSResult[];
51
- day: any;
52
- selected: boolean;
53
- hovered: boolean;
54
- dateTo: any;
55
- dateFrom: any;
56
- month: any;
57
- min: any;
58
- max: any;
59
- disabled: boolean;
60
- disabledDays: any[];
61
- hoveredDate: any;
62
- isCurrentDate: boolean;
63
- _locale: any;
64
- dateStr: string;
65
- renderForDateSlot: boolean;
66
- runtimeUtils: any;
67
- popoverTag: any;
68
- set locale(value: any);
69
- get locale(): any;
70
- /**
71
- * Handles selected and hovered states of the calendar cell when the date changes.
72
- * @private
73
- * @param {Number} dateFrom - Depart date.
74
- * @param {Number} dateTo - Return date.
75
- * @param {Number} hoveredDate - Hovered date.
76
- * @param {Object} day - An object containing the dateFrom and day of month values.
77
- * @returns {void}
78
- */
79
- private dateChanged;
80
- /**
81
- * Handles user click events and calls datepicker to update the value(s).
82
- * @private
83
- * @returns {void}
84
- */
85
- private handleTap;
86
- /**
87
- * Handles user hover events and dispatches a custom event.
88
- * @private
89
- * @returns {void}
90
- */
91
- private handleHover;
92
- /**
93
- * Checks if the current date is a valid date depending on the min and max values.
94
- * @private
95
- * @param {Object} day - An object containing the dateFrom and day of month values.
96
- * @param {Number} min - The minimum date value.
97
- * @param {Number} max - The maximum date value.
98
- * @param {Array} disabledDays - An array of disabled dates.
99
- * @returns {Boolean} - True if the date is disabled.
100
- */
101
- private isEnabled;
102
- /**
103
- * Checks if the current date is the depart date.
104
- * @private
105
- * @param {Object} day - An object containing the dateFrom and day of month values.
106
- * @param {Number} dateFrom - Depart date.
107
- * @returns {Boolean} True if the date is the depart date.
108
- */
109
- private isDepartDate;
110
- /**
111
- * Checks if the current date is the return date.
112
- * @private
113
- * @param {Object} day - An object containing the dateFrom and day of month values.
114
- * @param {Number} dateFrom - Depart date.
115
- * @param {Number} dateTo - Return date.
116
- * @returns {Boolean} True if the date is the return date.
117
- */
118
- private isReturnDate;
119
- /**
120
- * Checks if the current date is between dateFrom and dateTo.
121
- * @private
122
- * @param {Object} day - An object containing the dateFrom and day of month values.
123
- * @param {Number} dateFrom - Depart date.
124
- * @param {Number} dateTo - Return date.
125
- * @returns {Boolean} True if the current date is between dateFrom and dateTo.
126
- */
127
- private isInRange;
128
- /**
129
- * Determines the hovered date appearing latest in the calendar.
130
- * @private
131
- * @param {Object} day - An object containing the dateFrom and day of month values.
132
- * @param {Number} dateFrom - Depart date.
133
- * @param {Number} dateTo - Return date.
134
- * @param {Number} hoveredDate - Hovered date.
135
- * @returns {Boolean} True if the hovered date is the latest hovered date in the calendar.
136
- */
137
- private isLastHoveredDate;
138
- /**
139
- * Checks if the current date is a highlighted date.
140
- * @param {Object} dateStr - The date string in MM_DD_YYYY format.
141
- * @returns Boolean - True if the date is a highlighted date.
142
- */
143
- isReferenceDate(dateStr: any): boolean;
144
- /**
145
- * Determines the title of the auro-calendar-cell.
146
- * @private
147
- * @param {Number} date - The date of the auro-calendar-cell.
148
- * @returns {String} The title of the auro-calendar-cell in the user's locale.
149
- */
150
- private getTitle;
151
- /**
152
- * Gets the name of the date slot.
153
- * @private
154
- * @returns {void}
155
- */
156
- private setDateSlotName;
157
- /**
158
- * Remove existing cell slot content and clone any current slot content from the root `auro-datepicker` which matches this cells date.
159
- * @private
160
- * @returns {void}
161
- */
162
- private handleSlotContent;
163
- firstUpdated(): void;
164
- datepicker: any;
165
- auroPopover: any;
166
- updated(properties: any): void;
167
- render(): import("lit-html").TemplateResult;
168
- }
169
- import { LitElement } from "lit";
@@ -1,20 +0,0 @@
1
- export class AuroCalendarMonth extends RangeDatepickerCalendar {
2
- static get styles(): import("lit").CSSResult[];
3
- static get properties(): {
4
- /**
5
- * @private
6
- */
7
- monthFirst: {
8
- type: BooleanConstructor;
9
- reflect: boolean;
10
- };
11
- };
12
- /**
13
- * Returns month name to be rendered in the calendar header.
14
- * @private
15
- * @param {Number} month - The month number (1-12).
16
- * @returns {String} The name of the month.
17
- */
18
- private computeCurrentMonthName;
19
- }
20
- import { RangeDatepickerCalendar } from './vendor/wc-range-datepicker/range-datepicker-calendar.js';
@@ -1,173 +0,0 @@
1
- /**
2
- * @event auroCalendar-dateSelected - Notifies that a date has been selected in the calendar.
3
- * @event auroCalendar-monthChanged - Notifies that the visible calendar month(s) have changed.
4
- */
5
- export class AuroCalendar extends RangeDatepicker {
6
- static get styles(): import("lit").CSSResult[];
7
- static get properties(): {
8
- /**
9
- * The last month that may be displayed in the calendar.
10
- */
11
- calendarEndMonth: {
12
- type: StringConstructor;
13
- reflect: boolean;
14
- };
15
- /**
16
- * The first month that may be displayed in the calendar.
17
- */
18
- calendarStartMonth: {
19
- type: StringConstructor;
20
- reflect: boolean;
21
- };
22
- /**
23
- * The date that determines the currently visible month.
24
- */
25
- centralDate: {
26
- type: StringConstructor;
27
- reflect: boolean;
28
- };
29
- /**
30
- * The starting date of the selected range.
31
- */
32
- dateFrom: {
33
- type: StringConstructor;
34
- };
35
- /**
36
- * The ending date of the selected range.
37
- */
38
- dateTo: {
39
- type: StringConstructor;
40
- };
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: {
52
- type: BooleanConstructor;
53
- reflect: boolean;
54
- };
55
- /**
56
- * If declared, make bib.fullscreen.headline in HeadingDisplay.
57
- * Otherwise, Heading 600.
58
- */
59
- largeFullscreenHeadline: {
60
- type: BooleanConstructor;
61
- reflect: boolean;
62
- };
63
- /**
64
- * Maximum date. All dates after will be disabled.
65
- */
66
- maxDate: {
67
- type: StringConstructor;
68
- reflect: boolean;
69
- };
70
- /**
71
- * Minimum date. All dates before will be disabled.
72
- */
73
- minDate: {
74
- type: StringConstructor;
75
- reflect: boolean;
76
- };
77
- /**
78
- * Mobile breakpoint for responsive design.
79
- * @private
80
- */
81
- mobileBreakpoint: {
82
- type: NumberConstructor;
83
- reflect: boolean;
84
- };
85
- /**
86
- * @private
87
- */
88
- monthFirst: {
89
- type: BooleanConstructor;
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
- };
105
- };
106
- /**
107
- * @private
108
- */
109
- private util;
110
- /**
111
- * @private
112
- */
113
- private utilCal;
114
- /**
115
- * @private
116
- */
117
- private utilCalRender;
118
- calendarStartDate: any;
119
- calendarEndDate: any;
120
- centralDate: any;
121
- showPrevMonthBtn: boolean;
122
- showNextMonthBtn: boolean;
123
- visible: boolean;
124
- largeFullscreenHeadline: boolean;
125
- isFullscreen: boolean;
126
- /**
127
- * @private
128
- */
129
- private firstMonthRenderable;
130
- /**
131
- * @private
132
- */
133
- private calendarRangeMonths;
134
- /**
135
- * @private
136
- */
137
- private numCalendars;
138
- /**
139
- * @private
140
- */
141
- private slots;
142
- /**
143
- * @private
144
- */
145
- private bibtemplateTag;
146
- /**
147
- * @private
148
- */
149
- private buttonTag;
150
- dropdown: any;
151
- /**
152
- * Renders all of the auro-calendar-months HTML.
153
- * @private
154
- * @returns {Object} Returns the auro-calendar-months HTML.
155
- */
156
- private renderAllCalendars;
157
- firstRenderedMonth: any;
158
- /**
159
- * Focuses the close button inside the calendar's bibtemplate.
160
- * Used by datepicker to set initial focus when the fullscreen dialog opens.
161
- * @returns {void}
162
- */
163
- focusCloseButton(): void;
164
- /**
165
- * Request the calendar be scrolled to a given date.
166
- * @param {String} date - The date to scroll into view.
167
- * @returns {void}
168
- */
169
- scrollMonthIntoView(date: string): void;
170
- injectSlot(slotName: any, nodes: any): void;
171
- render(): import("lit-html").TemplateResult;
172
- }
173
- import { RangeDatepicker } from './vendor/wc-range-datepicker/range-datepicker.js';