@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.
- package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/catalyst/catalyst.css +6 -27
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-50855511.entry.js +10 -0
- package/dist/catalyst/p-50855511.entry.js.map +1 -0
- package/dist/catalyst/p-ccfebe33.js.map +1 -1
- package/dist/catalyst/p-d1fb9d96.js +3 -0
- package/dist/catalyst/p-d1fb9d96.js.map +1 -0
- package/dist/catalyst/scss/fonts/_fonts-mixins.scss +0 -10
- package/dist/cjs/cat-alert_24.cjs.entry.js +932 -1132
- package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +10 -3
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-c4542095.js → index-01312a2e.js} +527 -245
- package/dist/cjs/index-01312a2e.js.map +1 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/cat-alert/cat-alert.js +69 -71
- package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.js +172 -165
- package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.js +102 -111
- package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.js +526 -537
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-card/cat-card.js +12 -8
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +336 -350
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +137 -137
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.js +58 -40
- package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js +14 -7
- package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js +1 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.js +1 -1
- package/dist/collection/components/cat-icon/cat-icon.js +85 -79
- package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +32 -3
- package/dist/collection/components/cat-input/cat-input.js +662 -660
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-input/input-type.js +1 -1
- package/dist/collection/components/cat-label/cat-label.js +69 -78
- package/dist/collection/components/cat-label/cat-label.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +192 -226
- package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +319 -327
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +173 -165
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +200 -208
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.js +555 -590
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +3 -28
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +85 -88
- package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.js +52 -50
- package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.js +169 -168
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +73 -66
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.css +32 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +479 -468
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +319 -326
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.css +7 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +187 -198
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/scss/fonts/_fonts-mixins.scss +0 -10
- package/dist/collection/utils/breakpoints.js +1 -1
- package/dist/collection/utils/breakpoints.js.map +1 -1
- package/dist/collection/utils/coerce.js +11 -0
- package/dist/collection/utils/coerce.js.map +1 -0
- package/dist/collection/utils/first-tabbable.js +1 -1
- package/dist/collection/utils/is-touch-screen.js +1 -1
- package/dist/collection/utils/load-img.js +1 -1
- package/dist/collection/utils/media-matcher.js +1 -1
- package/dist/collection/utils/platform.js +4 -4
- package/dist/collection/utils/setDefault.js +1 -1
- package/dist/components/cat-alert.js +1 -6
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar2.js +6 -9
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.js +0 -15
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button2.js +10 -36
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox2.js +9 -26
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-dropdown2.js +139 -176
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +4 -9
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js +13 -6
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-icon-registry.js +71 -0
- package/dist/components/cat-icon-registry.js.map +1 -0
- package/dist/components/cat-icon.js +1 -1
- package/dist/components/cat-icon2.js +5 -71
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input.js +33 -41
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-label.js +1 -6
- package/dist/components/cat-label.js.map +1 -1
- package/dist/components/cat-pagination.js +0 -30
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.js +3 -6
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +9 -23
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +1 -12
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +2 -12
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +40 -47
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton2.js +1 -10
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-spinner2.js +1 -3
- package/dist/components/cat-spinner2.js.map +1 -1
- package/dist/components/cat-tab.js +3 -12
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.js +1 -6
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.js +28 -33
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +9 -23
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +14 -34
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/first-tabbable.js +51 -113
- package/dist/components/first-tabbable.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +577 -441
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.d.ts +9 -27
- package/dist/components/index.js +2 -26
- package/dist/components/index.js.map +1 -1
- package/dist/esm/cat-alert_24.entry.js +933 -1133
- package/dist/esm/cat-alert_24.entry.js.map +1 -1
- package/dist/esm/catalyst.js +7 -3
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-524906f7.js → index-fc2f91a4.js} +527 -246
- package/dist/esm/index-fc2f91a4.js.map +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -1
- package/dist/types/components/cat-form-group/cat-form-group.d.ts +4 -0
- package/dist/types/components/cat-form-hint/cat-form-hint.d.ts +5 -0
- package/dist/types/components/cat-input/cat-input.d.ts +6 -1
- package/dist/types/components/cat-input/input-type.d.ts +1 -1
- package/dist/types/components/cat-radio/cat-radio.d.ts +1 -1
- package/dist/types/components/cat-select/cat-select.d.ts +3 -1
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +6 -1
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -1
- package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +353 -7
- package/dist/types/stencil-public-runtime.d.ts +91 -19
- package/dist/types/utils/breakpoints.d.ts +1 -1
- package/dist/types/utils/coerce.d.ts +3 -0
- package/dist/types/utils/first-tabbable.d.ts +2 -2
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +19 -19
- package/dist/catalyst/assets/fonts/AzeretMono-Regular.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Bold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Italic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Medium.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Regular.woff2 +0 -0
- package/dist/catalyst/p-919eea27.js +0 -3
- package/dist/catalyst/p-919eea27.js.map +0 -1
- package/dist/catalyst/p-cd8f8639.entry.js +0 -10
- package/dist/catalyst/p-cd8f8639.entry.js.map +0 -1
- package/dist/catalyst/scss/fonts/_fonts.mixins.azeret.scss +0 -14
- package/dist/catalyst/scss/fonts/_fonts.mixins.dm.scss +0 -53
- package/dist/cjs/index-c4542095.js.map +0 -1
- package/dist/collection/assets/fonts/AzeretMono-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Italic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Regular.woff2 +0 -0
- package/dist/collection/components/cat-form-hint/cat-form-hint-utils.js +0 -13
- package/dist/collection/components/cat-form-hint/cat-form-hint-utils.js.map +0 -1
- package/dist/collection/scss/fonts/_fonts.mixins.azeret.scss +0 -14
- package/dist/collection/scss/fonts/_fonts.mixins.dm.scss +0 -53
- package/dist/components/cat-form-hint-utils.js +0 -17
- package/dist/components/cat-form-hint-utils.js.map +0 -1
- package/dist/esm/index-524906f7.js.map +0 -1
- package/dist/types/components/cat-form-hint/cat-form-hint-utils.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
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() {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
"
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
"
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
"
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
"
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
"
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
"
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
"
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
"
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
"
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
"
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
"
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
"
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
"
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
"
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
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() {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
"
|
|
587
|
-
"
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
"
|
|
593
|
-
"
|
|
594
|
-
|
|
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
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
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
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
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() {
|
|
638
|
-
|
|
639
|
-
"
|
|
640
|
-
"
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
"
|
|
650
|
-
"
|
|
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
|
-
"
|
|
653
|
-
"location": "global"
|
|
654
|
-
}
|
|
640
|
+
"return": "Promise<void>"
|
|
655
641
|
},
|
|
656
|
-
"
|
|
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
|
-
"
|
|
659
|
-
"
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
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
|
-
"
|
|
661
|
+
"docs": {
|
|
662
|
+
"text": "Programmatically remove focus from the button. Use this method instead of\n`button.blur()`.",
|
|
663
|
+
"tags": []
|
|
664
|
+
}
|
|
676
665
|
},
|
|
677
|
-
"
|
|
678
|
-
"
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
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
|
-
"
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
"tags": []
|
|
677
|
+
"docs": {
|
|
678
|
+
"text": "Programmatically simulate a click on the button.",
|
|
679
|
+
"tags": []
|
|
680
|
+
}
|
|
696
681
|
}
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
static get watchers() {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
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
|