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