@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,4 +1,4 @@
1
- import { Component, Event, h, Listen, Method, Prop, State, Watch } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  import log from 'loglevel';
3
3
  import { Breakpoints, isBreakpoint } from '../../utils/breakpoints';
4
4
  import { MediaMatcher } from '../../utils/media-matcher';
@@ -14,53 +14,27 @@ import { MediaMatcher } from '../../utils/media-matcher';
14
14
  export class CatButton {
15
15
  constructor() {
16
16
  this._iconOnly = true;
17
- /**
18
- * The rendering style of the button.
19
- */
20
17
  this.variant = 'outlined';
21
- /**
22
- * The color palette of the button.
23
- */
24
18
  this.color = 'secondary';
25
- /**
26
- * Set the button into an active state.
27
- */
28
19
  this.active = false;
29
- /**
30
- * The size of the button.
31
- */
32
20
  this.size = 'm';
33
- /**
34
- * Specifies that the button should be disabled. A disabled button is unusable
35
- * and un-clickable. Corresponds with the native HTML disabled attribute.
36
- */
21
+ this.name = undefined;
22
+ this.value = undefined;
37
23
  this.disabled = false;
38
- /**
39
- * Displays the button in a loading state with a spinner. Just like a disabled
40
- * button, an inactive button is unusable and un-clickable. However, it
41
- * retains the current focus state.
42
- */
43
24
  this.loading = false;
44
- /**
45
- * Allows the button to submit a form.
46
- */
47
25
  this.submit = false;
48
- /**
49
- * Disables ellipse overflowing button content.
50
- */
51
26
  this.noEllipsis = false;
52
- /**
53
- * Use round button edges.
54
- */
55
27
  this.round = false;
56
- /**
57
- * Hide the actual button content and only display the icon.
58
- */
28
+ this.url = undefined;
29
+ this.urlTarget = undefined;
30
+ this.icon = undefined;
31
+ this.iconSrc = undefined;
59
32
  this.iconOnly = false;
60
- /**
61
- * Display the icon on the right.
62
- */
63
33
  this.iconRight = false;
34
+ this.buttonId = undefined;
35
+ this.a11yLabel = undefined;
36
+ this.a11yCurrent = undefined;
37
+ this.nativeAttributes = undefined;
64
38
  }
65
39
  onIconOnlyChanged(value) {
66
40
  var _a, _b;
@@ -177,8 +151,7 @@ export class CatButton {
177
151
  get content() {
178
152
  return [
179
153
  this.hasPrefixIcon ? (h("cat-icon", { icon: this.icon, iconSrc: this.iconSrc, size: this.iconSize, part: "prefix" })) : null,
180
- this.isIconButton ? (h("cat-icon", { icon: this.icon, iconSrc: this.iconSrc, size: this.iconSize })) : (h("span", { class: "cat-button-content", part: "content" },
181
- h("slot", null))),
154
+ this.isIconButton ? (h("cat-icon", { icon: this.icon, iconSrc: this.iconSrc, size: this.iconSize })) : (h("span", { class: "cat-button-content", part: "content" }, h("slot", null))),
182
155
  this.hasSuffixIcon ? (h("cat-icon", { icon: this.icon, iconSrc: this.iconSrc, size: this.iconSize, part: "suffix" })) : null,
183
156
  this.loading ? h("cat-spinner", { size: this.spinnerSize }) : null
184
157
  ];
@@ -194,518 +167,534 @@ export class CatButton {
194
167
  }
195
168
  static get is() { return "cat-button"; }
196
169
  static get encapsulation() { return "shadow"; }
197
- static get originalStyleUrls() { return {
198
- "$": ["cat-button.scss"]
199
- }; }
200
- static get styleUrls() { return {
201
- "$": ["cat-button.css"]
202
- }; }
203
- static get properties() { return {
204
- "variant": {
205
- "type": "string",
206
- "mutable": false,
207
- "complexType": {
208
- "original": "'filled' | 'outlined' | 'text'",
209
- "resolved": "\"filled\" | \"outlined\" | \"text\"",
210
- "references": {}
211
- },
212
- "required": false,
213
- "optional": false,
214
- "docs": {
215
- "tags": [],
216
- "text": "The rendering style of the button."
217
- },
218
- "attribute": "variant",
219
- "reflect": false,
220
- "defaultValue": "'outlined'"
221
- },
222
- "color": {
223
- "type": "string",
224
- "mutable": false,
225
- "complexType": {
226
- "original": "'primary' | 'secondary' | 'danger' | 'success' | 'warning'",
227
- "resolved": "\"danger\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
228
- "references": {}
229
- },
230
- "required": false,
231
- "optional": false,
232
- "docs": {
233
- "tags": [],
234
- "text": "The color palette of the button."
235
- },
236
- "attribute": "color",
237
- "reflect": false,
238
- "defaultValue": "'secondary'"
239
- },
240
- "active": {
241
- "type": "boolean",
242
- "mutable": false,
243
- "complexType": {
244
- "original": "boolean",
245
- "resolved": "boolean",
246
- "references": {}
247
- },
248
- "required": false,
249
- "optional": false,
250
- "docs": {
251
- "tags": [],
252
- "text": "Set the button into an active state."
253
- },
254
- "attribute": "active",
255
- "reflect": false,
256
- "defaultValue": "false"
257
- },
258
- "size": {
259
- "type": "string",
260
- "mutable": false,
261
- "complexType": {
262
- "original": "'xs' | 's' | 'm' | 'l' | 'xl'",
263
- "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
264
- "references": {}
265
- },
266
- "required": false,
267
- "optional": false,
268
- "docs": {
269
- "tags": [],
270
- "text": "The size of the button."
271
- },
272
- "attribute": "size",
273
- "reflect": false,
274
- "defaultValue": "'m'"
275
- },
276
- "name": {
277
- "type": "string",
278
- "mutable": false,
279
- "complexType": {
280
- "original": "string",
281
- "resolved": "string | undefined",
282
- "references": {}
283
- },
284
- "required": false,
285
- "optional": true,
286
- "docs": {
287
- "tags": [],
288
- "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."
289
- },
290
- "attribute": "name",
291
- "reflect": false
292
- },
293
- "value": {
294
- "type": "string",
295
- "mutable": false,
296
- "complexType": {
297
- "original": "string",
298
- "resolved": "string | undefined",
299
- "references": {}
300
- },
301
- "required": false,
302
- "optional": true,
303
- "docs": {
304
- "tags": [],
305
- "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."
306
- },
307
- "attribute": "value",
308
- "reflect": false
309
- },
310
- "disabled": {
311
- "type": "boolean",
312
- "mutable": false,
313
- "complexType": {
314
- "original": "boolean",
315
- "resolved": "boolean",
316
- "references": {}
317
- },
318
- "required": false,
319
- "optional": false,
320
- "docs": {
321
- "tags": [],
322
- "text": "Specifies that the button should be disabled. A disabled button is unusable\nand un-clickable. Corresponds with the native HTML disabled attribute."
323
- },
324
- "attribute": "disabled",
325
- "reflect": false,
326
- "defaultValue": "false"
327
- },
328
- "loading": {
329
- "type": "boolean",
330
- "mutable": false,
331
- "complexType": {
332
- "original": "boolean",
333
- "resolved": "boolean",
334
- "references": {}
335
- },
336
- "required": false,
337
- "optional": false,
338
- "docs": {
339
- "tags": [],
340
- "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."
341
- },
342
- "attribute": "loading",
343
- "reflect": false,
344
- "defaultValue": "false"
345
- },
346
- "submit": {
347
- "type": "boolean",
348
- "mutable": false,
349
- "complexType": {
350
- "original": "boolean",
351
- "resolved": "boolean",
352
- "references": {}
353
- },
354
- "required": false,
355
- "optional": false,
356
- "docs": {
357
- "tags": [],
358
- "text": "Allows the button to submit a form."
359
- },
360
- "attribute": "submit",
361
- "reflect": false,
362
- "defaultValue": "false"
363
- },
364
- "noEllipsis": {
365
- "type": "boolean",
366
- "mutable": false,
367
- "complexType": {
368
- "original": "boolean",
369
- "resolved": "boolean",
370
- "references": {}
371
- },
372
- "required": false,
373
- "optional": false,
374
- "docs": {
375
- "tags": [],
376
- "text": "Disables ellipse overflowing button content."
377
- },
378
- "attribute": "no-ellipsis",
379
- "reflect": false,
380
- "defaultValue": "false"
381
- },
382
- "round": {
383
- "type": "boolean",
384
- "mutable": false,
385
- "complexType": {
386
- "original": "boolean",
387
- "resolved": "boolean",
388
- "references": {}
389
- },
390
- "required": false,
391
- "optional": false,
392
- "docs": {
393
- "tags": [],
394
- "text": "Use round button edges."
395
- },
396
- "attribute": "round",
397
- "reflect": false,
398
- "defaultValue": "false"
399
- },
400
- "url": {
401
- "type": "string",
402
- "mutable": false,
403
- "complexType": {
404
- "original": "string",
405
- "resolved": "string | undefined",
406
- "references": {}
407
- },
408
- "required": false,
409
- "optional": true,
410
- "docs": {
411
- "tags": [],
412
- "text": "A destination to link to, rendered in the href attribute of a link."
413
- },
414
- "attribute": "url",
415
- "reflect": false
416
- },
417
- "urlTarget": {
418
- "type": "string",
419
- "mutable": false,
420
- "complexType": {
421
- "original": "'_blank' | '_self'",
422
- "resolved": "\"_blank\" | \"_self\" | undefined",
423
- "references": {}
424
- },
425
- "required": false,
426
- "optional": true,
427
- "docs": {
428
- "tags": [],
429
- "text": "Specifies where to open the linked document."
430
- },
431
- "attribute": "url-target",
432
- "reflect": false
433
- },
434
- "icon": {
435
- "type": "string",
436
- "mutable": false,
437
- "complexType": {
438
- "original": "string",
439
- "resolved": "string | undefined",
440
- "references": {}
441
- },
442
- "required": false,
443
- "optional": true,
444
- "docs": {
445
- "tags": [],
446
- "text": "The name of an icon to be displayed in the button."
447
- },
448
- "attribute": "icon",
449
- "reflect": false
450
- },
451
- "iconSrc": {
452
- "type": "string",
453
- "mutable": false,
454
- "complexType": {
455
- "original": "string",
456
- "resolved": "string | undefined",
457
- "references": {}
458
- },
459
- "required": false,
460
- "optional": true,
461
- "docs": {
462
- "tags": [],
463
- "text": "The SVG source of an icon to be displayed in the button. This takes\nprecenedence over the `icon` name."
464
- },
465
- "attribute": "icon-src",
466
- "reflect": false
467
- },
468
- "iconOnly": {
469
- "type": "any",
470
- "mutable": false,
471
- "complexType": {
472
- "original": "boolean | Breakpoint",
473
- "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\" | boolean",
474
- "references": {
475
- "Breakpoint": {
476
- "location": "import",
477
- "path": "../../utils/breakpoints"
170
+ static get originalStyleUrls() {
171
+ return {
172
+ "$": ["cat-button.scss"]
173
+ };
174
+ }
175
+ static get styleUrls() {
176
+ return {
177
+ "$": ["cat-button.css"]
178
+ };
179
+ }
180
+ static get properties() {
181
+ return {
182
+ "variant": {
183
+ "type": "string",
184
+ "mutable": false,
185
+ "complexType": {
186
+ "original": "'filled' | 'outlined' | 'text'",
187
+ "resolved": "\"filled\" | \"outlined\" | \"text\"",
188
+ "references": {}
189
+ },
190
+ "required": false,
191
+ "optional": false,
192
+ "docs": {
193
+ "tags": [],
194
+ "text": "The rendering style of the button."
195
+ },
196
+ "attribute": "variant",
197
+ "reflect": false,
198
+ "defaultValue": "'outlined'"
199
+ },
200
+ "color": {
201
+ "type": "string",
202
+ "mutable": false,
203
+ "complexType": {
204
+ "original": "'primary' | 'secondary' | 'danger' | 'success' | 'warning'",
205
+ "resolved": "\"danger\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
206
+ "references": {}
207
+ },
208
+ "required": false,
209
+ "optional": false,
210
+ "docs": {
211
+ "tags": [],
212
+ "text": "The color palette of the button."
213
+ },
214
+ "attribute": "color",
215
+ "reflect": false,
216
+ "defaultValue": "'secondary'"
217
+ },
218
+ "active": {
219
+ "type": "boolean",
220
+ "mutable": false,
221
+ "complexType": {
222
+ "original": "boolean",
223
+ "resolved": "boolean",
224
+ "references": {}
225
+ },
226
+ "required": false,
227
+ "optional": false,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": "Set the button into an active state."
231
+ },
232
+ "attribute": "active",
233
+ "reflect": false,
234
+ "defaultValue": "false"
235
+ },
236
+ "size": {
237
+ "type": "string",
238
+ "mutable": false,
239
+ "complexType": {
240
+ "original": "'xs' | 's' | 'm' | 'l' | 'xl'",
241
+ "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\"",
242
+ "references": {}
243
+ },
244
+ "required": false,
245
+ "optional": false,
246
+ "docs": {
247
+ "tags": [],
248
+ "text": "The size of the button."
249
+ },
250
+ "attribute": "size",
251
+ "reflect": false,
252
+ "defaultValue": "'m'"
253
+ },
254
+ "name": {
255
+ "type": "string",
256
+ "mutable": false,
257
+ "complexType": {
258
+ "original": "string",
259
+ "resolved": "string | undefined",
260
+ "references": {}
261
+ },
262
+ "required": false,
263
+ "optional": true,
264
+ "docs": {
265
+ "tags": [],
266
+ "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."
267
+ },
268
+ "attribute": "name",
269
+ "reflect": false
270
+ },
271
+ "value": {
272
+ "type": "string",
273
+ "mutable": false,
274
+ "complexType": {
275
+ "original": "string",
276
+ "resolved": "string | undefined",
277
+ "references": {}
278
+ },
279
+ "required": false,
280
+ "optional": true,
281
+ "docs": {
282
+ "tags": [],
283
+ "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."
284
+ },
285
+ "attribute": "value",
286
+ "reflect": false
287
+ },
288
+ "disabled": {
289
+ "type": "boolean",
290
+ "mutable": false,
291
+ "complexType": {
292
+ "original": "boolean",
293
+ "resolved": "boolean",
294
+ "references": {}
295
+ },
296
+ "required": false,
297
+ "optional": false,
298
+ "docs": {
299
+ "tags": [],
300
+ "text": "Specifies that the button should be disabled. A disabled button is unusable\nand un-clickable. Corresponds with the native HTML disabled attribute."
301
+ },
302
+ "attribute": "disabled",
303
+ "reflect": false,
304
+ "defaultValue": "false"
305
+ },
306
+ "loading": {
307
+ "type": "boolean",
308
+ "mutable": false,
309
+ "complexType": {
310
+ "original": "boolean",
311
+ "resolved": "boolean",
312
+ "references": {}
313
+ },
314
+ "required": false,
315
+ "optional": false,
316
+ "docs": {
317
+ "tags": [],
318
+ "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."
319
+ },
320
+ "attribute": "loading",
321
+ "reflect": false,
322
+ "defaultValue": "false"
323
+ },
324
+ "submit": {
325
+ "type": "boolean",
326
+ "mutable": false,
327
+ "complexType": {
328
+ "original": "boolean",
329
+ "resolved": "boolean",
330
+ "references": {}
331
+ },
332
+ "required": false,
333
+ "optional": false,
334
+ "docs": {
335
+ "tags": [],
336
+ "text": "Allows the button to submit a form."
337
+ },
338
+ "attribute": "submit",
339
+ "reflect": false,
340
+ "defaultValue": "false"
341
+ },
342
+ "noEllipsis": {
343
+ "type": "boolean",
344
+ "mutable": false,
345
+ "complexType": {
346
+ "original": "boolean",
347
+ "resolved": "boolean",
348
+ "references": {}
349
+ },
350
+ "required": false,
351
+ "optional": false,
352
+ "docs": {
353
+ "tags": [],
354
+ "text": "Disables ellipse overflowing button content."
355
+ },
356
+ "attribute": "no-ellipsis",
357
+ "reflect": false,
358
+ "defaultValue": "false"
359
+ },
360
+ "round": {
361
+ "type": "boolean",
362
+ "mutable": false,
363
+ "complexType": {
364
+ "original": "boolean",
365
+ "resolved": "boolean",
366
+ "references": {}
367
+ },
368
+ "required": false,
369
+ "optional": false,
370
+ "docs": {
371
+ "tags": [],
372
+ "text": "Use round button edges."
373
+ },
374
+ "attribute": "round",
375
+ "reflect": false,
376
+ "defaultValue": "false"
377
+ },
378
+ "url": {
379
+ "type": "string",
380
+ "mutable": false,
381
+ "complexType": {
382
+ "original": "string",
383
+ "resolved": "string | undefined",
384
+ "references": {}
385
+ },
386
+ "required": false,
387
+ "optional": true,
388
+ "docs": {
389
+ "tags": [],
390
+ "text": "A destination to link to, rendered in the href attribute of a link."
391
+ },
392
+ "attribute": "url",
393
+ "reflect": false
394
+ },
395
+ "urlTarget": {
396
+ "type": "string",
397
+ "mutable": false,
398
+ "complexType": {
399
+ "original": "'_blank' | '_self'",
400
+ "resolved": "\"_blank\" | \"_self\" | undefined",
401
+ "references": {}
402
+ },
403
+ "required": false,
404
+ "optional": true,
405
+ "docs": {
406
+ "tags": [],
407
+ "text": "Specifies where to open the linked document."
408
+ },
409
+ "attribute": "url-target",
410
+ "reflect": false
411
+ },
412
+ "icon": {
413
+ "type": "string",
414
+ "mutable": false,
415
+ "complexType": {
416
+ "original": "string",
417
+ "resolved": "string | undefined",
418
+ "references": {}
419
+ },
420
+ "required": false,
421
+ "optional": true,
422
+ "docs": {
423
+ "tags": [],
424
+ "text": "The name of an icon to be displayed in the button."
425
+ },
426
+ "attribute": "icon",
427
+ "reflect": false
428
+ },
429
+ "iconSrc": {
430
+ "type": "string",
431
+ "mutable": false,
432
+ "complexType": {
433
+ "original": "string",
434
+ "resolved": "string | undefined",
435
+ "references": {}
436
+ },
437
+ "required": false,
438
+ "optional": true,
439
+ "docs": {
440
+ "tags": [],
441
+ "text": "The SVG source of an icon to be displayed in the button. This takes\nprecenedence over the `icon` name."
442
+ },
443
+ "attribute": "icon-src",
444
+ "reflect": false
445
+ },
446
+ "iconOnly": {
447
+ "type": "any",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "boolean | Breakpoint",
451
+ "resolved": "\"l\" | \"m\" | \"s\" | \"xl\" | \"xs\" | boolean",
452
+ "references": {
453
+ "Breakpoint": {
454
+ "location": "import",
455
+ "path": "../../utils/breakpoints"
456
+ }
478
457
  }
458
+ },
459
+ "required": false,
460
+ "optional": false,
461
+ "docs": {
462
+ "tags": [],
463
+ "text": "Hide the actual button content and only display the icon."
464
+ },
465
+ "attribute": "icon-only",
466
+ "reflect": false,
467
+ "defaultValue": "false"
468
+ },
469
+ "iconRight": {
470
+ "type": "boolean",
471
+ "mutable": false,
472
+ "complexType": {
473
+ "original": "boolean",
474
+ "resolved": "boolean",
475
+ "references": {}
476
+ },
477
+ "required": false,
478
+ "optional": false,
479
+ "docs": {
480
+ "tags": [],
481
+ "text": "Display the icon on the right."
482
+ },
483
+ "attribute": "icon-right",
484
+ "reflect": false,
485
+ "defaultValue": "false"
486
+ },
487
+ "buttonId": {
488
+ "type": "string",
489
+ "mutable": false,
490
+ "complexType": {
491
+ "original": "string",
492
+ "resolved": "string | undefined",
493
+ "references": {}
494
+ },
495
+ "required": false,
496
+ "optional": true,
497
+ "docs": {
498
+ "tags": [],
499
+ "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."
500
+ },
501
+ "attribute": "button-id",
502
+ "reflect": false
503
+ },
504
+ "a11yLabel": {
505
+ "type": "string",
506
+ "mutable": false,
507
+ "complexType": {
508
+ "original": "string",
509
+ "resolved": "string | undefined",
510
+ "references": {}
511
+ },
512
+ "required": false,
513
+ "optional": true,
514
+ "docs": {
515
+ "tags": [],
516
+ "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."
517
+ },
518
+ "attribute": "a11y-label",
519
+ "reflect": false
520
+ },
521
+ "a11yCurrent": {
522
+ "type": "string",
523
+ "mutable": false,
524
+ "complexType": {
525
+ "original": "string",
526
+ "resolved": "string | undefined",
527
+ "references": {}
528
+ },
529
+ "required": false,
530
+ "optional": true,
531
+ "docs": {
532
+ "tags": [],
533
+ "text": "Sets the `aria-current` attribute on the button."
534
+ },
535
+ "attribute": "a11y-current",
536
+ "reflect": false
537
+ },
538
+ "nativeAttributes": {
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 element"
479
551
  }
480
- },
481
- "required": false,
482
- "optional": false,
483
- "docs": {
484
- "tags": [],
485
- "text": "Hide the actual button content and only display the icon."
486
- },
487
- "attribute": "icon-only",
488
- "reflect": false,
489
- "defaultValue": "false"
490
- },
491
- "iconRight": {
492
- "type": "boolean",
493
- "mutable": false,
494
- "complexType": {
495
- "original": "boolean",
496
- "resolved": "boolean",
497
- "references": {}
498
- },
499
- "required": false,
500
- "optional": false,
501
- "docs": {
502
- "tags": [],
503
- "text": "Display the icon on the right."
504
- },
505
- "attribute": "icon-right",
506
- "reflect": false,
507
- "defaultValue": "false"
508
- },
509
- "buttonId": {
510
- "type": "string",
511
- "mutable": false,
512
- "complexType": {
513
- "original": "string",
514
- "resolved": "string | undefined",
515
- "references": {}
516
- },
517
- "required": false,
518
- "optional": true,
519
- "docs": {
520
- "tags": [],
521
- "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."
522
- },
523
- "attribute": "button-id",
524
- "reflect": false
525
- },
526
- "a11yLabel": {
527
- "type": "string",
528
- "mutable": false,
529
- "complexType": {
530
- "original": "string",
531
- "resolved": "string | undefined",
532
- "references": {}
533
- },
534
- "required": false,
535
- "optional": true,
536
- "docs": {
537
- "tags": [],
538
- "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."
539
- },
540
- "attribute": "a11y-label",
541
- "reflect": false
542
- },
543
- "a11yCurrent": {
544
- "type": "string",
545
- "mutable": false,
546
- "complexType": {
547
- "original": "string",
548
- "resolved": "string | undefined",
549
- "references": {}
550
- },
551
- "required": false,
552
- "optional": true,
553
- "docs": {
554
- "tags": [],
555
- "text": "Sets the `aria-current` attribute on the button."
556
- },
557
- "attribute": "a11y-current",
558
- "reflect": false
559
- },
560
- "nativeAttributes": {
561
- "type": "unknown",
562
- "mutable": false,
563
- "complexType": {
564
- "original": "{ [key: string]: string }",
565
- "resolved": "undefined | { [key: string]: string; }",
566
- "references": {}
567
- },
568
- "required": false,
569
- "optional": true,
570
- "docs": {
571
- "tags": [],
572
- "text": "Attributes that will be added to the native HTML button element"
573
552
  }
574
- }
575
- }; }
576
- static get states() { return {
577
- "_iconOnly": {}
578
- }; }
579
- static get events() { return [{
580
- "method": "catClick",
581
- "name": "catClick",
582
- "bubbles": true,
583
- "cancelable": true,
584
- "composed": true,
585
- "docs": {
586
- "tags": [],
587
- "text": "Emitted when the button is clicked."
588
- },
589
- "complexType": {
590
- "original": "MouseEvent",
591
- "resolved": "MouseEvent",
592
- "references": {
593
- "MouseEvent": {
594
- "location": "global"
553
+ };
554
+ }
555
+ static get states() {
556
+ return {
557
+ "_iconOnly": {}
558
+ };
559
+ }
560
+ static get events() {
561
+ return [{
562
+ "method": "catClick",
563
+ "name": "catClick",
564
+ "bubbles": true,
565
+ "cancelable": true,
566
+ "composed": true,
567
+ "docs": {
568
+ "tags": [],
569
+ "text": "Emitted when the button is clicked."
570
+ },
571
+ "complexType": {
572
+ "original": "MouseEvent",
573
+ "resolved": "MouseEvent",
574
+ "references": {
575
+ "MouseEvent": {
576
+ "location": "global"
577
+ }
595
578
  }
596
579
  }
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"
580
+ }, {
581
+ "method": "catFocus",
582
+ "name": "catFocus",
583
+ "bubbles": true,
584
+ "cancelable": true,
585
+ "composed": true,
586
+ "docs": {
587
+ "tags": [],
588
+ "text": "Emitted when the button received focus."
589
+ },
590
+ "complexType": {
591
+ "original": "FocusEvent",
592
+ "resolved": "FocusEvent",
593
+ "references": {
594
+ "FocusEvent": {
595
+ "location": "global"
596
+ }
614
597
  }
615
598
  }
616
- }
617
- }, {
618
- "method": "catBlur",
619
- "name": "catBlur",
620
- "bubbles": true,
621
- "cancelable": true,
622
- "composed": true,
623
- "docs": {
624
- "tags": [],
625
- "text": "Emitted when the button loses focus."
626
- },
627
- "complexType": {
628
- "original": "FocusEvent",
629
- "resolved": "FocusEvent",
630
- "references": {
631
- "FocusEvent": {
632
- "location": "global"
599
+ }, {
600
+ "method": "catBlur",
601
+ "name": "catBlur",
602
+ "bubbles": true,
603
+ "cancelable": true,
604
+ "composed": true,
605
+ "docs": {
606
+ "tags": [],
607
+ "text": "Emitted when the button loses focus."
608
+ },
609
+ "complexType": {
610
+ "original": "FocusEvent",
611
+ "resolved": "FocusEvent",
612
+ "references": {
613
+ "FocusEvent": {
614
+ "location": "global"
615
+ }
633
616
  }
634
617
  }
635
- }
636
- }]; }
637
- static get methods() { return {
638
- "doFocus": {
639
- "complexType": {
640
- "signature": "(options?: FocusOptions | undefined) => Promise<void>",
641
- "parameters": [{
642
- "tags": [{
643
- "name": "param",
644
- "text": "options An optional object providing options to control aspects of\nthe focusing process."
645
- }],
646
- "text": "An optional object providing options to control aspects of\nthe focusing process."
647
- }],
648
- "references": {
649
- "Promise": {
650
- "location": "global"
618
+ }];
619
+ }
620
+ static get methods() {
621
+ return {
622
+ "doFocus": {
623
+ "complexType": {
624
+ "signature": "(options?: FocusOptions) => Promise<void>",
625
+ "parameters": [{
626
+ "tags": [{
627
+ "name": "param",
628
+ "text": "options An optional object providing options to control aspects of\nthe focusing process."
629
+ }],
630
+ "text": "An optional object providing options to control aspects of\nthe focusing process."
631
+ }],
632
+ "references": {
633
+ "Promise": {
634
+ "location": "global"
635
+ },
636
+ "FocusOptions": {
637
+ "location": "global"
638
+ }
651
639
  },
652
- "FocusOptions": {
653
- "location": "global"
654
- }
640
+ "return": "Promise<void>"
655
641
  },
656
- "return": "Promise<void>"
642
+ "docs": {
643
+ "text": "Programmatically move focus to the button. Use this method instead of\n`button.focus()`.",
644
+ "tags": [{
645
+ "name": "param",
646
+ "text": "options An optional object providing options to control aspects of\nthe focusing process."
647
+ }]
648
+ }
657
649
  },
658
- "docs": {
659
- "text": "Programmatically move focus to the button. Use this method instead of\n`button.focus()`.",
660
- "tags": [{
661
- "name": "param",
662
- "text": "options An optional object providing options to control aspects of\nthe focusing process."
663
- }]
664
- }
665
- },
666
- "doBlur": {
667
- "complexType": {
668
- "signature": "() => Promise<void>",
669
- "parameters": [],
670
- "references": {
671
- "Promise": {
672
- "location": "global"
673
- }
650
+ "doBlur": {
651
+ "complexType": {
652
+ "signature": "() => Promise<void>",
653
+ "parameters": [],
654
+ "references": {
655
+ "Promise": {
656
+ "location": "global"
657
+ }
658
+ },
659
+ "return": "Promise<void>"
674
660
  },
675
- "return": "Promise<void>"
661
+ "docs": {
662
+ "text": "Programmatically remove focus from the button. Use this method instead of\n`button.blur()`.",
663
+ "tags": []
664
+ }
676
665
  },
677
- "docs": {
678
- "text": "Programmatically remove focus from the button. Use this method instead of\n`button.blur()`.",
679
- "tags": []
680
- }
681
- },
682
- "doClick": {
683
- "complexType": {
684
- "signature": "() => Promise<void>",
685
- "parameters": [],
686
- "references": {
687
- "Promise": {
688
- "location": "global"
689
- }
666
+ "doClick": {
667
+ "complexType": {
668
+ "signature": "() => Promise<void>",
669
+ "parameters": [],
670
+ "references": {
671
+ "Promise": {
672
+ "location": "global"
673
+ }
674
+ },
675
+ "return": "Promise<void>"
690
676
  },
691
- "return": "Promise<void>"
692
- },
693
- "docs": {
694
- "text": "Programmatically simulate a click on the button.",
695
- "tags": []
677
+ "docs": {
678
+ "text": "Programmatically simulate a click on the button.",
679
+ "tags": []
680
+ }
696
681
  }
697
- }
698
- }; }
699
- static get watchers() { return [{
700
- "propName": "iconOnly",
701
- "methodName": "onIconOnlyChanged"
702
- }]; }
703
- static get listeners() { return [{
704
- "name": "click",
705
- "method": "haltDisabledEvents",
706
- "target": undefined,
707
- "capture": false,
708
- "passive": false
709
- }]; }
682
+ };
683
+ }
684
+ static get watchers() {
685
+ return [{
686
+ "propName": "iconOnly",
687
+ "methodName": "onIconOnlyChanged"
688
+ }];
689
+ }
690
+ static get listeners() {
691
+ return [{
692
+ "name": "click",
693
+ "method": "haltDisabledEvents",
694
+ "target": undefined,
695
+ "capture": false,
696
+ "passive": false
697
+ }];
698
+ }
710
699
  }
711
- //# sourceMappingURL=cat-button.js.map
700
+ //# sourceMappingURL=cat-button.js.map