@haiilo/catalyst 5.4.0 → 6.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/catalyst.css +1071 -0
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.cdn.js +6 -0
- package/dist/catalyst/index.esm.js +2 -2
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-ad5fca6b.entry.js +10 -0
- package/dist/catalyst/p-ad5fca6b.entry.js.map +1 -0
- package/dist/catalyst/p-d7dc291a.js +2 -0
- package/dist/catalyst/p-d7dc291a.js.map +1 -0
- package/dist/catalyst/scss/index.scss +2 -0
- package/dist/catalyst/scss/vendor/_flatpickr.scss +314 -0
- package/dist/cjs/{cat-alert_27.cjs.entry.js → cat-alert_25.cjs.entry.js} +2922 -3480
- package/dist/cjs/cat-alert_25.cjs.entry.js.map +1 -0
- package/dist/cjs/{cat-icon-registry-228164a1.js → cat-icon-registry-6161e2ee.js} +14 -2
- package/dist/cjs/cat-icon-registry-6161e2ee.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +12 -14
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/cat-avatar/cat-avatar.js +5 -5
- package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.js +5 -7
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +39 -42
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js +22 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.css +6 -369
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +110 -314
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js +51 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js.map +1 -0
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +6 -9
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.js +4 -5
- 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 +2 -6
- package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js +13 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +0 -377
- package/dist/collection/components/cat-input/cat-input.js +14 -40
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-input/input-type.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js +11 -13
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
- package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +11 -36
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +37 -11
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +2 -3
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.js +42 -53
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +21 -25
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +4 -7
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +17 -21
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +38 -41
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +17 -22
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/collection/index.cdn.js +6 -0
- package/dist/collection/scss/index.scss +2 -0
- package/dist/collection/scss/vendor/_flatpickr.scss +314 -0
- package/dist/collection/utils/platform.js +1 -1
- package/dist/collection/utils/platform.js.map +1 -1
- package/dist/components/cat-avatar2.js +5 -5
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-button2.js +6 -8
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox2.js +14 -15
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-datepicker.js +2725 -3028
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-dropdown2.js +6 -9
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +4 -5
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js +2 -6
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-i18n-registry.js +13 -1
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-input2.js +9 -16
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.js +15 -9
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +5 -12
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +2 -3
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +21 -25
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +42 -53
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-tabs.js +4 -7
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.js +11 -11
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +14 -15
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +17 -22
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +55 -68
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.js +11 -13
- package/dist/components/index.js.map +1 -1
- package/dist/esm/{cat-alert_27.entry.js → cat-alert_25.entry.js} +2922 -3478
- package/dist/esm/cat-alert_25.entry.js.map +1 -0
- package/dist/esm/{cat-icon-registry-4bd597f4.js → cat-icon-registry-f15b29d9.js} +14 -2
- package/dist/esm/cat-icon-registry-f15b29d9.js.map +1 -0
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/index.js +13 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/@types/Intl.d.ts +3 -0
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +11 -9
- package/dist/types/components/cat-datepicker/cat-datepicker.config.d.ts +1 -0
- package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +21 -65
- package/dist/types/components/cat-datepicker/cat-datepicker.locale.d.ts +3 -0
- package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +3 -0
- package/dist/types/components/cat-input/cat-input.d.ts +2 -6
- package/dist/types/components/cat-input/input-type.d.ts +1 -1
- package/dist/types/components/cat-pagination/cat-pagination.d.ts +1 -1
- package/dist/types/components/cat-radio/cat-radio.d.ts +3 -7
- package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +6 -1
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +4 -4
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +10 -8
- package/dist/types/components.d.ts +83 -417
- package/package.json +8 -10
- package/dist/catalyst/p-34e0cbba.entry.js +0 -10
- package/dist/catalyst/p-34e0cbba.entry.js.map +0 -1
- package/dist/catalyst/p-cf32399c.js +0 -2
- package/dist/catalyst/p-cf32399c.js.map +0 -1
- package/dist/cjs/cat-alert_27.cjs.entry.js.map +0 -1
- package/dist/cjs/cat-icon-registry-228164a1.js.map +0 -1
- package/dist/collection/components/cat-datepicker/datepicker-type.js +0 -8
- package/dist/collection/components/cat-datepicker/datepicker-type.js.map +0 -1
- package/dist/collection/components/cat-datepicker/dayjs.config.js +0 -8
- package/dist/collection/components/cat-datepicker/dayjs.config.js.map +0 -1
- package/dist/collection/components/cat-datepicker/vanillajs-datepicker.config.js +0 -46
- package/dist/collection/components/cat-datepicker/vanillajs-datepicker.config.js.map +0 -1
- package/dist/collection/components/cat-label/cat-label.css +0 -22
- package/dist/collection/components/cat-label/cat-label.js +0 -134
- package/dist/collection/components/cat-label/cat-label.js.map +0 -1
- package/dist/collection/components/cat-timepicker/cat-timepicker.css +0 -5
- package/dist/collection/components/cat-timepicker/cat-timepicker.js +0 -668
- package/dist/collection/components/cat-timepicker/cat-timepicker.js.map +0 -1
- package/dist/components/cat-label.d.ts +0 -11
- package/dist/components/cat-label.js +0 -73
- package/dist/components/cat-label.js.map +0 -1
- package/dist/components/cat-timepicker.d.ts +0 -11
- package/dist/components/cat-timepicker.js +0 -258
- package/dist/components/cat-timepicker.js.map +0 -1
- package/dist/esm/cat-alert_27.entry.js.map +0 -1
- package/dist/esm/cat-icon-registry-4bd597f4.js.map +0 -1
- package/dist/types/components/cat-datepicker/datepicker-type.d.ts +0 -7
- package/dist/types/components/cat-datepicker/datepicker.d.ts +0 -1
- package/dist/types/components/cat-datepicker/dayjs.config.d.ts +0 -3
- package/dist/types/components/cat-datepicker/vanillajs-datepicker.config.d.ts +0 -4
- package/dist/types/components/cat-label/cat-label.d.ts +0 -27
- package/dist/types/components/cat-timepicker/cat-timepicker.d.ts +0 -158
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { ErrorMap } from '../cat-form-hint/cat-form-hint';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* including passwords and numbers.
|
|
8
|
-
*
|
|
9
|
-
* @slot hint - Optional hint element to be displayed with the input.
|
|
10
|
-
* @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.
|
|
11
|
-
* @part label - The label content.
|
|
12
|
-
*/
|
|
13
|
-
export declare class CatDatepicker {
|
|
14
|
-
private input;
|
|
15
|
-
private catInput;
|
|
16
|
-
private datepicker;
|
|
17
|
-
hostElement: HTMLElement;
|
|
18
|
-
hasSlottedLabel: boolean;
|
|
19
|
-
hasSlottedHint: boolean;
|
|
3
|
+
export declare class CatDatepickerFlat {
|
|
4
|
+
private pickr?;
|
|
5
|
+
private _input?;
|
|
6
|
+
private get input();
|
|
20
7
|
/**
|
|
21
8
|
* Whether the label need a marker to shown if the input is required or optional.
|
|
22
9
|
*/
|
|
@@ -46,9 +33,9 @@ export declare class CatDatepicker {
|
|
|
46
33
|
*/
|
|
47
34
|
icon?: string;
|
|
48
35
|
/**
|
|
49
|
-
* Display the icon on the
|
|
36
|
+
* Display the icon on the right.
|
|
50
37
|
*/
|
|
51
|
-
|
|
38
|
+
iconRight: boolean;
|
|
52
39
|
/**
|
|
53
40
|
* A unique identifier for the input.
|
|
54
41
|
*/
|
|
@@ -62,13 +49,17 @@ export declare class CatDatepicker {
|
|
|
62
49
|
*/
|
|
63
50
|
labelHidden: boolean;
|
|
64
51
|
/**
|
|
65
|
-
* A maximum value
|
|
52
|
+
* A maximum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z.
|
|
66
53
|
*/
|
|
67
|
-
max?:
|
|
54
|
+
max?: string;
|
|
68
55
|
/**
|
|
69
|
-
* A minimum value
|
|
56
|
+
* A minimum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z.
|
|
70
57
|
*/
|
|
71
|
-
min?:
|
|
58
|
+
min?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The mode of the datepicker, to select a date, time, both, a date range or a week number.
|
|
61
|
+
*/
|
|
62
|
+
mode: 'date' | 'time' | 'datetime' | 'daterange' | 'week';
|
|
72
63
|
/**
|
|
73
64
|
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
74
65
|
*/
|
|
@@ -94,23 +85,11 @@ export declare class CatDatepicker {
|
|
|
94
85
|
*/
|
|
95
86
|
required: boolean;
|
|
96
87
|
/**
|
|
97
|
-
* The
|
|
98
|
-
*/
|
|
99
|
-
format: string;
|
|
100
|
-
/**
|
|
101
|
-
* Whether the picker should show the week numbers.
|
|
102
|
-
*/
|
|
103
|
-
weekNumbers: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Type of datepicker ('date', 'week', 'month', 'year').
|
|
106
|
-
*/
|
|
107
|
-
type: DatepickerType;
|
|
108
|
-
/**
|
|
109
|
-
* Dates that should be disabled inside the picker
|
|
88
|
+
* The step size to use when changing the time.
|
|
110
89
|
*/
|
|
111
|
-
|
|
90
|
+
step: number;
|
|
112
91
|
/**
|
|
113
|
-
* The value
|
|
92
|
+
* The value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z or as a week number string.
|
|
114
93
|
*/
|
|
115
94
|
value?: string;
|
|
116
95
|
/**
|
|
@@ -137,7 +116,7 @@ export declare class CatDatepicker {
|
|
|
137
116
|
/**
|
|
138
117
|
* Emitted when the value is changed.
|
|
139
118
|
*/
|
|
140
|
-
catChange: EventEmitter<
|
|
119
|
+
catChange: EventEmitter<string>;
|
|
141
120
|
/**
|
|
142
121
|
* Emitted when the input received focus.
|
|
143
122
|
*/
|
|
@@ -146,8 +125,9 @@ export declare class CatDatepicker {
|
|
|
146
125
|
* Emitted when the input loses focus.
|
|
147
126
|
*/
|
|
148
127
|
catBlur: EventEmitter<FocusEvent>;
|
|
128
|
+
componentDidLoad(): void;
|
|
149
129
|
/**
|
|
150
|
-
* Programmatically move focus to the
|
|
130
|
+
* Programmatically move focus to the datepicker. Use this method instead of
|
|
151
131
|
* `input.focus()`.
|
|
152
132
|
*
|
|
153
133
|
* @param options An optional object providing options to control aspects of
|
|
@@ -155,33 +135,9 @@ export declare class CatDatepicker {
|
|
|
155
135
|
*/
|
|
156
136
|
doFocus(options?: FocusOptions): Promise<void>;
|
|
157
137
|
/**
|
|
158
|
-
* Programmatically remove focus from the
|
|
138
|
+
* Programmatically remove focus from the datepicker. Use this method instead of
|
|
159
139
|
* `input.blur()`.
|
|
160
140
|
*/
|
|
161
141
|
doBlur(): Promise<void>;
|
|
162
|
-
/**
|
|
163
|
-
* Programmatically simulate a click on the input.
|
|
164
|
-
*/
|
|
165
|
-
doClick(): Promise<void>;
|
|
166
|
-
/**
|
|
167
|
-
* Clear the input.
|
|
168
|
-
*/
|
|
169
|
-
clear(): Promise<void>;
|
|
170
|
-
componentWillRender(): void;
|
|
171
142
|
render(): any;
|
|
172
|
-
componentDidLoad(): void;
|
|
173
|
-
disconnectedCallback(): void;
|
|
174
|
-
private handleDateChange;
|
|
175
|
-
private handleWeekDays;
|
|
176
|
-
private selectAllWeekDays;
|
|
177
|
-
private focusAllWeekDays;
|
|
178
|
-
private addClassToAllWeekDays;
|
|
179
|
-
private onCatChange;
|
|
180
|
-
private onCatFocus;
|
|
181
|
-
private onCatBlur;
|
|
182
|
-
private shouldHighlightAsToday;
|
|
183
|
-
private get dateFormat();
|
|
184
|
-
private fromISOWeek;
|
|
185
|
-
private fromISOWeekNumber;
|
|
186
|
-
private toISOWeek;
|
|
187
143
|
}
|
|
@@ -2,8 +2,11 @@ export declare class CatI18nRegistry {
|
|
|
2
2
|
private static instance;
|
|
3
3
|
private readonly id;
|
|
4
4
|
private readonly i18n;
|
|
5
|
+
private _locale?;
|
|
5
6
|
private constructor();
|
|
6
7
|
static getInstance(): CatI18nRegistry;
|
|
8
|
+
getLocale(): string;
|
|
9
|
+
setLocale(locale: string): void;
|
|
7
10
|
set(i18n: {
|
|
8
11
|
[key: string]: string;
|
|
9
12
|
}, silent?: boolean): void;
|
|
@@ -116,7 +116,7 @@ export declare class CatInput {
|
|
|
116
116
|
/**
|
|
117
117
|
* The value of the control.
|
|
118
118
|
*/
|
|
119
|
-
value?: string
|
|
119
|
+
value?: string;
|
|
120
120
|
/**
|
|
121
121
|
* The validation errors for this input. Will render a hint under the input
|
|
122
122
|
* with the translated error message(s) `error.${key}`. If an object is
|
|
@@ -141,7 +141,7 @@ export declare class CatInput {
|
|
|
141
141
|
/**
|
|
142
142
|
* Emitted when the value is changed.
|
|
143
143
|
*/
|
|
144
|
-
catChange: EventEmitter<
|
|
144
|
+
catChange: EventEmitter<string>;
|
|
145
145
|
/**
|
|
146
146
|
* Emitted when the input received focus.
|
|
147
147
|
*/
|
|
@@ -164,10 +164,6 @@ export declare class CatInput {
|
|
|
164
164
|
* `input.blur()`.
|
|
165
165
|
*/
|
|
166
166
|
doBlur(): Promise<void>;
|
|
167
|
-
/**
|
|
168
|
-
* Programmatically simulate a click on the input.
|
|
169
|
-
*/
|
|
170
|
-
doClick(): Promise<void>;
|
|
171
167
|
/**
|
|
172
168
|
* Clear the input.
|
|
173
169
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type InputType = '
|
|
1
|
+
export type InputType = 'color' | 'email' | 'file' | 'number' | 'password' | 'range' | 'search' | 'tel' | 'text' | 'url';
|
|
@@ -45,7 +45,7 @@ export declare class CatRadio {
|
|
|
45
45
|
/**
|
|
46
46
|
* The value of the radio component.
|
|
47
47
|
*/
|
|
48
|
-
value
|
|
48
|
+
value: string;
|
|
49
49
|
/**
|
|
50
50
|
* Optional hint text(s) to be displayed with the radio.
|
|
51
51
|
*/
|
|
@@ -63,7 +63,7 @@ export declare class CatRadio {
|
|
|
63
63
|
/**
|
|
64
64
|
* Emitted when the radio is changed.
|
|
65
65
|
*/
|
|
66
|
-
catChange: EventEmitter<
|
|
66
|
+
catChange: EventEmitter<boolean | string>;
|
|
67
67
|
/**
|
|
68
68
|
* Emitted when the radio received focus.
|
|
69
69
|
*/
|
|
@@ -86,12 +86,8 @@ export declare class CatRadio {
|
|
|
86
86
|
* instead of `input.blur()`.
|
|
87
87
|
*/
|
|
88
88
|
doBlur(): Promise<void>;
|
|
89
|
-
/**
|
|
90
|
-
* Programmatically simulate a click on the radio button.
|
|
91
|
-
*/
|
|
92
|
-
doClick(): Promise<void>;
|
|
93
89
|
render(): any;
|
|
94
|
-
private
|
|
90
|
+
private onInput;
|
|
95
91
|
private onFocus;
|
|
96
92
|
private onBlur;
|
|
97
93
|
}
|
|
@@ -29,7 +29,11 @@ export declare class CatRadioGroup {
|
|
|
29
29
|
/**
|
|
30
30
|
* Emitted when the value is changed.
|
|
31
31
|
*/
|
|
32
|
-
catChange: EventEmitter<
|
|
32
|
+
catChange: EventEmitter<boolean | string>;
|
|
33
|
+
/**
|
|
34
|
+
* Emitted when the radio group received focus.
|
|
35
|
+
*/
|
|
36
|
+
catFocus: EventEmitter<FocusEvent>;
|
|
33
37
|
/**
|
|
34
38
|
* Emitted when the radio group loses focus.
|
|
35
39
|
*/
|
|
@@ -41,6 +45,7 @@ export declare class CatRadioGroup {
|
|
|
41
45
|
componentDidLoad(): void;
|
|
42
46
|
onKeydown(event: KeyboardEvent): void;
|
|
43
47
|
onInput(event: MouseEvent): void;
|
|
48
|
+
onFocus(event: FocusEvent): void;
|
|
44
49
|
onBlur(event: FocusEvent): void;
|
|
45
50
|
render(): any;
|
|
46
51
|
private updateTabIndex;
|
|
@@ -77,7 +77,7 @@ export declare class CatTextarea {
|
|
|
77
77
|
/**
|
|
78
78
|
* The initial value of the control.
|
|
79
79
|
*/
|
|
80
|
-
value?: string
|
|
80
|
+
value?: string;
|
|
81
81
|
/**
|
|
82
82
|
* The validation errors for this input. Will render a hint under the input
|
|
83
83
|
* with the translated error message(s) `error.${key}`. If an object is
|
|
@@ -102,7 +102,7 @@ export declare class CatTextarea {
|
|
|
102
102
|
/**
|
|
103
103
|
* Emitted when the value is changed.
|
|
104
104
|
*/
|
|
105
|
-
catChange: EventEmitter<
|
|
105
|
+
catChange: EventEmitter<string>;
|
|
106
106
|
/**
|
|
107
107
|
* Emitted when the textarea received focus.
|
|
108
108
|
*/
|
|
@@ -127,9 +127,9 @@ export declare class CatTextarea {
|
|
|
127
127
|
*/
|
|
128
128
|
doBlur(): Promise<void>;
|
|
129
129
|
/**
|
|
130
|
-
*
|
|
130
|
+
* Clear the textarea.
|
|
131
131
|
*/
|
|
132
|
-
|
|
132
|
+
clear(): Promise<void>;
|
|
133
133
|
watchErrorsHandler(value?: boolean | string[] | ErrorMap): void;
|
|
134
134
|
render(): any;
|
|
135
135
|
private get invalid();
|
|
@@ -36,7 +36,7 @@ export declare class CatToggle {
|
|
|
36
36
|
*/
|
|
37
37
|
labelHidden: boolean;
|
|
38
38
|
/**
|
|
39
|
-
* The name of the input
|
|
39
|
+
* The name of the input.
|
|
40
40
|
*/
|
|
41
41
|
name?: string;
|
|
42
42
|
/**
|
|
@@ -44,9 +44,13 @@ export declare class CatToggle {
|
|
|
44
44
|
*/
|
|
45
45
|
required: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* The value of the toggle
|
|
47
|
+
* The value of the toggle.
|
|
48
48
|
*/
|
|
49
|
-
value?: string
|
|
49
|
+
value?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The resolved value of the toggle, based on the checked state and value.
|
|
52
|
+
*/
|
|
53
|
+
resolvedValue: string | boolean | null;
|
|
50
54
|
/**
|
|
51
55
|
* Optional hint text(s) to be displayed with the toggle.
|
|
52
56
|
*/
|
|
@@ -64,7 +68,7 @@ export declare class CatToggle {
|
|
|
64
68
|
/**
|
|
65
69
|
* Emitted when the checked status of the toggle is changed.
|
|
66
70
|
*/
|
|
67
|
-
catChange: EventEmitter<
|
|
71
|
+
catChange: EventEmitter<boolean | string | null>;
|
|
68
72
|
/**
|
|
69
73
|
* Emitted when the toggle received focus.
|
|
70
74
|
*/
|
|
@@ -73,6 +77,7 @@ export declare class CatToggle {
|
|
|
73
77
|
* Emitted when the toggle loses focus.
|
|
74
78
|
*/
|
|
75
79
|
catBlur: EventEmitter<FocusEvent>;
|
|
80
|
+
componentWillLoad(): void;
|
|
76
81
|
componentWillRender(): void;
|
|
77
82
|
/**
|
|
78
83
|
* Programmatically move focus to the toggle. Use this method instead of
|
|
@@ -87,12 +92,9 @@ export declare class CatToggle {
|
|
|
87
92
|
* `input.blur()`.
|
|
88
93
|
*/
|
|
89
94
|
doBlur(): Promise<void>;
|
|
90
|
-
/**
|
|
91
|
-
* Programmatically simulate a click on the toggle.
|
|
92
|
-
*/
|
|
93
|
-
doClick(): Promise<void>;
|
|
94
95
|
render(): any;
|
|
95
96
|
private onInput;
|
|
96
97
|
private onFocus;
|
|
97
98
|
private onBlur;
|
|
99
|
+
private updateResolved;
|
|
98
100
|
}
|