q2-tecton-elements 1.18.0 → 1.19.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 (255) hide show
  1. package/dist/cjs/click-elsewhere.cjs.entry.js +1 -1
  2. package/dist/cjs/{icons-e2bc9ee9.js → icons-afbdf88a.js} +1 -1
  3. package/dist/cjs/{index-eccd5617.js → index-3518c78c.js} +1 -1
  4. package/dist/cjs/{index-0128397d.js → index-734296a7.js} +476 -271
  5. package/dist/cjs/loader.cjs.js +3 -3
  6. package/dist/cjs/q2-avatar.cjs.entry.js +9 -6
  7. package/dist/cjs/q2-badge_2.cjs.entry.js +46 -7
  8. package/dist/cjs/q2-btn_2.cjs.entry.js +30 -5
  9. package/dist/cjs/q2-calendar.cjs.entry.js +89 -62
  10. package/dist/cjs/q2-card.cjs.entry.js +17 -6
  11. package/dist/cjs/q2-carousel-pane.cjs.entry.js +7 -3
  12. package/dist/cjs/q2-carousel.cjs.entry.js +196 -285
  13. package/dist/cjs/q2-chart-donut.cjs.entry.js +583 -504
  14. package/dist/cjs/q2-checkbox-group.cjs.entry.js +9 -7
  15. package/dist/cjs/q2-checkbox.cjs.entry.js +17 -4
  16. package/dist/cjs/q2-dropdown-item.cjs.entry.js +9 -3
  17. package/dist/cjs/q2-dropdown.cjs.entry.js +16 -5
  18. package/dist/cjs/q2-editable-field.cjs.entry.js +16 -6
  19. package/dist/cjs/q2-icon.cjs.entry.js +6 -4
  20. package/dist/cjs/q2-loading-element.cjs.entry.js +6 -2
  21. package/dist/cjs/q2-loc.cjs.entry.js +5 -3
  22. package/dist/cjs/q2-message.cjs.entry.js +4 -3
  23. package/dist/cjs/q2-month-picker.cjs.entry.js +9 -7
  24. package/dist/cjs/q2-optgroup.cjs.entry.js +6 -5
  25. package/dist/cjs/q2-option-list_2.cjs.entry.js +21 -7
  26. package/dist/cjs/q2-option.cjs.entry.js +12 -2
  27. package/dist/cjs/q2-pagination.cjs.entry.js +11 -3
  28. package/dist/cjs/q2-pill.cjs.entry.js +25 -7
  29. package/dist/cjs/q2-radio-group.cjs.entry.js +13 -6
  30. package/dist/cjs/q2-radio.cjs.entry.js +13 -8
  31. package/dist/cjs/q2-section.cjs.entry.js +9 -4
  32. package/dist/cjs/q2-select.cjs.entry.js +26 -17
  33. package/dist/cjs/q2-stepper-pane.cjs.entry.js +8 -3
  34. package/dist/cjs/q2-stepper-vertical.cjs.entry.js +5 -4
  35. package/dist/cjs/q2-stepper.cjs.entry.js +9 -7
  36. package/dist/cjs/q2-tab-container.cjs.entry.js +14 -9
  37. package/dist/cjs/q2-tab-pane.cjs.entry.js +10 -2
  38. package/dist/cjs/q2-tag.cjs.entry.js +20 -7
  39. package/dist/cjs/q2-tecton-elements.cjs.js +3 -3
  40. package/dist/cjs/q2-textarea.cjs.entry.js +20 -4
  41. package/dist/cjs/q2-tooltip.cjs.entry.js +9 -3
  42. package/dist/cjs/{shapes-c1a60d46.js → shapes-aad2b98f.js} +1 -1
  43. package/dist/cjs/tecton-tab-pane.cjs.entry.js +17 -2
  44. package/dist/collection/collection-manifest.json +2 -2
  45. package/dist/collection/components/click-elsewhere/index.js +18 -17
  46. package/dist/collection/components/q2-avatar/index.js +100 -92
  47. package/dist/collection/components/q2-avatar/styles.css +1 -1
  48. package/dist/collection/components/q2-badge/index.js +119 -111
  49. package/dist/collection/components/q2-badge/styles.css +1 -1
  50. package/dist/collection/components/q2-btn/index.js +349 -322
  51. package/dist/collection/components/q2-btn/styles.css +7 -7
  52. package/dist/collection/components/q2-calendar/index.js +565 -551
  53. package/dist/collection/components/q2-calendar/q2-month-picker.css +1 -1
  54. package/dist/collection/components/q2-calendar/q2-month-picker.js +112 -116
  55. package/dist/collection/components/q2-calendar/styles.css +1 -1
  56. package/dist/collection/components/q2-card/index.js +262 -244
  57. package/dist/collection/components/q2-card/styles.css +9 -2
  58. package/dist/collection/components/q2-carousel/index.js +249 -253
  59. package/dist/collection/components/q2-carousel/styles.css +1 -1
  60. package/dist/collection/components/q2-carousel-pane/index.js +108 -96
  61. package/dist/collection/components/q2-carousel-pane/styles.css +5 -4
  62. package/dist/collection/components/q2-chart-donut/index.js +350 -334
  63. package/dist/collection/components/q2-chart-donut/styles.css +3 -3
  64. package/dist/collection/components/q2-checkbox/index.js +296 -287
  65. package/dist/collection/components/q2-checkbox/styles.css +2 -2
  66. package/dist/collection/components/q2-checkbox-group/index.js +156 -152
  67. package/dist/collection/components/q2-checkbox-group/styles.css +1 -1
  68. package/dist/collection/components/q2-dropdown/index.js +255 -240
  69. package/dist/collection/components/q2-dropdown/styles.css +1 -1
  70. package/dist/collection/components/q2-dropdown-item/index.js +134 -123
  71. package/dist/collection/components/q2-dropdown-item/styles.css +12 -10
  72. package/dist/collection/components/q2-editable-field/index.js +300 -293
  73. package/dist/collection/components/q2-editable-field/styles.css +1 -1
  74. package/dist/collection/components/q2-icon/icons.js +358 -2158
  75. package/dist/collection/components/q2-icon/index.js +59 -49
  76. package/dist/collection/components/q2-icon/styles.css +1 -1
  77. package/dist/collection/components/q2-input/index.js +729 -705
  78. package/dist/collection/components/q2-input/styles.css +2 -2
  79. package/dist/collection/components/q2-loading/index.js +143 -132
  80. package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js +85 -74
  81. package/dist/collection/components/q2-loading/skeleton/shapes.js +23 -36
  82. package/dist/collection/components/q2-loading/styles.css +1 -1
  83. package/dist/collection/components/q2-loc/index.js +49 -39
  84. package/dist/collection/components/q2-loc/styles.css +1 -1
  85. package/dist/collection/components/q2-message/index.js +101 -92
  86. package/dist/collection/components/q2-message/styles.css +1 -1
  87. package/dist/collection/components/q2-optgroup/index.js +64 -56
  88. package/dist/collection/components/q2-optgroup/styles.css +1 -1
  89. package/dist/collection/components/q2-option/index.js +244 -229
  90. package/dist/collection/components/q2-option/styles.css +5 -1
  91. package/dist/collection/components/q2-option-list/index.js +291 -270
  92. package/dist/collection/components/q2-option-list/styles.css +1 -1
  93. package/dist/collection/components/q2-pagination/index.js +183 -179
  94. package/dist/collection/components/q2-pagination/styles.css +1 -1
  95. package/dist/collection/components/q2-pill/index.js +260 -208
  96. package/dist/collection/components/q2-pill/styles.css +1 -1
  97. package/dist/collection/components/q2-popover/index.js +169 -151
  98. package/dist/collection/components/q2-popover/styles.css +2 -2
  99. package/dist/collection/components/q2-radio/index.js +233 -224
  100. package/dist/collection/components/q2-radio/styles.css +3 -3
  101. package/dist/collection/components/q2-radio-group/index.js +252 -244
  102. package/dist/collection/components/q2-radio-group/styles.css +1 -1
  103. package/dist/collection/components/q2-section/index.js +134 -125
  104. package/dist/collection/components/q2-section/styles.css +12 -1
  105. package/dist/collection/components/q2-select/index.js +393 -381
  106. package/dist/collection/components/q2-select/styles.css +1 -1
  107. package/dist/collection/components/q2-stepper/index.js +124 -126
  108. package/dist/collection/components/q2-stepper/styles.css +2 -1
  109. package/dist/collection/components/q2-stepper-pane/index.js +165 -149
  110. package/dist/collection/components/q2-stepper-pane/styles.css +1 -1
  111. package/dist/collection/components/q2-stepper-vertical/index.js +86 -85
  112. package/dist/collection/components/q2-stepper-vertical/styles.css +1 -1
  113. package/dist/collection/components/q2-tab-container/index.js +189 -184
  114. package/dist/collection/components/q2-tab-container/styles.css +1 -1
  115. package/dist/collection/components/q2-tab-pane/index.js +185 -166
  116. package/dist/collection/components/q2-tab-pane/styles.css +1 -1
  117. package/dist/collection/components/q2-tag/index.js +168 -116
  118. package/dist/collection/components/q2-tag/styles.css +1 -1
  119. package/dist/collection/components/q2-textarea/index.js +344 -327
  120. package/dist/collection/components/q2-textarea/styles.css +2 -2
  121. package/dist/collection/components/q2-tooltip/index.js +147 -133
  122. package/dist/collection/components/q2-tooltip/styles.css +1 -1
  123. package/dist/collection/components/tecton-tab-pane/index.js +287 -266
  124. package/dist/collection/components/tecton-tab-pane/styles.css +1 -1
  125. package/dist/collection/utils/index.js +2 -6
  126. package/dist/esm/click-elsewhere.entry.js +1 -1
  127. package/dist/esm/{icons-ed54e307.js → icons-78da5dd2.js} +1 -1
  128. package/dist/esm/{index-eac6b89e.js → index-9c591682.js} +1 -1
  129. package/dist/esm/{index-6d5ed7cc.js → index-bb1c8c7f.js} +476 -271
  130. package/dist/esm/loader.js +3 -3
  131. package/dist/esm/polyfills/css-shim.js +1 -1
  132. package/dist/esm/q2-avatar.entry.js +9 -6
  133. package/dist/esm/q2-badge_2.entry.js +46 -7
  134. package/dist/esm/q2-btn_2.entry.js +30 -5
  135. package/dist/esm/q2-calendar.entry.js +89 -62
  136. package/dist/esm/q2-card.entry.js +17 -6
  137. package/dist/esm/q2-carousel-pane.entry.js +7 -3
  138. package/dist/esm/q2-carousel.entry.js +196 -285
  139. package/dist/esm/q2-chart-donut.entry.js +583 -504
  140. package/dist/esm/q2-checkbox-group.entry.js +9 -7
  141. package/dist/esm/q2-checkbox.entry.js +17 -4
  142. package/dist/esm/q2-dropdown-item.entry.js +9 -3
  143. package/dist/esm/q2-dropdown.entry.js +16 -5
  144. package/dist/esm/q2-editable-field.entry.js +16 -6
  145. package/dist/esm/q2-icon.entry.js +6 -4
  146. package/dist/esm/q2-loading-element.entry.js +6 -2
  147. package/dist/esm/q2-loc.entry.js +5 -3
  148. package/dist/esm/q2-message.entry.js +4 -3
  149. package/dist/esm/q2-month-picker.entry.js +9 -7
  150. package/dist/esm/q2-optgroup.entry.js +6 -5
  151. package/dist/esm/q2-option-list_2.entry.js +21 -7
  152. package/dist/esm/q2-option.entry.js +12 -2
  153. package/dist/esm/q2-pagination.entry.js +11 -3
  154. package/dist/esm/q2-pill.entry.js +25 -7
  155. package/dist/esm/q2-radio-group.entry.js +13 -6
  156. package/dist/esm/q2-radio.entry.js +13 -8
  157. package/dist/esm/q2-section.entry.js +9 -4
  158. package/dist/esm/q2-select.entry.js +26 -17
  159. package/dist/esm/q2-stepper-pane.entry.js +8 -3
  160. package/dist/esm/q2-stepper-vertical.entry.js +5 -4
  161. package/dist/esm/q2-stepper.entry.js +9 -7
  162. package/dist/esm/q2-tab-container.entry.js +14 -9
  163. package/dist/esm/q2-tab-pane.entry.js +10 -2
  164. package/dist/esm/q2-tag.entry.js +20 -7
  165. package/dist/esm/q2-tecton-elements.js +3 -3
  166. package/dist/esm/q2-textarea.entry.js +20 -4
  167. package/dist/esm/q2-tooltip.entry.js +9 -3
  168. package/dist/esm/{shapes-c32e3ba2.js → shapes-62b8a431.js} +1 -1
  169. package/dist/esm/tecton-tab-pane.entry.js +17 -2
  170. package/dist/loader/package.json +1 -0
  171. package/dist/q2-tecton-elements/p-0ba564b1.entry.js +1 -0
  172. package/dist/q2-tecton-elements/p-0fad9c5a.entry.js +1 -0
  173. package/dist/q2-tecton-elements/{p-73154834.js → p-13a639cf.js} +1 -1
  174. package/dist/q2-tecton-elements/p-16c11d74.entry.js +1 -0
  175. package/dist/q2-tecton-elements/p-17e0cbf1.entry.js +1 -0
  176. package/dist/q2-tecton-elements/p-18e095af.entry.js +1 -0
  177. package/dist/q2-tecton-elements/p-2c9b1308.entry.js +1 -0
  178. package/dist/q2-tecton-elements/p-2e832e42.entry.js +1 -0
  179. package/dist/q2-tecton-elements/p-315fdb74.entry.js +1 -0
  180. package/dist/q2-tecton-elements/{p-c608e3c9.entry.js → p-444415b5.entry.js} +1 -1
  181. package/dist/q2-tecton-elements/p-4d700630.entry.js +1 -0
  182. package/dist/q2-tecton-elements/p-4f0f45e7.entry.js +1 -0
  183. package/dist/q2-tecton-elements/p-54e792bd.entry.js +1 -0
  184. package/dist/q2-tecton-elements/{p-80014da0.js → p-5e374fbd.js} +1 -1
  185. package/dist/q2-tecton-elements/p-5f064e1e.entry.js +39 -0
  186. package/dist/q2-tecton-elements/p-692f2d09.entry.js +1 -0
  187. package/dist/q2-tecton-elements/p-6e6b5b80.entry.js +1 -0
  188. package/dist/q2-tecton-elements/p-7e8f43d1.entry.js +1 -0
  189. package/dist/q2-tecton-elements/p-8e380edf.entry.js +1 -0
  190. package/dist/q2-tecton-elements/p-926a3e80.js +2 -0
  191. package/dist/q2-tecton-elements/{p-93c00587.js → p-92e1faf8.js} +1 -1
  192. package/dist/q2-tecton-elements/p-9772b15f.entry.js +1 -0
  193. package/dist/q2-tecton-elements/p-97aa8423.entry.js +1 -0
  194. package/dist/q2-tecton-elements/{p-17cffd7d.entry.js → p-a987402e.entry.js} +1 -1
  195. package/dist/q2-tecton-elements/p-aaf42539.entry.js +1 -0
  196. package/dist/q2-tecton-elements/p-ac674c20.entry.js +1 -0
  197. package/dist/q2-tecton-elements/p-b8b00394.entry.js +1 -0
  198. package/dist/q2-tecton-elements/p-c444a60b.entry.js +1 -0
  199. package/dist/q2-tecton-elements/p-c6c489fe.entry.js +1 -0
  200. package/dist/q2-tecton-elements/p-ce015552.entry.js +1 -0
  201. package/dist/q2-tecton-elements/p-d464fccc.entry.js +1 -0
  202. package/dist/q2-tecton-elements/p-de164483.entry.js +1 -0
  203. package/dist/q2-tecton-elements/p-df91e954.entry.js +1 -0
  204. package/dist/q2-tecton-elements/p-e6d26f39.entry.js +1 -0
  205. package/dist/q2-tecton-elements/p-e8e113c2.entry.js +1 -0
  206. package/dist/q2-tecton-elements/p-f1d06917.entry.js +1 -0
  207. package/dist/q2-tecton-elements/p-f800fd1e.entry.js +1 -0
  208. package/dist/q2-tecton-elements/p-fb37e67e.entry.js +1 -0
  209. package/dist/q2-tecton-elements/p-fc134a5d.entry.js +1 -0
  210. package/dist/q2-tecton-elements/p-fe88e979.entry.js +1 -0
  211. package/dist/q2-tecton-elements/p-ffb48ccc.entry.js +1 -0
  212. package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
  213. package/dist/test/helpers.js +6 -0
  214. package/dist/types/components/q2-pill/index.d.ts +3 -0
  215. package/dist/types/components/q2-tag/index.d.ts +3 -0
  216. package/dist/types/components.d.ts +154 -38
  217. package/dist/types/stencil-public-runtime.d.ts +20 -4
  218. package/dist/types/workspace/workspace/Tecton_tecton-production_master/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -0
  219. package/package.json +6 -6
  220. package/dist/q2-tecton-elements/p-02c1b7fd.entry.js +0 -1
  221. package/dist/q2-tecton-elements/p-04c743f2.entry.js +0 -1
  222. package/dist/q2-tecton-elements/p-07dc509c.entry.js +0 -1
  223. package/dist/q2-tecton-elements/p-12caa479.entry.js +0 -1
  224. package/dist/q2-tecton-elements/p-160dd1c2.entry.js +0 -1
  225. package/dist/q2-tecton-elements/p-1a3de749.entry.js +0 -1
  226. package/dist/q2-tecton-elements/p-2061c3fd.entry.js +0 -1
  227. package/dist/q2-tecton-elements/p-2a217895.entry.js +0 -1
  228. package/dist/q2-tecton-elements/p-2b94ae62.entry.js +0 -1
  229. package/dist/q2-tecton-elements/p-2e54f9a0.entry.js +0 -1
  230. package/dist/q2-tecton-elements/p-375569ff.entry.js +0 -1
  231. package/dist/q2-tecton-elements/p-3766cc6c.entry.js +0 -1
  232. package/dist/q2-tecton-elements/p-3eda2714.entry.js +0 -1
  233. package/dist/q2-tecton-elements/p-421af42d.entry.js +0 -1
  234. package/dist/q2-tecton-elements/p-4c53713d.entry.js +0 -1
  235. package/dist/q2-tecton-elements/p-4fd405f5.entry.js +0 -1
  236. package/dist/q2-tecton-elements/p-509c8924.entry.js +0 -1
  237. package/dist/q2-tecton-elements/p-55dc3dc1.entry.js +0 -1
  238. package/dist/q2-tecton-elements/p-5fffb28a.entry.js +0 -1
  239. package/dist/q2-tecton-elements/p-612e9974.entry.js +0 -1
  240. package/dist/q2-tecton-elements/p-64ca8c59.entry.js +0 -1
  241. package/dist/q2-tecton-elements/p-796c2bb5.entry.js +0 -1
  242. package/dist/q2-tecton-elements/p-86887866.entry.js +0 -1
  243. package/dist/q2-tecton-elements/p-9204c34d.entry.js +0 -1
  244. package/dist/q2-tecton-elements/p-9725d55f.entry.js +0 -1
  245. package/dist/q2-tecton-elements/p-a0fa416d.entry.js +0 -39
  246. package/dist/q2-tecton-elements/p-bd83e8e2.entry.js +0 -1
  247. package/dist/q2-tecton-elements/p-be0f2539.entry.js +0 -1
  248. package/dist/q2-tecton-elements/p-c05b0b55.entry.js +0 -1
  249. package/dist/q2-tecton-elements/p-c5691700.js +0 -1
  250. package/dist/q2-tecton-elements/p-d826d7ad.entry.js +0 -1
  251. package/dist/q2-tecton-elements/p-d9e9340c.entry.js +0 -1
  252. package/dist/q2-tecton-elements/p-e5757895.entry.js +0 -1
  253. package/dist/q2-tecton-elements/p-e68c9ef0.entry.js +0 -1
  254. package/dist/q2-tecton-elements/p-eb33bda4.entry.js +0 -1
  255. package/dist/q2-tecton-elements/p-f319549d.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Prop, Element, State, Event, h, Watch, Listen, Fragment } from '@stencil/core';
1
+ import { h, Fragment } from '@stencil/core';
2
2
  import { createGuid, labelDOM, loc, messagesDOM, setMessageHeight, handleAriaLabel, overrideFocus, isEventFromElement, } from 'src/utils';
3
3
  import formatCurrency from './formatting/currency';
4
4
  import formatPhoneNumber from './formatting/phone';
@@ -11,9 +11,6 @@ import formatDate from './formatting/date';
11
11
  import formatCreditCard from './formatting/credit-card';
12
12
  export class Q2Input {
13
13
  constructor() {
14
- this.type = 'text';
15
- this.disabled = false;
16
- this.showVisibilityToggle = false;
17
14
  this.scheduledAfterRender = [];
18
15
  this.guid = createGuid();
19
16
  ///// ACTIONS ////////
@@ -65,6 +62,43 @@ export class Q2Input {
65
62
  this.change.emit(eventDetail);
66
63
  this.inputField.focus();
67
64
  };
65
+ this.value = undefined;
66
+ this.label = undefined;
67
+ this.hideLabel = undefined;
68
+ this.type = 'text';
69
+ this.placeholder = undefined;
70
+ this.disabled = false;
71
+ this.autocomplete = undefined;
72
+ this.autocorrect = undefined;
73
+ this.autocapitalize = undefined;
74
+ this.hideMessages = undefined;
75
+ this.iconLeft = undefined;
76
+ this.iconRight = undefined;
77
+ this.readonly = undefined;
78
+ this.clearable = undefined;
79
+ this.optional = undefined;
80
+ this.min = undefined;
81
+ this.max = undefined;
82
+ this.step = undefined;
83
+ this.formatModifier = undefined;
84
+ this.maxlength = undefined;
85
+ this.pseudo = undefined;
86
+ this.showVisibilityToggle = false;
87
+ this.textHidden = undefined;
88
+ this.badgeValue = undefined;
89
+ this.badgeTheme = undefined;
90
+ this.ariaControls = undefined;
91
+ this.role = undefined;
92
+ this.ariaOwns = undefined;
93
+ this.ariaLabel = undefined;
94
+ this.ariaHaspopup = undefined;
95
+ this.ariaExpanded = undefined;
96
+ this.ariaActivedescendant = undefined;
97
+ this.current = undefined;
98
+ this.errors = undefined;
99
+ this.hints = undefined;
100
+ this.formattedValueObject = undefined;
101
+ this.hasFocus = undefined;
68
102
  }
69
103
  /////// LIFECYCLE HOOKS ////////
70
104
  componentWillLoad() {
@@ -296,31 +330,14 @@ export class Q2Input {
296
330
  }
297
331
  /////// VIEW METHODS ///////
298
332
  render() {
299
- return (h("div", { class: this.wrapperClasses },
300
- labelDOM(this),
301
- this.inputContainerDOM(),
302
- messagesDOM(this)));
333
+ return (h("div", { class: this.wrapperClasses }, labelDOM(this), this.inputContainerDOM(), messagesDOM(this)));
303
334
  }
304
335
  get hasCustomDisplaySlot() {
305
336
  return !!this.hostElement.querySelector('[slot=custom-display]');
306
337
  }
307
338
  /* tslint:disable:cyclomatic-complexity */
308
339
  inputContainerDOM() {
309
- return (h("div", { class: "input-container" },
310
- h("div", { class: "input-icons-container-left" },
311
- this.formattedValueObject.prefix && (h("span", { class: "input-prefix" }, this.formattedValueObject.prefix)),
312
- this.computedIconLeft && (h("q2-icon", { type: this.computedIconLeft, class: this.computedClassForIconLeft })),
313
- this.showIconSeparator && h("div", { class: "vertical-separator" }),
314
- this.hasError && this.type === 'currency' && (h("q2-icon", { type: "error", class: "icon-error" }))),
315
- this.pseudo ? this.pseudoInputDOM() : this.standardInputDOM(),
316
- h("div", { class: "input-icons-container-right" },
317
- this.canClear && (h("q2-btn", { class: "btn-clear", ariaLabel: loc('tecton.element.input.clear', [this.label]), "test-id": "clearButton", onClick: this.onClearInput },
318
- h("q2-icon", { type: "close", class: "icon-clear" }))),
319
- ['password', 'text'].includes(this.type) && this.showVisibilityToggle && (h("q2-btn", { class: "btn-visibility-toggle", "test-id": "toggleVisibilityButton", onClick: this.onToggleVisibility }, this.visibilityToggleText)),
320
- this.formattedValueObject.suffix && (h("span", { class: "input-suffix" }, this.formattedValueObject.suffix)),
321
- this.badgeValue && (h("q2-badge", { size: "large", theme: this.badgeTheme }, this.badgeValue)),
322
- this.iconRight && !this.formattedValueObject.suffix && (h("q2-icon", { type: this.iconRight, class: "icon-right" })),
323
- this.hasError && this.type !== 'currency' && (h("q2-icon", { type: "error", class: "icon-error" })))));
340
+ return (h("div", { class: "input-container" }, h("div", { class: "input-icons-container-left" }, this.formattedValueObject.prefix && (h("span", { class: "input-prefix" }, this.formattedValueObject.prefix)), this.computedIconLeft && (h("q2-icon", { type: this.computedIconLeft, class: this.computedClassForIconLeft })), this.showIconSeparator && h("div", { class: "vertical-separator" }), this.hasError && this.type === 'currency' && (h("q2-icon", { type: "error", class: "icon-error" }))), this.pseudo ? this.pseudoInputDOM() : this.standardInputDOM(), h("div", { class: "input-icons-container-right" }, this.canClear && (h("q2-btn", { class: "btn-clear", ariaLabel: loc('tecton.element.input.clear', [this.label]), "test-id": "clearButton", onClick: this.onClearInput }, h("q2-icon", { type: "close", class: "icon-clear" }))), ['password', 'text'].includes(this.type) && this.showVisibilityToggle && (h("q2-btn", { class: "btn-visibility-toggle", "test-id": "toggleVisibilityButton", onClick: this.onToggleVisibility }, this.visibilityToggleText)), this.formattedValueObject.suffix && (h("span", { class: "input-suffix" }, this.formattedValueObject.suffix)), this.badgeValue && (h("q2-badge", { size: "large", theme: this.badgeTheme }, this.badgeValue)), this.iconRight && !this.formattedValueObject.suffix && (h("q2-icon", { type: this.iconRight, class: "icon-right" })), this.hasError && this.type !== 'currency' && (h("q2-icon", { type: "error", class: "icon-error" })))));
324
341
  }
325
342
  /* tslint:enable:cyclomatic-complexity */
326
343
  /* tslint:disable:cyclomatic-complexity */
@@ -329,10 +346,7 @@ export class Q2Input {
329
346
  const inputClasses = ['input-field'];
330
347
  if (hasCustomDisplaySlot)
331
348
  inputClasses.push('sr');
332
- return (h(Fragment, null,
333
- hasCustomDisplaySlot && (h("div", { class: "custom-display-container" },
334
- h("slot", { name: "custom-display" }))),
335
- h("input", { class: inputClasses.join(' '), id: this.inputId, type: this.computedType, size: this.formattedValueObject.prefix ? 10 : undefined, max: this.max, min: this.min, step: this.step, "aria-current": this.current || undefined, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": (!!this.ariaExpanded && `${!!this.ariaExpanded}`) || undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": this.hideLabel && this.label ? loc(this.label) : undefined, autocomplete: this.computedAutocomplete, autocapitalize: this.autocapitalize === 'on' ? 'on' : 'off', autocorrect: this.autocorrect === 'on' ? 'on' : 'off', placeholder: (this.placeholder && loc(this.placeholder)) || undefined, role: (this.role && `${this.role}`) || undefined, "test-id": "inputField", readonly: !!this.readonly, disabled: !!this.disabled, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onKeyDown: this.onInputKeydown, onInput: this.onInputInput, onPaste: this.onInputPaste })));
349
+ return (h(Fragment, null, hasCustomDisplaySlot && (h("div", { class: "custom-display-container" }, h("slot", { name: "custom-display" }))), h("input", { class: inputClasses.join(' '), id: this.inputId, type: this.computedType, size: this.formattedValueObject.prefix ? 10 : undefined, max: this.max, min: this.min, step: this.step, "aria-current": this.current || undefined, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": (!!this.ariaExpanded && `${!!this.ariaExpanded}`) || undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": this.hideLabel && this.label ? loc(this.label) : undefined, autocomplete: this.computedAutocomplete, autocapitalize: this.autocapitalize === 'on' ? 'on' : 'off', autocorrect: this.autocorrect === 'on' ? 'on' : 'off', placeholder: (this.placeholder && loc(this.placeholder)) || undefined, role: (this.role && `${this.role}`) || undefined, "test-id": "inputField", readonly: !!this.readonly, disabled: !!this.disabled, onFocus: this.onInputFocus, onBlur: this.onInputBlur, onKeyDown: this.onInputKeydown, onInput: this.onInputInput, onPaste: this.onInputPaste })));
336
350
  }
337
351
  /* tslint:enable:cyclomatic-complexity */
338
352
  pseudoInputDOM() {
@@ -344,11 +358,7 @@ export class Q2Input {
344
358
  if (this.readonly) {
345
359
  ariaLabelSuffix = loc('tecton.element.input.readonly');
346
360
  }
347
- return (h("div", { class: "pseudo-input-container" },
348
- h("button", { class: "input-field", type: "button", id: this.inputId, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": this.ariaExpanded === 'true' ? 'true' : undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": `${this.value}, ${(this.label && loc(this.label)) || ''}${ariaLabelSuffix}`, role: (this.role && `${this.role}`) || undefined, disabled: !!this.disabled, "test-id": "q2InputInnerClearButton" },
349
- h("div", { class: "custom-display-container" },
350
- h("slot", { name: "custom-display" },
351
- h("span", { class: showPlaceholder ? 'placeholder-text' : '' }, showPlaceholder ? this.placeholder : this.value))))));
361
+ return (h("div", { class: "pseudo-input-container" }, h("button", { class: "input-field", type: "button", id: this.inputId, "aria-describedby": this.inputDescribedBy, "aria-required": `${!this.optional}`, "aria-invalid": `${this.hasError}`, "aria-controls": (this.ariaControls && `${this.ariaControls}`) || undefined, "aria-owns": (this.ariaOwns && `${this.ariaOwns}`) || undefined, "aria-haspopup": (this.ariaHaspopup && `${this.ariaHaspopup}`) || undefined, "aria-expanded": this.ariaExpanded === 'true' ? 'true' : undefined, "aria-activedescendant": this.ariaActivedescendant && `${this.ariaActivedescendant}`, "aria-label": `${this.value}, ${(this.label && loc(this.label)) || ''}${ariaLabelSuffix}`, role: (this.role && `${this.role}`) || undefined, disabled: !!this.disabled, "test-id": "q2InputInnerClearButton" }, h("div", { class: "custom-display-container" }, h("slot", { name: "custom-display" }, h("span", { class: showPlaceholder ? 'placeholder-text' : '' }, showPlaceholder ? this.placeholder : this.value))))));
352
362
  }
353
363
  calculateCursorPositionOnInput() {
354
364
  const input = this.inputField;
@@ -390,684 +400,698 @@ export class Q2Input {
390
400
  }
391
401
  static get is() { return "q2-input"; }
392
402
  static get encapsulation() { return "shadow"; }
393
- static get originalStyleUrls() { return {
394
- "$": ["styles.scss"]
395
- }; }
396
- static get styleUrls() { return {
397
- "$": ["styles.css"]
398
- }; }
399
- static get properties() { return {
400
- "value": {
401
- "type": "string",
402
- "mutable": true,
403
- "complexType": {
404
- "original": "string",
405
- "resolved": "string",
406
- "references": {}
407
- },
408
- "required": false,
409
- "optional": false,
410
- "docs": {
411
- "tags": [],
412
- "text": ""
413
- },
414
- "attribute": "value",
415
- "reflect": false
416
- },
417
- "label": {
418
- "type": "string",
419
- "mutable": true,
420
- "complexType": {
421
- "original": "string",
422
- "resolved": "string",
423
- "references": {}
424
- },
425
- "required": false,
426
- "optional": false,
427
- "docs": {
428
- "tags": [],
429
- "text": ""
430
- },
431
- "attribute": "label",
432
- "reflect": true
433
- },
434
- "hideLabel": {
435
- "type": "boolean",
436
- "mutable": true,
437
- "complexType": {
438
- "original": "boolean",
439
- "resolved": "boolean",
440
- "references": {}
441
- },
442
- "required": false,
443
- "optional": false,
444
- "docs": {
445
- "tags": [],
446
- "text": ""
447
- },
448
- "attribute": "hide-label",
449
- "reflect": true
450
- },
451
- "type": {
452
- "type": "string",
453
- "mutable": false,
454
- "complexType": {
455
- "original": "string",
456
- "resolved": "string",
457
- "references": {}
458
- },
459
- "required": false,
460
- "optional": false,
461
- "docs": {
462
- "tags": [],
463
- "text": ""
464
- },
465
- "attribute": "type",
466
- "reflect": true,
467
- "defaultValue": "'text'"
468
- },
469
- "placeholder": {
470
- "type": "string",
471
- "mutable": false,
472
- "complexType": {
473
- "original": "string",
474
- "resolved": "string",
475
- "references": {}
476
- },
477
- "required": false,
478
- "optional": false,
479
- "docs": {
480
- "tags": [],
481
- "text": ""
482
- },
483
- "attribute": "placeholder",
484
- "reflect": true
485
- },
486
- "disabled": {
487
- "type": "boolean",
488
- "mutable": false,
489
- "complexType": {
490
- "original": "boolean",
491
- "resolved": "boolean",
492
- "references": {}
493
- },
494
- "required": false,
495
- "optional": false,
496
- "docs": {
497
- "tags": [],
498
- "text": ""
499
- },
500
- "attribute": "disabled",
501
- "reflect": true,
502
- "defaultValue": "false"
503
- },
504
- "autocomplete": {
505
- "type": "string",
506
- "mutable": false,
507
- "complexType": {
508
- "original": "string",
509
- "resolved": "string",
510
- "references": {}
511
- },
512
- "required": false,
513
- "optional": false,
514
- "docs": {
515
- "tags": [],
516
- "text": ""
517
- },
518
- "attribute": "autocomplete",
519
- "reflect": true
520
- },
521
- "autocorrect": {
522
- "type": "string",
523
- "mutable": false,
524
- "complexType": {
525
- "original": "string",
526
- "resolved": "string",
527
- "references": {}
528
- },
529
- "required": false,
530
- "optional": false,
531
- "docs": {
532
- "tags": [],
533
- "text": ""
534
- },
535
- "attribute": "autocorrect",
536
- "reflect": true
537
- },
538
- "autocapitalize": {
539
- "type": "string",
540
- "mutable": false,
541
- "complexType": {
542
- "original": "string",
543
- "resolved": "string",
544
- "references": {}
545
- },
546
- "required": false,
547
- "optional": false,
548
- "docs": {
549
- "tags": [],
550
- "text": ""
551
- },
552
- "attribute": "autocapitalize",
553
- "reflect": true
554
- },
555
- "hideMessages": {
556
- "type": "boolean",
557
- "mutable": false,
558
- "complexType": {
559
- "original": "boolean",
560
- "resolved": "boolean",
561
- "references": {}
562
- },
563
- "required": false,
564
- "optional": false,
565
- "docs": {
566
- "tags": [],
567
- "text": ""
568
- },
569
- "attribute": "hide-messages",
570
- "reflect": true
571
- },
572
- "iconLeft": {
573
- "type": "string",
574
- "mutable": false,
575
- "complexType": {
576
- "original": "string",
577
- "resolved": "string",
578
- "references": {}
579
- },
580
- "required": false,
581
- "optional": false,
582
- "docs": {
583
- "tags": [],
584
- "text": ""
585
- },
586
- "attribute": "icon-left",
587
- "reflect": true
588
- },
589
- "iconRight": {
590
- "type": "string",
591
- "mutable": false,
592
- "complexType": {
593
- "original": "string",
594
- "resolved": "string",
595
- "references": {}
596
- },
597
- "required": false,
598
- "optional": false,
599
- "docs": {
600
- "tags": [],
601
- "text": ""
602
- },
603
- "attribute": "icon-right",
604
- "reflect": true
605
- },
606
- "readonly": {
607
- "type": "boolean",
608
- "mutable": false,
609
- "complexType": {
610
- "original": "boolean",
611
- "resolved": "boolean",
612
- "references": {}
613
- },
614
- "required": false,
615
- "optional": false,
616
- "docs": {
617
- "tags": [],
618
- "text": ""
619
- },
620
- "attribute": "readonly",
621
- "reflect": true
622
- },
623
- "clearable": {
624
- "type": "boolean",
625
- "mutable": false,
626
- "complexType": {
627
- "original": "boolean",
628
- "resolved": "boolean",
629
- "references": {}
630
- },
631
- "required": false,
632
- "optional": false,
633
- "docs": {
634
- "tags": [],
635
- "text": ""
636
- },
637
- "attribute": "clearable",
638
- "reflect": true
639
- },
640
- "optional": {
641
- "type": "boolean",
642
- "mutable": false,
643
- "complexType": {
644
- "original": "boolean",
645
- "resolved": "boolean",
646
- "references": {}
647
- },
648
- "required": false,
649
- "optional": false,
650
- "docs": {
651
- "tags": [],
652
- "text": ""
653
- },
654
- "attribute": "optional",
655
- "reflect": true
656
- },
657
- "min": {
658
- "type": "number",
659
- "mutable": false,
660
- "complexType": {
661
- "original": "number",
662
- "resolved": "number",
663
- "references": {}
664
- },
665
- "required": false,
666
- "optional": false,
667
- "docs": {
668
- "tags": [],
669
- "text": ""
670
- },
671
- "attribute": "min",
672
- "reflect": true
673
- },
674
- "max": {
675
- "type": "number",
676
- "mutable": false,
677
- "complexType": {
678
- "original": "number",
679
- "resolved": "number",
680
- "references": {}
681
- },
682
- "required": false,
683
- "optional": false,
684
- "docs": {
685
- "tags": [],
686
- "text": ""
687
- },
688
- "attribute": "max",
689
- "reflect": true
690
- },
691
- "step": {
692
- "type": "number",
693
- "mutable": false,
694
- "complexType": {
695
- "original": "number",
696
- "resolved": "number",
697
- "references": {}
698
- },
699
- "required": false,
700
- "optional": false,
701
- "docs": {
702
- "tags": [],
703
- "text": ""
704
- },
705
- "attribute": "step",
706
- "reflect": true
707
- },
708
- "formatModifier": {
709
- "type": "string",
710
- "mutable": false,
711
- "complexType": {
712
- "original": "string",
713
- "resolved": "string",
714
- "references": {}
715
- },
716
- "required": false,
717
- "optional": false,
718
- "docs": {
719
- "tags": [],
720
- "text": ""
721
- },
722
- "attribute": "format-modifier",
723
- "reflect": true
724
- },
725
- "maxlength": {
726
- "type": "number",
727
- "mutable": true,
728
- "complexType": {
729
- "original": "number",
730
- "resolved": "number",
731
- "references": {}
732
- },
733
- "required": false,
734
- "optional": false,
735
- "docs": {
736
- "tags": [],
737
- "text": ""
738
- },
739
- "attribute": "maxlength",
740
- "reflect": true
741
- },
742
- "pseudo": {
743
- "type": "boolean",
744
- "mutable": false,
745
- "complexType": {
746
- "original": "boolean",
747
- "resolved": "boolean",
748
- "references": {}
749
- },
750
- "required": false,
751
- "optional": false,
752
- "docs": {
753
- "tags": [],
754
- "text": ""
755
- },
756
- "attribute": "pseudo",
757
- "reflect": true
758
- },
759
- "showVisibilityToggle": {
760
- "type": "boolean",
761
- "mutable": false,
762
- "complexType": {
763
- "original": "boolean",
764
- "resolved": "boolean",
765
- "references": {}
766
- },
767
- "required": false,
768
- "optional": false,
769
- "docs": {
770
- "tags": [],
771
- "text": ""
772
- },
773
- "attribute": "show-visibility-toggle",
774
- "reflect": true,
775
- "defaultValue": "false"
776
- },
777
- "textHidden": {
778
- "type": "boolean",
779
- "mutable": true,
780
- "complexType": {
781
- "original": "boolean",
782
- "resolved": "boolean",
783
- "references": {}
784
- },
785
- "required": false,
786
- "optional": false,
787
- "docs": {
788
- "tags": [],
789
- "text": ""
790
- },
791
- "attribute": "text-hidden",
792
- "reflect": true
793
- },
794
- "badgeValue": {
795
- "type": "string",
796
- "mutable": false,
797
- "complexType": {
798
- "original": "string",
799
- "resolved": "string",
800
- "references": {}
801
- },
802
- "required": false,
803
- "optional": false,
804
- "docs": {
805
- "tags": [],
806
- "text": ""
807
- },
808
- "attribute": "badge-value",
809
- "reflect": true
810
- },
811
- "badgeTheme": {
812
- "type": "string",
813
- "mutable": false,
814
- "complexType": {
815
- "original": "'primary' | 'secondary' | 'tertiary'",
816
- "resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
817
- "references": {}
818
- },
819
- "required": false,
820
- "optional": false,
821
- "docs": {
822
- "tags": [],
823
- "text": ""
824
- },
825
- "attribute": "badge-theme",
826
- "reflect": true
827
- },
828
- "ariaControls": {
829
- "type": "string",
830
- "mutable": false,
831
- "complexType": {
832
- "original": "string",
833
- "resolved": "string",
834
- "references": {}
835
- },
836
- "required": false,
837
- "optional": false,
838
- "docs": {
839
- "tags": [],
840
- "text": ""
841
- },
842
- "attribute": "aria-controls",
843
- "reflect": false
844
- },
845
- "role": {
846
- "type": "string",
847
- "mutable": false,
848
- "complexType": {
849
- "original": "string",
850
- "resolved": "string",
851
- "references": {}
852
- },
853
- "required": false,
854
- "optional": false,
855
- "docs": {
856
- "tags": [],
857
- "text": ""
858
- },
859
- "attribute": "role",
860
- "reflect": false
861
- },
862
- "ariaOwns": {
863
- "type": "string",
864
- "mutable": false,
865
- "complexType": {
866
- "original": "string",
867
- "resolved": "string",
868
- "references": {}
869
- },
870
- "required": false,
871
- "optional": false,
872
- "docs": {
873
- "tags": [],
874
- "text": ""
875
- },
876
- "attribute": "aria-owns",
877
- "reflect": false
878
- },
879
- "ariaLabel": {
880
- "type": "string",
881
- "mutable": true,
882
- "complexType": {
883
- "original": "string",
884
- "resolved": "string",
885
- "references": {}
886
- },
887
- "required": false,
888
- "optional": false,
889
- "docs": {
890
- "tags": [],
891
- "text": ""
892
- },
893
- "attribute": "aria-label",
894
- "reflect": true
895
- },
896
- "ariaHaspopup": {
897
- "type": "string",
898
- "mutable": false,
899
- "complexType": {
900
- "original": "string",
901
- "resolved": "string",
902
- "references": {}
903
- },
904
- "required": false,
905
- "optional": false,
906
- "docs": {
907
- "tags": [],
908
- "text": ""
909
- },
910
- "attribute": "aria-haspopup",
911
- "reflect": false
912
- },
913
- "ariaExpanded": {
914
- "type": "string",
915
- "mutable": false,
916
- "complexType": {
917
- "original": "string",
918
- "resolved": "string",
919
- "references": {}
920
- },
921
- "required": false,
922
- "optional": false,
923
- "docs": {
924
- "tags": [],
925
- "text": ""
926
- },
927
- "attribute": "aria-expanded",
928
- "reflect": false
929
- },
930
- "ariaActivedescendant": {
931
- "type": "any",
932
- "mutable": false,
933
- "complexType": {
934
- "original": "any",
935
- "resolved": "any",
936
- "references": {}
937
- },
938
- "required": false,
939
- "optional": false,
940
- "docs": {
941
- "tags": [],
942
- "text": ""
943
- },
944
- "attribute": "aria-activedescendant",
945
- "reflect": false
946
- },
947
- "current": {
948
- "type": "string",
949
- "mutable": false,
950
- "complexType": {
951
- "original": "'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'",
952
- "resolved": "\"date\" | \"false\" | \"location\" | \"page\" | \"step\" | \"time\" | \"true\"",
953
- "references": {}
954
- },
955
- "required": false,
956
- "optional": false,
957
- "docs": {
958
- "tags": [],
959
- "text": ""
960
- },
961
- "attribute": "current",
962
- "reflect": false
963
- },
964
- "errors": {
965
- "type": "unknown",
966
- "mutable": false,
967
- "complexType": {
968
- "original": "string[]",
969
- "resolved": "string[]",
970
- "references": {}
971
- },
972
- "required": false,
973
- "optional": false,
974
- "docs": {
975
- "tags": [],
976
- "text": ""
977
- }
978
- },
979
- "hints": {
980
- "type": "unknown",
981
- "mutable": false,
982
- "complexType": {
983
- "original": "string[]",
984
- "resolved": "string[]",
985
- "references": {}
403
+ static get originalStyleUrls() {
404
+ return {
405
+ "$": ["styles.scss"]
406
+ };
407
+ }
408
+ static get styleUrls() {
409
+ return {
410
+ "$": ["styles.css"]
411
+ };
412
+ }
413
+ static get properties() {
414
+ return {
415
+ "value": {
416
+ "type": "string",
417
+ "mutable": true,
418
+ "complexType": {
419
+ "original": "string",
420
+ "resolved": "string",
421
+ "references": {}
422
+ },
423
+ "required": false,
424
+ "optional": false,
425
+ "docs": {
426
+ "tags": [],
427
+ "text": ""
428
+ },
429
+ "attribute": "value",
430
+ "reflect": false
431
+ },
432
+ "label": {
433
+ "type": "string",
434
+ "mutable": true,
435
+ "complexType": {
436
+ "original": "string",
437
+ "resolved": "string",
438
+ "references": {}
439
+ },
440
+ "required": false,
441
+ "optional": false,
442
+ "docs": {
443
+ "tags": [],
444
+ "text": ""
445
+ },
446
+ "attribute": "label",
447
+ "reflect": true
448
+ },
449
+ "hideLabel": {
450
+ "type": "boolean",
451
+ "mutable": true,
452
+ "complexType": {
453
+ "original": "boolean",
454
+ "resolved": "boolean",
455
+ "references": {}
456
+ },
457
+ "required": false,
458
+ "optional": false,
459
+ "docs": {
460
+ "tags": [],
461
+ "text": ""
462
+ },
463
+ "attribute": "hide-label",
464
+ "reflect": true
465
+ },
466
+ "type": {
467
+ "type": "string",
468
+ "mutable": false,
469
+ "complexType": {
470
+ "original": "string",
471
+ "resolved": "string",
472
+ "references": {}
473
+ },
474
+ "required": false,
475
+ "optional": false,
476
+ "docs": {
477
+ "tags": [],
478
+ "text": ""
479
+ },
480
+ "attribute": "type",
481
+ "reflect": true,
482
+ "defaultValue": "'text'"
483
+ },
484
+ "placeholder": {
485
+ "type": "string",
486
+ "mutable": false,
487
+ "complexType": {
488
+ "original": "string",
489
+ "resolved": "string",
490
+ "references": {}
491
+ },
492
+ "required": false,
493
+ "optional": false,
494
+ "docs": {
495
+ "tags": [],
496
+ "text": ""
497
+ },
498
+ "attribute": "placeholder",
499
+ "reflect": true
500
+ },
501
+ "disabled": {
502
+ "type": "boolean",
503
+ "mutable": false,
504
+ "complexType": {
505
+ "original": "boolean",
506
+ "resolved": "boolean",
507
+ "references": {}
508
+ },
509
+ "required": false,
510
+ "optional": false,
511
+ "docs": {
512
+ "tags": [],
513
+ "text": ""
514
+ },
515
+ "attribute": "disabled",
516
+ "reflect": true,
517
+ "defaultValue": "false"
518
+ },
519
+ "autocomplete": {
520
+ "type": "string",
521
+ "mutable": false,
522
+ "complexType": {
523
+ "original": "string",
524
+ "resolved": "string",
525
+ "references": {}
526
+ },
527
+ "required": false,
528
+ "optional": false,
529
+ "docs": {
530
+ "tags": [],
531
+ "text": ""
532
+ },
533
+ "attribute": "autocomplete",
534
+ "reflect": true
535
+ },
536
+ "autocorrect": {
537
+ "type": "string",
538
+ "mutable": false,
539
+ "complexType": {
540
+ "original": "string",
541
+ "resolved": "string",
542
+ "references": {}
543
+ },
544
+ "required": false,
545
+ "optional": false,
546
+ "docs": {
547
+ "tags": [],
548
+ "text": ""
549
+ },
550
+ "attribute": "autocorrect",
551
+ "reflect": true
552
+ },
553
+ "autocapitalize": {
554
+ "type": "string",
555
+ "mutable": false,
556
+ "complexType": {
557
+ "original": "string",
558
+ "resolved": "string",
559
+ "references": {}
560
+ },
561
+ "required": false,
562
+ "optional": false,
563
+ "docs": {
564
+ "tags": [],
565
+ "text": ""
566
+ },
567
+ "attribute": "autocapitalize",
568
+ "reflect": true
569
+ },
570
+ "hideMessages": {
571
+ "type": "boolean",
572
+ "mutable": false,
573
+ "complexType": {
574
+ "original": "boolean",
575
+ "resolved": "boolean",
576
+ "references": {}
577
+ },
578
+ "required": false,
579
+ "optional": false,
580
+ "docs": {
581
+ "tags": [],
582
+ "text": ""
583
+ },
584
+ "attribute": "hide-messages",
585
+ "reflect": true
586
+ },
587
+ "iconLeft": {
588
+ "type": "string",
589
+ "mutable": false,
590
+ "complexType": {
591
+ "original": "string",
592
+ "resolved": "string",
593
+ "references": {}
594
+ },
595
+ "required": false,
596
+ "optional": false,
597
+ "docs": {
598
+ "tags": [],
599
+ "text": ""
600
+ },
601
+ "attribute": "icon-left",
602
+ "reflect": true
603
+ },
604
+ "iconRight": {
605
+ "type": "string",
606
+ "mutable": false,
607
+ "complexType": {
608
+ "original": "string",
609
+ "resolved": "string",
610
+ "references": {}
611
+ },
612
+ "required": false,
613
+ "optional": false,
614
+ "docs": {
615
+ "tags": [],
616
+ "text": ""
617
+ },
618
+ "attribute": "icon-right",
619
+ "reflect": true
620
+ },
621
+ "readonly": {
622
+ "type": "boolean",
623
+ "mutable": false,
624
+ "complexType": {
625
+ "original": "boolean",
626
+ "resolved": "boolean",
627
+ "references": {}
628
+ },
629
+ "required": false,
630
+ "optional": false,
631
+ "docs": {
632
+ "tags": [],
633
+ "text": ""
634
+ },
635
+ "attribute": "readonly",
636
+ "reflect": true
637
+ },
638
+ "clearable": {
639
+ "type": "boolean",
640
+ "mutable": false,
641
+ "complexType": {
642
+ "original": "boolean",
643
+ "resolved": "boolean",
644
+ "references": {}
645
+ },
646
+ "required": false,
647
+ "optional": false,
648
+ "docs": {
649
+ "tags": [],
650
+ "text": ""
651
+ },
652
+ "attribute": "clearable",
653
+ "reflect": true
654
+ },
655
+ "optional": {
656
+ "type": "boolean",
657
+ "mutable": false,
658
+ "complexType": {
659
+ "original": "boolean",
660
+ "resolved": "boolean",
661
+ "references": {}
662
+ },
663
+ "required": false,
664
+ "optional": false,
665
+ "docs": {
666
+ "tags": [],
667
+ "text": ""
668
+ },
669
+ "attribute": "optional",
670
+ "reflect": true
671
+ },
672
+ "min": {
673
+ "type": "number",
674
+ "mutable": false,
675
+ "complexType": {
676
+ "original": "number",
677
+ "resolved": "number",
678
+ "references": {}
679
+ },
680
+ "required": false,
681
+ "optional": false,
682
+ "docs": {
683
+ "tags": [],
684
+ "text": ""
685
+ },
686
+ "attribute": "min",
687
+ "reflect": true
688
+ },
689
+ "max": {
690
+ "type": "number",
691
+ "mutable": false,
692
+ "complexType": {
693
+ "original": "number",
694
+ "resolved": "number",
695
+ "references": {}
696
+ },
697
+ "required": false,
698
+ "optional": false,
699
+ "docs": {
700
+ "tags": [],
701
+ "text": ""
702
+ },
703
+ "attribute": "max",
704
+ "reflect": true
705
+ },
706
+ "step": {
707
+ "type": "number",
708
+ "mutable": false,
709
+ "complexType": {
710
+ "original": "number",
711
+ "resolved": "number",
712
+ "references": {}
713
+ },
714
+ "required": false,
715
+ "optional": false,
716
+ "docs": {
717
+ "tags": [],
718
+ "text": ""
719
+ },
720
+ "attribute": "step",
721
+ "reflect": true
722
+ },
723
+ "formatModifier": {
724
+ "type": "string",
725
+ "mutable": false,
726
+ "complexType": {
727
+ "original": "string",
728
+ "resolved": "string",
729
+ "references": {}
730
+ },
731
+ "required": false,
732
+ "optional": false,
733
+ "docs": {
734
+ "tags": [],
735
+ "text": ""
736
+ },
737
+ "attribute": "format-modifier",
738
+ "reflect": true
739
+ },
740
+ "maxlength": {
741
+ "type": "number",
742
+ "mutable": true,
743
+ "complexType": {
744
+ "original": "number",
745
+ "resolved": "number",
746
+ "references": {}
747
+ },
748
+ "required": false,
749
+ "optional": false,
750
+ "docs": {
751
+ "tags": [],
752
+ "text": ""
753
+ },
754
+ "attribute": "maxlength",
755
+ "reflect": true
756
+ },
757
+ "pseudo": {
758
+ "type": "boolean",
759
+ "mutable": false,
760
+ "complexType": {
761
+ "original": "boolean",
762
+ "resolved": "boolean",
763
+ "references": {}
764
+ },
765
+ "required": false,
766
+ "optional": false,
767
+ "docs": {
768
+ "tags": [],
769
+ "text": ""
770
+ },
771
+ "attribute": "pseudo",
772
+ "reflect": true
773
+ },
774
+ "showVisibilityToggle": {
775
+ "type": "boolean",
776
+ "mutable": false,
777
+ "complexType": {
778
+ "original": "boolean",
779
+ "resolved": "boolean",
780
+ "references": {}
781
+ },
782
+ "required": false,
783
+ "optional": false,
784
+ "docs": {
785
+ "tags": [],
786
+ "text": ""
787
+ },
788
+ "attribute": "show-visibility-toggle",
789
+ "reflect": true,
790
+ "defaultValue": "false"
791
+ },
792
+ "textHidden": {
793
+ "type": "boolean",
794
+ "mutable": true,
795
+ "complexType": {
796
+ "original": "boolean",
797
+ "resolved": "boolean",
798
+ "references": {}
799
+ },
800
+ "required": false,
801
+ "optional": false,
802
+ "docs": {
803
+ "tags": [],
804
+ "text": ""
805
+ },
806
+ "attribute": "text-hidden",
807
+ "reflect": true
808
+ },
809
+ "badgeValue": {
810
+ "type": "string",
811
+ "mutable": false,
812
+ "complexType": {
813
+ "original": "string",
814
+ "resolved": "string",
815
+ "references": {}
816
+ },
817
+ "required": false,
818
+ "optional": false,
819
+ "docs": {
820
+ "tags": [],
821
+ "text": ""
822
+ },
823
+ "attribute": "badge-value",
824
+ "reflect": true
825
+ },
826
+ "badgeTheme": {
827
+ "type": "string",
828
+ "mutable": false,
829
+ "complexType": {
830
+ "original": "'primary' | 'secondary' | 'tertiary'",
831
+ "resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
832
+ "references": {}
833
+ },
834
+ "required": false,
835
+ "optional": false,
836
+ "docs": {
837
+ "tags": [],
838
+ "text": ""
839
+ },
840
+ "attribute": "badge-theme",
841
+ "reflect": true
842
+ },
843
+ "ariaControls": {
844
+ "type": "string",
845
+ "mutable": false,
846
+ "complexType": {
847
+ "original": "string",
848
+ "resolved": "string",
849
+ "references": {}
850
+ },
851
+ "required": false,
852
+ "optional": false,
853
+ "docs": {
854
+ "tags": [],
855
+ "text": ""
856
+ },
857
+ "attribute": "aria-controls",
858
+ "reflect": false
859
+ },
860
+ "role": {
861
+ "type": "string",
862
+ "mutable": false,
863
+ "complexType": {
864
+ "original": "string",
865
+ "resolved": "string",
866
+ "references": {}
867
+ },
868
+ "required": false,
869
+ "optional": false,
870
+ "docs": {
871
+ "tags": [],
872
+ "text": ""
873
+ },
874
+ "attribute": "role",
875
+ "reflect": false
876
+ },
877
+ "ariaOwns": {
878
+ "type": "string",
879
+ "mutable": false,
880
+ "complexType": {
881
+ "original": "string",
882
+ "resolved": "string",
883
+ "references": {}
884
+ },
885
+ "required": false,
886
+ "optional": false,
887
+ "docs": {
888
+ "tags": [],
889
+ "text": ""
890
+ },
891
+ "attribute": "aria-owns",
892
+ "reflect": false
893
+ },
894
+ "ariaLabel": {
895
+ "type": "string",
896
+ "mutable": true,
897
+ "complexType": {
898
+ "original": "string",
899
+ "resolved": "string",
900
+ "references": {}
901
+ },
902
+ "required": false,
903
+ "optional": false,
904
+ "docs": {
905
+ "tags": [],
906
+ "text": ""
907
+ },
908
+ "attribute": "aria-label",
909
+ "reflect": true
910
+ },
911
+ "ariaHaspopup": {
912
+ "type": "string",
913
+ "mutable": false,
914
+ "complexType": {
915
+ "original": "string",
916
+ "resolved": "string",
917
+ "references": {}
918
+ },
919
+ "required": false,
920
+ "optional": false,
921
+ "docs": {
922
+ "tags": [],
923
+ "text": ""
924
+ },
925
+ "attribute": "aria-haspopup",
926
+ "reflect": false
927
+ },
928
+ "ariaExpanded": {
929
+ "type": "string",
930
+ "mutable": false,
931
+ "complexType": {
932
+ "original": "string",
933
+ "resolved": "string",
934
+ "references": {}
935
+ },
936
+ "required": false,
937
+ "optional": false,
938
+ "docs": {
939
+ "tags": [],
940
+ "text": ""
941
+ },
942
+ "attribute": "aria-expanded",
943
+ "reflect": false
944
+ },
945
+ "ariaActivedescendant": {
946
+ "type": "any",
947
+ "mutable": false,
948
+ "complexType": {
949
+ "original": "any",
950
+ "resolved": "any",
951
+ "references": {}
952
+ },
953
+ "required": false,
954
+ "optional": false,
955
+ "docs": {
956
+ "tags": [],
957
+ "text": ""
958
+ },
959
+ "attribute": "aria-activedescendant",
960
+ "reflect": false
961
+ },
962
+ "current": {
963
+ "type": "string",
964
+ "mutable": false,
965
+ "complexType": {
966
+ "original": "'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false'",
967
+ "resolved": "\"date\" | \"false\" | \"location\" | \"page\" | \"step\" | \"time\" | \"true\"",
968
+ "references": {}
969
+ },
970
+ "required": false,
971
+ "optional": false,
972
+ "docs": {
973
+ "tags": [],
974
+ "text": ""
975
+ },
976
+ "attribute": "current",
977
+ "reflect": false
978
+ },
979
+ "errors": {
980
+ "type": "unknown",
981
+ "mutable": false,
982
+ "complexType": {
983
+ "original": "string[]",
984
+ "resolved": "string[]",
985
+ "references": {}
986
+ },
987
+ "required": false,
988
+ "optional": false,
989
+ "docs": {
990
+ "tags": [],
991
+ "text": ""
992
+ }
986
993
  },
987
- "required": false,
988
- "optional": false,
989
- "docs": {
990
- "tags": [],
991
- "text": ""
994
+ "hints": {
995
+ "type": "unknown",
996
+ "mutable": false,
997
+ "complexType": {
998
+ "original": "string[]",
999
+ "resolved": "string[]",
1000
+ "references": {}
1001
+ },
1002
+ "required": false,
1003
+ "optional": false,
1004
+ "docs": {
1005
+ "tags": [],
1006
+ "text": ""
1007
+ }
992
1008
  }
993
- }
994
- }; }
995
- static get states() { return {
996
- "formattedValueObject": {},
997
- "hasFocus": {}
998
- }; }
999
- static get events() { return [{
1000
- "method": "input",
1001
- "name": "input",
1002
- "bubbles": true,
1003
- "cancelable": true,
1004
- "composed": true,
1005
- "docs": {
1006
- "tags": [],
1007
- "text": ""
1008
- },
1009
- "complexType": {
1010
- "original": "IEventDetail",
1011
- "resolved": "IEventDetail",
1012
- "references": {
1013
- "IEventDetail": {
1014
- "location": "import",
1015
- "path": "./types"
1009
+ };
1010
+ }
1011
+ static get states() {
1012
+ return {
1013
+ "formattedValueObject": {},
1014
+ "hasFocus": {}
1015
+ };
1016
+ }
1017
+ static get events() {
1018
+ return [{
1019
+ "method": "input",
1020
+ "name": "input",
1021
+ "bubbles": true,
1022
+ "cancelable": true,
1023
+ "composed": true,
1024
+ "docs": {
1025
+ "tags": [],
1026
+ "text": ""
1027
+ },
1028
+ "complexType": {
1029
+ "original": "IEventDetail",
1030
+ "resolved": "IEventDetail",
1031
+ "references": {
1032
+ "IEventDetail": {
1033
+ "location": "import",
1034
+ "path": "./types"
1035
+ }
1016
1036
  }
1017
1037
  }
1018
- }
1019
- }, {
1020
- "method": "change",
1021
- "name": "change",
1022
- "bubbles": true,
1023
- "cancelable": true,
1024
- "composed": true,
1025
- "docs": {
1026
- "tags": [],
1027
- "text": ""
1028
- },
1029
- "complexType": {
1030
- "original": "IEventDetail",
1031
- "resolved": "IEventDetail",
1032
- "references": {
1033
- "IEventDetail": {
1034
- "location": "import",
1035
- "path": "./types"
1038
+ }, {
1039
+ "method": "change",
1040
+ "name": "change",
1041
+ "bubbles": true,
1042
+ "cancelable": true,
1043
+ "composed": true,
1044
+ "docs": {
1045
+ "tags": [],
1046
+ "text": ""
1047
+ },
1048
+ "complexType": {
1049
+ "original": "IEventDetail",
1050
+ "resolved": "IEventDetail",
1051
+ "references": {
1052
+ "IEventDetail": {
1053
+ "location": "import",
1054
+ "path": "./types"
1055
+ }
1036
1056
  }
1037
1057
  }
1038
- }
1039
- }]; }
1058
+ }];
1059
+ }
1040
1060
  static get elementRef() { return "hostElement"; }
1041
- static get watchers() { return [{
1042
- "propName": "ariaLabel",
1043
- "methodName": "ariaLabelObserver"
1044
- }, {
1045
- "propName": "value",
1046
- "methodName": "valueObserver"
1047
- }, {
1048
- "propName": "type",
1049
- "methodName": "typeObserver"
1050
- }, {
1051
- "propName": "formatModifier",
1052
- "methodName": "formatModifierObserver"
1053
- }, {
1054
- "propName": "hints",
1055
- "methodName": "hintsObserver"
1056
- }, {
1057
- "propName": "errors",
1058
- "methodName": "errorsObserver"
1059
- }]; }
1060
- static get listeners() { return [{
1061
- "name": "focus",
1062
- "method": "onHostElementFocus",
1063
- "target": undefined,
1064
- "capture": false,
1065
- "passive": false
1066
- }, {
1067
- "name": "change",
1068
- "method": "onHostElementChange",
1069
- "target": undefined,
1070
- "capture": false,
1071
- "passive": false
1072
- }]; }
1061
+ static get watchers() {
1062
+ return [{
1063
+ "propName": "ariaLabel",
1064
+ "methodName": "ariaLabelObserver"
1065
+ }, {
1066
+ "propName": "value",
1067
+ "methodName": "valueObserver"
1068
+ }, {
1069
+ "propName": "type",
1070
+ "methodName": "typeObserver"
1071
+ }, {
1072
+ "propName": "formatModifier",
1073
+ "methodName": "formatModifierObserver"
1074
+ }, {
1075
+ "propName": "hints",
1076
+ "methodName": "hintsObserver"
1077
+ }, {
1078
+ "propName": "errors",
1079
+ "methodName": "errorsObserver"
1080
+ }];
1081
+ }
1082
+ static get listeners() {
1083
+ return [{
1084
+ "name": "focus",
1085
+ "method": "onHostElementFocus",
1086
+ "target": undefined,
1087
+ "capture": false,
1088
+ "passive": false
1089
+ }, {
1090
+ "name": "change",
1091
+ "method": "onHostElementChange",
1092
+ "target": undefined,
1093
+ "capture": false,
1094
+ "passive": false
1095
+ }];
1096
+ }
1073
1097
  }