@haiilo/catalyst 10.2.0 → 10.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/assets/fonts/Lato-Black.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.ttf +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/catalyst/catalyst.css +10 -1
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +1 -1
- package/dist/catalyst/p-81800b65.js +2 -0
- package/dist/catalyst/p-81800b65.js.map +1 -0
- package/dist/catalyst/p-8a1d505d.entry.js +10 -0
- package/dist/catalyst/p-8a1d505d.entry.js.map +1 -0
- package/dist/catalyst/scss/core/_form.scss +12 -3
- package/dist/cjs/{cat-alert_26.cjs.entry.js → cat-alert_28.cjs.entry.js} +2293 -128
- package/dist/cjs/cat-alert_28.cjs.entry.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{of-a6e7c491.js → of-45281229.js} +34 -19
- package/dist/cjs/of-45281229.js.map +1 -0
- package/dist/collection/assets/fonts/Lato-Black.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Light.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.ttf +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/cat-alert/cat-alert.spec.js +2 -9
- package/dist/collection/components/cat-alert/cat-alert.spec.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js +3 -7
- package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.spec.js +2 -6
- package/dist/collection/components/cat-badge/cat-badge.spec.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.css +29 -0
- package/dist/collection/components/cat-button/cat-button.spec.js +1 -1
- package/dist/collection/components/cat-button/cat-button.spec.js.map +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js +2 -6
- package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +1 -1
- package/dist/collection/components/cat-card/cat-card.spec.js +2 -6
- package/dist/collection/components/cat-card/cat-card.spec.js.map +1 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +2 -17
- package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +1 -1
- package/dist/collection/components/cat-date/cat-date-locale.js +54 -0
- package/dist/collection/components/cat-date/cat-date-locale.js.map +1 -0
- package/dist/collection/components/cat-date/cat-date-math.js +28 -0
- package/dist/collection/components/cat-date/cat-date-math.js.map +1 -0
- package/dist/collection/components/cat-date/cat-date.css +122 -0
- package/dist/collection/components/cat-date/cat-date.e2e.js +11 -0
- package/dist/collection/components/cat-date/cat-date.e2e.js.map +1 -0
- package/dist/collection/components/cat-date/cat-date.js +923 -0
- package/dist/collection/components/cat-date/cat-date.js.map +1 -0
- package/dist/collection/components/cat-date/cat-date.spec.js +16 -0
- package/dist/collection/components/cat-date/cat-date.spec.js.map +1 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +3 -3
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +3 -8
- package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +2 -2
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js +2 -8
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +100 -30
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +2 -8
- package/dist/collection/components/cat-dropdown/cat-dropdown.spec.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.spec.js +2 -6
- package/dist/collection/components/cat-form-group/cat-form-group.spec.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.js +27 -15
- package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.js +1 -1
- package/dist/collection/components/cat-icon/cat-icon.spec.js +1 -1
- package/dist/collection/components/cat-icon/cat-icon.spec.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +15 -0
- package/dist/collection/components/cat-input/cat-input.js +44 -6
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.spec.js +2 -23
- package/dist/collection/components/cat-input/cat-input.spec.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js +2 -18
- package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +1 -1
- package/dist/collection/components/cat-radio/cat-radio.spec.js +3 -13
- package/dist/collection/components/cat-radio/cat-radio.spec.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js +2 -8
- package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +3 -3
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +2 -13
- package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.js +4 -4
- package/dist/collection/components/cat-select/cat-select.spec.js +2 -28
- package/dist/collection/components/cat-select/cat-select.spec.js.map +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +2 -6
- package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.js +2 -2
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.js +1 -1
- package/dist/collection/components/cat-tab/cat-tab.spec.js +2 -5
- package/dist/collection/components/cat-tab/cat-tab.spec.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js +2 -5
- package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +3 -3
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js +2 -21
- package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +1 -1
- package/dist/collection/components/cat-time/cat-time-locale.js +15 -0
- package/dist/collection/components/cat-time/cat-time-locale.js.map +1 -0
- package/dist/collection/components/cat-time/cat-time-math.js +28 -0
- package/dist/collection/components/cat-time/cat-time-math.js.map +1 -0
- package/dist/collection/components/cat-time/cat-time.css +41 -0
- package/dist/collection/components/cat-time/cat-time.e2e.js +11 -0
- package/dist/collection/components/cat-time/cat-time.e2e.js.map +1 -0
- package/dist/collection/components/cat-time/cat-time.js +801 -0
- package/dist/collection/components/cat-time/cat-time.js.map +1 -0
- package/dist/collection/components/cat-time/cat-time.spec.js +16 -0
- package/dist/collection/components/cat-time/cat-time.spec.js.map +1 -0
- package/dist/collection/components/cat-toggle/cat-toggle.js +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js +2 -10
- package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +2 -2
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +1 -9
- package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +1 -1
- package/dist/collection/scss/core/_form.scss +12 -3
- package/dist/components/cat-button2.js +1 -1
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-date.d.ts +11 -0
- package/dist/components/cat-date.js +469 -0
- package/dist/components/cat-date.js.map +1 -0
- package/dist/components/cat-datepicker-inline.js +2 -2
- package/dist/components/cat-datepicker.js +2 -2
- package/dist/components/cat-dropdown2.js +35 -30
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +1 -1
- package/dist/components/cat-icon-registry.js +33 -18
- package/dist/components/cat-icon-registry.js.map +1 -1
- package/dist/components/cat-icon2.js +1 -1
- package/dist/components/cat-input2.js +1572 -6
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-pagination.js +2 -2
- package/dist/components/cat-radio-group.js +1 -1
- package/dist/components/cat-radio.js +1 -1
- package/dist/components/cat-scrollable2.js +3 -3
- package/dist/components/cat-select-demo.js +1 -1
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-skeleton2.js +1 -1
- package/dist/components/cat-spinner2.js +2 -2
- package/dist/components/cat-tab.js +1 -1
- package/dist/components/cat-tabs.js +1 -1
- package/dist/components/cat-textarea.js +3 -3
- package/dist/components/cat-time.d.ts +11 -0
- package/dist/components/cat-time.js +303 -0
- package/dist/components/cat-time.js.map +1 -0
- package/dist/components/cat-toggle.js +1 -1
- package/dist/components/cat-tooltip.js +2 -2
- package/dist/esm/{cat-alert_26.entry.js → cat-alert_28.entry.js} +2293 -130
- package/dist/esm/cat-alert_28.entry.js.map +1 -0
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{of-d37c1933.js → of-19888f3b.js} +34 -19
- package/dist/esm/of-19888f3b.js.map +1 -0
- package/dist/types/components/cat-date/cat-date-locale.d.ts +24 -0
- package/dist/types/components/cat-date/cat-date-math.d.ts +7 -0
- package/dist/types/components/cat-date/cat-date.d.ts +180 -0
- package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +9 -3
- package/dist/types/components/cat-input/cat-input.d.ts +9 -2
- package/dist/types/components/cat-time/cat-time-locale.d.ts +6 -0
- package/dist/types/components/cat-time/cat-time-math.d.ts +3 -0
- package/dist/types/components/cat-time/cat-time.d.ts +168 -0
- package/dist/types/components.d.ts +551 -8
- package/package.json +7 -5
- package/dist/catalyst/p-37905c93.entry.js +0 -10
- package/dist/catalyst/p-37905c93.entry.js.map +0 -1
- package/dist/catalyst/p-8fc7b0f0.js +0 -2
- package/dist/catalyst/p-8fc7b0f0.js.map +0 -1
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +0 -1
- package/dist/cjs/of-a6e7c491.js.map +0 -1
- package/dist/esm/cat-alert_26.entry.js.map +0 -1
- package/dist/esm/of-d37c1933.js.map +0 -1
|
@@ -6,19 +6,21 @@
|
|
|
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";
|
|
10
|
+
import { Placement } from "@floating-ui/dom";
|
|
9
11
|
import { CatDatepickerMode } from "./components/cat-datepicker/cat-datepicker.mode";
|
|
10
12
|
import { BaseOptions } from "flatpickr/dist/types/options";
|
|
11
|
-
import { Placement } from "@floating-ui/dom";
|
|
12
|
-
import { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
13
13
|
import { InputType } from "./components/cat-input/input-type";
|
|
14
|
+
import { CleaveOptions } from "cleave.js/options";
|
|
14
15
|
import { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue, Item } from "./components/cat-select/cat-select";
|
|
15
16
|
import { Observable } from "rxjs";
|
|
16
17
|
export { Breakpoint } from "./utils/breakpoints";
|
|
18
|
+
export { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
19
|
+
export { Placement } from "@floating-ui/dom";
|
|
17
20
|
export { CatDatepickerMode } from "./components/cat-datepicker/cat-datepicker.mode";
|
|
18
21
|
export { BaseOptions } from "flatpickr/dist/types/options";
|
|
19
|
-
export { Placement } from "@floating-ui/dom";
|
|
20
|
-
export { ErrorMap } from "./components/cat-form-hint/cat-form-hint";
|
|
21
22
|
export { InputType } from "./components/cat-input/input-type";
|
|
23
|
+
export { CleaveOptions } from "cleave.js/options";
|
|
22
24
|
export { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue, Item } from "./components/cat-select/cat-select";
|
|
23
25
|
export { Observable } from "rxjs";
|
|
24
26
|
export namespace Components {
|
|
@@ -297,6 +299,122 @@ export namespace Components {
|
|
|
297
299
|
*/
|
|
298
300
|
"value"?: any;
|
|
299
301
|
}
|
|
302
|
+
interface CatDate {
|
|
303
|
+
/**
|
|
304
|
+
* Hint for form autofill feature.
|
|
305
|
+
*/
|
|
306
|
+
"autoComplete"?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Clear the input.
|
|
309
|
+
*/
|
|
310
|
+
"clear": () => Promise<void>;
|
|
311
|
+
/**
|
|
312
|
+
* Whether the input should show a clear button.
|
|
313
|
+
*/
|
|
314
|
+
"clearable": boolean;
|
|
315
|
+
/**
|
|
316
|
+
* Whether the input is disabled.
|
|
317
|
+
*/
|
|
318
|
+
"disabled": boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Programmatically remove focus from the input. Use this method instead of `input.blur()`.
|
|
321
|
+
*/
|
|
322
|
+
"doBlur": () => Promise<void>;
|
|
323
|
+
/**
|
|
324
|
+
* Programmatically move focus to the input. Use this method instead of `input.focus()`.
|
|
325
|
+
* @param options An optional object providing options to control aspects of the focusing process.
|
|
326
|
+
*/
|
|
327
|
+
"doFocus": (options?: FocusOptions) => Promise<void>;
|
|
328
|
+
/**
|
|
329
|
+
* 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.
|
|
330
|
+
*/
|
|
331
|
+
"errorUpdate": boolean | number;
|
|
332
|
+
/**
|
|
333
|
+
* 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.
|
|
334
|
+
*/
|
|
335
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
336
|
+
/**
|
|
337
|
+
* Optional hint text(s) to be displayed with the input.
|
|
338
|
+
*/
|
|
339
|
+
"hint"?: string | string[];
|
|
340
|
+
/**
|
|
341
|
+
* Whether the label is on top or left.
|
|
342
|
+
*/
|
|
343
|
+
"horizontal": boolean;
|
|
344
|
+
/**
|
|
345
|
+
* The name of an icon to be displayed in the input.
|
|
346
|
+
*/
|
|
347
|
+
"icon"?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Display the icon on the right.
|
|
350
|
+
*/
|
|
351
|
+
"iconRight": boolean;
|
|
352
|
+
/**
|
|
353
|
+
* A unique identifier for the input.
|
|
354
|
+
*/
|
|
355
|
+
"identifier"?: string;
|
|
356
|
+
/**
|
|
357
|
+
* The label for the input.
|
|
358
|
+
*/
|
|
359
|
+
"label": string;
|
|
360
|
+
/**
|
|
361
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
362
|
+
*/
|
|
363
|
+
"labelHidden": boolean;
|
|
364
|
+
/**
|
|
365
|
+
* A maximum value for the date, given in local ISO 8601 date format YYYY-MM-DD.
|
|
366
|
+
*/
|
|
367
|
+
"max"?: string;
|
|
368
|
+
/**
|
|
369
|
+
* A minimum value for the date, given in local ISO 8601 date format YYYY-MM-DD.
|
|
370
|
+
*/
|
|
371
|
+
"min"?: string;
|
|
372
|
+
/**
|
|
373
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
374
|
+
*/
|
|
375
|
+
"name"?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Attributes that will be added to the native HTML input element.
|
|
378
|
+
*/
|
|
379
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
380
|
+
/**
|
|
381
|
+
* The placeholder text to display within the input.
|
|
382
|
+
*/
|
|
383
|
+
"placeholder"?: string;
|
|
384
|
+
/**
|
|
385
|
+
* The placement of the dropdown.
|
|
386
|
+
*/
|
|
387
|
+
"placement": Placement;
|
|
388
|
+
/**
|
|
389
|
+
* The value is not editable.
|
|
390
|
+
*/
|
|
391
|
+
"readonly": boolean;
|
|
392
|
+
/**
|
|
393
|
+
* A value is required or must be check for the form to be submittable.
|
|
394
|
+
*/
|
|
395
|
+
"required": boolean;
|
|
396
|
+
/**
|
|
397
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
398
|
+
*/
|
|
399
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
400
|
+
/**
|
|
401
|
+
* Select a date in the picker.
|
|
402
|
+
* @param date The date to select.
|
|
403
|
+
*/
|
|
404
|
+
"select": (date: Date) => Promise<void>;
|
|
405
|
+
/**
|
|
406
|
+
* A textual prefix to be displayed in the input.
|
|
407
|
+
*/
|
|
408
|
+
"textPrefix"?: string;
|
|
409
|
+
/**
|
|
410
|
+
* A textual suffix to be displayed in the input.
|
|
411
|
+
*/
|
|
412
|
+
"textSuffix"?: string;
|
|
413
|
+
/**
|
|
414
|
+
* The value of the control, given in local ISO 8601 date format YYYY-MM-DD.
|
|
415
|
+
*/
|
|
416
|
+
"value"?: string;
|
|
417
|
+
}
|
|
300
418
|
interface CatDatepicker {
|
|
301
419
|
/**
|
|
302
420
|
* Instead of body, appends the calendar to the cat-datepicker element instead
|
|
@@ -456,6 +574,10 @@ export namespace Components {
|
|
|
456
574
|
"value"?: string;
|
|
457
575
|
}
|
|
458
576
|
interface CatDropdown {
|
|
577
|
+
/**
|
|
578
|
+
* Do not navigate focus inside the dropdown via vertical arrow keys.
|
|
579
|
+
*/
|
|
580
|
+
"arrowNavigation": 'horizontal' | 'vertical' | 'none';
|
|
459
581
|
/**
|
|
460
582
|
* Closes the dropdown.
|
|
461
583
|
*/
|
|
@@ -464,6 +586,14 @@ export namespace Components {
|
|
|
464
586
|
* Do not close the dropdown on outside clicks.
|
|
465
587
|
*/
|
|
466
588
|
"noAutoClose": boolean;
|
|
589
|
+
/**
|
|
590
|
+
* Do not change the size of the dropdown to ensure it isn’t too big to fit in the viewport (or more specifically, its clipping context).
|
|
591
|
+
*/
|
|
592
|
+
"noResize": boolean;
|
|
593
|
+
/**
|
|
594
|
+
* Opens the dropdown.
|
|
595
|
+
*/
|
|
596
|
+
"open": () => Promise<void>;
|
|
467
597
|
/**
|
|
468
598
|
* Allow overflow when dropdown is open.
|
|
469
599
|
*/
|
|
@@ -472,6 +602,10 @@ export namespace Components {
|
|
|
472
602
|
* The placement of the dropdown.
|
|
473
603
|
*/
|
|
474
604
|
"placement": Placement;
|
|
605
|
+
/**
|
|
606
|
+
* Toggles the dropdown.
|
|
607
|
+
*/
|
|
608
|
+
"toggle": () => Promise<void>;
|
|
475
609
|
}
|
|
476
610
|
interface CatFormGroup {
|
|
477
611
|
/**
|
|
@@ -577,7 +711,12 @@ export namespace Components {
|
|
|
577
711
|
*/
|
|
578
712
|
"labelHidden": boolean;
|
|
579
713
|
/**
|
|
580
|
-
*
|
|
714
|
+
* Adds a Cleave.js mask to the input.
|
|
715
|
+
* @param options The Cleave.js options.
|
|
716
|
+
*/
|
|
717
|
+
"mask": (options: CleaveOptions) => Promise<void>;
|
|
718
|
+
/**
|
|
719
|
+
* A maximum value for numeric values.
|
|
581
720
|
*/
|
|
582
721
|
"max"?: number | string;
|
|
583
722
|
/**
|
|
@@ -585,7 +724,7 @@ export namespace Components {
|
|
|
585
724
|
*/
|
|
586
725
|
"maxLength"?: number;
|
|
587
726
|
/**
|
|
588
|
-
* A minimum value for
|
|
727
|
+
* A minimum value for numeric values.
|
|
589
728
|
*/
|
|
590
729
|
"min"?: number | string;
|
|
591
730
|
/**
|
|
@@ -1109,6 +1248,126 @@ export namespace Components {
|
|
|
1109
1248
|
*/
|
|
1110
1249
|
"value"?: string;
|
|
1111
1250
|
}
|
|
1251
|
+
interface CatTime {
|
|
1252
|
+
/**
|
|
1253
|
+
* Hint for form autofill feature.
|
|
1254
|
+
*/
|
|
1255
|
+
"autoComplete"?: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Clear the input.
|
|
1258
|
+
*/
|
|
1259
|
+
"clear": () => Promise<void>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Whether the input should show a clear button.
|
|
1262
|
+
*/
|
|
1263
|
+
"clearable": boolean;
|
|
1264
|
+
/**
|
|
1265
|
+
* Whether the input is disabled.
|
|
1266
|
+
*/
|
|
1267
|
+
"disabled": boolean;
|
|
1268
|
+
/**
|
|
1269
|
+
* Programmatically remove focus from the input. Use this method instead of `input.blur()`.
|
|
1270
|
+
*/
|
|
1271
|
+
"doBlur": () => Promise<void>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Programmatically move focus to the input. Use this method instead of `input.focus()`.
|
|
1274
|
+
* @param options An optional object providing options to control aspects of the focusing process.
|
|
1275
|
+
*/
|
|
1276
|
+
"doFocus": (options?: FocusOptions) => Promise<void>;
|
|
1277
|
+
/**
|
|
1278
|
+
* 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.
|
|
1279
|
+
*/
|
|
1280
|
+
"errorUpdate": boolean | number;
|
|
1281
|
+
/**
|
|
1282
|
+
* 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.
|
|
1283
|
+
*/
|
|
1284
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
1285
|
+
/**
|
|
1286
|
+
* Optional hint text(s) to be displayed with the input.
|
|
1287
|
+
*/
|
|
1288
|
+
"hint"?: string | string[];
|
|
1289
|
+
/**
|
|
1290
|
+
* Whether the label is on top or left.
|
|
1291
|
+
*/
|
|
1292
|
+
"horizontal": boolean;
|
|
1293
|
+
/**
|
|
1294
|
+
* The name of an icon to be displayed in the input.
|
|
1295
|
+
*/
|
|
1296
|
+
"icon"?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* Display the icon on the right.
|
|
1299
|
+
*/
|
|
1300
|
+
"iconRight": boolean;
|
|
1301
|
+
/**
|
|
1302
|
+
* A unique identifier for the input.
|
|
1303
|
+
*/
|
|
1304
|
+
"identifier"?: string;
|
|
1305
|
+
/**
|
|
1306
|
+
* The label for the input.
|
|
1307
|
+
*/
|
|
1308
|
+
"label": string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
1311
|
+
*/
|
|
1312
|
+
"labelHidden": boolean;
|
|
1313
|
+
/**
|
|
1314
|
+
* A maximum time value given in HH:mm format.
|
|
1315
|
+
*/
|
|
1316
|
+
"max"?: string;
|
|
1317
|
+
/**
|
|
1318
|
+
* A minimum value given in HH:mm format.
|
|
1319
|
+
*/
|
|
1320
|
+
"min"?: string;
|
|
1321
|
+
/**
|
|
1322
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
1323
|
+
*/
|
|
1324
|
+
"name"?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* Attributes that will be added to the native HTML input element.
|
|
1327
|
+
*/
|
|
1328
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1329
|
+
/**
|
|
1330
|
+
* The placeholder text to display within the input.
|
|
1331
|
+
*/
|
|
1332
|
+
"placeholder"?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* The placement of the dropdown.
|
|
1335
|
+
*/
|
|
1336
|
+
"placement": Placement;
|
|
1337
|
+
/**
|
|
1338
|
+
* The value is not editable.
|
|
1339
|
+
*/
|
|
1340
|
+
"readonly": boolean;
|
|
1341
|
+
/**
|
|
1342
|
+
* A value is required or must be check for the form to be submittable.
|
|
1343
|
+
*/
|
|
1344
|
+
"required": boolean;
|
|
1345
|
+
/**
|
|
1346
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
1347
|
+
*/
|
|
1348
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1349
|
+
/**
|
|
1350
|
+
* Select a time in the picker.
|
|
1351
|
+
* @param date The time to select.
|
|
1352
|
+
*/
|
|
1353
|
+
"select": (date: Date | null) => Promise<void>;
|
|
1354
|
+
/**
|
|
1355
|
+
* The step size for times in minutes.
|
|
1356
|
+
*/
|
|
1357
|
+
"step": number;
|
|
1358
|
+
/**
|
|
1359
|
+
* A textual prefix to be displayed in the input.
|
|
1360
|
+
*/
|
|
1361
|
+
"textPrefix"?: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* A textual suffix to be displayed in the input.
|
|
1364
|
+
*/
|
|
1365
|
+
"textSuffix"?: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* The value of the control given in HH:mm format
|
|
1368
|
+
*/
|
|
1369
|
+
"value"?: string;
|
|
1370
|
+
}
|
|
1112
1371
|
/**
|
|
1113
1372
|
* Toggles are graphical interface switches that give user control over a
|
|
1114
1373
|
* feature or option that can be turned on or off.
|
|
@@ -1219,6 +1478,10 @@ export interface CatCheckboxCustomEvent<T> extends CustomEvent<T> {
|
|
|
1219
1478
|
detail: T;
|
|
1220
1479
|
target: HTMLCatCheckboxElement;
|
|
1221
1480
|
}
|
|
1481
|
+
export interface CatDateCustomEvent<T> extends CustomEvent<T> {
|
|
1482
|
+
detail: T;
|
|
1483
|
+
target: HTMLCatDateElement;
|
|
1484
|
+
}
|
|
1222
1485
|
export interface CatDatepickerCustomEvent<T> extends CustomEvent<T> {
|
|
1223
1486
|
detail: T;
|
|
1224
1487
|
target: HTMLCatDatepickerElement;
|
|
@@ -1267,6 +1530,10 @@ export interface CatTextareaCustomEvent<T> extends CustomEvent<T> {
|
|
|
1267
1530
|
detail: T;
|
|
1268
1531
|
target: HTMLCatTextareaElement;
|
|
1269
1532
|
}
|
|
1533
|
+
export interface CatTimeCustomEvent<T> extends CustomEvent<T> {
|
|
1534
|
+
detail: T;
|
|
1535
|
+
target: HTMLCatTimeElement;
|
|
1536
|
+
}
|
|
1270
1537
|
export interface CatToggleCustomEvent<T> extends CustomEvent<T> {
|
|
1271
1538
|
detail: T;
|
|
1272
1539
|
target: HTMLCatToggleElement;
|
|
@@ -1367,6 +1634,25 @@ declare global {
|
|
|
1367
1634
|
prototype: HTMLCatCheckboxElement;
|
|
1368
1635
|
new (): HTMLCatCheckboxElement;
|
|
1369
1636
|
};
|
|
1637
|
+
interface HTMLCatDateElementEventMap {
|
|
1638
|
+
"catChange": string;
|
|
1639
|
+
"catFocus": FocusEvent;
|
|
1640
|
+
"catBlur": FocusEvent;
|
|
1641
|
+
}
|
|
1642
|
+
interface HTMLCatDateElement extends Components.CatDate, HTMLStencilElement {
|
|
1643
|
+
addEventListener<K extends keyof HTMLCatDateElementEventMap>(type: K, listener: (this: HTMLCatDateElement, ev: CatDateCustomEvent<HTMLCatDateElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1644
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1645
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1646
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1647
|
+
removeEventListener<K extends keyof HTMLCatDateElementEventMap>(type: K, listener: (this: HTMLCatDateElement, ev: CatDateCustomEvent<HTMLCatDateElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1648
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1649
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1650
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1651
|
+
}
|
|
1652
|
+
var HTMLCatDateElement: {
|
|
1653
|
+
prototype: HTMLCatDateElement;
|
|
1654
|
+
new (): HTMLCatDateElement;
|
|
1655
|
+
};
|
|
1370
1656
|
interface HTMLCatDatepickerElementEventMap {
|
|
1371
1657
|
"catChange": string;
|
|
1372
1658
|
"catFocus": FocusEvent;
|
|
@@ -1667,6 +1953,25 @@ declare global {
|
|
|
1667
1953
|
prototype: HTMLCatTextareaElement;
|
|
1668
1954
|
new (): HTMLCatTextareaElement;
|
|
1669
1955
|
};
|
|
1956
|
+
interface HTMLCatTimeElementEventMap {
|
|
1957
|
+
"catChange": string;
|
|
1958
|
+
"catFocus": FocusEvent;
|
|
1959
|
+
"catBlur": FocusEvent;
|
|
1960
|
+
}
|
|
1961
|
+
interface HTMLCatTimeElement extends Components.CatTime, HTMLStencilElement {
|
|
1962
|
+
addEventListener<K extends keyof HTMLCatTimeElementEventMap>(type: K, listener: (this: HTMLCatTimeElement, ev: CatTimeCustomEvent<HTMLCatTimeElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1963
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1964
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1965
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1966
|
+
removeEventListener<K extends keyof HTMLCatTimeElementEventMap>(type: K, listener: (this: HTMLCatTimeElement, ev: CatTimeCustomEvent<HTMLCatTimeElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1967
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1968
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1969
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1970
|
+
}
|
|
1971
|
+
var HTMLCatTimeElement: {
|
|
1972
|
+
prototype: HTMLCatTimeElement;
|
|
1973
|
+
new (): HTMLCatTimeElement;
|
|
1974
|
+
};
|
|
1670
1975
|
interface HTMLCatToggleElementEventMap {
|
|
1671
1976
|
"catChange": any;
|
|
1672
1977
|
"catFocus": FocusEvent;
|
|
@@ -1704,6 +2009,7 @@ declare global {
|
|
|
1704
2009
|
"cat-button-group": HTMLCatButtonGroupElement;
|
|
1705
2010
|
"cat-card": HTMLCatCardElement;
|
|
1706
2011
|
"cat-checkbox": HTMLCatCheckboxElement;
|
|
2012
|
+
"cat-date": HTMLCatDateElement;
|
|
1707
2013
|
"cat-datepicker": HTMLCatDatepickerElement;
|
|
1708
2014
|
"cat-datepicker-inline": HTMLCatDatepickerInlineElement;
|
|
1709
2015
|
"cat-dropdown": HTMLCatDropdownElement;
|
|
@@ -1721,6 +2027,7 @@ declare global {
|
|
|
1721
2027
|
"cat-tab": HTMLCatTabElement;
|
|
1722
2028
|
"cat-tabs": HTMLCatTabsElement;
|
|
1723
2029
|
"cat-textarea": HTMLCatTextareaElement;
|
|
2030
|
+
"cat-time": HTMLCatTimeElement;
|
|
1724
2031
|
"cat-toggle": HTMLCatToggleElement;
|
|
1725
2032
|
"cat-tooltip": HTMLCatTooltipElement;
|
|
1726
2033
|
}
|
|
@@ -2003,6 +2310,116 @@ declare namespace LocalJSX {
|
|
|
2003
2310
|
*/
|
|
2004
2311
|
"value"?: any;
|
|
2005
2312
|
}
|
|
2313
|
+
interface CatDate {
|
|
2314
|
+
/**
|
|
2315
|
+
* Hint for form autofill feature.
|
|
2316
|
+
*/
|
|
2317
|
+
"autoComplete"?: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* Whether the input should show a clear button.
|
|
2320
|
+
*/
|
|
2321
|
+
"clearable"?: boolean;
|
|
2322
|
+
/**
|
|
2323
|
+
* Whether the input is disabled.
|
|
2324
|
+
*/
|
|
2325
|
+
"disabled"?: boolean;
|
|
2326
|
+
/**
|
|
2327
|
+
* 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.
|
|
2328
|
+
*/
|
|
2329
|
+
"errorUpdate"?: boolean | number;
|
|
2330
|
+
/**
|
|
2331
|
+
* 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.
|
|
2332
|
+
*/
|
|
2333
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
2334
|
+
/**
|
|
2335
|
+
* Optional hint text(s) to be displayed with the input.
|
|
2336
|
+
*/
|
|
2337
|
+
"hint"?: string | string[];
|
|
2338
|
+
/**
|
|
2339
|
+
* Whether the label is on top or left.
|
|
2340
|
+
*/
|
|
2341
|
+
"horizontal"?: boolean;
|
|
2342
|
+
/**
|
|
2343
|
+
* The name of an icon to be displayed in the input.
|
|
2344
|
+
*/
|
|
2345
|
+
"icon"?: string;
|
|
2346
|
+
/**
|
|
2347
|
+
* Display the icon on the right.
|
|
2348
|
+
*/
|
|
2349
|
+
"iconRight"?: boolean;
|
|
2350
|
+
/**
|
|
2351
|
+
* A unique identifier for the input.
|
|
2352
|
+
*/
|
|
2353
|
+
"identifier"?: string;
|
|
2354
|
+
/**
|
|
2355
|
+
* The label for the input.
|
|
2356
|
+
*/
|
|
2357
|
+
"label"?: string;
|
|
2358
|
+
/**
|
|
2359
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
2360
|
+
*/
|
|
2361
|
+
"labelHidden"?: boolean;
|
|
2362
|
+
/**
|
|
2363
|
+
* A maximum value for the date, given in local ISO 8601 date format YYYY-MM-DD.
|
|
2364
|
+
*/
|
|
2365
|
+
"max"?: string;
|
|
2366
|
+
/**
|
|
2367
|
+
* A minimum value for the date, given in local ISO 8601 date format YYYY-MM-DD.
|
|
2368
|
+
*/
|
|
2369
|
+
"min"?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
2372
|
+
*/
|
|
2373
|
+
"name"?: string;
|
|
2374
|
+
/**
|
|
2375
|
+
* Attributes that will be added to the native HTML input element.
|
|
2376
|
+
*/
|
|
2377
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
2378
|
+
/**
|
|
2379
|
+
* Emitted when the input loses focus.
|
|
2380
|
+
*/
|
|
2381
|
+
"onCatBlur"?: (event: CatDateCustomEvent<FocusEvent>) => void;
|
|
2382
|
+
/**
|
|
2383
|
+
* Emitted when the value is changed.
|
|
2384
|
+
*/
|
|
2385
|
+
"onCatChange"?: (event: CatDateCustomEvent<string>) => void;
|
|
2386
|
+
/**
|
|
2387
|
+
* Emitted when the input received focus.
|
|
2388
|
+
*/
|
|
2389
|
+
"onCatFocus"?: (event: CatDateCustomEvent<FocusEvent>) => void;
|
|
2390
|
+
/**
|
|
2391
|
+
* The placeholder text to display within the input.
|
|
2392
|
+
*/
|
|
2393
|
+
"placeholder"?: string;
|
|
2394
|
+
/**
|
|
2395
|
+
* The placement of the dropdown.
|
|
2396
|
+
*/
|
|
2397
|
+
"placement"?: Placement;
|
|
2398
|
+
/**
|
|
2399
|
+
* The value is not editable.
|
|
2400
|
+
*/
|
|
2401
|
+
"readonly"?: boolean;
|
|
2402
|
+
/**
|
|
2403
|
+
* A value is required or must be check for the form to be submittable.
|
|
2404
|
+
*/
|
|
2405
|
+
"required"?: boolean;
|
|
2406
|
+
/**
|
|
2407
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
2408
|
+
*/
|
|
2409
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
2410
|
+
/**
|
|
2411
|
+
* A textual prefix to be displayed in the input.
|
|
2412
|
+
*/
|
|
2413
|
+
"textPrefix"?: string;
|
|
2414
|
+
/**
|
|
2415
|
+
* A textual suffix to be displayed in the input.
|
|
2416
|
+
*/
|
|
2417
|
+
"textSuffix"?: string;
|
|
2418
|
+
/**
|
|
2419
|
+
* The value of the control, given in local ISO 8601 date format YYYY-MM-DD.
|
|
2420
|
+
*/
|
|
2421
|
+
"value"?: string;
|
|
2422
|
+
}
|
|
2006
2423
|
interface CatDatepicker {
|
|
2007
2424
|
/**
|
|
2008
2425
|
* Instead of body, appends the calendar to the cat-datepicker element instead
|
|
@@ -2169,10 +2586,18 @@ declare namespace LocalJSX {
|
|
|
2169
2586
|
"value"?: string;
|
|
2170
2587
|
}
|
|
2171
2588
|
interface CatDropdown {
|
|
2589
|
+
/**
|
|
2590
|
+
* Do not navigate focus inside the dropdown via vertical arrow keys.
|
|
2591
|
+
*/
|
|
2592
|
+
"arrowNavigation"?: 'horizontal' | 'vertical' | 'none';
|
|
2172
2593
|
/**
|
|
2173
2594
|
* Do not close the dropdown on outside clicks.
|
|
2174
2595
|
*/
|
|
2175
2596
|
"noAutoClose"?: boolean;
|
|
2597
|
+
/**
|
|
2598
|
+
* Do not change the size of the dropdown to ensure it isn’t too big to fit in the viewport (or more specifically, its clipping context).
|
|
2599
|
+
*/
|
|
2600
|
+
"noResize"?: boolean;
|
|
2176
2601
|
/**
|
|
2177
2602
|
* Emitted when the dropdown is closed.
|
|
2178
2603
|
*/
|
|
@@ -2281,7 +2706,7 @@ declare namespace LocalJSX {
|
|
|
2281
2706
|
*/
|
|
2282
2707
|
"labelHidden"?: boolean;
|
|
2283
2708
|
/**
|
|
2284
|
-
* A maximum value for
|
|
2709
|
+
* A maximum value for numeric values.
|
|
2285
2710
|
*/
|
|
2286
2711
|
"max"?: number | string;
|
|
2287
2712
|
/**
|
|
@@ -2289,7 +2714,7 @@ declare namespace LocalJSX {
|
|
|
2289
2714
|
*/
|
|
2290
2715
|
"maxLength"?: number;
|
|
2291
2716
|
/**
|
|
2292
|
-
* A minimum value for
|
|
2717
|
+
* A minimum value for numeric values.
|
|
2293
2718
|
*/
|
|
2294
2719
|
"min"?: number | string;
|
|
2295
2720
|
/**
|
|
@@ -2855,6 +3280,120 @@ declare namespace LocalJSX {
|
|
|
2855
3280
|
*/
|
|
2856
3281
|
"value"?: string;
|
|
2857
3282
|
}
|
|
3283
|
+
interface CatTime {
|
|
3284
|
+
/**
|
|
3285
|
+
* Hint for form autofill feature.
|
|
3286
|
+
*/
|
|
3287
|
+
"autoComplete"?: string;
|
|
3288
|
+
/**
|
|
3289
|
+
* Whether the input should show a clear button.
|
|
3290
|
+
*/
|
|
3291
|
+
"clearable"?: boolean;
|
|
3292
|
+
/**
|
|
3293
|
+
* Whether the input is disabled.
|
|
3294
|
+
*/
|
|
3295
|
+
"disabled"?: boolean;
|
|
3296
|
+
/**
|
|
3297
|
+
* 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.
|
|
3298
|
+
*/
|
|
3299
|
+
"errorUpdate"?: boolean | number;
|
|
3300
|
+
/**
|
|
3301
|
+
* 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.
|
|
3302
|
+
*/
|
|
3303
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
3304
|
+
/**
|
|
3305
|
+
* Optional hint text(s) to be displayed with the input.
|
|
3306
|
+
*/
|
|
3307
|
+
"hint"?: string | string[];
|
|
3308
|
+
/**
|
|
3309
|
+
* Whether the label is on top or left.
|
|
3310
|
+
*/
|
|
3311
|
+
"horizontal"?: boolean;
|
|
3312
|
+
/**
|
|
3313
|
+
* The name of an icon to be displayed in the input.
|
|
3314
|
+
*/
|
|
3315
|
+
"icon"?: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* Display the icon on the right.
|
|
3318
|
+
*/
|
|
3319
|
+
"iconRight"?: boolean;
|
|
3320
|
+
/**
|
|
3321
|
+
* A unique identifier for the input.
|
|
3322
|
+
*/
|
|
3323
|
+
"identifier"?: string;
|
|
3324
|
+
/**
|
|
3325
|
+
* The label for the input.
|
|
3326
|
+
*/
|
|
3327
|
+
"label"?: string;
|
|
3328
|
+
/**
|
|
3329
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
3330
|
+
*/
|
|
3331
|
+
"labelHidden"?: boolean;
|
|
3332
|
+
/**
|
|
3333
|
+
* A maximum time value given in HH:mm format.
|
|
3334
|
+
*/
|
|
3335
|
+
"max"?: string;
|
|
3336
|
+
/**
|
|
3337
|
+
* A minimum value given in HH:mm format.
|
|
3338
|
+
*/
|
|
3339
|
+
"min"?: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
3342
|
+
*/
|
|
3343
|
+
"name"?: string;
|
|
3344
|
+
/**
|
|
3345
|
+
* Attributes that will be added to the native HTML input element.
|
|
3346
|
+
*/
|
|
3347
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
3348
|
+
/**
|
|
3349
|
+
* Emitted when the input loses focus.
|
|
3350
|
+
*/
|
|
3351
|
+
"onCatBlur"?: (event: CatTimeCustomEvent<FocusEvent>) => void;
|
|
3352
|
+
/**
|
|
3353
|
+
* Emitted when the value is changed.
|
|
3354
|
+
*/
|
|
3355
|
+
"onCatChange"?: (event: CatTimeCustomEvent<string>) => void;
|
|
3356
|
+
/**
|
|
3357
|
+
* Emitted when the input received focus.
|
|
3358
|
+
*/
|
|
3359
|
+
"onCatFocus"?: (event: CatTimeCustomEvent<FocusEvent>) => void;
|
|
3360
|
+
/**
|
|
3361
|
+
* The placeholder text to display within the input.
|
|
3362
|
+
*/
|
|
3363
|
+
"placeholder"?: string;
|
|
3364
|
+
/**
|
|
3365
|
+
* The placement of the dropdown.
|
|
3366
|
+
*/
|
|
3367
|
+
"placement"?: Placement;
|
|
3368
|
+
/**
|
|
3369
|
+
* The value is not editable.
|
|
3370
|
+
*/
|
|
3371
|
+
"readonly"?: boolean;
|
|
3372
|
+
/**
|
|
3373
|
+
* A value is required or must be check for the form to be submittable.
|
|
3374
|
+
*/
|
|
3375
|
+
"required"?: boolean;
|
|
3376
|
+
/**
|
|
3377
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
3378
|
+
*/
|
|
3379
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
3380
|
+
/**
|
|
3381
|
+
* The step size for times in minutes.
|
|
3382
|
+
*/
|
|
3383
|
+
"step"?: number;
|
|
3384
|
+
/**
|
|
3385
|
+
* A textual prefix to be displayed in the input.
|
|
3386
|
+
*/
|
|
3387
|
+
"textPrefix"?: string;
|
|
3388
|
+
/**
|
|
3389
|
+
* A textual suffix to be displayed in the input.
|
|
3390
|
+
*/
|
|
3391
|
+
"textSuffix"?: string;
|
|
3392
|
+
/**
|
|
3393
|
+
* The value of the control given in HH:mm format
|
|
3394
|
+
*/
|
|
3395
|
+
"value"?: string;
|
|
3396
|
+
}
|
|
2858
3397
|
/**
|
|
2859
3398
|
* Toggles are graphical interface switches that give user control over a
|
|
2860
3399
|
* feature or option that can be turned on or off.
|
|
@@ -2967,6 +3506,7 @@ declare namespace LocalJSX {
|
|
|
2967
3506
|
"cat-button-group": CatButtonGroup;
|
|
2968
3507
|
"cat-card": CatCard;
|
|
2969
3508
|
"cat-checkbox": CatCheckbox;
|
|
3509
|
+
"cat-date": CatDate;
|
|
2970
3510
|
"cat-datepicker": CatDatepicker;
|
|
2971
3511
|
"cat-datepicker-inline": CatDatepickerInline;
|
|
2972
3512
|
"cat-dropdown": CatDropdown;
|
|
@@ -2984,6 +3524,7 @@ declare namespace LocalJSX {
|
|
|
2984
3524
|
"cat-tab": CatTab;
|
|
2985
3525
|
"cat-tabs": CatTabs;
|
|
2986
3526
|
"cat-textarea": CatTextarea;
|
|
3527
|
+
"cat-time": CatTime;
|
|
2987
3528
|
"cat-toggle": CatToggle;
|
|
2988
3529
|
"cat-tooltip": CatTooltip;
|
|
2989
3530
|
}
|
|
@@ -3026,6 +3567,7 @@ declare module "@stencil/core" {
|
|
|
3026
3567
|
* number of options.
|
|
3027
3568
|
*/
|
|
3028
3569
|
"cat-checkbox": LocalJSX.CatCheckbox & JSXBase.HTMLAttributes<HTMLCatCheckboxElement>;
|
|
3570
|
+
"cat-date": LocalJSX.CatDate & JSXBase.HTMLAttributes<HTMLCatDateElement>;
|
|
3029
3571
|
"cat-datepicker": LocalJSX.CatDatepicker & JSXBase.HTMLAttributes<HTMLCatDatepickerElement>;
|
|
3030
3572
|
"cat-datepicker-inline": LocalJSX.CatDatepickerInline & JSXBase.HTMLAttributes<HTMLCatDatepickerInlineElement>;
|
|
3031
3573
|
"cat-dropdown": LocalJSX.CatDropdown & JSXBase.HTMLAttributes<HTMLCatDropdownElement>;
|
|
@@ -3092,6 +3634,7 @@ declare module "@stencil/core" {
|
|
|
3092
3634
|
* input component.
|
|
3093
3635
|
*/
|
|
3094
3636
|
"cat-textarea": LocalJSX.CatTextarea & JSXBase.HTMLAttributes<HTMLCatTextareaElement>;
|
|
3637
|
+
"cat-time": LocalJSX.CatTime & JSXBase.HTMLAttributes<HTMLCatTimeElement>;
|
|
3095
3638
|
/**
|
|
3096
3639
|
* Toggles are graphical interface switches that give user control over a
|
|
3097
3640
|
* feature or option that can be turned on or off.
|