@haiilo/catalyst 4.1.2 → 5.0.1

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 (277) hide show
  1. package/README.md +0 -2
  2. package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
  3. package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
  4. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
  5. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  6. package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
  7. package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
  8. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
  9. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  10. package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
  11. package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
  12. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
  13. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  14. package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
  15. package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
  16. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
  17. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  18. package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
  19. package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
  20. package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
  21. package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
  22. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
  23. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
  24. package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
  25. package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
  26. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
  27. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  28. package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
  29. package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
  30. package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
  31. package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
  32. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  33. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  34. package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
  35. package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
  36. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
  37. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  38. package/dist/catalyst/catalyst.css +6 -27
  39. package/dist/catalyst/catalyst.esm.js +1 -1
  40. package/dist/catalyst/catalyst.esm.js.map +1 -1
  41. package/dist/catalyst/index.esm.js.map +1 -1
  42. package/dist/catalyst/p-ccfebe33.js.map +1 -1
  43. package/dist/catalyst/p-d1ee6a09.entry.js +10 -0
  44. package/dist/catalyst/p-d1ee6a09.entry.js.map +1 -0
  45. package/dist/catalyst/p-d1fb9d96.js +3 -0
  46. package/dist/catalyst/p-d1fb9d96.js.map +1 -0
  47. package/dist/catalyst/scss/fonts/_fonts-mixins.scss +0 -10
  48. package/dist/cjs/cat-alert_24.cjs.entry.js +933 -1135
  49. package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -1
  50. package/dist/cjs/catalyst.cjs.js +10 -3
  51. package/dist/cjs/catalyst.cjs.js.map +1 -1
  52. package/dist/cjs/{index-c4542095.js → index-01312a2e.js} +527 -245
  53. package/dist/cjs/index-01312a2e.js.map +1 -0
  54. package/dist/cjs/index.cjs.js.map +1 -1
  55. package/dist/cjs/loader.cjs.js +4 -3
  56. package/dist/cjs/loader.cjs.js.map +1 -1
  57. package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
  58. package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
  59. package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
  60. package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  61. package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
  62. package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
  63. package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
  64. package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  65. package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
  66. package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
  67. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
  68. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  69. package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
  70. package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
  71. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
  72. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  73. package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
  74. package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
  75. package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
  76. package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
  77. package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
  78. package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
  79. package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
  80. package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
  81. package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
  82. package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  83. package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
  84. package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
  85. package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
  86. package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
  87. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  88. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  89. package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
  90. package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
  91. package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
  92. package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  93. package/dist/collection/collection-manifest.json +2 -2
  94. package/dist/collection/components/cat-alert/cat-alert.js +69 -71
  95. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  96. package/dist/collection/components/cat-avatar/cat-avatar.js +172 -165
  97. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  98. package/dist/collection/components/cat-badge/cat-badge.js +102 -111
  99. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  100. package/dist/collection/components/cat-button/cat-button.js +526 -537
  101. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  102. package/dist/collection/components/cat-card/cat-card.js +12 -8
  103. package/dist/collection/components/cat-checkbox/cat-checkbox.js +336 -350
  104. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  105. package/dist/collection/components/cat-dropdown/cat-dropdown.js +137 -137
  106. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  107. package/dist/collection/components/cat-form-group/cat-form-group.js +58 -40
  108. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
  109. package/dist/collection/components/cat-form-hint/cat-form-hint.js +14 -7
  110. package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
  111. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +1 -1
  112. package/dist/collection/components/cat-icon/cat-icon-registry.js +1 -1
  113. package/dist/collection/components/cat-icon/cat-icon.js +85 -79
  114. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  115. package/dist/collection/components/cat-input/cat-input.css +32 -3
  116. package/dist/collection/components/cat-input/cat-input.js +662 -660
  117. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  118. package/dist/collection/components/cat-input/input-type.js +1 -1
  119. package/dist/collection/components/cat-label/cat-label.js +69 -78
  120. package/dist/collection/components/cat-label/cat-label.js.map +1 -1
  121. package/dist/collection/components/cat-notification/cat-notification.js +1 -1
  122. package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
  123. package/dist/collection/components/cat-pagination/cat-pagination.js +192 -226
  124. package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
  125. package/dist/collection/components/cat-radio/cat-radio.js +319 -327
  126. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  127. package/dist/collection/components/cat-radio-group/cat-radio-group.js +173 -165
  128. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  129. package/dist/collection/components/cat-scrollable/cat-scrollable.js +200 -208
  130. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  131. package/dist/collection/components/cat-select/cat-select.js +556 -593
  132. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  133. package/dist/collection/components/cat-select-demo/cat-select-demo.js +3 -28
  134. package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
  135. package/dist/collection/components/cat-skeleton/cat-skeleton.js +85 -88
  136. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
  137. package/dist/collection/components/cat-spinner/cat-spinner.js +52 -50
  138. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
  139. package/dist/collection/components/cat-tab/cat-tab.js +169 -168
  140. package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
  141. package/dist/collection/components/cat-tabs/cat-tabs.js +73 -66
  142. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  143. package/dist/collection/components/cat-textarea/cat-textarea.css +32 -1
  144. package/dist/collection/components/cat-textarea/cat-textarea.js +479 -468
  145. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  146. package/dist/collection/components/cat-toggle/cat-toggle.js +319 -326
  147. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  148. package/dist/collection/components/cat-tooltip/cat-tooltip.css +7 -1
  149. package/dist/collection/components/cat-tooltip/cat-tooltip.js +187 -198
  150. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  151. package/dist/collection/index.js +1 -1
  152. package/dist/collection/scss/fonts/_fonts-mixins.scss +0 -10
  153. package/dist/collection/utils/breakpoints.js +1 -1
  154. package/dist/collection/utils/breakpoints.js.map +1 -1
  155. package/dist/collection/utils/coerce.js +11 -0
  156. package/dist/collection/utils/coerce.js.map +1 -0
  157. package/dist/collection/utils/first-tabbable.js +1 -1
  158. package/dist/collection/utils/is-touch-screen.js +1 -1
  159. package/dist/collection/utils/load-img.js +1 -1
  160. package/dist/collection/utils/media-matcher.js +1 -1
  161. package/dist/collection/utils/platform.js +4 -4
  162. package/dist/collection/utils/setDefault.js +1 -1
  163. package/dist/components/cat-alert.js +1 -6
  164. package/dist/components/cat-alert.js.map +1 -1
  165. package/dist/components/cat-avatar2.js +6 -9
  166. package/dist/components/cat-avatar2.js.map +1 -1
  167. package/dist/components/cat-badge.js +0 -15
  168. package/dist/components/cat-badge.js.map +1 -1
  169. package/dist/components/cat-button2.js +10 -36
  170. package/dist/components/cat-button2.js.map +1 -1
  171. package/dist/components/cat-checkbox2.js +9 -26
  172. package/dist/components/cat-checkbox2.js.map +1 -1
  173. package/dist/components/cat-dropdown2.js +139 -176
  174. package/dist/components/cat-dropdown2.js.map +1 -1
  175. package/dist/components/cat-form-group.js +4 -9
  176. package/dist/components/cat-form-group.js.map +1 -1
  177. package/dist/components/cat-form-hint.js +13 -6
  178. package/dist/components/cat-form-hint.js.map +1 -1
  179. package/dist/components/cat-icon-registry.js +71 -0
  180. package/dist/components/cat-icon-registry.js.map +1 -0
  181. package/dist/components/cat-icon.js +1 -1
  182. package/dist/components/cat-icon2.js +5 -71
  183. package/dist/components/cat-icon2.js.map +1 -1
  184. package/dist/components/cat-input.js +33 -41
  185. package/dist/components/cat-input.js.map +1 -1
  186. package/dist/components/cat-label.js +1 -6
  187. package/dist/components/cat-label.js.map +1 -1
  188. package/dist/components/cat-pagination.js +0 -30
  189. package/dist/components/cat-pagination.js.map +1 -1
  190. package/dist/components/cat-radio-group.js +3 -6
  191. package/dist/components/cat-radio-group.js.map +1 -1
  192. package/dist/components/cat-radio.js +9 -23
  193. package/dist/components/cat-radio.js.map +1 -1
  194. package/dist/components/cat-scrollable2.js +1 -12
  195. package/dist/components/cat-scrollable2.js.map +1 -1
  196. package/dist/components/cat-select-demo.js +2 -12
  197. package/dist/components/cat-select-demo.js.map +1 -1
  198. package/dist/components/cat-select2.js +41 -50
  199. package/dist/components/cat-select2.js.map +1 -1
  200. package/dist/components/cat-skeleton2.js +1 -10
  201. package/dist/components/cat-skeleton2.js.map +1 -1
  202. package/dist/components/cat-spinner2.js +1 -3
  203. package/dist/components/cat-spinner2.js.map +1 -1
  204. package/dist/components/cat-tab.js +3 -12
  205. package/dist/components/cat-tab.js.map +1 -1
  206. package/dist/components/cat-tabs.js +1 -6
  207. package/dist/components/cat-tabs.js.map +1 -1
  208. package/dist/components/cat-textarea.js +28 -33
  209. package/dist/components/cat-textarea.js.map +1 -1
  210. package/dist/components/cat-toggle.js +9 -23
  211. package/dist/components/cat-toggle.js.map +1 -1
  212. package/dist/components/cat-tooltip.js +14 -34
  213. package/dist/components/cat-tooltip.js.map +1 -1
  214. package/dist/components/first-tabbable.js +51 -113
  215. package/dist/components/first-tabbable.js.map +1 -1
  216. package/dist/components/floating-ui.dom.esm.js +577 -441
  217. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  218. package/dist/components/index.d.ts +9 -27
  219. package/dist/components/index.js +2 -26
  220. package/dist/components/index.js.map +1 -1
  221. package/dist/esm/cat-alert_24.entry.js +934 -1136
  222. package/dist/esm/cat-alert_24.entry.js.map +1 -1
  223. package/dist/esm/catalyst.js +7 -3
  224. package/dist/esm/catalyst.js.map +1 -1
  225. package/dist/esm/{index-524906f7.js → index-fc2f91a4.js} +527 -246
  226. package/dist/esm/index-fc2f91a4.js.map +1 -0
  227. package/dist/esm/index.js.map +1 -1
  228. package/dist/esm/loader.js +4 -3
  229. package/dist/esm/loader.js.map +1 -1
  230. package/dist/esm/polyfills/css-shim.js +1 -1
  231. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -1
  232. package/dist/types/components/cat-form-group/cat-form-group.d.ts +4 -0
  233. package/dist/types/components/cat-form-hint/cat-form-hint.d.ts +5 -0
  234. package/dist/types/components/cat-input/cat-input.d.ts +6 -1
  235. package/dist/types/components/cat-input/input-type.d.ts +1 -1
  236. package/dist/types/components/cat-radio/cat-radio.d.ts +1 -1
  237. package/dist/types/components/cat-select/cat-select.d.ts +2 -1
  238. package/dist/types/components/cat-textarea/cat-textarea.d.ts +6 -1
  239. package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -1
  240. package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +3 -0
  241. package/dist/types/components.d.ts +353 -7
  242. package/dist/types/stencil-public-runtime.d.ts +91 -19
  243. package/dist/types/utils/breakpoints.d.ts +1 -1
  244. package/dist/types/utils/coerce.d.ts +3 -0
  245. package/dist/types/utils/first-tabbable.d.ts +2 -2
  246. package/loader/index.d.ts +9 -0
  247. package/loader/package.json +1 -0
  248. package/package.json +19 -19
  249. package/dist/catalyst/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  250. package/dist/catalyst/assets/fonts/DMSans-Bold.woff2 +0 -0
  251. package/dist/catalyst/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  252. package/dist/catalyst/assets/fonts/DMSans-Italic.woff2 +0 -0
  253. package/dist/catalyst/assets/fonts/DMSans-Medium.woff2 +0 -0
  254. package/dist/catalyst/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  255. package/dist/catalyst/assets/fonts/DMSans-Regular.woff2 +0 -0
  256. package/dist/catalyst/p-919eea27.js +0 -3
  257. package/dist/catalyst/p-919eea27.js.map +0 -1
  258. package/dist/catalyst/p-cd8f8639.entry.js +0 -10
  259. package/dist/catalyst/p-cd8f8639.entry.js.map +0 -1
  260. package/dist/catalyst/scss/fonts/_fonts.mixins.azeret.scss +0 -14
  261. package/dist/catalyst/scss/fonts/_fonts.mixins.dm.scss +0 -53
  262. package/dist/cjs/index-c4542095.js.map +0 -1
  263. package/dist/collection/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  264. package/dist/collection/assets/fonts/DMSans-Bold.woff2 +0 -0
  265. package/dist/collection/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  266. package/dist/collection/assets/fonts/DMSans-Italic.woff2 +0 -0
  267. package/dist/collection/assets/fonts/DMSans-Medium.woff2 +0 -0
  268. package/dist/collection/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  269. package/dist/collection/assets/fonts/DMSans-Regular.woff2 +0 -0
  270. package/dist/collection/components/cat-form-hint/cat-form-hint-utils.js +0 -13
  271. package/dist/collection/components/cat-form-hint/cat-form-hint-utils.js.map +0 -1
  272. package/dist/collection/scss/fonts/_fonts.mixins.azeret.scss +0 -14
  273. package/dist/collection/scss/fonts/_fonts.mixins.dm.scss +0 -53
  274. package/dist/components/cat-form-hint-utils.js +0 -17
  275. package/dist/components/cat-form-hint-utils.js.map +0 -1
  276. package/dist/esm/index-524906f7.js.map +0 -1
  277. package/dist/types/components/cat-form-hint/cat-form-hint-utils.d.ts +0 -4
@@ -1,9 +1,10 @@
1
1
  import { autoUpdate, computePosition, offset } from '@floating-ui/dom';
2
- import { Component, Element, Event, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';
2
+ import { h, Host } from '@stencil/core';
3
3
  import autosizeInput from 'autosize-input';
4
4
  import log from 'loglevel';
5
5
  import { catchError, debounce, distinctUntilChanged, filter, first, of, scan, startWith, Subject, switchMap, takeWhile, tap, timer } from 'rxjs';
6
- import { buildHintSection } from '../cat-form-hint/cat-form-hint-utils';
6
+ import { coerceBoolean, coerceNumber } from '../../utils/coerce';
7
+ import { CatFormHint } from '../cat-form-hint/cat-form-hint';
7
8
  import { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry';
8
9
  const INIT_STATE = {
9
10
  term: '',
@@ -31,54 +32,31 @@ export class CatSelect {
31
32
  this.term$ = new Subject();
32
33
  this.more$ = new Subject();
33
34
  this.valueChangedBySelection = false;
35
+ this.connector = undefined;
34
36
  this.state = INIT_STATE;
35
37
  this.hasSlottedLabel = false;
36
- /**
37
- * Whether the label need a marker to shown if the select is required or optional.
38
- */
38
+ this.hasSlottedHint = false;
39
+ this.errorMap = undefined;
39
40
  this.requiredMarker = 'optional';
40
- /**
41
- * Enable multiple selection.
42
- */
43
41
  this.multiple = false;
44
- /**
45
- * The debounce time for the search.
46
- */
47
42
  this.debounce = 250;
48
- /**
49
- * The placement of the select.
50
- */
51
43
  this.placement = 'bottom-start';
52
- /**
53
- * Whether the select is disabled.
54
- */
44
+ this.value = undefined;
55
45
  this.disabled = false;
56
- /**
57
- * The label for the select.
58
- */
46
+ this.placeholder = undefined;
47
+ this.hint = undefined;
48
+ this.identifier = undefined;
59
49
  this.label = '';
60
- /**
61
- * Visually hide the label, but still show it to assistive technologies like screen readers.
62
- */
50
+ this.name = undefined;
63
51
  this.labelHidden = false;
64
- /**
65
- * A value is required or must be checked for the form to be submittable.
66
- */
67
52
  this.required = false;
68
- /**
69
- * Whether the select should show a clear button.
70
- */
71
53
  this.clearable = false;
72
- /**
73
- * Whether the select should add new items.
74
- */
75
54
  this.tags = false;
76
- /**
77
- * Fine-grained control over when the errors are shown. Can be `false` to
78
- * never show errors, `true` to show errors on blur, or a number to show
79
- * errors on change with the given delay in milliseconds.
80
- */
55
+ this.tagHint = undefined;
56
+ this.noItems = undefined;
57
+ this.errors = undefined;
81
58
  this.errorUpdate = 0;
59
+ this.nativeAttributes = undefined;
82
60
  }
83
61
  get id() {
84
62
  return this.identifier || this._id;
@@ -91,25 +69,25 @@ export class CatSelect {
91
69
  !this.valueChangedBySelection ? this.resolve() : (this.valueChangedBySelection = false);
92
70
  }
93
71
  watchErrorsHandler(value) {
94
- if (this.errorUpdate === false) {
72
+ if (coerceBoolean(this.errorUpdate) === false) {
95
73
  this.errorMap = undefined;
96
74
  }
97
75
  else {
98
76
  this.errorMapSrc = Array.isArray(value)
99
- ? value.map(error => ({ [error]: undefined }))
77
+ ? value.reduce((acc, err) => (Object.assign(Object.assign({}, acc), { [err]: undefined })), {})
100
78
  : value === true
101
79
  ? {}
102
80
  : value || undefined;
103
81
  }
104
82
  }
105
83
  onStateChange(newState, oldState) {
106
- var _a;
84
+ var _a, _b;
107
85
  const changed = (key) => newState[key] !== oldState[key];
108
- if (changed('activeOptionIndex')) {
109
- if (this.state.activeOptionIndex >= 0) {
110
- const option = (_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.querySelector(`#select-${this.id}-option-${this.state.activeOptionIndex}`);
111
- option === null || option === void 0 ? void 0 : option.scrollIntoView({ block: 'nearest' });
112
- }
86
+ if (changed('isOpen')) {
87
+ this.update();
88
+ }
89
+ if (changed('activeOptionIndex') && this.state.activeOptionIndex >= 0) {
90
+ (_b = (_a = this.dropdown) === null || _a === void 0 ? void 0 : _a.querySelector(`#select-${this.id}-option-${this.state.activeOptionIndex}`)) === null || _b === void 0 ? void 0 : _b.scrollIntoView({ block: 'nearest' });
113
91
  }
114
92
  if (changed('selection')) {
115
93
  let newValue;
@@ -142,9 +120,10 @@ export class CatSelect {
142
120
  this.value = newValue;
143
121
  }
144
122
  this.catChange.emit();
145
- if (typeof this.errorUpdate === 'number') {
123
+ const errorUpdate = coerceNumber(this.errorUpdate, null);
124
+ if (errorUpdate !== null) {
146
125
  typeof this.errorUpdateTimeoutId === 'number' && window.clearTimeout(this.errorUpdateTimeoutId);
147
- this.errorUpdateTimeoutId = window.setTimeout(() => (this.errorMap = this.errorMapSrc), this.errorUpdate);
126
+ this.errorUpdateTimeoutId = window.setTimeout(() => (this.errorMap = this.errorMapSrc), errorUpdate);
148
127
  }
149
128
  }
150
129
  }
@@ -159,6 +138,7 @@ export class CatSelect {
159
138
  componentWillRender() {
160
139
  this.watchErrorsHandler(this.errors);
161
140
  this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
141
+ this.hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
162
142
  if (!this.label && !this.hasSlottedLabel) {
163
143
  log.warn('[A11y] Missing ARIA label on select', this);
164
144
  }
@@ -175,7 +155,7 @@ export class CatSelect {
175
155
  this.hide();
176
156
  this.patchState({ activeSelectionIndex: -1 });
177
157
  this.catBlur.emit(event);
178
- if (this.errorUpdate !== false) {
158
+ if (`${this.errorUpdate}` !== 'false') {
179
159
  this.errorMap = this.errorMapSrc;
180
160
  }
181
161
  }
@@ -297,49 +277,20 @@ export class CatSelect {
297
277
  }
298
278
  render() {
299
279
  var _a, _b;
300
- return (h(Host, null,
301
- (this.hasSlottedLabel || this.label) && (h("label", { htmlFor: this.id, class: { hidden: this.labelHidden } },
302
- h("span", { part: "label" },
303
- (this.hasSlottedLabel && h("slot", { name: "label" })) || this.label,
304
- !this.required && this.requiredMarker.startsWith('optional') && (h("span", { class: "input-optional", "aria-hidden": "true" },
305
- "(",
306
- i18n.t('input.optional'),
307
- ")")),
308
- this.required && this.requiredMarker.startsWith('required') && (h("span", { class: "input-optional", "aria-hidden": "true" },
309
- "(",
310
- i18n.t('input.required'),
311
- ")"))))),
312
- h("div", { class: { 'select-wrapper': true, 'select-disabled': this.disabled, 'select-invalid': this.invalid }, ref: el => (this.trigger = el), id: this.id, role: "combobox", "aria-expanded": this.state.isOpen || this.isPillboxActive(), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-required": this.required ? 'true' : false, "aria-activedescendant": this.activeDescendant, onClick: e => this.onClick(e) },
313
- h("div", { class: "select-wrapper-inner" },
314
- this.multiple && this.state.selection.length ? (h("div", { id: `select-pillbox-${this.id}`, role: "listbox", "aria-orientation": "horizontal", class: "select-pills" }, this.state.selection.map((item, i) => {
315
- var _a;
316
- return (h("span", { class: {
317
- pill: true,
318
- 'select-no-open': true,
319
- 'select-option-active': this.state.activeSelectionIndex === i
320
- }, role: "option", "aria-selected": "true", id: `select-${this.id}-selection-${i}` },
321
- item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_a = item.render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null,
322
- h("span", null, item.render.label),
323
- !this.disabled && (h("cat-button", { size: "xs", variant: "text", icon: "16-cross", iconOnly: true, a11yLabel: i18n.t('select.deselect'), onClick: () => this.deselect(item.item.id), tabIndex: -1 }))));
324
- }))) : this.state.selection.length && this.state.selection[0].render.avatar ? (h("cat-avatar", { label: this.state.selection[0].render.label, round: this.state.selection[0].render.avatar.round, src: this.state.selection[0].render.avatar.src, initials: (_a = this.state.selection[0].render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null,
325
- h("input", Object.assign({}, this.nativeAttributes, { class: "select-input", ref: el => (this.input = el), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-activedescendant": this.activeDescendant, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": ((_b = this.hint) === null || _b === void 0 ? void 0 : _b.length) ? this.id + '-hint' : undefined, onInput: () => this.onInput(), value: !this.multiple ? this.state.term : undefined, placeholder: this.placeholder, disabled: this.disabled || this.state.isResolving }))),
326
- this.state.isResolving && h("cat-spinner", null),
327
- this.invalid && (h("cat-icon", { icon: "alert-circle-outlined", class: "icon-suffix cat-text-danger", size: "l" })),
328
- (this.state.selection.length || this.state.term.length) &&
329
- !this.disabled &&
330
- !this.state.isResolving &&
331
- this.clearable ? (h("cat-button", { id: `select-clear-btn-${this.id}`, iconOnly: true, icon: "cross-circle-outlined", variant: "text", size: "s", a11yLabel: i18n.t('input.clear'), onClick: () => this.clear() })) : null,
332
- !this.state.isResolving && (h("cat-button", { iconOnly: true, icon: "chevron-down-outlined", class: { 'select-btn': true, 'select-btn-open': this.state.isOpen }, variant: "text", size: "s", a11yLabel: this.state.isOpen ? i18n.t('select.close') : i18n.t('select.open'), "aria-controls": `select-listbox-${this.id}`, "aria-expanded": this.state.isOpen, tabIndex: -1, disabled: this.disabled || this.state.isResolving }))),
333
- buildHintSection(this.hostElement, this.id, this.hint, this.errorMap),
334
- h("div", { class: "select-dropdown", ref: el => (this.dropdown = el), style: { display: this.state.isOpen ? 'block' : undefined } }, this.state.isOpen && (h("cat-scrollable", { class: "select-options-wrapper", scrolledBuffer: 56, noOverflowX: true, noOverscroll: true, noScrolledInit: true, onScrolledBottom: () => this.more$.next() },
335
- h("ul", { class: "select-options", role: "listbox", "aria-multiselectable": this.multiple, "aria-setsize": this.state.totalElements, id: `select-listbox-${this.id}` },
336
- this.optionsList,
337
- this.state.isLoading
338
- ? Array.from(Array(CatSelect.SKELETON_COUNT)).map(() => (h("li", { class: "select-option-loading" },
339
- h("cat-skeleton", { variant: "body", lines: 1 }),
340
- h("cat-skeleton", { variant: "body", lines: 1 }))))
341
- : !this.state.options.length &&
342
- !this.tags && (h("li", { class: "select-option-empty" }, this.noItems ? this.noItems : i18n.t('select.empty')))))))));
280
+ return (h(Host, null, (this.hasSlottedLabel || this.label) && (h("label", { htmlFor: this.id, class: { hidden: this.labelHidden } }, h("span", { part: "label" }, (this.hasSlottedLabel && h("slot", { name: "label" })) || this.label, !this.required && this.requiredMarker.startsWith('optional') && (h("span", { class: "input-optional", "aria-hidden": "true" }, "(", i18n.t('input.optional'), ")")), this.required && this.requiredMarker.startsWith('required') && (h("span", { class: "input-optional", "aria-hidden": "true" }, "(", i18n.t('input.required'), ")"))))), h("div", { class: { 'select-wrapper': true, 'select-disabled': this.disabled, 'select-invalid': this.invalid }, ref: el => (this.trigger = el), id: this.id, role: "combobox", "aria-expanded": this.state.isOpen || this.isPillboxActive(), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-required": this.required ? 'true' : false, "aria-activedescendant": this.activeDescendant, onClick: e => this.onClick(e) }, h("div", { class: "select-wrapper-inner" }, this.multiple && this.state.selection.length ? (h("div", { id: `select-pillbox-${this.id}`, role: "listbox", "aria-orientation": "horizontal", class: "select-pills" }, this.state.selection.map((item, i) => {
281
+ var _a;
282
+ return (h("span", { class: {
283
+ pill: true,
284
+ 'select-no-open': true,
285
+ 'select-option-active': this.state.activeSelectionIndex === i
286
+ }, role: "option", "aria-selected": "true", id: `select-${this.id}-selection-${i}` }, item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_a = item.render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null, h("span", null, item.render.label), !this.disabled && (h("cat-button", { size: "xs", variant: "text", icon: "16-cross", iconOnly: true, a11yLabel: i18n.t('select.deselect'), onClick: () => this.deselect(item.item.id), tabIndex: -1 }))));
287
+ }))) : this.state.selection.length && this.state.selection[0].render.avatar ? (h("cat-avatar", { label: this.state.selection[0].render.label, round: this.state.selection[0].render.avatar.round, src: this.state.selection[0].render.avatar.src, initials: (_a = this.state.selection[0].render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null, h("input", Object.assign({}, this.nativeAttributes, { class: "select-input", ref: el => (this.input = el), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-activedescendant": this.activeDescendant, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": ((_b = this.hint) === null || _b === void 0 ? void 0 : _b.length) ? this.id + '-hint' : undefined, onInput: this.onInput.bind(this), value: !this.multiple ? this.state.term : undefined, placeholder: this.placeholder, disabled: this.disabled || this.state.isResolving }))), this.state.isResolving && h("cat-spinner", null), this.invalid && (h("cat-icon", { icon: "alert-circle-outlined", class: "icon-suffix cat-text-danger", size: "l" })), (this.state.selection.length || this.state.term.length) &&
288
+ !this.disabled &&
289
+ !this.state.isResolving &&
290
+ this.clearable ? (h("cat-button", { id: `select-clear-btn-${this.id}`, iconOnly: true, icon: "cross-circle-outlined", variant: "text", size: "s", a11yLabel: i18n.t('input.clear'), onClick: () => this.clear() })) : null, !this.state.isResolving && (h("cat-button", { iconOnly: true, icon: "chevron-down-outlined", class: { 'select-btn': true, 'select-btn-open': this.state.isOpen }, variant: "text", size: "s", a11yLabel: this.state.isOpen ? i18n.t('select.close') : i18n.t('select.open'), "aria-controls": `select-listbox-${this.id}`, "aria-expanded": this.state.isOpen, tabIndex: -1, disabled: this.disabled || this.state.isResolving }))), (this.hint || this.hasSlottedHint || !!Object.keys(this.errorMap || {}).length) && (h(CatFormHint, { id: this.id, hint: this.hint, slottedHint: this.hasSlottedHint && h("slot", { name: "hint" }), errorMap: this.errorMap })), h("div", { class: "select-dropdown", ref: el => (this.dropdown = el), style: { display: this.state.isOpen ? 'block' : undefined } }, this.state.isOpen && (h("cat-scrollable", { class: "select-options-wrapper", scrolledBuffer: 56, noOverflowX: true, noOverscroll: true, noScrolledInit: true, onScrolledBottom: () => this.more$.next() }, h("ul", { class: "select-options", role: "listbox", "aria-multiselectable": this.multiple, "aria-setsize": this.state.totalElements, id: `select-listbox-${this.id}` }, this.optionsList, this.state.isLoading
291
+ ? Array.from(Array(CatSelect.SKELETON_COUNT)).map(() => (h("li", { class: "select-option-loading" }, h("cat-skeleton", { variant: "body", lines: 1 }), h("cat-skeleton", { variant: "body", lines: 1 }))))
292
+ : !this.state.options.length &&
293
+ !this.tags && (h("li", { class: "select-option-empty" }, this.noItems ? this.noItems : i18n.t('select.empty')))))))));
343
294
  }
344
295
  get invalid() {
345
296
  return !!this.errorMap;
@@ -358,20 +309,11 @@ export class CatSelect {
358
309
  return (h("li", { role: "option", class: "select-option", id: `select-${this.id}-option-${i}`, "aria-selected": isOptionSelected ? 'true' : 'false' }, this.multiple ? (h("cat-checkbox", { class: { 'select-option-active': this.state.activeOptionIndex === i }, checked: isOptionSelected, tabIndex: -1, labelLeft: true, onFocus: () => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }, onCatChange: e => {
359
310
  !isTagOption ? this.toggle(item) : this.toggleTag(item);
360
311
  e.stopPropagation();
361
- } },
362
- h("span", { slot: "label", class: "select-option-inner" },
363
- item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_a = item.render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null,
364
- h("span", { class: "select-option-text" },
365
- h("span", { class: "select-option-label" }, getLabel()),
366
- h("span", { class: "select-option-description" }, item.render.description))))) : (h("div", { class: {
312
+ } }, h("span", { slot: "label", class: "select-option-inner" }, item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_a = item.render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null, h("span", { class: "select-option-text" }, h("span", { class: "select-option-label" }, getLabel()), h("span", { class: "select-option-description" }, item.render.description))))) : (h("div", { class: {
367
313
  'select-option-inner': true,
368
314
  'select-option-single': true,
369
315
  'select-option-active': this.state.activeOptionIndex === i
370
- }, onFocus: () => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }, onClick: () => (isTagOption ? this.createTag(item.render.label) : this.select(item)), tabIndex: -1 },
371
- item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_b = item.render.avatar.initials) !== null && _b !== void 0 ? _b : '' })) : null,
372
- h("span", { class: "select-option-text" },
373
- h("span", { class: "select-option-label" }, getLabel()),
374
- h("span", { class: "select-option-description" }, item.render.description))))));
316
+ }, onFocus: () => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }, onClick: () => (isTagOption ? this.createTag(item.render.label) : this.select(item)), tabIndex: -1 }, item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_b = item.render.avatar.initials) !== null && _b !== void 0 ? _b : '' })) : null, h("span", { class: "select-option-text" }, h("span", { class: "select-option-label" }, getLabel()), h("span", { class: "select-option-description" }, item.render.description))))));
375
317
  });
376
318
  }
377
319
  resolve() {
@@ -660,530 +602,551 @@ export class CatSelect {
660
602
  }
661
603
  static get is() { return "cat-select"; }
662
604
  static get encapsulation() { return "shadow"; }
663
- static get originalStyleUrls() { return {
664
- "$": ["cat-select.scss"]
665
- }; }
666
- static get styleUrls() { return {
667
- "$": ["cat-select.css"]
668
- }; }
669
- static get properties() { return {
670
- "requiredMarker": {
671
- "type": "string",
672
- "mutable": false,
673
- "complexType": {
674
- "original": "'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!'",
675
- "resolved": "\"none!\" | \"none\" | \"optional!\" | \"optional\" | \"required!\" | \"required\"",
676
- "references": {}
677
- },
678
- "required": false,
679
- "optional": false,
680
- "docs": {
681
- "tags": [],
682
- "text": "Whether the label need a marker to shown if the select is required or optional."
683
- },
684
- "attribute": "required-marker",
685
- "reflect": false,
686
- "defaultValue": "'optional'"
687
- },
688
- "multiple": {
689
- "type": "boolean",
690
- "mutable": false,
691
- "complexType": {
692
- "original": "boolean",
693
- "resolved": "boolean",
694
- "references": {}
695
- },
696
- "required": false,
697
- "optional": false,
698
- "docs": {
699
- "tags": [],
700
- "text": "Enable multiple selection."
605
+ static get originalStyleUrls() {
606
+ return {
607
+ "$": ["cat-select.scss"]
608
+ };
609
+ }
610
+ static get styleUrls() {
611
+ return {
612
+ "$": ["cat-select.css"]
613
+ };
614
+ }
615
+ static get properties() {
616
+ return {
617
+ "requiredMarker": {
618
+ "type": "string",
619
+ "mutable": false,
620
+ "complexType": {
621
+ "original": "'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!'",
622
+ "resolved": "\"none!\" | \"none\" | \"optional!\" | \"optional\" | \"required!\" | \"required\"",
623
+ "references": {}
624
+ },
625
+ "required": false,
626
+ "optional": false,
627
+ "docs": {
628
+ "tags": [],
629
+ "text": "Whether the label need a marker to shown if the select is required or optional."
630
+ },
631
+ "attribute": "required-marker",
632
+ "reflect": false,
633
+ "defaultValue": "'optional'"
701
634
  },
702
- "attribute": "multiple",
703
- "reflect": false,
704
- "defaultValue": "false"
705
- },
706
- "debounce": {
707
- "type": "number",
708
- "mutable": false,
709
- "complexType": {
710
- "original": "number",
711
- "resolved": "number",
712
- "references": {}
635
+ "multiple": {
636
+ "type": "boolean",
637
+ "mutable": false,
638
+ "complexType": {
639
+ "original": "boolean",
640
+ "resolved": "boolean",
641
+ "references": {}
642
+ },
643
+ "required": false,
644
+ "optional": false,
645
+ "docs": {
646
+ "tags": [],
647
+ "text": "Enable multiple selection."
648
+ },
649
+ "attribute": "multiple",
650
+ "reflect": false,
651
+ "defaultValue": "false"
713
652
  },
714
- "required": false,
715
- "optional": false,
716
- "docs": {
717
- "tags": [],
718
- "text": "The debounce time for the search."
653
+ "debounce": {
654
+ "type": "number",
655
+ "mutable": false,
656
+ "complexType": {
657
+ "original": "number",
658
+ "resolved": "number",
659
+ "references": {}
660
+ },
661
+ "required": false,
662
+ "optional": false,
663
+ "docs": {
664
+ "tags": [],
665
+ "text": "The debounce time for the search."
666
+ },
667
+ "attribute": "debounce",
668
+ "reflect": false,
669
+ "defaultValue": "250"
719
670
  },
720
- "attribute": "debounce",
721
- "reflect": false,
722
- "defaultValue": "250"
723
- },
724
- "placement": {
725
- "type": "string",
726
- "mutable": false,
727
- "complexType": {
728
- "original": "Placement",
729
- "resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
730
- "references": {
731
- "Placement": {
732
- "location": "import",
733
- "path": "@floating-ui/dom"
671
+ "placement": {
672
+ "type": "string",
673
+ "mutable": false,
674
+ "complexType": {
675
+ "original": "Placement",
676
+ "resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
677
+ "references": {
678
+ "Placement": {
679
+ "location": "import",
680
+ "path": "@floating-ui/dom"
681
+ }
734
682
  }
735
- }
736
- },
737
- "required": false,
738
- "optional": false,
739
- "docs": {
740
- "tags": [],
741
- "text": "The placement of the select."
683
+ },
684
+ "required": false,
685
+ "optional": false,
686
+ "docs": {
687
+ "tags": [],
688
+ "text": "The placement of the select."
689
+ },
690
+ "attribute": "placement",
691
+ "reflect": false,
692
+ "defaultValue": "'bottom-start'"
742
693
  },
743
- "attribute": "placement",
744
- "reflect": false,
745
- "defaultValue": "'bottom-start'"
746
- },
747
- "value": {
748
- "type": "string",
749
- "mutable": true,
750
- "complexType": {
751
- "original": "string | string[] | CatSelectTaggingValue | CatSelectMultipleTaggingValue",
752
- "resolved": "CatSelectMultipleTaggingValue | CatSelectTaggingValue | string | string[] | undefined",
753
- "references": {
754
- "CatSelectTaggingValue": {
755
- "location": "local"
756
- },
757
- "CatSelectMultipleTaggingValue": {
758
- "location": "local"
694
+ "value": {
695
+ "type": "string",
696
+ "mutable": true,
697
+ "complexType": {
698
+ "original": "string | string[] | CatSelectTaggingValue | CatSelectMultipleTaggingValue",
699
+ "resolved": "CatSelectMultipleTaggingValue | CatSelectTaggingValue | string | string[] | undefined",
700
+ "references": {
701
+ "CatSelectTaggingValue": {
702
+ "location": "local",
703
+ "path": "/Users/fynn/Workspace/catalyst/core/src/components/cat-select/cat-select.tsx"
704
+ },
705
+ "CatSelectMultipleTaggingValue": {
706
+ "location": "local",
707
+ "path": "/Users/fynn/Workspace/catalyst/core/src/components/cat-select/cat-select.tsx"
708
+ }
759
709
  }
760
- }
761
- },
762
- "required": false,
763
- "optional": true,
764
- "docs": {
765
- "tags": [],
766
- "text": "The value of the select. <br />\n<br />\nThe value of the select depends on whether it is allowed to choose a single item or several items. <br />\nWhen only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br />\n<br />\nIn case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item,\nin the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created"
767
- },
768
- "attribute": "value",
769
- "reflect": false
770
- },
771
- "disabled": {
772
- "type": "boolean",
773
- "mutable": false,
774
- "complexType": {
775
- "original": "boolean",
776
- "resolved": "boolean",
777
- "references": {}
778
- },
779
- "required": false,
780
- "optional": false,
781
- "docs": {
782
- "tags": [],
783
- "text": "Whether the select is disabled."
784
- },
785
- "attribute": "disabled",
786
- "reflect": false,
787
- "defaultValue": "false"
788
- },
789
- "placeholder": {
790
- "type": "string",
791
- "mutable": false,
792
- "complexType": {
793
- "original": "string",
794
- "resolved": "string | undefined",
795
- "references": {}
796
- },
797
- "required": false,
798
- "optional": true,
799
- "docs": {
800
- "tags": [],
801
- "text": "The placeholder text to display within the select."
802
- },
803
- "attribute": "placeholder",
804
- "reflect": false
805
- },
806
- "hint": {
807
- "type": "string",
808
- "mutable": false,
809
- "complexType": {
810
- "original": "string | string[]",
811
- "resolved": "string | string[] | undefined",
812
- "references": {}
813
- },
814
- "required": false,
815
- "optional": true,
816
- "docs": {
817
- "tags": [],
818
- "text": "Optional hint text(s) to be displayed with the select."
819
- },
820
- "attribute": "hint",
821
- "reflect": false
822
- },
823
- "identifier": {
824
- "type": "string",
825
- "mutable": false,
826
- "complexType": {
827
- "original": "string",
828
- "resolved": "string | undefined",
829
- "references": {}
830
- },
831
- "required": false,
832
- "optional": true,
833
- "docs": {
834
- "tags": [],
835
- "text": "A unique identifier for the input."
836
- },
837
- "attribute": "identifier",
838
- "reflect": false
839
- },
840
- "label": {
841
- "type": "string",
842
- "mutable": false,
843
- "complexType": {
844
- "original": "string",
845
- "resolved": "string",
846
- "references": {}
847
- },
848
- "required": false,
849
- "optional": false,
850
- "docs": {
851
- "tags": [],
852
- "text": "The label for the select."
853
- },
854
- "attribute": "label",
855
- "reflect": false,
856
- "defaultValue": "''"
857
- },
858
- "name": {
859
- "type": "string",
860
- "mutable": false,
861
- "complexType": {
862
- "original": "string",
863
- "resolved": "string | undefined",
864
- "references": {}
865
- },
866
- "required": false,
867
- "optional": true,
868
- "docs": {
869
- "tags": [],
870
- "text": "The name of the form control. Submitted with the form as part of a name/value pair."
710
+ },
711
+ "required": false,
712
+ "optional": true,
713
+ "docs": {
714
+ "tags": [],
715
+ "text": "The value of the select. <br />\n<br />\nThe value of the select depends on whether it is allowed to choose a single item or several items. <br />\nWhen only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br />\n<br />\nIn case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item,\nin the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created"
716
+ },
717
+ "attribute": "value",
718
+ "reflect": false
871
719
  },
872
- "attribute": "name",
873
- "reflect": false
874
- },
875
- "labelHidden": {
876
- "type": "boolean",
877
- "mutable": false,
878
- "complexType": {
879
- "original": "boolean",
880
- "resolved": "boolean",
881
- "references": {}
720
+ "disabled": {
721
+ "type": "boolean",
722
+ "mutable": false,
723
+ "complexType": {
724
+ "original": "boolean",
725
+ "resolved": "boolean",
726
+ "references": {}
727
+ },
728
+ "required": false,
729
+ "optional": false,
730
+ "docs": {
731
+ "tags": [],
732
+ "text": "Whether the select is disabled."
733
+ },
734
+ "attribute": "disabled",
735
+ "reflect": false,
736
+ "defaultValue": "false"
882
737
  },
883
- "required": false,
884
- "optional": false,
885
- "docs": {
886
- "tags": [],
887
- "text": "Visually hide the label, but still show it to assistive technologies like screen readers."
738
+ "placeholder": {
739
+ "type": "string",
740
+ "mutable": false,
741
+ "complexType": {
742
+ "original": "string",
743
+ "resolved": "string | undefined",
744
+ "references": {}
745
+ },
746
+ "required": false,
747
+ "optional": true,
748
+ "docs": {
749
+ "tags": [],
750
+ "text": "The placeholder text to display within the select."
751
+ },
752
+ "attribute": "placeholder",
753
+ "reflect": false
888
754
  },
889
- "attribute": "label-hidden",
890
- "reflect": false,
891
- "defaultValue": "false"
892
- },
893
- "required": {
894
- "type": "boolean",
895
- "mutable": false,
896
- "complexType": {
897
- "original": "boolean",
898
- "resolved": "boolean",
899
- "references": {}
755
+ "hint": {
756
+ "type": "string",
757
+ "mutable": false,
758
+ "complexType": {
759
+ "original": "string | string[]",
760
+ "resolved": "string | string[] | undefined",
761
+ "references": {}
762
+ },
763
+ "required": false,
764
+ "optional": true,
765
+ "docs": {
766
+ "tags": [],
767
+ "text": "Optional hint text(s) to be displayed with the select."
768
+ },
769
+ "attribute": "hint",
770
+ "reflect": false
900
771
  },
901
- "required": false,
902
- "optional": false,
903
- "docs": {
904
- "tags": [],
905
- "text": "A value is required or must be checked for the form to be submittable."
772
+ "identifier": {
773
+ "type": "string",
774
+ "mutable": false,
775
+ "complexType": {
776
+ "original": "string",
777
+ "resolved": "string | undefined",
778
+ "references": {}
779
+ },
780
+ "required": false,
781
+ "optional": true,
782
+ "docs": {
783
+ "tags": [],
784
+ "text": "A unique identifier for the input."
785
+ },
786
+ "attribute": "identifier",
787
+ "reflect": false
906
788
  },
907
- "attribute": "required",
908
- "reflect": false,
909
- "defaultValue": "false"
910
- },
911
- "clearable": {
912
- "type": "boolean",
913
- "mutable": false,
914
- "complexType": {
915
- "original": "boolean",
916
- "resolved": "boolean",
917
- "references": {}
789
+ "label": {
790
+ "type": "string",
791
+ "mutable": false,
792
+ "complexType": {
793
+ "original": "string",
794
+ "resolved": "string",
795
+ "references": {}
796
+ },
797
+ "required": false,
798
+ "optional": false,
799
+ "docs": {
800
+ "tags": [],
801
+ "text": "The label for the select."
802
+ },
803
+ "attribute": "label",
804
+ "reflect": false,
805
+ "defaultValue": "''"
918
806
  },
919
- "required": false,
920
- "optional": false,
921
- "docs": {
922
- "tags": [],
923
- "text": "Whether the select should show a clear button."
807
+ "name": {
808
+ "type": "string",
809
+ "mutable": false,
810
+ "complexType": {
811
+ "original": "string",
812
+ "resolved": "string | undefined",
813
+ "references": {}
814
+ },
815
+ "required": false,
816
+ "optional": true,
817
+ "docs": {
818
+ "tags": [],
819
+ "text": "The name of the form control. Submitted with the form as part of a name/value pair."
820
+ },
821
+ "attribute": "name",
822
+ "reflect": false
924
823
  },
925
- "attribute": "clearable",
926
- "reflect": false,
927
- "defaultValue": "false"
928
- },
929
- "tags": {
930
- "type": "boolean",
931
- "mutable": false,
932
- "complexType": {
933
- "original": "boolean",
934
- "resolved": "boolean",
935
- "references": {}
824
+ "labelHidden": {
825
+ "type": "boolean",
826
+ "mutable": false,
827
+ "complexType": {
828
+ "original": "boolean",
829
+ "resolved": "boolean",
830
+ "references": {}
831
+ },
832
+ "required": false,
833
+ "optional": false,
834
+ "docs": {
835
+ "tags": [],
836
+ "text": "Visually hide the label, but still show it to assistive technologies like screen readers."
837
+ },
838
+ "attribute": "label-hidden",
839
+ "reflect": false,
840
+ "defaultValue": "false"
936
841
  },
937
- "required": false,
938
- "optional": false,
939
- "docs": {
940
- "tags": [],
941
- "text": "Whether the select should add new items."
842
+ "required": {
843
+ "type": "boolean",
844
+ "mutable": false,
845
+ "complexType": {
846
+ "original": "boolean",
847
+ "resolved": "boolean",
848
+ "references": {}
849
+ },
850
+ "required": false,
851
+ "optional": false,
852
+ "docs": {
853
+ "tags": [],
854
+ "text": "A value is required or must be checked for the form to be submittable."
855
+ },
856
+ "attribute": "required",
857
+ "reflect": false,
858
+ "defaultValue": "false"
942
859
  },
943
- "attribute": "tags",
944
- "reflect": false,
945
- "defaultValue": "false"
946
- },
947
- "tagHint": {
948
- "type": "string",
949
- "mutable": false,
950
- "complexType": {
951
- "original": "string",
952
- "resolved": "string | undefined",
953
- "references": {}
860
+ "clearable": {
861
+ "type": "boolean",
862
+ "mutable": false,
863
+ "complexType": {
864
+ "original": "boolean",
865
+ "resolved": "boolean",
866
+ "references": {}
867
+ },
868
+ "required": false,
869
+ "optional": false,
870
+ "docs": {
871
+ "tags": [],
872
+ "text": "Whether the select should show a clear button."
873
+ },
874
+ "attribute": "clearable",
875
+ "reflect": false,
876
+ "defaultValue": "false"
954
877
  },
955
- "required": false,
956
- "optional": true,
957
- "docs": {
958
- "tags": [],
959
- "text": "Optional hint text to be displayed on the new item to be added."
878
+ "tags": {
879
+ "type": "boolean",
880
+ "mutable": false,
881
+ "complexType": {
882
+ "original": "boolean",
883
+ "resolved": "boolean",
884
+ "references": {}
885
+ },
886
+ "required": false,
887
+ "optional": false,
888
+ "docs": {
889
+ "tags": [],
890
+ "text": "Whether the select should add new items."
891
+ },
892
+ "attribute": "tags",
893
+ "reflect": false,
894
+ "defaultValue": "false"
960
895
  },
961
- "attribute": "tag-hint",
962
- "reflect": false
963
- },
964
- "noItems": {
965
- "type": "string",
966
- "mutable": false,
967
- "complexType": {
968
- "original": "string",
969
- "resolved": "string | undefined",
970
- "references": {}
896
+ "tagHint": {
897
+ "type": "string",
898
+ "mutable": false,
899
+ "complexType": {
900
+ "original": "string",
901
+ "resolved": "string | undefined",
902
+ "references": {}
903
+ },
904
+ "required": false,
905
+ "optional": true,
906
+ "docs": {
907
+ "tags": [],
908
+ "text": "Optional hint text to be displayed on the new item to be added."
909
+ },
910
+ "attribute": "tag-hint",
911
+ "reflect": false
971
912
  },
972
- "required": false,
973
- "optional": true,
974
- "docs": {
975
- "tags": [],
976
- "text": "The text to display in the dropdown if no results are found."
913
+ "noItems": {
914
+ "type": "string",
915
+ "mutable": false,
916
+ "complexType": {
917
+ "original": "string",
918
+ "resolved": "string | undefined",
919
+ "references": {}
920
+ },
921
+ "required": false,
922
+ "optional": true,
923
+ "docs": {
924
+ "tags": [],
925
+ "text": "The text to display in the dropdown if no results are found."
926
+ },
927
+ "attribute": "no-items",
928
+ "reflect": false
977
929
  },
978
- "attribute": "no-items",
979
- "reflect": false
980
- },
981
- "errors": {
982
- "type": "boolean",
983
- "mutable": false,
984
- "complexType": {
985
- "original": "boolean | string[] | ErrorMap",
986
- "resolved": "boolean | string[] | undefined | { [key: string]: any; }",
987
- "references": {
988
- "ErrorMap": {
989
- "location": "import",
990
- "path": "../cat-form-hint/cat-form-hint-utils"
930
+ "errors": {
931
+ "type": "boolean",
932
+ "mutable": false,
933
+ "complexType": {
934
+ "original": "boolean | string[] | ErrorMap",
935
+ "resolved": "boolean | string[] | undefined | { [key: string]: any; }",
936
+ "references": {
937
+ "ErrorMap": {
938
+ "location": "import",
939
+ "path": "../cat-form-hint/cat-form-hint"
940
+ }
991
941
  }
992
- }
993
- },
994
- "required": false,
995
- "optional": true,
996
- "docs": {
997
- "tags": [],
998
- "text": "The validation errors for this input. Will render a hint under the input\nwith the translated error message(s) `error.${key}`. If an object is\npassed, the keys will be used as error keys and the values translation\nparameters.\nIf the value is `true`, the input will be marked as invalid without any\nhints under the input."
999
- },
1000
- "attribute": "errors",
1001
- "reflect": false
1002
- },
1003
- "errorUpdate": {
1004
- "type": "any",
1005
- "mutable": false,
1006
- "complexType": {
1007
- "original": "boolean | number",
1008
- "resolved": "boolean | number",
1009
- "references": {}
1010
- },
1011
- "required": false,
1012
- "optional": false,
1013
- "docs": {
1014
- "tags": [],
1015
- "text": "Fine-grained control over when the errors are shown. Can be `false` to\nnever show errors, `true` to show errors on blur, or a number to show\nerrors on change with the given delay in milliseconds."
942
+ },
943
+ "required": false,
944
+ "optional": true,
945
+ "docs": {
946
+ "tags": [],
947
+ "text": "The validation errors for this input. Will render a hint under the input\nwith the translated error message(s) `error.${key}`. If an object is\npassed, the keys will be used as error keys and the values translation\nparameters.\nIf the value is `true`, the input will be marked as invalid without any\nhints under the input."
948
+ },
949
+ "attribute": "errors",
950
+ "reflect": false
1016
951
  },
1017
- "attribute": "error-update",
1018
- "reflect": false,
1019
- "defaultValue": "0"
1020
- },
1021
- "nativeAttributes": {
1022
- "type": "unknown",
1023
- "mutable": false,
1024
- "complexType": {
1025
- "original": "{ [key: string]: string }",
1026
- "resolved": "undefined | { [key: string]: string; }",
1027
- "references": {}
952
+ "errorUpdate": {
953
+ "type": "any",
954
+ "mutable": false,
955
+ "complexType": {
956
+ "original": "boolean | number",
957
+ "resolved": "boolean | number",
958
+ "references": {}
959
+ },
960
+ "required": false,
961
+ "optional": false,
962
+ "docs": {
963
+ "tags": [],
964
+ "text": "Fine-grained control over when the errors are shown. Can be `false` to\nnever show errors, `true` to show errors on blur, or a number to show\nerrors on change with the given delay in milliseconds."
965
+ },
966
+ "attribute": "error-update",
967
+ "reflect": false,
968
+ "defaultValue": "0"
1028
969
  },
1029
- "required": false,
1030
- "optional": true,
1031
- "docs": {
1032
- "tags": [],
1033
- "text": "Attributes that will be added to the native HTML input element."
970
+ "nativeAttributes": {
971
+ "type": "unknown",
972
+ "mutable": false,
973
+ "complexType": {
974
+ "original": "{ [key: string]: string }",
975
+ "resolved": "undefined | { [key: string]: string; }",
976
+ "references": {}
977
+ },
978
+ "required": false,
979
+ "optional": true,
980
+ "docs": {
981
+ "tags": [],
982
+ "text": "Attributes that will be added to the native HTML input element."
983
+ }
1034
984
  }
1035
- }
1036
- }; }
1037
- static get states() { return {
1038
- "connector": {},
1039
- "state": {},
1040
- "hasSlottedLabel": {},
1041
- "errorMap": {}
1042
- }; }
1043
- static get events() { return [{
1044
- "method": "catOpen",
1045
- "name": "catOpen",
1046
- "bubbles": true,
1047
- "cancelable": true,
1048
- "composed": true,
1049
- "docs": {
1050
- "tags": [],
1051
- "text": "Emitted when the select dropdown is opened."
1052
- },
1053
- "complexType": {
1054
- "original": "FocusEvent",
1055
- "resolved": "FocusEvent",
1056
- "references": {
1057
- "FocusEvent": {
1058
- "location": "global"
985
+ };
986
+ }
987
+ static get states() {
988
+ return {
989
+ "connector": {},
990
+ "state": {},
991
+ "hasSlottedLabel": {},
992
+ "hasSlottedHint": {},
993
+ "errorMap": {}
994
+ };
995
+ }
996
+ static get events() {
997
+ return [{
998
+ "method": "catOpen",
999
+ "name": "catOpen",
1000
+ "bubbles": true,
1001
+ "cancelable": true,
1002
+ "composed": true,
1003
+ "docs": {
1004
+ "tags": [],
1005
+ "text": "Emitted when the select dropdown is opened."
1006
+ },
1007
+ "complexType": {
1008
+ "original": "FocusEvent",
1009
+ "resolved": "FocusEvent",
1010
+ "references": {
1011
+ "FocusEvent": {
1012
+ "location": "global"
1013
+ }
1059
1014
  }
1060
1015
  }
1061
- }
1062
- }, {
1063
- "method": "catClose",
1064
- "name": "catClose",
1065
- "bubbles": true,
1066
- "cancelable": true,
1067
- "composed": true,
1068
- "docs": {
1069
- "tags": [],
1070
- "text": "Emitted when the select dropdown is closed."
1071
- },
1072
- "complexType": {
1073
- "original": "FocusEvent",
1074
- "resolved": "FocusEvent",
1075
- "references": {
1076
- "FocusEvent": {
1077
- "location": "global"
1016
+ }, {
1017
+ "method": "catClose",
1018
+ "name": "catClose",
1019
+ "bubbles": true,
1020
+ "cancelable": true,
1021
+ "composed": true,
1022
+ "docs": {
1023
+ "tags": [],
1024
+ "text": "Emitted when the select dropdown is closed."
1025
+ },
1026
+ "complexType": {
1027
+ "original": "FocusEvent",
1028
+ "resolved": "FocusEvent",
1029
+ "references": {
1030
+ "FocusEvent": {
1031
+ "location": "global"
1032
+ }
1078
1033
  }
1079
1034
  }
1080
- }
1081
- }, {
1082
- "method": "catChange",
1083
- "name": "catChange",
1084
- "bubbles": true,
1085
- "cancelable": true,
1086
- "composed": true,
1087
- "docs": {
1088
- "tags": [],
1089
- "text": "Emitted when the value is changed."
1090
- },
1091
- "complexType": {
1092
- "original": "any",
1093
- "resolved": "any",
1094
- "references": {}
1095
- }
1096
- }, {
1097
- "method": "catBlur",
1098
- "name": "catBlur",
1099
- "bubbles": true,
1100
- "cancelable": true,
1101
- "composed": true,
1102
- "docs": {
1103
- "tags": [],
1104
- "text": "Emitted when the select loses the focus."
1105
- },
1106
- "complexType": {
1107
- "original": "FocusEvent",
1108
- "resolved": "FocusEvent",
1109
- "references": {
1110
- "FocusEvent": {
1111
- "location": "global"
1035
+ }, {
1036
+ "method": "catChange",
1037
+ "name": "catChange",
1038
+ "bubbles": true,
1039
+ "cancelable": true,
1040
+ "composed": true,
1041
+ "docs": {
1042
+ "tags": [],
1043
+ "text": "Emitted when the value is changed."
1044
+ },
1045
+ "complexType": {
1046
+ "original": "any",
1047
+ "resolved": "any",
1048
+ "references": {}
1049
+ }
1050
+ }, {
1051
+ "method": "catBlur",
1052
+ "name": "catBlur",
1053
+ "bubbles": true,
1054
+ "cancelable": true,
1055
+ "composed": true,
1056
+ "docs": {
1057
+ "tags": [],
1058
+ "text": "Emitted when the select loses the focus."
1059
+ },
1060
+ "complexType": {
1061
+ "original": "FocusEvent",
1062
+ "resolved": "FocusEvent",
1063
+ "references": {
1064
+ "FocusEvent": {
1065
+ "location": "global"
1066
+ }
1112
1067
  }
1113
1068
  }
1114
- }
1115
- }]; }
1116
- static get methods() { return {
1117
- "connect": {
1118
- "complexType": {
1119
- "signature": "(connector: CatSelectConnector) => Promise<void>",
1120
- "parameters": [{
1121
- "tags": [{
1122
- "name": "param",
1123
- "text": "connector - The {@link CatSelectConnector } of the select."
1124
- }],
1125
- "text": "- The {@link CatSelectConnector} of the select."
1126
- }],
1127
- "references": {
1128
- "Promise": {
1129
- "location": "global"
1130
- },
1131
- "CatSelectConnector": {
1132
- "location": "local"
1133
- },
1134
- "Observable": {
1135
- "location": "import",
1136
- "path": "rxjs"
1069
+ }];
1070
+ }
1071
+ static get methods() {
1072
+ return {
1073
+ "connect": {
1074
+ "complexType": {
1075
+ "signature": "(connector: CatSelectConnector) => Promise<void>",
1076
+ "parameters": [{
1077
+ "tags": [{
1078
+ "name": "param",
1079
+ "text": "connector - The {@link CatSelectConnector } of the select."
1080
+ }],
1081
+ "text": "- The {@link CatSelectConnector} of the select."
1082
+ }],
1083
+ "references": {
1084
+ "Promise": {
1085
+ "location": "global"
1086
+ },
1087
+ "CatSelectConnector": {
1088
+ "location": "local",
1089
+ "path": "/Users/fynn/Workspace/catalyst/core/src/components/cat-select/cat-select.tsx"
1090
+ },
1091
+ "Observable": {
1092
+ "location": "import",
1093
+ "path": "rxjs"
1094
+ },
1095
+ "Item": {
1096
+ "location": "local",
1097
+ "path": "/Users/fynn/Workspace/catalyst/core/src/components/cat-select/cat-select.tsx"
1098
+ }
1137
1099
  },
1138
- "Item": {
1139
- "location": "local"
1140
- }
1100
+ "return": "Promise<void>"
1141
1101
  },
1142
- "return": "Promise<void>"
1143
- },
1144
- "docs": {
1145
- "text": "Connect the functions of the select",
1146
- "tags": [{
1147
- "name": "param",
1148
- "text": "connector - The {@link CatSelectConnector} of the select."
1149
- }]
1102
+ "docs": {
1103
+ "text": "Connect the functions of the select",
1104
+ "tags": [{
1105
+ "name": "param",
1106
+ "text": "connector - The {@link CatSelectConnector} of the select."
1107
+ }]
1108
+ }
1150
1109
  }
1151
- }
1152
- }; }
1110
+ };
1111
+ }
1153
1112
  static get elementRef() { return "hostElement"; }
1154
- static get watchers() { return [{
1155
- "propName": "connector",
1156
- "methodName": "onConnectorChange"
1157
- }, {
1158
- "propName": "value",
1159
- "methodName": "onValueChange"
1160
- }, {
1161
- "propName": "errors",
1162
- "methodName": "watchErrorsHandler"
1163
- }, {
1164
- "propName": "state",
1165
- "methodName": "onStateChange"
1166
- }]; }
1167
- static get listeners() { return [{
1168
- "name": "blur",
1169
- "method": "onBlur",
1170
- "target": undefined,
1171
- "capture": false,
1172
- "passive": false
1173
- }, {
1174
- "name": "keydown",
1175
- "method": "onKeyDown",
1176
- "target": undefined,
1177
- "capture": false,
1178
- "passive": false
1179
- }, {
1180
- "name": "keyup",
1181
- "method": "onKeyUp",
1182
- "target": undefined,
1183
- "capture": false,
1184
- "passive": false
1185
- }]; }
1113
+ static get watchers() {
1114
+ return [{
1115
+ "propName": "connector",
1116
+ "methodName": "onConnectorChange"
1117
+ }, {
1118
+ "propName": "value",
1119
+ "methodName": "onValueChange"
1120
+ }, {
1121
+ "propName": "errors",
1122
+ "methodName": "watchErrorsHandler"
1123
+ }, {
1124
+ "propName": "state",
1125
+ "methodName": "onStateChange"
1126
+ }];
1127
+ }
1128
+ static get listeners() {
1129
+ return [{
1130
+ "name": "blur",
1131
+ "method": "onBlur",
1132
+ "target": undefined,
1133
+ "capture": false,
1134
+ "passive": false
1135
+ }, {
1136
+ "name": "keydown",
1137
+ "method": "onKeyDown",
1138
+ "target": undefined,
1139
+ "capture": false,
1140
+ "passive": false
1141
+ }, {
1142
+ "name": "keyup",
1143
+ "method": "onKeyUp",
1144
+ "target": undefined,
1145
+ "capture": false,
1146
+ "passive": false
1147
+ }];
1148
+ }
1186
1149
  }
1187
1150
  CatSelect.SKELETON_COUNT = 4;
1188
1151
  CatSelect.DROPDOWN_OFFSET = 4;
1189
- //# sourceMappingURL=cat-select.js.map
1152
+ //# sourceMappingURL=cat-select.js.map