@haiilo/catalyst 0.14.2 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.cdn.js +42 -15
- package/dist/catalyst/p-311d10a7.entry.js +12 -0
- package/dist/catalyst/p-311d10a7.entry.js.map +1 -0
- package/dist/cjs/{cat-alert_22.cjs.entry.js → cat-alert_24.cjs.entry.js} +2229 -19
- package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/cat-badge/cat-badge.css +5 -5
- package/dist/collection/components/cat-button/cat-button.css +4 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +1 -0
- package/dist/collection/components/cat-input/cat-input.css +1 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.css +0 -1
- package/dist/collection/components/cat-select-remote/cat-select-remote.css +209 -0
- package/dist/collection/components/cat-select-remote/cat-select-remote.js +798 -0
- package/dist/collection/components/cat-select-remote/cat-select-remote.js.map +1 -0
- package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js +1288 -0
- package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js.map +1 -0
- package/dist/collection/index.cdn.js +42 -15
- package/dist/collection/index.js.map +1 -1
- package/dist/components/cat-badge.js +1 -1
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button2.js +1 -1
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox.js +1 -115
- package/dist/components/cat-checkbox.js.map +1 -1
- package/dist/components/cat-checkbox2.js +119 -0
- package/dist/components/cat-checkbox2.js.map +1 -0
- package/dist/components/cat-input.js +1 -1
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-scrollable.js +1 -1355
- package/dist/components/cat-scrollable.js.map +1 -1
- package/dist/components/cat-scrollable2.js +1359 -0
- package/dist/components/cat-scrollable2.js.map +1 -0
- package/dist/components/cat-select-remote-test.d.ts +11 -0
- package/dist/components/cat-select-remote-test.js +1368 -0
- package/dist/components/cat-select-remote-test.js.map +1 -0
- package/dist/components/cat-select-remote.d.ts +11 -0
- package/dist/components/cat-select-remote.js +8 -0
- package/dist/components/cat-select-remote.js.map +1 -0
- package/dist/components/cat-select-remote2.js +982 -0
- package/dist/components/cat-select-remote2.js.map +1 -0
- package/dist/components/cat-skeleton.js +1 -71
- package/dist/components/cat-skeleton.js.map +1 -1
- package/dist/components/cat-skeleton2.js +75 -0
- package/dist/components/cat-skeleton2.js.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/esm/{cat-alert_22.entry.js → cat-alert_24.entry.js} +2228 -20
- package/dist/esm/cat-alert_24.entry.js.map +1 -0
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-select-remote/autosize.d.ts +1 -0
- package/dist/types/components/cat-select-remote/cat-select-remote.d.ts +145 -0
- package/dist/types/components/cat-select-remote-test/cat-select-remote-test.d.ts +6 -0
- package/dist/types/components.d.ts +145 -0
- package/dist/types/index.d.ts +3 -0
- package/package.json +5 -4
- package/dist/catalyst/p-45547af1.entry.js +0 -12
- package/dist/catalyst/p-45547af1.entry.js.map +0 -1
- package/dist/cjs/cat-alert_22.cjs.entry.js.map +0 -1
- package/dist/esm/cat-alert_22.entry.js.map +0 -1
package/dist/esm/catalyst.js
CHANGED
|
@@ -13,7 +13,7 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["cat-
|
|
16
|
+
return bootstrapLazy([["cat-alert_24",[[1,"cat-select-remote-test"],[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"setFocus":[64],"clear":[64]}],[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}],[1,"cat-select",{"label":[1],"labelHidden":[4,"label-hidden"],"required":[4],"items":[16],"value":[1032],"disabled":[4],"multiple":[4],"placeholder":[1],"position":[1],"search":[4],"hint":[1],"hasSlottedLabel":[32]},[[2,"blur","onBlur"]]],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[0,"cat-toast-demo"],[1,"cat-alert",{"color":[1],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-badge",{"variant":[1],"color":[1],"size":[1],"round":[4],"pulse":[4]}],[1,"cat-card"],[1,"cat-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]],[1,"cat-radio",{"checked":[1028],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"setFocus":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"disabled":[4],"hint":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"setFocus":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"setFocus":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select-remote",{"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"setFocus":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
//# sourceMappingURL=catalyst.js.map
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["cat-
|
|
13
|
+
return bootstrapLazy([["cat-alert_24",[[1,"cat-select-remote-test"],[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"setFocus":[64],"clear":[64]}],[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}],[1,"cat-select",{"label":[1],"labelHidden":[4,"label-hidden"],"required":[4],"items":[16],"value":[1032],"disabled":[4],"multiple":[4],"placeholder":[1],"position":[1],"search":[4],"hint":[1],"hasSlottedLabel":[32]},[[2,"blur","onBlur"]]],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[0,"cat-toast-demo"],[1,"cat-alert",{"color":[1],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-badge",{"variant":[1],"color":[1],"size":[1],"round":[4],"pulse":[4]}],[1,"cat-card"],[1,"cat-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]],[1,"cat-radio",{"checked":[1028],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"setFocus":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"disabled":[4],"hint":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"setFocus":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"setFocus":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select-remote",{"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"setFocus":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'autosize-input';
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/dom';
|
|
2
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export interface Item {
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Page<T> {
|
|
8
|
+
content: T[];
|
|
9
|
+
last: boolean;
|
|
10
|
+
totalElements?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface RenderInfo {
|
|
13
|
+
label: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CatSelectRemoteConnector<T extends Item = any> {
|
|
17
|
+
resolve: (id: string[]) => Observable<T[]>;
|
|
18
|
+
retrieve: (term: string, page: number) => Observable<Page<T>>;
|
|
19
|
+
render: (item: T) => RenderInfo;
|
|
20
|
+
}
|
|
21
|
+
export interface CatSelectRemoteState {
|
|
22
|
+
term: string;
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
isLoading: boolean;
|
|
25
|
+
isResolving: boolean;
|
|
26
|
+
options: {
|
|
27
|
+
item: Item;
|
|
28
|
+
render: RenderInfo;
|
|
29
|
+
}[];
|
|
30
|
+
selection: {
|
|
31
|
+
item: Item;
|
|
32
|
+
render: RenderInfo;
|
|
33
|
+
}[];
|
|
34
|
+
activeOptionIndex: number;
|
|
35
|
+
activeSelectionIndex: number;
|
|
36
|
+
totalElements?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare class CatSelectRemote {
|
|
39
|
+
private static readonly SKELETON_COUNT;
|
|
40
|
+
private static readonly DROPDOWN_OFFSET;
|
|
41
|
+
private readonly i18n;
|
|
42
|
+
private readonly id;
|
|
43
|
+
private dropdown?;
|
|
44
|
+
private trigger?;
|
|
45
|
+
private input?;
|
|
46
|
+
private subscription?;
|
|
47
|
+
private term$;
|
|
48
|
+
private more$;
|
|
49
|
+
hostElement: HTMLElement;
|
|
50
|
+
connector?: CatSelectRemoteConnector;
|
|
51
|
+
state: CatSelectRemoteState;
|
|
52
|
+
hasSlottedLabel: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Enable multiple selection.
|
|
55
|
+
*/
|
|
56
|
+
multiple: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The debounce time for the search.
|
|
59
|
+
*/
|
|
60
|
+
debounce: number;
|
|
61
|
+
/**
|
|
62
|
+
* The placement of the select.
|
|
63
|
+
*/
|
|
64
|
+
placement: Placement;
|
|
65
|
+
/**
|
|
66
|
+
* The value of the select.
|
|
67
|
+
*/
|
|
68
|
+
value?: string | string[];
|
|
69
|
+
/**
|
|
70
|
+
* Whether the select is disabled.
|
|
71
|
+
*/
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The placeholder text to display within the select.
|
|
75
|
+
*/
|
|
76
|
+
placeholder?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Optional hint text(s) to be displayed with the select.
|
|
79
|
+
*/
|
|
80
|
+
hint?: string | string[];
|
|
81
|
+
/**
|
|
82
|
+
* The label for the select.
|
|
83
|
+
*/
|
|
84
|
+
label: string;
|
|
85
|
+
/**
|
|
86
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
/**
|
|
90
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
91
|
+
*/
|
|
92
|
+
labelHidden: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* A value is required or must be check for the form to be submittable.
|
|
95
|
+
*/
|
|
96
|
+
required: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Whether the select should show a clear button.
|
|
99
|
+
*/
|
|
100
|
+
clearable: boolean;
|
|
101
|
+
onConnectorChange(connector: CatSelectRemoteConnector): void;
|
|
102
|
+
onStateChange(newState: CatSelectRemoteState, oldState: CatSelectRemoteState): void;
|
|
103
|
+
/**
|
|
104
|
+
* Emitted when the select dropdown is opened.
|
|
105
|
+
*/
|
|
106
|
+
catOpen: EventEmitter<FocusEvent>;
|
|
107
|
+
/**
|
|
108
|
+
* Emitted when the select dropdown is closed.
|
|
109
|
+
*/
|
|
110
|
+
catClose: EventEmitter<FocusEvent>;
|
|
111
|
+
/**
|
|
112
|
+
* Emitted when the value is changed.
|
|
113
|
+
*/
|
|
114
|
+
catChange: EventEmitter;
|
|
115
|
+
/**
|
|
116
|
+
* Emitted when the select loses the focus.
|
|
117
|
+
*/
|
|
118
|
+
catBlur: EventEmitter<FocusEvent>;
|
|
119
|
+
componentDidLoad(): void;
|
|
120
|
+
componentWillRender(): void;
|
|
121
|
+
onBlur(event: FocusEvent): void;
|
|
122
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
123
|
+
onKeyUp(event: KeyboardEvent): void;
|
|
124
|
+
connect(connector: CatSelectRemoteConnector): Promise<void>;
|
|
125
|
+
render(): any;
|
|
126
|
+
private get hintSection();
|
|
127
|
+
private get connectorSafe();
|
|
128
|
+
private resolve;
|
|
129
|
+
private show;
|
|
130
|
+
private hide;
|
|
131
|
+
private search;
|
|
132
|
+
private isSelected;
|
|
133
|
+
private select;
|
|
134
|
+
private deselect;
|
|
135
|
+
private toggle;
|
|
136
|
+
private clear;
|
|
137
|
+
private reset;
|
|
138
|
+
private onClick;
|
|
139
|
+
private onInput;
|
|
140
|
+
private update;
|
|
141
|
+
private patchState;
|
|
142
|
+
private isPillboxActive;
|
|
143
|
+
private get activeDescendant();
|
|
144
|
+
private onArrowKeyDown;
|
|
145
|
+
}
|
|
@@ -9,6 +9,8 @@ import { Breakpoint } from "./utils/breakpoints";
|
|
|
9
9
|
import { InputType } from "./components/cat-input/input-type";
|
|
10
10
|
import { Placement } from "@floating-ui/dom";
|
|
11
11
|
import { CatSelectItem } from "./components/cat-select/cat-select";
|
|
12
|
+
import { CatSelectRemoteConnector, Item } from "./components/cat-select-remote/cat-select-remote";
|
|
13
|
+
import { Observable } from "rxjs";
|
|
12
14
|
export namespace Components {
|
|
13
15
|
interface CatAlert {
|
|
14
16
|
/**
|
|
@@ -474,6 +476,59 @@ export namespace Components {
|
|
|
474
476
|
*/
|
|
475
477
|
"value"?: any;
|
|
476
478
|
}
|
|
479
|
+
interface CatSelectRemote {
|
|
480
|
+
/**
|
|
481
|
+
* Whether the select should show a clear button.
|
|
482
|
+
*/
|
|
483
|
+
"clearable": boolean;
|
|
484
|
+
"connect": (connector: CatSelectRemoteConnector) => Promise<void>;
|
|
485
|
+
/**
|
|
486
|
+
* The debounce time for the search.
|
|
487
|
+
*/
|
|
488
|
+
"debounce": number;
|
|
489
|
+
/**
|
|
490
|
+
* Whether the select is disabled.
|
|
491
|
+
*/
|
|
492
|
+
"disabled": boolean;
|
|
493
|
+
/**
|
|
494
|
+
* Optional hint text(s) to be displayed with the select.
|
|
495
|
+
*/
|
|
496
|
+
"hint"?: string | string[];
|
|
497
|
+
/**
|
|
498
|
+
* The label for the select.
|
|
499
|
+
*/
|
|
500
|
+
"label": string;
|
|
501
|
+
/**
|
|
502
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
503
|
+
*/
|
|
504
|
+
"labelHidden": boolean;
|
|
505
|
+
/**
|
|
506
|
+
* Enable multiple selection.
|
|
507
|
+
*/
|
|
508
|
+
"multiple": boolean;
|
|
509
|
+
/**
|
|
510
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
511
|
+
*/
|
|
512
|
+
"name": string;
|
|
513
|
+
/**
|
|
514
|
+
* The placeholder text to display within the select.
|
|
515
|
+
*/
|
|
516
|
+
"placeholder"?: string;
|
|
517
|
+
/**
|
|
518
|
+
* The placement of the select.
|
|
519
|
+
*/
|
|
520
|
+
"placement": Placement;
|
|
521
|
+
/**
|
|
522
|
+
* A value is required or must be check for the form to be submittable.
|
|
523
|
+
*/
|
|
524
|
+
"required": boolean;
|
|
525
|
+
/**
|
|
526
|
+
* The value of the select.
|
|
527
|
+
*/
|
|
528
|
+
"value"?: string | string[];
|
|
529
|
+
}
|
|
530
|
+
interface CatSelectRemoteTest {
|
|
531
|
+
}
|
|
477
532
|
interface CatSkeleton {
|
|
478
533
|
/**
|
|
479
534
|
* The animation style of the skeleton.
|
|
@@ -701,6 +756,10 @@ export interface CatSelectCustomEvent<T> extends CustomEvent<T> {
|
|
|
701
756
|
detail: T;
|
|
702
757
|
target: HTMLCatSelectElement;
|
|
703
758
|
}
|
|
759
|
+
export interface CatSelectRemoteCustomEvent<T> extends CustomEvent<T> {
|
|
760
|
+
detail: T;
|
|
761
|
+
target: HTMLCatSelectRemoteElement;
|
|
762
|
+
}
|
|
704
763
|
export interface CatTabCustomEvent<T> extends CustomEvent<T> {
|
|
705
764
|
detail: T;
|
|
706
765
|
target: HTMLCatTabElement;
|
|
@@ -798,6 +857,18 @@ declare global {
|
|
|
798
857
|
prototype: HTMLCatSelectElement;
|
|
799
858
|
new (): HTMLCatSelectElement;
|
|
800
859
|
};
|
|
860
|
+
interface HTMLCatSelectRemoteElement extends Components.CatSelectRemote, HTMLStencilElement {
|
|
861
|
+
}
|
|
862
|
+
var HTMLCatSelectRemoteElement: {
|
|
863
|
+
prototype: HTMLCatSelectRemoteElement;
|
|
864
|
+
new (): HTMLCatSelectRemoteElement;
|
|
865
|
+
};
|
|
866
|
+
interface HTMLCatSelectRemoteTestElement extends Components.CatSelectRemoteTest, HTMLStencilElement {
|
|
867
|
+
}
|
|
868
|
+
var HTMLCatSelectRemoteTestElement: {
|
|
869
|
+
prototype: HTMLCatSelectRemoteTestElement;
|
|
870
|
+
new (): HTMLCatSelectRemoteTestElement;
|
|
871
|
+
};
|
|
801
872
|
interface HTMLCatSkeletonElement extends Components.CatSkeleton, HTMLStencilElement {
|
|
802
873
|
}
|
|
803
874
|
var HTMLCatSkeletonElement: {
|
|
@@ -861,6 +932,8 @@ declare global {
|
|
|
861
932
|
"cat-radio-group": HTMLCatRadioGroupElement;
|
|
862
933
|
"cat-scrollable": HTMLCatScrollableElement;
|
|
863
934
|
"cat-select": HTMLCatSelectElement;
|
|
935
|
+
"cat-select-remote": HTMLCatSelectRemoteElement;
|
|
936
|
+
"cat-select-remote-test": HTMLCatSelectRemoteTestElement;
|
|
864
937
|
"cat-skeleton": HTMLCatSkeletonElement;
|
|
865
938
|
"cat-spinner": HTMLCatSpinnerElement;
|
|
866
939
|
"cat-tab": HTMLCatTabElement;
|
|
@@ -1404,6 +1477,74 @@ declare namespace LocalJSX {
|
|
|
1404
1477
|
*/
|
|
1405
1478
|
"value"?: any;
|
|
1406
1479
|
}
|
|
1480
|
+
interface CatSelectRemote {
|
|
1481
|
+
/**
|
|
1482
|
+
* Whether the select should show a clear button.
|
|
1483
|
+
*/
|
|
1484
|
+
"clearable"?: boolean;
|
|
1485
|
+
/**
|
|
1486
|
+
* The debounce time for the search.
|
|
1487
|
+
*/
|
|
1488
|
+
"debounce"?: number;
|
|
1489
|
+
/**
|
|
1490
|
+
* Whether the select is disabled.
|
|
1491
|
+
*/
|
|
1492
|
+
"disabled"?: boolean;
|
|
1493
|
+
/**
|
|
1494
|
+
* Optional hint text(s) to be displayed with the select.
|
|
1495
|
+
*/
|
|
1496
|
+
"hint"?: string | string[];
|
|
1497
|
+
/**
|
|
1498
|
+
* The label for the select.
|
|
1499
|
+
*/
|
|
1500
|
+
"label"?: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* Visually hide the label, but still show it to assistive technologies like screen readers.
|
|
1503
|
+
*/
|
|
1504
|
+
"labelHidden"?: boolean;
|
|
1505
|
+
/**
|
|
1506
|
+
* Enable multiple selection.
|
|
1507
|
+
*/
|
|
1508
|
+
"multiple"?: boolean;
|
|
1509
|
+
/**
|
|
1510
|
+
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
1511
|
+
*/
|
|
1512
|
+
"name"?: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* Emitted when the select loses the focus.
|
|
1515
|
+
*/
|
|
1516
|
+
"onCatBlur"?: (event: CatSelectRemoteCustomEvent<FocusEvent>) => void;
|
|
1517
|
+
/**
|
|
1518
|
+
* Emitted when the value is changed.
|
|
1519
|
+
*/
|
|
1520
|
+
"onCatChange"?: (event: CatSelectRemoteCustomEvent<any>) => void;
|
|
1521
|
+
/**
|
|
1522
|
+
* Emitted when the select dropdown is closed.
|
|
1523
|
+
*/
|
|
1524
|
+
"onCatClose"?: (event: CatSelectRemoteCustomEvent<FocusEvent>) => void;
|
|
1525
|
+
/**
|
|
1526
|
+
* Emitted when the select dropdown is opened.
|
|
1527
|
+
*/
|
|
1528
|
+
"onCatOpen"?: (event: CatSelectRemoteCustomEvent<FocusEvent>) => void;
|
|
1529
|
+
/**
|
|
1530
|
+
* The placeholder text to display within the select.
|
|
1531
|
+
*/
|
|
1532
|
+
"placeholder"?: string;
|
|
1533
|
+
/**
|
|
1534
|
+
* The placement of the select.
|
|
1535
|
+
*/
|
|
1536
|
+
"placement"?: Placement;
|
|
1537
|
+
/**
|
|
1538
|
+
* A value is required or must be check for the form to be submittable.
|
|
1539
|
+
*/
|
|
1540
|
+
"required"?: boolean;
|
|
1541
|
+
/**
|
|
1542
|
+
* The value of the select.
|
|
1543
|
+
*/
|
|
1544
|
+
"value"?: string | string[];
|
|
1545
|
+
}
|
|
1546
|
+
interface CatSelectRemoteTest {
|
|
1547
|
+
}
|
|
1407
1548
|
interface CatSkeleton {
|
|
1408
1549
|
/**
|
|
1409
1550
|
* The animation style of the skeleton.
|
|
@@ -1631,6 +1772,8 @@ declare namespace LocalJSX {
|
|
|
1631
1772
|
"cat-radio-group": CatRadioGroup;
|
|
1632
1773
|
"cat-scrollable": CatScrollable;
|
|
1633
1774
|
"cat-select": CatSelect;
|
|
1775
|
+
"cat-select-remote": CatSelectRemote;
|
|
1776
|
+
"cat-select-remote-test": CatSelectRemoteTest;
|
|
1634
1777
|
"cat-skeleton": CatSkeleton;
|
|
1635
1778
|
"cat-spinner": CatSpinner;
|
|
1636
1779
|
"cat-tab": CatTab;
|
|
@@ -1659,6 +1802,8 @@ declare module "@stencil/core" {
|
|
|
1659
1802
|
"cat-radio-group": LocalJSX.CatRadioGroup & JSXBase.HTMLAttributes<HTMLCatRadioGroupElement>;
|
|
1660
1803
|
"cat-scrollable": LocalJSX.CatScrollable & JSXBase.HTMLAttributes<HTMLCatScrollableElement>;
|
|
1661
1804
|
"cat-select": LocalJSX.CatSelect & JSXBase.HTMLAttributes<HTMLCatSelectElement>;
|
|
1805
|
+
"cat-select-remote": LocalJSX.CatSelectRemote & JSXBase.HTMLAttributes<HTMLCatSelectRemoteElement>;
|
|
1806
|
+
"cat-select-remote-test": LocalJSX.CatSelectRemoteTest & JSXBase.HTMLAttributes<HTMLCatSelectRemoteTestElement>;
|
|
1662
1807
|
"cat-skeleton": LocalJSX.CatSkeleton & JSXBase.HTMLAttributes<HTMLCatSkeletonElement>;
|
|
1663
1808
|
"cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
|
|
1664
1809
|
"cat-tab": LocalJSX.CatTab & JSXBase.HTMLAttributes<HTMLCatTabElement>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,3 +3,6 @@ export { CatI18nRegistry } from './components/cat-i18n/cat-i18n-registry';
|
|
|
3
3
|
export { CatIconRegistry } from './components/cat-icon/cat-icon-registry';
|
|
4
4
|
export { NotificationsService } from './components/cat-notification/cat-notification';
|
|
5
5
|
export { CatSelectItem } from './components/cat-select/cat-select';
|
|
6
|
+
export { CatSelectRemoteConnector } from './components/cat-select-remote/cat-select-remote';
|
|
7
|
+
export { RenderInfo } from './components/cat-select-remote/cat-select-remote';
|
|
8
|
+
export { Page } from './components/cat-select-remote/cat-select-remote';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Catalyst Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,14 +38,15 @@
|
|
|
38
38
|
"reset": "rm -rf ./dist ./loader ./www ./node_modules"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@haiilo/catalyst-icons": ">=0.3.
|
|
41
|
+
"@haiilo/catalyst-icons": ">=0.3.10",
|
|
42
42
|
"rxjs": "^7.5.5"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@floating-ui/dom": "0.4.1",
|
|
46
|
-
"@haiilo/catalyst-tokens": "0.
|
|
46
|
+
"@haiilo/catalyst-tokens": "0.15.1",
|
|
47
47
|
"@stencil/core": "2.17.0",
|
|
48
48
|
"autosize": "5.0.1",
|
|
49
|
+
"autosize-input": "^1.0.2",
|
|
49
50
|
"choices.js": "10.1.0",
|
|
50
51
|
"focus-trap": "6.8.1",
|
|
51
52
|
"loglevel": "1.8.0",
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@babel/core": "^7.16.5",
|
|
58
|
-
"@haiilo/catalyst-icons": "^0.3.
|
|
59
|
+
"@haiilo/catalyst-icons": "^0.3.10",
|
|
59
60
|
"@stencil/angular-output-target": "^0.4.0",
|
|
60
61
|
"@stencil/react-output-target": "^0.3.1",
|
|
61
62
|
"@stencil/sass": "^1.5.2",
|