html-combobox-element 0.0.2 → 0.0.4
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/README.md +123 -0
- package/dist/cjs/combobox/Boolean.attribute.value.normalizer.d.ts +2 -0
- package/dist/cjs/combobox/Combobox.markup.d.ts +35 -0
- package/dist/cjs/combobox/Combobox.markup.js +178 -102
- package/dist/cjs/combobox/HTML.combobox.element.d.ts +60 -0
- package/dist/cjs/combobox/HTML.combobox.element.js +262 -113
- package/dist/cjs/combobox/HTML.combobox.option.element.d.ts +24 -0
- package/dist/cjs/combobox/HTML.combobox.option.element.js +70 -5
- package/dist/cjs/combobox/HTML.combobox.tag.element.d.ts +12 -0
- package/dist/cjs/combobox/HTML.combobox.tag.element.js +26 -7
- package/dist/cjs/combobox/index.d.ts +1 -0
- package/dist/cjs/index.d.ts +253 -0
- package/dist/cjs/index.js +0 -66
- package/dist/cjs/package.json +3 -0
- package/dist/esm/combobox/Combobox.markup.js +178 -102
- package/dist/esm/combobox/HTML.combobox.element.js +262 -113
- package/dist/esm/combobox/HTML.combobox.option.element.js +70 -5
- package/dist/esm/combobox/HTML.combobox.tag.element.js +26 -7
- package/dist/esm/index.js +0 -66
- package/dist/types/combobox/Boolean.attribute.value.normalizer.d.ts +0 -1
- package/dist/types/combobox/Combobox.markup.d.ts +13 -9
- package/dist/types/combobox/HTML.combobox.element.d.ts +10 -5
- package/dist/types/combobox/HTML.combobox.option.element.d.ts +11 -1
- package/dist/types/combobox/HTML.combobox.tag.element.d.ts +9 -2
- package/dist/types/combobox/index.d.ts +0 -1
- package/dist/types/index.d.ts +101 -62
- package/package.json +17 -3
- package/dist/types/combobox/Boolean.attribute.value.normalizer.d.ts.map +0 -1
- package/dist/types/combobox/Combobox.markup.d.ts.map +0 -1
- package/dist/types/combobox/HTML.combobox.element.d.ts.map +0 -1
- package/dist/types/combobox/HTML.combobox.option.element.d.ts.map +0 -1
- package/dist/types/combobox/HTML.combobox.tag.element.d.ts.map +0 -1
- package/dist/types/combobox/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/types.d.ts +0 -198
package/dist/esm/index.js
CHANGED
|
@@ -1,67 +1 @@
|
|
|
1
|
-
/// <reference types="solid-js" />
|
|
2
|
-
/// <reference types="preact" />
|
|
3
|
-
/// <reference types="react" />
|
|
4
|
-
/// <reference types="vue" />
|
|
5
1
|
export * from './combobox/index.js';
|
|
6
|
-
// declare global {
|
|
7
|
-
// namespace React {
|
|
8
|
-
// namespace JSX {
|
|
9
|
-
// interface IntrinsicElements {
|
|
10
|
-
// 'combo-box': React.DetailedHTMLProps<Omit<React.HTMLAttributes<HTMLComboboxElement>, 'defaultValue'>,
|
|
11
|
-
// HTMLComboboxElement
|
|
12
|
-
// > & ComboboxJsxAttributes;
|
|
13
|
-
//
|
|
14
|
-
// 'box-option': React.DetailedHTMLProps<
|
|
15
|
-
// React.HTMLAttributes<HTMLComboboxOptionElement>,
|
|
16
|
-
// HTMLComboboxOptionElement>
|
|
17
|
-
// & ComboboxOptionJsxAttributes;
|
|
18
|
-
//
|
|
19
|
-
// 'box-tag': React.DetailedHTMLProps<React.HTMLAttributes<HTMLComboboxTagElement>, HTMLComboboxTagElement>;
|
|
20
|
-
// }
|
|
21
|
-
// }
|
|
22
|
-
// }
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
// namespace preact {
|
|
26
|
-
// namespace JSX {
|
|
27
|
-
// interface IntrinsicElements {
|
|
28
|
-
// 'combo-box': preact.HTMLAttributes<HTMLComboboxElement> & ComboboxJsxAttributes;
|
|
29
|
-
// 'box-option': preact.HTMLAttributes<HTMLComboboxOptionElement> & ComboboxOptionJsxAttributes;
|
|
30
|
-
// 'box-tag': preact.HTMLAttributes<HTMLComboboxTagElement>;
|
|
31
|
-
// }
|
|
32
|
-
// }
|
|
33
|
-
// }
|
|
34
|
-
//
|
|
35
|
-
// }
|
|
36
|
-
//
|
|
37
|
-
// declare module 'preact' {
|
|
38
|
-
// namespace JSX {
|
|
39
|
-
// interface IntrinsicElements {
|
|
40
|
-
// 'combo-box': preact.HTMLAttributes<HTMLComboboxElement> & ComboboxJsxAttributes;
|
|
41
|
-
// 'box-option': preact.HTMLAttributes<HTMLComboboxOptionElement> & ComboboxOptionJsxAttributes;
|
|
42
|
-
// 'box-tag': preact.HTMLAttributes<HTMLComboboxTagElement>;
|
|
43
|
-
// }
|
|
44
|
-
// }
|
|
45
|
-
// }
|
|
46
|
-
//
|
|
47
|
-
// // Solid
|
|
48
|
-
// declare module 'solid-js' {
|
|
49
|
-
// namespace JSX {
|
|
50
|
-
// interface IntrinsicElements {
|
|
51
|
-
// 'combo-box': HTMLAttributes<HTMLComboboxElement> & ComboboxJsxAttributes
|
|
52
|
-
// 'box-option': HTMLAttributes<HTMLComboboxOptionElement> & ComboboxOptionJsxAttributes
|
|
53
|
-
// 'box-tag': HTMLAttributes<HTMLElement>
|
|
54
|
-
// }
|
|
55
|
-
// }
|
|
56
|
-
// }
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
// declare global {
|
|
60
|
-
// namespace JSX {
|
|
61
|
-
// interface IntrinsicElements {
|
|
62
|
-
// 'combo-box': ComboboxJsxAttributes;
|
|
63
|
-
// 'box-option': ComboboxOptionJsxAttributes;
|
|
64
|
-
// 'box-tag': HTMLElement;
|
|
65
|
-
// }
|
|
66
|
-
// }
|
|
67
|
-
// }
|
|
@@ -9,23 +9,27 @@ export declare class ComboboxMarkup {
|
|
|
9
9
|
placeholder: HTMLDivElement | null;
|
|
10
10
|
searchInput: HTMLInputElement | null;
|
|
11
11
|
tagTemplate: HTMLComboboxTagElement | null;
|
|
12
|
-
options: NodeListOf<HTMLComboboxOptionElement> | null;
|
|
13
|
-
connected: boolean;
|
|
14
12
|
constructor(shadowRoot: ShadowRoot, internals: ElementInternals);
|
|
15
13
|
connect(): void;
|
|
16
|
-
|
|
17
|
-
sort(query: string): void;
|
|
14
|
+
onHostConnected(): void;
|
|
18
15
|
disconnect(): void;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
setPlaceholder(value: string): void;
|
|
17
|
+
setInputValue(value: string): void;
|
|
18
|
+
onClearAllFocusOut: (event: FocusEvent) => void;
|
|
19
|
+
onClickOutside: (ev: MouseEvent) => void;
|
|
20
|
+
sort(query: string): void;
|
|
21
|
+
get options(): NodeListOf<HTMLComboboxOptionElement>;
|
|
22
|
+
getTagControl(tag: HTMLComboboxTagElement): HTMLButtonElement;
|
|
23
|
+
setDropdownPosition(): void;
|
|
24
|
+
showDropdown(): void;
|
|
25
|
+
onFocusIn: () => void;
|
|
22
26
|
closeDropdown(): void;
|
|
23
|
-
|
|
27
|
+
onFocusOut: () => void;
|
|
24
28
|
createAndAppendTag(option: HTMLComboboxOptionElement): HTMLButtonElement;
|
|
25
29
|
getTagByValue(value: string): HTMLComboboxTagElement;
|
|
26
30
|
getOptionByValue(value: string): HTMLComboboxOptionElement;
|
|
27
31
|
get selectedOptions(): NodeListOf<HTMLComboboxOptionElement>;
|
|
28
32
|
static importCSS(urls: string[]): void;
|
|
29
33
|
static template: string;
|
|
34
|
+
static markup: HTMLTemplateElement;
|
|
30
35
|
}
|
|
31
|
-
//# sourceMappingURL=Combobox.markup.d.ts.map
|
|
@@ -4,17 +4,23 @@ export declare class HTMLComboboxElement extends HTMLElement {
|
|
|
4
4
|
static OWN_IDL: Set<string>;
|
|
5
5
|
static observerOptions: {
|
|
6
6
|
childList: boolean;
|
|
7
|
-
attributes: boolean;
|
|
8
|
-
subtree: boolean;
|
|
9
7
|
};
|
|
10
8
|
static styleSheet: CSSStyleSheet[];
|
|
11
9
|
static formAssociated: boolean;
|
|
12
10
|
shadowRoot: ShadowRoot;
|
|
13
11
|
constructor();
|
|
14
12
|
connectedCallback(): void;
|
|
13
|
+
insertBefore: <T extends Node>(node: T, referenceNode: Node | null) => T;
|
|
14
|
+
appendChild: <T extends Node>(node: T) => T;
|
|
15
|
+
append: (...nodes: (Node | string)[]) => void;
|
|
16
|
+
prepend: (...nodes: (Node | string)[]) => void;
|
|
17
|
+
replaceChildren: (...nodes: (Node | string)[]) => void;
|
|
18
|
+
removeChild: <T extends Node>(child: T) => T;
|
|
19
|
+
replaceChild: <T extends Node>(newChild: Node, oldChild: T) => T;
|
|
20
|
+
get changed(): boolean;
|
|
15
21
|
disconnectedCallback(): void;
|
|
16
22
|
formResetCallback(): void;
|
|
17
|
-
formDisabledCallback(
|
|
23
|
+
formDisabledCallback(): void;
|
|
18
24
|
get valueAsArray(): string[];
|
|
19
25
|
get query(): string;
|
|
20
26
|
set query(value: string);
|
|
@@ -36,7 +42,7 @@ export declare class HTMLComboboxElement extends HTMLElement {
|
|
|
36
42
|
get required(): boolean;
|
|
37
43
|
set required(value: boolean);
|
|
38
44
|
get selectedOptions(): NodeListOf<HTMLComboboxOptionElement>;
|
|
39
|
-
get type(): "select-
|
|
45
|
+
get type(): "select-multiple" | "select-one";
|
|
40
46
|
get validationMessage(): string;
|
|
41
47
|
get validity(): ValidityState;
|
|
42
48
|
get willValidate(): boolean;
|
|
@@ -52,4 +58,3 @@ export declare class HTMLComboboxElement extends HTMLElement {
|
|
|
52
58
|
static loadCssFromUrls(urls: string[]): void;
|
|
53
59
|
static loadCssFromDocumentStyleSheets(): void;
|
|
54
60
|
}
|
|
55
|
-
//# sourceMappingURL=HTML.combobox.element.d.ts.map
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
export declare class HTMLComboboxOptionElement extends HTMLElement {
|
|
2
2
|
#private;
|
|
3
3
|
static OWN_IDL: Set<string>;
|
|
4
|
+
static EventInit: {
|
|
5
|
+
bubbles: boolean;
|
|
6
|
+
cancelable: boolean;
|
|
7
|
+
composed: boolean;
|
|
8
|
+
};
|
|
9
|
+
static captureFocus(event: FocusEvent): void;
|
|
10
|
+
static onNavigate(event: KeyboardEvent): void;
|
|
4
11
|
connectedCallback(): void;
|
|
12
|
+
disconnectedCallback(): void;
|
|
5
13
|
get value(): string;
|
|
6
14
|
set value(value: string);
|
|
7
15
|
get label(): string;
|
|
8
16
|
set label(value: string);
|
|
9
17
|
get selected(): boolean;
|
|
10
18
|
set selected(value: boolean);
|
|
19
|
+
get disabled(): boolean;
|
|
20
|
+
set disabled(value: boolean);
|
|
11
21
|
setAttribute(name: string, value: string): void;
|
|
12
22
|
removeAttribute(name: string): void;
|
|
23
|
+
toggleAttribute(name: string, force?: boolean): boolean;
|
|
13
24
|
}
|
|
14
|
-
//# sourceMappingURL=HTML.combobox.option.element.d.ts.map
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export declare class HTMLComboboxTagElement extends HTMLElement {
|
|
2
|
-
|
|
2
|
+
static EventInit: {
|
|
3
|
+
bubbles: boolean;
|
|
4
|
+
cancelable: boolean;
|
|
5
|
+
composed: boolean;
|
|
6
|
+
};
|
|
7
|
+
get value(): string;
|
|
3
8
|
connectedCallback(): void;
|
|
9
|
+
disconnectedCallback(): void;
|
|
10
|
+
static onClearTag(event: Event): void;
|
|
11
|
+
static captureFocus(event: Event): void;
|
|
4
12
|
}
|
|
5
|
-
//# sourceMappingURL=HTML.combobox.tag.element.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -52,17 +52,6 @@ interface HTMLComboboxElement extends HTMLSelectElement {
|
|
|
52
52
|
removeEventListener<K extends keyof ComboboxEventMap>(type: K, listener: (this: HTMLComboboxElement, ev: ComboboxEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
53
53
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
54
54
|
}
|
|
55
|
-
interface ComboboxEvent extends Event {
|
|
56
|
-
readonly target: HTMLComboboxElement;
|
|
57
|
-
readonly currentTarget: HTMLComboboxElement;
|
|
58
|
-
}
|
|
59
|
-
interface ComboboxInputEvent extends InputEvent {
|
|
60
|
-
readonly target: HTMLComboboxElement;
|
|
61
|
-
readonly currentTarget: HTMLComboboxElement;
|
|
62
|
-
}
|
|
63
|
-
interface ComboboxFocusEvent extends FocusEvent {
|
|
64
|
-
readonly target: HTMLComboboxElement;
|
|
65
|
-
}
|
|
66
55
|
interface ComboboxEventMap extends HTMLElementEventMap {
|
|
67
56
|
"change": ComboboxEvent;
|
|
68
57
|
"blur": ComboboxFocusEvent;
|
|
@@ -74,7 +63,8 @@ interface ComboboxEventMap extends HTMLElementEventMap {
|
|
|
74
63
|
"selectionchange": ComboboxEvent;
|
|
75
64
|
"selectstart": ComboboxEvent;
|
|
76
65
|
}
|
|
77
|
-
|
|
66
|
+
/** Own attributes/properties of `<combo-box>`, shared by every JSX integration below. */
|
|
67
|
+
export interface ComboboxJsxAttributes {
|
|
78
68
|
/** The value of the internal input.
|
|
79
69
|
*
|
|
80
70
|
* The internal input is visible when either the `searchable` or `filterable` attribute is present.
|
|
@@ -120,95 +110,144 @@ interface ComboboxJsxAttributes {
|
|
|
120
110
|
required?: boolean;
|
|
121
111
|
disabled?: boolean;
|
|
122
112
|
}
|
|
123
|
-
interface ComboboxOptionJsxAttributes {
|
|
113
|
+
export interface ComboboxOptionJsxAttributes {
|
|
124
114
|
value: string;
|
|
125
115
|
label?: string;
|
|
126
116
|
selected?: boolean;
|
|
127
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Generic HTML/JSX passthrough attributes (class, style, event handlers, `data-*`, `aria-*`, ...).
|
|
120
|
+
*
|
|
121
|
+
* These are intentionally framework-agnostic: they don't reference React's, Preact's, Vue's
|
|
122
|
+
* or Solid's own type packages, so this file never requires any of them to be installed just
|
|
123
|
+
* to be imported. Every framework below layers `ComboboxJsxAttributes`/`ComboboxOptionJsxAttributes`
|
|
124
|
+
* on top of this instead of that framework's own `HTMLAttributes` type.
|
|
125
|
+
*/
|
|
126
|
+
export interface ComboboxCommonAttributes {
|
|
127
|
+
id?: string;
|
|
128
|
+
class?: string;
|
|
129
|
+
className?: string;
|
|
130
|
+
style?: unknown;
|
|
131
|
+
slot?: string;
|
|
132
|
+
title?: string;
|
|
133
|
+
tabIndex?: number;
|
|
134
|
+
hidden?: boolean;
|
|
135
|
+
children?: unknown;
|
|
136
|
+
ref?: unknown;
|
|
137
|
+
key?: string | number;
|
|
138
|
+
onChange?: (event: ComboboxEvent) => void;
|
|
139
|
+
onInput?: (event: ComboboxInputEvent) => void;
|
|
140
|
+
onFocus?: (event: ComboboxFocusEvent) => void;
|
|
141
|
+
onBlur?: (event: ComboboxFocusEvent) => void;
|
|
142
|
+
onInvalid?: (event: ComboboxEvent) => void;
|
|
143
|
+
[key: `data-${string}`]: unknown;
|
|
144
|
+
[key: `aria-${string}`]: unknown;
|
|
145
|
+
[key: `on${string}`]: ((event: any) => void) | undefined;
|
|
146
|
+
}
|
|
128
147
|
declare global {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
'box-tag': React.DetailedHTMLProps<React.HTMLAttributes<HTMLComboboxTagElement>, HTMLComboboxTagElement>;
|
|
134
|
-
}
|
|
148
|
+
interface HTMLElementTagNameMap {
|
|
149
|
+
'combo-box': HTMLComboboxElement;
|
|
150
|
+
'box-option': HTMLComboboxOptionElement;
|
|
151
|
+
'box-tag': HTMLComboboxTagElement;
|
|
135
152
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
'combo-box': React.DetailedHTMLProps<React.HTMLAttributes<HTMLComboboxElement> & ComboboxJsxAttributes, HTMLComboboxElement>;
|
|
140
|
-
'box-option': React.DetailedHTMLProps<React.HTMLAttributes<HTMLComboboxOptionElement> & ComboboxOptionJsxAttributes, HTMLComboboxOptionElement>;
|
|
141
|
-
'box-tag': React.DetailedHTMLProps<React.HTMLAttributes<HTMLComboboxTagElement>, HTMLComboboxTagElement>;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
153
|
+
interface ComboboxEvent extends Event {
|
|
154
|
+
readonly target: HTMLComboboxElement;
|
|
155
|
+
readonly currentTarget: HTMLComboboxElement;
|
|
144
156
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
157
|
+
interface ComboboxInputEvent extends InputEvent {
|
|
158
|
+
readonly target: HTMLComboboxElement;
|
|
159
|
+
readonly currentTarget: HTMLComboboxElement;
|
|
160
|
+
}
|
|
161
|
+
interface ComboboxFocusEvent extends FocusEvent {
|
|
162
|
+
readonly target: HTMLComboboxElement;
|
|
163
|
+
}
|
|
164
|
+
type ComboboxElementAttributes = ComboboxCommonAttributes & ComboboxJsxAttributes;
|
|
165
|
+
type ComboboxOptionElementAttributes = ComboboxCommonAttributes & ComboboxOptionJsxAttributes;
|
|
166
|
+
type ComboboxTagElementAttributes = ComboboxCommonAttributes;
|
|
167
|
+
namespace JSX {
|
|
168
|
+
interface IntrinsicElements {
|
|
169
|
+
'combo-box': ComboboxElementAttributes;
|
|
170
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
171
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
152
172
|
}
|
|
153
173
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
174
|
+
}
|
|
175
|
+
declare module 'react' {
|
|
176
|
+
namespace JSX {
|
|
177
|
+
interface IntrinsicElements {
|
|
178
|
+
'combo-box': ComboboxElementAttributes;
|
|
179
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
180
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
161
181
|
}
|
|
162
182
|
}
|
|
163
|
-
|
|
183
|
+
}
|
|
184
|
+
declare module 'react/jsx-runtime' {
|
|
185
|
+
namespace JSX {
|
|
164
186
|
interface IntrinsicElements {
|
|
165
|
-
'combo-box':
|
|
166
|
-
'box-option':
|
|
167
|
-
'box-tag':
|
|
187
|
+
'combo-box': ComboboxElementAttributes;
|
|
188
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
189
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
168
190
|
}
|
|
169
191
|
}
|
|
170
192
|
}
|
|
171
|
-
declare module 'react' {
|
|
193
|
+
declare module 'react/jsx-dev-runtime' {
|
|
172
194
|
namespace JSX {
|
|
173
195
|
interface IntrinsicElements {
|
|
174
|
-
'combo-box':
|
|
175
|
-
'box-option':
|
|
176
|
-
'box-tag':
|
|
196
|
+
'combo-box': ComboboxElementAttributes;
|
|
197
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
198
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
177
199
|
}
|
|
178
200
|
}
|
|
179
201
|
}
|
|
180
202
|
declare module 'preact' {
|
|
181
203
|
namespace JSX {
|
|
182
204
|
interface IntrinsicElements {
|
|
183
|
-
'combo-box':
|
|
184
|
-
'box-option':
|
|
185
|
-
'box-tag':
|
|
205
|
+
'combo-box': ComboboxElementAttributes;
|
|
206
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
207
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
186
208
|
}
|
|
187
209
|
}
|
|
188
210
|
namespace JSXInternal {
|
|
189
211
|
interface IntrinsicElements {
|
|
190
|
-
'combo-box':
|
|
191
|
-
'box-option':
|
|
192
|
-
'box-tag':
|
|
212
|
+
'combo-box': ComboboxElementAttributes;
|
|
213
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
214
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
declare module 'preact/jsx-runtime' {
|
|
219
|
+
namespace JSX {
|
|
220
|
+
interface IntrinsicElements {
|
|
221
|
+
'combo-box': ComboboxElementAttributes;
|
|
222
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
223
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
193
224
|
}
|
|
194
225
|
}
|
|
195
226
|
}
|
|
196
227
|
declare module 'solid-js' {
|
|
197
228
|
namespace JSX {
|
|
198
229
|
interface IntrinsicElements {
|
|
199
|
-
'combo-box':
|
|
200
|
-
'box-option':
|
|
201
|
-
'box-tag':
|
|
230
|
+
'combo-box': ComboboxElementAttributes;
|
|
231
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
232
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
declare module 'solid-js/jsx-runtime' {
|
|
237
|
+
namespace JSX {
|
|
238
|
+
interface IntrinsicElements {
|
|
239
|
+
'combo-box': ComboboxElementAttributes;
|
|
240
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
241
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
202
242
|
}
|
|
203
243
|
}
|
|
204
244
|
}
|
|
205
245
|
declare module 'vue' {
|
|
206
246
|
namespace JSX {
|
|
207
247
|
interface IntrinsicElements {
|
|
208
|
-
'combo-box':
|
|
209
|
-
'box-option':
|
|
210
|
-
'box-tag':
|
|
248
|
+
'combo-box': ComboboxElementAttributes;
|
|
249
|
+
'box-option': ComboboxOptionElementAttributes;
|
|
250
|
+
'box-tag': ComboboxTagElementAttributes;
|
|
211
251
|
}
|
|
212
252
|
}
|
|
213
253
|
}
|
|
214
|
-
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-combobox-element",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "The combo-box web-component & customizable select polyfill",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"clean": "rm -rf dist",
|
|
9
9
|
"build:combobox": "tsc -b configs/tsconfig.cjs.json configs/tsconfig.esm.json configs/tsconfig.types.json",
|
|
10
10
|
"build": "npm-run-all clean build:combobox",
|
|
11
|
+
"postbuild": "node scripts/fix-dual-package.mjs",
|
|
11
12
|
"check-types": "tsc --noEmit"
|
|
12
13
|
},
|
|
13
14
|
"keywords": [
|
|
@@ -37,9 +38,22 @@
|
|
|
37
38
|
},
|
|
38
39
|
"sideEffect": false,
|
|
39
40
|
"files": [
|
|
40
|
-
"dist"
|
|
41
|
+
"dist",
|
|
42
|
+
"combobox-skill"
|
|
41
43
|
],
|
|
42
44
|
"main": "dist/cjs/index.js",
|
|
43
45
|
"module": "dist/esm/index.js",
|
|
44
|
-
"types": "dist/types/index.d.ts"
|
|
46
|
+
"types": "dist/types/index.d.ts",
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"import": {
|
|
50
|
+
"types": "./dist/types/index.d.ts",
|
|
51
|
+
"default": "./dist/esm/index.js"
|
|
52
|
+
},
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./dist/cjs/index.d.ts",
|
|
55
|
+
"default": "./dist/cjs/index.js"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
45
59
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Boolean.attribute.value.normalizer.d.ts","sourceRoot":"","sources":["../../../src/combobox/Boolean.attribute.value.normalizer.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,WAInC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.markup.d.ts","sourceRoot":"","sources":["../../../src/combobox/Combobox.markup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,qBAAa,cAAc;;IAGzB,aAAa,EAAE,cAAc,GAAG,IAAI,CAAQ;IAC5C,gBAAgB,EAAE,cAAc,GAAG,IAAI,CAAQ;IAC/C,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAChD,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAQ;IACvC,WAAW,EAAE,cAAc,GAAG,IAAI,CAAQ;IAC1C,WAAW,EA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I,WAAW,WAEd;IACD,IAAI,WAAW,CAAC,KAAK,QAAA,EAQpB;IAED,IAAI,SAAS,YAEZ;IACD,IAAI,SAAS,CAAC,KAAK,SAAA,EAElB;IAED,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,CAAC,KAAK,SAAA,EAEnB;IAED,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,CAAC,KAAK,SAAA,EAEnB;IAGD,IAAI,QAAQ,YAEX;IACD,IAAI,QAAQ,CAAC,KAAK,SAAA,EAGjB;IAED,IAAI,IAAI,oBAEP;IAED,IAAI,MAAM,aAET;IAED,IAAI,MAAM,WAET;IAED,IAAI,QAAQ,YAEX;IACD,IAAI,QAAQ,CAAC,KAAK,SAAA,EAEjB;IAKD,IAAI,QAAQ,YAEX;IACD,IAAI,QAAQ,CAAC,KAAK,SAAA,EAGjB;IAID,IAAI,eAAe,0CAElB;IAMD,IAAI,IAAI,qCAEP;IAED,IAAI,iBAAiB,WAEpB;IAED,IAAI,QAAQ,kBAEX;IAED,IAAI,YAAY,YAEf;IAED,IAAI,KAAK,IAGQ,MAAM,CADtB;IACD,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAgCtB;IAQD,aAAa;IAIb,IAAI,CAAC,KAAK,EAAE,MAAM;IASlB,cAAc;IAId,iBAAiB,CAAC,OAAO,EAAE,MAAM;IAQjC,UAAU;IAKV,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAQrC,eAAe,CAAC,IAAI,EAAE,MAAM;IA4G5B,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE;IAIrC,MAAM,CAAC,8BAA8B;CAoBtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HTML.combobox.option.element.d.ts","sourceRoot":"","sources":["../../../src/combobox/HTML.combobox.option.element.ts"],"names":[],"mappings":"AAEA,qBAAa,yBAA0B,SAAQ,WAAW;;IACxD,MAAM,CAAC,OAAO,cAA2C;IAEzD,iBAAiB;IAWjB,IAAI,KAAK,WAER;IACD,IAAI,KAAK,CAAC,KAAK,QAAA,EAGd;IAED,IAAI,KAAK,WAER;IACD,IAAI,KAAK,CAAC,KAAK,QAAA,EAGd;IAED,IAAI,QAAQ,YAEX;IACD,IAAI,QAAQ,CAAC,KAAK,SAAA,EAEjB;IAQD,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAQxC,eAAe,CAAC,IAAI,EAAE,MAAM;CAO7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HTML.combobox.tag.element.d.ts","sourceRoot":"","sources":["../../../src/combobox/HTML.combobox.tag.element.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAuB,SAAQ,WAAW;;IAKrD,iBAAiB;CAUlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,cAAc,qBAAqB,CAAC;AAEpC,UAAU,sBAAuB,SAAQ,WAAW;CAAG;AAEvD,UAAU,yBAA0B,SAAQ,iBAAiB;IAC3D,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,mBAAoB,SAAQ,iBAAiB;IACrD,+CAA+C;IAC/C,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB,QAAQ,EAAE,OAAO,CAAC;IAElB;;mGAE+F;IAC/F,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;SAKK;IACL,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;SAOK;IACL,SAAS,EAAE,OAAO,CAAC;IAEnB;;;;;;SAMK;IACL,UAAU,EAAE,OAAO,CAAC;IAEpB;;;;;SAK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