@haiilo/catalyst 4.1.2 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Black.woff2 +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.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +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.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +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.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +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.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +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.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +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.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +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.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +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.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +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 +6 -27
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-50855511.entry.js +10 -0
- package/dist/catalyst/p-50855511.entry.js.map +1 -0
- package/dist/catalyst/p-ccfebe33.js.map +1 -1
- package/dist/catalyst/p-d1fb9d96.js +3 -0
- package/dist/catalyst/p-d1fb9d96.js.map +1 -0
- package/dist/catalyst/scss/fonts/_fonts-mixins.scss +0 -10
- package/dist/cjs/cat-alert_24.cjs.entry.js +932 -1132
- package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +10 -3
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-c4542095.js → index-01312a2e.js} +527 -245
- package/dist/cjs/index-01312a2e.js.map +1 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- 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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff2 +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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff2 +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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff2 +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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +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.woff +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/cat-alert/cat-alert.js +69 -71
- package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.js +172 -165
- package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
- package/dist/collection/components/cat-badge/cat-badge.js +102 -111
- package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
- package/dist/collection/components/cat-button/cat-button.js +526 -537
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-card/cat-card.js +12 -8
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +336 -350
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +137 -137
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-form-group/cat-form-group.js +58 -40
- package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js +14 -7
- package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js +1 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.js +1 -1
- package/dist/collection/components/cat-icon/cat-icon.js +85 -79
- package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +32 -3
- package/dist/collection/components/cat-input/cat-input.js +662 -660
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-input/input-type.js +1 -1
- package/dist/collection/components/cat-label/cat-label.js +69 -78
- package/dist/collection/components/cat-label/cat-label.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 +192 -226
- package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +319 -327
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +173 -165
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +200 -208
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.js +555 -590
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +3 -28
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +85 -88
- package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
- package/dist/collection/components/cat-spinner/cat-spinner.js +52 -50
- package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.js +169 -168
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +73 -66
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.css +32 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +479 -468
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +319 -326
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.css +7 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +187 -198
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/scss/fonts/_fonts-mixins.scss +0 -10
- package/dist/collection/utils/breakpoints.js +1 -1
- package/dist/collection/utils/breakpoints.js.map +1 -1
- package/dist/collection/utils/coerce.js +11 -0
- package/dist/collection/utils/coerce.js.map +1 -0
- package/dist/collection/utils/first-tabbable.js +1 -1
- package/dist/collection/utils/is-touch-screen.js +1 -1
- package/dist/collection/utils/load-img.js +1 -1
- package/dist/collection/utils/media-matcher.js +1 -1
- package/dist/collection/utils/platform.js +4 -4
- package/dist/collection/utils/setDefault.js +1 -1
- package/dist/components/cat-alert.js +1 -6
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar2.js +6 -9
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.js +0 -15
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button2.js +10 -36
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox2.js +9 -26
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-dropdown2.js +139 -176
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +4 -9
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js +13 -6
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-icon-registry.js +71 -0
- package/dist/components/cat-icon-registry.js.map +1 -0
- package/dist/components/cat-icon.js +1 -1
- package/dist/components/cat-icon2.js +5 -71
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input.js +33 -41
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-label.js +1 -6
- package/dist/components/cat-label.js.map +1 -1
- package/dist/components/cat-pagination.js +0 -30
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.js +3 -6
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +9 -23
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +1 -12
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +2 -12
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +40 -47
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton2.js +1 -10
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-spinner2.js +1 -3
- package/dist/components/cat-spinner2.js.map +1 -1
- package/dist/components/cat-tab.js +3 -12
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.js +1 -6
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.js +28 -33
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +9 -23
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +14 -34
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/first-tabbable.js +51 -113
- package/dist/components/first-tabbable.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +577 -441
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.d.ts +9 -27
- package/dist/components/index.js +2 -26
- package/dist/components/index.js.map +1 -1
- package/dist/esm/cat-alert_24.entry.js +933 -1133
- package/dist/esm/cat-alert_24.entry.js.map +1 -1
- package/dist/esm/catalyst.js +7 -3
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-524906f7.js → index-fc2f91a4.js} +527 -246
- package/dist/esm/index-fc2f91a4.js.map +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +4 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -1
- package/dist/types/components/cat-form-group/cat-form-group.d.ts +4 -0
- package/dist/types/components/cat-form-hint/cat-form-hint.d.ts +5 -0
- package/dist/types/components/cat-input/cat-input.d.ts +6 -1
- package/dist/types/components/cat-input/input-type.d.ts +1 -1
- package/dist/types/components/cat-radio/cat-radio.d.ts +1 -1
- package/dist/types/components/cat-select/cat-select.d.ts +3 -1
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +6 -1
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -1
- package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +353 -7
- package/dist/types/stencil-public-runtime.d.ts +91 -19
- package/dist/types/utils/breakpoints.d.ts +1 -1
- package/dist/types/utils/coerce.d.ts +3 -0
- package/dist/types/utils/first-tabbable.d.ts +2 -2
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +19 -19
- package/dist/catalyst/assets/fonts/AzeretMono-Regular.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Bold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Italic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Medium.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Regular.woff2 +0 -0
- package/dist/catalyst/p-919eea27.js +0 -3
- package/dist/catalyst/p-919eea27.js.map +0 -1
- package/dist/catalyst/p-cd8f8639.entry.js +0 -10
- package/dist/catalyst/p-cd8f8639.entry.js.map +0 -1
- package/dist/catalyst/scss/fonts/_fonts.mixins.azeret.scss +0 -14
- package/dist/catalyst/scss/fonts/_fonts.mixins.dm.scss +0 -53
- package/dist/cjs/index-c4542095.js.map +0 -1
- package/dist/collection/assets/fonts/AzeretMono-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Italic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Regular.woff2 +0 -0
- package/dist/collection/components/cat-form-hint/cat-form-hint-utils.js +0 -13
- package/dist/collection/components/cat-form-hint/cat-form-hint-utils.js.map +0 -1
- package/dist/collection/scss/fonts/_fonts.mixins.azeret.scss +0 -14
- package/dist/collection/scss/fonts/_fonts.mixins.dm.scss +0 -53
- package/dist/components/cat-form-hint-utils.js +0 -17
- package/dist/components/cat-form-hint-utils.js.map +0 -1
- package/dist/esm/index-524906f7.js.map +0 -1
- package/dist/types/components/cat-form-hint/cat-form-hint-utils.d.ts +0 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { autoUpdate, computePosition, offset } from '@floating-ui/dom';
|
|
2
|
-
import {
|
|
2
|
+
import { h, Host } from '@stencil/core';
|
|
3
3
|
import autosizeInput from 'autosize-input';
|
|
4
4
|
import log from 'loglevel';
|
|
5
5
|
import { catchError, debounce, distinctUntilChanged, filter, first, of, scan, startWith, Subject, switchMap, takeWhile, tap, timer } from 'rxjs';
|
|
6
|
-
import {
|
|
6
|
+
import { coerceBoolean, coerceNumber } from '../../utils/coerce';
|
|
7
|
+
import { CatFormHint } from '../cat-form-hint/cat-form-hint';
|
|
7
8
|
import { catI18nRegistry as i18n } from '../cat-i18n/cat-i18n-registry';
|
|
8
9
|
const INIT_STATE = {
|
|
9
10
|
term: '',
|
|
@@ -31,54 +32,31 @@ export class CatSelect {
|
|
|
31
32
|
this.term$ = new Subject();
|
|
32
33
|
this.more$ = new Subject();
|
|
33
34
|
this.valueChangedBySelection = false;
|
|
35
|
+
this.connector = undefined;
|
|
34
36
|
this.state = INIT_STATE;
|
|
35
37
|
this.hasSlottedLabel = false;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*/
|
|
38
|
+
this.hasSlottedHint = false;
|
|
39
|
+
this.errorMap = undefined;
|
|
39
40
|
this.requiredMarker = 'optional';
|
|
40
|
-
/**
|
|
41
|
-
* Enable multiple selection.
|
|
42
|
-
*/
|
|
43
41
|
this.multiple = false;
|
|
44
|
-
/**
|
|
45
|
-
* The debounce time for the search.
|
|
46
|
-
*/
|
|
47
42
|
this.debounce = 250;
|
|
48
|
-
/**
|
|
49
|
-
* The placement of the select.
|
|
50
|
-
*/
|
|
51
43
|
this.placement = 'bottom-start';
|
|
52
|
-
|
|
53
|
-
* Whether the select is disabled.
|
|
54
|
-
*/
|
|
44
|
+
this.value = undefined;
|
|
55
45
|
this.disabled = false;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
this.placeholder = undefined;
|
|
47
|
+
this.hint = undefined;
|
|
48
|
+
this.identifier = undefined;
|
|
59
49
|
this.label = '';
|
|
60
|
-
|
|
61
|
-
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
62
|
-
*/
|
|
50
|
+
this.name = undefined;
|
|
63
51
|
this.labelHidden = false;
|
|
64
|
-
/**
|
|
65
|
-
* A value is required or must be checked for the form to be submittable.
|
|
66
|
-
*/
|
|
67
52
|
this.required = false;
|
|
68
|
-
/**
|
|
69
|
-
* Whether the select should show a clear button.
|
|
70
|
-
*/
|
|
71
53
|
this.clearable = false;
|
|
72
|
-
/**
|
|
73
|
-
* Whether the select should add new items.
|
|
74
|
-
*/
|
|
75
54
|
this.tags = false;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
* errors on change with the given delay in milliseconds.
|
|
80
|
-
*/
|
|
55
|
+
this.tagHint = undefined;
|
|
56
|
+
this.noItems = undefined;
|
|
57
|
+
this.errors = undefined;
|
|
81
58
|
this.errorUpdate = 0;
|
|
59
|
+
this.nativeAttributes = undefined;
|
|
82
60
|
}
|
|
83
61
|
get id() {
|
|
84
62
|
return this.identifier || this._id;
|
|
@@ -91,12 +69,12 @@ export class CatSelect {
|
|
|
91
69
|
!this.valueChangedBySelection ? this.resolve() : (this.valueChangedBySelection = false);
|
|
92
70
|
}
|
|
93
71
|
watchErrorsHandler(value) {
|
|
94
|
-
if (this.errorUpdate === false) {
|
|
72
|
+
if (coerceBoolean(this.errorUpdate) === false) {
|
|
95
73
|
this.errorMap = undefined;
|
|
96
74
|
}
|
|
97
75
|
else {
|
|
98
76
|
this.errorMapSrc = Array.isArray(value)
|
|
99
|
-
? value.
|
|
77
|
+
? value.reduce((acc, err) => (Object.assign(Object.assign({}, acc), { [err]: undefined })), {})
|
|
100
78
|
: value === true
|
|
101
79
|
? {}
|
|
102
80
|
: value || undefined;
|
|
@@ -142,9 +120,10 @@ export class CatSelect {
|
|
|
142
120
|
this.value = newValue;
|
|
143
121
|
}
|
|
144
122
|
this.catChange.emit();
|
|
145
|
-
|
|
123
|
+
const errorUpdate = coerceNumber(this.errorUpdate, null);
|
|
124
|
+
if (errorUpdate !== null) {
|
|
146
125
|
typeof this.errorUpdateTimeoutId === 'number' && window.clearTimeout(this.errorUpdateTimeoutId);
|
|
147
|
-
this.errorUpdateTimeoutId = window.setTimeout(() => (this.errorMap = this.errorMapSrc),
|
|
126
|
+
this.errorUpdateTimeoutId = window.setTimeout(() => (this.errorMap = this.errorMapSrc), errorUpdate);
|
|
148
127
|
}
|
|
149
128
|
}
|
|
150
129
|
}
|
|
@@ -152,13 +131,11 @@ export class CatSelect {
|
|
|
152
131
|
if (this.input) {
|
|
153
132
|
autosizeInput(this.input);
|
|
154
133
|
}
|
|
155
|
-
if (this.trigger && this.dropdown) {
|
|
156
|
-
autoUpdate(this.trigger, this.dropdown, () => this.update());
|
|
157
|
-
}
|
|
158
134
|
}
|
|
159
135
|
componentWillRender() {
|
|
160
136
|
this.watchErrorsHandler(this.errors);
|
|
161
137
|
this.hasSlottedLabel = !!this.hostElement.querySelector('[slot="label"]');
|
|
138
|
+
this.hasSlottedHint = !!this.hostElement.querySelector('[slot="hint"]');
|
|
162
139
|
if (!this.label && !this.hasSlottedLabel) {
|
|
163
140
|
log.warn('[A11y] Missing ARIA label on select', this);
|
|
164
141
|
}
|
|
@@ -175,7 +152,7 @@ export class CatSelect {
|
|
|
175
152
|
this.hide();
|
|
176
153
|
this.patchState({ activeSelectionIndex: -1 });
|
|
177
154
|
this.catBlur.emit(event);
|
|
178
|
-
if (this.errorUpdate !== false) {
|
|
155
|
+
if (`${this.errorUpdate}` !== 'false') {
|
|
179
156
|
this.errorMap = this.errorMapSrc;
|
|
180
157
|
}
|
|
181
158
|
}
|
|
@@ -297,49 +274,20 @@ export class CatSelect {
|
|
|
297
274
|
}
|
|
298
275
|
render() {
|
|
299
276
|
var _a, _b;
|
|
300
|
-
return (h(Host, null,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
h("
|
|
314
|
-
this.multiple && this.state.selection.length ? (h("div", { id: `select-pillbox-${this.id}`, role: "listbox", "aria-orientation": "horizontal", class: "select-pills" }, this.state.selection.map((item, i) => {
|
|
315
|
-
var _a;
|
|
316
|
-
return (h("span", { class: {
|
|
317
|
-
pill: true,
|
|
318
|
-
'select-no-open': true,
|
|
319
|
-
'select-option-active': this.state.activeSelectionIndex === i
|
|
320
|
-
}, role: "option", "aria-selected": "true", id: `select-${this.id}-selection-${i}` },
|
|
321
|
-
item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_a = item.render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null,
|
|
322
|
-
h("span", null, item.render.label),
|
|
323
|
-
!this.disabled && (h("cat-button", { size: "xs", variant: "text", icon: "16-cross", iconOnly: true, a11yLabel: i18n.t('select.deselect'), onClick: () => this.deselect(item.item.id), tabIndex: -1 }))));
|
|
324
|
-
}))) : this.state.selection.length && this.state.selection[0].render.avatar ? (h("cat-avatar", { label: this.state.selection[0].render.label, round: this.state.selection[0].render.avatar.round, src: this.state.selection[0].render.avatar.src, initials: (_a = this.state.selection[0].render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null,
|
|
325
|
-
h("input", Object.assign({}, this.nativeAttributes, { class: "select-input", ref: el => (this.input = el), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-activedescendant": this.activeDescendant, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": ((_b = this.hint) === null || _b === void 0 ? void 0 : _b.length) ? this.id + '-hint' : undefined, onInput: () => this.onInput(), value: !this.multiple ? this.state.term : undefined, placeholder: this.placeholder, disabled: this.disabled || this.state.isResolving }))),
|
|
326
|
-
this.state.isResolving && h("cat-spinner", null),
|
|
327
|
-
this.invalid && (h("cat-icon", { icon: "alert-circle-outlined", class: "icon-suffix cat-text-danger", size: "l" })),
|
|
328
|
-
(this.state.selection.length || this.state.term.length) &&
|
|
329
|
-
!this.disabled &&
|
|
330
|
-
!this.state.isResolving &&
|
|
331
|
-
this.clearable ? (h("cat-button", { id: `select-clear-btn-${this.id}`, iconOnly: true, icon: "cross-circle-outlined", variant: "text", size: "s", a11yLabel: i18n.t('input.clear'), onClick: () => this.clear() })) : null,
|
|
332
|
-
!this.state.isResolving && (h("cat-button", { iconOnly: true, icon: "chevron-down-outlined", class: { 'select-btn': true, 'select-btn-open': this.state.isOpen }, variant: "text", size: "s", a11yLabel: this.state.isOpen ? i18n.t('select.close') : i18n.t('select.open'), "aria-controls": `select-listbox-${this.id}`, "aria-expanded": this.state.isOpen, tabIndex: -1, disabled: this.disabled || this.state.isResolving }))),
|
|
333
|
-
buildHintSection(this.hostElement, this.id, this.hint, this.errorMap),
|
|
334
|
-
h("div", { class: "select-dropdown", ref: el => (this.dropdown = el), style: { display: this.state.isOpen ? 'block' : undefined } }, this.state.isOpen && (h("cat-scrollable", { class: "select-options-wrapper", scrolledBuffer: 56, noOverflowX: true, noOverscroll: true, noScrolledInit: true, onScrolledBottom: () => this.more$.next() },
|
|
335
|
-
h("ul", { class: "select-options", role: "listbox", "aria-multiselectable": this.multiple, "aria-setsize": this.state.totalElements, id: `select-listbox-${this.id}` },
|
|
336
|
-
this.optionsList,
|
|
337
|
-
this.state.isLoading
|
|
338
|
-
? Array.from(Array(CatSelect.SKELETON_COUNT)).map(() => (h("li", { class: "select-option-loading" },
|
|
339
|
-
h("cat-skeleton", { variant: "body", lines: 1 }),
|
|
340
|
-
h("cat-skeleton", { variant: "body", lines: 1 }))))
|
|
341
|
-
: !this.state.options.length &&
|
|
342
|
-
!this.tags && (h("li", { class: "select-option-empty" }, this.noItems ? this.noItems : i18n.t('select.empty')))))))));
|
|
277
|
+
return (h(Host, null, (this.hasSlottedLabel || this.label) && (h("label", { htmlFor: this.id, class: { hidden: this.labelHidden } }, h("span", { part: "label" }, (this.hasSlottedLabel && h("slot", { name: "label" })) || this.label, !this.required && this.requiredMarker.startsWith('optional') && (h("span", { class: "input-optional", "aria-hidden": "true" }, "(", i18n.t('input.optional'), ")")), this.required && this.requiredMarker.startsWith('required') && (h("span", { class: "input-optional", "aria-hidden": "true" }, "(", i18n.t('input.required'), ")"))))), h("div", { class: { 'select-wrapper': true, 'select-disabled': this.disabled, 'select-invalid': this.invalid }, ref: el => (this.trigger = el), id: this.id, role: "combobox", "aria-expanded": this.state.isOpen || this.isPillboxActive(), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-required": this.required ? 'true' : false, "aria-activedescendant": this.activeDescendant, onClick: e => this.onClick(e) }, h("div", { class: "select-wrapper-inner" }, this.multiple && this.state.selection.length ? (h("div", { id: `select-pillbox-${this.id}`, role: "listbox", "aria-orientation": "horizontal", class: "select-pills" }, this.state.selection.map((item, i) => {
|
|
278
|
+
var _a;
|
|
279
|
+
return (h("span", { class: {
|
|
280
|
+
pill: true,
|
|
281
|
+
'select-no-open': true,
|
|
282
|
+
'select-option-active': this.state.activeSelectionIndex === i
|
|
283
|
+
}, role: "option", "aria-selected": "true", id: `select-${this.id}-selection-${i}` }, item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_a = item.render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null, h("span", null, item.render.label), !this.disabled && (h("cat-button", { size: "xs", variant: "text", icon: "16-cross", iconOnly: true, a11yLabel: i18n.t('select.deselect'), onClick: () => this.deselect(item.item.id), tabIndex: -1 }))));
|
|
284
|
+
}))) : this.state.selection.length && this.state.selection[0].render.avatar ? (h("cat-avatar", { label: this.state.selection[0].render.label, round: this.state.selection[0].render.avatar.round, src: this.state.selection[0].render.avatar.src, initials: (_a = this.state.selection[0].render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null, h("input", Object.assign({}, this.nativeAttributes, { class: "select-input", ref: el => (this.input = el), "aria-controls": this.isPillboxActive() ? `select-pillbox-${this.id}` : `select-listbox-${this.id}`, "aria-activedescendant": this.activeDescendant, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": ((_b = this.hint) === null || _b === void 0 ? void 0 : _b.length) ? this.id + '-hint' : undefined, onInput: this.onInput.bind(this), value: !this.multiple ? this.state.term : undefined, placeholder: this.placeholder, disabled: this.disabled || this.state.isResolving }))), this.state.isResolving && h("cat-spinner", null), this.invalid && (h("cat-icon", { icon: "alert-circle-outlined", class: "icon-suffix cat-text-danger", size: "l" })), (this.state.selection.length || this.state.term.length) &&
|
|
285
|
+
!this.disabled &&
|
|
286
|
+
!this.state.isResolving &&
|
|
287
|
+
this.clearable ? (h("cat-button", { id: `select-clear-btn-${this.id}`, iconOnly: true, icon: "cross-circle-outlined", variant: "text", size: "s", a11yLabel: i18n.t('input.clear'), onClick: () => this.clear() })) : null, !this.state.isResolving && (h("cat-button", { iconOnly: true, icon: "chevron-down-outlined", class: { 'select-btn': true, 'select-btn-open': this.state.isOpen }, variant: "text", size: "s", a11yLabel: this.state.isOpen ? i18n.t('select.close') : i18n.t('select.open'), "aria-controls": `select-listbox-${this.id}`, "aria-expanded": this.state.isOpen, tabIndex: -1, disabled: this.disabled || this.state.isResolving }))), (this.hint || this.hasSlottedHint || !!Object.keys(this.errorMap || {}).length) && (h(CatFormHint, { id: this.id, hint: this.hint, slottedHint: this.hasSlottedHint && h("slot", { name: "hint" }), errorMap: this.errorMap })), h("div", { class: "select-dropdown", ref: el => (this.dropdown = el), style: { display: this.state.isOpen ? 'block' : undefined } }, this.state.isOpen && (h("cat-scrollable", { class: "select-options-wrapper", scrolledBuffer: 56, noOverflowX: true, noOverscroll: true, noScrolledInit: true, onScrolledBottom: () => this.more$.next() }, h("ul", { class: "select-options", role: "listbox", "aria-multiselectable": this.multiple, "aria-setsize": this.state.totalElements, id: `select-listbox-${this.id}` }, this.optionsList, this.state.isLoading
|
|
288
|
+
? Array.from(Array(CatSelect.SKELETON_COUNT)).map(() => (h("li", { class: "select-option-loading" }, h("cat-skeleton", { variant: "body", lines: 1 }), h("cat-skeleton", { variant: "body", lines: 1 }))))
|
|
289
|
+
: !this.state.options.length &&
|
|
290
|
+
!this.tags && (h("li", { class: "select-option-empty" }, this.noItems ? this.noItems : i18n.t('select.empty')))))))));
|
|
343
291
|
}
|
|
344
292
|
get invalid() {
|
|
345
293
|
return !!this.errorMap;
|
|
@@ -358,20 +306,11 @@ export class CatSelect {
|
|
|
358
306
|
return (h("li", { role: "option", class: "select-option", id: `select-${this.id}-option-${i}`, "aria-selected": isOptionSelected ? 'true' : 'false' }, this.multiple ? (h("cat-checkbox", { class: { 'select-option-active': this.state.activeOptionIndex === i }, checked: isOptionSelected, tabIndex: -1, labelLeft: true, onFocus: () => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }, onCatChange: e => {
|
|
359
307
|
!isTagOption ? this.toggle(item) : this.toggleTag(item);
|
|
360
308
|
e.stopPropagation();
|
|
361
|
-
} },
|
|
362
|
-
h("span", { slot: "label", class: "select-option-inner" },
|
|
363
|
-
item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_a = item.render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null,
|
|
364
|
-
h("span", { class: "select-option-text" },
|
|
365
|
-
h("span", { class: "select-option-label" }, getLabel()),
|
|
366
|
-
h("span", { class: "select-option-description" }, item.render.description))))) : (h("div", { class: {
|
|
309
|
+
} }, h("span", { slot: "label", class: "select-option-inner" }, item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_a = item.render.avatar.initials) !== null && _a !== void 0 ? _a : '' })) : null, h("span", { class: "select-option-text" }, h("span", { class: "select-option-label" }, getLabel()), h("span", { class: "select-option-description" }, item.render.description))))) : (h("div", { class: {
|
|
367
310
|
'select-option-inner': true,
|
|
368
311
|
'select-option-single': true,
|
|
369
312
|
'select-option-active': this.state.activeOptionIndex === i
|
|
370
|
-
}, onFocus: () => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }, onClick: () => (isTagOption ? this.createTag(item.render.label) : this.select(item)), tabIndex: -1 },
|
|
371
|
-
item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_b = item.render.avatar.initials) !== null && _b !== void 0 ? _b : '' })) : null,
|
|
372
|
-
h("span", { class: "select-option-text" },
|
|
373
|
-
h("span", { class: "select-option-label" }, getLabel()),
|
|
374
|
-
h("span", { class: "select-option-description" }, item.render.description))))));
|
|
313
|
+
}, onFocus: () => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }, onClick: () => (isTagOption ? this.createTag(item.render.label) : this.select(item)), tabIndex: -1 }, item.render.avatar ? (h("cat-avatar", { label: item.render.label, round: item.render.avatar.round, src: item.render.avatar.src, initials: (_b = item.render.avatar.initials) !== null && _b !== void 0 ? _b : '' })) : null, h("span", { class: "select-option-text" }, h("span", { class: "select-option-label" }, getLabel()), h("span", { class: "select-option-description" }, item.render.description))))));
|
|
375
314
|
});
|
|
376
315
|
}
|
|
377
316
|
resolve() {
|
|
@@ -416,12 +355,17 @@ export class CatSelect {
|
|
|
416
355
|
this.catOpen.emit();
|
|
417
356
|
this.term$.next(this.state.term);
|
|
418
357
|
(_a = this.input) === null || _a === void 0 ? void 0 : _a.classList.remove('select-input-transparent-caret');
|
|
358
|
+
if (this.trigger && this.dropdown) {
|
|
359
|
+
this.cleanupAutoUpdate = autoUpdate(this.trigger, this.dropdown, () => this.update());
|
|
360
|
+
}
|
|
419
361
|
}
|
|
420
362
|
}
|
|
421
363
|
hide() {
|
|
364
|
+
var _a;
|
|
422
365
|
if (this.state.isOpen) {
|
|
423
366
|
this.patchState({ isOpen: false, activeOptionIndex: -1 });
|
|
424
367
|
this.catClose.emit();
|
|
368
|
+
(_a = this.cleanupAutoUpdate) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
425
369
|
}
|
|
426
370
|
}
|
|
427
371
|
search(term) {
|
|
@@ -660,530 +604,551 @@ export class CatSelect {
|
|
|
660
604
|
}
|
|
661
605
|
static get is() { return "cat-select"; }
|
|
662
606
|
static get encapsulation() { return "shadow"; }
|
|
663
|
-
static get originalStyleUrls() {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
"
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
"original": "boolean",
|
|
693
|
-
"resolved": "boolean",
|
|
694
|
-
"references": {}
|
|
695
|
-
},
|
|
696
|
-
"required": false,
|
|
697
|
-
"optional": false,
|
|
698
|
-
"docs": {
|
|
699
|
-
"tags": [],
|
|
700
|
-
"text": "Enable multiple selection."
|
|
607
|
+
static get originalStyleUrls() {
|
|
608
|
+
return {
|
|
609
|
+
"$": ["cat-select.scss"]
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
static get styleUrls() {
|
|
613
|
+
return {
|
|
614
|
+
"$": ["cat-select.css"]
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
static get properties() {
|
|
618
|
+
return {
|
|
619
|
+
"requiredMarker": {
|
|
620
|
+
"type": "string",
|
|
621
|
+
"mutable": false,
|
|
622
|
+
"complexType": {
|
|
623
|
+
"original": "'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!'",
|
|
624
|
+
"resolved": "\"none!\" | \"none\" | \"optional!\" | \"optional\" | \"required!\" | \"required\"",
|
|
625
|
+
"references": {}
|
|
626
|
+
},
|
|
627
|
+
"required": false,
|
|
628
|
+
"optional": false,
|
|
629
|
+
"docs": {
|
|
630
|
+
"tags": [],
|
|
631
|
+
"text": "Whether the label need a marker to shown if the select is required or optional."
|
|
632
|
+
},
|
|
633
|
+
"attribute": "required-marker",
|
|
634
|
+
"reflect": false,
|
|
635
|
+
"defaultValue": "'optional'"
|
|
701
636
|
},
|
|
702
|
-
"
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
"
|
|
711
|
-
"
|
|
712
|
-
"
|
|
637
|
+
"multiple": {
|
|
638
|
+
"type": "boolean",
|
|
639
|
+
"mutable": false,
|
|
640
|
+
"complexType": {
|
|
641
|
+
"original": "boolean",
|
|
642
|
+
"resolved": "boolean",
|
|
643
|
+
"references": {}
|
|
644
|
+
},
|
|
645
|
+
"required": false,
|
|
646
|
+
"optional": false,
|
|
647
|
+
"docs": {
|
|
648
|
+
"tags": [],
|
|
649
|
+
"text": "Enable multiple selection."
|
|
650
|
+
},
|
|
651
|
+
"attribute": "multiple",
|
|
652
|
+
"reflect": false,
|
|
653
|
+
"defaultValue": "false"
|
|
713
654
|
},
|
|
714
|
-
"
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
"
|
|
718
|
-
|
|
655
|
+
"debounce": {
|
|
656
|
+
"type": "number",
|
|
657
|
+
"mutable": false,
|
|
658
|
+
"complexType": {
|
|
659
|
+
"original": "number",
|
|
660
|
+
"resolved": "number",
|
|
661
|
+
"references": {}
|
|
662
|
+
},
|
|
663
|
+
"required": false,
|
|
664
|
+
"optional": false,
|
|
665
|
+
"docs": {
|
|
666
|
+
"tags": [],
|
|
667
|
+
"text": "The debounce time for the search."
|
|
668
|
+
},
|
|
669
|
+
"attribute": "debounce",
|
|
670
|
+
"reflect": false,
|
|
671
|
+
"defaultValue": "250"
|
|
719
672
|
},
|
|
720
|
-
"
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
"Placement": {
|
|
732
|
-
"location": "import",
|
|
733
|
-
"path": "@floating-ui/dom"
|
|
673
|
+
"placement": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"mutable": false,
|
|
676
|
+
"complexType": {
|
|
677
|
+
"original": "Placement",
|
|
678
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
679
|
+
"references": {
|
|
680
|
+
"Placement": {
|
|
681
|
+
"location": "import",
|
|
682
|
+
"path": "@floating-ui/dom"
|
|
683
|
+
}
|
|
734
684
|
}
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
685
|
+
},
|
|
686
|
+
"required": false,
|
|
687
|
+
"optional": false,
|
|
688
|
+
"docs": {
|
|
689
|
+
"tags": [],
|
|
690
|
+
"text": "The placement of the select."
|
|
691
|
+
},
|
|
692
|
+
"attribute": "placement",
|
|
693
|
+
"reflect": false,
|
|
694
|
+
"defaultValue": "'bottom-start'"
|
|
742
695
|
},
|
|
743
|
-
"
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
"location": "local"
|
|
696
|
+
"value": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"mutable": true,
|
|
699
|
+
"complexType": {
|
|
700
|
+
"original": "string | string[] | CatSelectTaggingValue | CatSelectMultipleTaggingValue",
|
|
701
|
+
"resolved": "CatSelectMultipleTaggingValue | CatSelectTaggingValue | string | string[] | undefined",
|
|
702
|
+
"references": {
|
|
703
|
+
"CatSelectTaggingValue": {
|
|
704
|
+
"location": "local",
|
|
705
|
+
"path": "/Users/fynn/Workspace/catalyst/core/src/components/cat-select/cat-select.tsx"
|
|
706
|
+
},
|
|
707
|
+
"CatSelectMultipleTaggingValue": {
|
|
708
|
+
"location": "local",
|
|
709
|
+
"path": "/Users/fynn/Workspace/catalyst/core/src/components/cat-select/cat-select.tsx"
|
|
710
|
+
}
|
|
759
711
|
}
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
"reflect": false
|
|
770
|
-
},
|
|
771
|
-
"disabled": {
|
|
772
|
-
"type": "boolean",
|
|
773
|
-
"mutable": false,
|
|
774
|
-
"complexType": {
|
|
775
|
-
"original": "boolean",
|
|
776
|
-
"resolved": "boolean",
|
|
777
|
-
"references": {}
|
|
778
|
-
},
|
|
779
|
-
"required": false,
|
|
780
|
-
"optional": false,
|
|
781
|
-
"docs": {
|
|
782
|
-
"tags": [],
|
|
783
|
-
"text": "Whether the select is disabled."
|
|
784
|
-
},
|
|
785
|
-
"attribute": "disabled",
|
|
786
|
-
"reflect": false,
|
|
787
|
-
"defaultValue": "false"
|
|
788
|
-
},
|
|
789
|
-
"placeholder": {
|
|
790
|
-
"type": "string",
|
|
791
|
-
"mutable": false,
|
|
792
|
-
"complexType": {
|
|
793
|
-
"original": "string",
|
|
794
|
-
"resolved": "string | undefined",
|
|
795
|
-
"references": {}
|
|
796
|
-
},
|
|
797
|
-
"required": false,
|
|
798
|
-
"optional": true,
|
|
799
|
-
"docs": {
|
|
800
|
-
"tags": [],
|
|
801
|
-
"text": "The placeholder text to display within the select."
|
|
802
|
-
},
|
|
803
|
-
"attribute": "placeholder",
|
|
804
|
-
"reflect": false
|
|
805
|
-
},
|
|
806
|
-
"hint": {
|
|
807
|
-
"type": "string",
|
|
808
|
-
"mutable": false,
|
|
809
|
-
"complexType": {
|
|
810
|
-
"original": "string | string[]",
|
|
811
|
-
"resolved": "string | string[] | undefined",
|
|
812
|
-
"references": {}
|
|
813
|
-
},
|
|
814
|
-
"required": false,
|
|
815
|
-
"optional": true,
|
|
816
|
-
"docs": {
|
|
817
|
-
"tags": [],
|
|
818
|
-
"text": "Optional hint text(s) to be displayed with the select."
|
|
819
|
-
},
|
|
820
|
-
"attribute": "hint",
|
|
821
|
-
"reflect": false
|
|
822
|
-
},
|
|
823
|
-
"identifier": {
|
|
824
|
-
"type": "string",
|
|
825
|
-
"mutable": false,
|
|
826
|
-
"complexType": {
|
|
827
|
-
"original": "string",
|
|
828
|
-
"resolved": "string | undefined",
|
|
829
|
-
"references": {}
|
|
830
|
-
},
|
|
831
|
-
"required": false,
|
|
832
|
-
"optional": true,
|
|
833
|
-
"docs": {
|
|
834
|
-
"tags": [],
|
|
835
|
-
"text": "A unique identifier for the input."
|
|
836
|
-
},
|
|
837
|
-
"attribute": "identifier",
|
|
838
|
-
"reflect": false
|
|
839
|
-
},
|
|
840
|
-
"label": {
|
|
841
|
-
"type": "string",
|
|
842
|
-
"mutable": false,
|
|
843
|
-
"complexType": {
|
|
844
|
-
"original": "string",
|
|
845
|
-
"resolved": "string",
|
|
846
|
-
"references": {}
|
|
847
|
-
},
|
|
848
|
-
"required": false,
|
|
849
|
-
"optional": false,
|
|
850
|
-
"docs": {
|
|
851
|
-
"tags": [],
|
|
852
|
-
"text": "The label for the select."
|
|
853
|
-
},
|
|
854
|
-
"attribute": "label",
|
|
855
|
-
"reflect": false,
|
|
856
|
-
"defaultValue": "''"
|
|
857
|
-
},
|
|
858
|
-
"name": {
|
|
859
|
-
"type": "string",
|
|
860
|
-
"mutable": false,
|
|
861
|
-
"complexType": {
|
|
862
|
-
"original": "string",
|
|
863
|
-
"resolved": "string | undefined",
|
|
864
|
-
"references": {}
|
|
865
|
-
},
|
|
866
|
-
"required": false,
|
|
867
|
-
"optional": true,
|
|
868
|
-
"docs": {
|
|
869
|
-
"tags": [],
|
|
870
|
-
"text": "The name of the form control. Submitted with the form as part of a name/value pair."
|
|
712
|
+
},
|
|
713
|
+
"required": false,
|
|
714
|
+
"optional": true,
|
|
715
|
+
"docs": {
|
|
716
|
+
"tags": [],
|
|
717
|
+
"text": "The value of the select. <br />\n<br />\nThe value of the select depends on whether it is allowed to choose a single item or several items. <br />\nWhen 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 />\n<br />\nIn 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,\nin 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"
|
|
718
|
+
},
|
|
719
|
+
"attribute": "value",
|
|
720
|
+
"reflect": false
|
|
871
721
|
},
|
|
872
|
-
"
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
"
|
|
881
|
-
"
|
|
722
|
+
"disabled": {
|
|
723
|
+
"type": "boolean",
|
|
724
|
+
"mutable": false,
|
|
725
|
+
"complexType": {
|
|
726
|
+
"original": "boolean",
|
|
727
|
+
"resolved": "boolean",
|
|
728
|
+
"references": {}
|
|
729
|
+
},
|
|
730
|
+
"required": false,
|
|
731
|
+
"optional": false,
|
|
732
|
+
"docs": {
|
|
733
|
+
"tags": [],
|
|
734
|
+
"text": "Whether the select is disabled."
|
|
735
|
+
},
|
|
736
|
+
"attribute": "disabled",
|
|
737
|
+
"reflect": false,
|
|
738
|
+
"defaultValue": "false"
|
|
882
739
|
},
|
|
883
|
-
"
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
"
|
|
887
|
-
|
|
740
|
+
"placeholder": {
|
|
741
|
+
"type": "string",
|
|
742
|
+
"mutable": false,
|
|
743
|
+
"complexType": {
|
|
744
|
+
"original": "string",
|
|
745
|
+
"resolved": "string | undefined",
|
|
746
|
+
"references": {}
|
|
747
|
+
},
|
|
748
|
+
"required": false,
|
|
749
|
+
"optional": true,
|
|
750
|
+
"docs": {
|
|
751
|
+
"tags": [],
|
|
752
|
+
"text": "The placeholder text to display within the select."
|
|
753
|
+
},
|
|
754
|
+
"attribute": "placeholder",
|
|
755
|
+
"reflect": false
|
|
888
756
|
},
|
|
889
|
-
"
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
"
|
|
898
|
-
"
|
|
899
|
-
"
|
|
757
|
+
"hint": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"mutable": false,
|
|
760
|
+
"complexType": {
|
|
761
|
+
"original": "string | string[]",
|
|
762
|
+
"resolved": "string | string[] | undefined",
|
|
763
|
+
"references": {}
|
|
764
|
+
},
|
|
765
|
+
"required": false,
|
|
766
|
+
"optional": true,
|
|
767
|
+
"docs": {
|
|
768
|
+
"tags": [],
|
|
769
|
+
"text": "Optional hint text(s) to be displayed with the select."
|
|
770
|
+
},
|
|
771
|
+
"attribute": "hint",
|
|
772
|
+
"reflect": false
|
|
900
773
|
},
|
|
901
|
-
"
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
"
|
|
905
|
-
|
|
774
|
+
"identifier": {
|
|
775
|
+
"type": "string",
|
|
776
|
+
"mutable": false,
|
|
777
|
+
"complexType": {
|
|
778
|
+
"original": "string",
|
|
779
|
+
"resolved": "string | undefined",
|
|
780
|
+
"references": {}
|
|
781
|
+
},
|
|
782
|
+
"required": false,
|
|
783
|
+
"optional": true,
|
|
784
|
+
"docs": {
|
|
785
|
+
"tags": [],
|
|
786
|
+
"text": "A unique identifier for the input."
|
|
787
|
+
},
|
|
788
|
+
"attribute": "identifier",
|
|
789
|
+
"reflect": false
|
|
906
790
|
},
|
|
907
|
-
"
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
"
|
|
916
|
-
"
|
|
917
|
-
"
|
|
791
|
+
"label": {
|
|
792
|
+
"type": "string",
|
|
793
|
+
"mutable": false,
|
|
794
|
+
"complexType": {
|
|
795
|
+
"original": "string",
|
|
796
|
+
"resolved": "string",
|
|
797
|
+
"references": {}
|
|
798
|
+
},
|
|
799
|
+
"required": false,
|
|
800
|
+
"optional": false,
|
|
801
|
+
"docs": {
|
|
802
|
+
"tags": [],
|
|
803
|
+
"text": "The label for the select."
|
|
804
|
+
},
|
|
805
|
+
"attribute": "label",
|
|
806
|
+
"reflect": false,
|
|
807
|
+
"defaultValue": "''"
|
|
918
808
|
},
|
|
919
|
-
"
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
"
|
|
923
|
-
|
|
809
|
+
"name": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"mutable": false,
|
|
812
|
+
"complexType": {
|
|
813
|
+
"original": "string",
|
|
814
|
+
"resolved": "string | undefined",
|
|
815
|
+
"references": {}
|
|
816
|
+
},
|
|
817
|
+
"required": false,
|
|
818
|
+
"optional": true,
|
|
819
|
+
"docs": {
|
|
820
|
+
"tags": [],
|
|
821
|
+
"text": "The name of the form control. Submitted with the form as part of a name/value pair."
|
|
822
|
+
},
|
|
823
|
+
"attribute": "name",
|
|
824
|
+
"reflect": false
|
|
924
825
|
},
|
|
925
|
-
"
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
"
|
|
934
|
-
"
|
|
935
|
-
"
|
|
826
|
+
"labelHidden": {
|
|
827
|
+
"type": "boolean",
|
|
828
|
+
"mutable": false,
|
|
829
|
+
"complexType": {
|
|
830
|
+
"original": "boolean",
|
|
831
|
+
"resolved": "boolean",
|
|
832
|
+
"references": {}
|
|
833
|
+
},
|
|
834
|
+
"required": false,
|
|
835
|
+
"optional": false,
|
|
836
|
+
"docs": {
|
|
837
|
+
"tags": [],
|
|
838
|
+
"text": "Visually hide the label, but still show it to assistive technologies like screen readers."
|
|
839
|
+
},
|
|
840
|
+
"attribute": "label-hidden",
|
|
841
|
+
"reflect": false,
|
|
842
|
+
"defaultValue": "false"
|
|
936
843
|
},
|
|
937
|
-
"required":
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
"
|
|
941
|
-
|
|
844
|
+
"required": {
|
|
845
|
+
"type": "boolean",
|
|
846
|
+
"mutable": false,
|
|
847
|
+
"complexType": {
|
|
848
|
+
"original": "boolean",
|
|
849
|
+
"resolved": "boolean",
|
|
850
|
+
"references": {}
|
|
851
|
+
},
|
|
852
|
+
"required": false,
|
|
853
|
+
"optional": false,
|
|
854
|
+
"docs": {
|
|
855
|
+
"tags": [],
|
|
856
|
+
"text": "A value is required or must be checked for the form to be submittable."
|
|
857
|
+
},
|
|
858
|
+
"attribute": "required",
|
|
859
|
+
"reflect": false,
|
|
860
|
+
"defaultValue": "false"
|
|
942
861
|
},
|
|
943
|
-
"
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
"
|
|
952
|
-
"
|
|
953
|
-
"
|
|
862
|
+
"clearable": {
|
|
863
|
+
"type": "boolean",
|
|
864
|
+
"mutable": false,
|
|
865
|
+
"complexType": {
|
|
866
|
+
"original": "boolean",
|
|
867
|
+
"resolved": "boolean",
|
|
868
|
+
"references": {}
|
|
869
|
+
},
|
|
870
|
+
"required": false,
|
|
871
|
+
"optional": false,
|
|
872
|
+
"docs": {
|
|
873
|
+
"tags": [],
|
|
874
|
+
"text": "Whether the select should show a clear button."
|
|
875
|
+
},
|
|
876
|
+
"attribute": "clearable",
|
|
877
|
+
"reflect": false,
|
|
878
|
+
"defaultValue": "false"
|
|
954
879
|
},
|
|
955
|
-
"
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
"
|
|
959
|
-
|
|
880
|
+
"tags": {
|
|
881
|
+
"type": "boolean",
|
|
882
|
+
"mutable": false,
|
|
883
|
+
"complexType": {
|
|
884
|
+
"original": "boolean",
|
|
885
|
+
"resolved": "boolean",
|
|
886
|
+
"references": {}
|
|
887
|
+
},
|
|
888
|
+
"required": false,
|
|
889
|
+
"optional": false,
|
|
890
|
+
"docs": {
|
|
891
|
+
"tags": [],
|
|
892
|
+
"text": "Whether the select should add new items."
|
|
893
|
+
},
|
|
894
|
+
"attribute": "tags",
|
|
895
|
+
"reflect": false,
|
|
896
|
+
"defaultValue": "false"
|
|
960
897
|
},
|
|
961
|
-
"
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
"
|
|
970
|
-
"
|
|
898
|
+
"tagHint": {
|
|
899
|
+
"type": "string",
|
|
900
|
+
"mutable": false,
|
|
901
|
+
"complexType": {
|
|
902
|
+
"original": "string",
|
|
903
|
+
"resolved": "string | undefined",
|
|
904
|
+
"references": {}
|
|
905
|
+
},
|
|
906
|
+
"required": false,
|
|
907
|
+
"optional": true,
|
|
908
|
+
"docs": {
|
|
909
|
+
"tags": [],
|
|
910
|
+
"text": "Optional hint text to be displayed on the new item to be added."
|
|
911
|
+
},
|
|
912
|
+
"attribute": "tag-hint",
|
|
913
|
+
"reflect": false
|
|
971
914
|
},
|
|
972
|
-
"
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
"
|
|
976
|
-
|
|
915
|
+
"noItems": {
|
|
916
|
+
"type": "string",
|
|
917
|
+
"mutable": false,
|
|
918
|
+
"complexType": {
|
|
919
|
+
"original": "string",
|
|
920
|
+
"resolved": "string | undefined",
|
|
921
|
+
"references": {}
|
|
922
|
+
},
|
|
923
|
+
"required": false,
|
|
924
|
+
"optional": true,
|
|
925
|
+
"docs": {
|
|
926
|
+
"tags": [],
|
|
927
|
+
"text": "The text to display in the dropdown if no results are found."
|
|
928
|
+
},
|
|
929
|
+
"attribute": "no-items",
|
|
930
|
+
"reflect": false
|
|
977
931
|
},
|
|
978
|
-
"
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
"location": "import",
|
|
990
|
-
"path": "../cat-form-hint/cat-form-hint-utils"
|
|
932
|
+
"errors": {
|
|
933
|
+
"type": "boolean",
|
|
934
|
+
"mutable": false,
|
|
935
|
+
"complexType": {
|
|
936
|
+
"original": "boolean | string[] | ErrorMap",
|
|
937
|
+
"resolved": "boolean | string[] | undefined | { [key: string]: any; }",
|
|
938
|
+
"references": {
|
|
939
|
+
"ErrorMap": {
|
|
940
|
+
"location": "import",
|
|
941
|
+
"path": "../cat-form-hint/cat-form-hint"
|
|
942
|
+
}
|
|
991
943
|
}
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
"reflect": false
|
|
1002
|
-
},
|
|
1003
|
-
"errorUpdate": {
|
|
1004
|
-
"type": "any",
|
|
1005
|
-
"mutable": false,
|
|
1006
|
-
"complexType": {
|
|
1007
|
-
"original": "boolean | number",
|
|
1008
|
-
"resolved": "boolean | number",
|
|
1009
|
-
"references": {}
|
|
1010
|
-
},
|
|
1011
|
-
"required": false,
|
|
1012
|
-
"optional": false,
|
|
1013
|
-
"docs": {
|
|
1014
|
-
"tags": [],
|
|
1015
|
-
"text": "Fine-grained control over when the errors are shown. Can be `false` to\nnever show errors, `true` to show errors on blur, or a number to show\nerrors on change with the given delay in milliseconds."
|
|
944
|
+
},
|
|
945
|
+
"required": false,
|
|
946
|
+
"optional": true,
|
|
947
|
+
"docs": {
|
|
948
|
+
"tags": [],
|
|
949
|
+
"text": "The validation errors for this input. Will render a hint under the input\nwith the translated error message(s) `error.${key}`. If an object is\npassed, the keys will be used as error keys and the values translation\nparameters.\nIf the value is `true`, the input will be marked as invalid without any\nhints under the input."
|
|
950
|
+
},
|
|
951
|
+
"attribute": "errors",
|
|
952
|
+
"reflect": false
|
|
1016
953
|
},
|
|
1017
|
-
"
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
"
|
|
1026
|
-
"
|
|
1027
|
-
"
|
|
954
|
+
"errorUpdate": {
|
|
955
|
+
"type": "any",
|
|
956
|
+
"mutable": false,
|
|
957
|
+
"complexType": {
|
|
958
|
+
"original": "boolean | number",
|
|
959
|
+
"resolved": "boolean | number",
|
|
960
|
+
"references": {}
|
|
961
|
+
},
|
|
962
|
+
"required": false,
|
|
963
|
+
"optional": false,
|
|
964
|
+
"docs": {
|
|
965
|
+
"tags": [],
|
|
966
|
+
"text": "Fine-grained control over when the errors are shown. Can be `false` to\nnever show errors, `true` to show errors on blur, or a number to show\nerrors on change with the given delay in milliseconds."
|
|
967
|
+
},
|
|
968
|
+
"attribute": "error-update",
|
|
969
|
+
"reflect": false,
|
|
970
|
+
"defaultValue": "0"
|
|
1028
971
|
},
|
|
1029
|
-
"
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
"
|
|
1033
|
-
|
|
972
|
+
"nativeAttributes": {
|
|
973
|
+
"type": "unknown",
|
|
974
|
+
"mutable": false,
|
|
975
|
+
"complexType": {
|
|
976
|
+
"original": "{ [key: string]: string }",
|
|
977
|
+
"resolved": "undefined | { [key: string]: string; }",
|
|
978
|
+
"references": {}
|
|
979
|
+
},
|
|
980
|
+
"required": false,
|
|
981
|
+
"optional": true,
|
|
982
|
+
"docs": {
|
|
983
|
+
"tags": [],
|
|
984
|
+
"text": "Attributes that will be added to the native HTML input element."
|
|
985
|
+
}
|
|
1034
986
|
}
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
static get states() {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
"
|
|
1051
|
-
"
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
static get states() {
|
|
990
|
+
return {
|
|
991
|
+
"connector": {},
|
|
992
|
+
"state": {},
|
|
993
|
+
"hasSlottedLabel": {},
|
|
994
|
+
"hasSlottedHint": {},
|
|
995
|
+
"errorMap": {}
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
static get events() {
|
|
999
|
+
return [{
|
|
1000
|
+
"method": "catOpen",
|
|
1001
|
+
"name": "catOpen",
|
|
1002
|
+
"bubbles": true,
|
|
1003
|
+
"cancelable": true,
|
|
1004
|
+
"composed": true,
|
|
1005
|
+
"docs": {
|
|
1006
|
+
"tags": [],
|
|
1007
|
+
"text": "Emitted when the select dropdown is opened."
|
|
1008
|
+
},
|
|
1009
|
+
"complexType": {
|
|
1010
|
+
"original": "FocusEvent",
|
|
1011
|
+
"resolved": "FocusEvent",
|
|
1012
|
+
"references": {
|
|
1013
|
+
"FocusEvent": {
|
|
1014
|
+
"location": "global"
|
|
1015
|
+
}
|
|
1059
1016
|
}
|
|
1060
1017
|
}
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1018
|
+
}, {
|
|
1019
|
+
"method": "catClose",
|
|
1020
|
+
"name": "catClose",
|
|
1021
|
+
"bubbles": true,
|
|
1022
|
+
"cancelable": true,
|
|
1023
|
+
"composed": true,
|
|
1024
|
+
"docs": {
|
|
1025
|
+
"tags": [],
|
|
1026
|
+
"text": "Emitted when the select dropdown is closed."
|
|
1027
|
+
},
|
|
1028
|
+
"complexType": {
|
|
1029
|
+
"original": "FocusEvent",
|
|
1030
|
+
"resolved": "FocusEvent",
|
|
1031
|
+
"references": {
|
|
1032
|
+
"FocusEvent": {
|
|
1033
|
+
"location": "global"
|
|
1034
|
+
}
|
|
1078
1035
|
}
|
|
1079
1036
|
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1037
|
+
}, {
|
|
1038
|
+
"method": "catChange",
|
|
1039
|
+
"name": "catChange",
|
|
1040
|
+
"bubbles": true,
|
|
1041
|
+
"cancelable": true,
|
|
1042
|
+
"composed": true,
|
|
1043
|
+
"docs": {
|
|
1044
|
+
"tags": [],
|
|
1045
|
+
"text": "Emitted when the value is changed."
|
|
1046
|
+
},
|
|
1047
|
+
"complexType": {
|
|
1048
|
+
"original": "any",
|
|
1049
|
+
"resolved": "any",
|
|
1050
|
+
"references": {}
|
|
1051
|
+
}
|
|
1052
|
+
}, {
|
|
1053
|
+
"method": "catBlur",
|
|
1054
|
+
"name": "catBlur",
|
|
1055
|
+
"bubbles": true,
|
|
1056
|
+
"cancelable": true,
|
|
1057
|
+
"composed": true,
|
|
1058
|
+
"docs": {
|
|
1059
|
+
"tags": [],
|
|
1060
|
+
"text": "Emitted when the select loses the focus."
|
|
1061
|
+
},
|
|
1062
|
+
"complexType": {
|
|
1063
|
+
"original": "FocusEvent",
|
|
1064
|
+
"resolved": "FocusEvent",
|
|
1065
|
+
"references": {
|
|
1066
|
+
"FocusEvent": {
|
|
1067
|
+
"location": "global"
|
|
1068
|
+
}
|
|
1112
1069
|
}
|
|
1113
1070
|
}
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
static get methods() {
|
|
1117
|
-
|
|
1118
|
-
"
|
|
1119
|
-
"
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
"
|
|
1129
|
-
"
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
"
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
"
|
|
1071
|
+
}];
|
|
1072
|
+
}
|
|
1073
|
+
static get methods() {
|
|
1074
|
+
return {
|
|
1075
|
+
"connect": {
|
|
1076
|
+
"complexType": {
|
|
1077
|
+
"signature": "(connector: CatSelectConnector) => Promise<void>",
|
|
1078
|
+
"parameters": [{
|
|
1079
|
+
"tags": [{
|
|
1080
|
+
"name": "param",
|
|
1081
|
+
"text": "connector - The {@link CatSelectConnector } of the select."
|
|
1082
|
+
}],
|
|
1083
|
+
"text": "- The {@link CatSelectConnector} of the select."
|
|
1084
|
+
}],
|
|
1085
|
+
"references": {
|
|
1086
|
+
"Promise": {
|
|
1087
|
+
"location": "global"
|
|
1088
|
+
},
|
|
1089
|
+
"CatSelectConnector": {
|
|
1090
|
+
"location": "local",
|
|
1091
|
+
"path": "/Users/fynn/Workspace/catalyst/core/src/components/cat-select/cat-select.tsx"
|
|
1092
|
+
},
|
|
1093
|
+
"Observable": {
|
|
1094
|
+
"location": "import",
|
|
1095
|
+
"path": "rxjs"
|
|
1096
|
+
},
|
|
1097
|
+
"Item": {
|
|
1098
|
+
"location": "local",
|
|
1099
|
+
"path": "/Users/fynn/Workspace/catalyst/core/src/components/cat-select/cat-select.tsx"
|
|
1100
|
+
}
|
|
1137
1101
|
},
|
|
1138
|
-
"
|
|
1139
|
-
"location": "local"
|
|
1140
|
-
}
|
|
1102
|
+
"return": "Promise<void>"
|
|
1141
1103
|
},
|
|
1142
|
-
"
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
}]
|
|
1104
|
+
"docs": {
|
|
1105
|
+
"text": "Connect the functions of the select",
|
|
1106
|
+
"tags": [{
|
|
1107
|
+
"name": "param",
|
|
1108
|
+
"text": "connector - The {@link CatSelectConnector} of the select."
|
|
1109
|
+
}]
|
|
1110
|
+
}
|
|
1150
1111
|
}
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1153
1114
|
static get elementRef() { return "hostElement"; }
|
|
1154
|
-
static get watchers() {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1115
|
+
static get watchers() {
|
|
1116
|
+
return [{
|
|
1117
|
+
"propName": "connector",
|
|
1118
|
+
"methodName": "onConnectorChange"
|
|
1119
|
+
}, {
|
|
1120
|
+
"propName": "value",
|
|
1121
|
+
"methodName": "onValueChange"
|
|
1122
|
+
}, {
|
|
1123
|
+
"propName": "errors",
|
|
1124
|
+
"methodName": "watchErrorsHandler"
|
|
1125
|
+
}, {
|
|
1126
|
+
"propName": "state",
|
|
1127
|
+
"methodName": "onStateChange"
|
|
1128
|
+
}];
|
|
1129
|
+
}
|
|
1130
|
+
static get listeners() {
|
|
1131
|
+
return [{
|
|
1132
|
+
"name": "blur",
|
|
1133
|
+
"method": "onBlur",
|
|
1134
|
+
"target": undefined,
|
|
1135
|
+
"capture": false,
|
|
1136
|
+
"passive": false
|
|
1137
|
+
}, {
|
|
1138
|
+
"name": "keydown",
|
|
1139
|
+
"method": "onKeyDown",
|
|
1140
|
+
"target": undefined,
|
|
1141
|
+
"capture": false,
|
|
1142
|
+
"passive": false
|
|
1143
|
+
}, {
|
|
1144
|
+
"name": "keyup",
|
|
1145
|
+
"method": "onKeyUp",
|
|
1146
|
+
"target": undefined,
|
|
1147
|
+
"capture": false,
|
|
1148
|
+
"passive": false
|
|
1149
|
+
}];
|
|
1150
|
+
}
|
|
1186
1151
|
}
|
|
1187
1152
|
CatSelect.SKELETON_COUNT = 4;
|
|
1188
1153
|
CatSelect.DROPDOWN_OFFSET = 4;
|
|
1189
|
-
//# sourceMappingURL=cat-select.js.map
|
|
1154
|
+
//# sourceMappingURL=cat-select.js.map
|