@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.
Files changed (169) hide show
  1. package/dist/catalyst/catalyst.css +1071 -0
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.cdn.js +6 -0
  5. package/dist/catalyst/index.esm.js +2 -2
  6. package/dist/catalyst/index.esm.js.map +1 -1
  7. package/dist/catalyst/p-ad5fca6b.entry.js +10 -0
  8. package/dist/catalyst/p-ad5fca6b.entry.js.map +1 -0
  9. package/dist/catalyst/p-d7dc291a.js +2 -0
  10. package/dist/catalyst/p-d7dc291a.js.map +1 -0
  11. package/dist/catalyst/scss/index.scss +2 -0
  12. package/dist/catalyst/scss/vendor/_flatpickr.scss +314 -0
  13. package/dist/cjs/{cat-alert_27.cjs.entry.js → cat-alert_25.cjs.entry.js} +2922 -3480
  14. package/dist/cjs/cat-alert_25.cjs.entry.js.map +1 -0
  15. package/dist/cjs/{cat-icon-registry-228164a1.js → cat-icon-registry-6161e2ee.js} +14 -2
  16. package/dist/cjs/cat-icon-registry-6161e2ee.js.map +1 -0
  17. package/dist/cjs/catalyst.cjs.js +1 -1
  18. package/dist/cjs/index.cjs.js +12 -14
  19. package/dist/cjs/index.cjs.js.map +1 -1
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/collection/collection-manifest.json +0 -2
  22. package/dist/collection/components/cat-avatar/cat-avatar.js +5 -5
  23. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  24. package/dist/collection/components/cat-button/cat-button.js +5 -7
  25. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  26. package/dist/collection/components/cat-checkbox/cat-checkbox.js +39 -42
  27. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  28. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js +22 -0
  29. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -0
  30. package/dist/collection/components/cat-datepicker/cat-datepicker.css +6 -369
  31. package/dist/collection/components/cat-datepicker/cat-datepicker.js +110 -314
  32. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  33. package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js +51 -0
  34. package/dist/collection/components/cat-datepicker/cat-datepicker.locale.js.map +1 -0
  35. package/dist/collection/components/cat-dropdown/cat-dropdown.js +6 -9
  36. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  37. package/dist/collection/components/cat-form-group/cat-form-group.js +4 -5
  38. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
  39. package/dist/collection/components/cat-form-hint/cat-form-hint.js +2 -6
  40. package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
  41. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +13 -1
  42. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
  43. package/dist/collection/components/cat-input/cat-input.css +0 -377
  44. package/dist/collection/components/cat-input/cat-input.js +14 -40
  45. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  46. package/dist/collection/components/cat-input/input-type.js.map +1 -1
  47. package/dist/collection/components/cat-notification/cat-notification.js +11 -13
  48. package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
  49. package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
  50. package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
  51. package/dist/collection/components/cat-radio/cat-radio.js +11 -36
  52. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  53. package/dist/collection/components/cat-radio-group/cat-radio-group.js +37 -11
  54. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  55. package/dist/collection/components/cat-scrollable/cat-scrollable.js +2 -3
  56. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  57. package/dist/collection/components/cat-select/cat-select.js +42 -53
  58. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  59. package/dist/collection/components/cat-select-demo/cat-select-demo.js +21 -25
  60. package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
  61. package/dist/collection/components/cat-tabs/cat-tabs.js +4 -7
  62. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  63. package/dist/collection/components/cat-textarea/cat-textarea.js +17 -21
  64. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  65. package/dist/collection/components/cat-toggle/cat-toggle.js +38 -41
  66. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  67. package/dist/collection/components/cat-tooltip/cat-tooltip.js +17 -22
  68. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  69. package/dist/collection/index.cdn.js +6 -0
  70. package/dist/collection/scss/index.scss +2 -0
  71. package/dist/collection/scss/vendor/_flatpickr.scss +314 -0
  72. package/dist/collection/utils/platform.js +1 -1
  73. package/dist/collection/utils/platform.js.map +1 -1
  74. package/dist/components/cat-avatar2.js +5 -5
  75. package/dist/components/cat-avatar2.js.map +1 -1
  76. package/dist/components/cat-button2.js +6 -8
  77. package/dist/components/cat-button2.js.map +1 -1
  78. package/dist/components/cat-checkbox2.js +14 -15
  79. package/dist/components/cat-checkbox2.js.map +1 -1
  80. package/dist/components/cat-datepicker.js +2725 -3028
  81. package/dist/components/cat-datepicker.js.map +1 -1
  82. package/dist/components/cat-dropdown2.js +6 -9
  83. package/dist/components/cat-dropdown2.js.map +1 -1
  84. package/dist/components/cat-form-group.js +4 -5
  85. package/dist/components/cat-form-group.js.map +1 -1
  86. package/dist/components/cat-form-hint.js +2 -6
  87. package/dist/components/cat-form-hint.js.map +1 -1
  88. package/dist/components/cat-i18n-registry.js +13 -1
  89. package/dist/components/cat-i18n-registry.js.map +1 -1
  90. package/dist/components/cat-input2.js +9 -16
  91. package/dist/components/cat-input2.js.map +1 -1
  92. package/dist/components/cat-pagination.js.map +1 -1
  93. package/dist/components/cat-radio-group.js +15 -9
  94. package/dist/components/cat-radio-group.js.map +1 -1
  95. package/dist/components/cat-radio.js +5 -12
  96. package/dist/components/cat-radio.js.map +1 -1
  97. package/dist/components/cat-scrollable2.js +2 -3
  98. package/dist/components/cat-scrollable2.js.map +1 -1
  99. package/dist/components/cat-select-demo.js +21 -25
  100. package/dist/components/cat-select-demo.js.map +1 -1
  101. package/dist/components/cat-select2.js +42 -53
  102. package/dist/components/cat-select2.js.map +1 -1
  103. package/dist/components/cat-tabs.js +4 -7
  104. package/dist/components/cat-tabs.js.map +1 -1
  105. package/dist/components/cat-textarea.js +11 -11
  106. package/dist/components/cat-textarea.js.map +1 -1
  107. package/dist/components/cat-toggle.js +14 -15
  108. package/dist/components/cat-toggle.js.map +1 -1
  109. package/dist/components/cat-tooltip.js +17 -22
  110. package/dist/components/cat-tooltip.js.map +1 -1
  111. package/dist/components/floating-ui.dom.esm.js +55 -68
  112. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  113. package/dist/components/index.js +11 -13
  114. package/dist/components/index.js.map +1 -1
  115. package/dist/esm/{cat-alert_27.entry.js → cat-alert_25.entry.js} +2922 -3478
  116. package/dist/esm/cat-alert_25.entry.js.map +1 -0
  117. package/dist/esm/{cat-icon-registry-4bd597f4.js → cat-icon-registry-f15b29d9.js} +14 -2
  118. package/dist/esm/cat-icon-registry-f15b29d9.js.map +1 -0
  119. package/dist/esm/catalyst.js +1 -1
  120. package/dist/esm/index.js +13 -15
  121. package/dist/esm/index.js.map +1 -1
  122. package/dist/esm/loader.js +1 -1
  123. package/dist/types/@types/Intl.d.ts +3 -0
  124. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +11 -9
  125. package/dist/types/components/cat-datepicker/cat-datepicker.config.d.ts +1 -0
  126. package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +21 -65
  127. package/dist/types/components/cat-datepicker/cat-datepicker.locale.d.ts +3 -0
  128. package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +3 -0
  129. package/dist/types/components/cat-input/cat-input.d.ts +2 -6
  130. package/dist/types/components/cat-input/input-type.d.ts +1 -1
  131. package/dist/types/components/cat-pagination/cat-pagination.d.ts +1 -1
  132. package/dist/types/components/cat-radio/cat-radio.d.ts +3 -7
  133. package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +6 -1
  134. package/dist/types/components/cat-textarea/cat-textarea.d.ts +4 -4
  135. package/dist/types/components/cat-toggle/cat-toggle.d.ts +10 -8
  136. package/dist/types/components.d.ts +83 -417
  137. package/package.json +8 -10
  138. package/dist/catalyst/p-34e0cbba.entry.js +0 -10
  139. package/dist/catalyst/p-34e0cbba.entry.js.map +0 -1
  140. package/dist/catalyst/p-cf32399c.js +0 -2
  141. package/dist/catalyst/p-cf32399c.js.map +0 -1
  142. package/dist/cjs/cat-alert_27.cjs.entry.js.map +0 -1
  143. package/dist/cjs/cat-icon-registry-228164a1.js.map +0 -1
  144. package/dist/collection/components/cat-datepicker/datepicker-type.js +0 -8
  145. package/dist/collection/components/cat-datepicker/datepicker-type.js.map +0 -1
  146. package/dist/collection/components/cat-datepicker/dayjs.config.js +0 -8
  147. package/dist/collection/components/cat-datepicker/dayjs.config.js.map +0 -1
  148. package/dist/collection/components/cat-datepicker/vanillajs-datepicker.config.js +0 -46
  149. package/dist/collection/components/cat-datepicker/vanillajs-datepicker.config.js.map +0 -1
  150. package/dist/collection/components/cat-label/cat-label.css +0 -22
  151. package/dist/collection/components/cat-label/cat-label.js +0 -134
  152. package/dist/collection/components/cat-label/cat-label.js.map +0 -1
  153. package/dist/collection/components/cat-timepicker/cat-timepicker.css +0 -5
  154. package/dist/collection/components/cat-timepicker/cat-timepicker.js +0 -668
  155. package/dist/collection/components/cat-timepicker/cat-timepicker.js.map +0 -1
  156. package/dist/components/cat-label.d.ts +0 -11
  157. package/dist/components/cat-label.js +0 -73
  158. package/dist/components/cat-label.js.map +0 -1
  159. package/dist/components/cat-timepicker.d.ts +0 -11
  160. package/dist/components/cat-timepicker.js +0 -258
  161. package/dist/components/cat-timepicker.js.map +0 -1
  162. package/dist/esm/cat-alert_27.entry.js.map +0 -1
  163. package/dist/esm/cat-icon-registry-4bd597f4.js.map +0 -1
  164. package/dist/types/components/cat-datepicker/datepicker-type.d.ts +0 -7
  165. package/dist/types/components/cat-datepicker/datepicker.d.ts +0 -1
  166. package/dist/types/components/cat-datepicker/dayjs.config.d.ts +0 -3
  167. package/dist/types/components/cat-datepicker/vanillajs-datepicker.config.d.ts +0 -4
  168. package/dist/types/components/cat-label/cat-label.d.ts +0 -27
  169. 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
- import { DatepickerType } from './datepicker-type';
4
- /**
5
- * Inputs are used to allow users to provide text input when the expected input
6
- * is short. As well as plain text, Input supports various types of text,
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 left.
36
+ * Display the icon on the right.
50
37
  */
51
- iconLeft: boolean;
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 for date, time and numeric values.
52
+ * A maximum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z.
66
53
  */
67
- max?: number | string;
54
+ max?: string;
68
55
  /**
69
- * A minimum value for date, time and numeric values.
56
+ * A minimum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z.
70
57
  */
71
- min?: number | string;
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 date format after picker selection.
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
- datesDisabled: Array<Date> | Array<string>;
90
+ step: number;
112
91
  /**
113
- * The value of the control.
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<InputEvent>;
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 input. Use this method instead of
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 input. Use this method instead of
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
  }
@@ -0,0 +1,3 @@
1
+ import { CustomLocale } from 'flatpickr/dist/types/locale';
2
+ export declare function getHour12(language: string): boolean;
3
+ export declare function getLocale(language: string): CustomLocale;
@@ -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 | number;
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<InputEvent>;
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 = 'button' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'month' | 'number' | 'password' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week';
1
+ export type InputType = 'color' | 'email' | 'file' | 'number' | 'password' | 'range' | 'search' | 'tel' | 'text' | 'url';
@@ -50,7 +50,7 @@ export declare class CatPagination {
50
50
  /**
51
51
  * Emitted when the page of the pagination has changed.
52
52
  */
53
- catChange: EventEmitter;
53
+ catChange: EventEmitter<number>;
54
54
  render(): any;
55
55
  get isFirst(): boolean;
56
56
  get isLast(): boolean;
@@ -45,7 +45,7 @@ export declare class CatRadio {
45
45
  /**
46
46
  * The value of the radio component.
47
47
  */
48
- value?: string;
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<InputEvent>;
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 onChange;
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<InputEvent>;
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 | number;
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<InputEvent>;
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
- * Programmatically simulate a click on the textarea.
130
+ * Clear the textarea.
131
131
  */
132
- doClick(): Promise<void>;
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 | boolean;
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<InputEvent>;
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
  }