vanjs-jsf 0.3.2 → 0.4.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/LICENSE +201 -201
- package/README.md +344 -272
- package/dist/VanJsfField.js +16 -0
- package/dist/index.js.map +2 -2
- package/dist/jsf-defaults.css +42 -42
- package/package.json +56 -56
package/dist/jsf-defaults.css
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
.jsf-hidden { display: none; }
|
|
2
|
-
|
|
3
|
-
.jsf-dropzone {
|
|
4
|
-
border: 2px dashed #ccc;
|
|
5
|
-
border-radius: 8px;
|
|
6
|
-
padding: 24px;
|
|
7
|
-
text-align: center;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
transition: border-color 0.2s;
|
|
10
|
-
}
|
|
11
|
-
.jsf-dropzone-active {
|
|
12
|
-
border-color: #4a90d9;
|
|
13
|
-
background: #f0f7ff;
|
|
14
|
-
}
|
|
15
|
-
.jsf-dropzone-text {
|
|
16
|
-
margin: 0;
|
|
17
|
-
color: #666;
|
|
18
|
-
}
|
|
19
|
-
.jsf-file-info {
|
|
20
|
-
margin-top: 8px;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
gap: 8px;
|
|
24
|
-
}
|
|
25
|
-
.jsf-file-size {
|
|
26
|
-
color: #888;
|
|
27
|
-
}
|
|
28
|
-
.jsf-file-clear {
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
background: none;
|
|
31
|
-
border: 1px solid #ccc;
|
|
32
|
-
border-radius: 4px;
|
|
33
|
-
padding: 2px 8px;
|
|
34
|
-
font-size: 0.85em;
|
|
35
|
-
}
|
|
36
|
-
.jsf-file-clear:hover {
|
|
37
|
-
background: #f0f0f0;
|
|
38
|
-
}
|
|
39
|
-
.jsf-file-reading {
|
|
40
|
-
margin-top: 8px;
|
|
41
|
-
color: #666;
|
|
42
|
-
}
|
|
1
|
+
.jsf-hidden { display: none; }
|
|
2
|
+
|
|
3
|
+
.jsf-dropzone {
|
|
4
|
+
border: 2px dashed #ccc;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
padding: 24px;
|
|
7
|
+
text-align: center;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
transition: border-color 0.2s;
|
|
10
|
+
}
|
|
11
|
+
.jsf-dropzone-active {
|
|
12
|
+
border-color: #4a90d9;
|
|
13
|
+
background: #f0f7ff;
|
|
14
|
+
}
|
|
15
|
+
.jsf-dropzone-text {
|
|
16
|
+
margin: 0;
|
|
17
|
+
color: #666;
|
|
18
|
+
}
|
|
19
|
+
.jsf-file-info {
|
|
20
|
+
margin-top: 8px;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 8px;
|
|
24
|
+
}
|
|
25
|
+
.jsf-file-size {
|
|
26
|
+
color: #888;
|
|
27
|
+
}
|
|
28
|
+
.jsf-file-clear {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
background: none;
|
|
31
|
+
border: 1px solid #ccc;
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
padding: 2px 8px;
|
|
34
|
+
font-size: 0.85em;
|
|
35
|
+
}
|
|
36
|
+
.jsf-file-clear:hover {
|
|
37
|
+
background: #f0f0f0;
|
|
38
|
+
}
|
|
39
|
+
.jsf-file-reading {
|
|
40
|
+
margin-top: 8px;
|
|
41
|
+
color: #666;
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vanjs-jsf",
|
|
3
|
-
"description": "A JSON Schema Form UI Library for VanJS",
|
|
4
|
-
"keywords": [
|
|
5
|
-
"vanjs",
|
|
6
|
-
"json",
|
|
7
|
-
"schema",
|
|
8
|
-
"form",
|
|
9
|
-
"ui-library"
|
|
10
|
-
],
|
|
11
|
-
"version": "0.
|
|
12
|
-
"author": {
|
|
13
|
-
"name": "Carlos Prados",
|
|
14
|
-
"email": "carlos.prados@gmail.com"
|
|
15
|
-
},
|
|
16
|
-
"license": "Apache-2.0",
|
|
17
|
-
"main": "./dist/index.js",
|
|
18
|
-
"module": "./dist/index.js",
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"type": "module",
|
|
21
|
-
"files": [
|
|
22
|
-
"dist",
|
|
23
|
-
"README.md"
|
|
24
|
-
],
|
|
25
|
-
"scripts": {
|
|
26
|
-
"build": "node build.js",
|
|
27
|
-
"types": "tsc",
|
|
28
|
-
"dev": "vite",
|
|
29
|
-
"lint": "eslint lib/",
|
|
30
|
-
"lint:fix": "eslint lib/ --fix"
|
|
31
|
-
},
|
|
32
|
-
"peerDependencies": {
|
|
33
|
-
"esbuild": "^0.25.0",
|
|
34
|
-
"typescript": "^5.7.3"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@codemirror/lang-javascript": "^6.2.3",
|
|
38
|
-
"@codemirror/lang-json": "^6.0.1",
|
|
39
|
-
"@remoteoss/json-schema-form": "^0.11.9-beta.0",
|
|
40
|
-
"codemirror": "^6.0.1",
|
|
41
|
-
"codemirror-json5": "^1.0.3",
|
|
42
|
-
"eslint-linter-browserify": "^9.20.1",
|
|
43
|
-
"eslint4b-prebuilt": "^6.7.2",
|
|
44
|
-
"globals": "^15.15.0",
|
|
45
|
-
"pikaday": "^1.8.2",
|
|
46
|
-
"vanjs-core": "^1.5.3",
|
|
47
|
-
"vanjs-ext": "^0.6.2"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@eslint/js": "^10.0.1",
|
|
51
|
-
"@types/pikaday": "^1.7.9",
|
|
52
|
-
"eslint": "^10.2.0",
|
|
53
|
-
"typescript-eslint": "^8.58.0",
|
|
54
|
-
"vite": "^6.0.9"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vanjs-jsf",
|
|
3
|
+
"description": "A JSON Schema Form UI Library for VanJS",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"vanjs",
|
|
6
|
+
"json",
|
|
7
|
+
"schema",
|
|
8
|
+
"form",
|
|
9
|
+
"ui-library"
|
|
10
|
+
],
|
|
11
|
+
"version": "0.4.0",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Carlos Prados",
|
|
14
|
+
"email": "carlos.prados@gmail.com"
|
|
15
|
+
},
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"type": "module",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "node build.js",
|
|
27
|
+
"types": "tsc",
|
|
28
|
+
"dev": "vite",
|
|
29
|
+
"lint": "eslint lib/",
|
|
30
|
+
"lint:fix": "eslint lib/ --fix"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"esbuild": "^0.25.0",
|
|
34
|
+
"typescript": "^5.7.3"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@codemirror/lang-javascript": "^6.2.3",
|
|
38
|
+
"@codemirror/lang-json": "^6.0.1",
|
|
39
|
+
"@remoteoss/json-schema-form": "^0.11.9-beta.0",
|
|
40
|
+
"codemirror": "^6.0.1",
|
|
41
|
+
"codemirror-json5": "^1.0.3",
|
|
42
|
+
"eslint-linter-browserify": "^9.20.1",
|
|
43
|
+
"eslint4b-prebuilt": "^6.7.2",
|
|
44
|
+
"globals": "^15.15.0",
|
|
45
|
+
"pikaday": "^1.8.2",
|
|
46
|
+
"vanjs-core": "^1.5.3",
|
|
47
|
+
"vanjs-ext": "^0.6.2"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@eslint/js": "^10.0.1",
|
|
51
|
+
"@types/pikaday": "^1.7.9",
|
|
52
|
+
"eslint": "^10.2.0",
|
|
53
|
+
"typescript-eslint": "^8.58.0",
|
|
54
|
+
"vite": "^6.0.9"
|
|
55
|
+
}
|
|
56
|
+
}
|