@aurodesignsystem-dev/auro-formkit 0.0.0-pr1413.2 → 0.0.0-pr1419.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
File without changes
@@ -1,142 +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
- # Checkbox
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
- `<auro-checkbox>` is a [HTML custom element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) for the purpose of allowing users to select one or more options of a limited number of choices.
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
- ## Checkbox 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-checkbox>` element should be used in situations where users may:
36
-
37
- * Be filling out a form
38
- * Need to select one or more options
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-checkbox/+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 { AuroCheckbox, AuroCheckboxGroup } from '@aurodesignsystem/auro-formkit/auro-checkbox/class';
112
-
113
- // Register with a custom name if desired
114
- AuroCheckbox.register('custom-checkbox');
115
- AuroCheckboxGroup.register('custom-checkbox-group');
116
- ```
117
-
118
- This will create a new custom element `<custom-checkbox>` and `<custom-checkbox-group>` that behaves exactly like `<auro-checkbox>` and `<auro-checkbox-group>`, allowing both to coexist on the same page without interfering with each other.
119
-
120
- <div class="exampleWrapper exampleWrapper--flex">
121
- <custom-checkbox-group>
122
- <span slot="legend">Form label goes here</span>
123
- <custom-checkbox value="value1" name="custom" id="checkbox-custom1">Custom checkbox option</custom-checkbox>
124
- <custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked>Custom checkbox option</custom-checkbox>
125
- <custom-checkbox value="value3" name="custom" id="checkbox-custom3">Custom checkbox option</custom-checkbox>
126
- <custom-checkbox value="value4" name="custom" id="checkbox-custom4">Custom checkbox option</custom-checkbox>
127
- </custom-checkbox-group>
128
- </div>
129
- <auro-accordion alignRight>
130
- <span slot="trigger">See code</span>
131
-
132
- ```html
133
- <custom-checkbox-group>
134
- <span slot="legend">Form label goes here</span>
135
- <custom-checkbox value="value1" name="custom" id="checkbox-custom1">Custom checkbox option</custom-checkbox>
136
- <custom-checkbox value="value2" name="custom" id="checkbox-custom2" checked>Custom checkbox option</custom-checkbox>
137
- <custom-checkbox value="value3" name="custom" id="checkbox-custom3">Custom checkbox option</custom-checkbox>
138
- <custom-checkbox value="value4" name="custom" id="checkbox-custom4">Custom checkbox option</custom-checkbox>
139
- </custom-checkbox-group>
140
- ```
141
- </auro-accordion>
142
- <!-- AURO-GENERATED-CONTENT:END -->
@@ -1,176 +0,0 @@
1
- /**
2
- * The `auro-checkbox-group` element is a wrapper for `auro-checkbox` elements.
3
- * @customElement auro-checkbox-group
4
- *
5
- * @slot legend - Allows for the legend to be overridden.
6
- * @slot optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
7
- * @slot helpText - Allows for the helper text to be overridden.
8
- * @slot default - The default slot for the checkbox items.
9
- * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
10
- */
11
- export class AuroCheckboxGroup extends LitElement {
12
- static get styles(): import("lit").CSSResult[];
13
- static get properties(): {
14
- /**
15
- * Defines whether the component will be on lighter or darker backgrounds.
16
- * @type {'default' | 'inverse'}
17
- * @default 'default'
18
- */
19
- appearance: "default" | "inverse";
20
- /**
21
- * If set, disables the checkbox group.
22
- */
23
- disabled: {
24
- type: BooleanConstructor;
25
- reflect: boolean;
26
- };
27
- /**
28
- * When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
29
- */
30
- error: {
31
- type: StringConstructor;
32
- reflect: boolean;
33
- };
34
- /**
35
- * If set, checkboxes will be aligned horizontally.
36
- */
37
- horizontal: {
38
- type: BooleanConstructor;
39
- reflect: boolean;
40
- };
41
- /**
42
- * If set, disables auto-validation on blur.
43
- */
44
- noValidate: {
45
- type: BooleanConstructor;
46
- reflect: boolean;
47
- };
48
- /**
49
- * DEPRECATED - use `appearance="inverse"` instead.
50
- */
51
- onDark: {
52
- type: BooleanConstructor;
53
- reflect: boolean;
54
- };
55
- /**
56
- * Populates the `required` attribute on the element. Used for client-side validation.
57
- */
58
- required: {
59
- type: BooleanConstructor;
60
- reflect: boolean;
61
- };
62
- /**
63
- * Sets a custom help text message to display for all validityStates.
64
- */
65
- setCustomValidity: {
66
- type: StringConstructor;
67
- };
68
- /**
69
- * Custom help text message to display when validity = `customError`.
70
- */
71
- setCustomValidityCustomError: {
72
- type: StringConstructor;
73
- };
74
- /**
75
- * Custom help text message to display when validity = `valueMissing`.
76
- */
77
- setCustomValidityValueMissing: {
78
- type: StringConstructor;
79
- };
80
- /**
81
- * Specifies the `validityState` this element is in.
82
- */
83
- validity: {
84
- type: StringConstructor;
85
- reflect: boolean;
86
- };
87
- };
88
- /**
89
- * This will register this element with the browser.
90
- * @param {string} [name="auro-checkbox-group"] - The name of the element that you want to register.
91
- *
92
- * @example
93
- * AuroCheckboxGroup.register("custom-checkbox-group") // this will register this element to <custom-checkbox-group/>
94
- *
95
- */
96
- static register(name?: string): void;
97
- _initializeDefaults(): void;
98
- appearance: string;
99
- validity: any;
100
- disabled: any;
101
- required: boolean;
102
- horizontal: boolean;
103
- onDark: boolean;
104
- /**
105
- * Indicates whether the checkbox group is in a dirty state (has been interacted with).
106
- * @type {boolean}
107
- * @default false
108
- * @private
109
- */
110
- private touched;
111
- /**
112
- * @private
113
- */
114
- private value;
115
- /**
116
- * @private
117
- */
118
- private index;
119
- /**
120
- * @private
121
- */
122
- private maxNumber;
123
- /**
124
- * @private
125
- */
126
- private validation;
127
- /**
128
- * @private
129
- */
130
- private runtimeUtils;
131
- /**
132
- * @private
133
- */
134
- private helpTextTag;
135
- /**
136
- * Helper method to handle checkbox value changing.
137
- * @private
138
- * @param {String} value - The value of the checkbox.
139
- * @param {Boolean} selected - The checked state of the checkbox.
140
- * @returns {void}
141
- */
142
- private handleValueUpdate;
143
- firstUpdated(): void;
144
- focusWithin: boolean;
145
- /**
146
- * Helper method that handles the state of preselected checkboxes.
147
- * @private
148
- * @returns {void}
149
- */
150
- private handlePreselectedItems;
151
- /**
152
- * Helper method that handles the state of checkboxes.
153
- * @private
154
- * @returns {void}
155
- */
156
- private handleItems;
157
- checkboxes: Element[];
158
- /**
159
- * Resets component to initial state.
160
- * @returns {void}
161
- */
162
- reset(): void;
163
- /**
164
- * LitElement lifecycle method. Called after the DOM has been updated.
165
- * @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
166
- * @returns {void}
167
- */
168
- updated(changedProperties: Map<string, any>): void;
169
- /**
170
- * Validates value.
171
- * @param {boolean} [force=false] - Whether to force validation.
172
- */
173
- validate(force?: boolean): void;
174
- render(): import("lit-html").TemplateResult;
175
- }
176
- import { LitElement } from 'lit';
@@ -1,209 +0,0 @@
1
- /**
2
- * The `auro-checkbox` element is for the purpose of allowing users to select one or more options of a limited number of choices.
3
- * @customElement auro-checkbox
4
- *
5
- * @csspart checkbox - apply css to a specific checkbox.
6
- * @csspart checkbox-input - apply css to a specific checkbox's input.
7
- * @csspart checkbox-label - apply css to a specific checkbox's label.
8
- *
9
- * @slot default - The default slot for the checkbox label.
10
- *
11
- * @fires {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
12
- * @fires {InputEvent} input - Notifies when when checked value is changed by user's interface.
13
- */
14
- export class AuroCheckbox extends LitElement {
15
- static get styles(): import("lit").CSSResult[];
16
- static get properties(): {
17
- /**
18
- * Defines whether the component will be on lighter or darker backgrounds.
19
- * @type {'default' | 'inverse'}
20
- * @default 'default'
21
- */
22
- appearance: "default" | "inverse";
23
- /**
24
- * If set to true, the checkbox will be filled with a checkmark.
25
- */
26
- checked: {
27
- type: BooleanConstructor;
28
- reflect: boolean;
29
- };
30
- /**
31
- * If set to true, the checkbox will not be clickable.
32
- */
33
- disabled: {
34
- type: BooleanConstructor;
35
- reflect: boolean;
36
- };
37
- /**
38
- * If set to true, the checkbox will be displayed with an error state.
39
- */
40
- error: {
41
- type: BooleanConstructor;
42
- reflect: boolean;
43
- };
44
- /**
45
- * The id global attribute defines an identifier (ID) which must be unique in the whole document.
46
- */
47
- id: {
48
- type: StringConstructor;
49
- };
50
- /**
51
- * The id for input node.
52
- * @private
53
- */
54
- inputId: {
55
- type: StringConstructor;
56
- reflect: boolean;
57
- attribute: boolean;
58
- };
59
- /**
60
- * Accepts any string and is used to identify related checkboxes when submitting form data.
61
- */
62
- name: {
63
- type: StringConstructor;
64
- };
65
- /**
66
- * DEPRECATED - use `appearance="inverse"` instead.
67
- */
68
- onDark: {
69
- type: BooleanConstructor;
70
- reflect: boolean;
71
- };
72
- /**
73
- * Indicates whether the checkbox has been interacted with.
74
- * @private
75
- */
76
- touched: {
77
- type: BooleanConstructor;
78
- reflect: boolean;
79
- attribute: boolean;
80
- };
81
- /**
82
- * Sets the element's input value. Must be unique within an auro-checkbox-group element.
83
- */
84
- value: {
85
- type: StringConstructor;
86
- reflect: boolean;
87
- };
88
- /**
89
- * The tabindex attribute for the checkbox.
90
- * @private
91
- */
92
- tabIndex: {
93
- type: NumberConstructor;
94
- reflect: boolean;
95
- attribute: string;
96
- };
97
- /**
98
- * The aria-checked attribute for the checkbox.
99
- * @private
100
- */
101
- ariaChecked: {
102
- type: StringConstructor;
103
- reflect: boolean;
104
- attribute: string;
105
- };
106
- /**
107
- * The aria-disabled attribute for the checkbox.
108
- * @private
109
- */
110
- ariaDisabled: {
111
- type: StringConstructor;
112
- reflect: boolean;
113
- attribute: string;
114
- };
115
- /**
116
- * The ARIA role for the element. Must remain 'checkbox' for screen readers
117
- * to correctly identify this as a checkbox control.
118
- * @private
119
- */
120
- role: {
121
- type: StringConstructor;
122
- reflect: boolean;
123
- };
124
- };
125
- /**
126
- * This will register this element with the browser.
127
- * @param {string} [name="auro-checkbox"] - The name of element that you want to register to.
128
- *
129
- * @example
130
- * AuroCheckbox.register("custom-checkbox") // this will register this element to <custom-checkbox/>
131
- *
132
- */
133
- static register(name?: string): void;
134
- _initializeDefaults(): void;
135
- apperance: string;
136
- checked: any;
137
- disabled: boolean;
138
- error: boolean;
139
- onDark: boolean;
140
- touched: boolean;
141
- /**
142
- * @private
143
- */
144
- private runtimeUtils;
145
- /**
146
- * Handles the change event for the checkbox input.
147
- * Updates the checked state and dispatches a corresponding custom event.
148
- * This custom event is only for the purpose of supporting IE.
149
- * @private
150
- * @param {Event} event - The change event from the checkbox input.
151
- * @returns {void}
152
- */
153
- private handleChange;
154
- /**
155
- * Handles the input event for the checkbox input.
156
- * Updates the checked state and dispatches a custom 'auroCheckbox-input' event.
157
- * @private
158
- * @param {Event} event - The input event from the checkbox input.
159
- * @returns {void}
160
- */
161
- private handleInput;
162
- /**
163
- * Function to support @focusin event.
164
- * @private
165
- * @returns {void}
166
- */
167
- private handleFocusin;
168
- /**
169
- * Function to generate checkmark svg.
170
- * @private
171
- * @returns {HTMLElement}
172
- */
173
- private generateIconHtml;
174
- dom: Document;
175
- svg: ChildNode;
176
- /**
177
- * Resets component to initial state.
178
- * @returns {void}
179
- */
180
- reset(): void;
181
- /**
182
- * Updates the aria-label based on slot content.
183
- * @private
184
- * @returns {void}
185
- */
186
- private updateAriaLabel;
187
- firstUpdated(): void;
188
- inputId: string;
189
- /**
190
- * Handles keydown event to toggle the checkbox with Space key.
191
- * @private
192
- * @param {KeyboardEvent} event - The keydown event from the checkbox input.
193
- * @returns {void}
194
- */
195
- private handleKeyDown;
196
- /**
197
- * Updates ARIA attributes when properties change.
198
- * @private
199
- * @param {Map} changedProperties - Map of changed properties.
200
- * @returns {void}
201
- */
202
- private updated;
203
- /**
204
- * @private
205
- * @returns {HTMLElement}
206
- */
207
- private render;
208
- }
209
- import { LitElement } from "lit";
@@ -1,3 +0,0 @@
1
- import { AuroCheckbox } from './auro-checkbox.js';
2
- import { AuroCheckboxGroup } from './auro-checkbox-group.js';
3
- export { AuroCheckbox, AuroCheckboxGroup };