@haiilo/catalyst 5.3.0 → 5.4.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 +56 -39
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.cdn.js +1 -0
- package/dist/catalyst/index.esm.js +2 -2
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-34e0cbba.entry.js +10 -0
- package/dist/catalyst/p-34e0cbba.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-cf32399c.js +2 -0
- package/dist/catalyst/p-cf32399c.js.map +1 -0
- package/dist/catalyst/scss/_snippets/_checkbox-hint.scss +20 -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/cjs/{cat-alert_25.cjs.entry.js → cat-alert_27.cjs.entry.js} +3628 -185
- package/dist/cjs/cat-alert_27.cjs.entry.js.map +1 -0
- package/dist/cjs/{cat-icon-registry-671af264.js → cat-icon-registry-228164a1.js} +43 -2
- package/dist/cjs/cat-icon-registry-228164a1.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 +2 -2
- 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 +4 -2
- 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-button/cat-button.css +7 -7
- package/dist/collection/components/cat-button/cat-button.js +6 -24
- 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 +8 -4
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.css +381 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +873 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -0
- package/dist/collection/components/cat-datepicker/datepicker-type.js +8 -0
- package/dist/collection/components/cat-datepicker/datepicker-type.js.map +1 -0
- package/dist/collection/components/cat-datepicker/dayjs.config.js +8 -0
- package/dist/collection/components/cat-datepicker/dayjs.config.js.map +1 -0
- package/dist/collection/components/cat-datepicker/vanillajs-datepicker.config.js +46 -0
- package/dist/collection/components/cat-datepicker/vanillajs-datepicker.config.js.map +1 -0
- package/dist/collection/components/cat-dropdown/cat-dropdown.css +1 -0
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +12 -5
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.js +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.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 +384 -11
- package/dist/collection/components/cat-input/cat-input.js +8 -4
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +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 +8 -4
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +7 -3
- 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-select/cat-select.css +8 -11
- package/dist/collection/components/cat-select/cat-select.js +43 -18
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.css +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.css +9 -12
- package/dist/collection/components/cat-textarea/cat-textarea.js +8 -4
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-timepicker/cat-timepicker.css +5 -0
- package/dist/collection/components/cat-timepicker/cat-timepicker.js +668 -0
- package/dist/collection/components/cat-timepicker/cat-timepicker.js.map +1 -0
- package/dist/collection/components/cat-toggle/cat-toggle.css +24 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +8 -4
- 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/index.cdn.js +1 -0
- package/dist/collection/scss/_snippets/_checkbox-hint.scss +20 -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/components/cat-alert.js +5 -5
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-button2.js +7 -9
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox2.js +2 -2
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-datepicker.d.ts +11 -0
- package/dist/components/cat-datepicker.js +3210 -0
- package/dist/components/cat-datepicker.js.map +1 -0
- package/dist/components/cat-dropdown2.js +182 -57
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +1 -1
- package/dist/components/cat-form-group.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 +230 -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.map +1 -1
- package/dist/components/cat-radio.js +2 -2
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +7 -5
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +2 -2
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +37 -16
- 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-textarea.js +3 -3
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-timepicker.d.ts +11 -0
- package/dist/components/cat-timepicker.js +258 -0
- package/dist/components/cat-timepicker.js.map +1 -0
- package/dist/components/cat-toggle.js +2 -2
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +1 -1
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +64 -62
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/esm/{cat-alert_25.entry.js → cat-alert_27.entry.js} +3627 -186
- package/dist/esm/cat-alert_27.entry.js.map +1 -0
- package/dist/esm/{cat-icon-registry-d6b80490.js → cat-icon-registry-4bd597f4.js} +43 -2
- package/dist/esm/cat-icon-registry-4bd597f4.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 +3 -3
- 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/components/cat-button/cat-button.d.ts +0 -5
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -1
- package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +187 -0
- package/dist/types/components/cat-datepicker/datepicker-type.d.ts +7 -0
- package/dist/types/components/cat-datepicker/datepicker.d.ts +1 -0
- package/dist/types/components/cat-datepicker/dayjs.config.d.ts +3 -0
- package/dist/types/components/cat-datepicker/vanillajs-datepicker.config.d.ts +4 -0
- package/dist/types/components/cat-input/cat-input.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 +1 -1
- package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +1 -1
- package/dist/types/components/cat-select/cat-select.d.ts +6 -1
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +1 -1
- package/dist/types/components/cat-timepicker/cat-timepicker.d.ts +158 -0
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -1
- package/dist/types/components.d.ts +532 -17
- package/package.json +22 -18
- 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-alert_25.cjs.entry.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/esm/cat-alert_25.entry.js.map +0 -1
- package/dist/esm/cat-icon-registry-d6b80490.js.map +0 -1
- package/dist/esm/index-fc2f91a4.js.map +0 -1
|
@@ -6,17 +6,21 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Breakpoint } from "./utils/breakpoints";
|
|
9
|
+
import { DatepickerType } from "./components/cat-datepicker/datepicker-type";
|
|
10
|
+
import { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
9
11
|
import { Placement } from "@floating-ui/dom";
|
|
10
12
|
import { InputType } from "./components/cat-input/input-type";
|
|
11
|
-
import { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
12
13
|
import { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue, Item } from "./components/cat-select/cat-select";
|
|
13
14
|
import { Observable } from "rxjs";
|
|
15
|
+
import { CatSelectMultipleTaggingValue as CatSelectMultipleTaggingValue1, CatSelectTaggingValue as CatSelectTaggingValue1 } from "./components/cat-select/cat-select";
|
|
14
16
|
export { Breakpoint } from "./utils/breakpoints";
|
|
17
|
+
export { DatepickerType } from "./components/cat-datepicker/datepicker-type";
|
|
18
|
+
export { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
15
19
|
export { Placement } from "@floating-ui/dom";
|
|
16
20
|
export { InputType } from "./components/cat-input/input-type";
|
|
17
|
-
export { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
18
21
|
export { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue, Item } from "./components/cat-select/cat-select";
|
|
19
22
|
export { Observable } from "rxjs";
|
|
23
|
+
export { CatSelectMultipleTaggingValue as CatSelectMultipleTaggingValue1, CatSelectTaggingValue as CatSelectTaggingValue1 } from "./components/cat-select/cat-select";
|
|
20
24
|
export namespace Components {
|
|
21
25
|
/**
|
|
22
26
|
* Informs user about important changes or conditions in the interface. Use this
|
|
@@ -157,10 +161,6 @@ export namespace Components {
|
|
|
157
161
|
* Display the icon on the right.
|
|
158
162
|
*/
|
|
159
163
|
"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
164
|
/**
|
|
165
165
|
* 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
166
|
*/
|
|
@@ -285,6 +285,138 @@ export namespace Components {
|
|
|
285
285
|
*/
|
|
286
286
|
"value"?: string | boolean;
|
|
287
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
290
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
291
|
+
* including passwords and numbers.
|
|
292
|
+
*/
|
|
293
|
+
interface CatDatepicker {
|
|
294
|
+
/**
|
|
295
|
+
* Hint for form autofill feature.
|
|
296
|
+
*/
|
|
297
|
+
"autoComplete"?: string;
|
|
298
|
+
/**
|
|
299
|
+
* Clear the input.
|
|
300
|
+
*/
|
|
301
|
+
"clear": () => Promise<void>;
|
|
302
|
+
/**
|
|
303
|
+
* Whether the input should show a clear button.
|
|
304
|
+
*/
|
|
305
|
+
"clearable": boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Dates that should be disabled inside the picker
|
|
308
|
+
*/
|
|
309
|
+
"datesDisabled": Array<Date> | Array<string>;
|
|
310
|
+
/**
|
|
311
|
+
* Whether the input is disabled.
|
|
312
|
+
*/
|
|
313
|
+
"disabled": boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Programmatically remove focus from the input. Use this method instead of `input.blur()`.
|
|
316
|
+
*/
|
|
317
|
+
"doBlur": () => Promise<void>;
|
|
318
|
+
/**
|
|
319
|
+
* Programmatically simulate a click on the input.
|
|
320
|
+
*/
|
|
321
|
+
"doClick": () => Promise<void>;
|
|
322
|
+
/**
|
|
323
|
+
* Programmatically move focus to the input. Use this method instead of `input.focus()`.
|
|
324
|
+
* @param options An optional object providing options to control aspects of the focusing process.
|
|
325
|
+
*/
|
|
326
|
+
"doFocus": (options?: FocusOptions) => Promise<void>;
|
|
327
|
+
/**
|
|
328
|
+
* 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.
|
|
329
|
+
*/
|
|
330
|
+
"errorUpdate": boolean | number;
|
|
331
|
+
/**
|
|
332
|
+
* 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.
|
|
333
|
+
*/
|
|
334
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
335
|
+
/**
|
|
336
|
+
* The date format after picker selection.
|
|
337
|
+
*/
|
|
338
|
+
"format": string;
|
|
339
|
+
/**
|
|
340
|
+
* Optional hint text(s) to be displayed with the input.
|
|
341
|
+
*/
|
|
342
|
+
"hint"?: string | string[];
|
|
343
|
+
/**
|
|
344
|
+
* Whether the label is on top or left.
|
|
345
|
+
*/
|
|
346
|
+
"horizontal": boolean;
|
|
347
|
+
/**
|
|
348
|
+
* The name of an icon to be displayed in the input.
|
|
349
|
+
*/
|
|
350
|
+
"icon"?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Display the icon on the left.
|
|
353
|
+
*/
|
|
354
|
+
"iconLeft": boolean;
|
|
355
|
+
/**
|
|
356
|
+
* A unique identifier for the input.
|
|
357
|
+
*/
|
|
358
|
+
"identifier"?: string;
|
|
359
|
+
/**
|
|
360
|
+
* The label for the input.
|
|
361
|
+
*/
|
|
362
|
+
"label": string;
|
|
363
|
+
/**
|
|
364
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
365
|
+
*/
|
|
366
|
+
"labelHidden": boolean;
|
|
367
|
+
/**
|
|
368
|
+
* A maximum value for date, time and numeric values.
|
|
369
|
+
*/
|
|
370
|
+
"max"?: number | string;
|
|
371
|
+
/**
|
|
372
|
+
* A minimum value for date, time and numeric values.
|
|
373
|
+
*/
|
|
374
|
+
"min"?: number | string;
|
|
375
|
+
/**
|
|
376
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
377
|
+
*/
|
|
378
|
+
"name"?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Attributes that will be added to the native HTML input element.
|
|
381
|
+
*/
|
|
382
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
383
|
+
/**
|
|
384
|
+
* The placeholder text to display within the input.
|
|
385
|
+
*/
|
|
386
|
+
"placeholder"?: string;
|
|
387
|
+
/**
|
|
388
|
+
* The value is not editable.
|
|
389
|
+
*/
|
|
390
|
+
"readonly": boolean;
|
|
391
|
+
/**
|
|
392
|
+
* A value is required or must be check for the form to be submittable.
|
|
393
|
+
*/
|
|
394
|
+
"required": boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
397
|
+
*/
|
|
398
|
+
"requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
399
|
+
/**
|
|
400
|
+
* A textual prefix to be displayed in the input.
|
|
401
|
+
*/
|
|
402
|
+
"textPrefix"?: string;
|
|
403
|
+
/**
|
|
404
|
+
* A textual suffix to be displayed in the input.
|
|
405
|
+
*/
|
|
406
|
+
"textSuffix"?: string;
|
|
407
|
+
/**
|
|
408
|
+
* Type of datepicker ('date', 'week', 'month', 'year').
|
|
409
|
+
*/
|
|
410
|
+
"type": DatepickerType;
|
|
411
|
+
/**
|
|
412
|
+
* The value of the control.
|
|
413
|
+
*/
|
|
414
|
+
"value"?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Whether the picker should show the week numbers.
|
|
417
|
+
*/
|
|
418
|
+
"weekNumbers": boolean;
|
|
419
|
+
}
|
|
288
420
|
interface CatDropdown {
|
|
289
421
|
/**
|
|
290
422
|
* Closes the dropdown.
|
|
@@ -934,6 +1066,101 @@ export namespace Components {
|
|
|
934
1066
|
*/
|
|
935
1067
|
"value"?: string | number;
|
|
936
1068
|
}
|
|
1069
|
+
/**
|
|
1070
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
1071
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
1072
|
+
* including passwords and numbers.
|
|
1073
|
+
*/
|
|
1074
|
+
interface CatTimepicker {
|
|
1075
|
+
/**
|
|
1076
|
+
* Whether the select should show a clear button.
|
|
1077
|
+
*/
|
|
1078
|
+
"clearable": boolean;
|
|
1079
|
+
/**
|
|
1080
|
+
* Whether the input is disabled.
|
|
1081
|
+
*/
|
|
1082
|
+
"disabled": boolean;
|
|
1083
|
+
/**
|
|
1084
|
+
* 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.
|
|
1085
|
+
*/
|
|
1086
|
+
"errorUpdate": boolean | number;
|
|
1087
|
+
/**
|
|
1088
|
+
* 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.
|
|
1089
|
+
*/
|
|
1090
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
1091
|
+
/**
|
|
1092
|
+
* Optional hint text(s) to be displayed with the input.
|
|
1093
|
+
*/
|
|
1094
|
+
"hint"?: string | string[];
|
|
1095
|
+
/**
|
|
1096
|
+
* Whether the label is on top or left.
|
|
1097
|
+
*/
|
|
1098
|
+
"horizontal": boolean;
|
|
1099
|
+
/**
|
|
1100
|
+
* Attributes that will be added to the native HTML input element.
|
|
1101
|
+
*/
|
|
1102
|
+
"hourShort": boolean;
|
|
1103
|
+
/**
|
|
1104
|
+
* A unique identifier for the input.
|
|
1105
|
+
*/
|
|
1106
|
+
"identifier"?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* The label for the input.
|
|
1109
|
+
*/
|
|
1110
|
+
"label": string;
|
|
1111
|
+
/**
|
|
1112
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
1113
|
+
*/
|
|
1114
|
+
"labelHidden": boolean;
|
|
1115
|
+
/**
|
|
1116
|
+
* A maximum value for date, time and numeric values.
|
|
1117
|
+
*/
|
|
1118
|
+
"max"?: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* A minimum value for date, time and numeric values.
|
|
1121
|
+
*/
|
|
1122
|
+
"min"?: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* Attributes that will be added to the native HTML input element.
|
|
1125
|
+
*/
|
|
1126
|
+
"minutesStep": number;
|
|
1127
|
+
/**
|
|
1128
|
+
* Enable multiple selection.
|
|
1129
|
+
*/
|
|
1130
|
+
"multiple": boolean;
|
|
1131
|
+
/**
|
|
1132
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
1133
|
+
*/
|
|
1134
|
+
"name"?: string;
|
|
1135
|
+
/**
|
|
1136
|
+
* Attributes that will be added to the native HTML input element.
|
|
1137
|
+
*/
|
|
1138
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1139
|
+
/**
|
|
1140
|
+
* The text to display in the dropdown if no results are found.
|
|
1141
|
+
*/
|
|
1142
|
+
"noItems"?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* The placeholder text to display within the select.
|
|
1145
|
+
*/
|
|
1146
|
+
"placeholder"?: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* The placement of the select.
|
|
1149
|
+
*/
|
|
1150
|
+
"placement": Placement;
|
|
1151
|
+
/**
|
|
1152
|
+
* A value is required or must be checked for the form to be submittable.
|
|
1153
|
+
*/
|
|
1154
|
+
"required": boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
1157
|
+
*/
|
|
1158
|
+
"requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1159
|
+
/**
|
|
1160
|
+
* The value of the select. <br /> <br /> The value of the select depends on whether it is allowed to choose a single item or several items. <br /> When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br /> <br /> In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item, in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
|
|
1161
|
+
*/
|
|
1162
|
+
"value"?: string | string[] | CatSelectTaggingValue1 | CatSelectMultipleTaggingValue1;
|
|
1163
|
+
}
|
|
937
1164
|
/**
|
|
938
1165
|
* Toggles are graphical interface switches that give user control over a
|
|
939
1166
|
* feature or option that can be turned on or off.
|
|
@@ -1040,6 +1267,10 @@ export interface CatCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
1040
1267
|
detail: T;
|
|
1041
1268
|
target: HTMLCatCheckboxElement;
|
|
1042
1269
|
}
|
|
1270
|
+
export interface CatDatepickerCustomEvent<T> extends CustomEvent<T> {
|
|
1271
|
+
detail: T;
|
|
1272
|
+
target: HTMLCatDatepickerElement;
|
|
1273
|
+
}
|
|
1043
1274
|
export interface CatDropdownCustomEvent<T> extends CustomEvent<T> {
|
|
1044
1275
|
detail: T;
|
|
1045
1276
|
target: HTMLCatDropdownElement;
|
|
@@ -1048,6 +1279,10 @@ export interface CatInputCustomEvent<T> extends CustomEvent<T> {
|
|
|
1048
1279
|
detail: T;
|
|
1049
1280
|
target: HTMLCatInputElement;
|
|
1050
1281
|
}
|
|
1282
|
+
export interface CatPaginationCustomEvent<T> extends CustomEvent<T> {
|
|
1283
|
+
detail: T;
|
|
1284
|
+
target: HTMLCatPaginationElement;
|
|
1285
|
+
}
|
|
1051
1286
|
export interface CatRadioCustomEvent<T> extends CustomEvent<T> {
|
|
1052
1287
|
detail: T;
|
|
1053
1288
|
target: HTMLCatRadioElement;
|
|
@@ -1072,6 +1307,10 @@ export interface CatTextareaCustomEvent<T> extends CustomEvent<T> {
|
|
|
1072
1307
|
detail: T;
|
|
1073
1308
|
target: HTMLCatTextareaElement;
|
|
1074
1309
|
}
|
|
1310
|
+
export interface CatTimepickerCustomEvent<T> extends CustomEvent<T> {
|
|
1311
|
+
detail: T;
|
|
1312
|
+
target: HTMLCatTimepickerElement;
|
|
1313
|
+
}
|
|
1075
1314
|
export interface CatToggleCustomEvent<T> extends CustomEvent<T> {
|
|
1076
1315
|
detail: T;
|
|
1077
1316
|
target: HTMLCatToggleElement;
|
|
@@ -1142,6 +1381,17 @@ declare global {
|
|
|
1142
1381
|
prototype: HTMLCatCheckboxElement;
|
|
1143
1382
|
new (): HTMLCatCheckboxElement;
|
|
1144
1383
|
};
|
|
1384
|
+
/**
|
|
1385
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
1386
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
1387
|
+
* including passwords and numbers.
|
|
1388
|
+
*/
|
|
1389
|
+
interface HTMLCatDatepickerElement extends Components.CatDatepicker, HTMLStencilElement {
|
|
1390
|
+
}
|
|
1391
|
+
var HTMLCatDatepickerElement: {
|
|
1392
|
+
prototype: HTMLCatDatepickerElement;
|
|
1393
|
+
new (): HTMLCatDatepickerElement;
|
|
1394
|
+
};
|
|
1145
1395
|
interface HTMLCatDropdownElement extends Components.CatDropdown, HTMLStencilElement {
|
|
1146
1396
|
}
|
|
1147
1397
|
var HTMLCatDropdownElement: {
|
|
@@ -1291,6 +1541,17 @@ declare global {
|
|
|
1291
1541
|
prototype: HTMLCatTextareaElement;
|
|
1292
1542
|
new (): HTMLCatTextareaElement;
|
|
1293
1543
|
};
|
|
1544
|
+
/**
|
|
1545
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
1546
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
1547
|
+
* including passwords and numbers.
|
|
1548
|
+
*/
|
|
1549
|
+
interface HTMLCatTimepickerElement extends Components.CatTimepicker, HTMLStencilElement {
|
|
1550
|
+
}
|
|
1551
|
+
var HTMLCatTimepickerElement: {
|
|
1552
|
+
prototype: HTMLCatTimepickerElement;
|
|
1553
|
+
new (): HTMLCatTimepickerElement;
|
|
1554
|
+
};
|
|
1294
1555
|
/**
|
|
1295
1556
|
* Toggles are graphical interface switches that give user control over a
|
|
1296
1557
|
* feature or option that can be turned on or off.
|
|
@@ -1315,6 +1576,7 @@ declare global {
|
|
|
1315
1576
|
"cat-button-group": HTMLCatButtonGroupElement;
|
|
1316
1577
|
"cat-card": HTMLCatCardElement;
|
|
1317
1578
|
"cat-checkbox": HTMLCatCheckboxElement;
|
|
1579
|
+
"cat-datepicker": HTMLCatDatepickerElement;
|
|
1318
1580
|
"cat-dropdown": HTMLCatDropdownElement;
|
|
1319
1581
|
"cat-form-group": HTMLCatFormGroupElement;
|
|
1320
1582
|
"cat-icon": HTMLCatIconElement;
|
|
@@ -1331,6 +1593,7 @@ declare global {
|
|
|
1331
1593
|
"cat-tab": HTMLCatTabElement;
|
|
1332
1594
|
"cat-tabs": HTMLCatTabsElement;
|
|
1333
1595
|
"cat-textarea": HTMLCatTextareaElement;
|
|
1596
|
+
"cat-timepicker": HTMLCatTimepickerElement;
|
|
1334
1597
|
"cat-toggle": HTMLCatToggleElement;
|
|
1335
1598
|
"cat-tooltip": HTMLCatTooltipElement;
|
|
1336
1599
|
}
|
|
@@ -1462,10 +1725,6 @@ declare namespace LocalJSX {
|
|
|
1462
1725
|
* Display the icon on the right.
|
|
1463
1726
|
*/
|
|
1464
1727
|
"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
1728
|
/**
|
|
1470
1729
|
* 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
1730
|
*/
|
|
@@ -1587,7 +1846,7 @@ declare namespace LocalJSX {
|
|
|
1587
1846
|
/**
|
|
1588
1847
|
* Emitted when the checked status of the checkbox is changed.
|
|
1589
1848
|
*/
|
|
1590
|
-
"onCatChange"?: (event: CatCheckboxCustomEvent<
|
|
1849
|
+
"onCatChange"?: (event: CatCheckboxCustomEvent<InputEvent>) => void;
|
|
1591
1850
|
/**
|
|
1592
1851
|
* Emitted when the checkbox received focus.
|
|
1593
1852
|
*/
|
|
@@ -1601,6 +1860,133 @@ declare namespace LocalJSX {
|
|
|
1601
1860
|
*/
|
|
1602
1861
|
"value"?: string | boolean;
|
|
1603
1862
|
}
|
|
1863
|
+
/**
|
|
1864
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
1865
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
1866
|
+
* including passwords and numbers.
|
|
1867
|
+
*/
|
|
1868
|
+
interface CatDatepicker {
|
|
1869
|
+
/**
|
|
1870
|
+
* Hint for form autofill feature.
|
|
1871
|
+
*/
|
|
1872
|
+
"autoComplete"?: string;
|
|
1873
|
+
/**
|
|
1874
|
+
* Whether the input should show a clear button.
|
|
1875
|
+
*/
|
|
1876
|
+
"clearable"?: boolean;
|
|
1877
|
+
/**
|
|
1878
|
+
* Dates that should be disabled inside the picker
|
|
1879
|
+
*/
|
|
1880
|
+
"datesDisabled": Array<Date> | Array<string>;
|
|
1881
|
+
/**
|
|
1882
|
+
* Whether the input is disabled.
|
|
1883
|
+
*/
|
|
1884
|
+
"disabled"?: boolean;
|
|
1885
|
+
/**
|
|
1886
|
+
* 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.
|
|
1887
|
+
*/
|
|
1888
|
+
"errorUpdate"?: boolean | number;
|
|
1889
|
+
/**
|
|
1890
|
+
* 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.
|
|
1891
|
+
*/
|
|
1892
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
1893
|
+
/**
|
|
1894
|
+
* The date format after picker selection.
|
|
1895
|
+
*/
|
|
1896
|
+
"format"?: string;
|
|
1897
|
+
/**
|
|
1898
|
+
* Optional hint text(s) to be displayed with the input.
|
|
1899
|
+
*/
|
|
1900
|
+
"hint"?: string | string[];
|
|
1901
|
+
/**
|
|
1902
|
+
* Whether the label is on top or left.
|
|
1903
|
+
*/
|
|
1904
|
+
"horizontal"?: boolean;
|
|
1905
|
+
/**
|
|
1906
|
+
* The name of an icon to be displayed in the input.
|
|
1907
|
+
*/
|
|
1908
|
+
"icon"?: string;
|
|
1909
|
+
/**
|
|
1910
|
+
* Display the icon on the left.
|
|
1911
|
+
*/
|
|
1912
|
+
"iconLeft"?: boolean;
|
|
1913
|
+
/**
|
|
1914
|
+
* A unique identifier for the input.
|
|
1915
|
+
*/
|
|
1916
|
+
"identifier"?: string;
|
|
1917
|
+
/**
|
|
1918
|
+
* The label for the input.
|
|
1919
|
+
*/
|
|
1920
|
+
"label"?: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
1923
|
+
*/
|
|
1924
|
+
"labelHidden"?: boolean;
|
|
1925
|
+
/**
|
|
1926
|
+
* A maximum value for date, time and numeric values.
|
|
1927
|
+
*/
|
|
1928
|
+
"max"?: number | string;
|
|
1929
|
+
/**
|
|
1930
|
+
* A minimum value for date, time and numeric values.
|
|
1931
|
+
*/
|
|
1932
|
+
"min"?: number | string;
|
|
1933
|
+
/**
|
|
1934
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
1935
|
+
*/
|
|
1936
|
+
"name"?: string;
|
|
1937
|
+
/**
|
|
1938
|
+
* Attributes that will be added to the native HTML input element.
|
|
1939
|
+
*/
|
|
1940
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1941
|
+
/**
|
|
1942
|
+
* Emitted when the input loses focus.
|
|
1943
|
+
*/
|
|
1944
|
+
"onCatBlur"?: (event: CatDatepickerCustomEvent<FocusEvent>) => void;
|
|
1945
|
+
/**
|
|
1946
|
+
* Emitted when the value is changed.
|
|
1947
|
+
*/
|
|
1948
|
+
"onCatChange"?: (event: CatDatepickerCustomEvent<InputEvent>) => void;
|
|
1949
|
+
/**
|
|
1950
|
+
* Emitted when the input received focus.
|
|
1951
|
+
*/
|
|
1952
|
+
"onCatFocus"?: (event: CatDatepickerCustomEvent<FocusEvent>) => void;
|
|
1953
|
+
/**
|
|
1954
|
+
* The placeholder text to display within the input.
|
|
1955
|
+
*/
|
|
1956
|
+
"placeholder"?: string;
|
|
1957
|
+
/**
|
|
1958
|
+
* The value is not editable.
|
|
1959
|
+
*/
|
|
1960
|
+
"readonly"?: boolean;
|
|
1961
|
+
/**
|
|
1962
|
+
* A value is required or must be check for the form to be submittable.
|
|
1963
|
+
*/
|
|
1964
|
+
"required"?: boolean;
|
|
1965
|
+
/**
|
|
1966
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
1967
|
+
*/
|
|
1968
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1969
|
+
/**
|
|
1970
|
+
* A textual prefix to be displayed in the input.
|
|
1971
|
+
*/
|
|
1972
|
+
"textPrefix"?: string;
|
|
1973
|
+
/**
|
|
1974
|
+
* A textual suffix to be displayed in the input.
|
|
1975
|
+
*/
|
|
1976
|
+
"textSuffix"?: string;
|
|
1977
|
+
/**
|
|
1978
|
+
* Type of datepicker ('date', 'week', 'month', 'year').
|
|
1979
|
+
*/
|
|
1980
|
+
"type"?: DatepickerType;
|
|
1981
|
+
/**
|
|
1982
|
+
* The value of the control.
|
|
1983
|
+
*/
|
|
1984
|
+
"value"?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
* Whether the picker should show the week numbers.
|
|
1987
|
+
*/
|
|
1988
|
+
"weekNumbers"?: boolean;
|
|
1989
|
+
}
|
|
1604
1990
|
interface CatDropdown {
|
|
1605
1991
|
/**
|
|
1606
1992
|
* Do not close the dropdown on outside clicks.
|
|
@@ -1744,7 +2130,7 @@ declare namespace LocalJSX {
|
|
|
1744
2130
|
/**
|
|
1745
2131
|
* Emitted when the value is changed.
|
|
1746
2132
|
*/
|
|
1747
|
-
"onCatChange"?: (event: CatInputCustomEvent<
|
|
2133
|
+
"onCatChange"?: (event: CatInputCustomEvent<InputEvent>) => void;
|
|
1748
2134
|
/**
|
|
1749
2135
|
* Emitted when the input received focus.
|
|
1750
2136
|
*/
|
|
@@ -1832,6 +2218,10 @@ declare namespace LocalJSX {
|
|
|
1832
2218
|
* The icon of the "previous" button.
|
|
1833
2219
|
*/
|
|
1834
2220
|
"iconPrev"?: string;
|
|
2221
|
+
/**
|
|
2222
|
+
* Emitted when the page of the pagination has changed.
|
|
2223
|
+
*/
|
|
2224
|
+
"onCatChange"?: (event: CatPaginationCustomEvent<any>) => void;
|
|
1835
2225
|
/**
|
|
1836
2226
|
* The current page.
|
|
1837
2227
|
*/
|
|
@@ -1905,7 +2295,7 @@ declare namespace LocalJSX {
|
|
|
1905
2295
|
/**
|
|
1906
2296
|
* Emitted when the radio is changed.
|
|
1907
2297
|
*/
|
|
1908
|
-
"onCatChange"?: (event: CatRadioCustomEvent<
|
|
2298
|
+
"onCatChange"?: (event: CatRadioCustomEvent<InputEvent>) => void;
|
|
1909
2299
|
/**
|
|
1910
2300
|
* Emitted when the radio received focus.
|
|
1911
2301
|
*/
|
|
@@ -1946,7 +2336,7 @@ declare namespace LocalJSX {
|
|
|
1946
2336
|
/**
|
|
1947
2337
|
* Emitted when the value is changed.
|
|
1948
2338
|
*/
|
|
1949
|
-
"onCatChange"?: (event: CatRadioGroupCustomEvent<
|
|
2339
|
+
"onCatChange"?: (event: CatRadioGroupCustomEvent<InputEvent>) => void;
|
|
1950
2340
|
/**
|
|
1951
2341
|
* The value of the radio group.
|
|
1952
2342
|
*/
|
|
@@ -2070,7 +2460,7 @@ declare namespace LocalJSX {
|
|
|
2070
2460
|
/**
|
|
2071
2461
|
* Emitted when the value is changed.
|
|
2072
2462
|
*/
|
|
2073
|
-
"onCatChange"?: (event: CatSelectCustomEvent<
|
|
2463
|
+
"onCatChange"?: (event: CatSelectCustomEvent<InputEvent>) => void;
|
|
2074
2464
|
/**
|
|
2075
2465
|
* Emitted when the select dropdown is closed.
|
|
2076
2466
|
*/
|
|
@@ -2256,7 +2646,7 @@ declare namespace LocalJSX {
|
|
|
2256
2646
|
/**
|
|
2257
2647
|
* Emitted when the value is changed.
|
|
2258
2648
|
*/
|
|
2259
|
-
"onCatChange"?: (event: CatTextareaCustomEvent<
|
|
2649
|
+
"onCatChange"?: (event: CatTextareaCustomEvent<InputEvent>) => void;
|
|
2260
2650
|
/**
|
|
2261
2651
|
* Emitted when the textarea received focus.
|
|
2262
2652
|
*/
|
|
@@ -2286,6 +2676,117 @@ declare namespace LocalJSX {
|
|
|
2286
2676
|
*/
|
|
2287
2677
|
"value"?: string | number;
|
|
2288
2678
|
}
|
|
2679
|
+
/**
|
|
2680
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
2681
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
2682
|
+
* including passwords and numbers.
|
|
2683
|
+
*/
|
|
2684
|
+
interface CatTimepicker {
|
|
2685
|
+
/**
|
|
2686
|
+
* Whether the select should show a clear button.
|
|
2687
|
+
*/
|
|
2688
|
+
"clearable"?: boolean;
|
|
2689
|
+
/**
|
|
2690
|
+
* Whether the input is disabled.
|
|
2691
|
+
*/
|
|
2692
|
+
"disabled"?: boolean;
|
|
2693
|
+
/**
|
|
2694
|
+
* 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.
|
|
2695
|
+
*/
|
|
2696
|
+
"errorUpdate"?: boolean | number;
|
|
2697
|
+
/**
|
|
2698
|
+
* 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.
|
|
2699
|
+
*/
|
|
2700
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
2701
|
+
/**
|
|
2702
|
+
* Optional hint text(s) to be displayed with the input.
|
|
2703
|
+
*/
|
|
2704
|
+
"hint"?: string | string[];
|
|
2705
|
+
/**
|
|
2706
|
+
* Whether the label is on top or left.
|
|
2707
|
+
*/
|
|
2708
|
+
"horizontal"?: boolean;
|
|
2709
|
+
/**
|
|
2710
|
+
* Attributes that will be added to the native HTML input element.
|
|
2711
|
+
*/
|
|
2712
|
+
"hourShort"?: boolean;
|
|
2713
|
+
/**
|
|
2714
|
+
* A unique identifier for the input.
|
|
2715
|
+
*/
|
|
2716
|
+
"identifier"?: string;
|
|
2717
|
+
/**
|
|
2718
|
+
* The label for the input.
|
|
2719
|
+
*/
|
|
2720
|
+
"label"?: string;
|
|
2721
|
+
/**
|
|
2722
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
2723
|
+
*/
|
|
2724
|
+
"labelHidden"?: boolean;
|
|
2725
|
+
/**
|
|
2726
|
+
* A maximum value for date, time and numeric values.
|
|
2727
|
+
*/
|
|
2728
|
+
"max"?: string;
|
|
2729
|
+
/**
|
|
2730
|
+
* A minimum value for date, time and numeric values.
|
|
2731
|
+
*/
|
|
2732
|
+
"min"?: string;
|
|
2733
|
+
/**
|
|
2734
|
+
* Attributes that will be added to the native HTML input element.
|
|
2735
|
+
*/
|
|
2736
|
+
"minutesStep"?: number;
|
|
2737
|
+
/**
|
|
2738
|
+
* Enable multiple selection.
|
|
2739
|
+
*/
|
|
2740
|
+
"multiple"?: boolean;
|
|
2741
|
+
/**
|
|
2742
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
2743
|
+
*/
|
|
2744
|
+
"name"?: string;
|
|
2745
|
+
/**
|
|
2746
|
+
* Attributes that will be added to the native HTML input element.
|
|
2747
|
+
*/
|
|
2748
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
2749
|
+
/**
|
|
2750
|
+
* The text to display in the dropdown if no results are found.
|
|
2751
|
+
*/
|
|
2752
|
+
"noItems"?: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* Emitted when the select loses the focus.
|
|
2755
|
+
*/
|
|
2756
|
+
"onCatBlur"?: (event: CatTimepickerCustomEvent<FocusEvent>) => void;
|
|
2757
|
+
/**
|
|
2758
|
+
* Emitted when the value is changed.
|
|
2759
|
+
*/
|
|
2760
|
+
"onCatChange"?: (event: CatTimepickerCustomEvent<any>) => void;
|
|
2761
|
+
/**
|
|
2762
|
+
* Emitted when the select dropdown is closed.
|
|
2763
|
+
*/
|
|
2764
|
+
"onCatClose"?: (event: CatTimepickerCustomEvent<FocusEvent>) => void;
|
|
2765
|
+
/**
|
|
2766
|
+
* Emitted when the select dropdown is opened.
|
|
2767
|
+
*/
|
|
2768
|
+
"onCatOpen"?: (event: CatTimepickerCustomEvent<FocusEvent>) => void;
|
|
2769
|
+
/**
|
|
2770
|
+
* The placeholder text to display within the select.
|
|
2771
|
+
*/
|
|
2772
|
+
"placeholder"?: string;
|
|
2773
|
+
/**
|
|
2774
|
+
* The placement of the select.
|
|
2775
|
+
*/
|
|
2776
|
+
"placement"?: Placement;
|
|
2777
|
+
/**
|
|
2778
|
+
* A value is required or must be checked for the form to be submittable.
|
|
2779
|
+
*/
|
|
2780
|
+
"required"?: boolean;
|
|
2781
|
+
/**
|
|
2782
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
2783
|
+
*/
|
|
2784
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
2785
|
+
/**
|
|
2786
|
+
* The value of the select. <br /> <br /> The value of the select depends on whether it is allowed to choose a single item or several items. <br /> When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br /> <br /> In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item, in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
|
|
2787
|
+
*/
|
|
2788
|
+
"value"?: string | string[] | CatSelectTaggingValue1 | CatSelectMultipleTaggingValue1;
|
|
2789
|
+
}
|
|
2289
2790
|
/**
|
|
2290
2791
|
* Toggles are graphical interface switches that give user control over a
|
|
2291
2792
|
* feature or option that can be turned on or off.
|
|
@@ -2334,7 +2835,7 @@ declare namespace LocalJSX {
|
|
|
2334
2835
|
/**
|
|
2335
2836
|
* Emitted when the checked status of the toggle is changed.
|
|
2336
2837
|
*/
|
|
2337
|
-
"onCatChange"?: (event: CatToggleCustomEvent<
|
|
2838
|
+
"onCatChange"?: (event: CatToggleCustomEvent<InputEvent>) => void;
|
|
2338
2839
|
/**
|
|
2339
2840
|
* Emitted when the toggle received focus.
|
|
2340
2841
|
*/
|
|
@@ -2390,6 +2891,7 @@ declare namespace LocalJSX {
|
|
|
2390
2891
|
"cat-button-group": CatButtonGroup;
|
|
2391
2892
|
"cat-card": CatCard;
|
|
2392
2893
|
"cat-checkbox": CatCheckbox;
|
|
2894
|
+
"cat-datepicker": CatDatepicker;
|
|
2393
2895
|
"cat-dropdown": CatDropdown;
|
|
2394
2896
|
"cat-form-group": CatFormGroup;
|
|
2395
2897
|
"cat-icon": CatIcon;
|
|
@@ -2406,6 +2908,7 @@ declare namespace LocalJSX {
|
|
|
2406
2908
|
"cat-tab": CatTab;
|
|
2407
2909
|
"cat-tabs": CatTabs;
|
|
2408
2910
|
"cat-textarea": CatTextarea;
|
|
2911
|
+
"cat-timepicker": CatTimepicker;
|
|
2409
2912
|
"cat-toggle": CatToggle;
|
|
2410
2913
|
"cat-tooltip": CatTooltip;
|
|
2411
2914
|
}
|
|
@@ -2444,6 +2947,12 @@ declare module "@stencil/core" {
|
|
|
2444
2947
|
* number of options.
|
|
2445
2948
|
*/
|
|
2446
2949
|
"cat-checkbox": LocalJSX.CatCheckbox & JSXBase.HTMLAttributes<HTMLCatCheckboxElement>;
|
|
2950
|
+
/**
|
|
2951
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
2952
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
2953
|
+
* including passwords and numbers.
|
|
2954
|
+
*/
|
|
2955
|
+
"cat-datepicker": LocalJSX.CatDatepicker & JSXBase.HTMLAttributes<HTMLCatDatepickerElement>;
|
|
2447
2956
|
"cat-dropdown": LocalJSX.CatDropdown & JSXBase.HTMLAttributes<HTMLCatDropdownElement>;
|
|
2448
2957
|
"cat-form-group": LocalJSX.CatFormGroup & JSXBase.HTMLAttributes<HTMLCatFormGroupElement>;
|
|
2449
2958
|
/**
|
|
@@ -2513,6 +3022,12 @@ declare module "@stencil/core" {
|
|
|
2513
3022
|
* input component.
|
|
2514
3023
|
*/
|
|
2515
3024
|
"cat-textarea": LocalJSX.CatTextarea & JSXBase.HTMLAttributes<HTMLCatTextareaElement>;
|
|
3025
|
+
/**
|
|
3026
|
+
* Inputs are used to allow users to provide text input when the expected input
|
|
3027
|
+
* is short. As well as plain text, Input supports various types of text,
|
|
3028
|
+
* including passwords and numbers.
|
|
3029
|
+
*/
|
|
3030
|
+
"cat-timepicker": LocalJSX.CatTimepicker & JSXBase.HTMLAttributes<HTMLCatTimepickerElement>;
|
|
2516
3031
|
/**
|
|
2517
3032
|
* Toggles are graphical interface switches that give user control over a
|
|
2518
3033
|
* feature or option that can be turned on or off.
|