@haiilo/catalyst 0.5.6 → 0.5.9
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/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/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 +1 -0
- package/dist/catalyst/catalyst.esm.js +2 -0
- package/dist/catalyst/catalyst.esm.js.map +1 -0
- package/dist/catalyst/index.cdn.js +21 -0
- package/dist/catalyst/index.esm.js +2 -0
- package/dist/catalyst/index.esm.js.map +1 -0
- package/dist/catalyst/p-9a3c2375.js +2 -0
- package/dist/catalyst/p-9a3c2375.js.map +1 -0
- package/dist/catalyst/p-a6b8ebe9.entry.js +10 -0
- package/dist/catalyst/p-a6b8ebe9.entry.js.map +1 -0
- package/dist/catalyst/p-bfc656ca.js +2 -0
- package/dist/catalyst/p-bfc656ca.js.map +1 -0
- package/dist/catalyst/p-e82b63e9.js +2 -0
- package/dist/catalyst/p-e82b63e9.js.map +1 -0
- package/dist/cjs/app-globals-2a30d681.js +256 -0
- package/dist/cjs/app-globals-2a30d681.js.map +1 -0
- package/dist/cjs/cat-alert_15.cjs.entry.js +4651 -0
- package/dist/cjs/cat-alert_15.cjs.entry.js.map +1 -0
- package/dist/cjs/cat-icon-registry-b3a95a6b.js +442 -0
- package/dist/cjs/cat-icon-registry-b3a95a6b.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +24 -0
- package/dist/cjs/catalyst.cjs.js.map +1 -0
- package/dist/cjs/index-5d72f0e4.js +1347 -0
- package/dist/cjs/index-5d72f0e4.js.map +1 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +26 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- 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/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 +27 -0
- package/dist/collection/components/cat-alert/cat-alert.css +61 -0
- package/dist/collection/components/cat-alert/cat-alert.js +61 -0
- package/dist/collection/components/cat-alert/cat-alert.js.map +1 -0
- package/dist/collection/components/cat-badge/cat-badge.css +154 -0
- package/dist/collection/components/cat-badge/cat-badge.js +143 -0
- package/dist/collection/components/cat-badge/cat-badge.js.map +1 -0
- package/dist/collection/components/cat-button/cat-button.css +333 -0
- package/dist/collection/components/cat-button/cat-button.js +615 -0
- package/dist/collection/components/cat-button/cat-button.js.map +1 -0
- package/dist/collection/components/cat-card/cat-card.css +24 -0
- package/dist/collection/components/cat-card/cat-card.js +20 -0
- package/dist/collection/components/cat-card/cat-card.js.map +1 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +105 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +314 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -0
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js +70 -0
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -0
- package/dist/collection/components/cat-icon/cat-icon-registry.js +55 -0
- package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -0
- package/dist/collection/components/cat-icon/cat-icon.css +50 -0
- package/dist/collection/components/cat-icon/cat-icon.js +91 -0
- package/dist/collection/components/cat-icon/cat-icon.js.map +1 -0
- package/dist/collection/components/cat-input/cat-input.css +131 -0
- package/dist/collection/components/cat-input/cat-input.js +606 -0
- package/dist/collection/components/cat-input/cat-input.js.map +1 -0
- package/dist/collection/components/cat-menu/cat-menu.css +34 -0
- package/dist/collection/components/cat-menu/cat-menu.js +184 -0
- package/dist/collection/components/cat-menu/cat-menu.js.map +1 -0
- package/dist/collection/components/cat-radio/cat-radio.css +84 -0
- package/dist/collection/components/cat-radio/cat-radio.js +283 -0
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.css +69 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +311 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -0
- package/dist/collection/components/cat-skeleton/cat-skeleton.css +177 -0
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +131 -0
- package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -0
- package/dist/collection/components/cat-spinner/cat-spinner.css +63 -0
- package/dist/collection/components/cat-spinner/cat-spinner.js +65 -0
- package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -0
- package/dist/collection/components/cat-textarea/cat-textarea.css +72 -0
- package/dist/collection/components/cat-textarea/cat-textarea.js +393 -0
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -0
- package/dist/collection/components/cat-toggle/cat-toggle.css +93 -0
- package/dist/collection/components/cat-toggle/cat-toggle.js +283 -0
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -0
- package/dist/collection/components/cat-tooltip/cat-tooltip.css +41 -0
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +254 -0
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -0
- package/dist/collection/index.cdn.js +21 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/init.js +17 -0
- package/dist/collection/init.js.map +1 -0
- package/dist/collection/utils/breakpoints.js +12 -0
- package/dist/collection/utils/breakpoints.js.map +1 -0
- package/dist/collection/utils/first-tabbable.js +6 -0
- package/dist/collection/utils/first-tabbable.js.map +1 -0
- package/dist/collection/utils/is-touch-screen.js +3 -0
- package/dist/collection/utils/is-touch-screen.js.map +1 -0
- package/dist/collection/utils/media-matcher.js +55 -0
- package/dist/collection/utils/media-matcher.js.map +1 -0
- package/dist/collection/utils/platform.js +50 -0
- package/dist/collection/utils/platform.js.map +1 -0
- package/dist/components/cat-alert.d.ts +11 -0
- package/dist/components/cat-alert.js +53 -0
- package/dist/components/cat-alert.js.map +1 -0
- package/dist/components/cat-badge.d.ts +11 -0
- package/dist/components/cat-badge.js +68 -0
- package/dist/components/cat-badge.js.map +1 -0
- package/dist/components/cat-button.d.ts +11 -0
- package/dist/components/cat-button.js +8 -0
- package/dist/components/cat-button.js.map +1 -0
- package/dist/components/cat-button2.js +346 -0
- package/dist/components/cat-button2.js.map +1 -0
- package/dist/components/cat-card.d.ts +11 -0
- package/dist/components/cat-card.js +35 -0
- package/dist/components/cat-card.js.map +1 -0
- package/dist/components/cat-checkbox.d.ts +11 -0
- package/dist/components/cat-checkbox.js +103 -0
- package/dist/components/cat-checkbox.js.map +1 -0
- package/dist/components/cat-i18n-registry.js +74 -0
- package/dist/components/cat-i18n-registry.js.map +1 -0
- package/dist/components/cat-icon-registry.js +59 -0
- package/dist/components/cat-icon-registry.js.map +1 -0
- package/dist/components/cat-icon.d.ts +11 -0
- package/dist/components/cat-icon.js +8 -0
- package/dist/components/cat-icon.js.map +1 -0
- package/dist/components/cat-icon2.js +49 -0
- package/dist/components/cat-icon2.js.map +1 -0
- package/dist/components/cat-input.d.ts +11 -0
- package/dist/components/cat-input.js +172 -0
- package/dist/components/cat-input.js.map +1 -0
- package/dist/components/cat-menu.d.ts +11 -0
- package/dist/components/cat-menu.js +870 -0
- package/dist/components/cat-menu.js.map +1 -0
- package/dist/components/cat-radio.d.ts +11 -0
- package/dist/components/cat-radio.js +93 -0
- package/dist/components/cat-radio.js.map +1 -0
- package/dist/components/cat-scrollable.d.ts +11 -0
- package/dist/components/cat-scrollable.js +1362 -0
- package/dist/components/cat-scrollable.js.map +1 -0
- package/dist/components/cat-skeleton.d.ts +11 -0
- package/dist/components/cat-skeleton.js +78 -0
- package/dist/components/cat-skeleton.js.map +1 -0
- package/dist/components/cat-spinner.d.ts +11 -0
- package/dist/components/cat-spinner.js +8 -0
- package/dist/components/cat-spinner.js.map +1 -0
- package/dist/components/cat-spinner2.js +41 -0
- package/dist/components/cat-spinner2.js.map +1 -0
- package/dist/components/cat-textarea.d.ts +11 -0
- package/dist/components/cat-textarea.js +119 -0
- package/dist/components/cat-textarea.js.map +1 -0
- package/dist/components/cat-toggle.d.ts +11 -0
- package/dist/components/cat-toggle.js +93 -0
- package/dist/components/cat-toggle.js.map +1 -0
- package/dist/components/cat-tooltip.d.ts +11 -0
- package/dist/components/cat-tooltip.js +154 -0
- package/dist/components/cat-tooltip.js.map +1 -0
- package/dist/components/first-tabbable.js +1495 -0
- package/dist/components/first-tabbable.js.map +1 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +258 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/loglevel.js +315 -0
- package/dist/components/loglevel.js.map +1 -0
- package/dist/esm/app-globals-77cd8c8e.js +254 -0
- package/dist/esm/app-globals-77cd8c8e.js.map +1 -0
- package/dist/esm/cat-alert_15.entry.js +4633 -0
- package/dist/esm/cat-alert_15.entry.js.map +1 -0
- package/dist/esm/cat-icon-registry-a7acd6f7.js +438 -0
- package/dist/esm/cat-icon-registry-a7acd6f7.js.map +1 -0
- package/dist/esm/catalyst.js +22 -0
- package/dist/esm/catalyst.js.map +1 -0
- package/dist/esm/index-fd12be19.js +1320 -0
- package/dist/esm/index-fd12be19.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +22 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/cat-alert/cat-alert.d.ts +14 -0
- package/dist/types/components/cat-badge/cat-badge.d.ts +29 -0
- package/dist/types/components/cat-button/cat-button.d.ts +134 -0
- package/dist/types/components/cat-card/cat-card.d.ts +7 -0
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +69 -0
- package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +18 -0
- package/dist/types/components/cat-icon/cat-icon-registry.d.ts +15 -0
- package/dist/types/components/cat-icon/cat-icon.d.ts +23 -0
- package/dist/types/components/cat-input/cat-input.d.ts +130 -0
- package/dist/types/components/cat-menu/cat-menu.d.ts +31 -0
- package/dist/types/components/cat-radio/cat-radio.d.ts +63 -0
- package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +52 -0
- package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +28 -0
- package/dist/types/components/cat-spinner/cat-spinner.d.ts +15 -0
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +85 -0
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +64 -0
- package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +46 -0
- package/dist/types/components.d.ts +1167 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/init.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/breakpoints.d.ts +7 -0
- package/dist/types/utils/first-tabbable.d.ts +4 -0
- package/dist/types/utils/is-touch-screen.d.ts +2 -0
- package/dist/types/utils/media-matcher.d.ts +13 -0
- package/dist/types/utils/platform.d.ts +18 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +4 -4
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Breakpoint } from '../../utils/breakpoints';
|
|
3
|
+
/**
|
|
4
|
+
* Buttons are used for interface actions. Primary style should be used only
|
|
5
|
+
* once per view for main call-to-action.
|
|
6
|
+
*
|
|
7
|
+
* @part button - The native anchor or button element.
|
|
8
|
+
* @part content - The textual content of the button.
|
|
9
|
+
* @part prefix - The prefix icon.
|
|
10
|
+
* @part suffix - The suffix icon.
|
|
11
|
+
*/
|
|
12
|
+
export declare class CatButton {
|
|
13
|
+
private button;
|
|
14
|
+
private mediaMatcher?;
|
|
15
|
+
private mediaQueryList?;
|
|
16
|
+
private mediaQueryListener?;
|
|
17
|
+
_iconOnly: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The rendering style of the button.
|
|
20
|
+
*/
|
|
21
|
+
variant: 'filled' | 'outlined' | 'text';
|
|
22
|
+
/**
|
|
23
|
+
* The color palette of the button.
|
|
24
|
+
*/
|
|
25
|
+
color: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
26
|
+
/**
|
|
27
|
+
* Show an active status indicator on the left side of the button.
|
|
28
|
+
*/
|
|
29
|
+
active: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The size of the button.
|
|
32
|
+
*/
|
|
33
|
+
size: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
34
|
+
/**
|
|
35
|
+
* The name of the button, which gets paired with the button's value when
|
|
36
|
+
* submitted as part of a form. Corresponds with the native HTML name
|
|
37
|
+
* attribute.
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The value of the button, which gets paired with the button's name when
|
|
42
|
+
* submitted as part of a form. Corresponds with the native HTML value
|
|
43
|
+
* attribute.
|
|
44
|
+
*/
|
|
45
|
+
value?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies that the button should be disabled. A disabled button is unusable
|
|
48
|
+
* and un-clickable. Corresponds with the native HTML disabled attribute.
|
|
49
|
+
*/
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Displays the button in a loading state with a spinner. Just like a disabled
|
|
53
|
+
* button, an inactive button is unusable and un-clickable. However, it
|
|
54
|
+
* retains the current focus state.
|
|
55
|
+
*/
|
|
56
|
+
loading: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Allows the button to submit a form.
|
|
59
|
+
*/
|
|
60
|
+
submit: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Ellipse overflowing button content.
|
|
63
|
+
*/
|
|
64
|
+
ellipsed: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Use round button edges.
|
|
67
|
+
*/
|
|
68
|
+
round: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
71
|
+
*/
|
|
72
|
+
url?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies where to open the linked document.
|
|
75
|
+
*/
|
|
76
|
+
urlTarget?: '_blank' | '_self';
|
|
77
|
+
/**
|
|
78
|
+
* The name of an icon to be displayed in the button.
|
|
79
|
+
*/
|
|
80
|
+
icon?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Hide the actual button content and only display the icon.
|
|
83
|
+
*/
|
|
84
|
+
iconOnly: boolean | Breakpoint;
|
|
85
|
+
/**
|
|
86
|
+
* Display the icon on the right.
|
|
87
|
+
*/
|
|
88
|
+
iconRight: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Adds a unique identifier for the button. Please note that with this
|
|
91
|
+
* particular component this ID is added inside the web component. If you need
|
|
92
|
+
* an ID on the HTML element, use the regular `id` attribute instead.
|
|
93
|
+
*/
|
|
94
|
+
buttonId?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Adds accessible label for the button that is only shown for screen
|
|
97
|
+
* readers. Typically, this label text replaces the visible text on the
|
|
98
|
+
* button for users who use assistive technology.
|
|
99
|
+
*/
|
|
100
|
+
a11yLabel?: string;
|
|
101
|
+
onIconOnlyChanged(value: boolean | Breakpoint): void;
|
|
102
|
+
/**
|
|
103
|
+
* Emitted when the button is clicked.
|
|
104
|
+
*/
|
|
105
|
+
catClick: EventEmitter<MouseEvent>;
|
|
106
|
+
/**
|
|
107
|
+
* Emitted when the button received focus.
|
|
108
|
+
*/
|
|
109
|
+
catFocus: EventEmitter<FocusEvent>;
|
|
110
|
+
/**
|
|
111
|
+
* Emitted when the button loses focus.
|
|
112
|
+
*/
|
|
113
|
+
catBlur: EventEmitter<FocusEvent>;
|
|
114
|
+
componentWillLoad(): void;
|
|
115
|
+
componentWillRender(): void;
|
|
116
|
+
haltDisabledEvents(event: Event): void;
|
|
117
|
+
/**
|
|
118
|
+
* Sets focus on the button. Use this method instead of `button.focus()`.
|
|
119
|
+
*
|
|
120
|
+
* @param options An optional object providing options to control aspects of
|
|
121
|
+
* the focusing process.
|
|
122
|
+
*/
|
|
123
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
124
|
+
render(): any;
|
|
125
|
+
private get iconSize();
|
|
126
|
+
private get spinnerSize();
|
|
127
|
+
private get isIconButton();
|
|
128
|
+
private get hasPrefixIcon();
|
|
129
|
+
private get hasSuffixIcon();
|
|
130
|
+
private get content();
|
|
131
|
+
private onClick;
|
|
132
|
+
private onFocus;
|
|
133
|
+
private onBlur;
|
|
134
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Checkboxes are used to let a user choose one or more options from a limited
|
|
4
|
+
* number of options.
|
|
5
|
+
*
|
|
6
|
+
* @part checkbox - The checkbox element.
|
|
7
|
+
* @part label - The label content.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CatCheckbox {
|
|
10
|
+
private readonly id;
|
|
11
|
+
private input;
|
|
12
|
+
/**
|
|
13
|
+
* Checked state of the checkbox
|
|
14
|
+
*/
|
|
15
|
+
checked: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Disabled state of the checkbox
|
|
18
|
+
*/
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Indeterminate state of the checkbox
|
|
22
|
+
*/
|
|
23
|
+
indeterminate: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Label of the checkbox which is presented in the UI
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
/**
|
|
29
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
30
|
+
*/
|
|
31
|
+
labelHidden: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The name of the input
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Required state of the checkbox
|
|
38
|
+
*/
|
|
39
|
+
required: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The value of the checkbox
|
|
42
|
+
*/
|
|
43
|
+
value?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Emitted when the checked status of the checkbox is changed.
|
|
46
|
+
*/
|
|
47
|
+
catChange: EventEmitter;
|
|
48
|
+
/**
|
|
49
|
+
* Emitted when the checkbox received focus.
|
|
50
|
+
*/
|
|
51
|
+
catFocus: EventEmitter<FocusEvent>;
|
|
52
|
+
/**
|
|
53
|
+
* Emitted when the checkbox loses focus.
|
|
54
|
+
*/
|
|
55
|
+
catBlur: EventEmitter<FocusEvent>;
|
|
56
|
+
componentDidLoad(): void;
|
|
57
|
+
componentWillRender(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Sets focus on the checkbox. Use this method instead of `checkbox.focus()`.
|
|
60
|
+
*
|
|
61
|
+
* @param options An optional object providing options to control aspects of
|
|
62
|
+
* the focusing process.
|
|
63
|
+
*/
|
|
64
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
65
|
+
render(): any;
|
|
66
|
+
private onInput;
|
|
67
|
+
private onFocus;
|
|
68
|
+
private onBlur;
|
|
69
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class CatI18nRegistry {
|
|
2
|
+
private static instance;
|
|
3
|
+
private lang;
|
|
4
|
+
private readonly messages;
|
|
5
|
+
private constructor();
|
|
6
|
+
static getInstance(): CatI18nRegistry;
|
|
7
|
+
getLanguage(): string;
|
|
8
|
+
setLanguage(lang: string): void;
|
|
9
|
+
getMessage(key: string): string | undefined;
|
|
10
|
+
addMessage(lang: string, key: string, message: string): CatI18nRegistry;
|
|
11
|
+
addMessages(lang: string, i18n: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
}): CatI18nRegistry;
|
|
14
|
+
removeMessage(lang: string, key: string): CatI18nRegistry;
|
|
15
|
+
removeMessages(lang: string, keys: string[]): CatI18nRegistry;
|
|
16
|
+
private buildEvent;
|
|
17
|
+
private getDict;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class CatIconRegistry {
|
|
2
|
+
private static instance;
|
|
3
|
+
private readonly icons;
|
|
4
|
+
private constructor();
|
|
5
|
+
static getInstance(): CatIconRegistry;
|
|
6
|
+
getIcon(name: string, setName?: string): string | undefined;
|
|
7
|
+
addIcon(name: string, data: string, setName?: string): CatIconRegistry;
|
|
8
|
+
addIcons(icons: {
|
|
9
|
+
[name: string]: string;
|
|
10
|
+
}, setName?: string): CatIconRegistry;
|
|
11
|
+
removeIcon(name: string, setName?: string): CatIconRegistry;
|
|
12
|
+
removeIcons(names: string[], setName?: string): CatIconRegistry;
|
|
13
|
+
private buildName;
|
|
14
|
+
private buildEvent;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icons are used to provide additional meaning or in places where text label
|
|
3
|
+
* doesn't fit.
|
|
4
|
+
*
|
|
5
|
+
* @part icon - The span element wrapping the SVG icon.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CatIcon {
|
|
8
|
+
private readonly iconRegistry;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the icon.
|
|
11
|
+
*/
|
|
12
|
+
icon: string;
|
|
13
|
+
/**
|
|
14
|
+
* The size of the icon.
|
|
15
|
+
*/
|
|
16
|
+
size: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
17
|
+
/**
|
|
18
|
+
* Adds accessible label for the icon that is only shown for screen
|
|
19
|
+
* readers. The `aria-hidden` attribute will be set if no label is present.
|
|
20
|
+
*/
|
|
21
|
+
a11yLabel?: string;
|
|
22
|
+
render(): any;
|
|
23
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
4
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
5
|
+
* including passwords and numbers.
|
|
6
|
+
*
|
|
7
|
+
* @part label - The label content.
|
|
8
|
+
* @part prefix - The text prefix.
|
|
9
|
+
* @part suffix - The text suffix.
|
|
10
|
+
*/
|
|
11
|
+
export declare class CatInput {
|
|
12
|
+
private readonly i18n;
|
|
13
|
+
private readonly id;
|
|
14
|
+
private input;
|
|
15
|
+
private inputValue;
|
|
16
|
+
/**
|
|
17
|
+
* Hint for form autofill feature.
|
|
18
|
+
*/
|
|
19
|
+
autoComplete?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the input should show a clear button.
|
|
22
|
+
*/
|
|
23
|
+
clearable: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the input is disabled.
|
|
26
|
+
*/
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Optional hint text to be displayed with the input.
|
|
30
|
+
*/
|
|
31
|
+
hint?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The name of an icon to be displayed in the input.
|
|
34
|
+
*/
|
|
35
|
+
icon?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Display the icon on the right.
|
|
38
|
+
*/
|
|
39
|
+
iconRight: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The label for the input.
|
|
42
|
+
*/
|
|
43
|
+
label: string;
|
|
44
|
+
/**
|
|
45
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
46
|
+
*/
|
|
47
|
+
labelHidden: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* A maximum value for numeric values.
|
|
50
|
+
*/
|
|
51
|
+
max?: number;
|
|
52
|
+
/**
|
|
53
|
+
* A maximum length (number of characters) for textual values.
|
|
54
|
+
*/
|
|
55
|
+
maxLength?: number;
|
|
56
|
+
/**
|
|
57
|
+
* A minimum value for numeric values.
|
|
58
|
+
*/
|
|
59
|
+
min?: number;
|
|
60
|
+
/**
|
|
61
|
+
* A minimum length (number of characters) for textual values.
|
|
62
|
+
*/
|
|
63
|
+
minLength?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
66
|
+
*/
|
|
67
|
+
name: string;
|
|
68
|
+
/**
|
|
69
|
+
* The placeholder text to display within the input.
|
|
70
|
+
*/
|
|
71
|
+
placeholder?: string;
|
|
72
|
+
/**
|
|
73
|
+
* A textual prefix to be displayed in the input.
|
|
74
|
+
*/
|
|
75
|
+
textPrefix?: string;
|
|
76
|
+
/**
|
|
77
|
+
* A textual suffix to be displayed in the input.
|
|
78
|
+
*/
|
|
79
|
+
textSuffix?: string;
|
|
80
|
+
/**
|
|
81
|
+
* The value is not editable.
|
|
82
|
+
*/
|
|
83
|
+
readonly: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* A value is required or must be check for the form to be submittable.
|
|
86
|
+
*/
|
|
87
|
+
required: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Use round input edges.
|
|
90
|
+
*/
|
|
91
|
+
round: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Type of form control.
|
|
94
|
+
*/
|
|
95
|
+
type: 'text' | 'email' | 'password' | 'tel' | 'url' | 'search' | 'number';
|
|
96
|
+
/**
|
|
97
|
+
* The initial value of the control.
|
|
98
|
+
*/
|
|
99
|
+
value?: string | number;
|
|
100
|
+
/**
|
|
101
|
+
* Emitted when the value is changed.
|
|
102
|
+
*/
|
|
103
|
+
catChange: EventEmitter;
|
|
104
|
+
/**
|
|
105
|
+
* Emitted when the input received focus.
|
|
106
|
+
*/
|
|
107
|
+
catFocus: EventEmitter<FocusEvent>;
|
|
108
|
+
/**
|
|
109
|
+
* Emitted when the input loses focus.
|
|
110
|
+
*/
|
|
111
|
+
catBlur: EventEmitter<FocusEvent>;
|
|
112
|
+
onValueChange(value?: string | number): void;
|
|
113
|
+
componentWillLoad(): void;
|
|
114
|
+
componentWillRender(): void;
|
|
115
|
+
/**
|
|
116
|
+
* Sets focus on the input. Use this method instead of `input.focus()`.
|
|
117
|
+
*
|
|
118
|
+
* @param options An optional object providing options to control aspects of
|
|
119
|
+
* the focusing process.
|
|
120
|
+
*/
|
|
121
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
122
|
+
/**
|
|
123
|
+
* Clear the input.
|
|
124
|
+
*/
|
|
125
|
+
clear(): Promise<void>;
|
|
126
|
+
render(): any;
|
|
127
|
+
private onInput;
|
|
128
|
+
private onFocus;
|
|
129
|
+
private onBlur;
|
|
130
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/dom';
|
|
2
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
|
+
export declare class CatMenu {
|
|
4
|
+
private static readonly OFFSET;
|
|
5
|
+
private readonly id;
|
|
6
|
+
private triggerSlot?;
|
|
7
|
+
private trigger?;
|
|
8
|
+
private content?;
|
|
9
|
+
private trap?;
|
|
10
|
+
private keyListener?;
|
|
11
|
+
/**
|
|
12
|
+
* The placement of the menu.
|
|
13
|
+
*/
|
|
14
|
+
placement: Placement;
|
|
15
|
+
/**
|
|
16
|
+
* Emitted when the menu is opened.
|
|
17
|
+
*/
|
|
18
|
+
catOpen: EventEmitter<FocusEvent>;
|
|
19
|
+
/**
|
|
20
|
+
* Emitted when the menu is closed.
|
|
21
|
+
*/
|
|
22
|
+
catClose: EventEmitter<FocusEvent>;
|
|
23
|
+
clickHandler(event: CustomEvent<MouseEvent>): void;
|
|
24
|
+
componentDidLoad(): void;
|
|
25
|
+
disconnectedCallback(): void;
|
|
26
|
+
render(): any;
|
|
27
|
+
private get contentId();
|
|
28
|
+
private show;
|
|
29
|
+
private hide;
|
|
30
|
+
private update;
|
|
31
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Radio Buttons are graphical interface elements that allow user to choose
|
|
4
|
+
* only one of a predefined set of mutually exclusive options.
|
|
5
|
+
*
|
|
6
|
+
* @part label - The label content.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CatRadio {
|
|
9
|
+
private readonly id;
|
|
10
|
+
private input;
|
|
11
|
+
/**
|
|
12
|
+
* Whether this radio is checked.
|
|
13
|
+
*/
|
|
14
|
+
checked: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether this radio is disabled.
|
|
17
|
+
*/
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The label of the radio that is visible.
|
|
21
|
+
*/
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
25
|
+
*/
|
|
26
|
+
labelHidden: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The name of the radio component.
|
|
29
|
+
*/
|
|
30
|
+
name?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the radio is required.
|
|
33
|
+
*/
|
|
34
|
+
required: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The value of the radio component.
|
|
37
|
+
*/
|
|
38
|
+
value?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Emitted when the radio is changed.
|
|
41
|
+
*/
|
|
42
|
+
catChange: EventEmitter;
|
|
43
|
+
/**
|
|
44
|
+
* Emitted when the radio received focus.
|
|
45
|
+
*/
|
|
46
|
+
catFocus: EventEmitter<FocusEvent>;
|
|
47
|
+
/**
|
|
48
|
+
* Emitted when the radio loses focus.
|
|
49
|
+
*/
|
|
50
|
+
catBlur: EventEmitter<FocusEvent>;
|
|
51
|
+
componentWillRender(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Sets focus on the radio. Use this method instead of `radio.focus()`.
|
|
54
|
+
*
|
|
55
|
+
* @param options An optional object providing options to control aspects of
|
|
56
|
+
* the focusing process.
|
|
57
|
+
*/
|
|
58
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
59
|
+
render(): any;
|
|
60
|
+
private onChange;
|
|
61
|
+
private onFocus;
|
|
62
|
+
private onBlur;
|
|
63
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* An element to display scrollable content.
|
|
4
|
+
*/
|
|
5
|
+
export declare class CatScrollable {
|
|
6
|
+
scrollElement?: HTMLElement;
|
|
7
|
+
scrollWrapperElement?: HTMLElement;
|
|
8
|
+
private readonly init;
|
|
9
|
+
private readonly destroyed;
|
|
10
|
+
private scrolled;
|
|
11
|
+
/** Flags to enable/disable scroll shadowX. */
|
|
12
|
+
shadowX: boolean;
|
|
13
|
+
/** Flags to enable/disable scroll shadowY. */
|
|
14
|
+
shadowY: boolean;
|
|
15
|
+
/** Flags to enable/disable overflowX. */
|
|
16
|
+
overflowX: boolean;
|
|
17
|
+
/** Flags to enable/disable overflowY. */
|
|
18
|
+
overflowY: boolean;
|
|
19
|
+
/** Flag to enable/disable overscroll behavior. */
|
|
20
|
+
overscroll: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Flag to fire an initial event after content initialization.
|
|
23
|
+
*/
|
|
24
|
+
scrolledInit: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Buffer to be used to calculate the scroll distance.
|
|
27
|
+
*/
|
|
28
|
+
scrolledBuffer: number;
|
|
29
|
+
/**
|
|
30
|
+
* Emitted when the content is fully scrolled to the top.
|
|
31
|
+
*/
|
|
32
|
+
scrolledTop: EventEmitter<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Emitted when the content is fully scrolled to the left.
|
|
35
|
+
*/
|
|
36
|
+
scrolledLeft: EventEmitter<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Emitted when the content is fully scrolled to the right.
|
|
39
|
+
*/
|
|
40
|
+
scrolledRight: EventEmitter<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Emitted when the content is fully scrolled to the bottom.
|
|
43
|
+
*/
|
|
44
|
+
scrolledBottom: EventEmitter<void>;
|
|
45
|
+
componentDidRender(): void;
|
|
46
|
+
componentDidLoad(): void;
|
|
47
|
+
disconnectedCallback(): void;
|
|
48
|
+
render(): any[];
|
|
49
|
+
private attachEmitter;
|
|
50
|
+
private getScrollOffset;
|
|
51
|
+
private toggleClass;
|
|
52
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeletons are used to show where content will eventually be drawn.
|
|
3
|
+
*/
|
|
4
|
+
export declare class CatSkeleton {
|
|
5
|
+
/**
|
|
6
|
+
* The animation style of the skeleton.
|
|
7
|
+
*/
|
|
8
|
+
effect: 'plain' | 'sheen' | 'pulse';
|
|
9
|
+
/**
|
|
10
|
+
* The rendering style of the skeleton.
|
|
11
|
+
*/
|
|
12
|
+
variant: 'rectangle' | 'square' | 'circle' | 'head' | 'body';
|
|
13
|
+
/**
|
|
14
|
+
* The size of the skeleton. If the variant is set to "head", the size values
|
|
15
|
+
* "xs" to "xl" translate to the head levels `h1` to `h5`.
|
|
16
|
+
*/
|
|
17
|
+
size: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
18
|
+
/**
|
|
19
|
+
* The number of text lines to be rendered for "head" and "body" variants.
|
|
20
|
+
* Defaults to 1 for "head" and 3 for "body". Will be ignored for other
|
|
21
|
+
* variants.
|
|
22
|
+
*/
|
|
23
|
+
lines?: number;
|
|
24
|
+
render(): any;
|
|
25
|
+
private get count();
|
|
26
|
+
private get style();
|
|
27
|
+
private random;
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spinners are used to indicate users that their action is being processed.
|
|
3
|
+
*/
|
|
4
|
+
export declare class CatSpinner {
|
|
5
|
+
/**
|
|
6
|
+
* The size of the spinner.
|
|
7
|
+
*/
|
|
8
|
+
size: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
9
|
+
/**
|
|
10
|
+
* Adds accessible label for the spinner that is only shown for screen
|
|
11
|
+
* readers. The `aria-hidden` attribute will be set if no label is present.
|
|
12
|
+
*/
|
|
13
|
+
a11yLabel?: string;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* Textarea specifies a control that allows user to write text over multiple
|
|
4
|
+
* rows. Used when the expected user input is long. For shorter input, use the
|
|
5
|
+
* input component.
|
|
6
|
+
*
|
|
7
|
+
* @part label - The label content.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CatTextarea {
|
|
10
|
+
private readonly id;
|
|
11
|
+
private textarea;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the textarea is disabled.
|
|
14
|
+
*/
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Optional hint text to be displayed with the textarea.
|
|
18
|
+
*/
|
|
19
|
+
hint?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The label for the textarea.
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
26
|
+
*/
|
|
27
|
+
labelHidden: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* A maximum length (number of characters) for textual values.
|
|
30
|
+
*/
|
|
31
|
+
maxLength?: number;
|
|
32
|
+
/**
|
|
33
|
+
* A minimum length (number of characters) for textual values.
|
|
34
|
+
*/
|
|
35
|
+
minLength?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* The placeholder text to display within the input.
|
|
42
|
+
*/
|
|
43
|
+
placeholder?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The value is not editable.
|
|
46
|
+
*/
|
|
47
|
+
readonly: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* A value is required or must be check for the form to be submittable.
|
|
50
|
+
*/
|
|
51
|
+
required: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the initial number of lines in the textarea.
|
|
54
|
+
*/
|
|
55
|
+
rows: number;
|
|
56
|
+
/**
|
|
57
|
+
* The initial value of the control.
|
|
58
|
+
*/
|
|
59
|
+
value?: string | number;
|
|
60
|
+
/**
|
|
61
|
+
* Emitted when the value is changed.
|
|
62
|
+
*/
|
|
63
|
+
catChange: EventEmitter;
|
|
64
|
+
/**
|
|
65
|
+
* Emitted when the textarea received focus.
|
|
66
|
+
*/
|
|
67
|
+
catFocus: EventEmitter<FocusEvent>;
|
|
68
|
+
/**
|
|
69
|
+
* Emitted when the textarea loses focus.
|
|
70
|
+
*/
|
|
71
|
+
catBlur: EventEmitter<FocusEvent>;
|
|
72
|
+
componentWillRender(): void;
|
|
73
|
+
componentDidLoad(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Sets focus on the textarea. Use this method instead of `textarea.focus()`.
|
|
76
|
+
*
|
|
77
|
+
* @param options An optional object providing options to control aspects of
|
|
78
|
+
* the focusing process.
|
|
79
|
+
*/
|
|
80
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
81
|
+
render(): any;
|
|
82
|
+
private onInput;
|
|
83
|
+
private onFocus;
|
|
84
|
+
private onBlur;
|
|
85
|
+
}
|