@haiilo/catalyst 5.3.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 +1127 -39
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.cdn.js +7 -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-d1fb9d96.js → p-ce6a1db2.js} +1 -1
- package/dist/catalyst/p-ce6a1db2.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/_snippets/_checkbox-hint.scss +20 -0
- package/dist/catalyst/scss/index.scss +2 -0
- package/dist/catalyst/scss/utils/_border.scss +14 -0
- package/dist/catalyst/scss/utils/_media.mixins.scss +0 -1
- package/dist/catalyst/scss/utils/_typography.mixins.scss +1 -0
- package/dist/catalyst/scss/vendor/_flatpickr.scss +314 -0
- package/dist/cjs/cat-alert_25.cjs.entry.js +3391 -506
- package/dist/cjs/cat-alert_25.cjs.entry.js.map +1 -1
- package/dist/cjs/{cat-icon-registry-671af264.js → cat-icon-registry-6161e2ee.js} +56 -3
- package/dist/cjs/cat-icon-registry-6161e2ee.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +3 -3
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-01312a2e.js → index-4258b31e.js} +8 -1
- package/dist/{catalyst/p-d1fb9d96.js.map → cjs/index-4258b31e.js.map} +1 -1
- package/dist/cjs/index.cjs.js +13 -15
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/cat-alert/cat-alert.js +5 -5
- package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
- 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.css +7 -7
- package/dist/collection/components/cat-button/cat-button.js +11 -31
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +24 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +38 -37
- 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 +18 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +669 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -0
- 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.css +1 -0
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +18 -14
- 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-icon/cat-icon-registry.js +29 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +7 -11
- package/dist/collection/components/cat-input/cat-input.js +13 -35
- 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 +12 -14
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +28 -6
- package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.css +24 -1
- package/dist/collection/components/cat-radio/cat-radio.js +10 -31
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +40 -10
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.css +1 -4
- 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.css +8 -11
- package/dist/collection/components/cat-select/cat-select.js +76 -62
- 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-skeleton/cat-skeleton.css +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.css +9 -12
- package/dist/collection/components/cat-textarea/cat-textarea.js +16 -16
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.css +24 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +37 -36
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.css +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 +7 -0
- package/dist/collection/scss/_snippets/_checkbox-hint.scss +20 -0
- package/dist/collection/scss/index.scss +2 -0
- package/dist/collection/scss/utils/_border.scss +14 -0
- package/dist/collection/scss/utils/_media.mixins.scss +0 -1
- package/dist/collection/scss/utils/_typography.mixins.scss +1 -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-alert.js +5 -5
- package/dist/components/cat-alert.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 +13 -17
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox2.js +15 -16
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/{cat-label.d.ts → cat-datepicker.d.ts} +4 -4
- package/dist/components/cat-datepicker.js +2907 -0
- package/dist/components/cat-datepicker.js.map +1 -0
- package/dist/components/cat-dropdown2.js +188 -66
- 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-icon-registry.js +42 -1
- package/dist/components/cat-icon-registry.js.map +1 -1
- package/dist/components/cat-input.js +1 -226
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-input2.js +223 -0
- package/dist/components/cat-input2.js.map +1 -0
- package/dist/components/cat-pagination.js +10 -5
- 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 +6 -13
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +9 -8
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +23 -27
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +70 -60
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton2.js +1 -1
- package/dist/components/cat-skeleton2.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 +13 -13
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +15 -16
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +18 -23
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +119 -130
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.js +12 -14
- package/dist/components/index.js.map +1 -1
- package/dist/esm/cat-alert_25.entry.js +3391 -506
- package/dist/esm/cat-alert_25.entry.js.map +1 -1
- package/dist/esm/{cat-icon-registry-d6b80490.js → cat-icon-registry-f15b29d9.js} +56 -3
- package/dist/esm/cat-icon-registry-f15b29d9.js.map +1 -0
- package/dist/esm/catalyst.js +4 -4
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-fc2f91a4.js → index-636ce8d6.js} +8 -1
- package/dist/esm/index-636ce8d6.js.map +1 -0
- package/dist/esm/index.js +14 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/@types/Intl.d.ts +3 -0
- package/dist/types/components/cat-button/cat-button.d.ts +0 -5
- 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 +143 -0
- 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 +6 -0
- 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-select/cat-select.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 +298 -117
- package/package.json +21 -19
- package/dist/catalyst/p-ba081831.entry.js +0 -10
- package/dist/catalyst/p-ba081831.entry.js.map +0 -1
- package/dist/catalyst/p-ccfebe33.js +0 -2
- package/dist/catalyst/p-ccfebe33.js.map +0 -1
- package/dist/cjs/cat-icon-registry-671af264.js.map +0 -1
- package/dist/cjs/index-01312a2e.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/components/cat-label.js +0 -73
- package/dist/components/cat-label.js.map +0 -1
- package/dist/esm/cat-icon-registry-d6b80490.js.map +0 -1
- package/dist/esm/index-fc2f91a4.js.map +0 -1
- package/dist/types/components/cat-label/cat-label.d.ts +0 -27
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Breakpoint } from "./utils/breakpoints";
|
|
9
|
+
import { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
9
10
|
import { Placement } from "@floating-ui/dom";
|
|
10
11
|
import { InputType } from "./components/cat-input/input-type";
|
|
11
|
-
import { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
12
12
|
import { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue, Item } from "./components/cat-select/cat-select";
|
|
13
13
|
import { Observable } from "rxjs";
|
|
14
14
|
export { Breakpoint } from "./utils/breakpoints";
|
|
15
|
+
export { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
15
16
|
export { Placement } from "@floating-ui/dom";
|
|
16
17
|
export { InputType } from "./components/cat-input/input-type";
|
|
17
|
-
export { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
18
18
|
export { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue, Item } from "./components/cat-select/cat-select";
|
|
19
19
|
export { Observable } from "rxjs";
|
|
20
20
|
export namespace Components {
|
|
@@ -157,10 +157,6 @@ export namespace Components {
|
|
|
157
157
|
* Display the icon on the right.
|
|
158
158
|
*/
|
|
159
159
|
"iconRight": boolean;
|
|
160
|
-
/**
|
|
161
|
-
* The SVG source of an icon to be displayed in the button. This takes precenedence over the `icon` name.
|
|
162
|
-
*/
|
|
163
|
-
"iconSrc"?: string;
|
|
164
160
|
/**
|
|
165
161
|
* Displays the button in a loading state with a spinner. Just like a disabled button, an inactive button is unusable and un-clickable. However, it retains the current focus state.
|
|
166
162
|
*/
|
|
@@ -235,10 +231,6 @@ export namespace Components {
|
|
|
235
231
|
* Programmatically remove focus from the checkbox. Use this method instead of `input.blur()`.
|
|
236
232
|
*/
|
|
237
233
|
"doBlur": () => Promise<void>;
|
|
238
|
-
/**
|
|
239
|
-
* Programmatically simulate a click on the checkbox.
|
|
240
|
-
*/
|
|
241
|
-
"doClick": () => Promise<void>;
|
|
242
234
|
/**
|
|
243
235
|
* Programmatically move focus to the checkbox. Use this method instead of `input.focus()`.
|
|
244
236
|
* @param options An optional object providing options to control aspects of the focusing process.
|
|
@@ -269,7 +261,98 @@ export namespace Components {
|
|
|
269
261
|
*/
|
|
270
262
|
"labelLeft": boolean;
|
|
271
263
|
/**
|
|
272
|
-
* The name of the input
|
|
264
|
+
* The name of the input.
|
|
265
|
+
*/
|
|
266
|
+
"name"?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Attributes that will be added to the native HTML input element.
|
|
269
|
+
*/
|
|
270
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
271
|
+
/**
|
|
272
|
+
* Required state of the checkbox.
|
|
273
|
+
*/
|
|
274
|
+
"required": boolean;
|
|
275
|
+
/**
|
|
276
|
+
* The resolved value of the checkbox, based on the checked state and value.
|
|
277
|
+
*/
|
|
278
|
+
"resolvedValue": string | boolean | null;
|
|
279
|
+
/**
|
|
280
|
+
* The value of the checkbox.
|
|
281
|
+
*/
|
|
282
|
+
"value"?: string;
|
|
283
|
+
}
|
|
284
|
+
interface CatDatepicker {
|
|
285
|
+
/**
|
|
286
|
+
* Hint for form autofill feature.
|
|
287
|
+
*/
|
|
288
|
+
"autoComplete"?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Whether the input should show a clear button.
|
|
291
|
+
*/
|
|
292
|
+
"clearable": boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Whether the input is disabled.
|
|
295
|
+
*/
|
|
296
|
+
"disabled": boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Programmatically remove focus from the datepicker. Use this method instead of `input.blur()`.
|
|
299
|
+
*/
|
|
300
|
+
"doBlur": () => Promise<void>;
|
|
301
|
+
/**
|
|
302
|
+
* Programmatically move focus to the datepicker. Use this method instead of `input.focus()`.
|
|
303
|
+
* @param options An optional object providing options to control aspects of the focusing process.
|
|
304
|
+
*/
|
|
305
|
+
"doFocus": (options?: FocusOptions) => Promise<void>;
|
|
306
|
+
/**
|
|
307
|
+
* Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
|
|
308
|
+
*/
|
|
309
|
+
"errorUpdate": boolean | number;
|
|
310
|
+
/**
|
|
311
|
+
* The validation errors for this input. Will render a hint under the input with the translated error message(s) `error.${key}`. If an object is passed, the keys will be used as error keys and the values translation parameters. If the value is `true`, the input will be marked as invalid without any hints under the input.
|
|
312
|
+
*/
|
|
313
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
314
|
+
/**
|
|
315
|
+
* Optional hint text(s) to be displayed with the input.
|
|
316
|
+
*/
|
|
317
|
+
"hint"?: string | string[];
|
|
318
|
+
/**
|
|
319
|
+
* Whether the label is on top or left.
|
|
320
|
+
*/
|
|
321
|
+
"horizontal": boolean;
|
|
322
|
+
/**
|
|
323
|
+
* The name of an icon to be displayed in the input.
|
|
324
|
+
*/
|
|
325
|
+
"icon"?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Display the icon on the right.
|
|
328
|
+
*/
|
|
329
|
+
"iconRight": boolean;
|
|
330
|
+
/**
|
|
331
|
+
* A unique identifier for the input.
|
|
332
|
+
*/
|
|
333
|
+
"identifier"?: string;
|
|
334
|
+
/**
|
|
335
|
+
* The label for the input.
|
|
336
|
+
*/
|
|
337
|
+
"label": string;
|
|
338
|
+
/**
|
|
339
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
340
|
+
*/
|
|
341
|
+
"labelHidden": boolean;
|
|
342
|
+
/**
|
|
343
|
+
* A maximum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z.
|
|
344
|
+
*/
|
|
345
|
+
"max"?: string;
|
|
346
|
+
/**
|
|
347
|
+
* A minimum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z.
|
|
348
|
+
*/
|
|
349
|
+
"min"?: string;
|
|
350
|
+
/**
|
|
351
|
+
* The mode of the datepicker, to select a date, time, both, a date range or a week number.
|
|
352
|
+
*/
|
|
353
|
+
"mode": 'date' | 'time' | 'datetime' | 'daterange' | 'week';
|
|
354
|
+
/**
|
|
355
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
273
356
|
*/
|
|
274
357
|
"name"?: string;
|
|
275
358
|
/**
|
|
@@ -277,13 +360,37 @@ export namespace Components {
|
|
|
277
360
|
*/
|
|
278
361
|
"nativeAttributes"?: { [key: string]: string };
|
|
279
362
|
/**
|
|
280
|
-
*
|
|
363
|
+
* The placeholder text to display within the input.
|
|
364
|
+
*/
|
|
365
|
+
"placeholder"?: string;
|
|
366
|
+
/**
|
|
367
|
+
* The value is not editable.
|
|
368
|
+
*/
|
|
369
|
+
"readonly": boolean;
|
|
370
|
+
/**
|
|
371
|
+
* A value is required or must be check for the form to be submittable.
|
|
281
372
|
*/
|
|
282
373
|
"required": boolean;
|
|
283
374
|
/**
|
|
284
|
-
*
|
|
375
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
376
|
+
*/
|
|
377
|
+
"requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
378
|
+
/**
|
|
379
|
+
* The step size to use when changing the time.
|
|
380
|
+
*/
|
|
381
|
+
"step": number;
|
|
382
|
+
/**
|
|
383
|
+
* A textual prefix to be displayed in the input.
|
|
384
|
+
*/
|
|
385
|
+
"textPrefix"?: string;
|
|
386
|
+
/**
|
|
387
|
+
* A textual suffix to be displayed in the input.
|
|
388
|
+
*/
|
|
389
|
+
"textSuffix"?: string;
|
|
390
|
+
/**
|
|
391
|
+
* The value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z or as a week number string.
|
|
285
392
|
*/
|
|
286
|
-
"value"?: string
|
|
393
|
+
"value"?: string;
|
|
287
394
|
}
|
|
288
395
|
interface CatDropdown {
|
|
289
396
|
/**
|
|
@@ -365,10 +472,6 @@ export namespace Components {
|
|
|
365
472
|
* Programmatically remove focus from the input. Use this method instead of `input.blur()`.
|
|
366
473
|
*/
|
|
367
474
|
"doBlur": () => Promise<void>;
|
|
368
|
-
/**
|
|
369
|
-
* Programmatically simulate a click on the input.
|
|
370
|
-
*/
|
|
371
|
-
"doClick": () => Promise<void>;
|
|
372
475
|
/**
|
|
373
476
|
* Programmatically move focus to the input. Use this method instead of `input.focus()`.
|
|
374
477
|
* @param options An optional object providing options to control aspects of the focusing process.
|
|
@@ -469,29 +572,7 @@ export namespace Components {
|
|
|
469
572
|
/**
|
|
470
573
|
* The value of the control.
|
|
471
574
|
*/
|
|
472
|
-
"value"?: string
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Labels are used to provide a short description of an input or form element.
|
|
476
|
-
* @deprecated Use label attribute of form elements instead.
|
|
477
|
-
*/
|
|
478
|
-
interface CatLabel {
|
|
479
|
-
/**
|
|
480
|
-
* The unique identifier for a referenced input.
|
|
481
|
-
*/
|
|
482
|
-
"for"?: string;
|
|
483
|
-
/**
|
|
484
|
-
* Whether the label is on top or left.
|
|
485
|
-
*/
|
|
486
|
-
"horizontal": boolean;
|
|
487
|
-
/**
|
|
488
|
-
* A value is required or must be check for the form to be submittable.
|
|
489
|
-
*/
|
|
490
|
-
"required": boolean;
|
|
491
|
-
/**
|
|
492
|
-
* Whether the label need a marker to shown if the input is required or optional.
|
|
493
|
-
*/
|
|
494
|
-
"requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
575
|
+
"value"?: string;
|
|
495
576
|
}
|
|
496
577
|
/**
|
|
497
578
|
* A navigation component to switch between different pages of paged chunks of
|
|
@@ -559,10 +640,6 @@ export namespace Components {
|
|
|
559
640
|
* Programmatically remove focus from the radio button. Use this method instead of `input.blur()`.
|
|
560
641
|
*/
|
|
561
642
|
"doBlur": () => Promise<void>;
|
|
562
|
-
/**
|
|
563
|
-
* Programmatically simulate a click on the radio button.
|
|
564
|
-
*/
|
|
565
|
-
"doClick": () => Promise<void>;
|
|
566
643
|
/**
|
|
567
644
|
* Programmatically move focus to the radio button. Use this method instead of `input.focus()`.
|
|
568
645
|
* @param options An optional object providing options to control aspects of the focusing process.
|
|
@@ -603,7 +680,7 @@ export namespace Components {
|
|
|
603
680
|
/**
|
|
604
681
|
* The value of the radio component.
|
|
605
682
|
*/
|
|
606
|
-
"value"
|
|
683
|
+
"value": string;
|
|
607
684
|
}
|
|
608
685
|
/**
|
|
609
686
|
* A group of radio buttons.
|
|
@@ -848,6 +925,10 @@ export namespace Components {
|
|
|
848
925
|
* input component.
|
|
849
926
|
*/
|
|
850
927
|
interface CatTextarea {
|
|
928
|
+
/**
|
|
929
|
+
* Clear the textarea.
|
|
930
|
+
*/
|
|
931
|
+
"clear": () => Promise<void>;
|
|
851
932
|
/**
|
|
852
933
|
* Whether the textarea is disabled.
|
|
853
934
|
*/
|
|
@@ -856,10 +937,6 @@ export namespace Components {
|
|
|
856
937
|
* Programmatically remove focus from the textarea. Use this method instead of `textarea.blur()`.
|
|
857
938
|
*/
|
|
858
939
|
"doBlur": () => Promise<void>;
|
|
859
|
-
/**
|
|
860
|
-
* Programmatically simulate a click on the textarea.
|
|
861
|
-
*/
|
|
862
|
-
"doClick": () => Promise<void>;
|
|
863
940
|
/**
|
|
864
941
|
* Programmatically move focus to the textarea. Use this method instead of `textarea.focus()`.
|
|
865
942
|
* @param options An optional object providing options to control aspects of the focusing process.
|
|
@@ -932,7 +1009,7 @@ export namespace Components {
|
|
|
932
1009
|
/**
|
|
933
1010
|
* The initial value of the control.
|
|
934
1011
|
*/
|
|
935
|
-
"value"?: string
|
|
1012
|
+
"value"?: string;
|
|
936
1013
|
}
|
|
937
1014
|
/**
|
|
938
1015
|
* Toggles are graphical interface switches that give user control over a
|
|
@@ -951,10 +1028,6 @@ export namespace Components {
|
|
|
951
1028
|
* Programmatically remove focus from the toggle. Use this method instead of `input.blur()`.
|
|
952
1029
|
*/
|
|
953
1030
|
"doBlur": () => Promise<void>;
|
|
954
|
-
/**
|
|
955
|
-
* Programmatically simulate a click on the toggle.
|
|
956
|
-
*/
|
|
957
|
-
"doClick": () => Promise<void>;
|
|
958
1031
|
/**
|
|
959
1032
|
* Programmatically move focus to the toggle. Use this method instead of `input.focus()`.
|
|
960
1033
|
* @param options An optional object providing options to control aspects of the focusing process.
|
|
@@ -981,7 +1054,7 @@ export namespace Components {
|
|
|
981
1054
|
*/
|
|
982
1055
|
"labelLeft": boolean;
|
|
983
1056
|
/**
|
|
984
|
-
* The name of the input
|
|
1057
|
+
* The name of the input.
|
|
985
1058
|
*/
|
|
986
1059
|
"name"?: string;
|
|
987
1060
|
/**
|
|
@@ -993,9 +1066,13 @@ export namespace Components {
|
|
|
993
1066
|
*/
|
|
994
1067
|
"required": boolean;
|
|
995
1068
|
/**
|
|
996
|
-
* The value of the toggle
|
|
1069
|
+
* The resolved value of the toggle, based on the checked state and value.
|
|
997
1070
|
*/
|
|
998
|
-
"
|
|
1071
|
+
"resolvedValue": string | boolean | null;
|
|
1072
|
+
/**
|
|
1073
|
+
* The value of the toggle.
|
|
1074
|
+
*/
|
|
1075
|
+
"value"?: string;
|
|
999
1076
|
}
|
|
1000
1077
|
interface CatTooltip {
|
|
1001
1078
|
/**
|
|
@@ -1040,6 +1117,10 @@ export interface CatCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
1040
1117
|
detail: T;
|
|
1041
1118
|
target: HTMLCatCheckboxElement;
|
|
1042
1119
|
}
|
|
1120
|
+
export interface CatDatepickerCustomEvent<T> extends CustomEvent<T> {
|
|
1121
|
+
detail: T;
|
|
1122
|
+
target: HTMLCatDatepickerElement;
|
|
1123
|
+
}
|
|
1043
1124
|
export interface CatDropdownCustomEvent<T> extends CustomEvent<T> {
|
|
1044
1125
|
detail: T;
|
|
1045
1126
|
target: HTMLCatDropdownElement;
|
|
@@ -1048,6 +1129,10 @@ export interface CatInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
1048
1129
|
detail: T;
|
|
1049
1130
|
target: HTMLCatInputElement;
|
|
1050
1131
|
}
|
|
1132
|
+
export interface CatPaginationCustomEvent<T> extends CustomEvent<T> {
|
|
1133
|
+
detail: T;
|
|
1134
|
+
target: HTMLCatPaginationElement;
|
|
1135
|
+
}
|
|
1051
1136
|
export interface CatRadioCustomEvent<T> extends CustomEvent<T> {
|
|
1052
1137
|
detail: T;
|
|
1053
1138
|
target: HTMLCatRadioElement;
|
|
@@ -1142,6 +1227,12 @@ declare global {
|
|
|
1142
1227
|
prototype: HTMLCatCheckboxElement;
|
|
1143
1228
|
new (): HTMLCatCheckboxElement;
|
|
1144
1229
|
};
|
|
1230
|
+
interface HTMLCatDatepickerElement extends Components.CatDatepicker, HTMLStencilElement {
|
|
1231
|
+
}
|
|
1232
|
+
var HTMLCatDatepickerElement: {
|
|
1233
|
+
prototype: HTMLCatDatepickerElement;
|
|
1234
|
+
new (): HTMLCatDatepickerElement;
|
|
1235
|
+
};
|
|
1145
1236
|
interface HTMLCatDropdownElement extends Components.CatDropdown, HTMLStencilElement {
|
|
1146
1237
|
}
|
|
1147
1238
|
var HTMLCatDropdownElement: {
|
|
@@ -1175,16 +1266,6 @@ declare global {
|
|
|
1175
1266
|
prototype: HTMLCatInputElement;
|
|
1176
1267
|
new (): HTMLCatInputElement;
|
|
1177
1268
|
};
|
|
1178
|
-
/**
|
|
1179
|
-
* Labels are used to provide a short description of an input or form element.
|
|
1180
|
-
* @deprecated Use label attribute of form elements instead.
|
|
1181
|
-
*/
|
|
1182
|
-
interface HTMLCatLabelElement extends Components.CatLabel, HTMLStencilElement {
|
|
1183
|
-
}
|
|
1184
|
-
var HTMLCatLabelElement: {
|
|
1185
|
-
prototype: HTMLCatLabelElement;
|
|
1186
|
-
new (): HTMLCatLabelElement;
|
|
1187
|
-
};
|
|
1188
1269
|
/**
|
|
1189
1270
|
* A navigation component to switch between different pages of paged chunks of
|
|
1190
1271
|
* data such as a table. Pagination is built with list HTML elements and a
|
|
@@ -1315,11 +1396,11 @@ declare global {
|
|
|
1315
1396
|
"cat-button-group": HTMLCatButtonGroupElement;
|
|
1316
1397
|
"cat-card": HTMLCatCardElement;
|
|
1317
1398
|
"cat-checkbox": HTMLCatCheckboxElement;
|
|
1399
|
+
"cat-datepicker": HTMLCatDatepickerElement;
|
|
1318
1400
|
"cat-dropdown": HTMLCatDropdownElement;
|
|
1319
1401
|
"cat-form-group": HTMLCatFormGroupElement;
|
|
1320
1402
|
"cat-icon": HTMLCatIconElement;
|
|
1321
1403
|
"cat-input": HTMLCatInputElement;
|
|
1322
|
-
"cat-label": HTMLCatLabelElement;
|
|
1323
1404
|
"cat-pagination": HTMLCatPaginationElement;
|
|
1324
1405
|
"cat-radio": HTMLCatRadioElement;
|
|
1325
1406
|
"cat-radio-group": HTMLCatRadioGroupElement;
|
|
@@ -1462,10 +1543,6 @@ declare namespace LocalJSX {
|
|
|
1462
1543
|
* Display the icon on the right.
|
|
1463
1544
|
*/
|
|
1464
1545
|
"iconRight"?: boolean;
|
|
1465
|
-
/**
|
|
1466
|
-
* The SVG source of an icon to be displayed in the button. This takes precenedence over the `icon` name.
|
|
1467
|
-
*/
|
|
1468
|
-
"iconSrc"?: string;
|
|
1469
1546
|
/**
|
|
1470
1547
|
* Displays the button in a loading state with a spinner. Just like a disabled button, an inactive button is unusable and un-clickable. However, it retains the current focus state.
|
|
1471
1548
|
*/
|
|
@@ -1573,7 +1650,7 @@ declare namespace LocalJSX {
|
|
|
1573
1650
|
*/
|
|
1574
1651
|
"labelLeft"?: boolean;
|
|
1575
1652
|
/**
|
|
1576
|
-
* The name of the input
|
|
1653
|
+
* The name of the input.
|
|
1577
1654
|
*/
|
|
1578
1655
|
"name"?: string;
|
|
1579
1656
|
/**
|
|
@@ -1587,19 +1664,137 @@ declare namespace LocalJSX {
|
|
|
1587
1664
|
/**
|
|
1588
1665
|
* Emitted when the checked status of the checkbox is changed.
|
|
1589
1666
|
*/
|
|
1590
|
-
"onCatChange"?: (event: CatCheckboxCustomEvent<
|
|
1667
|
+
"onCatChange"?: (event: CatCheckboxCustomEvent<boolean | string | null>) => void;
|
|
1591
1668
|
/**
|
|
1592
1669
|
* Emitted when the checkbox received focus.
|
|
1593
1670
|
*/
|
|
1594
1671
|
"onCatFocus"?: (event: CatCheckboxCustomEvent<FocusEvent>) => void;
|
|
1595
1672
|
/**
|
|
1596
|
-
* Required state of the checkbox
|
|
1673
|
+
* Required state of the checkbox.
|
|
1597
1674
|
*/
|
|
1598
1675
|
"required"?: boolean;
|
|
1599
1676
|
/**
|
|
1600
|
-
* The value of the checkbox
|
|
1677
|
+
* The resolved value of the checkbox, based on the checked state and value.
|
|
1601
1678
|
*/
|
|
1602
|
-
"
|
|
1679
|
+
"resolvedValue"?: string | boolean | null;
|
|
1680
|
+
/**
|
|
1681
|
+
* The value of the checkbox.
|
|
1682
|
+
*/
|
|
1683
|
+
"value"?: string;
|
|
1684
|
+
}
|
|
1685
|
+
interface CatDatepicker {
|
|
1686
|
+
/**
|
|
1687
|
+
* Hint for form autofill feature.
|
|
1688
|
+
*/
|
|
1689
|
+
"autoComplete"?: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* Whether the input should show a clear button.
|
|
1692
|
+
*/
|
|
1693
|
+
"clearable"?: boolean;
|
|
1694
|
+
/**
|
|
1695
|
+
* Whether the input is disabled.
|
|
1696
|
+
*/
|
|
1697
|
+
"disabled"?: boolean;
|
|
1698
|
+
/**
|
|
1699
|
+
* Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
|
|
1700
|
+
*/
|
|
1701
|
+
"errorUpdate"?: boolean | number;
|
|
1702
|
+
/**
|
|
1703
|
+
* The validation errors for this input. Will render a hint under the input with the translated error message(s) `error.${key}`. If an object is passed, the keys will be used as error keys and the values translation parameters. If the value is `true`, the input will be marked as invalid without any hints under the input.
|
|
1704
|
+
*/
|
|
1705
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
1706
|
+
/**
|
|
1707
|
+
* Optional hint text(s) to be displayed with the input.
|
|
1708
|
+
*/
|
|
1709
|
+
"hint"?: string | string[];
|
|
1710
|
+
/**
|
|
1711
|
+
* Whether the label is on top or left.
|
|
1712
|
+
*/
|
|
1713
|
+
"horizontal"?: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* The name of an icon to be displayed in the input.
|
|
1716
|
+
*/
|
|
1717
|
+
"icon"?: string;
|
|
1718
|
+
/**
|
|
1719
|
+
* Display the icon on the right.
|
|
1720
|
+
*/
|
|
1721
|
+
"iconRight"?: boolean;
|
|
1722
|
+
/**
|
|
1723
|
+
* A unique identifier for the input.
|
|
1724
|
+
*/
|
|
1725
|
+
"identifier"?: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* The label for the input.
|
|
1728
|
+
*/
|
|
1729
|
+
"label"?: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
1732
|
+
*/
|
|
1733
|
+
"labelHidden"?: boolean;
|
|
1734
|
+
/**
|
|
1735
|
+
* A maximum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z.
|
|
1736
|
+
*/
|
|
1737
|
+
"max"?: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* A minimum value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z.
|
|
1740
|
+
*/
|
|
1741
|
+
"min"?: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* The mode of the datepicker, to select a date, time, both, a date range or a week number.
|
|
1744
|
+
*/
|
|
1745
|
+
"mode"?: 'date' | 'time' | 'datetime' | 'daterange' | 'week';
|
|
1746
|
+
/**
|
|
1747
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
1748
|
+
*/
|
|
1749
|
+
"name"?: string;
|
|
1750
|
+
/**
|
|
1751
|
+
* Attributes that will be added to the native HTML input element.
|
|
1752
|
+
*/
|
|
1753
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1754
|
+
/**
|
|
1755
|
+
* Emitted when the input loses focus.
|
|
1756
|
+
*/
|
|
1757
|
+
"onCatBlur"?: (event: CatDatepickerCustomEvent<FocusEvent>) => void;
|
|
1758
|
+
/**
|
|
1759
|
+
* Emitted when the value is changed.
|
|
1760
|
+
*/
|
|
1761
|
+
"onCatChange"?: (event: CatDatepickerCustomEvent<string>) => void;
|
|
1762
|
+
/**
|
|
1763
|
+
* Emitted when the input received focus.
|
|
1764
|
+
*/
|
|
1765
|
+
"onCatFocus"?: (event: CatDatepickerCustomEvent<FocusEvent>) => void;
|
|
1766
|
+
/**
|
|
1767
|
+
* The placeholder text to display within the input.
|
|
1768
|
+
*/
|
|
1769
|
+
"placeholder"?: string;
|
|
1770
|
+
/**
|
|
1771
|
+
* The value is not editable.
|
|
1772
|
+
*/
|
|
1773
|
+
"readonly"?: boolean;
|
|
1774
|
+
/**
|
|
1775
|
+
* A value is required or must be check for the form to be submittable.
|
|
1776
|
+
*/
|
|
1777
|
+
"required"?: boolean;
|
|
1778
|
+
/**
|
|
1779
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
1780
|
+
*/
|
|
1781
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1782
|
+
/**
|
|
1783
|
+
* The step size to use when changing the time.
|
|
1784
|
+
*/
|
|
1785
|
+
"step"?: number;
|
|
1786
|
+
/**
|
|
1787
|
+
* A textual prefix to be displayed in the input.
|
|
1788
|
+
*/
|
|
1789
|
+
"textPrefix"?: string;
|
|
1790
|
+
/**
|
|
1791
|
+
* A textual suffix to be displayed in the input.
|
|
1792
|
+
*/
|
|
1793
|
+
"textSuffix"?: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* The value as ISO Date string, e.g. 2017-03-04T01:23:43.000Z or as a week number string.
|
|
1796
|
+
*/
|
|
1797
|
+
"value"?: string;
|
|
1603
1798
|
}
|
|
1604
1799
|
interface CatDropdown {
|
|
1605
1800
|
/**
|
|
@@ -1744,7 +1939,7 @@ declare namespace LocalJSX {
|
|
|
1744
1939
|
/**
|
|
1745
1940
|
* Emitted when the value is changed.
|
|
1746
1941
|
*/
|
|
1747
|
-
"onCatChange"?: (event: CatInputCustomEvent<
|
|
1942
|
+
"onCatChange"?: (event: CatInputCustomEvent<string>) => void;
|
|
1748
1943
|
/**
|
|
1749
1944
|
* Emitted when the input received focus.
|
|
1750
1945
|
*/
|
|
@@ -1784,29 +1979,7 @@ declare namespace LocalJSX {
|
|
|
1784
1979
|
/**
|
|
1785
1980
|
* The value of the control.
|
|
1786
1981
|
*/
|
|
1787
|
-
"value"?: string
|
|
1788
|
-
}
|
|
1789
|
-
/**
|
|
1790
|
-
* Labels are used to provide a short description of an input or form element.
|
|
1791
|
-
* @deprecated Use label attribute of form elements instead.
|
|
1792
|
-
*/
|
|
1793
|
-
interface CatLabel {
|
|
1794
|
-
/**
|
|
1795
|
-
* The unique identifier for a referenced input.
|
|
1796
|
-
*/
|
|
1797
|
-
"for"?: string;
|
|
1798
|
-
/**
|
|
1799
|
-
* Whether the label is on top or left.
|
|
1800
|
-
*/
|
|
1801
|
-
"horizontal"?: boolean;
|
|
1802
|
-
/**
|
|
1803
|
-
* A value is required or must be check for the form to be submittable.
|
|
1804
|
-
*/
|
|
1805
|
-
"required"?: boolean;
|
|
1806
|
-
/**
|
|
1807
|
-
* Whether the label need a marker to shown if the input is required or optional.
|
|
1808
|
-
*/
|
|
1809
|
-
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1982
|
+
"value"?: string;
|
|
1810
1983
|
}
|
|
1811
1984
|
/**
|
|
1812
1985
|
* A navigation component to switch between different pages of paged chunks of
|
|
@@ -1832,6 +2005,10 @@ declare namespace LocalJSX {
|
|
|
1832
2005
|
* The icon of the "previous" button.
|
|
1833
2006
|
*/
|
|
1834
2007
|
"iconPrev"?: string;
|
|
2008
|
+
/**
|
|
2009
|
+
* Emitted when the page of the pagination has changed.
|
|
2010
|
+
*/
|
|
2011
|
+
"onCatChange"?: (event: CatPaginationCustomEvent<number>) => void;
|
|
1835
2012
|
/**
|
|
1836
2013
|
* The current page.
|
|
1837
2014
|
*/
|
|
@@ -1905,7 +2082,7 @@ declare namespace LocalJSX {
|
|
|
1905
2082
|
/**
|
|
1906
2083
|
* Emitted when the radio is changed.
|
|
1907
2084
|
*/
|
|
1908
|
-
"onCatChange"?: (event: CatRadioCustomEvent<
|
|
2085
|
+
"onCatChange"?: (event: CatRadioCustomEvent<boolean | string>) => void;
|
|
1909
2086
|
/**
|
|
1910
2087
|
* Emitted when the radio received focus.
|
|
1911
2088
|
*/
|
|
@@ -1946,7 +2123,11 @@ declare namespace LocalJSX {
|
|
|
1946
2123
|
/**
|
|
1947
2124
|
* Emitted when the value is changed.
|
|
1948
2125
|
*/
|
|
1949
|
-
"onCatChange"?: (event: CatRadioGroupCustomEvent<
|
|
2126
|
+
"onCatChange"?: (event: CatRadioGroupCustomEvent<boolean | string>) => void;
|
|
2127
|
+
/**
|
|
2128
|
+
* Emitted when the radio group received focus.
|
|
2129
|
+
*/
|
|
2130
|
+
"onCatFocus"?: (event: CatRadioGroupCustomEvent<FocusEvent>) => void;
|
|
1950
2131
|
/**
|
|
1951
2132
|
* The value of the radio group.
|
|
1952
2133
|
*/
|
|
@@ -2070,7 +2251,7 @@ declare namespace LocalJSX {
|
|
|
2070
2251
|
/**
|
|
2071
2252
|
* Emitted when the value is changed.
|
|
2072
2253
|
*/
|
|
2073
|
-
"onCatChange"?: (event: CatSelectCustomEvent<
|
|
2254
|
+
"onCatChange"?: (event: CatSelectCustomEvent<InputEvent>) => void;
|
|
2074
2255
|
/**
|
|
2075
2256
|
* Emitted when the select dropdown is closed.
|
|
2076
2257
|
*/
|
|
@@ -2256,7 +2437,7 @@ declare namespace LocalJSX {
|
|
|
2256
2437
|
/**
|
|
2257
2438
|
* Emitted when the value is changed.
|
|
2258
2439
|
*/
|
|
2259
|
-
"onCatChange"?: (event: CatTextareaCustomEvent<
|
|
2440
|
+
"onCatChange"?: (event: CatTextareaCustomEvent<string>) => void;
|
|
2260
2441
|
/**
|
|
2261
2442
|
* Emitted when the textarea received focus.
|
|
2262
2443
|
*/
|
|
@@ -2284,7 +2465,7 @@ declare namespace LocalJSX {
|
|
|
2284
2465
|
/**
|
|
2285
2466
|
* The initial value of the control.
|
|
2286
2467
|
*/
|
|
2287
|
-
"value"?: string
|
|
2468
|
+
"value"?: string;
|
|
2288
2469
|
}
|
|
2289
2470
|
/**
|
|
2290
2471
|
* Toggles are graphical interface switches that give user control over a
|
|
@@ -2320,7 +2501,7 @@ declare namespace LocalJSX {
|
|
|
2320
2501
|
*/
|
|
2321
2502
|
"labelLeft"?: boolean;
|
|
2322
2503
|
/**
|
|
2323
|
-
* The name of the input
|
|
2504
|
+
* The name of the input.
|
|
2324
2505
|
*/
|
|
2325
2506
|
"name"?: string;
|
|
2326
2507
|
/**
|
|
@@ -2334,7 +2515,7 @@ declare namespace LocalJSX {
|
|
|
2334
2515
|
/**
|
|
2335
2516
|
* Emitted when the checked status of the toggle is changed.
|
|
2336
2517
|
*/
|
|
2337
|
-
"onCatChange"?: (event: CatToggleCustomEvent<
|
|
2518
|
+
"onCatChange"?: (event: CatToggleCustomEvent<boolean | string | null>) => void;
|
|
2338
2519
|
/**
|
|
2339
2520
|
* Emitted when the toggle received focus.
|
|
2340
2521
|
*/
|
|
@@ -2344,9 +2525,13 @@ declare namespace LocalJSX {
|
|
|
2344
2525
|
*/
|
|
2345
2526
|
"required"?: boolean;
|
|
2346
2527
|
/**
|
|
2347
|
-
* The value of the toggle
|
|
2528
|
+
* The resolved value of the toggle, based on the checked state and value.
|
|
2348
2529
|
*/
|
|
2349
|
-
"
|
|
2530
|
+
"resolvedValue"?: string | boolean | null;
|
|
2531
|
+
/**
|
|
2532
|
+
* The value of the toggle.
|
|
2533
|
+
*/
|
|
2534
|
+
"value"?: string;
|
|
2350
2535
|
}
|
|
2351
2536
|
interface CatTooltip {
|
|
2352
2537
|
/**
|
|
@@ -2390,11 +2575,11 @@ declare namespace LocalJSX {
|
|
|
2390
2575
|
"cat-button-group": CatButtonGroup;
|
|
2391
2576
|
"cat-card": CatCard;
|
|
2392
2577
|
"cat-checkbox": CatCheckbox;
|
|
2578
|
+
"cat-datepicker": CatDatepicker;
|
|
2393
2579
|
"cat-dropdown": CatDropdown;
|
|
2394
2580
|
"cat-form-group": CatFormGroup;
|
|
2395
2581
|
"cat-icon": CatIcon;
|
|
2396
2582
|
"cat-input": CatInput;
|
|
2397
|
-
"cat-label": CatLabel;
|
|
2398
2583
|
"cat-pagination": CatPagination;
|
|
2399
2584
|
"cat-radio": CatRadio;
|
|
2400
2585
|
"cat-radio-group": CatRadioGroup;
|
|
@@ -2444,6 +2629,7 @@ declare module "@stencil/core" {
|
|
|
2444
2629
|
* number of options.
|
|
2445
2630
|
*/
|
|
2446
2631
|
"cat-checkbox": LocalJSX.CatCheckbox & JSXBase.HTMLAttributes<HTMLCatCheckboxElement>;
|
|
2632
|
+
"cat-datepicker": LocalJSX.CatDatepicker & JSXBase.HTMLAttributes<HTMLCatDatepickerElement>;
|
|
2447
2633
|
"cat-dropdown": LocalJSX.CatDropdown & JSXBase.HTMLAttributes<HTMLCatDropdownElement>;
|
|
2448
2634
|
"cat-form-group": LocalJSX.CatFormGroup & JSXBase.HTMLAttributes<HTMLCatFormGroupElement>;
|
|
2449
2635
|
/**
|
|
@@ -2457,11 +2643,6 @@ declare module "@stencil/core" {
|
|
|
2457
2643
|
* including passwords and numbers.
|
|
2458
2644
|
*/
|
|
2459
2645
|
"cat-input": LocalJSX.CatInput & JSXBase.HTMLAttributes<HTMLCatInputElement>;
|
|
2460
|
-
/**
|
|
2461
|
-
* Labels are used to provide a short description of an input or form element.
|
|
2462
|
-
* @deprecated Use label attribute of form elements instead.
|
|
2463
|
-
*/
|
|
2464
|
-
"cat-label": LocalJSX.CatLabel & JSXBase.HTMLAttributes<HTMLCatLabelElement>;
|
|
2465
2646
|
/**
|
|
2466
2647
|
* A navigation component to switch between different pages of paged chunks of
|
|
2467
2648
|
* data such as a table. Pagination is built with list HTML elements and a
|