@haiilo/catalyst 8.1.1 → 8.2.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 (374) hide show
  1. package/dist/catalyst/catalyst.css +3 -9
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.esm.js +2 -2
  5. package/dist/catalyst/{p-85d057f0.js → p-6ae13953.js} +1 -1
  6. package/dist/catalyst/p-6cd4fa1e.js +3 -0
  7. package/dist/catalyst/p-6cd4fa1e.js.map +1 -0
  8. package/dist/catalyst/p-a05fbea3.entry.js +10 -0
  9. package/dist/catalyst/p-a05fbea3.entry.js.map +1 -0
  10. package/dist/catalyst/scss/core/_dialog.scss +1 -1
  11. package/dist/catalyst/scss/core/_form.scss +1 -1
  12. package/dist/catalyst/scss/core/_typography.scss +1 -7
  13. package/dist/cjs/cat-alert_26.cjs.entry.js +3899 -3883
  14. package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
  15. package/dist/cjs/catalyst.cjs.js +3 -3
  16. package/dist/cjs/catalyst.cjs.js.map +1 -1
  17. package/dist/cjs/{index-1e7eef7e.js → index-eb056d5e.js} +51 -13
  18. package/dist/cjs/index-eb056d5e.js.map +1 -0
  19. package/dist/cjs/index.cjs.js +73 -73
  20. package/dist/cjs/index.cjs.js.map +1 -1
  21. package/dist/cjs/loader.cjs.js +2 -2
  22. package/dist/cjs/{of-395b2f57.js → of-2b7161d2.js} +155 -155
  23. package/dist/cjs/of-2b7161d2.js.map +1 -0
  24. package/dist/collection/collection-manifest.json +1 -1
  25. package/dist/collection/components/cat-alert/cat-alert.e2e.js +7 -7
  26. package/dist/collection/components/cat-alert/cat-alert.e2e.js.map +1 -1
  27. package/dist/collection/components/cat-alert/cat-alert.js +98 -98
  28. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  29. package/dist/collection/components/cat-alert/cat-alert.spec.js +7 -7
  30. package/dist/collection/components/cat-alert/cat-alert.spec.js.map +1 -1
  31. package/dist/collection/components/cat-avatar/cat-avatar.e2e.js +6 -6
  32. package/dist/collection/components/cat-avatar/cat-avatar.e2e.js.map +1 -1
  33. package/dist/collection/components/cat-avatar/cat-avatar.js +218 -218
  34. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  35. package/dist/collection/components/cat-avatar/cat-avatar.spec.js +7 -7
  36. package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +1 -1
  37. package/dist/collection/components/cat-badge/cat-badge.e2e.js +6 -6
  38. package/dist/collection/components/cat-badge/cat-badge.e2e.js.map +1 -1
  39. package/dist/collection/components/cat-badge/cat-badge.js +117 -117
  40. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  41. package/dist/collection/components/cat-badge/cat-badge.spec.js +7 -7
  42. package/dist/collection/components/cat-badge/cat-badge.spec.js.map +1 -1
  43. package/dist/collection/components/cat-button/cat-button.css +2 -1
  44. package/dist/collection/components/cat-button/cat-button.e2e.js +6 -6
  45. package/dist/collection/components/cat-button/cat-button.e2e.js.map +1 -1
  46. package/dist/collection/components/cat-button/cat-button.js +693 -693
  47. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  48. package/dist/collection/components/cat-button/cat-button.spec.js +7 -7
  49. package/dist/collection/components/cat-button/cat-button.spec.js.map +1 -1
  50. package/dist/collection/components/cat-button-group/cat-button-group.e2e.js +6 -6
  51. package/dist/collection/components/cat-button-group/cat-button-group.e2e.js.map +1 -1
  52. package/dist/collection/components/cat-button-group/cat-button-group.js +47 -47
  53. package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -1
  54. package/dist/collection/components/cat-button-group/cat-button-group.spec.js +7 -7
  55. package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +1 -1
  56. package/dist/collection/components/cat-card/cat-card.e2e.js +6 -6
  57. package/dist/collection/components/cat-card/cat-card.e2e.js.map +1 -1
  58. package/dist/collection/components/cat-card/cat-card.js +15 -15
  59. package/dist/collection/components/cat-card/cat-card.js.map +1 -1
  60. package/dist/collection/components/cat-card/cat-card.spec.js +7 -7
  61. package/dist/collection/components/cat-card/cat-card.spec.js.map +1 -1
  62. package/dist/collection/components/cat-checkbox/cat-checkbox.css +2 -1
  63. package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js +6 -6
  64. package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js.map +1 -1
  65. package/dist/collection/components/cat-checkbox/cat-checkbox.js +441 -441
  66. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  67. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +7 -7
  68. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +1 -1
  69. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js +62 -62
  70. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -1
  71. package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js +7 -7
  72. package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js.map +1 -1
  73. package/dist/collection/components/cat-datepicker/cat-datepicker.format.js +20 -20
  74. package/dist/collection/components/cat-datepicker/cat-datepicker.format.js.map +1 -1
  75. package/dist/collection/components/cat-datepicker/cat-datepicker.js +720 -707
  76. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  77. package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js +39 -39
  78. package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js.map +1 -1
  79. package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +7 -7
  80. package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +1 -1
  81. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js +7 -7
  82. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js.map +1 -1
  83. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +244 -244
  84. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
  85. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js +7 -7
  86. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +1 -1
  87. package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js +6 -6
  88. package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js.map +1 -1
  89. package/dist/collection/components/cat-dropdown/cat-dropdown.js +300 -300
  90. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  91. package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +7 -7
  92. package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js.map +1 -1
  93. package/dist/collection/components/cat-form-group/cat-form-group.e2e.js +6 -6
  94. package/dist/collection/components/cat-form-group/cat-form-group.e2e.js.map +1 -1
  95. package/dist/collection/components/cat-form-group/cat-form-group.js +107 -107
  96. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
  97. package/dist/collection/components/cat-form-group/cat-form-group.spec.js +7 -7
  98. package/dist/collection/components/cat-form-group/cat-form-group.spec.js.map +1 -1
  99. package/dist/collection/components/cat-form-hint/cat-form-hint.js +9 -9
  100. package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
  101. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +7 -7
  102. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +1 -1
  103. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +71 -71
  104. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
  105. package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js +3 -3
  106. package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js.map +1 -1
  107. package/dist/collection/components/cat-icon/cat-icon-registry.js +77 -77
  108. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
  109. package/dist/collection/components/cat-icon/cat-icon-registry.spec.js +3 -3
  110. package/dist/collection/components/cat-icon/cat-icon-registry.spec.js.map +1 -1
  111. package/dist/collection/components/cat-icon/cat-icon.e2e.js +7 -7
  112. package/dist/collection/components/cat-icon/cat-icon.e2e.js.map +1 -1
  113. package/dist/collection/components/cat-icon/cat-icon.js +97 -97
  114. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  115. package/dist/collection/components/cat-icon/cat-icon.spec.js +7 -7
  116. package/dist/collection/components/cat-icon/cat-icon.spec.js.map +1 -1
  117. package/dist/collection/components/cat-input/cat-input.e2e.js +7 -7
  118. package/dist/collection/components/cat-input/cat-input.e2e.js.map +1 -1
  119. package/dist/collection/components/cat-input/cat-input.js +768 -768
  120. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  121. package/dist/collection/components/cat-input/cat-input.spec.js +7 -7
  122. package/dist/collection/components/cat-input/cat-input.spec.js.map +1 -1
  123. package/dist/collection/components/cat-notification/cat-notification.js +59 -59
  124. package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
  125. package/dist/collection/components/cat-notification/cat-notification.spec.js +3 -3
  126. package/dist/collection/components/cat-notification/cat-notification.spec.js.map +1 -1
  127. package/dist/collection/components/cat-pagination/cat-pagination.e2e.js +10 -10
  128. package/dist/collection/components/cat-pagination/cat-pagination.e2e.js.map +1 -1
  129. package/dist/collection/components/cat-pagination/cat-pagination.js +274 -274
  130. package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
  131. package/dist/collection/components/cat-pagination/cat-pagination.spec.js +7 -7
  132. package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +1 -1
  133. package/dist/collection/components/cat-radio/cat-radio.e2e.js +6 -6
  134. package/dist/collection/components/cat-radio/cat-radio.e2e.js.map +1 -1
  135. package/dist/collection/components/cat-radio/cat-radio.js +378 -378
  136. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  137. package/dist/collection/components/cat-radio/cat-radio.spec.js +7 -7
  138. package/dist/collection/components/cat-radio/cat-radio.spec.js.map +1 -1
  139. package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js +6 -6
  140. package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js.map +1 -1
  141. package/dist/collection/components/cat-radio-group/cat-radio-group.js +278 -278
  142. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  143. package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js +7 -7
  144. package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +1 -1
  145. package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js +6 -6
  146. package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js.map +1 -1
  147. package/dist/collection/components/cat-scrollable/cat-scrollable.js +287 -287
  148. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  149. package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +7 -7
  150. package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +1 -1
  151. package/dist/collection/components/cat-select/cat-select.e2e.js +10 -10
  152. package/dist/collection/components/cat-select/cat-select.e2e.js.map +1 -1
  153. package/dist/collection/components/cat-select/cat-select.js +1143 -1143
  154. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  155. package/dist/collection/components/cat-select/cat-select.spec.js +7 -7
  156. package/dist/collection/components/cat-select/cat-select.spec.js.map +1 -1
  157. package/dist/collection/components/cat-select/connectors.js +13 -13
  158. package/dist/collection/components/cat-select/connectors.js.map +1 -1
  159. package/dist/collection/components/cat-select-demo/cat-select-demo.js +1379 -1379
  160. package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
  161. package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js +6 -6
  162. package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js.map +1 -1
  163. package/dist/collection/components/cat-skeleton/cat-skeleton.js +120 -120
  164. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
  165. package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +7 -7
  166. package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +1 -1
  167. package/dist/collection/components/cat-spinner/cat-spinner.e2e.js +6 -6
  168. package/dist/collection/components/cat-spinner/cat-spinner.e2e.js.map +1 -1
  169. package/dist/collection/components/cat-spinner/cat-spinner.js +60 -60
  170. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
  171. package/dist/collection/components/cat-spinner/cat-spinner.spec.js +7 -7
  172. package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +1 -1
  173. package/dist/collection/components/cat-tab/cat-tab.e2e.js +6 -6
  174. package/dist/collection/components/cat-tab/cat-tab.e2e.js.map +1 -1
  175. package/dist/collection/components/cat-tab/cat-tab.js +230 -211
  176. package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
  177. package/dist/collection/components/cat-tab/cat-tab.spec.js +7 -7
  178. package/dist/collection/components/cat-tab/cat-tab.spec.js.map +1 -1
  179. package/dist/collection/components/cat-tabs/cat-tabs.css +3 -0
  180. package/dist/collection/components/cat-tabs/cat-tabs.e2e.js +6 -6
  181. package/dist/collection/components/cat-tabs/cat-tabs.e2e.js.map +1 -1
  182. package/dist/collection/components/cat-tabs/cat-tabs.js +222 -215
  183. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  184. package/dist/collection/components/cat-tabs/cat-tabs.spec.js +7 -7
  185. package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +1 -1
  186. package/dist/collection/components/cat-textarea/cat-textarea.e2e.js +7 -7
  187. package/dist/collection/components/cat-textarea/cat-textarea.e2e.js.map +1 -1
  188. package/dist/collection/components/cat-textarea/cat-textarea.js +586 -586
  189. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  190. package/dist/collection/components/cat-textarea/cat-textarea.spec.js +7 -7
  191. package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +1 -1
  192. package/dist/collection/components/cat-toggle/cat-toggle.e2e.js +6 -6
  193. package/dist/collection/components/cat-toggle/cat-toggle.e2e.js.map +1 -1
  194. package/dist/collection/components/cat-toggle/cat-toggle.js +421 -421
  195. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  196. package/dist/collection/components/cat-toggle/cat-toggle.spec.js +7 -7
  197. package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +1 -1
  198. package/dist/collection/components/cat-tooltip/cat-tooltip.css +3 -0
  199. package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js +6 -6
  200. package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js.map +1 -1
  201. package/dist/collection/components/cat-tooltip/cat-tooltip.js +297 -296
  202. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  203. package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +12 -8
  204. package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +1 -1
  205. package/dist/collection/scss/core/_dialog.scss +1 -1
  206. package/dist/collection/scss/core/_form.scss +1 -1
  207. package/dist/collection/scss/core/_typography.scss +1 -7
  208. package/dist/collection/utils/breakpoints.js +6 -6
  209. package/dist/collection/utils/breakpoints.js.map +1 -1
  210. package/dist/collection/utils/coerce.js +3 -3
  211. package/dist/collection/utils/coerce.js.map +1 -1
  212. package/dist/collection/utils/find-closest.js +6 -6
  213. package/dist/collection/utils/find-closest.js.map +1 -1
  214. package/dist/collection/utils/first-tabbable.js +1 -1
  215. package/dist/collection/utils/first-tabbable.js.map +1 -1
  216. package/dist/collection/utils/load-img.js +6 -6
  217. package/dist/collection/utils/load-img.js.map +1 -1
  218. package/dist/collection/utils/media-matcher.js +30 -30
  219. package/dist/collection/utils/media-matcher.js.map +1 -1
  220. package/dist/collection/utils/media-matcher.spec.js +32 -32
  221. package/dist/collection/utils/media-matcher.spec.js.map +1 -1
  222. package/dist/collection/utils/platform.js +34 -34
  223. package/dist/collection/utils/platform.js.map +1 -1
  224. package/dist/collection/utils/setDefault.js +4 -4
  225. package/dist/collection/utils/setDefault.js.map +1 -1
  226. package/dist/components/cat-alert.d.ts +2 -2
  227. package/dist/components/cat-alert.js +56 -56
  228. package/dist/components/cat-alert.js.map +1 -1
  229. package/dist/components/cat-avatar.d.ts +2 -2
  230. package/dist/components/cat-avatar2.js +93 -93
  231. package/dist/components/cat-avatar2.js.map +1 -1
  232. package/dist/components/cat-badge.d.ts +2 -2
  233. package/dist/components/cat-badge.js +32 -32
  234. package/dist/components/cat-badge.js.map +1 -1
  235. package/dist/components/cat-button-group.d.ts +2 -2
  236. package/dist/components/cat-button-group.js +31 -31
  237. package/dist/components/cat-button-group.js.map +1 -1
  238. package/dist/components/cat-button.d.ts +2 -2
  239. package/dist/components/cat-button2.js +277 -277
  240. package/dist/components/cat-button2.js.map +1 -1
  241. package/dist/components/cat-card.d.ts +2 -2
  242. package/dist/components/cat-card.js +20 -20
  243. package/dist/components/cat-card.js.map +1 -1
  244. package/dist/components/cat-checkbox.d.ts +2 -2
  245. package/dist/components/cat-checkbox2.js +108 -108
  246. package/dist/components/cat-checkbox2.js.map +1 -1
  247. package/dist/components/cat-datepicker-inline.d.ts +2 -2
  248. package/dist/components/cat-datepicker-inline.js +89 -89
  249. package/dist/components/cat-datepicker-inline.js.map +1 -1
  250. package/dist/components/cat-datepicker.d.ts +2 -2
  251. package/dist/components/cat-datepicker.js +203 -194
  252. package/dist/components/cat-datepicker.js.map +1 -1
  253. package/dist/components/cat-datepicker.locale.js +121 -121
  254. package/dist/components/cat-datepicker.locale.js.map +1 -1
  255. package/dist/components/cat-dropdown.d.ts +2 -2
  256. package/dist/components/cat-dropdown2.js +177 -177
  257. package/dist/components/cat-dropdown2.js.map +1 -1
  258. package/dist/components/cat-form-group.d.ts +2 -2
  259. package/dist/components/cat-form-group.js +55 -55
  260. package/dist/components/cat-form-group.js.map +1 -1
  261. package/dist/components/cat-form-hint.js +9 -9
  262. package/dist/components/cat-form-hint.js.map +1 -1
  263. package/dist/components/cat-i18n-registry.js +71 -71
  264. package/dist/components/cat-i18n-registry.js.map +1 -1
  265. package/dist/components/cat-icon-registry.js +77 -77
  266. package/dist/components/cat-icon-registry.js.map +1 -1
  267. package/dist/components/cat-icon.d.ts +2 -2
  268. package/dist/components/cat-icon2.js +32 -32
  269. package/dist/components/cat-icon2.js.map +1 -1
  270. package/dist/components/cat-input.d.ts +2 -2
  271. package/dist/components/cat-input2.js +219 -219
  272. package/dist/components/cat-input2.js.map +1 -1
  273. package/dist/components/cat-pagination.d.ts +2 -2
  274. package/dist/components/cat-pagination.js +103 -103
  275. package/dist/components/cat-pagination.js.map +1 -1
  276. package/dist/components/cat-radio-group.d.ts +2 -2
  277. package/dist/components/cat-radio-group.js +113 -113
  278. package/dist/components/cat-radio-group.js.map +1 -1
  279. package/dist/components/cat-radio.d.ts +2 -2
  280. package/dist/components/cat-radio.js +93 -93
  281. package/dist/components/cat-radio.js.map +1 -1
  282. package/dist/components/cat-scrollable.d.ts +2 -2
  283. package/dist/components/cat-scrollable2.js +118 -118
  284. package/dist/components/cat-scrollable2.js.map +1 -1
  285. package/dist/components/cat-select-demo.d.ts +2 -2
  286. package/dist/components/cat-select-demo.js +1438 -1438
  287. package/dist/components/cat-select-demo.js.map +1 -1
  288. package/dist/components/cat-select.d.ts +2 -2
  289. package/dist/components/cat-select2.js +666 -666
  290. package/dist/components/cat-select2.js.map +1 -1
  291. package/dist/components/cat-skeleton.d.ts +2 -2
  292. package/dist/components/cat-skeleton2.js +53 -53
  293. package/dist/components/cat-skeleton2.js.map +1 -1
  294. package/dist/components/cat-spinner.d.ts +2 -2
  295. package/dist/components/cat-spinner2.js +27 -27
  296. package/dist/components/cat-spinner2.js.map +1 -1
  297. package/dist/components/cat-tab.d.ts +2 -2
  298. package/dist/components/cat-tab.js +48 -46
  299. package/dist/components/cat-tab.js.map +1 -1
  300. package/dist/components/cat-tabs.d.ts +2 -2
  301. package/dist/components/cat-tabs.js +120 -113
  302. package/dist/components/cat-tabs.js.map +1 -1
  303. package/dist/components/cat-textarea.d.ts +2 -2
  304. package/dist/components/cat-textarea.js +178 -178
  305. package/dist/components/cat-textarea.js.map +1 -1
  306. package/dist/components/cat-toggle.d.ts +2 -2
  307. package/dist/components/cat-toggle.js +104 -104
  308. package/dist/components/cat-toggle.js.map +1 -1
  309. package/dist/components/cat-tooltip.d.ts +2 -2
  310. package/dist/components/cat-tooltip.js +144 -143
  311. package/dist/components/cat-tooltip.js.map +1 -1
  312. package/dist/components/coerce.js +3 -3
  313. package/dist/components/coerce.js.map +1 -1
  314. package/dist/components/index.js +72 -72
  315. package/dist/components/index.js.map +1 -1
  316. package/dist/esm/cat-alert_26.entry.js +3899 -3883
  317. package/dist/esm/cat-alert_26.entry.js.map +1 -1
  318. package/dist/esm/catalyst.js +4 -4
  319. package/dist/esm/catalyst.js.map +1 -1
  320. package/dist/esm/{index-30a221a3.js → index-acddba36.js} +51 -13
  321. package/dist/esm/index-acddba36.js.map +1 -0
  322. package/dist/esm/index.js +74 -74
  323. package/dist/esm/index.js.map +1 -1
  324. package/dist/esm/loader.js +3 -3
  325. package/dist/esm/{of-04d3d9e1.js → of-4f92b30b.js} +155 -155
  326. package/dist/esm/of-4f92b30b.js.map +1 -0
  327. package/dist/types/components/cat-alert/cat-alert.d.ts +17 -17
  328. package/dist/types/components/cat-avatar/cat-avatar.d.ts +41 -41
  329. package/dist/types/components/cat-badge/cat-badge.d.ts +22 -22
  330. package/dist/types/components/cat-button/cat-button.d.ts +151 -151
  331. package/dist/types/components/cat-button-group/cat-button-group.d.ts +9 -9
  332. package/dist/types/components/cat-card/cat-card.d.ts +1 -1
  333. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +97 -97
  334. package/dist/types/components/cat-datepicker/cat-datepicker.config.d.ts +12 -12
  335. package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +153 -149
  336. package/dist/types/components/cat-datepicker-inline/cat-datepicker-inline.d.ts +45 -45
  337. package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +49 -49
  338. package/dist/types/components/cat-form-group/cat-form-group.d.ts +23 -23
  339. package/dist/types/components/cat-form-hint/cat-form-hint.d.ts +6 -6
  340. package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +17 -17
  341. package/dist/types/components/cat-icon/cat-icon-registry.d.ts +12 -12
  342. package/dist/types/components/cat-icon/cat-icon.d.ts +18 -18
  343. package/dist/types/components/cat-input/cat-input.d.ts +167 -167
  344. package/dist/types/components/cat-notification/cat-notification.d.ts +31 -31
  345. package/dist/types/components/cat-pagination/cat-pagination.d.ts +52 -52
  346. package/dist/types/components/cat-radio/cat-radio.d.ts +83 -83
  347. package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +49 -49
  348. package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +49 -49
  349. package/dist/types/components/cat-select/cat-select.d.ts +221 -221
  350. package/dist/types/components/cat-select/connectors.d.ts +5 -5
  351. package/dist/types/components/cat-select-demo/cat-select-demo.d.ts +11 -11
  352. package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +23 -23
  353. package/dist/types/components/cat-spinner/cat-spinner.d.ts +10 -10
  354. package/dist/types/components/cat-tab/cat-tab.d.ts +48 -42
  355. package/dist/types/components/cat-tabs/cat-tabs.d.ts +40 -39
  356. package/dist/types/components/cat-textarea/cat-textarea.d.ts +131 -131
  357. package/dist/types/components/cat-toggle/cat-toggle.d.ts +93 -93
  358. package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +64 -64
  359. package/dist/types/components.d.ts +10 -2
  360. package/dist/types/stencil-public-runtime.d.ts +8 -0
  361. package/dist/types/utils/breakpoints.d.ts +1 -1
  362. package/dist/types/utils/media-matcher.d.ts +10 -10
  363. package/dist/types/utils/platform.d.ts +16 -16
  364. package/dist/types/utils/setDefault.d.ts +2 -2
  365. package/package.json +18 -18
  366. package/dist/catalyst/p-1bd44896.js +0 -3
  367. package/dist/catalyst/p-1bd44896.js.map +0 -1
  368. package/dist/catalyst/p-dc953306.entry.js +0 -10
  369. package/dist/catalyst/p-dc953306.entry.js.map +0 -1
  370. package/dist/cjs/index-1e7eef7e.js.map +0 -1
  371. package/dist/cjs/of-395b2f57.js.map +0 -1
  372. package/dist/esm/index-30a221a3.js.map +0 -1
  373. package/dist/esm/of-04d3d9e1.js.map +0 -1
  374. /package/dist/catalyst/{p-85d057f0.js.map → p-6ae13953.js.map} +0 -0
@@ -12,713 +12,713 @@ import { MediaMatcher } from "../../utils/media-matcher";
12
12
  * @part suffix - The suffix icon.
13
13
  */
14
14
  export class CatButton {
15
- constructor() {
16
- this._iconOnly = true;
17
- this.variant = 'outlined';
18
- this.color = 'secondary';
19
- this.active = false;
20
- this.size = 'm';
21
- this.name = undefined;
22
- this.value = undefined;
23
- this.disabled = false;
24
- this.loading = false;
25
- this.submit = false;
26
- this.noEllipsis = false;
27
- this.round = false;
28
- this.url = undefined;
29
- this.urlTarget = undefined;
30
- this.icon = undefined;
31
- this.iconOnly = false;
32
- this.iconRight = false;
33
- this.buttonId = undefined;
34
- this.a11yLabel = undefined;
35
- this.a11yCurrent = undefined;
36
- this.nativeAttributes = undefined;
37
- this.nativeContentAttributes = undefined;
38
- this.buttonGroupPosition = undefined;
39
- }
40
- onIconOnlyChanged(value) {
41
- // teardown
42
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
43
- this.mediaQueryList?.removeEventListener('change', this.mediaQueryListener);
44
- this.mediaQueryList = undefined;
45
- this.mediaQueryListener = undefined;
46
- // setup
47
- if (isBreakpoint(value)) {
48
- this.mediaMatcher ?? (this.mediaMatcher = new MediaMatcher());
49
- this.mediaQueryList = this.mediaMatcher.matchMedia(Breakpoints[value]);
50
- this.mediaQueryListener = (event) => (this._iconOnly = event.matches);
51
- this.mediaQueryList.addEventListener('change', this.mediaQueryListener);
52
- this._iconOnly = this.mediaQueryList.matches;
15
+ constructor() {
16
+ this._iconOnly = true;
17
+ this.variant = 'outlined';
18
+ this.color = 'secondary';
19
+ this.active = false;
20
+ this.size = 'm';
21
+ this.name = undefined;
22
+ this.value = undefined;
23
+ this.disabled = false;
24
+ this.loading = false;
25
+ this.submit = false;
26
+ this.noEllipsis = false;
27
+ this.round = false;
28
+ this.url = undefined;
29
+ this.urlTarget = undefined;
30
+ this.icon = undefined;
31
+ this.iconOnly = false;
32
+ this.iconRight = false;
33
+ this.buttonId = undefined;
34
+ this.a11yLabel = undefined;
35
+ this.a11yCurrent = undefined;
36
+ this.nativeAttributes = undefined;
37
+ this.nativeContentAttributes = undefined;
38
+ this.buttonGroupPosition = undefined;
53
39
  }
54
- else {
55
- this._iconOnly = value;
40
+ onIconOnlyChanged(value) {
41
+ // teardown
42
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
43
+ this.mediaQueryList?.removeEventListener('change', this.mediaQueryListener);
44
+ this.mediaQueryList = undefined;
45
+ this.mediaQueryListener = undefined;
46
+ // setup
47
+ if (isBreakpoint(value)) {
48
+ this.mediaMatcher ?? (this.mediaMatcher = new MediaMatcher());
49
+ this.mediaQueryList = this.mediaMatcher.matchMedia(Breakpoints[value]);
50
+ this.mediaQueryListener = (event) => (this._iconOnly = event.matches);
51
+ this.mediaQueryList.addEventListener('change', this.mediaQueryListener);
52
+ this._iconOnly = this.mediaQueryList.matches;
53
+ }
54
+ else {
55
+ this._iconOnly = value;
56
+ }
56
57
  }
57
- }
58
- componentWillLoad() {
59
- this.onIconOnlyChanged(this.iconOnly);
60
- }
61
- componentWillRender() {
62
- if (this.isIconButton && !this.a11yLabel) {
63
- log.warn('[A11y] Missing ARIA label on icon button', this);
58
+ componentWillLoad() {
59
+ this.onIconOnlyChanged(this.iconOnly);
64
60
  }
65
- }
66
- haltDisabledEvents(event) {
67
- if (this.disabled || this.loading) {
68
- event.preventDefault();
69
- event.stopImmediatePropagation();
61
+ componentWillRender() {
62
+ if (this.isIconButton && !this.a11yLabel) {
63
+ log.warn('[A11y] Missing ARIA label on icon button', this);
64
+ }
70
65
  }
71
- }
72
- /**
73
- * Programmatically move focus to the button. Use this method instead of
74
- * `button.focus()`.
75
- *
76
- * @param options An optional object providing options to control aspects of
77
- * the focusing process.
78
- */
79
- async doFocus(options) {
80
- this.button.focus(options);
81
- }
82
- /**
83
- * Programmatically remove focus from the button. Use this method instead of
84
- * `button.blur()`.
85
- */
86
- async doBlur() {
87
- this.button.blur();
88
- }
89
- /**
90
- * Programmatically simulate a click on the button.
91
- */
92
- async doClick() {
93
- this.button.click();
94
- }
95
- render() {
96
- if (this.url) {
97
- return (h("a", { ...this.nativeAttributes, ref: el => (this.button = el), href: this.disabled ? undefined : this.url, target: this.urlTarget, "aria-disabled": this.disabled ? 'true' : null, "aria-label": this.a11yLabel, "aria-current": this.a11yCurrent, id: this.buttonId, part: "button", class: {
98
- 'cat-button': true,
99
- 'cat-button-active': this.active,
100
- 'cat-button-icon': this.isIconButton,
101
- 'cat-button-round': this.round,
102
- 'cat-button-loading': this.loading,
103
- 'cat-button-disabled': this.disabled,
104
- 'cat-button-ellipsed': !this.noEllipsis && !this.isIconButton,
105
- [`cat-button-${this.variant}`]: Boolean(this.variant),
106
- [`cat-button-${this.color}`]: Boolean(this.color),
107
- [`cat-button-${this.size}`]: Boolean(this.size)
108
- }, onClick: this.onClick.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }, this.content));
66
+ haltDisabledEvents(event) {
67
+ if (this.disabled || this.loading) {
68
+ event.preventDefault();
69
+ event.stopImmediatePropagation();
70
+ }
109
71
  }
110
- else {
111
- return (h("button", { ...this.nativeAttributes, ref: el => (this.button = el), type: this.submit ? 'submit' : 'button', name: this.name, value: this.value, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, "aria-label": this.a11yLabel, "aria-current": this.a11yCurrent, id: this.buttonId, part: "button", class: {
112
- 'cat-button': true,
113
- 'cat-button-active': this.active,
114
- 'cat-button-icon': this.isIconButton,
115
- 'cat-button-round': this.round ?? this.isIconButton,
116
- 'cat-button-loading': this.loading,
117
- 'cat-button-disabled': this.disabled,
118
- 'cat-button-ellipsed': !this.noEllipsis && !this.isIconButton,
119
- [`cat-button-${this.variant}`]: Boolean(this.variant),
120
- [`cat-button-${this.color}`]: Boolean(this.color),
121
- [`cat-button-${this.size}`]: Boolean(this.size),
122
- [`cat-group-button-${this.buttonGroupPosition}`]: Boolean(this.buttonGroupPosition),
123
- 'cat-group-button': Boolean(this.buttonGroupPosition)
124
- }, onClick: this.onClick.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }, this.content));
72
+ /**
73
+ * Programmatically move focus to the button. Use this method instead of
74
+ * `button.focus()`.
75
+ *
76
+ * @param options An optional object providing options to control aspects of
77
+ * the focusing process.
78
+ */
79
+ async doFocus(options) {
80
+ this.button.focus(options);
125
81
  }
126
- }
127
- get iconSize() {
128
- switch (this.size) {
129
- case 'xs':
130
- return 's';
131
- default:
132
- return 'l';
82
+ /**
83
+ * Programmatically remove focus from the button. Use this method instead of
84
+ * `button.blur()`.
85
+ */
86
+ async doBlur() {
87
+ this.button.blur();
133
88
  }
134
- }
135
- get spinnerSize() {
136
- switch (this.size) {
137
- case 'xs':
138
- return 'xs';
139
- default:
140
- return 'm';
89
+ /**
90
+ * Programmatically simulate a click on the button.
91
+ */
92
+ async doClick() {
93
+ this.button.click();
141
94
  }
142
- }
143
- get isIconButton() {
144
- return Boolean(this.icon) && this._iconOnly;
145
- }
146
- get hasPrefixIcon() {
147
- return Boolean(this.icon) && !this._iconOnly && !this.iconRight;
148
- }
149
- get hasSuffixIcon() {
150
- return Boolean(this.icon) && !this._iconOnly && this.iconRight;
151
- }
152
- get content() {
153
- return [
154
- this.hasPrefixIcon ? h("cat-icon", { icon: this.icon, size: this.iconSize, part: "prefix" }) : null,
155
- this.isIconButton ? (h("cat-icon", { icon: this.icon, size: this.iconSize })) : (h("span", { class: "cat-button-content", part: "content", ...this.nativeContentAttributes }, h("span", { class: "cat-button-content-inner" }, h("slot", null)))),
156
- this.hasSuffixIcon ? h("cat-icon", { icon: this.icon, size: this.iconSize, part: "suffix" }) : null,
157
- this.loading ? h("cat-spinner", { size: this.spinnerSize }) : null
158
- ];
159
- }
160
- onClick(event) {
161
- this.catClick.emit(event);
162
- }
163
- onFocus(event) {
164
- this.catFocus.emit(event);
165
- }
166
- onBlur(event) {
167
- this.catBlur.emit(event);
168
- }
169
- static get is() { return "cat-button"; }
170
- static get encapsulation() { return "shadow"; }
171
- static get originalStyleUrls() {
172
- return {
173
- "$": ["cat-button.scss"]
174
- };
175
- }
176
- static get styleUrls() {
177
- return {
178
- "$": ["cat-button.css"]
179
- };
180
- }
181
- static get properties() {
182
- return {
183
- "variant": {
184
- "type": "string",
185
- "mutable": false,
186
- "complexType": {
187
- "original": "'filled' | 'outlined' | 'text' | 'link'",
188
- "resolved": "\"filled\" | \"link\" | \"outlined\" | \"text\"",
189
- "references": {}
190
- },
191
- "required": false,
192
- "optional": false,
193
- "docs": {
194
- "tags": [],
195
- "text": "The rendering style of the button."
196
- },
197
- "attribute": "variant",
198
- "reflect": false,
199
- "defaultValue": "'outlined'"
200
- },
201
- "color": {
202
- "type": "string",
203
- "mutable": false,
204
- "complexType": {
205
- "original": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
206
- "resolved": "\"danger\" | \"info\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
207
- "references": {}
208
- },
209
- "required": false,
210
- "optional": false,
211
- "docs": {
212
- "tags": [],
213
- "text": "The color palette of the button."
214
- },
215
- "attribute": "color",
216
- "reflect": false,
217
- "defaultValue": "'secondary'"
218
- },
219
- "active": {
220
- "type": "boolean",
221
- "mutable": false,
222
- "complexType": {
223
- "original": "boolean",
224
- "resolved": "boolean",
225
- "references": {}
226
- },
227
- "required": false,
228
- "optional": false,
229
- "docs": {
230
- "tags": [],
231
- "text": "Set the button into an active state."
232
- },
233
- "attribute": "active",
234
- "reflect": false,
235
- "defaultValue": "false"
236
- },
237
- "size": {
238
- "type": "string",
239
- "mutable": false,
240
- "complexType": {
241
- "original": "'xs' | 's' | 'm' | 'l' | 'xl'",
242
- "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
243
- "references": {}
244
- },
245
- "required": false,
246
- "optional": false,
247
- "docs": {
248
- "tags": [],
249
- "text": "The size of the button."
250
- },
251
- "attribute": "size",
252
- "reflect": false,
253
- "defaultValue": "'m'"
254
- },
255
- "name": {
256
- "type": "string",
257
- "mutable": false,
258
- "complexType": {
259
- "original": "string",
260
- "resolved": "string | undefined",
261
- "references": {}
262
- },
263
- "required": false,
264
- "optional": true,
265
- "docs": {
266
- "tags": [],
267
- "text": "The name of the button, which gets paired with the button's value when\nsubmitted as part of a form. Corresponds with the native HTML name\nattribute."
268
- },
269
- "attribute": "name",
270
- "reflect": false
271
- },
272
- "value": {
273
- "type": "string",
274
- "mutable": false,
275
- "complexType": {
276
- "original": "string",
277
- "resolved": "string | undefined",
278
- "references": {}
279
- },
280
- "required": false,
281
- "optional": true,
282
- "docs": {
283
- "tags": [],
284
- "text": "The value of the button, which gets paired with the button's name when\nsubmitted as part of a form. Corresponds with the native HTML value\nattribute."
285
- },
286
- "attribute": "value",
287
- "reflect": false
288
- },
289
- "disabled": {
290
- "type": "boolean",
291
- "mutable": false,
292
- "complexType": {
293
- "original": "boolean",
294
- "resolved": "boolean",
295
- "references": {}
296
- },
297
- "required": false,
298
- "optional": false,
299
- "docs": {
300
- "tags": [],
301
- "text": "Specifies that the button should be disabled. A disabled button is unusable\nand un-clickable. Corresponds with the native HTML disabled attribute."
302
- },
303
- "attribute": "disabled",
304
- "reflect": false,
305
- "defaultValue": "false"
306
- },
307
- "loading": {
308
- "type": "boolean",
309
- "mutable": false,
310
- "complexType": {
311
- "original": "boolean",
312
- "resolved": "boolean",
313
- "references": {}
314
- },
315
- "required": false,
316
- "optional": false,
317
- "docs": {
318
- "tags": [],
319
- "text": "Displays the button in a loading state with a spinner. Just like a disabled\nbutton, an inactive button is unusable and un-clickable. However, it\nretains the current focus state."
320
- },
321
- "attribute": "loading",
322
- "reflect": false,
323
- "defaultValue": "false"
324
- },
325
- "submit": {
326
- "type": "boolean",
327
- "mutable": false,
328
- "complexType": {
329
- "original": "boolean",
330
- "resolved": "boolean",
331
- "references": {}
332
- },
333
- "required": false,
334
- "optional": false,
335
- "docs": {
336
- "tags": [],
337
- "text": "Allows the button to submit a form."
338
- },
339
- "attribute": "submit",
340
- "reflect": false,
341
- "defaultValue": "false"
342
- },
343
- "noEllipsis": {
344
- "type": "boolean",
345
- "mutable": false,
346
- "complexType": {
347
- "original": "boolean",
348
- "resolved": "boolean",
349
- "references": {}
350
- },
351
- "required": false,
352
- "optional": false,
353
- "docs": {
354
- "tags": [],
355
- "text": "Disables ellipse overflowing button content."
356
- },
357
- "attribute": "no-ellipsis",
358
- "reflect": false,
359
- "defaultValue": "false"
360
- },
361
- "round": {
362
- "type": "boolean",
363
- "mutable": false,
364
- "complexType": {
365
- "original": "boolean",
366
- "resolved": "boolean",
367
- "references": {}
368
- },
369
- "required": false,
370
- "optional": false,
371
- "docs": {
372
- "tags": [],
373
- "text": "Use round button edges."
374
- },
375
- "attribute": "round",
376
- "reflect": false,
377
- "defaultValue": "false"
378
- },
379
- "url": {
380
- "type": "string",
381
- "mutable": false,
382
- "complexType": {
383
- "original": "string",
384
- "resolved": "string | undefined",
385
- "references": {}
386
- },
387
- "required": false,
388
- "optional": true,
389
- "docs": {
390
- "tags": [],
391
- "text": "A destination to link to, rendered in the href attribute of a link."
392
- },
393
- "attribute": "url",
394
- "reflect": false
395
- },
396
- "urlTarget": {
397
- "type": "string",
398
- "mutable": false,
399
- "complexType": {
400
- "original": "'_blank' | '_self'",
401
- "resolved": "\"_blank\" | \"_self\" | undefined",
402
- "references": {}
403
- },
404
- "required": false,
405
- "optional": true,
406
- "docs": {
407
- "tags": [],
408
- "text": "Specifies where to open the linked document."
409
- },
410
- "attribute": "url-target",
411
- "reflect": false
412
- },
413
- "icon": {
414
- "type": "string",
415
- "mutable": false,
416
- "complexType": {
417
- "original": "string",
418
- "resolved": "string | undefined",
419
- "references": {}
420
- },
421
- "required": false,
422
- "optional": true,
423
- "docs": {
424
- "tags": [],
425
- "text": "The name of an icon to be displayed in the button."
426
- },
427
- "attribute": "icon",
428
- "reflect": false
429
- },
430
- "iconOnly": {
431
- "type": "any",
432
- "mutable": false,
433
- "complexType": {
434
- "original": "boolean | Breakpoint",
435
- "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\" | boolean",
436
- "references": {
437
- "Breakpoint": {
438
- "location": "import",
439
- "path": "../../utils/breakpoints",
440
- "id": "src/utils/breakpoints.ts::Breakpoint"
441
- }
442
- }
443
- },
444
- "required": false,
445
- "optional": false,
446
- "docs": {
447
- "tags": [],
448
- "text": "Hide the actual button content and only display the icon."
449
- },
450
- "attribute": "icon-only",
451
- "reflect": false,
452
- "defaultValue": "false"
453
- },
454
- "iconRight": {
455
- "type": "boolean",
456
- "mutable": false,
457
- "complexType": {
458
- "original": "boolean",
459
- "resolved": "boolean",
460
- "references": {}
461
- },
462
- "required": false,
463
- "optional": false,
464
- "docs": {
465
- "tags": [],
466
- "text": "Display the icon on the right."
467
- },
468
- "attribute": "icon-right",
469
- "reflect": false,
470
- "defaultValue": "false"
471
- },
472
- "buttonId": {
473
- "type": "string",
474
- "mutable": false,
475
- "complexType": {
476
- "original": "string",
477
- "resolved": "string | undefined",
478
- "references": {}
479
- },
480
- "required": false,
481
- "optional": true,
482
- "docs": {
483
- "tags": [],
484
- "text": "Adds a unique identifier for the button. Please note that with this\nparticular component this ID is added inside the web component. If you need\nan ID on the HTML element, use the regular `id` attribute instead."
485
- },
486
- "attribute": "button-id",
487
- "reflect": false
488
- },
489
- "a11yLabel": {
490
- "type": "string",
491
- "mutable": false,
492
- "complexType": {
493
- "original": "string",
494
- "resolved": "string | undefined",
495
- "references": {}
496
- },
497
- "required": false,
498
- "optional": true,
499
- "docs": {
500
- "tags": [],
501
- "text": "Adds accessible label for the button that is only shown for screen\nreaders. Typically, this label text replaces the visible text on the\nbutton for users who use assistive technology."
502
- },
503
- "attribute": "a11y-label",
504
- "reflect": false
505
- },
506
- "a11yCurrent": {
507
- "type": "string",
508
- "mutable": false,
509
- "complexType": {
510
- "original": "string",
511
- "resolved": "string | undefined",
512
- "references": {}
513
- },
514
- "required": false,
515
- "optional": true,
516
- "docs": {
517
- "tags": [],
518
- "text": "Sets the `aria-current` attribute on the button."
519
- },
520
- "attribute": "a11y-current",
521
- "reflect": false
522
- },
523
- "nativeAttributes": {
524
- "type": "unknown",
525
- "mutable": false,
526
- "complexType": {
527
- "original": "{ [key: string]: string }",
528
- "resolved": "undefined | { [key: string]: string; }",
529
- "references": {}
530
- },
531
- "required": false,
532
- "optional": true,
533
- "docs": {
534
- "tags": [],
535
- "text": "Attributes that will be added to the native HTML button element"
536
- }
537
- },
538
- "nativeContentAttributes": {
539
- "type": "unknown",
540
- "mutable": false,
541
- "complexType": {
542
- "original": "{ [key: string]: string }",
543
- "resolved": "undefined | { [key: string]: string; }",
544
- "references": {}
545
- },
546
- "required": false,
547
- "optional": true,
548
- "docs": {
549
- "tags": [],
550
- "text": "Attributes that will be added to the native HTML button content element"
95
+ render() {
96
+ if (this.url) {
97
+ return (h("a", { ...this.nativeAttributes, ref: el => (this.button = el), href: this.disabled ? undefined : this.url, target: this.urlTarget, "aria-disabled": this.disabled ? 'true' : null, "aria-label": this.a11yLabel, "aria-current": this.a11yCurrent, id: this.buttonId, part: "button", class: {
98
+ 'cat-button': true,
99
+ 'cat-button-active': this.active,
100
+ 'cat-button-icon': this.isIconButton,
101
+ 'cat-button-round': this.round,
102
+ 'cat-button-loading': this.loading,
103
+ 'cat-button-disabled': this.disabled,
104
+ 'cat-button-ellipsed': !this.noEllipsis && !this.isIconButton,
105
+ [`cat-button-${this.variant}`]: Boolean(this.variant),
106
+ [`cat-button-${this.color}`]: Boolean(this.color),
107
+ [`cat-button-${this.size}`]: Boolean(this.size)
108
+ }, onClick: this.onClick.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }, this.content));
551
109
  }
552
- },
553
- "buttonGroupPosition": {
554
- "type": "string",
555
- "mutable": false,
556
- "complexType": {
557
- "original": "'first' | 'last' | 'middle'",
558
- "resolved": "\"first\" | \"last\" | \"middle\" | undefined",
559
- "references": {}
560
- },
561
- "required": false,
562
- "optional": true,
563
- "docs": {
564
- "tags": [],
565
- "text": "The index of a button that is used inside a cat-button-group component"
566
- },
567
- "attribute": "button-group-position",
568
- "reflect": false
569
- }
570
- };
571
- }
572
- static get states() {
573
- return {
574
- "_iconOnly": {}
575
- };
576
- }
577
- static get events() {
578
- return [{
579
- "method": "catClick",
580
- "name": "catClick",
581
- "bubbles": true,
582
- "cancelable": true,
583
- "composed": true,
584
- "docs": {
585
- "tags": [],
586
- "text": "Emitted when the button is clicked."
587
- },
588
- "complexType": {
589
- "original": "MouseEvent",
590
- "resolved": "MouseEvent",
591
- "references": {
592
- "MouseEvent": {
593
- "location": "global",
594
- "id": "global::MouseEvent"
595
- }
596
- }
110
+ else {
111
+ return (h("button", { ...this.nativeAttributes, ref: el => (this.button = el), type: this.submit ? 'submit' : 'button', name: this.name, value: this.value, disabled: this.disabled, "aria-disabled": this.disabled ? 'true' : null, "aria-label": this.a11yLabel, "aria-current": this.a11yCurrent, id: this.buttonId, part: "button", class: {
112
+ 'cat-button': true,
113
+ 'cat-button-active': this.active,
114
+ 'cat-button-icon': this.isIconButton,
115
+ 'cat-button-round': this.round ?? this.isIconButton,
116
+ 'cat-button-loading': this.loading,
117
+ 'cat-button-disabled': this.disabled,
118
+ 'cat-button-ellipsed': !this.noEllipsis && !this.isIconButton,
119
+ [`cat-button-${this.variant}`]: Boolean(this.variant),
120
+ [`cat-button-${this.color}`]: Boolean(this.color),
121
+ [`cat-button-${this.size}`]: Boolean(this.size),
122
+ [`cat-group-button-${this.buttonGroupPosition}`]: Boolean(this.buttonGroupPosition),
123
+ 'cat-group-button': Boolean(this.buttonGroupPosition)
124
+ }, onClick: this.onClick.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }, this.content));
597
125
  }
598
- }, {
599
- "method": "catFocus",
600
- "name": "catFocus",
601
- "bubbles": true,
602
- "cancelable": true,
603
- "composed": true,
604
- "docs": {
605
- "tags": [],
606
- "text": "Emitted when the button received focus."
607
- },
608
- "complexType": {
609
- "original": "FocusEvent",
610
- "resolved": "FocusEvent",
611
- "references": {
612
- "FocusEvent": {
613
- "location": "global",
614
- "id": "global::FocusEvent"
615
- }
616
- }
126
+ }
127
+ get iconSize() {
128
+ switch (this.size) {
129
+ case 'xs':
130
+ return 's';
131
+ default:
132
+ return 'l';
617
133
  }
618
- }, {
619
- "method": "catBlur",
620
- "name": "catBlur",
621
- "bubbles": true,
622
- "cancelable": true,
623
- "composed": true,
624
- "docs": {
625
- "tags": [],
626
- "text": "Emitted when the button loses focus."
627
- },
628
- "complexType": {
629
- "original": "FocusEvent",
630
- "resolved": "FocusEvent",
631
- "references": {
632
- "FocusEvent": {
633
- "location": "global",
634
- "id": "global::FocusEvent"
635
- }
636
- }
134
+ }
135
+ get spinnerSize() {
136
+ switch (this.size) {
137
+ case 'xs':
138
+ return 'xs';
139
+ default:
140
+ return 'm';
637
141
  }
638
- }];
639
- }
640
- static get methods() {
641
- return {
642
- "doFocus": {
643
- "complexType": {
644
- "signature": "(options?: FocusOptions) => Promise<void>",
645
- "parameters": [{
646
- "tags": [{
647
- "name": "param",
648
- "text": "options An optional object providing options to control aspects of\nthe focusing process."
649
- }],
650
- "text": "An optional object providing options to control aspects of\nthe focusing process."
651
- }],
652
- "references": {
653
- "Promise": {
654
- "location": "global",
655
- "id": "global::Promise"
142
+ }
143
+ get isIconButton() {
144
+ return Boolean(this.icon) && this._iconOnly;
145
+ }
146
+ get hasPrefixIcon() {
147
+ return Boolean(this.icon) && !this._iconOnly && !this.iconRight;
148
+ }
149
+ get hasSuffixIcon() {
150
+ return Boolean(this.icon) && !this._iconOnly && this.iconRight;
151
+ }
152
+ get content() {
153
+ return [
154
+ this.hasPrefixIcon ? h("cat-icon", { icon: this.icon, size: this.iconSize, part: "prefix" }) : null,
155
+ this.isIconButton ? (h("cat-icon", { icon: this.icon, size: this.iconSize })) : (h("span", { class: "cat-button-content", part: "content", ...this.nativeContentAttributes }, h("span", { class: "cat-button-content-inner" }, h("slot", null)))),
156
+ this.hasSuffixIcon ? h("cat-icon", { icon: this.icon, size: this.iconSize, part: "suffix" }) : null,
157
+ this.loading ? h("cat-spinner", { size: this.spinnerSize }) : null
158
+ ];
159
+ }
160
+ onClick(event) {
161
+ this.catClick.emit(event);
162
+ }
163
+ onFocus(event) {
164
+ this.catFocus.emit(event);
165
+ }
166
+ onBlur(event) {
167
+ this.catBlur.emit(event);
168
+ }
169
+ static get is() { return "cat-button"; }
170
+ static get encapsulation() { return "shadow"; }
171
+ static get originalStyleUrls() {
172
+ return {
173
+ "$": ["cat-button.scss"]
174
+ };
175
+ }
176
+ static get styleUrls() {
177
+ return {
178
+ "$": ["cat-button.css"]
179
+ };
180
+ }
181
+ static get properties() {
182
+ return {
183
+ "variant": {
184
+ "type": "string",
185
+ "mutable": false,
186
+ "complexType": {
187
+ "original": "'filled' | 'outlined' | 'text' | 'link'",
188
+ "resolved": "\"filled\" | \"link\" | \"outlined\" | \"text\"",
189
+ "references": {}
190
+ },
191
+ "required": false,
192
+ "optional": false,
193
+ "docs": {
194
+ "tags": [],
195
+ "text": "The rendering style of the button."
196
+ },
197
+ "attribute": "variant",
198
+ "reflect": false,
199
+ "defaultValue": "'outlined'"
656
200
  },
657
- "FocusOptions": {
658
- "location": "global",
659
- "id": "global::FocusOptions"
660
- }
661
- },
662
- "return": "Promise<void>"
663
- },
664
- "docs": {
665
- "text": "Programmatically move focus to the button. Use this method instead of\n`button.focus()`.",
666
- "tags": [{
667
- "name": "param",
668
- "text": "options An optional object providing options to control aspects of\nthe focusing process."
669
- }]
670
- }
671
- },
672
- "doBlur": {
673
- "complexType": {
674
- "signature": "() => Promise<void>",
675
- "parameters": [],
676
- "references": {
677
- "Promise": {
678
- "location": "global",
679
- "id": "global::Promise"
201
+ "color": {
202
+ "type": "string",
203
+ "mutable": false,
204
+ "complexType": {
205
+ "original": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
206
+ "resolved": "\"danger\" | \"info\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
207
+ "references": {}
208
+ },
209
+ "required": false,
210
+ "optional": false,
211
+ "docs": {
212
+ "tags": [],
213
+ "text": "The color palette of the button."
214
+ },
215
+ "attribute": "color",
216
+ "reflect": false,
217
+ "defaultValue": "'secondary'"
218
+ },
219
+ "active": {
220
+ "type": "boolean",
221
+ "mutable": false,
222
+ "complexType": {
223
+ "original": "boolean",
224
+ "resolved": "boolean",
225
+ "references": {}
226
+ },
227
+ "required": false,
228
+ "optional": false,
229
+ "docs": {
230
+ "tags": [],
231
+ "text": "Set the button into an active state."
232
+ },
233
+ "attribute": "active",
234
+ "reflect": false,
235
+ "defaultValue": "false"
236
+ },
237
+ "size": {
238
+ "type": "string",
239
+ "mutable": false,
240
+ "complexType": {
241
+ "original": "'xs' | 's' | 'm' | 'l' | 'xl'",
242
+ "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
243
+ "references": {}
244
+ },
245
+ "required": false,
246
+ "optional": false,
247
+ "docs": {
248
+ "tags": [],
249
+ "text": "The size of the button."
250
+ },
251
+ "attribute": "size",
252
+ "reflect": false,
253
+ "defaultValue": "'m'"
254
+ },
255
+ "name": {
256
+ "type": "string",
257
+ "mutable": false,
258
+ "complexType": {
259
+ "original": "string",
260
+ "resolved": "string | undefined",
261
+ "references": {}
262
+ },
263
+ "required": false,
264
+ "optional": true,
265
+ "docs": {
266
+ "tags": [],
267
+ "text": "The name of the button, which gets paired with the button's value when\nsubmitted as part of a form. Corresponds with the native HTML name\nattribute."
268
+ },
269
+ "attribute": "name",
270
+ "reflect": false
271
+ },
272
+ "value": {
273
+ "type": "string",
274
+ "mutable": false,
275
+ "complexType": {
276
+ "original": "string",
277
+ "resolved": "string | undefined",
278
+ "references": {}
279
+ },
280
+ "required": false,
281
+ "optional": true,
282
+ "docs": {
283
+ "tags": [],
284
+ "text": "The value of the button, which gets paired with the button's name when\nsubmitted as part of a form. Corresponds with the native HTML value\nattribute."
285
+ },
286
+ "attribute": "value",
287
+ "reflect": false
288
+ },
289
+ "disabled": {
290
+ "type": "boolean",
291
+ "mutable": false,
292
+ "complexType": {
293
+ "original": "boolean",
294
+ "resolved": "boolean",
295
+ "references": {}
296
+ },
297
+ "required": false,
298
+ "optional": false,
299
+ "docs": {
300
+ "tags": [],
301
+ "text": "Specifies that the button should be disabled. A disabled button is unusable\nand un-clickable. Corresponds with the native HTML disabled attribute."
302
+ },
303
+ "attribute": "disabled",
304
+ "reflect": false,
305
+ "defaultValue": "false"
306
+ },
307
+ "loading": {
308
+ "type": "boolean",
309
+ "mutable": false,
310
+ "complexType": {
311
+ "original": "boolean",
312
+ "resolved": "boolean",
313
+ "references": {}
314
+ },
315
+ "required": false,
316
+ "optional": false,
317
+ "docs": {
318
+ "tags": [],
319
+ "text": "Displays the button in a loading state with a spinner. Just like a disabled\nbutton, an inactive button is unusable and un-clickable. However, it\nretains the current focus state."
320
+ },
321
+ "attribute": "loading",
322
+ "reflect": false,
323
+ "defaultValue": "false"
324
+ },
325
+ "submit": {
326
+ "type": "boolean",
327
+ "mutable": false,
328
+ "complexType": {
329
+ "original": "boolean",
330
+ "resolved": "boolean",
331
+ "references": {}
332
+ },
333
+ "required": false,
334
+ "optional": false,
335
+ "docs": {
336
+ "tags": [],
337
+ "text": "Allows the button to submit a form."
338
+ },
339
+ "attribute": "submit",
340
+ "reflect": false,
341
+ "defaultValue": "false"
342
+ },
343
+ "noEllipsis": {
344
+ "type": "boolean",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "boolean",
348
+ "resolved": "boolean",
349
+ "references": {}
350
+ },
351
+ "required": false,
352
+ "optional": false,
353
+ "docs": {
354
+ "tags": [],
355
+ "text": "Disables ellipse overflowing button content."
356
+ },
357
+ "attribute": "no-ellipsis",
358
+ "reflect": false,
359
+ "defaultValue": "false"
360
+ },
361
+ "round": {
362
+ "type": "boolean",
363
+ "mutable": false,
364
+ "complexType": {
365
+ "original": "boolean",
366
+ "resolved": "boolean",
367
+ "references": {}
368
+ },
369
+ "required": false,
370
+ "optional": false,
371
+ "docs": {
372
+ "tags": [],
373
+ "text": "Use round button edges."
374
+ },
375
+ "attribute": "round",
376
+ "reflect": false,
377
+ "defaultValue": "false"
378
+ },
379
+ "url": {
380
+ "type": "string",
381
+ "mutable": false,
382
+ "complexType": {
383
+ "original": "string",
384
+ "resolved": "string | undefined",
385
+ "references": {}
386
+ },
387
+ "required": false,
388
+ "optional": true,
389
+ "docs": {
390
+ "tags": [],
391
+ "text": "A destination to link to, rendered in the href attribute of a link."
392
+ },
393
+ "attribute": "url",
394
+ "reflect": false
395
+ },
396
+ "urlTarget": {
397
+ "type": "string",
398
+ "mutable": false,
399
+ "complexType": {
400
+ "original": "'_blank' | '_self'",
401
+ "resolved": "\"_blank\" | \"_self\" | undefined",
402
+ "references": {}
403
+ },
404
+ "required": false,
405
+ "optional": true,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": "Specifies where to open the linked document."
409
+ },
410
+ "attribute": "url-target",
411
+ "reflect": false
412
+ },
413
+ "icon": {
414
+ "type": "string",
415
+ "mutable": false,
416
+ "complexType": {
417
+ "original": "string",
418
+ "resolved": "string | undefined",
419
+ "references": {}
420
+ },
421
+ "required": false,
422
+ "optional": true,
423
+ "docs": {
424
+ "tags": [],
425
+ "text": "The name of an icon to be displayed in the button."
426
+ },
427
+ "attribute": "icon",
428
+ "reflect": false
429
+ },
430
+ "iconOnly": {
431
+ "type": "any",
432
+ "mutable": false,
433
+ "complexType": {
434
+ "original": "boolean | Breakpoint",
435
+ "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\" | boolean",
436
+ "references": {
437
+ "Breakpoint": {
438
+ "location": "import",
439
+ "path": "../../utils/breakpoints",
440
+ "id": "src/utils/breakpoints.ts::Breakpoint"
441
+ }
442
+ }
443
+ },
444
+ "required": false,
445
+ "optional": false,
446
+ "docs": {
447
+ "tags": [],
448
+ "text": "Hide the actual button content and only display the icon."
449
+ },
450
+ "attribute": "icon-only",
451
+ "reflect": false,
452
+ "defaultValue": "false"
453
+ },
454
+ "iconRight": {
455
+ "type": "boolean",
456
+ "mutable": false,
457
+ "complexType": {
458
+ "original": "boolean",
459
+ "resolved": "boolean",
460
+ "references": {}
461
+ },
462
+ "required": false,
463
+ "optional": false,
464
+ "docs": {
465
+ "tags": [],
466
+ "text": "Display the icon on the right."
467
+ },
468
+ "attribute": "icon-right",
469
+ "reflect": false,
470
+ "defaultValue": "false"
471
+ },
472
+ "buttonId": {
473
+ "type": "string",
474
+ "mutable": false,
475
+ "complexType": {
476
+ "original": "string",
477
+ "resolved": "string | undefined",
478
+ "references": {}
479
+ },
480
+ "required": false,
481
+ "optional": true,
482
+ "docs": {
483
+ "tags": [],
484
+ "text": "Adds a unique identifier for the button. Please note that with this\nparticular component this ID is added inside the web component. If you need\nan ID on the HTML element, use the regular `id` attribute instead."
485
+ },
486
+ "attribute": "button-id",
487
+ "reflect": false
488
+ },
489
+ "a11yLabel": {
490
+ "type": "string",
491
+ "mutable": false,
492
+ "complexType": {
493
+ "original": "string",
494
+ "resolved": "string | undefined",
495
+ "references": {}
496
+ },
497
+ "required": false,
498
+ "optional": true,
499
+ "docs": {
500
+ "tags": [],
501
+ "text": "Adds accessible label for the button that is only shown for screen\nreaders. Typically, this label text replaces the visible text on the\nbutton for users who use assistive technology."
502
+ },
503
+ "attribute": "a11y-label",
504
+ "reflect": false
505
+ },
506
+ "a11yCurrent": {
507
+ "type": "string",
508
+ "mutable": false,
509
+ "complexType": {
510
+ "original": "string",
511
+ "resolved": "string | undefined",
512
+ "references": {}
513
+ },
514
+ "required": false,
515
+ "optional": true,
516
+ "docs": {
517
+ "tags": [],
518
+ "text": "Sets the `aria-current` attribute on the button."
519
+ },
520
+ "attribute": "a11y-current",
521
+ "reflect": false
522
+ },
523
+ "nativeAttributes": {
524
+ "type": "unknown",
525
+ "mutable": false,
526
+ "complexType": {
527
+ "original": "{ [key: string]: string }",
528
+ "resolved": "undefined | { [key: string]: string; }",
529
+ "references": {}
530
+ },
531
+ "required": false,
532
+ "optional": true,
533
+ "docs": {
534
+ "tags": [],
535
+ "text": "Attributes that will be added to the native HTML button element"
536
+ }
537
+ },
538
+ "nativeContentAttributes": {
539
+ "type": "unknown",
540
+ "mutable": false,
541
+ "complexType": {
542
+ "original": "{ [key: string]: string }",
543
+ "resolved": "undefined | { [key: string]: string; }",
544
+ "references": {}
545
+ },
546
+ "required": false,
547
+ "optional": true,
548
+ "docs": {
549
+ "tags": [],
550
+ "text": "Attributes that will be added to the native HTML button content element"
551
+ }
552
+ },
553
+ "buttonGroupPosition": {
554
+ "type": "string",
555
+ "mutable": false,
556
+ "complexType": {
557
+ "original": "'first' | 'last' | 'middle'",
558
+ "resolved": "\"first\" | \"last\" | \"middle\" | undefined",
559
+ "references": {}
560
+ },
561
+ "required": false,
562
+ "optional": true,
563
+ "docs": {
564
+ "tags": [],
565
+ "text": "The index of a button that is used inside a cat-button-group component"
566
+ },
567
+ "attribute": "button-group-position",
568
+ "reflect": false
680
569
  }
681
- },
682
- "return": "Promise<void>"
683
- },
684
- "docs": {
685
- "text": "Programmatically remove focus from the button. Use this method instead of\n`button.blur()`.",
686
- "tags": []
687
- }
688
- },
689
- "doClick": {
690
- "complexType": {
691
- "signature": "() => Promise<void>",
692
- "parameters": [],
693
- "references": {
694
- "Promise": {
695
- "location": "global",
696
- "id": "global::Promise"
570
+ };
571
+ }
572
+ static get states() {
573
+ return {
574
+ "_iconOnly": {}
575
+ };
576
+ }
577
+ static get events() {
578
+ return [{
579
+ "method": "catClick",
580
+ "name": "catClick",
581
+ "bubbles": true,
582
+ "cancelable": true,
583
+ "composed": true,
584
+ "docs": {
585
+ "tags": [],
586
+ "text": "Emitted when the button is clicked."
587
+ },
588
+ "complexType": {
589
+ "original": "MouseEvent",
590
+ "resolved": "MouseEvent",
591
+ "references": {
592
+ "MouseEvent": {
593
+ "location": "global",
594
+ "id": "global::MouseEvent"
595
+ }
596
+ }
597
+ }
598
+ }, {
599
+ "method": "catFocus",
600
+ "name": "catFocus",
601
+ "bubbles": true,
602
+ "cancelable": true,
603
+ "composed": true,
604
+ "docs": {
605
+ "tags": [],
606
+ "text": "Emitted when the button received focus."
607
+ },
608
+ "complexType": {
609
+ "original": "FocusEvent",
610
+ "resolved": "FocusEvent",
611
+ "references": {
612
+ "FocusEvent": {
613
+ "location": "global",
614
+ "id": "global::FocusEvent"
615
+ }
616
+ }
617
+ }
618
+ }, {
619
+ "method": "catBlur",
620
+ "name": "catBlur",
621
+ "bubbles": true,
622
+ "cancelable": true,
623
+ "composed": true,
624
+ "docs": {
625
+ "tags": [],
626
+ "text": "Emitted when the button loses focus."
627
+ },
628
+ "complexType": {
629
+ "original": "FocusEvent",
630
+ "resolved": "FocusEvent",
631
+ "references": {
632
+ "FocusEvent": {
633
+ "location": "global",
634
+ "id": "global::FocusEvent"
635
+ }
636
+ }
637
+ }
638
+ }];
639
+ }
640
+ static get methods() {
641
+ return {
642
+ "doFocus": {
643
+ "complexType": {
644
+ "signature": "(options?: FocusOptions) => Promise<void>",
645
+ "parameters": [{
646
+ "tags": [{
647
+ "name": "param",
648
+ "text": "options An optional object providing options to control aspects of\nthe focusing process."
649
+ }],
650
+ "text": "An optional object providing options to control aspects of\nthe focusing process."
651
+ }],
652
+ "references": {
653
+ "Promise": {
654
+ "location": "global",
655
+ "id": "global::Promise"
656
+ },
657
+ "FocusOptions": {
658
+ "location": "global",
659
+ "id": "global::FocusOptions"
660
+ }
661
+ },
662
+ "return": "Promise<void>"
663
+ },
664
+ "docs": {
665
+ "text": "Programmatically move focus to the button. Use this method instead of\n`button.focus()`.",
666
+ "tags": [{
667
+ "name": "param",
668
+ "text": "options An optional object providing options to control aspects of\nthe focusing process."
669
+ }]
670
+ }
671
+ },
672
+ "doBlur": {
673
+ "complexType": {
674
+ "signature": "() => Promise<void>",
675
+ "parameters": [],
676
+ "references": {
677
+ "Promise": {
678
+ "location": "global",
679
+ "id": "global::Promise"
680
+ }
681
+ },
682
+ "return": "Promise<void>"
683
+ },
684
+ "docs": {
685
+ "text": "Programmatically remove focus from the button. Use this method instead of\n`button.blur()`.",
686
+ "tags": []
687
+ }
688
+ },
689
+ "doClick": {
690
+ "complexType": {
691
+ "signature": "() => Promise<void>",
692
+ "parameters": [],
693
+ "references": {
694
+ "Promise": {
695
+ "location": "global",
696
+ "id": "global::Promise"
697
+ }
698
+ },
699
+ "return": "Promise<void>"
700
+ },
701
+ "docs": {
702
+ "text": "Programmatically simulate a click on the button.",
703
+ "tags": []
704
+ }
697
705
  }
698
- },
699
- "return": "Promise<void>"
700
- },
701
- "docs": {
702
- "text": "Programmatically simulate a click on the button.",
703
- "tags": []
704
- }
705
- }
706
- };
707
- }
708
- static get watchers() {
709
- return [{
710
- "propName": "iconOnly",
711
- "methodName": "onIconOnlyChanged"
712
- }];
713
- }
714
- static get listeners() {
715
- return [{
716
- "name": "click",
717
- "method": "haltDisabledEvents",
718
- "target": undefined,
719
- "capture": false,
720
- "passive": false
721
- }];
722
- }
706
+ };
707
+ }
708
+ static get watchers() {
709
+ return [{
710
+ "propName": "iconOnly",
711
+ "methodName": "onIconOnlyChanged"
712
+ }];
713
+ }
714
+ static get listeners() {
715
+ return [{
716
+ "name": "click",
717
+ "method": "haltDisabledEvents",
718
+ "target": undefined,
719
+ "capture": false,
720
+ "passive": false
721
+ }];
722
+ }
723
723
  }
724
724
  //# sourceMappingURL=cat-button.js.map