@itenthusiasm/custom-elements 0.0.1 → 0.0.2
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/Combobox/ComboboxField.d.ts +3 -2
- package/Combobox/ComboboxField.js +1 -1
- package/Combobox/ComboboxListbox.d.ts +1 -0
- package/Combobox/ComboboxOption.d.ts +1 -0
- package/Combobox/SelectEnhancer.d.ts +1 -0
- package/Combobox/index.d.ts +1 -0
- package/index.d.ts +1 -0
- package/package.json +21 -2
- package/types/dom.d.ts +1 -0
- package/types/preact.d.ts +1 -0
- package/types/react.d.ts +1 -0
- package/types/solid.d.ts +1 -0
- package/types/svelte.d.ts +1 -0
- package/types/vue.d.ts +1 -0
- package/utils/dom.d.ts +1 -0
|
@@ -157,7 +157,7 @@ declare class ComboboxField extends HTMLElement implements ExposedInternals, Fie
|
|
|
157
157
|
set filter(value: boolean);
|
|
158
158
|
/** Activates a textbox that can be used to filter the list of `combobox` `option`s. @returns {boolean} */
|
|
159
159
|
get filter(): boolean;
|
|
160
|
-
set filterMethod(value: Extract<number | typeof Symbol.iterator | "
|
|
160
|
+
set filterMethod(value: Extract<number | typeof Symbol.iterator | "normalize" | "link" | "search" | "small" | "sub" | "sup" | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "replace" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "valueOf" | "codePointAt" | "endsWith" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "strike" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "isWellFormed" | "toWellFormed", "startsWith" | "includes">);
|
|
161
161
|
/**
|
|
162
162
|
* Determines the method used to filter the `option`s as the user types.
|
|
163
163
|
* - `startsWith`: {@link String.startsWith} will be used to filter the `option`s.
|
|
@@ -167,7 +167,7 @@ declare class ComboboxField extends HTMLElement implements ExposedInternals, Fie
|
|
|
167
167
|
*
|
|
168
168
|
* @returns {Extract<keyof String, "startsWith" | "includes">}
|
|
169
169
|
*/
|
|
170
|
-
get filterMethod(): Extract<number | typeof Symbol.iterator | "
|
|
170
|
+
get filterMethod(): Extract<number | typeof Symbol.iterator | "normalize" | "link" | "search" | "small" | "sub" | "sup" | "length" | "toString" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "replace" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "valueOf" | "codePointAt" | "endsWith" | "repeat" | "startsWith" | "anchor" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "strike" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "isWellFormed" | "toWellFormed", "startsWith" | "includes">;
|
|
171
171
|
set valueIs(value: "unclearable" | "clearable" | "anyvalue");
|
|
172
172
|
/**
|
|
173
173
|
* Indicates how a `combobox`'s value will behave.
|
|
@@ -241,3 +241,4 @@ import type { ListboxWithChildren } from "./types/helpers.js";
|
|
|
241
241
|
declare const valueOnFocusKey: unique symbol;
|
|
242
242
|
/** Internally used to determine if the `combobox`'s value is actively being modified through user's filter changes. */
|
|
243
243
|
declare const editingKey: unique symbol;
|
|
244
|
+
//# sourceMappingURL=ComboboxField.d.ts.map
|
|
@@ -310,7 +310,7 @@ class ComboboxField extends HTMLElement {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
setAttributeFor(combobox, attrs["aria-activedescendant"], nextActiveOption.id);
|
|
313
|
-
this.#searchTimeout =
|
|
313
|
+
this.#searchTimeout = setTimeout(() => (this.#searchString = ""), 500);
|
|
314
314
|
}
|
|
315
315
|
};
|
|
316
316
|
|
package/Combobox/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { default as ComboboxField } from "./ComboboxField.js";
|
|
|
2
2
|
export { default as ComboboxListbox } from "./ComboboxListbox.js";
|
|
3
3
|
export { default as ComboboxOption } from "./ComboboxOption.js";
|
|
4
4
|
export { default as SelectEnhancer } from "./SelectEnhancer.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itenthusiasm/custom-elements",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "Robust, accessible, and progressively-enhanceable Web Components for common developer needs",
|
|
8
8
|
"author": "Isaiah Thomason",
|
|
9
9
|
"homepage": "https://github.com/ITenthusiasm/custom-elements#readme",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"prepublishOnly": "npm run build --include-workspace-root --if-present",
|
|
12
|
+
"postpublish": "npm run clean --include-workspace-root --if-present"
|
|
13
|
+
},
|
|
10
14
|
"repository": {
|
|
11
15
|
"type": "git",
|
|
12
16
|
"url": "git+https://github.com/ITenthusiasm/custom-elements.git"
|
|
@@ -28,11 +32,26 @@
|
|
|
28
32
|
"framework-agnostic",
|
|
29
33
|
"progressive-enhancement"
|
|
30
34
|
],
|
|
35
|
+
"files": [
|
|
36
|
+
"./**/README.md",
|
|
37
|
+
"./**/*.{js,css,d.ts}"
|
|
38
|
+
],
|
|
31
39
|
"exports": {
|
|
32
40
|
"./*.js": "./*.js",
|
|
33
41
|
"./*.d.ts": {
|
|
34
42
|
"types": "./*.d.ts"
|
|
35
43
|
},
|
|
36
|
-
"
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./index.d.ts",
|
|
46
|
+
"default": "./index.js"
|
|
47
|
+
},
|
|
48
|
+
"./Combobox": {
|
|
49
|
+
"types": "./Combobox/index.d.ts",
|
|
50
|
+
"default": "./Combobox/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./*": {
|
|
53
|
+
"types": "./*.d.ts",
|
|
54
|
+
"default": "./*.js"
|
|
55
|
+
}
|
|
37
56
|
}
|
|
38
57
|
}
|
package/types/dom.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import type {} from "../Combobox/types/dom.d.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import type {} from "../Combobox/types/preact.d.ts";
|
package/types/react.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import type {} from "../Combobox/types/react.d.ts";
|
package/types/solid.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import type {} from "../Combobox/types/solid.d.ts";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import type {} from "../Combobox/types/svelte.d.ts";
|
package/types/vue.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import type {} from "../Combobox/types/vue.d.ts";
|
package/utils/dom.d.ts
CHANGED