@danielgindi/selectbox 2.0.57 → 2.0.59
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/lib.cjs.js +227 -681
- package/dist/lib.cjs.js.map +1 -1
- package/dist/lib.cjs.min.js +2 -2
- package/dist/lib.cjs.min.js.map +1 -1
- package/dist/lib.es6.js +230 -681
- package/dist/lib.es6.js.map +1 -1
- package/dist/lib.es6.min.js +2 -2
- package/dist/lib.es6.min.js.map +1 -1
- package/dist/lib.umd.js +227 -681
- package/dist/lib.umd.js.map +1 -1
- package/dist/lib.umd.min.js +2 -2
- package/dist/lib.umd.min.js.map +1 -1
- package/dist/types/DropList.d.ts +205 -0
- package/dist/types/DropList.d.ts.map +1 -0
- package/dist/types/SelectBox.d.ts +209 -0
- package/dist/types/SelectBox.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types.d.ts +222 -0
- package/dist/types/types.d.ts.map +1 -0
- package/eslint.config.mjs +8 -0
- package/lib/DropList.js +1 -3430
- package/lib/SelectBox.js +1 -3689
- package/lib/index.js +1 -4
- package/package.json +17 -12
- package/tsconfig.json +35 -0
- package/vue/DropList.vue +508 -565
- package/vue/DropList.vue.d.ts +4 -0
- package/vue/SelectBox.vue +780 -981
- package/vue/SelectBox.vue.d.ts +4 -0
- package/vue/component-types.d.ts +210 -0
- package/vue/index.d.ts +4 -0
- package/vue/index.js +3 -4
- package/vue/utils/slots.js +71 -96
- package/lib/utils/escapeRegex.js +0 -1
- package/lib/utils/throttle.js +0 -48
package/lib/index.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import SelectBox, { DefaultOptions as SelectBoxDefaultOptions } from './SelectBox.js';
|
|
3
|
-
|
|
4
|
-
export { DropList, SelectBox, DropListDefaultOptions, SelectBoxDefaultOptions, ItemSymbol };
|
|
1
|
+
export { DropList, SelectBox, DropListDefaultOptions, SelectBoxDefaultOptions, ItemSymbol } from '../dist/lib.es6.js';
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielgindi/selectbox",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.59",
|
|
4
4
|
"description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",
|
|
5
5
|
"main": "dist/lib.cjs.min.js",
|
|
6
|
-
"module": "lib
|
|
6
|
+
"module": "dist/lib.es6.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
7
8
|
"broswer": "dist/lib.umd.min.js",
|
|
8
9
|
"author": {
|
|
9
10
|
"name": "Daniel Cohen Gindi",
|
|
@@ -19,7 +20,9 @@
|
|
|
19
20
|
},
|
|
20
21
|
"scripts": {
|
|
21
22
|
"benchmark": "node ./benchmarks/selectbox-value-lookup.mjs",
|
|
22
|
-
"build": "npm run lint && node ./scripts/build.js",
|
|
23
|
+
"build": "npm run lint && npm run typecheck && node ./scripts/build.js && npm run build:types",
|
|
24
|
+
"build:types": "tsc && node ./scripts/clean-private-types.js",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
23
26
|
"lint": "eslint -f codeframe ./",
|
|
24
27
|
"lint-fix": "eslint -f codeframe --fix ./",
|
|
25
28
|
"prepublishOnly": "npm run build",
|
|
@@ -34,18 +37,20 @@
|
|
|
34
37
|
"devDependencies": {
|
|
35
38
|
"@eslint/eslintrc": "^3.3.6",
|
|
36
39
|
"@eslint/js": "^10.0.1",
|
|
37
|
-
"eslint": "^10.
|
|
40
|
+
"eslint": "^10.8.0",
|
|
38
41
|
"eslint-formatter-codeframe": "^7.32.2",
|
|
39
|
-
"eslint-plugin-vue": "^10.
|
|
40
|
-
"globals": "^17.
|
|
42
|
+
"eslint-plugin-vue": "^10.10.0",
|
|
43
|
+
"globals": "^17.9.0",
|
|
41
44
|
"husky": "^9.1.7",
|
|
42
|
-
"magic-string": "^1.
|
|
45
|
+
"magic-string": "^1.1.0",
|
|
43
46
|
"pinst": "^3.0.0",
|
|
44
|
-
"sass": "^1.
|
|
45
|
-
"terser": "^5.49.
|
|
46
|
-
"vite": "^8.
|
|
47
|
-
"vue": "^3.5.
|
|
48
|
-
"vue-eslint-parser": "^10.4.1"
|
|
47
|
+
"sass": "^1.102.0",
|
|
48
|
+
"terser": "^5.49.1",
|
|
49
|
+
"vite": "^8.2.0",
|
|
50
|
+
"vue": "^3.5.41",
|
|
51
|
+
"vue-eslint-parser": "^10.4.1",
|
|
52
|
+
"tslib": "^2.8.1",
|
|
53
|
+
"typescript": "^7.0.2"
|
|
49
54
|
},
|
|
50
55
|
"dependencies": {
|
|
51
56
|
"@danielgindi/dom-utils": "^1.0.11",
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noImplicitAny": true,
|
|
9
|
+
"strictNullChecks": false,
|
|
10
|
+
"strictFunctionTypes": true,
|
|
11
|
+
"strictBindCallApply": true,
|
|
12
|
+
"strictPropertyInitialization": false,
|
|
13
|
+
"noImplicitThis": true,
|
|
14
|
+
"useUnknownInCatchVariables": false,
|
|
15
|
+
"alwaysStrict": true,
|
|
16
|
+
"noUnusedLocals": false,
|
|
17
|
+
"noUnusedParameters": false,
|
|
18
|
+
"noImplicitReturns": false,
|
|
19
|
+
"noFallthroughCasesInSwitch": true,
|
|
20
|
+
"noUncheckedIndexedAccess": false,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"allowSyntheticDefaultImports": true,
|
|
23
|
+
"forceConsistentCasingInFileNames": true,
|
|
24
|
+
"skipLibCheck": true,
|
|
25
|
+
"declaration": true,
|
|
26
|
+
"declarationMap": true,
|
|
27
|
+
"sourceMap": true,
|
|
28
|
+
"emitDeclarationOnly": true,
|
|
29
|
+
"stripInternal": true,
|
|
30
|
+
"outDir": "./dist/types",
|
|
31
|
+
"rootDir": "./src/lib"
|
|
32
|
+
},
|
|
33
|
+
"include": ["src/lib/**/*.ts"],
|
|
34
|
+
"exclude": ["node_modules", "dist"]
|
|
35
|
+
}
|