@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,134 +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
- # Input
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
- Use the `<auro-input>` custom element to create basic single-line text fields. Supports type `text`, `password`, and `email` with validation, required input, error states and a secondary `bordered` theme. Use the slots `label` and `helpText` for additional content support.
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:END -->
29
-
30
- ## Input Use Cases
31
-
32
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
33
- <!-- The below content is automatically added from ./docs/partials/useCases.md -->
34
- The `<auro-input>` element should be used in situations where users may:
35
-
36
- * needs to enter information
37
- * be filling out a form
38
- <!-- AURO-GENERATED-CONTENT:END -->
39
-
40
- ## Getting Started
41
-
42
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
43
- <!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
44
-
45
- #### NPM Installation
46
-
47
- ```shell
48
- $ npm i @aurodesignsystem/auro-formkit
49
- ```
50
- <!-- AURO-GENERATED-CONTENT:END -->
51
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
52
- <!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
53
-
54
- ### TypeScript Module Resolution
55
-
56
- When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
57
-
58
- ```json
59
- {
60
- "compilerOptions": {
61
- "moduleResolution": "bundler"
62
- }
63
- }
64
- ```
65
-
66
- This configuration enables proper module resolution for the component's TypeScript files.
67
- <!-- AURO-GENERATED-CONTENT:END -->
68
-
69
- ## Install from CDN
70
-
71
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
72
- <!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
73
- 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.
74
-
75
- ```html
76
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-input/+esm"></script>
77
- ```
78
- <!-- AURO-GENERATED-CONTENT:END -->
79
-
80
- ## Formkit Development
81
-
82
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
83
- <!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
84
-
85
- ### Filtering
86
-
87
- Running the `dev` command will open a `localhost` development server for all components in the monorepo at once.
88
-
89
- To only develop a single component, use the `--filter` flag:
90
-
91
- ```shell
92
- npx turbo dev --filter=@aurodesignsystem/auro-input
93
- ```
94
- <!-- AURO-GENERATED-CONTENT:END -->
95
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
96
- <!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
97
-
98
- ## Custom Component Registration for Version Management
99
-
100
- 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.
101
-
102
- When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
103
-
104
- 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.
105
-
106
- You can do this by importing only the component class and using the `register(name)` method with a unique name:
107
-
108
- ```js
109
- // Import the class only
110
- import { AuroInput } from '@aurodesignsystem/auro-formkit/auro-input/class';
111
-
112
- // Register with a custom name if desired
113
- AuroInput.register('custom-input');
114
- ```
115
-
116
- This will create a new custom element `<custom-input>` that behaves exactly like `<auro-input>`, allowing both to coexist on the same page without interfering with each other.
117
-
118
- <div class="exampleWrapper exampleWrapper--flex">
119
- <custom-input>
120
- <span slot="label">Label</span>
121
- <span slot="helpText">Help Text</span>
122
- </custom-input>
123
- </div>
124
- <auro-accordion alignRight>
125
- <span slot="trigger">See code</span>
126
-
127
- ```html
128
- <custom-input>
129
- <span slot="label">Label</span>
130
- <span slot="helpText">Help Text</span>
131
- </custom-input>
132
- ```
133
- </auro-accordion>
134
- <!-- AURO-GENERATED-CONTENT:END -->
@@ -1,195 +0,0 @@
1
- /**
2
- * The `auro-input` element provides users a way to enter data into a text field.
3
- * @customElement auro-input
4
- *
5
- * @slot ariaLabel.clear - Sets aria-label on clear button for screen reader to read
6
- * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
7
- * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
8
- * @slot helpText - Sets the help text displayed below the input.
9
- * @slot label - Sets the label text for the input.
10
- * @slot optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
11
- * @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
12
- * @csspart wrapper - Use for customizing the style of the root element
13
- * @csspart label - Use for customizing the style of the label element
14
- * @csspart helpText - Use for customizing the style of the helpText element
15
- * @csspart input - Use for customizing the style of the input element
16
- * @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
17
- * @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
18
- * @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
19
- * @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
20
- * @csspart displayValue - Use for customizing the style of the displayValue element
21
- * @csspart inputHelpText - Use for customizing the style of the input help text wrapper
22
- */
23
- export class AuroInput extends BaseInput {
24
- static get styles(): import("lit").CSSResult[];
25
- /**
26
- * This will register this element with the browser.
27
- * @param {string} [name="auro-input"] - The name of the element that you want to register.
28
- *
29
- * @example
30
- * AuroInput.register("custom-input") // this will register this element to <custom-input/>
31
- *
32
- */
33
- static register(name?: string): void;
34
- /**
35
- * @private
36
- */
37
- private buttonTag;
38
- /**
39
- * @private
40
- */
41
- private hasDisplayValueContent;
42
- /**
43
- * @private
44
- */
45
- private helpTextTag;
46
- /**
47
- * @private
48
- */
49
- private iconTag;
50
- /**
51
- * Determines if the HTML input element should be visually hidden.
52
- * Returns true when display value content exists without focus and has a value,
53
- * or when the input has no value, is not focused, and has no placeholder text.
54
- * @returns {boolean} - True if the input should be visually hidden, false otherwise.
55
- * @private
56
- */
57
- private get inputHidden();
58
- /**
59
- * Determines if the input should display in a state with no focus or value indication.
60
- * Returns true when the input has display content without focus and has a value,
61
- * or when the input has no value and is not focused.
62
- * @returns {boolean} - True if the input should show no focus or value state, false otherwise.
63
- * @private
64
- */
65
- private get noFocusOrValue();
66
- /**
67
- * Whether the label is being hidden currently based on state.
68
- * @returns {boolean} - Returns true if the label is hidden.
69
- * @private
70
- */
71
- private get labelHidden();
72
- /**
73
- * Returns the label font class based on layout and visibility state.
74
- * @private
75
- * @returns {string} - The font class for the label.
76
- */
77
- private get labelFontClass();
78
- /**
79
- * Returns the input font class based on layout and visibility state.
80
- * @private
81
- * @returns {string} - The font class for the input.
82
- */
83
- private get inputFontClass();
84
- /**
85
- * Returns classmap configuration for html5 input labels in all layouts.
86
- * @private
87
- * @returns {Record<string, boolean>}
88
- */
89
- private get commonLabelClasses();
90
- /**
91
- * Returns classmap configuration for html5 inputs in all layouts.
92
- * @private
93
- * @returns {Record<string, boolean>} - Returns classmap.
94
- */
95
- private get commonInputClasses();
96
- /**
97
- * Common display value wrapper classes.
98
- * @private
99
- * @returns {Record<string, boolean>}
100
- */
101
- private get commonDisplayValueWrapperClasses();
102
- /**
103
- * Returns classmap configuration for html5 inputs in each layout.
104
- * @private
105
- * @returns {object} - Returns classmap.
106
- */
107
- private get legacyInputClasses();
108
- /**
109
- * Returns classmap configuration for wrapper elements in each layout.
110
- * @private
111
- * @returns {object} - Returns classmap.
112
- */
113
- private get commonWrapperClasses();
114
- /**
115
- * Returns classmap configuration for helpText elements in each layout.
116
- * @private
117
- * @returns {object} - Returns classmap.
118
- */
119
- private get helpTextClasses();
120
- /**
121
- * Function to determine if the input is meant to render an icon visualizing the input type.
122
- * @private
123
- * @returns {boolean} - Returns true if the input type is meant to render an icon.
124
- */
125
- private hasTypeIcon;
126
- /**
127
- * Function to determine if there is any displayValue content to render.
128
- * @private
129
- * @returns {void}
130
- */
131
- private checkDisplayValueSlotChange;
132
- /**
133
- * Returns HTML for the validation error icon.
134
- * @private
135
- * @returns {html} - Returns HTML for the validation error icon.
136
- */
137
- private renderValidationErrorIconHtml;
138
- /**
139
- * Returns HTML for the HTML5 input element.
140
- * @private
141
- * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
142
- * @returns {html} - Returns HTML for the HTML5 input element.
143
- */
144
- private renderHtmlInput;
145
- /**
146
- * Returns HTML for the clear action button.
147
- * @private
148
- * @returns {html} - Returns HTML for the clear action button.
149
- */
150
- private renderHtmlActionClear;
151
- /**
152
- * Returns HTML for the show password button.
153
- * @private
154
- * @returns {html} - Returns HTML for the show password button.
155
- */
156
- private renderHtmlNotificationPassword;
157
- /**
158
- * Returns HTML for the input type icon.
159
- * @private
160
- * @returns {html} - Returns HTML for the input type icon.
161
- */
162
- private renderHtmlTypeIcon;
163
- /**
164
- * Returns HTML for the help text and error message.
165
- * @private
166
- * @returns {html} - Returns HTML for the help text and error message.
167
- */
168
- private renderHtmlHelpText;
169
- /**
170
- * Returns HTML for the classic layout.
171
- * @private
172
- * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
173
- */
174
- private renderLayoutClassic;
175
- /**
176
- * Returns HTML for the emphasized layout. Does not support type="*".
177
- * @private
178
- * @returns {html} - Returns HTML for the emphasized layout.
179
- */
180
- private renderLayoutEmphasized;
181
- /**
182
- * Returns HTML for the emphasized layout. Does not support type="*".
183
- * @private
184
- * @returns {html} - Returns HTML for the emphasized layout.
185
- */
186
- private renderLayoutSnowflake;
187
- /**
188
- * Logic to determine the layout of the component.
189
- * @private
190
- * @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
191
- * @returns {void}
192
- */
193
- private renderLayout;
194
- }
195
- import BaseInput from './base-input.js';